Unknown device> JSON slave driver requires 80

Home Forums Forums Technical Support for BerryGPS and BerryGPS-IMU Unknown device> JSON slave driver requires 80

Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #7300
    TJ
    Participant

    The title of the thread is the message I get when running gpsmon.

    I’m trying to create my own car pc with a raspberry pi 3 (running raspbian stretch), an official raspberry pi 7″ touchscreen, and a BerryGPS-IMU v2.  I also have a GPIO expansion board (i.e., connects to the 40 pin connector below it and repeats it above 3 times).  So as a result  from the bottom up I have a 7″ touchscreen (facedown), Official RPi display adapter board, RPi3, GPIO expansion, BerryGPS-IMU v2.

    The wiring is such that the touchscreen is connected via the ribbon cable supplied and the 4 other touchscreen wires (red, black, green yellow) are attached to pins 02, 06, 03, and 05 respectively on one of the 40 pin headers available on the expansion board.  The BerryGPS-IMU v2 is attached to another of the 40 pin headers (pins 01-10) on the expansion board using the supplied female connector.  I can supply a photo later if that would help see what I have.

    I have been following the tutorial on the ozzmaker site for Navigating with Navit on a Raspberry Pi.  I start at the instructions for getting gps working:

    BerryGPS setup Guide for Raspberry Pi

    And get as far as the gpsmon step, whereby I get the error in the title.  To be more explicit, below are the output that I get from the steps:

    :~ $ dmesg | grep tty
    [ 0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=800 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=tty3 root=PARTUUID=ae99fc43-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait splash quiet plymouth.ignore-serial-consoles logo.nologo vt.global_cursor_default=0
    [ 0.000287] console [tty3] enabled
    [ 0.671080] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
    [ 0.672614] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 166, base_baud = 31250000) is a 16550

    :~ $ minicom -b 9600 -o -D /dev/serial0

    Welcome to minicom 2.7

    OPTIONS: I18n
    Compiled on Apr 22 2017, 09:14:19.
    Port /dev/serial0, 10:19:16

    Press CTRL-A Z for help on special keys

    519.262,,,,,0,0,,,M,,M,,*47
    $GPGLL,,,,,004519.262,V,N*75
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004519.262,V,,,,,0.00,0.00,060180,,,N*4D
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004520.262,,,,,0,0,,,M,,M,,*4D
    $GPGLL,,,,,004520.262,V,N*7F
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004520.262,V,,,,,0.00,0.00,060180,,,N*47
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004521.262,,,,,0,0,,,M,,M,,*4C
    $GPGLL,,,,,004521.262,V,N*7E
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004521.262,V,,,,,0.00,0.00,060180,,,N*46
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004522.262,,,,,0,0,,,M,,M,,*4F
    $GPGLL,,,,,004522.262,V,N*7D
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004522.262,V,,,,,0.00,0.00,060180,,,N*45
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004523.262,,,,,0,0,,,M,,M,,*4E
    $GPGLL,,,,,004523.262,V,N*7C
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004523.262,V,,,,,0.00,0.00,060180,,,N*44
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004524.262,,,,,0,0,,,M,,M,,*49
    $GPGLL,,,,,004524.262,V,N*7B
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004524.262,V,,,,,0.00,0.00,060180,,,N*43
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004525.262,,,,,0,0,,,M,,M,,*48
    $GPGLL,,,,,004525.262,V,N*7A
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004525.262,V,,,,,0.00,0.00,060180,,,N*42
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004526.262,,,,,0,0,,,M,,M,,*4B
    $GPGLL,,,,,004526.262,V,N*79
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004526.262,V,,,,,0.00,0.00,060180,,,N*41
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004527.262,,,,,0,0,,,M,,M,,*4A
    $GPGLL,,,,,004527.262,V,N*78
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004527.262,V,,,,,0.00,0.00,060180,,,N*40
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004528.262,,,,,0,0,,,M,,M,,*45
    $GPGLL,,,,,004528.262,V,N*77
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004528.262,V,,,,,0.00,0.00,060180,,,N*4F
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004529.262,,,,,0,0,,,M,,M,,*44
    $GPGLL,,,,,004529.262,V,N*76
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004529.262,V,,,,,0.00,0.00,060180,,,N*4E
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004530.262,,,,,0,0,,,M,,M,,*4C
    $GPGLL,,,,,004530.262,V,N*7E
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004530.262,V,,,,,0.00,0.00,060180,,,N*46
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004531.262,,,,,0,0,,,M,,M,,*4D
    $GPGLL,,,,,004531.262,V,N*7F
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004531.262,V,,,,,0.00,0.00,060180,,,N*47
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004532.262,,,,,0,0,,,M,,M,,*4E
    $GPGLL,,,,,004532.262,V,N*7C
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004532.262,V,,,,,0.00,0.00,060180,,,N*44
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004533.262,,,,,0,0,,,M,,M,,*4F
    $GPGLL,,,,,004533.262,V,N*7D
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004533.262,V,,,,,0.00,0.00,060180,,,N*45
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004534.262,,,,,0,0,,,M,,M,,*48
    $GPGLL,,,,,004534.262,V,N*7A
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004534.262,V,,,,,0.00,0.00,060180,,,N*42
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004535.262,,,,,0,0,,,M,,M,,*49
    $GPGLL,,,,,004535.262,V,N*7B
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004535.262,V,,,,,0.00,0.00,060180,,,N*43
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004536.262,,,,,0,0,,,M,,M,,*4A
    $GPGLL,,,,,004536.262,V,N*78
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004536.262,V,,,,,0.00,0.00,060180,,,N*40
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004537.262,,,,,0,0,,,M,,M,,*4B
    $GPGLL,,,,,004537.262,V,N*79
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004537.262,V,,,,,0.00,0.00,060180,,,N*41
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004538.262,,,,,0,0,,,M,,M,,*44
    $GPGLL,,,,,004538.262,V,N*76
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004538.262,V,,,,,0.00,0.00,060180,,,N*4E
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004539.262,,,,,0,0,,,M,,M,,*45
    $GPGLL,,,,,004539.262,V,N*77
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004539.262,V,,,,,0.00,0.00,060180,,,N*4F
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004540.262,,,,,0,0,,,M,,M,,*4B
    $GPGLL,,,,,004540.262,V,N*79
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004540.262,V,,,,,0.00,0.00,060180,,,N*41
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004541.262,,,,,0,0,,,M,,M,,*4A
    $GPGLL,,,,,004541.262,V,N*78
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004541.262,V,,,,,0.00,0.00,060180,,,N*40
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004542.262,,,,,0,0,,,M,,M,,*49
    $GPGLL,,,,,004542.262,V,N*7B
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004542.262,V,,,,,0.00,0.00,060180,,,N*43
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004543.262,,,,,0,0,,,M,,M,,*48
    $GPGLL,,,,,004543.262,V,N*7A
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004543.262,V,,,,,0.00,0.00,060180,,,N*42
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004544.262,,,,,0,0,,,M,,M,,*4F
    $GPGLL,,,,,004544.262,V,N*7D
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004544.262,V,,,,,0.00,0.00,060180,,,N*45
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004545.262,,,,,0,0,,,M,,M,,*4E
    $GPGLL,,,,,004545.262,V,N*7C
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004545.262,V,,,,,0.00,0.00,060180,,,N*44
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004546.262,,,,,0,0,,,M,,M,,*4D
    $GPGLL,,,,,004546.262,V,N*7F
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004546.262,V,,,,,0.00,0.00,060180,,,N*47
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004547.262,,,,,0,0,,,M,,M,,*4C
    $GPGLL,,,,,004547.262,V,N*7E
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004547.262,V,,,,,0.00,0.00,060180,,,N*46
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004548.262,,,,,0,0,,,M,,M,,*43
    $GPGLL,,,,,004548.262,V,N*71
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004548.262,V,,,,,0.00,0.00,060180,,,N*49
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004549.262,,,,,0,0,,,M,,M,,*42
    $GPGLL,,,,,004549.262,V,N*70
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004549.262,V,,,,,0.00,0.00,060180,,,N*48
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004550.262,,,,,0,0,,,M,,M,,*4A
    $GPGLL,,,,,004550.262,V,N*78
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004550.262,V,,,,,0.00,0.00,060180,,,N*40
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004551.262,,,,,0,0,,,M,,M,,*4B
    $GPGLL,,,,,004551.262,V,N*79
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004551.262,V,,,,,0.00,0.00,060180,,,N*41
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004552.262,,,,,0,0,,,M,,M,,*48
    $GPGLL,,,,,004552.262,V,N*7A
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004552.262,V,,,,,0.00,0.00,060180,,,N*42
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004553.262,,,,,0,0,,,M,,M,,*49
    $GPGLL,,,,,004553.262,V,N*7B
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004553.262,V,,,,,0.00,0.00,060180,,,N*43
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    $GPGGA,004554.262,,,,,0,0,,,M,,M,,*4E
    $GPGLL,,,,,004554.262,V,N*7C
    $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    $GPGSV,1,1,00*79
    $GPRMC,004554.262,V,,,,,0.00,0.00,060180,,,N*44
    $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
    CTRL-A Z for help | 9600 8N1 | NOR | Minicom 2.7 | VT102 | Offline | rial0

    :~ $ gpsmon
    tcp://localhost:2947 Unknown device> JSON slave driver requires 80

    Any ideas?  I’d love some help so that I can continue with this project.  Thanks, TJ

    #7301
    Mark Williams
    Keymaster

    Have you updated this file with the serial interface?

    /etc/default/gpsd

     

    maybe show me what the contents of the above file is

     

     

    Mark --OzzMaker.com --

    #7302
    TJ
    Participant

    Below are the contents of the file you requested.

     

    # Default settings for the gpsd init script and the hotplug wrapper.

    # Start the gpsd daemon automatically at boot time
    START_DAEMON=”true”

    # Use USB hotplugging to add new USB devices automatically to the daemon
    USBAUTO=”true”

    # Devices gpsd should collect to at boot time.
    # They need to be read/writeable, either by user gpsd or the group dialout.
    DEVICES=”/dev/serial0″

    # Other options you want to pass to gpsd
    GPSD_OPTIONS=””

    #7303
    Mark Williams
    Keymaster

    the gps module seems to be working as you can see the NMEA sentences with minicom.

     

    something is wrong with your GPSD setup.

     

    does gpsmon work if you run the following command?

    gpsmon /dev/serial0

    Mark --OzzMaker.com --

    #7304
    TJ
    Participant

    Two things:

    1. The “requires 80” in the original error message appears to be due to my terminal window size (it was set to 75X20) so it was not echoing error messages to the screen.  When I used the gpsmon /dev/serial0 I got a few more characters that allowed me to figure that out.  Still doesn’t work, but now with a window size change it is a bit more verbose:
    2. Below is the result of the command you suggested:

    :~ $ gpsmon /dev/serial0
    gpsmon:ERROR: device open of /dev/serial0 failed: Device or resource busy – retrying read-only
    gpsmon:ERROR: read-only device open of /dev/serial0 failed: Device or resource busy

    Hopefully this helps?  Thanks for taking the time to troubleshoot with me.  Being in the US, I’m afraid the time difference might make response times a bit delayed, but I do appreciate your efforts.

    #7306
    Mark Williams
    Keymaster

    Mmmmm ..something is using the serial interface.

    Can you try killing gpsd process and then run the command again, no with extra debugging “-D 6”.. please show me the first few lines.

    sudo killall gpsd
    gpsmon /dev/serial0 -D 6

    please show me the contents of /boot/cmdline.txt

    please show me the output of ls -l /dev/serial*

    Mark --OzzMaker.com --

    #7335
    TJ
    Participant

    Sorry for the delay.  Went out of town last week.  Here is the output you requested:

    :~ $ sudo killall gpsd
    gpsd: no process found
    :~ $ gpsmon /dev/serial0 -D 6
    gpsmon:INFO: startup at 2018-05-26T14:14:01.000Z (1527344041)
    gpsmon:INFO: opening GPS data source type 2 at ‘/dev/serial0’
    gpsmon:INFO: speed 9600, 8N1
    gpsmon:IO: => GPS: $PASHQ,RID*28\x0d\x0a
    gpsmon:IO: => GPS: @F0.3=1*67\x0d\x0a
    gpsmon:IO: => GPS: @F0.3=1*67\x0d\x0a
    gpsmon:IO: => GPS: @F2.2=1*64\x0d\x0a
    gpsmon:IO: => GPS: @F2.2=1*64\x0d\x0a
    gpsmon:PROG: writing oncore control type Cj
    gpsmon:IO: => GPS: @@Cj)\x0d\x0aRID*28\x0d\x0a
    gpsmon:INFO: gpsd_activate(1): activated GPS (fd 3)
    gpsmon:PROG: KPPS:/dev/serial0 checking /sys/devices/virtual/pps/pps0/path, /dev/ttyS0
    gpsmon:INFO: KPPS:/dev/serial0 device not found.
    gpsmon:WARN: KPPS:/dev/serial0 kernel PPS unavailable, PPS accuracy will suffer
    gpsmon:PROG: PPS:/dev/serial0 thread launched

    [1]+ Stopped gpsmon /dev/serial0 -D 6

     

    Contents of /boot/cmdline.txt:

    dwc_otg.lpm_enable=0 console=tty3 root=PARTUUID=ae99fc43-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait splash quiet plymouth.ignore-serial-consoles logo.nologo vt.global_cursor_default=0

     

    :~ $ ls -l /dev/serial*
    lrwxrwxrwx 1 root root 5 May 20 14:38 /dev/serial0 -> ttyS0
    lrwxrwxrwx 1 root root 7 May 20 14:38 /dev/serial1 -> ttyAMA0

     

    Hope that helps.

    #7337
    Mark Williams
    Keymaster

    I cant understand why GPSD isnt working.  The GPS is working, this can be seen when you use minicom.

    what about if you try this?

    sudo gpsmon /dev/serial0

    Note the use of sudo

     

    Mark --OzzMaker.com --

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop…