Kirjoittaja Aihe: Miten määrittelen ttyUSB0 sarjaportiksi?  (Luettu 2792 kertaa)

lituska

  • Käyttäjä
  • Viestejä: 8
    • Profiili
Miten määrittelen ttyUSB0 sarjaportiksi?
« : 21.12.06 - klo:11.53 »
Thinkpad x20 ei omista comporttia. Yritän seurustella Garmin 12 GPS:n kanssa ArkMicron kaapelin välityksellä. Ubuntu 6.10 sisältää Ark3116 ajurin, jonka pitäisi ymmärtää ko. USB-Serial convertterikaapelia. Laitehallinta näyttääkin kaapelin tunnistetiedot ja tunnistaa laitteen: serial.port  ttyUSB0. Ongelmana on, että minun pitäisi saada winen alla toimiva g7towin ymmärtämään, että tuo Garmin on jossain comportissa (1-9). Miten kummassa kerron tuolle ohjelmalle, että sarjaportti esim. com1 sijaitsee ttyUS0:ssa???

t. Antero

lituska

  • Käyttäjä
  • Viestejä: 8
    • Profiili
Re: Miten määrittelen ttyUSB0 sarjaportiksi?
« Vastaus #1 : 22.12.06 - klo:15.00 »
Eli taitaa olla niin, että winen kautta sarjaportin käyttö on mahdotonta tai sitten g7towin ei tunnista lainkaan sarjaporttia linuxissa??? Apua tähän ongelmaan ei tunnu löytyvän.

t. AP

immoT

  • Käyttäjä
  • Viestejä: 435
    • Profiili
Re: Miten määrittelen ttyUSB0 sarjaportiksi?
« Vastaus #2 : 23.12.06 - klo:00.00 »
------------------------------------------------
Your Navigator cannot connect with GPS? Read on.
------------------------------------------------

$Id: GPS-HOWTO,v 1.1 2004/07/14 15:33:13 pavel Exp $

GPS (serial or USB) is to be mapped as a serial device in /dev system,
eg. /dev/ttyUSB0.
However, this device can be disabled for ordinary user and is accessible
only for the superuser (root) in some Linux distributions (like in Fedora).

If the Navigator application cannot connect to GPS hardware, you should
inspect the rights of the device, eg. by:

  ls -l /dev/ttyUSB0

(given that your USB is mapped as /dev/ttyUSB0). When you see "crw-------"
rights, the GPS cannot be 'open' by an ordinary user which runs Navigator.
In such case, you must set 'read' and 'write' rights for the device, ie:

  chmod a+rw /dev/ttyUSB0

Now test if the USB output can be read. After:

  stty -F /dev/ttyUSB0 speed 4800 ; cat /dev/ttyUSB0

something similar to the following text should be printed on your terminal:

$GPGGA,153453.0,5004.4385,N,01424.5524,E,1,05,,181.000000,M,,,,,*3B
$GPRMC,153453.0,A,5004.4385,N,01424.5524,E,0.00,296.00,030203,,*07
$GPGGA,153454.0,5004.4386,N,01424.5524,E,1,05,,181.000000,M,,,,,*3F
$GPRMC,153454.0,A,5004.4386,N,01424.5524,E,0.00,296.00,030203,,*03
...

This is the example of NMEA sentences, read and processed by Navigator.

immoT

  • Käyttäjä
  • Viestejä: 435
    • Profiili
Re: Miten määrittelen ttyUSB0 sarjaportiksi?
« Vastaus #3 : 23.12.06 - klo:00.03 »
Pakettienhallinnasta löytyy jotain haulla gps (etsi:kuvaus ja nimi) ohjelmia esim. gpstrans, itse en ole kokeillut.
Genimap gt reittikartta ainakin toimii suoraan winellä/feisty (Garmin gps2plus), ei tarvinnut säätää mitään.
« Viimeksi muokattu: 23.12.06 - klo:00.07 kirjoittanut immoT »

lituska

  • Käyttäjä
  • Viestejä: 8
    • Profiili
Re: Miten määrittelen ttyUSB0 sarjaportiksi?
« Vastaus #4 : 24.12.06 - klo:15.06 »
Kiitos. Oikeuksia ei ollut tarpeeksi. Nyt näkyy GPSDrivellä sijainti. Mutta G7toWin ei vieläkään toimi, joten taitaa winen puolelta kiikastaa edelleen tai sitten gt7toWin ei vaan toimi winessä???
t. AP


------------------------------------------------
Your Navigator cannot connect with GPS? Read on.
------------------------------------------------

$Id: GPS-HOWTO,v 1.1 2004/07/14 15:33:13 pavel Exp $

GPS (serial or USB) is to be mapped as a serial device in /dev system,
eg. /dev/ttyUSB0.
However, this device can be disabled for ordinary user and is accessible
only for the superuser (root) in some Linux distributions (like in Fedora).

If the Navigator application cannot connect to GPS hardware, you should
inspect the rights of the device, eg. by:

  ls -l /dev/ttyUSB0

(given that your USB is mapped as /dev/ttyUSB0). When you see "crw-------"
rights, the GPS cannot be 'open' by an ordinary user which runs Navigator.
In such case, you must set 'read' and 'write' rights for the device, ie:

  chmod a+rw /dev/ttyUSB0

Now test if the USB output can be read. After:

  stty -F /dev/ttyUSB0 speed 4800 ; cat /dev/ttyUSB0

something similar to the following text should be printed on your terminal:

$GPGGA,153453.0,5004.4385,N,01424.5524,E,1,05,,181.000000,M,,,,,*3B
$GPRMC,153453.0,A,5004.4385,N,01424.5524,E,0.00,296.00,030203,,*07
$GPGGA,153454.0,5004.4386,N,01424.5524,E,1,05,,181.000000,M,,,,,*3F
$GPRMC,153454.0,A,5004.4386,N,01424.5524,E,0.00,296.00,030203,,*03
...

This is the example of NMEA sentences, read and processed by Navigator.