<?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>Using the nRF52840 dongle to write a text file to pc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81528/using-the-nrf52840-dongle-to-write-a-text-file-to-pc</link><description>Hello, I am pretty new to using the Nordic products and was wondering if there is a simply way to write a text file from the nRF52840 to a pc. The system is required to log data such as voltage and temperature that will be received by the nRF52840 through</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 14 Nov 2021 16:04:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81528/using-the-nrf52840-dongle-to-write-a-text-file-to-pc" /><item><title>RE: Using the nRF52840 dongle to write a text file to pc</title><link>https://devzone.nordicsemi.com/thread/338883?ContentTypeID=1</link><pubDate>Sun, 14 Nov 2021 16:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99c2cad2-dde1-4525-8249-f7a3857293cb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Joseph91"]the idea is that we would be able to plug in the dongle to any computer and be able to save the data.&amp;nbsp;[/quote]
&lt;p&gt;I do not see how that is possible, without any user interaction. And we certainly do not provide anything that can be used to control a PC via USB in the SDK. Perhaps some forum members have some suggestions, though.&lt;/p&gt;
[quote user="Joseph91"]Going back to python, is there anyway to be able to bind python modules to the dongle?&amp;nbsp;[/quote]
&lt;p&gt;I am not sure exactly what you refer to here? But if you configure USB CDC ACM&amp;nbsp;the dongle&amp;nbsp;will be a COM port seen from the PC, and you can interface this with pySerial as suggested.&lt;/p&gt;
[quote user="Joseph91"]have started to look into&amp;nbsp;&lt;span&gt;pc-ble-driver-py.&lt;/span&gt;[/quote]
&lt;p&gt;This is for serializing the SoftDevice / bluetooth APIs. Is that what you want? Mu initial understanding was that you just want to log data from the dongle to the PC? If so, the pc-ble-driver is not what you want.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nRF52840 dongle to write a text file to pc</title><link>https://devzone.nordicsemi.com/thread/338853?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 16:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7390451e-38d7-4e8f-b865-35963812c301</guid><dc:creator>Joseph91</dc:creator><description>&lt;p&gt;Ok thank you! Writing a python script that interfaces with the COM port is something that my team has begun to consider, but is not an ideal solution because the idea is that we would be able to plug in the dongle to any computer and be able to save the data.&amp;nbsp; Going back to python, is there anyway to be able to bind python modules to the dongle?&amp;nbsp; I have started to look into&amp;nbsp;&lt;span&gt;pc-ble-driver-py. I know thats for python to be able to talk to the board, so I was hoping their might be someway to use that for my purposes.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nRF52840 dongle to write a text file to pc</title><link>https://devzone.nordicsemi.com/thread/338691?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 08:03:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4816281-164d-462c-aa7a-033f045df206</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Joseph91"]I am unable to use nRF connect.[/quote]
&lt;p&gt;I see, so nRF5 SDK then (if you mant not able to use the nRF Connect &lt;em&gt;SDK&lt;/em&gt;).&lt;/p&gt;
[quote user="Joseph91"]The USB CDC ACM example was one of the first examples I looked at when starting the project; however, it seemed to only write to the serial port instead of saving the data.&amp;nbsp;[/quote]
&lt;p&gt;Yes, we do not have any solution for you that will save the data on the PC. This is probably the best approach though as it gives you the data stream on the PC so that you can do whatever you want with it.&lt;/p&gt;
[quote user="Joseph91"]I guess that is were I am getting stuck, I am struggling to understand how to actually save the data from the serial port.&amp;nbsp;[/quote]
&lt;p&gt;You mentioned python before, so I would suggest that you make a small python script that interfaces with the COM port to receive the data and write it to a file. The pySerial module is nice for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nRF52840 dongle to write a text file to pc</title><link>https://devzone.nordicsemi.com/thread/338447?ContentTypeID=1</link><pubDate>Wed, 10 Nov 2021 20:57:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:253049d5-09ca-4710-813c-17936dc3dc9b</guid><dc:creator>Joseph91</dc:creator><description>&lt;p&gt;Thanks! I am unable to use nRF connect. The idea behind the project would be to plug the dongle into any pc and be able to log and save the data without installing and applications.&amp;nbsp; The USB CDC ACM example was one of the first examples I looked at when starting the project; however, it seemed to only write to the serial port instead of saving the data.&amp;nbsp; I guess that is were I am getting stuck, I am struggling to understand how to actually save the data from the serial port.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nRF52840 dongle to write a text file to pc</title><link>https://devzone.nordicsemi.com/thread/338358?ContentTypeID=1</link><pubDate>Wed, 10 Nov 2021 11:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a940a63c-e880-4553-ace6-3bf8e0b1a209</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using the nRF Connect SDK? If so, the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.1/zephyr/samples/subsys/usb/cdc_acm/README.html"&gt;USB CDC ACM Sample Application&lt;/a&gt;&amp;nbsp;is probably the most minimal example that shows this. If you are using the nRF5 SDK you can refer to the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/usbd_cdc_acm_example.html"&gt;USB CDC ACM Example&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nRF52840 dongle to write a text file to pc</title><link>https://devzone.nordicsemi.com/thread/338258?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 20:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4494dc49-ec7c-4a06-a118-e207208eab4f</guid><dc:creator>Joseph91</dc:creator><description>&lt;p&gt;Thank you, so the nRF will be physically connected through the computers USB port.&amp;nbsp; Are you aware of any examples I could play around with to get familiar with this concept?&amp;nbsp; As someone who is new to this, I really appreciate any and all help. Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the nRF52840 dongle to write a text file to pc</title><link>https://devzone.nordicsemi.com/thread/338197?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 14:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:256817a2-1659-4038-960d-a506e14ff5d5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no&amp;nbsp;standard way to access or write to files on a computer from BLE. I suspect one of the simplest methods would be to use the Nordic UART service, and implement a client for this on the PC side, and dump he received data to a file.&lt;/p&gt;
&lt;p&gt;Or is this a question about how to log data from a nRF that is physically connected to the PC? If so, some form of logging via UART or USB would make sense, and again, dump the data to a file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>