<?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>multiple nRF52840&amp;#39;s USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53529/multiple-nrf52840-s-usb-cdc-acm-instances</link><description>Hi, a question may need your kind help. Just wonder if nRF52840&amp;#39;s USB CDC ACM could support multiple instances? For example, would it support CLI as well as an another serial instance like for AT command? If could , how could I get these? Many thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Jan 2020 11:26:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53529/multiple-nrf52840-s-usb-cdc-acm-instances" /><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/231611?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 11:26:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61e27d55-1465-48da-98a5-2f77c46423b5</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Rob&lt;/p&gt;
&lt;p&gt;Now that MS effectively deprecated W7 it&amp;#39;s definitely not a recommended platform ;)&lt;/p&gt;
&lt;p&gt;The best of luck with&amp;nbsp;your project&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/231458?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 15:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0bf4f76-3df9-40c1-9761-239a53818215</guid><dc:creator>Rob Philip</dc:creator><description>&lt;p&gt;No problem. W7 is something I use less and less. I&amp;#39;m finding Linux to be more useful as a test platform these days.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks for the example - I&amp;#39;ll be able to do good things with it!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/231420?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 13:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e9c7a8c-0201-42b1-81ea-07c2148003e4</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Rob&lt;/p&gt;
&lt;p&gt;I had a similar question earlier in Devzone, but unfortunately I was unable to find a good way to label the comports.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a suspicion it is related to the .inf file in Windows 7, but I haven&amp;#39;t been able to confirm it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;CDC test&amp;quot; is the product string, which you should be able to reference separately from each CDC instance, but we don&amp;#39;t have any examples showing how to do this unfortunately (nor have we tested if this would work on Windows 7).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/231259?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 19:33:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a57810-d6eb-40f8-ba29-9b7629de02d8</guid><dc:creator>Rob Philip</dc:creator><description>&lt;p&gt;That worked quite well. But it confused Windows 7 a lot - W7 could only assign a driver to one of the CDC ports. W10 and Mac OS did fine, though. I wonder if W7 is confused because both are &amp;quot;CDC Test&amp;quot;. Any idea how one would label one of them &amp;quot;CDC Data&amp;quot; and the other &amp;quot;CDC Commands&amp;quot;?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/231238?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 16:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd5537a1-38eb-493f-98db-7a59a7ee74de</guid><dc:creator>Rob Philip</dc:creator><description>&lt;p&gt;Thank you, good sir.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I will try it today.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/231177?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 13:56:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45e9466e-36d6-42e8-9aad-43596caa2179</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Rob&lt;/p&gt;
&lt;p&gt;You will find the full example attached:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a6701e24c1344406b5796cd7b8ece460/238013_5F00_usbd_5F00_cdc_5F00_acm_5F00_dual_5F00_cdc.zip"&gt;devzone.nordicsemi.com/.../238013_5F00_usbd_5F00_cdc_5F00_acm_5F00_dual_5F00_cdc.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hopefully you will have more success with it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/230966?ContentTypeID=1</link><pubDate>Sat, 25 Jan 2020 07:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fb51fad-845b-4721-b886-77711c70dc60</guid><dc:creator>Rob Philip</dc:creator><description>&lt;p&gt;Torbj&amp;ouml;rn:&lt;br /&gt;&lt;br /&gt;I grabbed your example main file but alas it did not compile out of the box with the default parameters in the &amp;quot;CLI&amp;quot; demo. I added in app_usbd_serial_num.c and bsp_cli.c and removed &amp;quot;while (app_usbd_event_queue_process())&amp;quot; because first the function wasn&amp;#39;t being built and then when I turned on APP_USBD_CONFIG_EVENT_QUEUE_ENABLE I got a compile error indicating&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#error &amp;quot;Current CLI CDC implementation supports only USB with event queue disabled (see APP_USBD_CONFIG_EVENT_QUEUE_ENABLE)&amp;quot;&lt;/p&gt;
&lt;p&gt;so I modded it not to do that call and do nrf_cli_process instead, for each instance. But alas things did not work properly.&lt;br /&gt;&lt;br /&gt;Is there any chance you could zip up and attache&amp;nbsp; complete working project? I would like (although don&amp;#39;t *need*) to have two virtual comports between my PC and dongle for some debugging I need to do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/217698?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 08:50:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abd142d3-4688-45fe-ab50-9ee42a10299a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Good to hear you solved the SoftDevice issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding the USB serial display name I am starting to think you would have to modify the .inf file in order to set the display name of the CDC interfaces.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On Windows 8 and earlier this is quite straight forward, but on Windows 10 you can not provide an .inf file unless it is tested by Microsoft&amp;nbsp;through the &lt;a href="https://docs.microsoft.com/en-gb/windows-hardware/test/hlk/"&gt;HLK framework&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which Windows version are you using yourself?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/217229?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 03:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f342043-eb43-461b-8185-b6dd68c3d355</guid><dc:creator>OceanS</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have got a workaround for the issue that USBD would conflict with Softdevice. I swap to the example under the folder /example/peripheral/usbd_ble_uart and integrated a CLI CDC ACM instance over it. Job done although I still take more time to drill up how this example gets USBD along with Softdevice.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Still in pursuing to modify the USB serial display name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/217097?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 13:37:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67f5653f-5141-45f6-a44d-ddc8eb50f64f</guid><dc:creator>OceanS</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your quick response. Another question, it seems that USBD would not work properly with Softdevice. As you would be able to see in&amp;nbsp; nrf_drv_power.c. Any thought? Thanks.&lt;/p&gt;
&lt;p&gt;#ifdef SOFTDEVICE_PRESENT&lt;br /&gt;if (nrf_sdh_is_enabled())&lt;br /&gt;{&lt;br /&gt;return NRF_ERROR_INVALID_STATE;&lt;br /&gt;}&lt;br /&gt;#endif&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/216753?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 07:41:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60a3a2bb-fefc-4d62-905c-86ba1f29eccd</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Good question. I have been digging into the code for a while without finding a way to do this, and the developer didn&amp;#39;t know either.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It might be possible to link to a user string in the interface descriptor iInterface field, but I need some more time to try this out. I will try to get back to you on this by Monday next week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/216356?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 12:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e79a27f7-54d4-441f-bcdd-bcea791b2416</guid><dc:creator>OceanS</dc:creator><description>&lt;p&gt;Hi ovrebekk,&lt;/p&gt;
&lt;p&gt;Thanks. Got it. Actually today I also figured it out just like what you are instructing. Anyway appreciate.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Btw, could we let the windows/linux enumerate the virtual com ports with some customised name, but not as below? Because,&amp;nbsp; in my situation, there would be one serial port(device) acting as AT command interface and the other working with CLI&amp;amp;Log. Some bit silly thought, for example, could I have the displaying name as &amp;quot;USB Serial Device_AT (COM10)&amp;quot;, &amp;quot;USB Serial Device_CLIandLog(COM9).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1571832264876v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple nRF52840's USB CDC ACM instances</title><link>https://devzone.nordicsemi.com/thread/216351?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 11:55:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36bee77b-43ce-485c-86d4-c9075ae0dc39</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, the USBD driver uses a modular structure that allows you to instantiate multiple different classes, the only limitation being the number of IN/OUT endpoints supported by the USBD interface.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I made a quick version of the usbd_cdc_acm example in nRF5 SDK v15.3.0 to demonstrate this, setting up two unique CDC instances, and you will find the main file below:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a6701e24c1344406b5796cd7b8ece460/main.c"&gt;devzone.nordicsemi.com/.../main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>