• NEO6 GPS with Py PICO with micropython

    From KK CHN@21:1/5 to All on Tue Nov 29 17:23:31 2022
    List ,
    I am following this tutorial to get latitude and longitude data using
    NEO6 GPS module and Py PICO to read the GPS data from the device.

    I followed the code specified in this tutorial. https://microcontrollerslab.com/neo-6m-gps-module-raspberry-pi-pico-micropython/

    I have installed thony IDE in my Desktop(windows PC) and run the code
    after the devices all connected and using USB cable connected to my PC.

    When I ran the program I am able to see the output of latitude and
    longitude in the console of thony IDE. But between certain intervals of a
    few seconds I am getting the latitude and longitude data ( its printing
    GPS data not found ?? ) in the python console.

    The satellite count from the $GGPA output showing 03 ..
    and the GPS data not found repeating randomly for intervals of seconds.
    Any hints why it is missing the GPS data (randomly) ??

    PS:- The GPS device I placed outside my window and connected to the PC
    with a USB cable from the PICO module. GPS device NEO6 light (Red LED
    ) blinking even though the " GPS data not found" messages in th python console.

    Any hints ?? most welcome

    Yours,
    Krishane

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From rbowman@21:1/5 to KK CHN on Tue Nov 29 17:13:50 2022
    On Tue, 29 Nov 2022 17:23:31 +0530, KK CHN wrote:


    When I ran the program I am able to see the output of latitude and
    longitude in the console of thony IDE. But between certain intervals
    of a few seconds I am getting the latitude and longitude data ( its
    printing GPS data not found ?? ) in the python console.

    I would guess the 8 seconds in

    timeout = time.time() + 8

    is too short. Most GPS receivers repeat a sequence on NMEA sentences and
    the code is specifically looking for $GPGGA. Add

    print(buff)

    to see the sentences being received. I use the $GPRMC since I'm interested
    in the position, speed, and heading. It's a different format but if you
    only want lat/lon you could decode it in a similar fashion as the $GPGGA.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dn@21:1/5 to KK CHN on Wed Nov 30 06:16:05 2022
    On 30/11/2022 00.53, KK CHN wrote:
    List ,
    I am following this tutorial to get latitude and longitude data using
    NEO6 GPS module and Py PICO to read the GPS data from the device.

    I followed the code specified in this tutorial. https://microcontrollerslab.com/neo-6m-gps-module-raspberry-pi-pico-micropython/

    I have installed thony IDE in my Desktop(windows PC) and run the code
    after the devices all connected and using USB cable connected to my PC.

    When I ran the program I am able to see the output of latitude and
    longitude in the console of thony IDE. But between certain intervals of a few seconds I am getting the latitude and longitude data ( its printing
    GPS data not found ?? ) in the python console.

    The satellite count from the $GGPA output showing 03 ..
    and the GPS data not found repeating randomly for intervals of seconds.
    Any hints why it is missing the GPS data (randomly) ??

    PS:- The GPS device I placed outside my window and connected to the PC
    with a USB cable from the PICO module. GPS device NEO6 light (Red LED
    ) blinking even though the " GPS data not found" messages in th python console.

    Any hints ?? most welcome

    If it works (correctly*) some of the time, and there is only one look-up
    in the code, it doesn't really sound like a problem with the Python.

    * is it?

    Does the unit also report the number of satellites it can 'see'? Is it
    always more than one?

    Other data not-discussed: change of cable, reducing length of cable, ...

    --
    Regards,
    =dn

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to KK CHN on Tue Nov 29 16:59:02 2022
    On 11/29/22 06:56, KK CHN wrote:
    List ,
    I am following this tutorial to get latitude and longitude data using
    NEO6 GPS module and Py PICO to read the GPS data from the device.

    I followed the code specified in this tutorial. https://microcontrollerslab.com/neo-6m-gps-module-raspberry-pi-pico-micropython/

    I have installed thony IDE in my Desktop(windows PC) and run the code
    after the devices all connected and using USB cable connected to my PC.

    When I ran the program I am able to see the output of latitude and
    longitude in the console of thony IDE. But between certain intervals of a few seconds I am getting the latitude and longitude data ( its printing
    GPS data not found ?? ) in the python console.

    The satellite count from the $GGPA output showing 03 ..
    and the GPS data not found repeating randomly for intervals of seconds.
    Any hints why it is missing the GPS data (randomly) ??

    PS:- The GPS device I placed outside my window and connected to the PC
    with a USB cable from the PICO module. GPS device NEO6 light (Red LED
    ) blinking even though the " GPS data not found" messages in th python console.

    Any hints ?? most welcome

    Yours,
    Krishane

    From a retired broadcast engineer, intimately familiar with vswr:

    std, wire only usb cables can get to acting flaky at 5 feet. If the
    cable to the receiver is more than that, a higher quality cable may be required. The better cable will probably have active electronics in the
    molded on ends that treats the cable as a transmission line,
    Which if done right can go as much as ten meters at usb2 speeds.

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis
    Genes Web page <http://geneslinuxbox.net:6309/>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From KK CHN@21:1/5 to [email protected] on Wed Nov 30 16:28:40 2022
    List,

    Just commented the // gpsModule.readline() in the while loop, (
    refer the link https://microcontrollerslab.com/neo-6m-gps-module-raspberry-pi-pico-micropython/
    )


    while True: # gpsModule.readline() // This line commented out and the "GPS
    not found message disappeared". buff = str(gpsModule.readline()) parts = buff.split(',')


    The GPS not found error which appears intermittently in the output python console for few seconds ( say 7 to 8 seconds its printing the lines "
    GPS data not found" ) now disappears.

    Any thoughts? How the above line comment made it vanish the "GPS data
    not found" error output.

    Krishane

    On Wed, Nov 30, 2022 at 3:58 AM rbowman <[email protected]> wrote:

    On Tue, 29 Nov 2022 17:23:31 +0530, KK CHN wrote:


    When I ran the program I am able to see the output of latitude and longitude in the console of thony IDE. But between certain intervals
    of a few seconds I am getting the latitude and longitude data ( its printing GPS data not found ?? ) in the python console.

    I would guess the 8 seconds in

    timeout = time.time() + 8

    is too short. Most GPS receivers repeat a sequence on NMEA sentences and
    the code is specifically looking for $GPGGA. Add

    print(buff)

    to see the sentences being received. I use the $GPRMC since I'm interested
    in the position, speed, and heading. It's a different format but if you
    only want lat/lon you could decode it in a similar fashion as the $GPGGA.

    --
    https://mail.python.org/mailman/listinfo/python-list


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Barry Scott@21:1/5 to All on Wed Nov 30 11:51:33 2022
    On 30 Nov 2022, at 10:58, KK CHN <[email protected]> wrote:

    List,

    Just commented the // gpsModule.readline() in the while loop, ( refer the link https://microcontrollerslab.com/neo-6m-gps-module-raspberry-pi-pico-micropython/
    )


    while True: # gpsModule.readline() // This line commented out and the "GPS not found message disappeared". buff = str(gpsModule.readline()) parts = buff.split(',')


    The GPS not found error which appears intermittently in the output python console for few seconds ( say 7 to 8 seconds its printing the lines "
    GPS data not found" ) now disappears.

    Any thoughts? How the above line comment made it vanish the "GPS data
    not found" error output.

    Show the full text of the error that you see. Is it a traceback?

    What I would do then is read the code that raised the "GPS data not found" error and find out why it reports that error.

    Barry
    p.s. Please reply in line, do not top post.


    Krishane

    On Wed, Nov 30, 2022 at 3:58 AM rbowman <[email protected]> wrote:

    On Tue, 29 Nov 2022 17:23:31 +0530, KK CHN wrote:


    When I ran the program I am able to see the output of latitude and
    longitude in the console of thony IDE. But between certain intervals
    of a few seconds I am getting the latitude and longitude data ( its
    printing GPS data not found ?? ) in the python console.

    I would guess the 8 seconds in

    timeout = time.time() + 8

    is too short. Most GPS receivers repeat a sequence on NMEA sentences and
    the code is specifically looking for $GPGGA. Add

    print(buff)

    to see the sentences being received. I use the $GPRMC since I'm interested >> in the position, speed, and heading. It's a different format but if you
    only want lat/lon you could decode it in a similar fashion as the $GPGGA.

    --
    https://mail.python.org/mailman/listinfo/python-list

    --
    https://mail.python.org/mailman/listinfo/python-list


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)