LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-31-2006, 10:13 AM   #1
skmassey
LQ Newbie
 
Registered: Oct 2006
Distribution: Arch Linux
Posts: 3

Rep: Reputation: 0
Holux GPS, gpsd, and GpsDrive


I'm having problems reading GPS information from my GPS receiver, a Holux GR-213 Sirf Star III chipset. I'm currently running Arch with the 2.6.18-ARCH Kernel. First I'll start with all the information my system gives me about the device.

cat /proc/bus/usb/devices

Code:
T:  Bus=03 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=067b ProdID=2303 Rev= 3.00
S:  Manufacturer=Prolific Technology Inc.
S:  Product=USB-Serial Controller
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=pl2303
E:  Ad=81(I) Atr=03(Int.) MxPS=  10 Ivl=1ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
Dmesg when I plug in the device

Code:
ohci_hcd 0000:00:03.1: wakeup
usb 3-3: new full speed USB device using ohci_hcd and address 5
usb 3-3: configuration #1 chosen from 1 choice
pl2303 3-3:1.0: pl2303 converter detected
usb 3-3: pl2303 converter now attached to ttyUSB0
Note that I am running udev so it is actually being mounted at /dev/tts/USB0

output of lsusb

Code:
Bus 003 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
What I've tried so far is running various different flags through gpsd and trying to get it to read the gps information.

Code:
gpsd -p /dev/tts/USB0

gpsd -K -s 4800 -p /dev/tts/USB0
As far as what these commands have done, so far I have gotten little to no result. GpsDrive still tells me that no GPS is used, I am unable to cat output from /dev/tts/USB0, and telnet localhost 2947 yields no output either. My ultimate goal is to get the GPS working with GpsDrive and Kismet.
 
Old 11-05-2006, 10:28 PM   #2
skmassey
LQ Newbie
 
Registered: Oct 2006
Distribution: Arch Linux
Posts: 3

Original Poster
Rep: Reputation: 0
Fixed it. For whatever reason GPSD wouldn't read the usb device as a normal user so I had to run it as root. I feel like an idiot now, but I guess that's part of the learning experience. =\

Code:
sudo gpsd -p /dev/tts/USB0
telnet localhost 2947
R=1 #to read gps info in real time
$GPGGA,042656.000,3119.5509,N,08920.7786,W,1,08,1.3,48.7,M,-26.5,M,1118.8,0000*41
$GPGSA,A,3,29,07,26,22,10,06,21,18,,,,,1.9,1.3,1.4*38
$GPGSV,3,1,11,26,65,075,17,06,57,224,35,29,54,055,33,21,44,320,32*77
$GPGSV,3,2,11,18,39,272,23,07,29,306,34,10,16,055,24,09,11,149,25*71
$GPGSV,3,3,11,22,07,255,33,02,02,115,13,30,00,207,*4D
$GPRMC,042656.000,A,3119.5509,N,08920.7786,W,0.00,11.02,061106,,,A*43
$GPVTG,11.02,T,,M,0.00,N,0.0,K,A*3F
$GPGGA,042657.000,3119.5509,N,08920.7787,W,1,08,1.3,48.7,M,-26.5,M,1118.8,0000*41
 
Old 11-06-2006, 11:39 AM   #3
wilsonae
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by skmassey
I'm having problems reading GPS information from my GPS receiver, a Holux GR-213 Sirf Star III chipset. I'm currently running Arch with the 2.6.18-ARCH Kernel. First I'll start with all the information my system gives me about the device.

cat /proc/bus/usb/devices

Code:
T:  Bus=03 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=067b ProdID=2303 Rev= 3.00
S:  Manufacturer=Prolific Technology Inc.
S:  Product=USB-Serial Controller
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=pl2303
E:  Ad=81(I) Atr=03(Int.) MxPS=  10 Ivl=1ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
Dmesg when I plug in the device

Code:
ohci_hcd 0000:00:03.1: wakeup
usb 3-3: new full speed USB device using ohci_hcd and address 5
usb 3-3: configuration #1 chosen from 1 choice
pl2303 3-3:1.0: pl2303 converter detected
usb 3-3: pl2303 converter now attached to ttyUSB0
Note that I am running udev so it is actually being mounted at /dev/tts/USB0

output of lsusb

Code:
Bus 003 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
What I've tried so far is running various different flags through gpsd and trying to get it to read the gps information.

Code:
gpsd -p /dev/tts/USB0

gpsd -K -s 4800 -p /dev/tts/USB0
As far as what these commands have done, so far I have gotten little to no result. GpsDrive still tells me that no GPS is used, I am unable to cat output from /dev/tts/USB0, and telnet localhost 2947 yields no output either. My ultimate goal is to get the GPS working with GpsDrive and Kismet.
:Peng/dev/ttyUSB0y:


The dmesg listing indicates that the mount point of the device is /dev/ttyUSB0

do a ls -l on /dev/ttyUSB0 after the device is attached
 
Old 11-06-2006, 02:38 PM   #4
skmassey
LQ Newbie
 
Registered: Oct 2006
Distribution: Arch Linux
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by skmassey
Fixed it. For whatever reason GPSD wouldn't read the usb device as a normal user so I had to run it as root. I feel like an idiot now, but I guess that's part of the learning experience. =\

I got it fixed. Also if you notice, I'm running udev so although dmesg says its mounting it as /dev/ttyUSB0 udev is taking over and mounting it as /dev/tts/USB0

Quote:
Originally Posted by skmassey
Note that I am running udev so it is actually being mounted at /dev/tts/USB0
 
  


Reply

Tags
fixed, gpsd, gpsdrive



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
gpsd, gpsdrive, delorme tripmate amp_man Linux - Software 4 09-11-2006 09:19 PM
GPSD not working from non-root user? Archer36 Slackware 1 03-21-2006 08:54 PM
Gpsdrive SteveON Linux - Software 2 11-23-2005 08:42 AM
gpsd on a zaurus 6000L skunkburner Linux - Laptop and Netbook 4 07-07-2005 11:31 AM
Kismet gpsdrive issue Rich04 Linux - Software 1 08-14-2004 02:30 PM

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

All times are GMT -5. The time now is 08:48 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