From the data sheet:
Excellent! So I can just wire the TX and RX pins directly to my Pi, right? Only problem is, now the data sheet delves into all these "registers", and I have no idea how to get data out of them.The GP9 UART operates at a 3.3V logic level with 8 data bits, 1 stop bit, and no parity. While the logic level is 3.3V, the pins are 5V tolerant to simplify integration with 5V systems.
How do I actually get data from this thing? Some example code would be SUPER helpful. Thank you!Data transmitted and received by the GP9 is formatted into packets containing:
1. The three character start sequence 's', 'n', 'p' to indicate the start of a new packet (i.e. start new p acket)
2. A "packet type" (PT) byte describing the function and length of the packet
3. An address byte indicating the address of the register or command
4. A sequence of data bytes, the length of which is specified in the PT byte
5. A two-byte checksum for error-detection