#6 Using /dev/ttyUSB0

open
nobody
5
2005-07-29
2005-07-29
Anonymous
No

> gpstrans --v
GPStrans (ASCII) - Version 0.39

Nowadays, computer tend to have no serial interface any
more, but USB interface.
So I connect my Garmin eTrex via an USB<=>serial adapter.
This works fine with gpsd.
But it does not seem to be work with gpstrans.
I think it would be nice if it would.

Discussion

  • Logged In: NO

    I have GPSs that use USB (Garmin 2720 and Garmin c320).
    According to dmesg, they are on ttyUSB0:
    [51196.662521] usb 2-1: new full speed USB device using
    ohci_hcd and address 4
    [51196.701618] garmin_gps 2-1:1.0: Garmin GPS usb/tty
    converter detected
    [51196.703069] usb 2-1: Garmin GPS usb/tty converter now
    attached to ttyUSB0

    But gpstrans does not sem to like this:
    hbarta@baobab:~$ gpstrans -i -p/dev/ttyUSB0
    GPStrans (ASCII) - Version 0.39
    Copyright (c) 1995 by Carsten Tschach
    (tschach@zedat.fu-berlin.de)
    Linux/KKJ mods by Janne Sinkkonen <janne@iki.fi> (1996)
    Copyright (c) 2000 German Grid by Andreas Lange
    <andreas.lange@rhein-main.de>
    Copyright (c) 1998,2000 Mayko-mXmap mods by Matthias
    Kattanek <mattes@ugraf.com>Copyright (c) 2001 Development by
    Joao Seabra-CT2GNL <seabra@ci.AAC.uc.pt>
    ERROR: The port initialization of /dev/ttyS1 has failed.
    h

     
  • Logged In: NO

    Here's what I did:

    1. Open include/defs.h
    2. Edit the line with "#define DefaultServerDevice" to point
    to your device:
    #define DefaultServerDevice "/dev/ttyUSB0"
    3. Recompile.
    4. Throw away the Converter and use USB directly :-)

     
  • Logged In: NO

    works perfect for me:

    # gpstrans -p/dev/ttyUSB0 -i
    GPStrans (ASCII) - Version 0.39
    Copyright (c) 1995 by Carsten Tschach
    (tschach@zedat.fu-berlin.de)
    Linux/KKJ mods by Janne Sinkkonen <janne@iki.fi> (1996)
    Copyright (c) 2000 German Grid by Andreas Lange
    <andreas.lange@rhein-main.de>
    Copyright (c) 1998,2000 Mayko-mXmap mods by Matthias
    Kattanek <mattes@ugraf.com>
    Copyright (c) 2001 Development by Joao Seabra-CT2GNL
    <seabra@ci.AAC.uc.pt>
    Connected GPS [/dev/ttyUSB0] is: Garmin - V