NetStumbler.org Forums

Go Back   NetStumbler.org Forums > Software > Unix/Linux
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 07-18-2003   #1 (permalink)
CrackerStealth
Registered Member
 
Join Date: Feb 2003
Posts: 23
More Problems: GPSD

Alright now I'm having problems with GPSD. I compiled it and just copied is into /sbin. Then I run:

#gpsd -p /dev/ttyS0 -t 4800

I checked with ps -ax and the daemon was running. Next I typed

#telnet localhost 2947

and I don't see any GPS data, in fact nothing really shows up other then telnet connecting to the daemon. So I have two problems here really.

1) I'm not sure if i'm starting and testing the GPSD properly. Am I using telnet correctly?

2) My second problem is a bit harder. I'm not sure what port linux will recognize my serial port as. According to this website(Thinkpad 760el, http://tuxmobile.org/ir_misc.html) ttyS0 and ttylS3 are my infrared ports, but I can't find any information about what the serial port is recognized as. I've alread tried the above with ttyS0 through ttyS5. 6-20 is going to take one long time to figure out. Is there a quicker way to scan for my GPS serial port?
CrackerStealth is offline   Reply With Quote
Old 07-18-2003   #2 (permalink)
godlike
Registered Member
 
Join Date: May 2002
Posts: 20
What gps are you using? I use a garmin Etrex legend and a dolorme earthmate both work great. Did you download the newest gpsdrive?

Last edited by godlike : 07-18-2003 at 09:35 PM.
godlike is offline   Reply With Quote
Old 07-18-2003   #3 (permalink)
CrackerStealth
Registered Member
 
Join Date: Feb 2003
Posts: 23
Mine is a Deluo Serial GPS. It worked fine with Netstumbler on COM1 but I had my IR devices disabled. My main problem is I can't figure out which ttyS is my serial port. Since ttyS0 and ttys3 are my IR ports and ttyS0-ttys6 produce no results for GPSD.
CrackerStealth is offline   Reply With Quote
Old 07-19-2003   #4 (permalink)
Eyecannon
Ward River
 
Eyecannon's Avatar
 
Join Date: Aug 2002
Location: Santa Monix
Posts: 679
Once you telnet to port 2947, you have to enter commands... hitting 'r' should make it spit out data until you hit 'r' again.
__________________
No, officer, YOU are under arrest!

http://eyecannon.com/wardrive.html
Eyecannon is offline   Reply With Quote
Old 07-19-2003   #5 (permalink)
CrackerStealth
Registered Member
 
Join Date: Feb 2003
Posts: 23
Thanks but still no luck. Tried that on ports ttyS0-ttyS6 and the result was always the same.

r [ENTER]
GPSD,R=1


Still no luck figuring out what my serial port is.
CrackerStealth is offline   Reply With Quote
Old 07-19-2003   #6 (permalink)
CrackerStealth
Registered Member
 
Join Date: Feb 2003
Posts: 23
Is there any way to connect directly to the serial port in linux and get the raw data from it, like you would do with HyperTerminal in windows?
CrackerStealth is offline   Reply With Quote
Old 07-19-2003   #7 (permalink)
Eyecannon
Ward River
 
Eyecannon's Avatar
 
Join Date: Aug 2002
Location: Santa Monix
Posts: 679
Quote:
Originally posted by CrackerStealth
Is there any way to connect directly to the serial port in linux and get the raw data from it, like you would do with HyperTerminal in windows?
Yeah, just do 'cat /dev/whatever' and it will spit out whatever it's getting...
__________________
No, officer, YOU are under arrest!

http://eyecannon.com/wardrive.html
Eyecannon is offline   Reply With Quote
Old 07-19-2003   #8 (permalink)
CrackerStealth
Registered Member
 
Join Date: Feb 2003
Posts: 23
Well after doing cat /dev/ttyS0 - cat /dev/ttyS30, /dev/ttyS0 is the only one that gave didn't give me an I/O error, but it didn't produce any GPS results.

One thing I noticed when starting up my machine:

Serial Driver Version 5.05c
RQ SERIAL_PCI enabled
ttyS00 at 0x03f8 ( irq = 4 ) is a 16550A
ttys01 at 0x02f8 ( irq = 3 ) is a 16550A

Ok, I don't see any ttyS00 or ttyS01 in /dev. They also don't do CAT. What else could I possible try?
CrackerStealth is offline   Reply With Quote
Old 07-20-2003   #9 (permalink)
peekitty
Macaca
 
peekitty's Avatar
 
Join Date: Sep 2002
Location: S. Florida
Posts: 1,056
Quote:
Originally posted by CrackerStealth
Is there any way to connect directly to the serial port in linux and get the raw data from it, like you would do with HyperTerminal in windows?
Minicom might be a good starting point, and it sounds like you've tried all the obvious TTYs.

My Thinkpad required me to enable the serial port from the DOS setup utility (on a bootable floppy) before it would talk. Windows can enable it directly, but if you want to do that under Linux you need to get tpctl .
peekitty is offline   Reply With Quote
Old 07-20-2003   #10 (permalink)
CrackerStealth
Registered Member
 
Join Date: Feb 2003
Posts: 23
I installed the Thinkpad drivers and tpctl but when I try "tpctl rs1=enabled" or "tpctl rs1=on" it just says "module for that command not loaded." I tried loading the superio module "insmod superio" and it just gives me an inknown error 1025. As far as I can tell from the troubleshooting file is that the superio module isn't compaditble with my Thinkpad...
CrackerStealth is offline   Reply With Quote
Old 07-22-2003   #11 (permalink)
CrackerStealth
Registered Member
 
Join Date: Feb 2003
Posts: 23
After unsuccesfully getting tpctl to work, I went to the IBM website and downloaded the DOS utility disk. I then got a DOS 6.22 boot disk from bootdisks.com and started up my computer in DOS. I manually (using PS2.exe) disabled both my IR and Serial port. Then I changed the IRQ and address of my IR device to COM2 and changed my Serial port to IRQ and address of COM1. I restarted my computer, booted back into DOS and used the PS2.exe utility to enable the serial port then issued the power on command.

After restarting my computer into linux, "cat /dev/ttyS0" produced no GPD results, but if I start gpsd and then Kismet, Kismet is getting a GPS fix, so things appear to be working. Thanks to everyone who helped.
CrackerStealth is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 10:20 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.