TP Series Customer Command Reference Manual

Table of Contents

  1. Command Usage Instructions
  2. Query TP Version Number
  3. Set Baud Rate Parameters (BaudTran)

1. Command Usage Instructions

Commands use text format and are sent after a successful Bluetooth connection to the device. On Windows, copy commands to the clipboard using a text editor, then connect to the device with a serial port debugging tool and send the commands from the clipboard. On Android and iOS, copy commands to the clipboard using a text editor, then connect to the device with a Bluetooth debugging tool and send the commands from the clipboard. Command format: command_name\r\n In commands, <parameter> denotes a required parameter. [parameter] denotes an optional parameter.

2. Query TP Version Number

Description

Query the TP device version information.

Command Format

  • Command: version?\r\n
  • Response: OK,VER=01.00\r\n
  • Notes:
    • Response format: OK,VER=version_number

Usage Examples

Example 1: Query Device Version Number

Send: version?\r\n
Response: OK,VER=01.00\r\n

Note: Current TP device version is 01.00

Example 3: Send Command Using a Serial Port Tool

In a Windows serial port debugging tool (such as sscom32):

  1. Select the correct serial port and baud rate
  2. Enter in the send box: version?
  3. Click Send (ensure the carriage return and line feed \r\n are included)
  4. The receive area displays: OK,VER=01.00

Example 4: Send Command via Bluetooth

In Bluetooth debugging software:

  1. Connect to the device
  2. Send command: version?\r\n
  3. Receive response: OK,VER=01.00\r\n

Notes

  1. Command format: Must include the carriage return and line feed \r\n
  2. Real-time query: This command returns the device firmware version information

3. Set Baud Rate Parameters (BaudTran)

Description

Set the TP device serial communication parameters, including baud rate, parity, data bits, and stop bits. This command configures communication parameters between the device and the meter.

Command Format

This command uses text format and is sent via serial port or Bluetooth.

  • Command: BaudTran,<baudrate>,<parity>,<datalen>,<stopbit>[,]\r\n
    • Format: BaudTran, followed by a comma and baud rate parameters
  • Response: OK,VER=01.00\r\n

Parameter Description

Parameter Description Value Range Example
Mode selection Communication mode selection i, n, p, q, m, r n
baudrate Baud rate 300-115200 9600, 19200, 38400
parity Parity N, E, O N=None, E=Even, O=Odd
datalen Data bit length 5, 6, 7, 8 8
stopbit Stop bits 0, 1, 2 0 or 1=1 stop bit, 2=2 stop bits

Common Baud Rate Configurations

Baud Rate Parity Data Bits Stop Bits Command Example
9600 None 8 1 BaudTran,9600,N,8,1\r\n
19200 None 8 1 BaudTran,19200,N,8,1\r\n
300 Even 7 1 BaudTran,300,E,7,1\r\n
2400 Even 7 1 BaudTran,2400,E,7,1\r\n
4800 None 8 1 BaudTran,4800,N,8,1\r\n
38400 None 8 1 BaudTran,38400,N,8,1\r\n
57600 None 8 1 BaudTran,57600,N,8,1\r\n
115200 None 8 1 BaudTran,115200,N,8,1\r\n

Note: Command format is BaudTran + comma + parameters,

Usage Examples

Example 1: Set 9600 baud, no parity, 8 data bits, 1 stop bit (normal mode)

Send: BaudTran,9600,N,8,1\r\n
Response: OK,VER=01.00\r\n

Note: TP device baud rate set to 9600, no parity, 8 data bits, 1 stop bit.

Example 2: Set 300 baud, even parity, 7 data bits, 1 stop bit (IEC standard)

Send: BaudTran,300,E,7,1\r\n
Response: OK,VER=01.00\r\n

Note: TP device baud rate set to 300, even parity, 7 data bits, 1 stop bit (compliant with IEC 62056-21)

Example 4: Complete Communication Workflow

Step 1: Set baud rate parameters
Send: BaudTran,9600,N,8,1\r\n
Response: OK,VER=01.00\r\n

Step 2: Begin communicating with the meter
(Send meter protocol commands)

Step 3: To switch baud rate, resend the configuration command
Send: BaudTran,300,E,7,1\r\n
Response: OK,VER=01.00\r\n

Parameter Format Details

Baud Rate (baudrate)

  • Range: 300-115200
  • Common values: 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200
  • Description: Communication speed in bits per second

Parity (parity)

  • N: No parity (None)
  • E: Even parity (Even)
  • O: Odd parity (Odd)
  • Description: Used to detect data transmission errors

Data Bits (datalen)

  • Range: 5-8 bits
  • Common values: 7 (IEC standard), 8 (standard ASCII)
  • Description: Number of data bits per character

Stop Bits (stopbit)

  • 0 or 1: 1 stop bit
  • 2: 2 stop bits
  • Description: Marks the end of a character

Notes

  1. Command format:

    • Command format: BaudTran + comma + baud rate parameters
    • Example: BaudTran,9600,N,8,1
    • Parameters are separated by commas
    • Trailing comma is optional but not recommended
    • Must include the carriage return and line feed \r\n
  2. Parameter matching: Configured parameters must exactly match the meter’s communication parameters; otherwise communication will fail

  3. IEC standard configuration:

    • IEC 62056-21 typically uses: 300 baud, even parity, 7 data bits, 1 stop bit
    • Command example: BaudTran,300,E,7,1\r\n
  4. Immediate effect: Settings take effect immediately; no device reboot required


Appendix

Command Protocol Description

TP Runtime Series Commands

  • Format: Text format
  • Requirement: No need to enter command mode; can be sent directly
  • Terminator: Must include \r\n (carriage return and line feed)

Communication Methods

Serial Port Communication

  • On Windows, use a serial port debugging tool (such as sscom32)—select the correct serial port and baud rate
  • Ensure the correct terminator is included when sending commands

Bluetooth Communication

  • Android: Use a Bluetooth debugging tool via SPP or BLE
  • iOS: Use a Bluetooth debugging tool via BLE

Frequently Asked Questions

Q1: Why is there no response after sending a command?

  • Check whether the command format is correct, especially the terminator \r\n
  • Check whether the serial port or Bluetooth connection is working
  • Confirm the device supports TP series commands

Q2: How do I confirm the current baud rate setting?

  • TP series commands are runtime commands that take effect immediately after being sent
  • Verify the baud rate through actual communication testing

Version Information

  • Document version: 1.1
  • Last updated: 2026-01-31
  • Applicable devices: TP series devices