Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Garmin GPS no longer makes /dev/tty entry

  1. #11
    Join Date
    Apr 2008
    Location
    In the real world.
    Beans
    38
    Distro
    Ubuntu 12.04 Precise Pangolin

    Unhappy Re: Garmin GPS no longer makes /dev/tty entry

    Well I seem to be having the same exact problem as the original post. I try to run gpsd and...
    Code:
    bananaman@curious-george:~$ sudo gpsd -N -D 6 usb:
    gpsd: launching (Version 2.37)
    gpsd: listening on port gpsd
    gpsd: shmat(0,0,0) succeeded
    gpsd: shmat(0,0,0) succeeded
    gpsd: shmat(0,0,0) succeeded
    gpsd: shmat(0,0,0) succeeded
    gpsd: successfully connected to the DBUS system bus
    gpsd: running with effective group ID 0
    gpsd: running with effective user ID 0
    gpsd: opening GPS data source at 'usb:'
    gpsd: device open failed: No such file or directory - retrying read-only
    gpsd: read-only device open failed: No such file or directory
    gpsd: GPS device usb: nonexistent or can't be read
    As you can see I tried using "usb:" but it also failed like "/dev/ttyUSB0" did. dmesg and lsusb match what SSamiK had except that mine never worked from the start. My GPS is a Garmin GPSmap 60CSx. The GPS is set to NMEA in/out at 4800 baud and displaying that it is "connected". After trying what SSamiK said in his last post I got...
    Code:
    bananaman@curious-george:~$ sudo gpsd -N -D 6 /dev/ttyUSB0
    [sudo] password for bananaman: 
    gpsd: launching (Version 2.37)
    gpsd: listening on port gpsd
    gpsd: shmat(0,0,0) succeeded
    gpsd: shmat(0,0,0) succeeded
    gpsd: shmat(0,0,0) succeeded
    gpsd: shmat(0,0,0) succeeded
    gpsd: successfully connected to the DBUS system bus
    gpsd: running with effective group ID 0
    gpsd: running with effective user ID 0
    gpsd: opening GPS data source at '/dev/ttyUSB0'
    gpsd: speed 9600, 8N1
    gpsd: => GPS: $PASHQ,RID*28\x0d
    
    gpsd: Navcom: command dump: 0299661c0800040200001203
    gpsd: => GPS: 0299661c0800040200001203
    gpsd: Navcom: sent command 0x1c (Test Support Block)
    gpsd: Navcom: command 0x1c mode = 02, length = 0
    gpsd: Navcom: command dump: 029966200e000001ae02000071000000f203
    gpsd: => GPS: 029966200e000001ae02000071000000f203
    gpsd: Navcom: sent command 0x20 (Data Request) - data block id = ae at rate 00
    gpsd: Navcom: command dump: 029966200e00000186020a0071000000d003
    gpsd: => GPS: 029966200e00000186020a0071000000d003
    gpsd: Navcom: sent command 0x20 (Data Request) - data block id = 86 at rate 0a
    gpsd: Can't open /proc/bus/usb/devices
    gpsd: no probe matched...
    gpsd: gpsd_activate(0): opened GPS (5)
    and when I ran xgps in a second window to test it, the following was added in the first terminal:
    Code:
    gpsd: client 127.0.0.1 (0) connect on fd 6
    gpsd: checking client(0)
    gpsd: <= client(0): w+x
    gpsd: client(0): assigning channel...
    gpsd: User r8-)8-)8-)equires 2, channel type is -1
    gpsd: client(0): channel 5 already active.
    gpsd: client(0): channel 5 already active.
    gpsd: => client(0): GPSD,W=1,X=1231204502.736271
    It could not open "devices" under /proc/bus/usb because it was not there so I tried to mount it with...
    Code:
    sudo mount -t usbfs usbfs /proc/bus/usb
    and running gpsd again. This time it returned nothing when I ran gpsd with -N -D 6. When I try running Gpsdrive it says I have no GPS and xgps just freezes when I try to run it. This seems to be a long series of problems and not just one. I've probably fixed it 4 or 5 times from solutions and tutorials in threads spanning across several forums only to find another problem waiting in line.

    kitplummer, have you tried to comment out the blacklist and have you had similar results to mine? Anyone else?
    I've been working on this for two days straight and I think my eyes are bleeding now so I'm going to take a really long sleep.

  2. #12
    Join Date
    Apr 2008
    Location
    In the real world.
    Beans
    38
    Distro
    Ubuntu 12.04 Precise Pangolin

    Update

    I haven't made any breakthroughs but I have discovered something kind of obvious. gpsd works on port 2947 so what happens if you telnet to that? Well you can telnet to it and if you look in the man page for gpsd you can see all the commands it uses which can be entered through telnet.
    Code:
    bananaman@curious-george:~$ telnet localhost 2947
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    a
    GPSD,A=?
    b
    GPSD,B=9600 8 N 1
    x
    GPSD,X=1231447275.914733
    y
    GPSD,Y=?
    z
    GPSD,Z=1
    f
    GPSD,F=/dev/ttyUSB0
    I punched in a few letters and it appears that the GPS really is connected to gpsd and the problem lies somewhere between gpsd and the applications. Well that's one step closer at least, any ideas where to take this next? So far I've had no luck with qlandkarte, Gpsdrive, xgps, and kismet.

  3. #13
    Join Date
    Feb 2009
    Beans
    1

    Re: Garmin GPS no longer makes /dev/tty entry

    Hi there, I would like to buy a outdoor device like garmin extrex H, vista HCX ord legend hcx.

    For geocaching, realtime mapping and wardriving

    Befor buying I want to know if one of these devices work properly with gpsd (ubuntu 8.10 64bit) .

    I found a small tutorial...

    Code:
    1. edit /etc/modprobe.d/blacklist and add the lines
    
    # stop garmin_gps serial from loading for USB garmin devices
    
    # blacklist garmin_gps
    
    To allow the USB devices to be read and written by a non-privileged user, create a named /etc/udev/rules.d/51-garmin.rules with the following contents:
    
    SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666" 
    
    source: http://www.gpsbabel.org/os/Linux_Hotplug.html
    
    2. When the file /proc/bus/usb/devices is NOT present, it may be because the usbfs is not mounted. One way is to try mounting it, (which may fail if there is no directory /proc/bus/usb) Code:
    
    sudo mount -t usbfs usbfs /proc/bus/usb 
    
    Source: http://ubuntuforums.org/showthread.php?t=670878
    
    start  "gpsd -nND2 /dev/ttyUSB0"
    
    
    3. add  
    
    none /proc/bus/usb usbfs deflautls 0 0
    
    to /etc/fstab

    I am not sure if this works...please let me know.


    And whats the output of
    Code:
    cat /dev/ttyUSB0
    ?


    Cheers
    Last edited by JohnnySteel; February 14th, 2009 at 03:15 AM.

  4. #14
    Join Date
    Apr 2008
    Location
    In the real world.
    Beans
    38
    Distro
    Ubuntu 12.04 Precise Pangolin

    Unhappy Re: Garmin GPS no longer makes /dev/tty entry

    Hey JohnnySteel, I checked out your guide. I recently had to reinstall the OS because of hardware failure and after performing every step in your guide I realized I essentially just did everything I did before. I also got the same results. Everything worked out fine until I tested it.
    Code:
    bananaman@curious-george-2:~$ cat /dev/ttyUSB0
    cat: /dev/ttyUSB0: No such file or directory
    I then telneted into localhost on port 2947 and got the same result as before.
    I'll keep searching and messing around with it when I get the time but I'm stumped for now. Although the Garmin GPSmap60CSx is a great little GPS and one of my best upgrades ever. (previously I used outdated, water damaged maps and a lensatic compass. I kid you not.) Until proven otherwise I have to say it's not Linux compatible. Other people have had luck with other Garmins so you might want to ask some of the people that have had success. Click here for a list of GPSs that the gpsd makers have tested. I suggest you get one that can store data on a micro SD card otherwise you won't be installing any state or large custom maps.

  5. #15
    Join Date
    Jan 2010
    Beans
    1

    Re: Garmin GPS no longer makes /dev/tty entry

    I couldn't get Viking or Qlandkarte to recognize my Garmin GPS on Ubuntu 9.10 until I ran the programs with sudo, and both then worked. It appears to be a permissions issue on the device files and I'm still looking for a nice fix to get around having to run this stuff as superuser.

    Update: Aha! I editted my user id's properties and gave it all privileges, logged out, logged back in and Viking was able to download from my GPSmap60 without sudo. I'm not sure which privilege did the trick as there was nothing specific for USB.
    Last edited by gmaccrim; January 25th, 2010 at 02:29 PM. Reason: Added fix info.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •