Home Page Forums Raspberry Pi Shields Enable GPS on 4G/LTE Module

Tagged: ,

This topic contains 2 replies, has 3 voices, and was last updated by  tom-sixfab 1 month, 4 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2886

    Andreas
    Participant

    Hi everybody,

    I just bought the Raspberry Pi 3G-4G/LTE Base Shield V2 together with the Quectel EC25 Mini PCle 4G/LTE Module and I am super happy with it.
    But is there a possibility to always enable GPS without having to send the “AT+QGPS=1”. That would help me a lot, so I would have GPS enabled and be connected to 4G on boot.

    Thanks for your help.

    Best regards,
    Andreas

    #23075

    Metin
    Keymaster

    You must send “AT+QGPS=1” command on boot.

    #38992

    tom-sixfab
    Participant

    You didn’t mention the platform. My solution on Linux (Raspbian) is to use a script invoked in crontab with the line

    @reboot root sleep 30 && /etc/MyScripts/gpson.sh

    where /etc/MyScripts/gpson.sh contains
    ————-
    #!/bin/bash
    cd $(dirname $0)

    stty -F /dev/ttyUSB2 raw
    chat -f /etc/default/quectel-gps < /dev/ttyUSB2 > /dev/ttyUSB2
    ————-

    and /etc/default/quectel-gps contains
    ————-
    ABORT “BUSY”
    ABORT “NO CARRIER”
    ABORT “NO DIALTONE”
    ABORT “ERROR”
    ABORT “NO ANSWER”
    TIMEOUT 10
    “” AT
    OK AT+QGPS=1
    ————-

    You likely need to install the chat module if not already present (it will be if you set up for PPP).

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.