<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/8414" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2013-05-16T12:01:55+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/8414</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2013-05-16T12:01:55+02:00</updated>

		<published>2013-05-16T12:01:55+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25280#p25280</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25280#p25280"/>
		<title type="html"><![CDATA[Re: v-usb vs rs232 transfer rate]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25280#p25280"><![CDATA[
Because there are no buffer overruns in the normal operation, you can calculate it yourself.<br />91% loss. Since you get only 9kS out of 100kS in one epoch.<br /><br />Best regards<p>Statistics: Posted by Guest — Thu May 16, 2013 12:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[james_monroe]]></name></author>
		<updated>2013-05-16T10:48:51+02:00</updated>

		<published>2013-05-16T10:48:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25279#p25279</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25279#p25279"/>
		<title type="html"><![CDATA[Re: v-usb vs rs232 transfer rate]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25279#p25279"><![CDATA[
<blockquote><div><cite>vouvoume wrote:</cite>I use an indicator flag, which will be set if adc is ready but value can not be written to the buffer.<br />(Not because of buffer overflow, but because of pending USB interrupts).<br /><br />And yes, you will definitly loose samples - even with maximum prescaler.<br /><br />Best regards</div></blockquote><br /><br />And for example. If i have 100ksps sampling rate and transfering buffer which has size of 254B with speed 9kBps. How many samples will I lose while sending data to PC<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=19686">james_monroe</a> — Thu May 16, 2013 10:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2013-05-13T12:30:15+02:00</updated>

		<published>2013-05-13T12:30:15+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25260#p25260</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25260#p25260"/>
		<title type="html"><![CDATA[Re: v-usb vs rs232 transfer rate]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25260#p25260"><![CDATA[
I use an indicator flag, which will be set if adc is ready but value can not be written to the buffer.<br />(Not because of buffer overflow, but because of pending USB interrupts).<br /><br />And yes, you will definitly loose samples - even with maximum prescaler.<br /><br />Best regards<p>Statistics: Posted by Guest — Mon May 13, 2013 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[james_monroe]]></name></author>
		<updated>2013-05-12T21:23:19+02:00</updated>

		<published>2013-05-12T21:23:19+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25257#p25257</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25257#p25257"/>
		<title type="html"><![CDATA[Re: v-usb vs rs232 transfer rate]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25257#p25257"><![CDATA[
and other question. if i use circular buffer to store adc samples. would i lose some samples while transfering for example buffer of 254B to PC<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=19686">james_monroe</a> — Sun May 12, 2013 9:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2013-05-04T20:38:22+02:00</updated>

		<published>2013-05-04T20:38:22+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25227#p25227</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25227#p25227"/>
		<title type="html"><![CDATA[Re: v-usb vs rs232 transfer rate]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25227#p25227"><![CDATA[
A special command sends the bufferstate from micro to host.<br />Then the host can estimate waittimes to poll the micro.<br /><br />Basically there is no other way. Even interrupt endpoints are polled by the host.<br /><br />Best regards<p>Statistics: Posted by Guest — Sat May 04, 2013 8:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[james_monroe]]></name></author>
		<updated>2013-05-04T20:33:25+02:00</updated>

		<published>2013-05-04T20:33:25+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25225#p25225</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25225#p25225"/>
		<title type="html"><![CDATA[Re: v-usb vs rs232 transfer rate]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25225#p25225"><![CDATA[
<blockquote><div><cite>vouvoume wrote:</cite>This project should become an example on and for tinyUSBboard (&quot;<a href="http://matrixstorm.com/avr/tinyusbboard/" class="postlink">http://matrixstorm.com/avr/tinyusbboard/</a>&quot;).<br /><br />Because this board provides 16 MHz the &quot;oscilloscope&quot; samples in &quot;running mode&quot; with maximum rate (100ksps?) and 8bit resolution.<br />ADC is implemented as interrupt, but always stores the current ADC uninterruptable, while multibuffer stuff is interruptable to not block V-USB.<br />Some of the samples inbetween one buffer period are dropped, but this should keep jitter to a minimal level.<br /><br />The number of buffers and their size can be configured within the source code of the firmware. The host application always supports any parameter, since it is handshaked during enumeration.<br />At the moment I use 16 buffers 56bytes each (there the 9.3kBps came from), since this provides good latency with very very rare buffer underruns. For communication with host there is a special protocol for first checking,<br />if a new buffer is available...<br /><br />If latency is no problem, it would be possible to reduce the number of buffers down to two and therefore increase their size to 450 bytes each. Because of less overhead you then could transmit about 10 ksps.<br /><br />Based on 9kSps and sampling theorem the maximum frequency displayable should be 4,5kHz.<br />But lets say about 3kHz to 4kHz? since we also have a little bit of jitter within each sample.<br />But anyway it is just a demonstration example, if you want an oscillocope - use your soundcard <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=";-)" title="Wink" /><br /><br />Best regards</div></blockquote><br /><br /><br />and how do you intiate sending buffer from microcontroller to computer. do you constantly send signals from computer to device or there is some other method?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=19686">james_monroe</a> — Sat May 04, 2013 8:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2013-05-04T18:43:23+02:00</updated>

		<published>2013-05-04T18:43:23+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25223#p25223</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25223#p25223"/>
		<title type="html"><![CDATA[Re: v-usb vs rs232 transfer rate]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25223#p25223"><![CDATA[
This project should become an example on and for tinyUSBboard (&quot;<a href="http://matrixstorm.com/avr/tinyusbboard/" class="postlink">http://matrixstorm.com/avr/tinyusbboard/</a>&quot;).<br /><br />Because this board provides 16 MHz the &quot;oscilloscope&quot; samples in &quot;running mode&quot; with maximum rate (100ksps?) and 8bit resolution.<br />ADC is implemented as interrupt, but always stores the current ADC uninterruptable, while multibuffer stuff is interruptable to not block V-USB.<br />Some of the samples inbetween one buffer period are dropped, but this should keep jitter to a minimal level.<br /><br />The number of buffers and their size can be configured within the source code of the firmware. The host application always supports any parameter, since it is handshaked during enumeration.<br />At the moment I use 16 buffers 56bytes each (there the 9.3kBps came from), since this provides good latency with very very rare buffer underruns. For communication with host there is a special protocol for first checking,<br />if a new buffer is available...<br /><br />If latency is no problem, it would be possible to reduce the number of buffers down to two and therefore increase their size to 450 bytes each. Because of less overhead you then could transmit about 10 ksps.<br /><br />Based on 9kSps and sampling theorem the maximum frequency displayable should be 4,5kHz.<br />But lets say about 3kHz to 4kHz? since we also have a little bit of jitter within each sample.<br />But anyway it is just a demonstration example, if you want an oscillocope - use your soundcard <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=";-)" title="Wink" /><br /><br />Best regards<p>Statistics: Posted by Guest — Sat May 04, 2013 6:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[james_monroe]]></name></author>
		<updated>2013-05-04T17:31:12+02:00</updated>

		<published>2013-05-04T17:31:12+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25222#p25222</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25222#p25222"/>
		<title type="html"><![CDATA[Re: v-usb vs rs232 transfer rate]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25222#p25222"><![CDATA[
One more question. You say that you are working on osciloscope project. What is the max frequency of measured signal which you can show correct graphically?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=19686">james_monroe</a> — Sat May 04, 2013 5:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2013-05-04T15:48:03+02:00</updated>

		<published>2013-05-04T15:48:03+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25221#p25221</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25221#p25221"/>
		<title type="html"><![CDATA[Re: v-usb vs rs232 transfer rate]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25221#p25221"><![CDATA[
I think over 10k is very unlikely....<br />(Esp. since my 9.3kBps are achieved by doing nothing else in the micro. and activating the large-code VUSB with faster code: &quot;USB_USE_FAST_CRC&quot;)<br />There might be some extreme low latency USB controllers within some special computers, but this will not be the general case.<br /><br />App. note 309 is based on  Igor Češko's USB implementation. This implementation should be <strong class="text-strong">even slower</strong>, since it does not<br />calculate checksums &quot;on the fly&quot;.<br />See &quot;http://www.obdev.at/products/vusb/benefits-de.html&quot; for details. (Advantages over other Firmware-Only Implementations)<br /><br />Best regards<p>Statistics: Posted by Guest — Sat May 04, 2013 3:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[james_monroe]]></name></author>
		<updated>2013-05-04T14:03:52+02:00</updated>

		<published>2013-05-04T14:03:52+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25220#p25220</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25220#p25220"/>
		<title type="html"><![CDATA[Re: v-usb vs rs232 transfer rate]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8414&amp;p=25220#p25220"><![CDATA[
and how about this topic<br /><br /><!-- l --><a class="postlink-local" href="http://forums.obdev.at/viewtopic.php?f=8&amp;t=3059">viewtopic.php?f=8&amp;t=3059</a><!-- l --><br /><br /><br />where people states that they got 24kB/s<br /><br /><br />and is avr309 better than v-usb<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=19686">james_monroe</a> — Sat May 04, 2013 2:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
