<?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>Communication with nrfCloud from external devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112929/communication-with-nrfcloud-from-external-devices</link><description>HI all! 
 I&amp;#39;ve been doing some research on working with nRF Cloud and I have a few questions/clarifications: 
 1. In general are you able to drive/control a GPIO pin through a cloud service? I&amp;#39;m already assuming this is a no since these are mostly for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Aug 2024 10:51:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112929/communication-with-nrfcloud-from-external-devices" /><item><title>RE: Communication with nrfCloud from external devices</title><link>https://devzone.nordicsemi.com/thread/497130?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 10:51:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe3c7445-a335-475e-a66c-15bcfbe89a0e</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I did some research on this topic. The following discussion shows you can add parser for your commands message in&amp;nbsp;nrf\applications\asset_tracker_v2\src\cloud\nrf_cloud_integration.c&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NRF_CLOUD_EVT_RX_DATA_GENERAL event, but when your device is on RCC idle state, it will miss these MQTT messages.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/54021/sending-commands-from-nrfcloud-terminal-to-lte-device"&gt;(+) Sending commands from nrfcloud terminal to LTE Device - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60215/how-to-receive-data-from-nrf-cloud-to-lte-device"&gt;(+) How to receive data from nRF cloud to LTE device - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/100786/nrf-cloud-and-the-nrf-9160/430916"&gt;(+) nRF Cloud and the nRF 9160 - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/86635/sending-at-commands-from-nrfcloud-terminal-to-lte-device"&gt;(+) Sending AT commands from nrfcloud terminal to LTE Device - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I think the better way is to add the configuration on device shadow, then the device will compare and load the new configuration if something changes whenever it reconnects with nRF Cloud. Again, you need to add parser after&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;NRF_CLOUD_EVT_RX_DATA_SHADOW for the configuration. There is one related discussion I handled before, you will not have the same issue since your shadow would not so big.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109207/receiving-mqtt-shadow-data-before-nrf_cloud_evt_ready"&gt;(+) Receiving MQTT Shadow Data before NRF_CLOUD_EVT_READY - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication with nrfCloud from external devices</title><link>https://devzone.nordicsemi.com/thread/496833?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2024 13:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:601eefb2-d5d6-4784-8c63-6e0b342e651f</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Hi Charlie,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m in the process of trying to implement a function that lets me read the messages from the nRF Cloud terminal and if I get a certain phrase then I set my GPIO pins to HIGH. I&amp;#39;ve been looking through the documentation for the Cloud Log and I&amp;#39;m able to find information on how to send messages to the Cloud but I&amp;#39;m not sure where to find more information on receiving information?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/nrf_cloud_log.html#lib-nrf-cloud-log"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/nrf_cloud_log.html#lib-nrf-cloud-log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Basically what I&amp;#39;m looking for is being able to read the message content received from the cloud terminal. I am able to tell if I did receive data from the terminal now I want to be able to read and use that information.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any recommendations on where to look?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication with nrfCloud from external devices</title><link>https://devzone.nordicsemi.com/thread/496641?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 13:12:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b92b7ee-17fd-4e82-9eed-1db00d1d75d4</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;You can refer to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf9160/page/nRF9160_html5_keyfeatures.html"&gt;nRF9160 Product Specification (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication with nrfCloud from external devices</title><link>https://devzone.nordicsemi.com/thread/496633?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 13:02:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0522625e-a3f8-45ea-91af-de9bf56ee69d</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Gotcha, that makes this a little easier for me as someone who&amp;#39;s trying to figure how to begin learning to code with the Thingy!&lt;/p&gt;
