<?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>MSC and BLE UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50310/msc-and-ble-uart</link><description>Hello, 
 I&amp;#39;m trying to use the USB MSC to show up as a file system, transfer the file into RAM, and send the file via BLE to an Android phone. This is with SDK 15.3 and S140. 
 I am able to initialize the block device in ram, create the file system and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Aug 2019 12:25:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50310/msc-and-ble-uart" /><item><title>RE: MSC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/202609?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 12:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a247f9cd-53e9-482c-aede-8e84d1e0a399</guid><dc:creator>David Cerrone</dc:creator><description>&lt;p&gt;I have. I&amp;#39;ve tried doing an LS on the filesystem before and after USB is disconnected, and does not see any files that have been written to the FS.&lt;/p&gt;
&lt;p&gt;It does look like the ram block device gets uninitialized (in the SDK) when USB is stopped. I&amp;#39;ll keep debugging, but it seems like it blows the filesystem away once USB is stopped.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MSC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/202524?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 07:24:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf895f27-0cb0-4241-94c1-b0c8bbcc5bdf</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. It&amp;#39;s odd that the file disappears. Have you closed the file system from the computer (which wrote to it) before disabling the USB? For instance, by selecting to &amp;quot;Eject&amp;quot; the USB device if you are using Windows.&lt;/p&gt;
&lt;p&gt;If that does not have any effect, can you dump the memory of the file system before it is written (1), after it is written (2) and after USB is disconnected (3) so that we can know more about if it was written and how and when the content of the memory changed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MSC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/202443?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 13:04:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28d01ecd-0000-49f5-bd4d-030df4140933</guid><dc:creator>David Cerrone</dc:creator><description>&lt;p&gt;Thanks for the response. When I say disconnect, I&amp;#39;m calling app_usbd_stop(). The hardware remains connected in the USB port, as it is a USB dongle, and needs power from the USB port.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MSC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/202322?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 07:39:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f4aeed0-a63a-4fb7-ad9b-5bcd84a3477a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you elaborate on how the system is when you test this? I am particularly wondering what happens when you disconnect the USB, since you wrote initially that the file is stored in RAM. Is the device still powered, or is it reset?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MSC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/201967?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 15:54:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4cac5a3-c28a-4c56-9818-1c9a7febb1d3</guid><dc:creator>David Cerrone</dc:creator><description>&lt;p&gt;Wanted to follow up. I was able to send a file that I created manually on the file system by stopping the USB.&lt;/p&gt;
&lt;p&gt;Now I want to see when a file gets transferred to the files system, disconnect USB, and then transfer the file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I dug into app_usb_msc, and found a way to get an event when a file is transferred. But when I disconnect the USB and list out the file system, the file is not there. Any tips?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MSC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/201315?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 14:30:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f837ad4c-0014-4d35-8d42-a94ec662dbd3</guid><dc:creator>awneil</dc:creator><description>[quote userid="82037" url="~/f/nordic-q-a/50310/msc-and-ble-uart/201311"]it is the only power source[/quote]
&lt;p&gt;So just use a power-only USB socket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MSC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/201311?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 14:25:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:584de9cd-cde3-43ac-9424-d80c919f4c94</guid><dc:creator>David Cerrone</dc:creator><description>&lt;p&gt;I can&amp;#39;t unplug the dongle from the host, because it is the only power source.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did verify that if I stop the USB before reading, I can read the file okay. Although, I still hit the ASSERT on app_usbd_msc.c - line 273. I&amp;#39;m going to try and solder down an external QSPI chip to see if it&amp;#39;s an issue with using RAM. It seems like QSPI is&amp;nbsp;more supported by the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MSC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/201272?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 13:35:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff08891d-6b87-40b5-9193-630ea7f2c23e</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So have you tried it not plugged into the host? Does the f_read() then work?&lt;/p&gt;
&lt;p&gt;If it does, that would certainly suggest that it&amp;#39;s the Host OS somehow &amp;quot;locking&amp;quot; it ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MSC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/201269?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 13:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e887db30-43ec-4a7b-bc56-2cf4e61bbe29</guid><dc:creator>David Cerrone</dc:creator><description>&lt;p&gt;Thanks for the response. Sorry I didn&amp;#39;t clarify, the hardware setup is a USB dongle, that must be plugged into the host.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MSC and BLE UART</title><link>https://devzone.nordicsemi.com/thread/200839?ContentTypeID=1</link><pubDate>Sat, 27 Jul 2019 13:42:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8da6c91d-e9a7-48a3-a279-9f1d2fa3a779</guid><dc:creator>awneil</dc:creator><description>[quote userid="82037" url="~/f/nordic-q-a/50310/msc-and-ble-uart"]Is this because the host OS is disallowing the application to read the file system? [/quote]
&lt;p&gt;Quite possibly.&lt;/p&gt;
&lt;p&gt;You probably need a whole extra layer to allow multiple concurrent access to the file system.&lt;/p&gt;
&lt;p&gt;Surely, you could easily check&amp;nbsp; by having your target &lt;em&gt;not&lt;/em&gt; plugged into a Host?&lt;/p&gt;
&lt;p&gt;Would also be worth checking whether it&amp;#39;s the whole file system that&amp;#39;s &amp;quot;locked&amp;quot;, or just a particular file...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>