This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Bonding problem

Hello guys,

I'm working in a project which requires from me to bond to certain devices and refuse the bonding from others, I mean at certain input, connect to anyone and accept pairing from any device and at certain input, connect only to previously paired devices only, My problem is that the behaviour of the development kit is good but when I'm using this module PTR51822A, I faced a lot of issues and I cannot understand why its doing like that and it's totally random,it's not depending on the condition I'm putting because when I checked it with ble sniffer, it gives me weird results , for example: image description

image description

image description

why the telephone keeps sending too much packets with no waiting for the module to respond to it? these cases never ever happened with the development kit and it's the same code running in both chips.

and also sometimes after trying to bond, master is not responding to the slave and after timeout it looses the connection and start advertising again which is not expected to do.

I'm saying it's really weird because all my devices are able connecting to the same module and they are also at certain time with the same conditions, didn't connect to the module, I don't know why but I'm attaching six sniffer files, one is the working case and the others are not working for different reasons.

snifferResults.rar

I'm trying my module with LG , Hauwei mediapad m2, Iphone 4s, Ipad 10.

thanks for help.

Regards,

Mohamed Osama

Parents
  • but the problem is that there are two address one for the file name and one for the line which called the app_err_handler, which one to check? most problabably that there is a corruption while writing bonding information for a reason but I don't know what is it, what I'm doing is that: connect pair, when it bonded then I delete bond info from the mobile then try to connect again, it began to give hesitant behaviour, sometimes it connects and somtimes it refuses the connection and crash I guess it's pstorage file in SDK10 may cause that problem

Reply
  • but the problem is that there are two address one for the file name and one for the line which called the app_err_handler, which one to check? most problabably that there is a corruption while writing bonding information for a reason but I don't know what is it, what I'm doing is that: connect pair, when it bonded then I delete bond info from the mobile then try to connect again, it began to give hesitant behaviour, sometimes it connects and somtimes it refuses the connection and crash I guess it's pstorage file in SDK10 may cause that problem

Children
No Data
Related