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 06-26-2006   #1 (permalink)
kiss2000
Registered Member
 
Join Date: Mar 2005
Posts: 27
GPSD on Cygwin

I have just installed Cygwin on my laptop, (Window$ XP, SP2) installed kismet (2006-04-R1) configured it to run 2 drones all with out any problems. But then it came to GPSD, (2.30) I have followed Renderman's guide and all is working once. Yep once, if I try to run GPSD again it fails to talk to the GPS. (a USB GPS puck with USB to serial emulator running)

If I the reinstall GPSD I start all over again, it will work once then fail. One thing that I have noticed that if I have the GPS Gate window open and give the GPSD command in Cygwin ./gpsd /dev/com10 and variations of (./gpsd -p /dev/com10 -s 4800 with and without the -k option) In the GPS Gate window it shows GPSD connecting to the com port for about a second or so then drop the connection. I can also telnet into GPSD and see the NMEA output once.

Any one with any ideas?

Last edited by kiss2000 : 06-26-2006 at 05:26 PM.
kiss2000 is offline   Reply With Quote
Old 06-27-2006   #2 (permalink)
Thorn
Did you do the math?
 
Thorn's Avatar
 
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,098
Have you tried the -k option. My undertsanding is that it's there to be used in circumstances where a USB/serial converter isn't staying open, which sounds exactly like what you're experiencing.
__________________
Thorn
"I'm The Doctor. I'm a Time Lord. I am from the planet Gallifrey in the constellation Kasterborous. I'm 903 years old and I am the man who is going to save your lives and all 6 billion people on the planet below... You got a problem with that?"
Thorn is offline   Reply With Quote
Old 06-27-2006   #3 (permalink)
kiss2000
Registered Member
 
Join Date: Mar 2005
Posts: 27
Yep, I have tried with and without the -k option. It seem like GPSD is connecting to the com port for a split second and then dropping the connection. I have also tried just about every combination of commands that I can think of to start GPSD as well. I am starting to think that this maybe a issue Windows managing the port or the USB to serial emulator software. The only thing that I can't work out is why it works once, and when it works it works really well. (full 3D fix) Then if I reinstall GPSD it will work again, once.
kiss2000 is offline   Reply With Quote
Old 06-27-2006   #4 (permalink)
Dutch
Humourless EuroMod.
 
Dutch's Avatar
 
Join Date: Mar 2004
Location: City of Mermaids, Denmark
Posts: 6,813
Quote:
Originally Posted by kiss2000
Yep, I have tried with and without the -k option. It seem like GPSD is connecting to the com port for a split second and then dropping the connection. I have also tried just about every combination of commands that I can think of to start GPSD as well. I am starting to think that this maybe a issue Windows managing the port or the USB to serial emulator software. The only thing that I can't work out is why it works once, and when it works it works really well. (full 3D fix) Then if I reinstall GPSD it will work again, once.
It might be some kind of timing issues, since you are using three layers of virtualization : USB-virtual comport driver -> GPSGate virtual comports -> Cygwin /dev/ttyS virtualization.

Have you tried dropping the middle man, and not use GPSGate ? I.E. setup cygwin and GPSD to connect to the comport supplied by the USB2serial driver ? I do realise you will not be able to share the GPS datastream with other native Win programs that way.

Dutch
__________________
All your answers are belong to Google. SEARCH DAMMIT!
Warning. Warning.
Low C8H10N4O2 level detected. Operator halted....
Dutch is offline   Reply With Quote
Old 06-27-2006   #5 (permalink)
kiss2000
Registered Member
 
Join Date: Mar 2005
Posts: 27
Quote:
Originally Posted by Dutch
It might be some kind of timing issues, since you are using three layers of virtualization : USB-virtual comport driver -> GPSGate virtual comports -> Cygwin /dev/ttyS virtualization.

Have you tried dropping the middle man, and not use GPSGate ? I.E. setup cygwin and GPSD to connect to the comport supplied by the USB2serial driver ? I do realise you will not be able to share the GPS datastream with other native Win programs that way.

Dutch
Tried that At the moment I am trying to find out why it works once. I figure that if I can work that out it might give me a clue as to what is going on.

I know that the GPS works fine as it will run GDSD 2.30 on my Linux laptop without a single problem. The USB to serial software with or without GPS Gate running works fine on all of the programs that I have used in the past. Its even worked fine with GPSD a weeks ago before I formatted the laptop.(why did I have to try Vista )

I am really starting to thing that this could be a com port issue rather than a Cygwin/GPSD issue. I am going to try it on a different box when I finish work and see what happens.
kiss2000 is offline   Reply With Quote
Old 08-01-2006   #6 (permalink)
kiss2000
Registered Member
 
Join Date: Mar 2005
Posts: 27
OK, I have come up with a fix. (well sort of) I have used Renderman's Kiswin32 package and made a quick and very dirty .Bat script.

Code:
@echo off
cd c:\kiswin32-2005-08-r1-gpsd\bin
gpsd -N /dev/com3
Then I had a thought if I could run GPSD though it why not run kismet and do away with cygwin all together. So I came up with two more .Bat script's. (both equally as dirty) The first being kismet_server.bat

Code:
@echo off
cd c:\kiswin32-2005-08-r1-gpsd
kismet_server -f \kiswin32-2005-08-R1-GPSD\ETC/kismet.conf
And the second being kismet_client.bat

Code:
cd c:\kiswin32-2005-08-r1-gpsd
kismet_client -f c:\kiswin32-2005-08-r1-gpsd/etc/kismet.conf -u c:\kiswin32-2005-08-r1-gpsd/etc/kismet_ui.conf
The next step is going to be to combine all of the .Bat scripts and and compile them into one .EXE to make a package that is very easy to use and that still gives me full control over the kismet.conf file.

PS: Dose anyone know if it is possible to use the -k option with GPSD within the kiswin32 package? I cant seem to get it to work and it is not listed withing the --help.
kiss2000 is offline   Reply With Quote
Old 08-05-2006   #7 (permalink)
goldfndr
Knight Tooth Puller
 
goldfndr's Avatar
 
Join Date: Aug 2004
Location: Bellevue, WA, USA
Posts: 182
Quote:
Originally Posted by kiss2000
PS: Dose anyone know if it is possible to use the -k option with GPSD within the kiswin32 package? I cant seem to get it to work and it is not listed withing the --help.
Have you tried the -n option?
Quote:
= don't wait for client connects to poll GPS
If you're [re]packaging it, I suggest also trying out cgps.exe, as that confirms gpsd functionality better than kismet does.
goldfndr 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:59 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.