Particle Argon and GPS NEO 6M-0 001 device no COM output help

I am currently using Particle Argon Device with the attached GPS NEO 6M-0 001 device. I am trying to view the GPS data using my COM port on my PC to verify this is working.

(later i hope to send this data to google cloud).

I found this website which describes the steps involved and followed these.

It is the last part it states output window on the COM10 port. On my computer i have this set to COM3. However, my window is blank and not showing any data.

Would be grateful for any advice on where i can go from here to try and solve this issue of not seeing any output? Any debug?

A copy for the filmware code is also attached.

// Copyright © 2016-2017 Daniel Porrey. All Rights Reserved.
// This file is part of the Particle.GPS library.
// Particle.GPS library is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Particle.GPS library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Particle.GPS library. If not, 
// see
#include "Particle-GPS.h"

// ***
// *** Create a Gps instance. The RX an TX pins are connected to
// *** the TX and RX pins on the electron (Serial1).
// ***
Gps _gps = Gps(&Serial1);

// ***
// *** Create a timer that fires every 1 ms to capture
// *** incoming serial port data from the GPS.
// ***
Timer _timer = Timer(1, onSerialData);

void setup()

  // ***
  // *** Initialize the USB Serial for debugging.
  // ***

  // ***
  // *** Initialize the GPS.
  // ***

  // ***
  // *** Start the timer.
  // ***

void onSerialData()

void loop()
  // ***
  // *** Get the Antenna Status ($PGTOP).
  // ***
  Pgtop pgtop = Pgtop(_gps);
  if (pgtop.parse())
    Serial.println("1) Antenna Status ($PGTOP)");
    Serial.print("Command ID: "); Serial.println(pgtop.commandId);
    Serial.print("Antenna Status: "); Serial.println(pgtop.reference);

  // ***
  // *** Get the Global Positioning System Fixed Data ($GPGGA).
  // ***
  Gga gga = Gga(_gps);
  if (gga.parse())
    Serial.println("2) Global Positioning System Fixed Data ($GPGGA)");
    Serial.print("UTC Time: "); Serial.println(gga.utcTime);
    Serial.print("Latitude: "); Serial.println(gga.latitude);
    Serial.print("North/SouthIndicator: "); Serial.println(gga.northSouthIndicator);
    Serial.print("Longitude: "); Serial.println(gga.longitude);
    Serial.print("East/WestIndicator: "); Serial.println(gga.eastWestIndicator);
    Serial.print("Position Fix Indicator: "); Serial.println(gga.positionFixIndicator);
    Serial.print("Satellites Used: "); Serial.println(gga.satellitesUsed);
    Serial.print("Horizontal Dilution of Precision: "); Serial.println(gga.hdop);
    Serial.print("Altitude: "); Serial.print(gga.altitude); Serial.print(" "); Serial.println(gga.altitudeUnit);
    Serial.print("Geoidal Separation: "); Serial.print(gga.geoidalSeparation); Serial.print(" "); Serial.println(gga.geoidalSeparationUnit);
    Serial.print("Age of Diff. Corr.: "); Serial.println(gga.ageOfDiffCorr);

  // ***
  // *** Get the Recommended Minimum Navigation Information ($GPRMC).
  // ***
  Rmc rmc = Rmc(_gps);
  if (rmc.parse())
    Serial.println("3) Recommended Minimum Navigation Information ($GPRMC)");
    Serial.print("UTC Time: "); Serial.println(rmc.utcTime);
    Serial.print("Latitude: "); Serial.println(rmc.latitude);
    Serial.print("North/SouthIndicator: "); Serial.println(rmc.northSouthIndicator);
    Serial.print("Longitude: "); Serial.println(rmc.longitude);
    Serial.print("East/WestIndicator: "); Serial.println(rmc.eastWestIndicator);
    Serial.print("Speed Over Ground: "); Serial.println(rmc.speedOverGround);
    Serial.print("Course Over Ground: "); Serial.println(rmc.courseOverGround);
    Serial.print("Date: "); Serial.println(;
    Serial.print("Magnetic Variation: "); Serial.print(rmc.magneticVariation); Serial.print(" "); Serial.println(rmc.magneticVariationDirection);
    Serial.print("Mode: "); Serial.println(rmc.mode);



How did you interact with your PC com port ?
I'm assuming that Serial1 is used to exchange the data with GPS module.
Serial is available on Particle devices USB port and if you will install Particle CLI can be read by simple command: particle serial monitor also can be read via this simple python script:

import serial

# this port address is for the my USB SERIAL on Photon
SERIAL_PORT = '/dev/ttyACM0'
# be sure to set this to the same rate used on your Argon

def main():
    ser = serial.Serial(SERIAL_PORT, SERIAL_RATE)
    while True:
        # using ser.readline() assumes each line contains a single reading
        # sent using Serial.println() 
        reading = ser.readline().decode('utf-8')
        # reading is a whatever you want from here

if __name__ == "__main__":

Unfortunately Argon has just 1 Uart avialiable additional Uart's eg: Serial2 is avialiable on Photon but to connect the Uart to PC RS232 you wlil need someting like this Uart to RS232 converter

Hope that help,
Best Regards

Hi thank you for your reply, for my setup i also have an accelerometer setup and to see the values on the serial port i made using a putty connection to COM3 serial. I was successfully able to see values output from the accelerometer using this. I first needed to send a command first before i seen values appear.

I expected as a test i would just need to do the same for the GPS module but the same COM3 (different filmware) did not show anything.

I just wanted to verify both work then i need to think on how i can combine these, i think i am going to run into issues is both are using the same COM3 ports but this would later be replaced in the code to publish the values to google cloud.

For info my accelerometer code as follows which ‘does’ show in putty com3 serial, what i don’t understand is why this doesn’t work the same for the GPS. Its most likely my misunderstanding

// This #include statement was automatically added by the Particle IDE.
#include "MPU6050.h"

int ledPin = D7;

// MPU variables:
MPU6050 accelgyro;
int16_t ax, ay, az;
int16_t gx, gy, gz;

bool ledState = false;
void toggleLed() {
    ledState = !ledState;
    digitalWrite(ledPin, ledState);

void setup() {
    pinMode(ledPin, OUTPUT);


    // The following line will wait until you connect to the using serial and hit enter. This gives
    // you enough time to start capturing the data when you are ready instead of just spewing data to the UART.
    // So, open a serial connection using something like:
    // screen /dev/tty.usbmodem1411 9600
    while(!Serial.available()) SPARK_WLAN_Loop();
    Serial.println("Initializing I2C devices...");

    // Cerify the connection:
    Serial.println("Testing device connections...");
    Serial.println(accelgyro.testConnection() ? "MPU6050 connection successful" : "MPU6050 connection failed");

void loop() {
    // read raw accel/gyro measurements from device
    accelgyro.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
    Serial.print(ax); Serial.print("\t");
    Serial.print(ay); Serial.print("\t");
    Serial.print(az); Serial.print("\t");
    Serial.print(gx); Serial.print("\t");
    Serial.print(gy); Serial.print("\t");

I also tried particle serial monitor from CLI and it says Serial monitor opened successfully. The GPS device is flashing ‘red’. I’m thinking down the line of wrong wiring as it seems to indicate no signal.

Some users saying you should put a resistor in in the Rx connector or even disconnect. I’ve tried disconnecting. Also reports it can take hours to receive a GPS signal…

This isn’t easy! :frowning: I’m on road to failure as this is only a small stepping stone in my project :frowning:

I’m not really sure what is going on with this should work if is working with your accelerometer.
One thing which really doesn’t work for me here is that onSerialData() is called from Timer which is completely against documentation recommendation :

You should not use functions like Particle.publish from a timer callback.

Do not use Serial.print and its variations from a timer callback as writing to Serial is not thread safe. Use instead.

It is best to avoid using long delay() in a timer callback as it will delay other timers from running.

Avoid using functions that interact with the cellular modem like Cellular.RSSI() and Cellular.command().

entire _gps.onSerialData() prints to serial :thinking:

Also regarding to your picture wchich show the connection with your Gps module looks for me that you have to swap the wires between Argon and GPS module should be:

Argon TX -> GPS RX
Argon Rx -> GPS TX

please note that Argon UART is not 5V tolerant ! looks like you pwered the GPS module from 5V

2-cond UPDATE
looks good my fault is 3V3 :+1:

Thanks dreamER, basically for the GPS module i simply followed this guide which pointed me to particle library. I wasn’t sure where else to start? I have only had LEDs lighting up priory to this, i am very new to this!

Basically i type in GPS library ‘Particle-GPS’ and i choose parse-data.ino** and click on it for use this example (just a test). That is where i am, its produced code for testing. Surely i should be see something?

I’m thinking now its the GPS flashing red that there is;

  1. Problem with my wiring? Do i need a resistor?
  2. Faulty GPS

Maybe i could put in some de-code statements? Any ideas?

Much appreciated and thank you for your replies so far

Nope you don't need any resistors here.
Just try to swap your RX and TX wires

Thank you so much!!! It was the Tx to Rx and Rx to Tx as above that was wrong - nail on the head and also makes sense!! Thank you so much!! :smile:

1 Like

Glad to hear that is working :slight_smile: :+1:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.