<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bonding problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18495/bonding-problem</link><description>Hello guys, 
 I&amp;#39;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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Dec 2016 08:46:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18495/bonding-problem" /><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71371?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2016 08:46:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33cb5281-02b5-4c6f-8379-23d48558f73f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Mohamed: It&amp;#39;s not a black box, all the code are open, if it crash, it should be possible to figure out why it crashes and where.&lt;/p&gt;
&lt;p&gt;I won&amp;#39;t be able to help you if can&amp;#39;t provide enough information on the issue or reproduce the issue on our example code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71370?ContentTypeID=1</link><pubDate>Sun, 25 Dec 2016 00:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dd08efe-5654-4d23-b030-9c99bbe7351e</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;Hi Hung bui, I tried proxmity application with nrf connect, it code is a little bit different because I depend on the bonding between the ble and phone, I mean you proxmity application didn&amp;#39;t pop up window asking for pairing, I should go and press on &amp;quot;bond&amp;quot; to start bonding process, and also I&amp;#39;ve dfu in my application which is different than proxmity application,&lt;/p&gt;
&lt;p&gt;anyways, I tried the code more and more &amp;amp; finished the debugging with that coclusion:
if you&amp;#39;ve any problem with pairing, it crash, for example : you&amp;#39;re connecting to the firmware, a pop up window asking you to pair or cancel, if you pressed on cancel, it will crash, I&amp;#39;m not doing any change in the device_manager_peripherial code &amp;amp; revised my code with the ble_app_hrs with dfu and found no difference.&lt;/p&gt;
&lt;p&gt;the crash was at assembly command called DCW and behind it was written 2E2E
the error code is very weird, it was 0x00000089&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71369?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2016 12:52:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25323840-b96f-4dad-83be-a37062caee88</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;yeah yeah, you&amp;#39;re right &amp;amp; I&amp;#39;m doing that already, I put break point inside the app_error_handler() and that&amp;#39;s how I know that the crash in the file name and line num I had sent before,
let me try it with ble app_proximity and come back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71368?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2016 12:08:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fb94334-0e1f-4d52-be50-f8dc782f1d64</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@mohamed: Please add a breakpoint inside app_error_handler() and find out which file name it is. 0x0001AB9C is an address in RAM, there should be some data there. You can take a screenshot showing how you get the file name, line, and err_code.&lt;/p&gt;
&lt;p&gt;If you try to test with ble_app_proximity, and delete bond on the phone, do you have the same issue ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71367?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2016 10:07:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59fac1b7-cd21-4820-84c1-09277099a9e2</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;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&amp;#39;t know what is it, what I&amp;#39;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&amp;#39;s pstorage file in SDK10 may cause that problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71366?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2016 16:04:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:869bda1a-12cc-49f3-8f4f-eb52ccb2c48e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;The assertion can&amp;#39;t come from nothing. What is at address 0x0001AB9C in RAM ? You may want to track down what caused the assertion. Also test with the code that worked for you before.&lt;/p&gt;
&lt;p&gt;You may want to describe how you get to the error, maybe a sniffer trace when you test with the DK can also help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71365?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2016 12:33:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f96e4241-cd17-4d27-913d-efd4b1972847</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;it&amp;#39;s in the firmware I believe, I&amp;#39;m burning the firmware with FOTA to modules. I&amp;#39;m now debugging the DK and trying to replicate the case and I&amp;#39;ve found a bug randomly appears
it showed me an error randomly appeared on file name (0x0001AB9C)  with error in line 0x0000023D and err_code 0x00000088&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71362?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2016 12:29:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2998b7e1-1c52-4948-9e44-95e62eb916e7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@mohamed: How often do you see the PTR51822A can bond and can not ?&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not possible guess what could be wrong if you don&amp;#39;t have access to the board and do some debugging, either using breakpoint or printing out trace on UART or RTT (SWD interface)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71360?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2016 11:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93d085bc-e3cc-4b2b-8f0e-a874bcb2232d</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;I&amp;#39;m using S110 anyways, but at the workingcase file, at packet 263, it&amp;#39;s the same behaviour and the response of the master was different,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand what the revision will do with supporting s130 or something else.&lt;/p&gt;
&lt;p&gt;another thing, I&amp;#39;m debugging the case again with nordic development kit, an arbitrarily crash pop up at file name in hexadecimal view(0x0001AB9C) which means that most probably the arbitrarily  behaviour  may be because of that crash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71364?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2016 11:16:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61604500-606e-4573-b8bc-a33a77cfd77f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you explain this: &amp;quot;the slave is asking the master and then the master didn&amp;#39;t respond for no reason&amp;quot; ?
What I see is the master try to transmit but the the slave didn&amp;#39;t response, so the master retransmit.&lt;/p&gt;
&lt;p&gt;Another thing you have to check is which revision the chip is on the module. Could be that the chip was with revision 2 and won&amp;#39;t support S130 v2.0 , please have  a look &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/compatibility_matrix/nRF51822_ic_revision_overview.html?cp=3_0_1"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71363?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2016 11:08:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aecaf39-c42d-4c70-b54e-5db1ea77d664</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;yeah, the sdk version I&amp;#39;m using is nRF51_SDK_10.0.0_dc26b5e,  I&amp;#39;m using device manager to handle bonding and connection&lt;/p&gt;
&lt;p&gt;you can look for example at packet 570 1st case, the slave is asking the master and then the master didn&amp;#39;t respond for no reason, I guess something weird may be. may be an info is missed in the middle&lt;/p&gt;
&lt;p&gt;here is the picture of module I&amp;#39;m using, it&amp;#39;s name is PTR5518 eng V1.4
&lt;a href="http://g01.a.alicdn.com/kf/HTB1W6v4KpXXXXazaXXXq6xXFXXXK/PTR5518-Coin-size-nRF51822Bluetooth-4-0-module-Ultra-small-size-smaller-than-CR2032-coin-battery-Free.jpg_640x640.jpg"&gt;link text&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71361?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2016 09:31:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49c58efe-cf6d-4ae7-a9df-282754e926d2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please point me to the exact trace (file name) and if possible the packet number where I should check. The &amp;quot;workingnonworkingcase.pcapng&amp;quot; file showing your device crashed when it&amp;#39;s trying to store encryption keys and then worked again after that meaning it&amp;#39;s managed to store but for some reason it crashed after that.&lt;/p&gt;
&lt;p&gt;Please state your SDK version, if you use pstorage or device manager.&lt;/p&gt;
&lt;p&gt;Please point me to the schematic of the PTR51822a.&lt;/p&gt;
&lt;p&gt;Depends on which SDK you use, re-bonding with a already bonded central could be rejected (for security reason) but it&amp;#39;s not the case here, I don&amp;#39;t see any rejecting. I suspect corrupted flash area, an erase all may help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71359?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 14:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0327f02-4259-493b-932c-1525a034b983</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;@hungbui, in the question, I&amp;#39;m attaching 6 different sniffer trace data, at different points, it didn&amp;#39;t complete the connection, I don&amp;#39;t know what is the reason for that.
it has no big difference, only the PTR51822a module is used and in the DK, it&amp;#39;s only the chip.
you mean erase all bonds from the module, if it&amp;#39;s already bonded to one of the phone, it should accept connection after that even if I erased the bond information from the phone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71358?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 13:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8abfd980-44c7-47b1-b7a0-59d2e4cdcbb2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@mohamed: You mean you have no access to the programming interface  ?
Have you tested the device before you deploy it ?&lt;/p&gt;
&lt;p&gt;How different the board is compare to the DK ?&lt;/p&gt;
&lt;p&gt;Which exactly the trace you want me to have a loot at ?&lt;/p&gt;
&lt;p&gt;Made sure you erase all bond before you test the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71357?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 13:20:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e392170c-e770-428b-852e-8159e12f57f5</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;@HungBui, it&amp;#39;s already inside the package, I don&amp;#39;t know how to debug it while it&amp;#39;s in the package, but it didn&amp;#39;t happen with the development kit, if you&amp;#39;ve time and looked at the six files I&amp;#39;m attaching, you will find that it sometimes do it independtly of pairing or anything, it&amp;#39;s just try to connect, then terminate it.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how to replicate this case in the DK because it&amp;#39;s already the same code burnt to DK and the modules.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71355?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 11:45:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4c80333-7c8c-4963-8019-129513c94b17</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;What you observed usually happens when the firmware on the chip crashes and got restarted. You see the master keep transmitting but it&amp;#39;s not &amp;quot;keeps sending two much packets with no waiting for the module to respond &amp;quot;. It&amp;#39;s simply resend the packet be cause the slave didn&amp;#39;t response to it.&lt;/p&gt;
&lt;p&gt;What you need to do is to figure out why the system crash, you can follow the debug guide &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I suspect it has something to do with how you handle bonding, the last command from the central to the peripheral is a pairing request.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding problem</title><link>https://devzone.nordicsemi.com/thread/71356?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 10:23:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:597fd462-85e4-4bf8-96ef-b29ab269a6f8</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;any help please !!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>