Baofeng GMSK Radio Programming Communication Protocol
Home
Protocols
  • 简体中文
  • English
Home
Protocols
  • 简体中文
  • English
  • Protocols
    • Protocol A
      • Handshake
      • Clone
      • Settings
      • Password and Subsystem ID
    • Protocol B
    • Protocol C
    • Protocol D
    • Protocol E
    • Protocol F
    • AT2
      • BLE Transport
      • Frame Format
      • Channel Programming
      • Device Settings
      • Off-network Messages
      • Real-time Voice

Real-time Voice

Mode Control

Operationpayload
Enable off-network session00 02 04 07 01
Disable off-network session00 02 04 07 00
Press PTT00 02 04 02 01
Release PTT00 02 04 02 00
PTT status acknowledgment00 82 04 02

Voice Encoding

ParameterValue
CodecAMR-NB MR475
Sample rate8000 Hz
PCMmono PCM16LE
PCM frame320 bytes
Frame duration20 ms
Encoded frame12 bytes

An AMR-NB MR475 IETF storage frame consists of a 1-byte ToC and a 12-byte payload. AT2 transmits only the 12-byte payload. Prepend 04 when decoding it as an IETF storage frame.

Transmit Frames

Real-time voice uses family 02, command 04, and subcommand 03.

TypepayloadDuration
Normal packet00 02 04 03 00 00 [60-byte voice]100 ms
Tail packet00 02 04 03 00 00 [48-byte voice]80 ms

A normal packet concatenates five encoded frames and is transmitted approximately every 100 ms. A tail packet concatenates four encoded frames.

Receive Frames

The device sends family 02, command 04, and subcommand 03. Remove leading zeroes after the subcommand, then split the remaining data into 12-byte AMR-NB MR475 encoded frames.

Prev
Off-network Messages