Bluetooth connection problems

Learn MoreFAQsTutorials

4 posts / 0 new
Last post
kongxiangmin
Offline
Last seen:1 year 1 month ago
加入:2019-01-02 01:33
Bluetooth connection problems

I use the tda14580.

Now I have a problem in the process of using it.

Sometimes the connection time between Bluetooth and the gateway is long.

After the connection is successful, there will be disconnection sometimes.

Sometimes after the two are disconnected, they cannot be reconnected. However, the mobile phone can search the Bluetooth broadcast and connect it .

Asking for help !

Device:
PM_Dialog
Online
Last seen:9 min 53 sec ago
Staff
加入:2018-02-08 11:03
Hi kongxiangmin,

Hi kongxiangmin,

你能请注明SDK和考试吗ple are you using? Have you developed your own project, or you are working on any of the BLE SDK example? Is it possible to use a BLE sniffer and send me a sniffer log? Also, I would suggest you to run your code in debug mode and check if the code gets crashed. If you were able to share more inputs to try to replicate your issue, it would be very helpful to investigate the rout cause of the disconnection.

Thanks, PM_Dialog

kongxiangmin
Offline
Last seen:1 year 1 month ago
加入:2019-01-02 01:33
Hi,PM_Dialog.

Hi,PM_Dialog.

I use SDK 5.0.4, and the example uses projects / target_apps / ble_examples / ble_app_all_in_one.

I am currently developing a project.

Sorry, I won't use a sniffer to send you logs.

I have done an experiment. I connected the project sample to a mobile phone. Without any operation, I automatically disconnected it in less than 20 hours. After searching again, the sample is still broadcasting, and the sample can still be connected .

In terms of code, I deleted some of the original attributes that I couldn't use in the example, and finally only three attributes were added, including a mobile Bluetooth writable attribute, an indicator send function attribute, and a modified notify send function attribute .

There is no problem with the normal operation of the sample in a certain period of time, but it will automatically disconnect from the gateway after a long time. Moreover, when connecting, the connection time is slightly longer, sometimes even no longer connected (the mobile phone can search for Bluetooth broadcast and connect).

If you need to see the code, I can send some code you need .

Above.

kongxiangmin

PM_Dialog
Online
Last seen:9 min 53 sec ago
Staff
加入:2018-02-08 11:03
Hi kongxiangmin,

Hi kongxiangmin,

This is little bit weird and it is difficult to replicate it. Since you don’t have a BLE sniffer tool, I would suggestion you to run it in debug mode ad some break points and try to debug it. Are you using a custom mobile application?

Thanks, PM_Dialog