473,545 Members | 2,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6491
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
6067
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 original destination IP address and tcp port? On FreeBSD I just use ipfw and fwd and then following works: $daddr=$client->sockhost;...
1
2045
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.... and boxes under
2
7411
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 file and receiving files over serial port in PERL. Any links or some thing. Thanks
2
4036
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. System is running Fedora core 3 whit an AMD64 3500+ - 4Gb - SATA. Locally it work great but the unirpc daemon doesn't seem to work properly. ...
2
7302
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 continue with perl
0
1027
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
2650
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 as:
9
14356
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, "That's easy, there's a lot out there, Google it,", 1 is a discussion on it without examples and the other is who knows what. I did find some...
6
4219
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 requires a socket port number of the client used in making a socket connection for validation.. is there a way in perl in which i can get the local...
0
7502
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7434
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7692
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7457
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3491
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1045
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
744
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.