469,890 Members | 1,600 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,890 developers. It's quick & easy.

USB port in perl

I hope to have a Linux box sitting in the boot of my car using perl and some
CPAN modules for Ogg-Vorbis and Audio Streaming for a home-built stereo
system. I recently scored a GPS locater that plugs into a USB port, and
this. The old PC doesn't have a usb card in it, not a big deal, I'd pay a
few bucks for it, but I can't seem to find a USB module for perl?

is there a Devise::USB or equiverlant module for perl?

are there other methods of reading from a USB port in this setup? something
like `/dev/usb1 > /home/gps/gps.grab.txt` and then reading the text file
with my perl script?

or is it possible to do some cable cutting and soldering to plug a USB
device into a serial port and read with the serial module?

The protocol used by the device is a text protocol NEMA1803 or something of
the like, sent over USB 1.1?

Any ideas people?

Jul 19 '05 #1
1 6234
Ashley Harris <as*************@hotmail.com> tried to express:
is there a Devise::USB or equiverlant module for perl?
To the best of my knowledge: no.

are there other methods of reading from a USB port in this setup? something
like `/dev/usb1 > /home/gps/gps.grab.txt` and then reading the text file
with my perl script?
USB, at the level you are inquring, isn't designed to be accessed in that
way. You won't find any direct /dev/usb device. The protocol is designed
as a base hardware protocol and needs a software layer (driver class) for
each type of device you wish to access.
or is it possible to do some cable cutting and soldering to plug a USB
device into a serial port and read with the serial module?


At your own risk, but you won't get anything useful out of it.

A USB to serial converter "may" work, accessed as /dev/usb/ttyUSB??

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Manoj K.S | last post: by
2 posts views Thread by Alexandre Laplante | last post: by
reply views Thread by 7stars | last post: by
reply views Thread by xiangni330 | last post: by
9 posts views Thread by Hal Vaughan | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.