Skip to main content

R7 Serial: Other Commands

Get Firmware Version

R7+VERSION

Returns the installed firmware version

/* Check Device Firmware */

R7+VERSION\r

/* Receive response */

03.04.13\r
OK\r
Version

03.04.13 is the firmware version number returned by the device.

Get Current GPS Position

R7+GPS

Retrieves the current GPS position from the device.

/* Request GPS Position */

R7+GPS\r

/* Receive response - example */

00310.22460W,5129.71500N,0,0,305,3,10,1.1,13:05:29,02-09-20\r
OK\r
Lat/Lon Format

Lat and Long are given in the following format:

Long: DDDMM.MMMMM[E|W] Lat: DDMM.MMMMM[N|S]

In the return example above: 00310.22460W,5129.71500N can be expressed as: 003° 10.22460' W, 51° 29.71500' N

The expected response for the R7+GPS command:

longitude,latitude,course,speed,altitude,mode,satellites,hdop,time,date

DataFormat
LongitudeDegreesMinutes.decimalMinutes E or W (DDMM.MMMMM[E|W])
LatitudeDegreesMinutes.decimalMinutes N or S (DDDMM.MMMMM[N|S])
Coursedegrees
Speedknots
Altitudemeters
Mode1 = no fix
2 = 2D fix
3 = 3D fix
Satellitescount
HDOP1-20
(1 = highest precision, 20 = poorest)
Timehh:mm:ss
DateDD-MM-YY

Enable or Disable GPS Streaming

R7+GPS,STREAM=n

1 = turns streaming on 0 = turns streaming off

When GPS streaming is enabled, a new position is output every second.

/* Turn ON GPS Streaming */

R7+GPS,STREAM=1\r

/* Receive Response - example */

OK\r
00310.22460W,5129.71500N,0,0,305,3,10,1.1,13:05:29,02-09-20\r
00310.22460W,5129.71500N,0,0,306,3,10,1.1,13:05:30,02-09-20\r
00310.22520W,5129.71500N,0,1,307,3,10,1.5,13:05:31,02-09-20\r
00310.22520W,5129.71500N,0,0,307,3,10,1.3,13:05:32,02-09-20\r
00310.22520W,5129.71500N,0,1,307,3,10,1.3,13:05:33,02-09-20\r
00310.22520W,5129.71440N,0,1,308,3,10,1.3,13:05:34,02-09-20\r
00310.22520W,5129.71440N,0,1,309,3,10,1.3,13:05:35,02-09-20\r
00310.22520W,5129.71440N,0,1,308,3,10,1.3,13:05:36,02-09-20\r
00310.22520W,5129.71440N,0,1,306,3,9,1.3,13:05:37,02-09-20\r
00310.22520W,5129.71440N,0,1,307,3,7,1.5,13:05:38,02-09-20\r
00310.22520W,5129.71440N,0,1,307,3,10,1.3,13:05:39,02-09-20\r

/* Turn OFF GPS Streaming */

R7+GPS,STREAM=0\r

/* Receive Response - example */

OK\r
Streaming Mode Notes

During streaming mode, other API commands work as normal.