Re: [Eu 3.1]How to send many files to Arduino via USB?

new topic     » goto parent     » topic index » view thread      » older message » newer message
DanM_anew said...
ryanj said...
DanM_anew said...

... I have a VS1053 MP3 Codec + SD dboard to use with Arduino Uno, which can store .mp3 files on the SD card to play through the VS1053, but I'll be mounting the assembly in such a way that makes it too hard to remove the microSD card from it to routinely change its contents; so I'm looking for a way to command delete specific files and then add a directory full of new .mp3 via the USB link from my laptop.

... but I know nothing about serial, nor if Euphoria can even access the USB port.

Don't think I saw anything here that was directly related, though I might have missed it, so any help would be appreciated.

Dan

Hello Dan.

I'm not very familiar with Arduino, but i do play with the Propeller micro-controller. I have been working on a library that can interface with FTDI USB serial devices, and it works well, although it is incomplete.

Bummer, i just looked it up, and unfortunately, "The Uno differs from all preceding boards in that it does not use the FTDI USB-to-serial driver chip. Instead, it features the Atmega16U2 (Atmega8U2 up to version R2) programmed as a USB-to-serial converter." I haven't looked into it, but if the driver is as simple as FTDI, it shouldn't be too hard to wrap the dll file. If you can find the documentation for that, it may be possible to write a euphoria wrapper without too much trouble. After you get the basic tx/rx working, you would have to spend some time designing a communication protocol and some sort of command system (if there isn't already a library out there for that).

From some things I've seen here, it seems that perhaps I can just deal with the USB port as a system recognized Com port? I don't know if I can specify baud, parity, & checksum for USB that way, and I'd have to arrange some kind of handshaking with the Uno so it has time to deal with receiving & handling the data, but does that approach seem like it's reasonable??

And if so, does anyone have any suggestions about setting USB baud, parity, and creating checksum, or any examples?

Hi Dan,

I know almost nothing about Arduino, but I had success to interface with Prolif PL-2303HXD USB-bridge using virtual COM ports and Jacques' serial port library. Please, take a look at http://openeuphoria.org/forum/113149.wc#113149

- Fernando

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu