<?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>A phenomenon occurs in which GPIO input is not possible.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112082/a-phenomenon-occurs-in-which-gpio-input-is-not-possible</link><description>HI 
 I am developing a product with nRF52832 and NUS&amp;#39;s Central and Peripheral. 
 
 The basic operation is to transmit key input to the Peripheral&amp;#39;s GPIO to the Central via NUS. 
 It works well under normal circumstances. 
 
 However, in the pairing state</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Jun 2024 17:30:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112082/a-phenomenon-occurs-in-which-gpio-input-is-not-possible" /><item><title>RE: A phenomenon occurs in which GPIO input is not possible.</title><link>https://devzone.nordicsemi.com/thread/489151?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 17:30:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed18b68d-804f-4d59-9e30-c98ea966dcca</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi SHMoon,&lt;/p&gt;
[quote user="yk4224"]&lt;p&gt;Even the ble_nus_data_send() function executes normally.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, key data is not received.&lt;/p&gt;[/quote]
&lt;p&gt;Do you have a BLE air sniffer log showing that the the NUS data is transmitted from Peripheral side but the central have not acknowledged it?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- If the BLE air sniffer log have shown that the packet in question is transmitted in the air and the Central have acknowledged it, then something in the central side is wrong. Does Central have nRF or Peripheral have nRF?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- If the BLE packet is transmitted and is clearly shown in the BLE air sniffer log, and the central have not responded, then we need to see why the central is not responding it in the LinkLayer level.&lt;/p&gt;
&lt;p&gt;- If the air sniffer shows that the packet is not being transmitted at all, then we need to debug the Peripheral side as to why it queued the packet in the notification but did not send it in the air.&lt;/p&gt;
&lt;p&gt;If you can give us the air sniffer log, then we can see which side is the issue (Central or Peripheral)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A phenomenon occurs in which GPIO input is not possible.</title><link>https://devzone.nordicsemi.com/thread/489085?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 11:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec46badb-8f6f-4987-9e91-af995880804f</guid><dc:creator>SHMoon</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="124303" url="~/f/nordic-q-a/112082/a-phenomenon-occurs-in-which-gpio-input-is-not-possible"]Additional review was conducted by connecting J-Link.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please check the reviewed part by connecting the J-LInk above.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;At first, the key didn&amp;#39;t work, so I thought it was a GPIO problem like you said, but&lt;/p&gt;
&lt;p&gt;As in the additional review, the key operates normally.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Even the ble_nus_data_send() function executes normally.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, key data is not received.&lt;/p&gt;
&lt;p&gt;In that state, the NUS connection status check confirmed that it was operating normally.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When key data is not transmitted, the NUS connection status check function operates normally.&lt;/p&gt;
&lt;p&gt;If you turn off the power on the other side, it is detected on the other side.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;***********************************************************************************************************************&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s organize it again&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1) Phenomenon:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;- Key input data from Peripheral is not transmitted to Central (of course, 100% is transmitted in normal condition)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;- NUS continuously checks the connection status between Peripheral and Central.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2) Conditions for reproducing the problem&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- In the pairing state of Central and Peripheral, move the Peripheral to a point with weak reception sensitivity.&lt;/p&gt;
&lt;p&gt;It seems to occur during the process of pairing being canceled and proceeding again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A phenomenon occurs in which GPIO input is not possible.</title><link>https://devzone.nordicsemi.com/thread/488982?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 06:01:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ae0fb3e-64a4-4503-b8a7-c8ca52d58806</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi SHMoon,&lt;/p&gt;
[quote user=""]&lt;p&gt;1. When the peripheral key is not working and the central power is turned off, the peripheral automatically attempts re-pairing (status check is normal).&lt;/p&gt;
&lt;p&gt;2. If you turn on the Central in &amp;#39;1&amp;#39; above, pairing is successful again. However, the peripheral keys still do not work.&lt;/p&gt;
&lt;p&gt;3. In the above situation, the only way to restart the peripheral key is to reset the peripheral power.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you find out the cause of this?&lt;/p&gt;[/quote]
&lt;p&gt;I am unsure how GPIO key input is related to the pairing. I think it can be a configuration issue of the pin?&lt;/p&gt;
&lt;p&gt;Can you start your code in the debugger and after pairing when you see the issue pressing the key which is not working, pause the debugger to see if you can see the context of the current execution?&lt;/p&gt;
&lt;p&gt;I am guessing that there is some loop or deadlock in the code in the higher priority which might be masking the GPIO interrupt handling.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>