Author Topic: High Speed USB bridge using Arduino Due  (Read 2063 times)

0 Members and 1 Guest are viewing this topic.

Offline moffyTopic starter

  • Super Contributor
  • ***
  • Posts: 1738
  • Country: au
High Speed USB bridge using Arduino Due
« on: August 20, 2018, 12:44:48 am »
I have been looking for an easy high speed USB bridge for a while when I ran across this post: https://forum.arduino.cc/index.php?topic=379897.0
Anyway I tried some slightly modified code and got: 5.1Mbytes/s using a 256 byte buffer and 8.5Mbytes/s using a 512 byte buffer. It uses the native USB port of the DUE, and is the easisest high speed USB bridge I have come across.
So this is just in case you haven't heard of it before. Attached is also my code.
 

Offline moffyTopic starter

  • Super Contributor
  • ***
  • Posts: 1738
  • Country: au
Re: High Speed USB bridge using Arduino Due
« Reply #1 on: August 21, 2018, 12:18:53 am »
I was wondering if other people would like to share their high speed USB to PC solutions with code? It would be a useful resource.
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: High Speed USB bridge using Arduino Due
« Reply #2 on: August 21, 2018, 08:35:17 am »
For the sam3x8e (arduino due), the default arduino code driving the USB communications is the main limitation on the native port,

https://www.pjrc.com/teensy/benchmark_usb_serial_receive.html

While I was researching for my own project in the past I found many implementations able to handle SD card - Native USB at up to 20MBps, but I never got to programming up that project.

as you are saying you want it to act as a "USB Bridge" you should be aware only 1 of the USB ports is native, the other is relying on a UART-USB chip, he will be your main limitation.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9018
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: High Speed USB bridge using Arduino Due
« Reply #3 on: August 22, 2018, 04:34:01 am »
Are you looking to get data into the PC or out of it? There's already an open source logic analyzer based on the FX2 and there's apparently a digital out version of the fl2k chip.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline moffyTopic starter

  • Super Contributor
  • ***
  • Posts: 1738
  • Country: au
Re: High Speed USB bridge using Arduino Due
« Reply #4 on: August 23, 2018, 12:04:23 am »
I am looking primarily to get data into the PC but bidirectional would be a benefit.
I will look into the fx2 logic analysers.
« Last Edit: August 23, 2018, 12:47:09 am by moffy »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf