<?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>USB CDC ACM and Central UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91677/usb-cdc-acm-and-central-uart</link><description>Hello 
 
 I need to combine USB CDC ACM and BLE Central role on the nrf5340dk, using nrf Connect SDK v1.9.1. I started from Peripheral UART Sample with the USB CDC ACM extension and then I changed the configuration in prj.conf to the Central role, acording</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Mar 2023 14:39:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91677/usb-cdc-acm-and-central-uart" /><item><title>RE: USB CDC ACM and Central UART</title><link>https://devzone.nordicsemi.com/thread/412790?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 14:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78597fbc-2b9b-47c1-94c5-df3b360d8908</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you please open a new case describing your issues?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM and Central UART</title><link>https://devzone.nordicsemi.com/thread/411253?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2023 07:55:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e04f43-1188-4503-9342-e098bb50517a</guid><dc:creator>simon8</dc:creator><description>&lt;p&gt;Hi, could you please share your file CMakeList.txt, i don&amp;#39;t understand how to set these commands in peripheral_uart sample:&lt;/p&gt;
&lt;div&gt;&lt;span&gt;set&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;OVERLAY_CONFIG&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;prj_cdc.conf&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;set&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;DTC_OVERLAY_FILE&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;usb.overlay&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;when i wirte them, errors pop up...&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;thanks a lot&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM and Central UART</title><link>https://devzone.nordicsemi.com/thread/402128?ContentTypeID=1</link><pubDate>Sat, 24 Dec 2022 12:00:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf1becbc-edec-4988-8067-e7be04d1e023</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;I just copied the BLE initialisaiton to the main and prj.conf &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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM and Central UART</title><link>https://devzone.nordicsemi.com/thread/399983?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2022 15:43:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3494d441-7752-4421-817a-2831cea02f8f</guid><dc:creator>Pingvin</dc:creator><description>&lt;p&gt;Could you share the source code of the project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM and Central UART</title><link>https://devzone.nordicsemi.com/thread/387574?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 19:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b79ec330-ec97-41ea-8643-c2cb628bf919</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;&lt;span&gt;Great to hear you got it working. Thank you for posting the update! :)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM and Central UART</title><link>https://devzone.nordicsemi.com/thread/387012?ContentTypeID=1</link><pubDate>Tue, 20 Sep 2022 08:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fd79c20-e545-4826-a260-42f13ed71220</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;yes, that&amp;#39;s what I wanted, to log over usb instead of uart. The thing is that those COM ports are not the &amp;quot;new&amp;quot; as it is in Peripheral UART Sample when the USB AMC Extension is activated (as described here:&amp;nbsp;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/samples/bluetooth/peripheral_uart/README.html&lt;/a&gt;&amp;nbsp;)&lt;/p&gt;
&lt;p&gt;those COM ports&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663661930099v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;are active only when the USB is connected to MCU on the side&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663662033511v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;What I needed was to make connection on nRF USB port, as the Peripheral UART Sample with USB AMC Extension does&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663662172511v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;but I was not able to combine it with BLE Central Role.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I already solved this problem by combining UART Central Sample with CDC ACM Sample instead of USB AMC Extension from UART Peripheral Sample, so now it works fine &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;&lt;/p&gt;
&lt;p&gt;have a nice day&lt;/p&gt;
&lt;p&gt;Jirik&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM and Central UART</title><link>https://devzone.nordicsemi.com/thread/386339?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 09:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a5980b5-5eea-4442-877f-57f082b4cc71</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for the project file. You said that &amp;#39;&amp;#39;&lt;span&gt;the virtual COM does not appear.&amp;#39;&amp;#39;&amp;nbsp; could you please elaborate this a bit?&amp;nbsp; I&amp;nbsp;&lt;/span&gt;have run your project on nRF5340 and also checked the com port by nrfjrpog command. It shows the right communication port.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7382.pastedimage1663230739260v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I can see inside central_usb_amc\prj_cdc.conf file that uart is disabled, and in usb.overlay file &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;{&lt;br /&gt; chosen {&lt;br /&gt; zephyr,console = &amp;amp;cdc_acm_uart0;&lt;br /&gt; };&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&amp;amp;zephyr_udc0 {&lt;br /&gt; cdc_acm_uart0: cdc_acm_uart0 {&lt;br /&gt; compatible = &amp;quot;zephyr,cdc-acm-uart&amp;quot;;&lt;br /&gt; label = &amp;quot;CDC_ACM_0&amp;quot;;&lt;br /&gt; };&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&lt;span&gt;zephyr,console decides where logging from printk and where LOG_INF goes to.&amp;nbsp; So, according to usb.overlay file, the&amp;nbsp;&lt;/span&gt;&lt;span&gt;routes logging over usb instead of uart.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Are you asking about this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM and Central UART</title><link>https://devzone.nordicsemi.com/thread/385043?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 13:23:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:643d3a5c-a148-4694-9321-3d916523513f</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;I am now trying to combine UART Central Sample and CDC ACM Sample, maybe it will work better.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM and Central UART</title><link>https://devzone.nordicsemi.com/thread/385042?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 13:22:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8ede1cd-afd7-478b-a088-49ef66d53e24</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;here is the project (without build configuration) which I had problems with.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/central_5F00_usb_5F00_amc.zip"&gt;devzone.nordicsemi.com/.../central_5F00_usb_5F00_amc.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;thans a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC ACM and Central UART</title><link>https://devzone.nordicsemi.com/thread/385033?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 12:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:487f92fa-abf3-4815-9708-e35b869cdddc</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have been looking your case. Is this possible to whole the whole project folder so that I can reproduce from here.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>