LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-18-2006, 01:48 PM   #1
sparrott
LQ Newbie
 
Registered: Mar 2006
Location: Devon
Distribution: Suse 10.1
Posts: 11

Rep: Reputation: 0
Serial Device identification problem


Hi,

I'm trying to write some java code to send stuff to my GPS device, plugged in to a serial port. I need to know the name of the port tho.

I've written stuff that loops thru the serial ports and gives me the names of the active ones, and it gives me
/dev/ttyS0 and /dev/ttyS1.

Running: setserial -bg /dev/ttyS[0-9]*

gives me this:

/dev/ttyS0 at 0x03f8 (irq = 4) is a 16550A
/dev/ttyS4: No such device or address
/dev/ttyS5: No such device or address
/dev/ttyS6: No such device or address
/dev/ttyS7: No such device or address



I'm presuming that the one I want is ttyS0, but can anyone tell me what "is a 16550A" actually means?

When I try to acces it in the java code it says "lockf(): Resource temporarily unavailable" so I'm wondering whether I've got the right port!

Thanks,
Sparrott
 
Old 08-18-2006, 01:56 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,481

Rep: Reputation: 5837Reputation: 5837Reputation: 5837Reputation: 5837Reputation: 5837Reputation: 5837Reputation: 5837Reputation: 5837Reputation: 5837Reputation: 5837Reputation: 5837
Have you googled lately?

16550A is the part number of the Universal Asynchronous Receiver/Transmitter (UART) integrated circuit installed in this PC.

cat < /dev/ttyS0 should display the raw data from your GPS receiver if it is indeed connected to the first com port.

Last edited by michaelk; 08-18-2006 at 02:00 PM.
 
Old 08-18-2006, 03:41 PM   #3
sparrott
LQ Newbie
 
Registered: Mar 2006
Location: Devon
Distribution: Suse 10.1
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you! It is the GPS.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB device as serial device BlackHatRob Linux - Hardware 1 06-08-2006 08:09 PM
USB identification problem, Sony DCR-85E kapa Linux - Hardware 1 02-12-2006 02:22 PM
REMOTE HOST IDENTIFICATION HAS CHANGED problem umeshbabu Linux - Networking 1 08-23-2005 08:29 AM
Hotplug, USB device type identification tlaresearch Programming 2 07-21-2005 09:55 AM
Ubuntu Errors: sound problems, host identification problem, and more... bad_ronald Linux - Newbie 1 09-19-2004 09:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration