Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 Bluetooth transmission not receive #129

Open
Cyfarw9dd opened this issue Apr 4, 2024 · 2 comments
Open

ESP32 Bluetooth transmission not receive #129

Cyfarw9dd opened this issue Apr 4, 2024 · 2 comments

Comments

@Cyfarw9dd
Copy link

Cyfarw9dd commented Apr 4, 2024

Hi, I am trying to use the Bluetooth function to control my rotator.
I used ESP32 to receive the data. I am certain that I input my device address correctly, also with the default data format. To exclude the problem, I used a debug app to connect my ESP32, and try to transmit some single numbers or dozen of them. They were all received, I can check them in my serial port. After checking my code, I try to track ISS and send data to my device, but the serial port still blank.
Anyway, eagerly await your answer, also thanks a lot for your marvelous software.

@rt-bishop
Copy link
Owner

rt-bishop commented Apr 7, 2024

Hey @Cyfarw9dd! I'm really happy you're enjoying the app =) Thanks for reporting this. I only just now got some time to properly respond to this issue. Initially it was ajohns1288 who implemented the data transfer over Bluetooth #87. I never used this feature myself and don't really have any hardware to test it on properly. All I know is that it was covering his and some other users needs.

I also heard that for some users only the debug version of the app sends the data correctly. Is that what you meant when you said "I used a debug app to connect my ESP32"? Was it Look4Sat's debug version build via Android Studio? If yes, then I assume that it may have something to do with the app minification step that happens on the release build.

R8 minifier removes and obfuscates some code and maybe it also removes stuff needed for BT to work properly. Normally it's resolved by adding certaing rules to minifier config, but I won't be able to verify that. Or can I use another PC to simulate your workflow with things like ncat or anything?

I'll look into that and leave the issue open. Although I'm not sure when it's going to happen. Currently I have an unfinished version of Look4Sat rewritten in Compose with nicer UI, bottom navigation and other nice additions. But also I'm becoming a daddy in a couple of weeks, so there are plenty of other priorities that take place now and in the foreseeable future. Once things stabilize I'll be able to finish the new version and keep the minifier issue in mind.

@Cyfarw9dd
Copy link
Author

Cyfarw9dd commented Apr 7, 2024

Thanks for your response, I also rejoice to read your comment!

Regarding the debug software, I did think of to use the Android Studio to debug with, though I'm not good at application development. I turned to the application store and downloaded a app with the Bluetoorh serial port debug function. I use this app to transmitt data to my device and received successfully. The device also logged the connection to the app, data reception, and disconnection. However, When I used Look4sat and turned on the Bluetooth function, the device's log only showed the initializing part, with nothing regarding the connection and reception.

I believe the BT RFCOMM data will transmitt to SPP device correctly. Perhaps something went wrong in this progress, I may check Look4sat's log to vertify if the data is being sent properly. Or I can use the debug version of the Android Stduio through your method, to vertify.

Anyway, for now, I will use the other feature to instead of BT for now. I'm still a fresh learner in this case, but once I make any progress in BT, I will update the issue(after doing the rotator XD). Also, best wishes to you. I wish you both all the happiness and joy as you prepare to welcome your little one into the world!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants