-
1. Re: is there a working server bonding example
madhul_36 Aug 29, 2016 2:47 PM (in response to user_485795501)Hi,
Please find attached
Regards,
-Madhu
-
BLE_Bonding.cydsn_.zip 41.5 K
-
-
2. Re: is there a working server bonding example
user_485795501 Sep 6, 2016 6:55 AM (in response to user_485795501)thanks for trying, this does not work either, here is the output, I am running on BLE kit 42 PSOC, CYBL10563-56 and running on cysmart app on android phone, my own project works, it bonds, but doesnt pair, and then either does not do the flash write of the encryption key, or on power cycle is not restoring the correct encryption key, I have not figured out which one is the culprit. but the above code doesnt work for me at all? I even changed the BLE settings.
Advertisement is enabled
BLE_Bonding Device ON
Starting to advertiseAdvertisement is enabled
Device Connected
Sending Security Request to MasterCYBLE_EVT_GAP_AUTH_FAILED: 15
-
3. Re: is there a working server bonding example
user_485795501 Sep 6, 2016 3:58 PM (in response to user_485795501)not sure exactly what is going on now. I tried running your program and it failed, so i reprogrammed my code/project and now it appears to work for no apparent reason. I'll have to do more testing, it appears to be a tool bug, or a programmer bug now? who knows, far as I can tell, no software updates were done, unless something auto installed and I was not aware? I will test multiple boards to see, unless there is some unknown thing with the uart, the only thing I did is add about 6 lines of code to be able to toggle on and off the printf statements so I can see only connection related messages on the terminal while blocking out some of the others
-
4. Re: is there a working server bonding example
user_1377889 Sep 7, 2016 12:01 AM (in response to user_485795501)Check your heap size for >= 0x0400 when using printf().
Another culprit could be when using sprintf() that the buffer is kept too short.
Bob
-
5. Re: is there a working server bonding example
user_485795501 Sep 14, 2016 7:42 AM (in response to user_485795501)thanks for trying, that wasn't it either,
all i did was add code getchar()
if char = 'T' skip over printf statements, xxx
if char = 'F' skip over printf statements yyyy
etc.. not sure what the error was, if it was tool bug or operator error, it is working now, but I Have seen this before, where the compiled program that was actually burned in was not what I was expecting, or the most recent stuff, not sure if this is a progressive compile issue, or if I am doing something, I have also seen trying to burn the same program into 2 different boards to give me different results as well,
-
6. Re: is there a working server bonding example
e.pratt_1639216 Jan 31, 2017 3:17 PM (in response to user_485795501)I'm not sure if this will be any help, but there is a setting under the debug & program options to only program the differences in the Flash/Hex file, or to program the entire flash chip on reprogram. This might be the issue if you are getting different results for different chips, but at a guess I would say most likely not.