Skip to content

Using USBTMC for streaming data #801

Answered by pigrew
kmatch98 asked this question in Q&A
Apr 22, 2021 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

The TinyUSB USBTMC driver is not optimized for streaming operations (e.g., all of a message's data must be available before a message is sent, and data is copied between buffers a few times without DMA). However, it is definitely usable at lower data rates.

USBTMC is fundamentally different than CDC. CDC is two streams of data, in and out. USBTMC is message based. For SCPI, each IN message is a reply to an OUT query. In and OUT messages do not happen simultaneously, one has to wait for the other to finish (which is different than CDC). With that in mind, a good SCPI syntax can be developed.

How do I best stream data from the logic pulse measurements onto the USB BulkIn endpoint, even whe…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@kmatch98
Comment options

@pigrew
Comment options

pigrew Apr 22, 2021
Collaborator

@kmatch98
Comment options

@kmatch98
Comment options

Answer selected by kmatch98
Comment options

You must be logged in to vote
2 replies
@kmatch98
Comment options

@pigrew
Comment options

pigrew Apr 25, 2021
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants