<?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>[NRF5][adafruit-nrf52-pro-feather] Transfer audio files from PC to Adafruit board, then sending via BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35366/nrf5-adafruit-nrf52-pro-feather-transfer-audio-files-from-pc-to-adafruit-board-then-sending-via-ble</link><description>Dear all, 
 
 I am using an adafruit-nrf52-pro-feather (nrf52832) to run my project of detecting voice by this below scenario: 
 ++ Setting up: 
 [PC] ==== USB cable ===== [Adafruit] * * * BLE * * * [Phone] 
 + Audio files are very small size (less than</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Jun 2018 08:40:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35366/nrf5-adafruit-nrf52-pro-feather-transfer-audio-files-from-pc-to-adafruit-board-then-sending-via-ble" /><item><title>RE: [NRF5][adafruit-nrf52-pro-feather] Transfer audio files from PC to Adafruit board, then sending via BLE</title><link>https://devzone.nordicsemi.com/thread/136295?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 08:40:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbccea63-6288-4db7-9156-1676e49b0060</guid><dc:creator>DINH LAM</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I see, it&amp;#39;s clear description enough now.&lt;/p&gt;
&lt;p&gt;Thanks for your kind help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF5][adafruit-nrf52-pro-feather] Transfer audio files from PC to Adafruit board, then sending via BLE</title><link>https://devzone.nordicsemi.com/thread/136292?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 08:09:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a5810f1-2eb3-4943-8dce-546a8e334ac4</guid><dc:creator>DINH LAM</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi &lt;a href="https://devzone.nordicsemi.com/members/hnhoan"&gt;Nguyen Hoan Hoang&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Firstly I want to try with Nordic apps as an initial step. I will take time to follow your suggested URL.&lt;/p&gt;
&lt;p&gt;Thanks for your kind response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF5][adafruit-nrf52-pro-feather] Transfer audio files from PC to Adafruit board, then sending via BLE</title><link>https://devzone.nordicsemi.com/thread/136278?ContentTypeID=1</link><pubDate>Fri, 15 Jun 2018 07:47:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92306a17-7c39-446b-9765-110d7377e792</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The SDK has a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/app_sdcard_example.html?cp=4_0_0_4_5_34"&gt;SD card example&lt;/a&gt;&amp;nbsp;which demonstrates how to read and write data to an SD car with FatFs. The flash data storage&amp;nbsp;module on the other hand is only intended for using internal flash. (You should not put much emphasis on it being experimental though, as it is used extensively by other modules, such as the peer manager).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF5][adafruit-nrf52-pro-feather] Transfer audio files from PC to Adafruit board, then sending via BLE</title><link>https://devzone.nordicsemi.com/thread/136244?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 20:49:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e0a36dc-2732-4a76-b65a-cab8a9a41726</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;On the phone end, is it your own App that gets the data ? &amp;nbsp;You can use a custom service to send your data. &amp;nbsp;See this blog post about &lt;a href="http://embeddedsoftdev.blogspot.com/2018/02/bluetooth-le-with-nordic-nrf51-nrf52.html"&gt;transfer data from UART to BLE&lt;/a&gt;&amp;nbsp;the easy way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF5][adafruit-nrf52-pro-feather] Transfer audio files from PC to Adafruit board, then sending via BLE</title><link>https://devzone.nordicsemi.com/thread/136242?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 20:14:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9ce6f99-6b4d-4412-8165-1a83e9c3f8be</guid><dc:creator>DINH LAM</dc:creator><description>&lt;p&gt;I appreciate your kind comments.&lt;/p&gt;
&lt;p&gt;In case of I have to use SD card, I can only see some simple examples but without pin connection or how to set up the ports:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.0.0%2Findex.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.0.0%2Findex.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also the flash data storage implementation is experimental without pin connection/HW configuration description.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF5][adafruit-nrf52-pro-feather] Transfer audio files from PC to Adafruit board, then sending via BLE</title><link>https://devzone.nordicsemi.com/thread/136207?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 14:42:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:332cab2b-e23a-4d0f-b3ed-7aef43c4056a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. I do not have any more specific suggestions about UART duplexing, but I think both alternatives should be fairly simple to implement on both sides. You probably want to avoid the logger module in the SDK though, and handle the UART communication yourself, using only the UART driver.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF5][adafruit-nrf52-pro-feather] Transfer audio files from PC to Adafruit board, then sending via BLE</title><link>https://devzone.nordicsemi.com/thread/136082?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 08:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68dd64b2-d114-47c1-9047-c8b9c467decf</guid><dc:creator>DINH LAM</dc:creator><description>&lt;p&gt;The input requirement for my phone&amp;#39;s apps is&amp;nbsp;ADPCM format. Yes you are right, I will make the compress on&amp;nbsp;the PC could do it faster and easier than the nRF.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now I need some information about duplexing both UART applications as your suggestion. In worst case I would think about putting the file into SD card and read from there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF5][adafruit-nrf52-pro-feather] Transfer audio files from PC to Adafruit board, then sending via BLE</title><link>https://devzone.nordicsemi.com/thread/136076?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 08:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:133f12e2-df27-4fb9-abbd-b166d3dd4fc0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You may of course be able to compress it, but that depend on your project. As you have a PC in one end then I assume it is easier to compress on that side, and do the decompression on the phone? You can compress audio on the nRF as well, but it may not be as efficient due to the relatively slow CPU (at least if you want to compress the audio real time). If you want to do audio compression on the nRF side, then you could for example consider the &lt;a href="http://opus-codec.org/"&gt;Opus codec&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF5][adafruit-nrf52-pro-feather] Transfer audio files from PC to Adafruit board, then sending via BLE</title><link>https://devzone.nordicsemi.com/thread/136071?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 07:51:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11b0cb7c-e859-487e-8c09-f9efc57635d6</guid><dc:creator>DINH LAM</dc:creator><description>&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt; for commenting.&lt;/p&gt;
&lt;p&gt;I want to transfer the audio file at one time, as I think it&amp;#39;s not big. May be I will split it up by chunks as you said if there is no way to compress it smaller.&lt;/p&gt;
&lt;p&gt;From the SDK 14.1 I can&amp;#39;t search out some examples to proceed with tranferring a very small file to test it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF5][adafruit-nrf52-pro-feather] Transfer audio files from PC to Adafruit board, then sending via BLE</title><link>https://devzone.nordicsemi.com/thread/136069?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 07:45:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:870e87b1-5ac1-4b27-b6d4-63632b821c1c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;James,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I do not have any experience with the&amp;nbsp;Adafruit Feather nRF52 Pro, but it seems like it has some form of USB&amp;lt;-&amp;gt;UART bridge. The nRF52 only have a single UART peripheral, so if you want to both use logging and transfer audio over UART simultaneously, then you need some application specific &amp;quot;protocol&amp;quot; on top of the UART to separate the two data streams. Perhaps a simple TLV format (with only two types: log or audio). Alternatively, you could simply separate on direction, so that that all data to the nRF52 is audio data and all data from the nRF52 is log.&lt;/li&gt;
&lt;li&gt;It is difficult to say how much RAM you need for your application without knowing more about it, but the nRF52832 on the Adafruit Feather nRF52 Pro has a total of 64 kB RAM, so it is clearly not possible to fit a&amp;nbsp;100k B audio file. Do you need to transfer the file in one go, or can you split it up in chunks?&lt;/li&gt;
&lt;li&gt;I guess this is application specific. Please note that audio over BLE is not yet standardized, so you will typically need a custom app on the phone side.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>