[arm-allstar] USB GPS Cannot open serial port /dev/ttyS0

PD1ASH . pd1ash at gmail.com
Mon Jun 8 15:34:27 EDT 2020


Got it working.  It was /dev/ttyACM0.   And debug = y  must turn on.


comport = /dev/ttyACM0  ; Serial port for GPS receiver (specify this
only if using GPS receiver)
baudrate = 4800  ; Baud rate for GPS receiver (specify this only if
using GPS receiver)
debug = y ; set this for debug output




Jun  8 21:21:25] NOTICE[441] app_gps.c: sent packet(general):
PD1ASH-5>APRS,qAR,PD1ASH-VS:=5309.15N/00619.24E-PHG11010/AllStar Node
46915

Jun  8 21:28:11] NOTICE[440] app_gps.c: got lat: 5309.15359N, long:
00619.24618E, elev: -2.6M



Thanks for helping me out.


Rolf





On Mon, Jun 8, 2020 at 8:47 PM "David Panscik via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:

>  Hi David,
> There is a chance the actual port is /dev/ttyUSB0
> You can find out for sure what the port is named by using this
> commanddmesg | grep tty
>
> The command will return any USB connection that has "tty" in its name.
> Hope this helps.
> 73David - KN6GUW
>     On Monday, June 8, 2020, 11:05:21 AM PDT, David McGough via
> ARM-allstar <arm-allstar at hamvoip.org> wrote:
>
>
> For USB serial devices, use the device files: /dev/ttyUSB*
>
> So, for the 1st USB serial device, the file would be: /dev/ttyUSB0
>
>
> 73, David KB4FXC
>
>
> On Mon, 8 Jun 2020, "PD1ASH . via ARM-allstar" wrote:
>
> > Hi all,
> >
> > Question regarding USB GPS.
> >
> >
> > I would like to experiment with an external USB GPS receiver.  (u-blox 7
> -
> > GPS/GNSS Receiver)
> >
> > My AST log gives me this error: WARNING[436] app_gps.c: Cannot open
> serial
> > port /dev/ttyS0
> >
> >
> > Does anyone have any thoughts.  I believe this has to do something with
> > access rights, but i'm not sure.  I'm not a Arch Linux script writer hi.
> >
> >
> >
> > GPS.conf and Modules.conf have been changed to show the fixed (default)
> > position on APRS.fi.
> >
> >
> >
> >
> >
> > GPS.conf file
> >
> >
> > interval = 600 ; Beacon interval in seconds
> > icon = -  ; A CAR (default)  Icon do be displayed for station on APRS
> > display (see below)
> > comport = /dev/ttyS0  ; Serial port for GPS receiver (specify this only
> if
> > using GPS receiver)
> > baudrate = 4800  ; Baud rate for GPS receiver (specify this only if using
> > GPS receiver)
> > ;debug = y ; set this for debug output
> > lat=53.152645 ; Fixed (default) latitude in decimal degrees
> > lon=6.320687 ; Fixed (default) longitude in decimal degrees
> >
> >
> >
> >
> >
> > In Modules.conf i have changed noload to load.
> >
> >
> >
> > load => app_gps.so ;    GPS interface module
> >
> >
> > The USB GPS green led is blinking when it is getting a fixed signal. But
> > APRS.FI is not getting the USB GPS coordinates.
> >
> > Website APRS.FI is showing the fixed default coordinates that i have
> > entered in GPS.conf.    Even when i change the default fixed coordinates
> > in gps.conf  to a place like in Africa, the USB GPS is not working
> > properly.
> >
> >
> > Anyone have had this conflict before.
> > The Pi is seeing the USB adapter on Bus 001 Device 005: ID 1546:01a7
> U-Blox
> > AG.
> >
> >
> >
> >
> >
> >
> >
> > dmesg | grep tty
> >
> >
> > [    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0
> > bcm2708_fb.                    fbwidth=640 bcm2708_fb.fbheight=480
> > bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec000                    00
> > vc_mem.mem_size=0x40000000  root=/dev/mmcblk0p2 rw rootwait
> > console=ttyS0,115                    200 console=tty1 selinux=0
> > plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_e
> >  nable=0 kgdboc=ttyS0,115200 elevator=noop audit=0
> > [    0.001004] console [tty1] enabled
> > [    4.473861] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81,
> > base_baud                      = 0) is a PL011 rev2
> > [    7.046591] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device
> > [root at AllStar boot]#
> >
> >
> > lsusb
> >
> > Bus 001 Device 004: ID 0d8c:0012 C-Media Electronics, Inc.
> > Bus 001 Device 005: ID 1546:01a7 U-Blox AG
> > Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
> SMSC9512/9514
> > Fast Ethernet Adapter
> > Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
> > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> >
> >
> >
> >
> > Rolf,
> >
> > PD1ASH
> > _______________________________________________
> >
> > ARM-allstar mailing list
> > ARM-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> >
>
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
>
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org


More information about the ARM-allstar mailing list