in reply to Re: Re: interface with USB and perl
in thread interface with USB and perl

If you have a FS driver for your device, copying files to it is mostly reduced to a shell script that does :

mount /dev/fsminidisk /mount/md cp $* /mount/md/ umount /mount/md
In Perl, you would possibly use File::Copy to copy files, and unlink to erase files. This also assumes that the FS driver does the work of possibly converting your mp3 files to atrack format (the sound format used on minidisk players). You might have to find a way to convert mp3 to atrack unless the FS driver already does what you need.

If there is no support for Linux, and the device dosen't use a protocol that is similar to a protocol that is already supported under Linux, then you can still resort to Wine or vmWare, install the driver under the emulation, and export it to the Linux box...

perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web

Replies are listed 'Best First'.
Re: Re: Re: Re: interface with USB and perl
by Sihal (Pilgrim) on Jan 15, 2003 at 11:09 UTC
    the wine solution might be an option. I'll have a look when I get home to see if there is any drivers provided for Linux.