Binary Protocol

Supported model: MT3329 and MT3339 based GPS module

Binary Protocol - Supported model: MT3329 and MT3339 based GPS module.

Increase calculation efficiency by using binary format output

Overview

GlobalTop GPS module can output customized NMEA sentence in binary format. Binary protocol is an efficient way of transferring coordinate messages in binary numbers and can be easily processed by a low powered micro controller without the need for conversion and huge C++ string libraries.

Background

Binary protocol is an efficient way of transferring coordinate messages from GPS module to micro controllers. Coordinates that used to require more than 20 bytes in NMEA can now be sent with only 8 bytes in binary protocol format. In addition, because of the increase in efficiency, a lower transfer rate can easily parse 10Hz messages without losing any packages.

Binary protocol is a lot more efficient when using tiny 8-bit micro controllers. This is because microcontrollers contain limited flash space, and the process of converting ASCII string into normal variables will require huge libraries and a lot of CPU calculation cycles, which may be too much to handle for these tiny controllers. With binary protocol, these simple bytes can be put directly into the variables with a few clock cycles, without the need for parsing, conversion and the huge C++ string libraries.

GlobalTop Solution

GlobalTop can customize GPS module output sentences in binary mode when used in combination with GlobalTop "One Sentence" PGTOP format. See the table below for an example on the type of data available for data format conversion.

Original PGTOP Sentence (Gtop One Sentence Format)

$PGTOP, 064951.000,2307.1256,N,12016.4438,E, A,0.03, 165.480.03,N,0.06,K * checksum

Table 1: Customize Data Format for NMEA protocol One Sentence
Name Example Units Desciption
UTC Time 064951.000 hhmmss.sss
Latitude 2307.1256 ddmm.mmmm
N/S Indicator N N=north or S=south
Longitude 12016.4438 ddmm.mmmm
E/W Indicator E E=east or W=west
Status A A=data valid or V=data not valid
Speed over Ground 0.03 Knots
Course over Ground 165.48 Degrees True
Speed 0.03 Knots Masured horizontal speed
Units N Knots
Speed 0.06 Knots Masured horizontal speed
Units K Kilometers per hour

Converted to Gtop Binary protocol format

0x04,0x24,0x03,0xEA,0x94,0x28,0x01,0x60,0x74,0xF4,0x01, 0x07,
0x2B,0x64,0xD4,0x01,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,
0x50,0x4E,0X00,0X00,0X00, 0x95,0x4B,0xE9,0x0D,0x0A
Table 2: Customize Data Format for Binary protocol
Name Example Units Desciption
Preamble 0x04,0x24 2bytes Header, always the same
UTC Time 0x03
0xDF
0x12
0xD8
4bytes
Hi byte
to
Low byte
UTC Time(hhmmss.sss)
The original value will be converted
Example:064951.000*(10^3)=64951000
Latitude 0x01
0x60
0x74
0xCC
4bytes
Hi byte
to
Low byte
Latitude(in decimal degrees)
The original value will be converted
Example:23.098572*(10^6)=23098572
N/S Indicator 0x01 1 byte 0x01=>North or 0x02=>South
Longitude 0x07
0x2B
0x64
0xDF
4bytes
Hi byte
to
Low byte
Longitude(in decimal degrees)
The original value will be converted
Example:120.284383*(10^6)=120284383
E/W Indicator 0x01 1 byte 0x01=>East or 0x02=>West
Status 0x01 1 byte 0x01=>data valid or 0x02=>data not valid
Course over Ground 0x07
0x56
0xB7
0x00
4bytes
Hi byte
to
Low byte
Course over Ground(in degree)
The original value will be converted
Example:123.123456=>123.123456*1000000=123123456(degrees)
Speed over Ground 0x00
0x00
0x00
0x24
4bytes
Hi byte
to
Low byte
Speed over Ground(knot/hr)
The original value will be converted
Example:0.036(knot/hr)=>0.036*1000=36
Units(Knots) 0x4E 1byte Unit of Speed. Example:0x4E='N'
Speed 0x00
0x00
0x00
0x40
4bytes
Hi byte
to
Low byte
Ground Speed(km/hr)
The original value will be converted
Example:0.067(km/hr)=>0.067*1000=67
Units(Kilometer) 0x4B 1byte Unit of Speed. Example:0x4B='K'
Checksum 0x47 1byte checksum. Refer to Note.1
End Word 0x0D
0x0A
2bytes End word, always the same

Note.1

1. The checksum will be calculated by X or all bytes (except for the preamble bytes and end word)
For(I=0;I {
Checksum = Checksum ^ Buffer[I]
}

Requirement

GlobalTop Binary Protocol customizations must be used in combination with GlobalTop One Sentence service. Please see "One Sentence" under software technologies for more details.

Contact Gtop Now!


Promotion

Gmm-g3 GPS Module

Power Performance comes with Dual systems Synchronously receives dual systems GPS+Glonass, this enhances performance even in poor working conditions. Dual system modules bring double power performance.

View More »

Gmm-u2P GPS Module

GlobalTop MT3339 GPS module is a world's first GPS Module utilizing the best MTK technology designed for maximum power saving and fastest TTFF in the smallest form factor.

View More »

Gmm-u5LP GPS Module

u5 series modules are the latest GlobalTop design in a popular 22.4 x 17 form factor with unique features that make them easier to use with greater flexibility.

View More »

Gtop Binary Protocol Service Introduction

GlobalTop Technology Inc. is Taiwan Binary Protocol supplier and manufacturer with more than 6 years experence. Since 2006, in the Northern America, South America, Western Asia, Southern Europe, Western Europe, Northern Europe, Eastern Asia, Southern Asia, Central Asia, Australia, New Zealand and Russia, Gtop has been offering our customers high quality Binary Protocol production service. With both advanced technology and 6 years experience, Gtop always make sure to meet each customer's demand.

Contact Us

GlobalTop Technology Inc.
No. 16, Nan-Ke 9th Road, Science-Based Industrial Park, Tainan 741, Taiwan
TEL: +886-6-5051268
FAX: +886-6-5053381

Contact Us


View GlobalTop Technology Inc. in a larger map