<?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>HCI: handling error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117720/hci-handling-error</link><description>Hi! I am developing project based on nrf9160 as a main processor and nrf52840 as a hci controller. I am using nrf connect sdk 2.6.1. I came across a potential issue in nrf connect sdk. If bt_hci_cmd_send_sync() reaches timeout waiting for controller </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2025 15:40:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117720/hci-handling-error" /><item><title>RE: HCI: handling error</title><link>https://devzone.nordicsemi.com/thread/517998?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 15:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb95a48c-3dcf-4b51-9227-7ac0c1253c71</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Piotr,&lt;br /&gt;&lt;br /&gt;I have reported this issue, and we have discussed it internally.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;We understand that you want to isolate faults in the co-processor from triggering panic in the application processors. Although achievable, it is currently not implemented.&lt;br /&gt;Please note that returning an error from bt_hci_cmd_send_sync might result in somewhat undefined behavior if controller starts responding again. Late response from the controller could be misunderstood by the host to be a response to a subsequent command. This situation might however get resolved without problems, but this might not be what is expected.&lt;br /&gt;&lt;br /&gt;Regarding the safety of disabling CONFIG_BT_ASSSERT, our code relies on these assert messages to catch various rare-but-possible errors. If for example assertion check is not enabled, bt_hci_cmd_send_sync returns success when it should not. There might be other cases like this. It is up to you to do this risk analysis.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI: handling error</title><link>https://devzone.nordicsemi.com/thread/517656?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 10:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd287741-61b0-4d28-ac56-d6ba75ded461</guid><dc:creator>td-pradecki</dc:creator><description>&lt;p&gt;So basically if there is hardware problem with HCI, the device is doomed to be resetting over and over again?&lt;br /&gt;There is no solution for that?&lt;br /&gt;&lt;br /&gt;If so, could you please report it as a issue? I don&amp;#39;t think it&amp;#39;s acceptable solution from the customer point of view.&lt;br /&gt;&lt;br /&gt;KR,&lt;/p&gt;
&lt;p&gt;Piotr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI: handling error</title><link>https://devzone.nordicsemi.com/thread/517639?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 10:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9937296b-23bf-4586-9322-269a82346816</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Piotr,&lt;br /&gt;&lt;br /&gt;Described behavior of handling the error and reporting it to the cloud is unfortunately not achievable at the moment.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI: handling error</title><link>https://devzone.nordicsemi.com/thread/517143?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 08:24:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7fa507b-94fa-4ef0-be3c-5bf26f02c31a</guid><dc:creator>td-pradecki</dc:creator><description>&lt;p&gt;I am working on iot device which consists of nrf91 as a main processor and handles communication with server.&lt;br /&gt;Nrf52840 is used as a bluetooth controller.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In general I am aware of the mechanism. Normally I don&amp;#39;t experience the error.&lt;br /&gt;&lt;br /&gt;However I&amp;#39;d like my firmware to handle situation in which for example nrf52840 gets damaged, there is a cold joint, etc..&lt;br /&gt;&lt;br /&gt;In situation like this I expect the program ran on nrf91 to handle the exception (HCI_TIMEOUT) and report the error to cloud.&lt;br /&gt;&lt;br /&gt;Current mechanism implemented in the sdk doesn&amp;#39;t allow me to do so.&lt;br /&gt;&lt;br /&gt;KR,&lt;br /&gt;Piotr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI: handling error</title><link>https://devzone.nordicsemi.com/thread/517017?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 14:12:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ffd4946-c464-4b8d-b9bd-01ff790043b6</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Do you see the same hard fault if you increase&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/subsys/bluetooth/host/hci_core.c#L79"&gt;HCI_CMD_TIMEOUT&lt;/a&gt;&amp;nbsp;in hci_core.c?&lt;/p&gt;
[quote user=""]This causes a processor hard fault condition, which is not a tolerable behaviour in the project I am working on.[/quote]
&lt;p&gt;Can you provide more information about your project?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>