<?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>Adding usb-cdc support into nrf mesh project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41289/adding-usb-cdc-support-into-nrf-mesh-project</link><description>Hi all, 
 we would like to add usb-cdc support for our nrf mesh project. I have tried merging an usbd example project into our application but without success so far. I am having hard time to even compile. Is there a recommended way for doing this? I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Jul 2019 13:23:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41289/adding-usb-cdc-support-into-nrf-mesh-project" /><item><title>RE: Adding usb-cdc support into nrf mesh project</title><link>https://devzone.nordicsemi.com/thread/201613?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 13:23:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0741299-d0fb-4dcb-a78c-a1e43e8eb250</guid><dc:creator>JEFT</dc:creator><description>&lt;p&gt;Hello, @nrf_developer witch&amp;nbsp;version of the softdevice are you using? unfortunately I had no success using your code, it runs, but the PC doesn&amp;#39;t recognizes as a COM device&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding usb-cdc support into nrf mesh project</title><link>https://devzone.nordicsemi.com/thread/179137?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 08:35:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fa59bdc-d78c-45e1-9613-56a3a09ebaa6</guid><dc:creator>nrf_developer</dc:creator><description>&lt;p&gt;Yeah, well it&amp;#39;s working mostly fine now just make sure you have the latest version of softdevice. I believe prior versions can&amp;#39;t handle the usb and ble at the same time. Lastly, make sure you have USBD_POWER_DETECTION disabled. This is the code I used in our application (please note this may not be the best way to do that, but at least it&amp;#39;s working):&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void cdc_acm_event_handler(app_usbd_class_inst_t const * p_inst,
                                  app_usbd_cdc_acm_user_event_t event)
{
  // handle incoming data
}

static void usbd_event_handler(app_usbd_event_type_t event)
{
  // empty, we&amp;#39;re not using this one
}

APP_USBD_CDC_ACM_GLOBAL_DEF(m_app_cdc_acm,
                            cdc_acm_event_handler,
                            CDC_ACM_COMM_INTERFACE,
                            CDC_ACM_DATA_INTERFACE,
                            CDC_ACM_COMM_EPIN,
                            CDC_ACM_DATA_EPIN,
                            CDC_ACM_DATA_EPOUT,
                            APP_USBD_CDC_COMM_PROTOCOL_AT_V250
);

static void usbd_init(void)
{    
    static const app_usbd_config_t usbd_config = {
        .ev_state_proc = usbd_event_handler
    };
    ERROR_CHECK(nrf_drv_power_init(NULL));
    ERROR_CHECK(nrf_drv_clock_init());

    app_usbd_serial_num_generate();
    ERROR_CHECK(app_usbd_init(&amp;amp;usbd_config));

    app_usbd_class_inst_t const * class_cdc_acm = 
        app_usbd_cdc_acm_class_inst_get(&amp;amp;m_app_cdc_acm);
    ERROR_CHECK(app_usbd_class_append(class_cdc_acm));
}

static void start(void)
{
    if (USBD_POWER_DETECTION)
    {
        ERROR_CHECK(app_usbd_power_events_enable());
    }
    else
    {
        app_usbd_enable();
        app_usbd_start();
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding usb-cdc support into nrf mesh project</title><link>https://devzone.nordicsemi.com/thread/179112?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 07:01:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1bbcb57-72b2-4424-8749-e31d13851319</guid><dc:creator>razor_et</dc:creator><description>&lt;p&gt;Hi Bro ,&lt;/p&gt;
&lt;p&gt;Do you successful merge USB cdc &amp;amp; mesh now? I &amp;#39;m working with this purpose without success yet. Can you give me some advice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding usb-cdc support into nrf mesh project</title><link>https://devzone.nordicsemi.com/thread/160760?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 13:59:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bc34ce9-6efb-4f36-84f7-c390ca80a82b</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Lukas,&lt;/p&gt;
&lt;p&gt;We have a coexistance example using the ble_app_uart example of the SDK and the Mesh SDK. You can try to guide yourself with this example and change it to use usb-cdc. Unfortunately we don&amp;#39;t have any coexistance example with mesh and usb-cdc support. &lt;br /&gt;&lt;br /&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>