<?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>Unable to use zigbee cli and additional USB classes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42692/unable-to-use-zigbee-cli-and-additional-usb-classes</link><description>The way that zb_cli_init is currently coded, it isn&amp;#39;t possible to add any additional USB classes. 
 
 zb_cli_init calls app_usb_init, adds the classes it wants and then either calls app_usbd_power_events_enable or app_usbd_enable depending on the configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Jan 2019 07:56:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42692/unable-to-use-zigbee-cli-and-additional-usb-classes" /><item><title>RE: Unable to use zigbee cli and additional USB classes</title><link>https://devzone.nordicsemi.com/thread/168614?ContentTypeID=1</link><pubDate>Wed, 30 Jan 2019 07:56:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d6abdf-b5ff-4c6a-bcc2-5ac53713c801</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I understand. I have reported this request internally. Thank you for your input! It is always helpful with user experience improvements.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use zigbee cli and additional USB classes</title><link>https://devzone.nordicsemi.com/thread/168549?ContentTypeID=1</link><pubDate>Tue, 29 Jan 2019 17:05:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ced576a-0c5a-45b3-b927-13d2a6517363</guid><dc:creator>Dave Hylands</dc:creator><description>&lt;p&gt;Yes - I realize that it can be done by editing zigbee_cli.c. My point was that there should be a way to do it without having to modify SDK files each time a new release comes out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use zigbee cli and additional USB classes</title><link>https://devzone.nordicsemi.com/thread/168412?ContentTypeID=1</link><pubDate>Tue, 29 Jan 2019 10:07:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2f2c07c-540a-4dd6-b22f-8c9ac59bfccd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I agree that zb_cli_init() does both, but you can add it in between app_usbd_init() and before usbd_enable().&lt;/p&gt;
&lt;p&gt;Look at the implementation of:&amp;nbsp;zb_cli_init() -&amp;gt;&amp;nbsp;usbd_init()&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is on line 234 in zigbee_cli.c.&lt;/p&gt;
&lt;p&gt;You can see that&amp;nbsp;app_usbd_class_append(class_cdc_acm) is called in between app_usbd_init() and app_usbd_enable().&lt;/p&gt;
&lt;p&gt;Here you can add your USB classes. Have you tried this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use zigbee cli and additional USB classes</title><link>https://devzone.nordicsemi.com/thread/167476?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 20:21:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67c4d07d-9b3e-4ef9-ae7e-b2695ab89b37</guid><dc:creator>Dave Hylands</dc:creator><description>&lt;p&gt;I tried it and it just hung. As I mentioned earlier, the documentation says that&amp;nbsp;&lt;span&gt;app_usbd_class_append needs to be called after app_usbd_init and before USB is enabled. Since zb_cli_init does both of those things, I&amp;#39;m not sure where the correct place to call&amp;nbsp;app_usbd_class_append is?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use zigbee cli and additional USB classes</title><link>https://devzone.nordicsemi.com/thread/167352?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 11:54:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d0c9cfb-0e90-4047-8f67-fa293ec4e45c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I believe it is possible to have several USB classes on the same USB peripheral, so if you want this, then you should init all of these classes prior to enabling the USB. Have you tried implementing it? Does it throw any errors?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use zigbee cli and additional USB classes</title><link>https://devzone.nordicsemi.com/thread/167238?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 02:03:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a24bd9f-95d7-427a-b5b2-eddfd3922e0d</guid><dc:creator>Dave Hylands</dc:creator><description>&lt;p&gt;The issue is that I want to use the USB for CLI, and I also want to instantiate a second CDC ACM channel as well as enabling the USB DFU trigger, but it seems that I can&amp;#39;t do these things with the existing code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to use zigbee cli and additional USB classes</title><link>https://devzone.nordicsemi.com/thread/166764?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 10:03:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28e7ecf4-d56e-4229-a308-b49bac8e0277</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I believe that the power events for the USB is enabled by default in the Zigbee cli_agent_router example from SDK2.0.0 for Thread and Zigbee.&lt;/p&gt;
&lt;p&gt;Check out:&lt;/p&gt;
&lt;p&gt;zb_zli_init() -&amp;gt;&amp;nbsp;usbd_init() -&amp;gt;&amp;nbsp;app_usbd_power_events_enable() -&amp;gt; which set the app_usbd_power_event_handler as the usb event handler. Is that what you are looking for?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is probably what you mean, but it is correct as you say. Since the nRF52840 only has one physical USB, you must configure it before starting it. So everything you want to&amp;nbsp;use the USB for you need to configure before you start the usb.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Alternatively, if you do not want to use the USB for CLI, you can remove this part, and only use the UART, but I don&amp;#39;t know whether this suits your application.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>