Serial syntax issue to communicate with Pozyx device over USB
Hello,
I can't get data from a Pozyx tag device using the serial object. The message syntax is unclear to me because it mixes char, hex and decimal data.
This is the instructions to read data from registers in Pozyx reference (https://www.pozyx.io/Documentation/Datasheet/Interfaces#usb):
USB can be used to read multiple data bytes in one sequence. The command to read from the registers looks as follows:
R,<Reg address>,<Num bytes>
with <Reg address> the register address in hex format (without leading 0x) to start reading, and <Num bytes> the number of bytes to read (in decimal). The Pozyx device will respond as follows
D,<Data>
with <Data> a string of data in hex format (without leading 0x)
So I have tried to send the following messages to serial but none triggers a response:
82 0 33
82, 0, 33
82, 0, 51
82 0 51
What's wrong?
Here's the whole patcher: