Low-level AssetTracker2 u-blox GPS hacking

If you want to play around with the low-level features of the u-blox M8 GPS in the AssetTracker v2, you should definitely download the free u-blox u-center for Windows.

Then flash this firmware to your Electron, which makes the Electron USB serial port a pass-through to the GPS, so you can directly manipulate the GPS from u-center.

#include "Particle.h"

SYSTEM_MODE(MANUAL);

void setup() {
	Serial.begin(9600);

	Serial1.begin(9600);
	pinMode(D6, OUTPUT);
	digitalWrite(D6, LOW);
}

void loop() {
	while(Serial.available()) {
		Serial1.write(Serial.read());
	}
	while(Serial1.available()) {
		Serial.write(Serial1.read());
	}
}

You can see all of the data coming out of the GPS, and try out all of the commands you can send to it in a graphical UI. Neat!

8 Likes

Thank you Rick!