<?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>USBD example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68867/usbd-example</link><description>Hi everyone, 
 I want to modify the USBD example. 
 In the USBD example there&amp;#39;s a mouse but I don&amp;#39;t have to work with a mouse. 
 I want to transfer data from ADC to PC. How should I modify the example to achieve this? 
 Thanks, 
 BR</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Dec 2020 08:30:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68867/usbd-example" /><item><title>RE: USBD example</title><link>https://devzone.nordicsemi.com/thread/282805?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 08:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cca462b2-d0b5-42d3-b2fd-275813e315b7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, I&amp;nbsp;believe this would be the easiest solution to implement overall.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Adding the delimiter will increase the amount of data by a small factor, but based on our earlier discussions it doesn&amp;#39;t sound like you are planning to send huge amounts of data.&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: USBD example</title><link>https://devzone.nordicsemi.com/thread/282727?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 15:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cddfbac-5b6b-4ef6-bbe4-53eea9721f01</guid><dc:creator>alexl&amp;#246;ddek&amp;#246;pinge</dc:creator><description>&lt;p&gt;&lt;span&gt;yes, I will probably use libusb or something similar. So, in conclusion, you advise me to use exclusively the CDC ACM class and add the delimiter &amp;quot;artificially&amp;quot;?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD example</title><link>https://devzone.nordicsemi.com/thread/282726?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 15:32:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd2030e8-6eea-462a-9648-67986a706605</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is relatively straight forward to add a delimiter to the data before sending it, as long as you add some code on the receiving end to remove the delimiter and form the data into packets again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Essentially you need to define two unique 8-bit values. One for the delimiter, and one as a special character in case the delimiter value shows up in the data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;guess the question is what you plan to run on the host side if you want to run something custom?&lt;/p&gt;
&lt;p&gt;You can use something like libusb or winusb probably, to communicate more directly over bulk USB endpoints, but we don&amp;#39;t have any examples showing how to configure this on the nRF side unfortunately.&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: USBD example</title><link>https://devzone.nordicsemi.com/thread/282595?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 08:20:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9472d48-1f94-46cf-8958-aa564a8d9128</guid><dc:creator>alexl&amp;#246;ddek&amp;#246;pinge</dc:creator><description>&lt;p&gt;What do you mean for &amp;quot;generic data&amp;quot;? Is a streaming data packet a &amp;quot;generic data&amp;quot;?&lt;/p&gt;
&lt;p&gt;The problem with the CDC ACM is that it is not a packet-oriented data stream but character-oriented. In CDC ACM I don&amp;#39;t have a package delimiter. It is not very suitable for transmitting packaged binary data (I think).&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD example</title><link>https://devzone.nordicsemi.com/thread/282594?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 08:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c3799a5-ccb4-4d7d-814d-b7adf40e20e2</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you just want to send generic data I think the CDC example is the best place to start.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The CDC class is based on bulk transfer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One advantage of CDC over other USB classes is that you don&amp;#39;t need to install a USB driver on the host side, since most operating systems support CDC devices out of the box.&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: USBD example</title><link>https://devzone.nordicsemi.com/thread/282477?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 14:29:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d117d32f-13c0-4081-85dd-301006d374f5</guid><dc:creator>alexl&amp;#246;ddek&amp;#246;pinge</dc:creator><description>&lt;p&gt;Thanks for your answer,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I try to explain myself better. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Basically, I want to transmit data from the ADC of the nrf52840 to the computer. The goal is to transmit data packets in real time and therefore I think the best choice is a bulk transfer. I don&amp;#39;t need to use a default class.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To do this I&amp;#39;m starting from USB example but&amp;nbsp;i&amp;#39;m in trouble as i don&amp;#39;t have a mouse like in the example. I just want to take data from the ADC and send it to the PC. I have no HID device.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope it is clearer now, sorry for my english but I&amp;#39;m sweden..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD example</title><link>https://devzone.nordicsemi.com/thread/282468?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 14:03:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d804ef9e-be46-48d2-b912-25470824cba6</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Is there any particular USB class that you want to use?&lt;/p&gt;
&lt;p&gt;If you use the usbd_cdc_acm example you can essentially send whatever data you like, and the device will appear as a comport on the host side that you can&amp;nbsp;use to exchange data with the USB device.&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></channel></rss>