<?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>How to write and save the data in .txt file on my computer?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66331/how-to-write-and-save-the-data-in-txt-file-on-my-computer</link><description>Hi guys, 
 Based on the examples that I found in Zephyr samples documentation, I created the program where I am able to measure the voltage and temperature, and then send the data via BLE to my mobile phone. Now, I am interested to know how can I save</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Sep 2021 10:17:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66331/how-to-write-and-save-the-data-in-txt-file-on-my-computer" /><item><title>RE: How to write and save the data in .txt file on my computer?</title><link>https://devzone.nordicsemi.com/thread/329572?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 10:17:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1564d0a-9946-453f-93f0-9001c0370d2c</guid><dc:creator>lgs</dc:creator><description>&lt;p&gt;Hi Adnan,&lt;/p&gt;
&lt;p&gt;Have you solved the problem? I have a similar problem now. Can you leave a contact, and cooperate with you to solve the problem?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Gaosheng Liu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write and save the data in .txt file on my computer?</title><link>https://devzone.nordicsemi.com/thread/271843?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 14:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64f2c22b-7c25-4ca1-89b3-012044119987</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;There is no standard file transfer service in BLE. You can create a custom service that transfers the content of this file, but you would need some application on the computer that takes this information and stores it in a .txt file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Perhaps the reason you are convinced it is possible to do this is that this was a functionality in Bluetooth Classic, where you would transfer files between phones. That is a&amp;nbsp;Bluetooth Classic feature, and it is not present in Bluetooth Low Energy.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write and save the data in .txt file on my computer?</title><link>https://devzone.nordicsemi.com/thread/271840?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 14:30:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:698d438f-e152-4707-b674-65e232ffdedc</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Yes I understood that...but for example is not possible to send this txt file from NVM to my computer via BLE or on some other way? &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adnan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write and save the data in .txt file on my computer?</title><link>https://devzone.nordicsemi.com/thread/271838?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 14:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e69956c-5caf-41f6-9f24-88a2b27085ce</guid><dc:creator>Edvin</dc:creator><description>[quote user="Aduka_27"]Also, is there a possibility to use NVM (non-volatile memory) and there to create a file and store these values?[/quote]
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes. That is possible. But that would be stored on the nRF. Not the computer. The part that I am trying to explain is that the application you are writing in Zephyr is running on the microcontroller, and it is not connected to your computer. Yes, it is connected via the programmer, but that is only for programming and logging purposes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write and save the data in .txt file on my computer?</title><link>https://devzone.nordicsemi.com/thread/271813?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 13:45:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f525263a-e74d-4ec9-ae6f-ab7c818200a1</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;Thank you very much for this answer and advice. Also, on the official website (link: &lt;a href="https://docs.zephyrproject.org/2.3.0/reference/file_system/index.html"&gt;https://docs.zephyrproject.org/2.3.0/reference/file_system/index.html&lt;/a&gt;) I found this File Systems and they explained something that is quite similar to regular C method. Can you take a look on this link and see if I can use that?&lt;/p&gt;
&lt;p&gt;Also, is there a possibility to use NVM (non-volatile memory) and there to create a file and store these values?&lt;/p&gt;
&lt;p&gt;Thanks in advance and best regards,&lt;/p&gt;
&lt;p&gt;Adnan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write and save the data in .txt file on my computer?</title><link>https://devzone.nordicsemi.com/thread/271811?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 13:36:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3ab349d-a80e-4598-8adf-c6cc98d1738d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What you can look into, but this is a bit outside what we give support for, is to see if you can create an application running on Windows that connect to your device over BLE, read the temperature and save that to a .txt file on your computer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write and save the data in .txt file on my computer?</title><link>https://devzone.nordicsemi.com/thread/271810?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 13:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a288ffa-d003-4ad6-83ae-fc4e6f627b56</guid><dc:creator>Edvin</dc:creator><description>[quote user="Aduka_27"] I found that is possible to use MicroPython for creating and reading files in Zephyr.[/quote]
&lt;p&gt;&amp;nbsp;That will not work on the nRF52832. Remember that the code is running on the nRF52832 chip, and not on your computer. Since the nRF52832 is not connected to your computer, it can not access the file system on your computer. I am sorry.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write and save the data in .txt file on my computer?</title><link>https://devzone.nordicsemi.com/thread/271728?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 10:45:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9da03bdf-7db9-40b0-8bb5-8e3f6240b641</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;I use the nRF52832 DK board. I just use the existing solutions that are included in Zephyr samples and mix 2 or 3 different samples (read the voltage, measure the temperature, and send the data via BLE). I found that is possible to use MicroPython for creating and reading files in Zephyr. I only need that, to create a txt file, read the temperature, write this file in the file, and close it. That&amp;#39;s only what I need for now. And after that, I will be possible to open that file in my application folder. Is that possible with my board and Zephyr, but to program that in embedded C, not in MicroPython.&lt;/p&gt;
&lt;p&gt;If you still cannot understand what I need, this is the link where I found these functions in MicroPython:&amp;nbsp;&lt;a href="http://docs.micropython.org/en/v1.8.2/esp8266/esp8266/tutorial/filesystem.html"&gt;http://docs.micropython.org/en/v1.8.2/esp8266/esp8266/tutorial/filesystem.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance and best regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Adnan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write and save the data in .txt file on my computer?</title><link>https://devzone.nordicsemi.com/thread/271724?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 10:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62a831e4-5272-48a7-a742-d22c30b9b004</guid><dc:creator>Edvin</dc:creator><description>[quote user="Aduka_27"]The board is connected via USB to my computer[/quote]
&lt;p&gt;&amp;nbsp;What board do you refer to? The DK? You are using the nRF52832 DK, right?&lt;/p&gt;
&lt;p&gt;The reason I ask these questions is that the nRF52832 doesn&amp;#39;t have a USB peripheral. The USB port on the DK is connected to the programmer. I suspect that you are not developing a commercial product, if you intend to use the nRF52832 DK directly. However, in that case, you can use a UART terminal, such as &lt;a href="https://www.compuphase.com/software_termite.htm"&gt;Termite&lt;/a&gt;. This has an option to log the incoming data. You can do this through the Termite settings:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0815.pastedimage1601287463501v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is probably possible using other UART terminals as well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write and save the data in .txt file on my computer?</title><link>https://devzone.nordicsemi.com/thread/271550?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 13:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:043219dc-f5b6-4143-a1e5-d9e805a508af</guid><dc:creator>Aduka_27</dc:creator><description>&lt;p&gt;The board is connected via USB to my computer and I just want to write some values (in this case the voltage) in .txt file and save that file to my computer, for example in the same folder where my example is. For the second example, I will use the external power source (in my case the environment emulator) and try to do the same thing. This is the simple example in regular C, but as I mentioned I tried using that code but unsuccessfully. Do you understand better now, what I need.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance for any type of help.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adnan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write and save the data in .txt file on my computer?</title><link>https://devzone.nordicsemi.com/thread/271538?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 13:16:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26332df8-92ca-466b-b8ac-ea72898738e8</guid><dc:creator>Edvin</dc:creator><description>[quote user=""]I created the program where I am able to measure the voltage and temperature, and then send the data via BLE to my mobile phone. Now, I am interested to know how can I save the values (for example the voltage values) in .txt file on my computer?[/quote]
&lt;p&gt;&amp;nbsp;So how is the nRF connected to your computer? Or do you intend to transfer the file from the mobile phone to the computer? I am not sure I understand your setup.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>