&lt;p&gt;One quick question, when you configure the pins how do you differentiate between the GPIO pins on the nRF52 chip and the nRF91 chip? I want to toggle the pins associated with the NMOS transistors so I know they are P0.13-16. so do I just use 13-16 or is there another way to reference them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication with nrfCloud from external devices</title><link>https://devzone.nordicsemi.com/thread/496630?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 12:53:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:521fa448-c455-4d21-bf5e-8b8ef33cee11</guid><dc:creator>Charlie</dc:creator><description>[quote user="witch_mountain"]&lt;p&gt;So what I would need to do then is add some code to the Asset Tracker to define GPIO control? That means using #include &amp;lt;drivers/gpio.h&amp;gt; correct?&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t remember/find where I read it in provided documentation but it had something along the lines of if you want to have access to Cloud capabilities you can have the asset tracker running in the background and then have new code uploaded to do other things but I&amp;#39;m not sure if that even correct/how that would be implemented?&lt;/p&gt;[/quote]
&lt;p&gt;Just share you some idea:&lt;/p&gt;
&lt;p&gt;For GPIO control, you can easily find some sample codes in devzone, or just refer to the AT#XGPIO implementation source codes.&lt;/p&gt;
&lt;p&gt;For the message parsing, let&amp;#39;s say you send a message &amp;quot;GPIO HIGHT&amp;quot; from nRF Cloud, add a filer for this command in message receiver codes (it currently prints out all received messages in log) and set GPIO=1 under it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication with nrfCloud from external devices</title><link>https://devzone.nordicsemi.com/thread/496624?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 12:43:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c4fc5bc-7b51-4d26-a096-30cd54f84c59</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Hi Charlie,&amp;nbsp;&lt;/p&gt;
[quote userid="93921" url="~/f/nordic-q-a/112929/communication-with-nrfcloud-from-external-devices/496590"]Any REST client(e.g. nRF Cloud Device management terminal, your own cloud service,&amp;nbsp;postman)--------SendDeviceMessage-----&amp;gt; nRF Cloud ---------MQTT API---------&amp;gt; nRF91 Device[/quote]
&lt;p&gt;I was slightly confused when the documentation for this Endpoint but the message path clears that up thank you.&amp;nbsp;&lt;/p&gt;
[quote userid="93921" url="~/f/nordic-q-a/112929/communication-with-nrfcloud-from-external-devices/496590"]When you run Assert Tracker v2 sample, the shell only support AT commands from modem. You need to add codes for GPIO operation when the device receives some specific message you defined for GPIO control.[/quote]
&lt;p&gt;So what I would need to do then is add some code to the Asset Tracker to define GPIO control? That means using #include &amp;lt;drivers/gpio.h&amp;gt; correct?&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t remember/find where I read it in provided documentation but it had something along the lines of if you want to have access to Cloud capabilities you can have the asset tracker running in the background and then have new code uploaded to do other things but I&amp;#39;m not sure if that even correct/how that would be implemented?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication with nrfCloud from external devices</title><link>https://devzone.nordicsemi.com/thread/496590?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 10:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:404708ec-0b01-4ecb-991f-4855dd832015</guid><dc:creator>Charlie</dc:creator><description>[quote user="witch_mountain"]I got caught up with a few things but to follow up your answer with using the SendDeviceMessage Endpoint, is this available to be used if my device was using the MQTT API?[/quote]
&lt;p&gt;I do not quite understand your request. Following is the message path when you are using&amp;nbsp;REST API&amp;nbsp;&lt;span&gt;SendDeviceMessage Endpoint. Is this want you want?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Any REST client(e.g. nRF Cloud Device management terminal, your own cloud service,&amp;nbsp;postman)--------SendDeviceMessage-----&amp;gt; nRF Cloud ---------MQTT API---------&amp;gt; nRF91 Device&lt;/p&gt;
[quote user="witch_mountain"]Also, regardless of the syntax, for the actual message/data I&amp;#39;m sending what would change to make it toggle the GPIO pins on the SiP? I know there are the AT Commands available for this but when I tried using&amp;nbsp;[/quote]
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/applications/serial_lte_modem/README.html"&gt;Serial LTE modem (nordicsemi.com)&lt;/a&gt;&amp;nbsp;support following commands, AT#XGPIO is one of the proprietary AT commands only supported by SLM sample.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Modem-specific AT commands -&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands_nrf91x1/page/REF/at_commands/intro_nrf91x1.html"&gt;nRF91x1 AT Commands Reference Guide&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/intro_nrf9160.html"&gt;nRF9160 AT Commands Reference Guide&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Proprietary AT commands -&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/applications/serial_lte_modem/doc/AT_commands.html#slm-at-commands"&gt;&lt;span&gt;SLM-specific AT commands&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;When you run Assert Tracker v2 sample, the shell only support AT commands from modem. You need to add codes for GPIO operation when the device receives some specific message you defined for GPIO control.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication with nrfCloud from external devices</title><link>https://devzone.nordicsemi.com/thread/496271?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 15:17:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30f56f96-4b94-44d4-ac04-83d9f3230645</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Hi Charlie!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I got caught up with a few things but to follow up your answer with using the SendDeviceMessage Endpoint, is this available to be used if my device was using the MQTT API?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I am able to use this endpoint to I enter the curl command into the terminal on nRF Cloud or do I enter something similar to the sample found in the Cloud API into the cloud terminal?&amp;nbsp;&lt;a href="https://api.nrfcloud.com/v1/#tag/Messages/operation/SendDeviceMessage"&gt;https://api.nrfcloud.com/v1/#tag/Messages/operation/SendDeviceMessage&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, regardless of the syntax, for the actual message/data I&amp;#39;m sending what would change to make it toggle the GPIO pins on the SiP? I know there are the AT Commands available for this but when I tried using&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;gt; AT#XGPIO=0,13,1
ERROR
&amp;gt; AT#XGPIO=2,13,1
ERROR
&amp;gt; AT#XGPIO=1,13
ERROR&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I thought I might test them out and see how it works with an LED connected to NMOS 1 on the Thingy 91. However, the terminal kept giving me errors even when I tried to read the state of the GPIO. I&amp;#39;m wondering if I need to add like a GPIO library/package in main.c? At the moment my device is just running the asset tracker v2 application (LTE).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m not sure how to go about actually using the&amp;nbsp;&lt;span&gt;SendDeviceMessage&amp;nbsp;Endpoint for my purpose here.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication with nrfCloud from external devices</title><link>https://devzone.nordicsemi.com/thread/493584?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2024 08:23:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4ea7f76-c31c-44f2-9944-c3b39eaaa320</guid><dc:creator>Charlie</dc:creator><description>[quote user="witch_mountain"]So if my Thingy is connected to the wall via USB I wouldn&amp;#39;t be able to use Connect for Desktop because it&amp;#39;s not plugged into the computer.&amp;nbsp;[/quote]
&lt;p&gt;Yes, because the nRF Connect for Desktop is running on PC with Mac/Win/Linux.&amp;nbsp;&lt;/p&gt;
[quote user="witch_mountain"]Also, I went to the DevZone post you pointed me towards and found the documentation for that command. The sample on the SDK is only available for the 9160DK but I&amp;#39;m assuming the command and logic can be implemented with the Thingy 91?[/quote]
&lt;p&gt;Yes, the nRF Cloud can be used with all nRF91 devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication with nrfCloud from external devices</title><link>https://devzone.nordicsemi.com/thread/493413?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 12:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bc4312f-ea18-4049-b320-021881e87c8f</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Hi Charlie!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you so much for your reply, this really helps me plan through this project! Just to clarify this:&amp;nbsp;&lt;/p&gt;
[quote userid="93921" url="~/f/nordic-q-a/112929/communication-with-nrfcloud-from-external-devices/493383"]Yes, as long as you connect the USB port with PC.[/quote]
&lt;p&gt;So if my Thingy is connected to the wall via USB I wouldn&amp;#39;t be able to use Connect for Desktop because it&amp;#39;s not plugged into the computer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, I went to the DevZone post you pointed me towards and found the documentation for that command. The sample on the SDK is only available for the 9160DK but I&amp;#39;m assuming the command and logic can be implemented with the Thingy 91?&lt;/p&gt;
&lt;p&gt;Thanks again for all the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication with nrfCloud from external devices</title><link>https://devzone.nordicsemi.com/thread/493383?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 11:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97f43821-a7eb-4ef1-904f-1500da42d990</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1. In general are you able to drive/control a GPIO pin through a cloud service? I&amp;#39;m already assuming this is a no since these are mostly for collecting and transforming data but just to make sure.&amp;nbsp;[/quote][quote user=""]2. Generally to drive the GPIO NMOS for the nRF91 SiP on the Thingy 91 would be done through an LTE connection, is it possible to do this through creating an external application like an app or website? So you could press a button on this application and that would set the variable assigned to a pin to be set to HIGH and then it drives an LED or whatever would be connected to the GPIO pin?[/quote]
&lt;p&gt;The answer is yes, the device can&amp;nbsp;change&amp;nbsp;GPIO state if you send a specific command through cloud. See the method mentioned in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/100997/using-nrf9160-dk-and-nrfcloud---control-gpio-from-the-nrfcloud?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;(+) Using nrf9160-DK and nrfCloud - Control GPIO from the nrfCloud - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
[quote user=""]3. Also if I have my Thingy plugged into the wall to power, I should still be able to use the Serial Monitor application on nRF Connect for Desktop to communicate via AT commands correct?&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;Yes, as long as you connect the USB port with PC.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>