30
| Serial interface
8. SERIAL INTERFACE
The device has a TTL-UART-interface integrated. You will find the interface on
the PCB. It can be used to extract all measured and stored data. When the
device is in normal function mode the data is sent once per second to the serial
interface. The data package consists of 7 ASCII bytes. The first 5 bytes are
information and the last two bytes are <CR><LF>. The first five bytes will either
contain temperature data or an error indication.
Examples:
1. ASCII:
„121.1<LF><CR>“
Hex:
„0x31 0x32 0x31 0x2E 0x31 0x0D 0x0A”
2. ASCII:
„1.5<LF><CR>“
Hex:
„0x20 0x20 0x31 0x2E 0x35 0x0D 0x0A”
3. ASCII:
„-11.2<LF><CR>“
Hex:
„0x2D 0x31 0x31 0x2E 0x32 0x0D 0x0A”
4. ASCII:
„Err.1<LF><CR>“
Hex:
„0x45 0x72 0x72 0x2E 0x31 0x0D 0x0A”
5. ASCII:
„Err.3<LF><CR>“
Hex:
„0x45 0x72 0x72 0x2E 0x33 0x0D 0x0A”
TS125-to-RS232 DIY adapter
TS 125
TSM 125