Hi Everyone,
I am trying to reverse engineer the MSP v2 protocol for Mateksys 3901 communication.
24, 58, 3C, 0, 1, 1F, 5, 0, FF, 3F, 0, 0, 0, EE,
$ X < rangefinder (5 bytes) quality distance crc
24, 58, 3C, 0, 1, 1F, 5, 0, FF, 3B, 0, 0, 0, 2F,
$ X < rangefinder (5 bytes) quality distance crc
24, 58, 3C, 0, 2, 1F, 9, 0, 8E, 0, 0, 0, 0, 0, 0, 0, 0, 65,
optic flow (9 bytes) quality motion_x motion_y crc
24, 58, 3C, 0 24, 24 24 24 24 24 24 24 24 24 24 0 24 2 .......
$ X < no idea what is this
After the fourth message I get some semi random repeating data of lot of 24 hex numbers with sometimes an inserted hex code of 0, or 3C 9 FF.
Whenever I turn on the sensor the first 3 messages looks ok, but from that onward I have no idea what is the sensor outputting.
I looked through the code, and I got the hit from Alexes comments that I should send some command to switch from polling mode to command mode, to the board will stay silent only only answer to sent commands. Unfortunately I have no idea what should be sent. Can someone help, or point me where can I find some documentation of MSP v2 and especially the format of the different messages, message types and protocol flow.
Thanks, Denes