Hello, I was wondering if there was a way to transfer a file faster then Serial and still use USB?
Joseph
Hello, I was wondering if there was a way to transfer a file faster then Serial and still use USB?
Joseph
it depends.
What Arduino?
@camsysca I have two I have been testing. One is the Arduino uno. The other is the adafruit M4 Grand Central.
Uno - No. Are you using maximum baud rate, and still needing more?
Never mind. You know the drill. Instead of a random question,
Good Advice
I'll hazard a guess it depends on which Arduino you are going to use.
Those similar to an UNO don't have a hardware USB interface built-in so rely on the serial port as their means of communicating with the host PC.
The MKR series of boards that use one of the SAMD processors have a built-in hardware USB interface. I seem to recall that it can be configured to appear like a flash drive - perhaps that was only for programming as I thought I read that you could drag and drop files onto the drive it created.
I don't want to cross post because I have another post with what I'm trying to send and I was having problem with that. this problem optimization and speed is what I'm going to be looking into the next after I fix that problem. the file size is 173KB. Im trying to send it as fast as I can.
@markd833 Yes if you are using the adafruit bootloader you can use it as a flash drive type drag and drop. But requires to use other ways of programing it that is not arduino friendly. also when using arduino bootloader it disabled that function.
So 3-4 seconds is too slow? Can it be compressed, reduced to binary, or other? Because with the Uno, that's it. Serial can be run at 1,000,000 baud, IIRC, but my 3-4 seconds is based on running at 500 kbaud.
@camsysca still to slow what I'm trying to do.
Edit: I'm trying to get it down to the sub 1second or 1second transfer.
Your UNO isn't going to satisfy your needs. It's only running at 16MHz. And there's nowhere for the 173Kb file to be stored quickly so there will be the overhead of interacting with a storage device of some description.
@markd833 Would the grand central board work? Being its native USB and the speed is 32 Bit @ 120Mhz.
I wouldn't like to say as I'm not a SAMD expert or proficient in things USB related. When you are down at the 1 second time frame, then simply establishing the comms may take up half of that.
@markd833 Me either. Maybe someone in here might know.
Definitely. There are some SAMD users on here.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.