<?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>Monitor device connection attempts to nRF Cloud</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102953/monitor-device-connection-attempts-to-nrf-cloud</link><description>Heya. 
 
 We have a bug in some devices that makes them unable to correctly work with the cloud. They seem to be able to connect to LTE, but somehow fail to communicate with nRF Cloud. 
 Do you have a way that we can observe device connection attempts</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Aug 2023 09:24:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102953/monitor-device-connection-attempts-to-nrf-cloud" /><item><title>RE: Monitor device connection attempts to nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/442469?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 09:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b89236d-d343-47cb-9025-671736550768</guid><dc:creator>Oskar</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;I am marking your earlier comment as the verified answer and I guess this ticket is closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Monitor device connection attempts to nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/442467?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 09:22:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9102e85-5fd4-438b-a4e9-edc852c06614</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;I&amp;#39;ll suggest it to our developers, but I am not sure if it si possible.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think AWS has any events for a connection attempt. It might be possible to see it from some logs, but even that I am not sure of.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Monitor device connection attempts to nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/442461?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 09:02:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f1e6357-85b3-4077-99fe-1aa348c8b7cd</guid><dc:creator>Oskar</dc:creator><description>&lt;p&gt;Is this something I can request as a feature?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We spent quite a bit of time debugging this, it ended up being something silly, the certificates we provisioned had the wrong expiry date, but it took a bit of time to debug it. It could have been a real time-saver if we could have checked the connection logs for the devices and seen that they were not allowed to connect because of credentials.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Monitor device connection attempts to nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/442352?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 14:23:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d98afc3-47b4-42a4-a9d9-619ae9d7f888</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Unfortunately, that is not possible. nRF Cloud doesn&amp;#39;t really know about a device trying to connect, unless the connection was successful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Monitor device connection attempts to nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/442118?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 15:52:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:807658e4-212d-4092-a960-5bb049cbccc9</guid><dc:creator>Oskar</dc:creator><description>&lt;p&gt;I am sorry, I am not being clear enough.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have access to the devices, they are running some production code. The only indication I have that things are not working is a flashing LED.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am pretty sure they connect to cellular properly, because I can see the SIM card events using my SIM provider.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am suspecting there might be something wrong with the device to cloud communication as I don&amp;#39;t see any data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I want to, from my work station, see if the devices try to connect to the nRF Cloud broker or not. For example by reviewing relevant logs from the MQTT broker, or by some other means.&lt;/p&gt;
&lt;p&gt;If the certificates are bad I would expect that nothing is reported to the nRF Cloud UI, but if I could see whether or not a device attempted to connect would be very useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Monitor device connection attempts to nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/442115?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 15:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53f8f9ae-bc3f-49b1-8aca-614bfe678878</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;A manual way, but very useful when debugging is with a modem trace. With the Cellular Monitor application in nRF Connect for Desktop, you can enable &amp;quot;Open in Wireshark&amp;quot;, and see the packets sent and received live.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1692368679925v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Or, in the application code, you can use the nRF Cloud event handler (registered in nrf_cloud_init()). The NRF_CLOUD_EVT_TRANSPORT_CONNECTING event will be sent when the device tries to connect to nRF Cloud. If the connection attempt fails, you will get a NRF_CLOUD_EVT_TRANSPORT_CONNECT_ERROR event. If the connection was successful, you will get NRF_CLOUD_EVT_TRANSPORT_CONNECTED and NRF_CLOUD_EVT_READY.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Monitor device connection attempts to nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/442097?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 13:26:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba6f1040-510f-4bfa-bf63-0e13578c7d8e</guid><dc:creator>Oskar</dc:creator><description>&lt;p&gt;I was thinking about observing whether or not the device attempts to make a connection to the MQTT broker. For example, if I have flashed a bad certificate onto the device, I would like to be able to see if a device attempted to connect to the MQTT broker but was denied because of a bad certificate.&lt;/p&gt;
&lt;p&gt;It would be a way to debug errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Monitor device connection attempts to nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/442068?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 11:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84966551-707c-43da-980e-94d99620a626</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not entirely sure what you are asking for.&lt;/p&gt;
&lt;p&gt;Do you want some way for the application to know if it is connected to nRF Cloud, or some way of monitoring the connection status externally, without access to the device?&lt;/p&gt;
&lt;p&gt;Assuming it is the last:&lt;/p&gt;
&lt;p&gt;nRF Cloud sends connection events on a specific topic: &lt;a href="https://docs.nrfcloud.com/APIs/MQTT/Topics.html#additional-topics-supported-by-nrf-cloud"&gt;https://docs.nrfcloud.com/APIs/MQTT/Topics.html#additional-topics-supported-by-nrf-cloud&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So you can create an &lt;a href="https://docs.nrfcloud.com/Devices/Properties/Types.html#sub-types"&gt;account device&lt;/a&gt; that subscribes to that topic, and keeps track of which devices are connected or not.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>