473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 6484
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Lincoln Yeoh | last post by:
Sorry to repost this but I still haven't figured it out and there weren't any responses. --- Say I use iptables to redirect tcp connections to my perl proxy servers. How then do I get the...
1
by: rk | last post by:
Hi, I'm trying to write a cgi/perl programs to post a report like the following format in which the the user has to feed the values(nos) in the boxes under % Done Qual Rel. Stab P1 p2 P3.......
2
by: Manoj K.S | last post by:
Hi I am very new to perl script. I am in the process of making an application to automate tesing of serial port in linux. I like to know whether some sample programs are available for sending...
2
by: Alexandre Laplante | last post by:
Hi! I really need help to fix this prob. The main problem is that I cant use the universe (Ver: 10.0.13) remote connection via TCP layer. There is no port available to connect my self whit an ODBC....
2
saranjegan
by: saranjegan | last post by:
Hello, Am in need to access a serial port from perl script, pastly am used C related CGI scripts am just shifted to perl , i need to know about its support with serial port so i can...
0
by: 7stars | last post by:
Hi... to all i am new to perl programming.I want to know " how can i interface/configure/control rfid reader with serial port using perl programming.
0
by: xiangni330 | last post by:
Hi anybody got tried installing perl in arm-linux? installed perl 5.8.8 on arm-linux and i got some problem running it. command such as perl -V perl -e "use strict" gives me error such...
9
by: Hal Vaughan | last post by:
I've done a fair amount of Googling for information on reading the serial port in C++ (and in Linux). Unfortunately, out of every 4 hits, 1 seems to be an unanswered question, 1 is someone saying,...
6
darksteel21
by: darksteel21 | last post by:
Hi to all, I am currently developing an application in perl that is capable of connecting to a server and sends information.. the server has a deamon that listens to the socket connections. It...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.