[ gpsdrive ] oddities reading from usb
Rikard Johnels
rikard.j at rikjoh.com
Sat Aug 23 13:09:10 AKDT 2008
Might be barking up the wrong list but...
I try to get gpsdrive (and gpsd) to read from the usb dongle i use.
I cant seem to get gpsd to read it, nor can i 'hexdump -C /dev/ttyUSB0'
properly. I get all kinds of rubbish, and after a while it slips into
readable data, then after a while pops back to garbage.
Hexdump -C gives (selected cuts)
00000460 00 00 00 80 00 00 00 00 00 00 00 00 80 00 80 80 |................|
00000470 80 00 80 00 00 80 00 00 80 80 00 00 80 00 80 80 |................|
00000480 80 00 80 00 00 80 00 00 00 00 00 00 80 00 00 00 |................|
00000490 80 00 80 e0 00 80 78 80 00 80 78 80 78 f8 80 80 |......x...x.x...|
000004a0 78 78 f8 80 00 80 78 f8 80 f8 80 80 00 78 78 00 |xx....x......xx.|
000004b0 f8 00 78 78 80 00 78 00 80 00 80 00 78 78 80 80 |..xx..x.....xx..|
000004c0 78 78 80 00 78 00 f8 80 f8 f8 80 80 78 78 80 00 |xx..x.......xx..|
000004d0 78 78 80 f8 00 78 80 80 80 80 80 80 80 78 78 80 |xx...x.......xx.|
000004e0 00 78 78 80 f8 00 78 00 78 00 80 00 80 00 80 00 |.xx...x.x.......|
000004f0 80 80 78 80 80 f8 80 f8 00 f8 78 00 80 78 00 80 |..x.......x..x..|
00006070 f5 b6 55 94 b6 f6 16 b5 12 74 b9 bb 4a 65 55 94 |..U......t..JeU.|
00006080 96 55 d4 96 b5 56 94 b6 54 b5 54 94 96 55 94 b6 |.U...V..T.T..U..|
00006090 f4 b6 55 f4 96 56 b5 54 d4 a5 2d 91 b4 55 16 54 |..U..V.T..-..U.T|
000060a0 a7 fe 74 b9 37 a5 51 a5 ad a2 51 a2 5b 55 f4 95 |..t.7.Q...Q.[U..|
000060b0 56 25 51 d1 95 4a d6 76 25 59 55 aa aa aa 95 2a |V%Q..J.v%YU....*|
000060c0 52 95 b7 76 25 a2 51 5d dd 09 74 b9 3b 25 a5 59 |R..v%.Q]..t.;%.Y|
000060d0 55 a2 2b f5 96 55 b4 96 56 f4 56 56 56 54 54 55 |U.+..U..V.VVVTTU|
000060e0 55 55 14 b5 12 74 b9 6e 66 95 94 b4 97 94 36 25 |UU...t.nf.....6%|
000060f0 d9 55 a2 bd 59 b3 51 d1 95 4a d6 76 25 5d 51 a2 |.U..Y.Q..J.v%]Q.|
and after a long while i suddenly MIGHT get readable
00009720 0d 0a 24 47 50 47 53 56 2c 33 2c 33 2c 31 32 2c |..$GPGSV,3,3,12,|
00009730 32 36 2c 31 35 2c 30 32 31 2c 2c 30 38 2c 31 35 |26,15,021,,08,15|
00009740 2c 33 32 39 2c 32 31 2c 32 37 2c 30 39 2c 33 30 |,329,21,27,09,30|
00009750 34 2c 33 39 2c 30 37 2c 30 38 2c 32 39 33 2c 34 |4,39,07,08,293,4|
00009760 31 2a 37 44 0d 0a 24 47 50 52 4d 43 2c 32 30 35 |1*7D..$GPRMC,205|
00009770 30 32 37 2e 30 30 30 2c 41 2c 35 39 31 37 2e 35 |027.000,A,5917.5|
00009780 39 31 35 2c 4e 2c 30 31 38 31 35 2e 36 32 31 30 |915,N,01815.6210|
00009790 2c 45 2c 30 2e 32 39 2c 37 32 2e 31 33 2c 32 33 |,E,0.29,72.13,23|
000097a0 30 38 30 38 2c 2c 2a 33 36 0d 0a 24 47 50 47 47 |0808,,*36..$GPGG|
I cant telnet to gpsd and get anything at all.
rikard at blip:~> telnet 127.0.0.1 2947
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
(nothing echoes at all)
^]
telnet>
the odd part is i DID have it running before i upgraded gpsdrive and gpsd.
After that it is just not working.
And i HAVE downgraded them again...
And it does work flawlessly under Windows...
This is what happens as i plug it in:
usb 4-1: new full speed USB device using uhci_hcd and address 5
usb 4-1: new device found, idVendor=067b, idProduct=2303
usb 4-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 4-1: Product: USB-Serial Controller
usb 4-1: Manufacturer: Prolific Technology Inc.
usb 4-1: configuration #1 chosen from 1 choice
pl2303 4-1:1.0: pl2303 converter detected
usb 4-1: pl2303 converter now attached to ttyUSB0
and 'ps -ax |grep gpsd' gives
2550 ? S<s 0:00 /usr/sbin/gpsd -F /var/run/gpsd.socket /dev/ttyUSB0
gpsd 2.37
gpsdrive Version 2.10pre4
do i have a bad USB device or what gives???
/Rikard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20080823/f5ff8b1c/attachment.bin>
More information about the GPSdrive
mailing list