Geode GNS2 battery gauge commands

28 Aug 2020

Terminal or programming commands that software developers can send to the Geode GNS2 (through the integrated Hemisphere OEM P206 receiver) to obtain information regarding the state of the battery are as follows. For an immediate battery state, use the following command.

$JRELAY,A,$PJSI,CFG,BAT

Otherwise, further details are as follows.

PJSI,BAT Message

Reports battery charge level and status.

Field #

Name

Unit

Format

Example

Description

0

$PJSI

 

String

$PJSI

Message ID, JSI Protocol header, proprietary sentence

1

messageID

 

String

BAT

This is the Battery status message

2

time

 

hhmmss.ss

082710.00

UTC Time – available if another time bearing message is present in the stream

(GBS,GGA,GLL,GNS,GRS,GST,RMC,ZDA)

3

batId

 

Numeric

1

Battery ID (1,..n) for multiple batteries

4

batLevel

Percentage

Numeric

52

Percentage of charge for battery

5

batStat

 

Numeric

2

Status of the current battery (see below)

4

cs

 

Hexadecimal

*2B

Checksum

5

<CR><LF>

 

Character

 

Carriage Return and Line Feed

batId: Identifying number of the battery.  Always 1 for Geode

batLevel: Charge level of the battery in percent.

batStat: Current battery status:

            0 – not present

            1 – Charging

            2 – Discharging

            3 – Error condition

 

Interval (output refresh rate) configuration command:

PJSI,CFG,BAT Command

Configures the battery reporting interval

Field #

Name

Unit

Format

Example

Description

0

$PJSI

 

String

$PJSI

Message ID, JSI Protocol header, proprietary sentence

1

CFG

 

String

CFG

Configuration

2

BAT

 

String

BAT

Battery report configuration

3

Frequency

 

Numeric

1

Report interval in Hz, or 0 to disable

4

cs

 

Hexadecimal

*2B

Checksum

5

<CR><LF>

 

Character

 

Carriage Return and Line Feed