kai-morich / SimpleBluetoothLeTerminal

Android terminal app for Bluetooth LE devices using custom serial profiles
MIT License
288 stars 111 forks source link

nrf51822 not found #8

Closed sashalex007 closed 5 years ago

sashalex007 commented 5 years ago

Hi, thanks alot for this code! The full version is able to find and connect to my nrf custom pcb's, but they do not show up in the simple version. The UUID's provided are correct, so far I have not found a solution.

Thanks for your help

kai-morich commented 5 years ago

The SerialSocket class is basically identical. Please look at log output or debug to find out where the device is rejected

sashalex007 commented 5 years ago

There is nothing that specifically sticks out to me in the logs. Debug is empty, but here is device output from the moment I hit "scan". The two devices in question are F5:B2:BC:7C:B8:42 and C8:23:DB:BF:14:08. They do appear in the logs, but are never added to listview.

output.txt

kai-morich commented 5 years ago

I looked into wrong class. DevicesFragment has no logging. I can check next week if scanning is identical in both apps.

sashalex007 commented 5 years ago

Thanks a lot. I can connect just fine by hard coding the address, it just doesn't show up in list view.

sashalex007 commented 5 years ago

I rewrote DevicesFragment following the new BLE docs. Works great now, and devices are discovered much faster too.

R-Fehler commented 5 years ago

Hello @sashalex007 could you provide your DeviceFragment updated for custom nRF Boards? I would apprecieate it a lot.

sashalex007 commented 5 years ago

Ill get back to you on Monday, out of office until then

sashalex007 commented 5 years ago

Hello @sashalex007 could you provide your DeviceFragment updated for custom nRF Boards? I would apprecieate it a lot.

Do you still need this?

R-Fehler commented 5 years ago

Yes, please.

sashalex007 notifications@github.com schrieb am Mo., 16. Sep. 2019 18:06:

Hello @sashalex007 https://github.com/sashalex007 could you provide your DeviceFragment updated for custom nRF Boards? I would apprecieate it a lot.

Do you still need this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kai-morich/SimpleBluetoothLeTerminal/issues/8?email_source=notifications&email_token=AIW7J2UISCZ4D7UBUTSUE4LQJ6VJNA5CNFSM4ITNO6U2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6ZVBYQ#issuecomment-531845346, or mute the thread https://github.com/notifications/unsubscribe-auth/AIW7J2V3HQBGDV5F2FJYHNDQJ6VJNANCNFSM4ITNO6UQ .

kai-morich commented 5 years ago

in my google-play app I implemented both scan methods. to keep this app simple I only implemented startDiscovery here, as I did not found much difference. With https://github.com/kai-morich/SimpleBluetoothLeTerminal/commit/f6475a5afd148c86045a1f15c7dce1edaae5da56 I also implemented leScan

sashalex007 commented 5 years ago

@R-Fehler, it should work now. @kai-morich's new code is almost the same as mine.