<?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>Creating log file on Thingy:91</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60796/creating-log-file-on-thingy-91</link><description>Hi, 
 I might have missed the answer to this question in other threads, but: what is the best way to store/get log data from the device that is not connected directly to the computer? 
 I am testing the MQTT &amp;amp; GPS functionalities and for that I need to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 May 2020 12:36:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60796/creating-log-file-on-thingy-91" /><item><title>RE: Creating log file on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/251718?ContentTypeID=1</link><pubDate>Tue, 26 May 2020 12:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edaacc83-960a-4f88-ab0f-c6d4e07bd37c</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;You should note that &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/storage/disk/sdhc.html#sdhc"&gt;Zephyr also supports SDHC&lt;/a&gt;, which could be an alternative to storing directly to flash on the unit.&amp;nbsp;&lt;/p&gt;
[quote user="Gmaciek"]What is actually the difference between File Systems and NVS?[/quote]
&lt;p&gt;&amp;nbsp;Non-Volatile Storage is the storage space itself, while the file system is how information is stored i.e. FAT which is readable in Windows, Linux, and Mac.&amp;nbsp;The Zephyr documentation has a good &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/storage/nvs/nvs.html#non-volatile-storage-nvs"&gt;explanation of NVS&lt;/a&gt;&amp;nbsp;and the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/file_system/index.html#file-systems"&gt;file systems&lt;/a&gt; that&amp;nbsp;are supported by Zephyr.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating log file on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/250758?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 13:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdef4e2e-4532-4249-ada0-4de7d59f8a54</guid><dc:creator>Gmaciek</dc:creator><description>&lt;p&gt;Thank you for suggestions, the file system looks like something worth looking at.&lt;/p&gt;
&lt;p&gt;Recently I also came into the NVS - it seems also like an easy way to store data, however I am quite hesitant about using flash memory for such purpose. My biggest concern would be the lifetime of flash memory, I couldn&amp;#39;t get into Thingy&amp;#39;s specification, except that the maximum number of erase cycles is supposed to be 10 000.&amp;nbsp; I lack sufficient knowledge in this topic - so could you share your opinion on using the nvs for logging? Considering that I might need to log the information quite often, let&amp;#39;s say - few times a minute.&lt;/p&gt;
&lt;p&gt;What is actually the difference between File Systems and NVS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating log file on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/248901?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 11:06:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a01943f4-7824-47b6-b506-93b8b61ec4c3</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;My apologies for the late reply.&amp;nbsp;&lt;/p&gt;
[quote user="Gmaciek"]Hmm, that still requires relatively close distance to the computer/terminal, right?[/quote]
&lt;p&gt;&amp;nbsp;Yes, that is true!&amp;nbsp;&lt;/p&gt;
[quote user="Gmaciek"]Isn&amp;#39;t there any way to store the log data on the device and access it afterwards?[/quote]
&lt;p&gt;&amp;nbsp;There aren&amp;#39;t any samples at the moment, however, there are some samples/documentation in Zephyr you could look at.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.2.0/zephyr/reference/file_system/index.html#file-systems"&gt;Zephyr - File Systems&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.2.0/zephyr/samples/subsys/fs/fs.html#fs-samples"&gt;Zephyr - File System samples&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating log file on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/247618?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 15:02:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72973bcb-42b2-4c9c-9793-78a3d7741c4f</guid><dc:creator>Gmaciek</dc:creator><description>&lt;p&gt;Hmm, that still requires relatively close distance to the computer/terminal, right? Isn&amp;#39;t there any way to store the log data on the device and access it afterwards?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating log file on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/247314?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 11:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c526f597-4ae8-4cd8-aaf6-60a8006156a3</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;We do have a solution to use BLE to transfer data. There is &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/connectivity_bridge/README.html#connectivity-bridge"&gt;an application, the Connectivity Bridge,&lt;/a&gt; that you can program to your nRF52840 (nrf on the Thingy:91. Once programmed and enabled, you should be able to log via NUS to&amp;nbsp;your preferred&amp;nbsp;BLE terminal e.g. &lt;a href="https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal"&gt;this terminal for Android devices.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Let me know how that works for you!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>