msp icon indicating copy to clipboard operation
msp copied to clipboard

CRC not matching: Message 120 (MSP_SERVO_CONF)

Open primetoxinz opened this issue 6 years ago • 3 comments

As you can see in this output for msp_read_test the CRC for this message is incorrect.

primetoxinz avatar May 31 '18 02:05 primetoxinz

Which firmware and version are you using? Are you actually using the servo configuration message?

It might be that the message is truncated because it expects more or less servos than those provided in the message. I.e. the N_SERVO in the message is hard coded to 8, since this is the original message definition from MultiWii. Can you check in the code of your firmware, that it actually sends the right amount of servo configurations?

christianrauch avatar Jun 01 '18 12:06 christianrauch

This is MultiWii v2.4. I am not personally using the servo configuration message, just wanted to report the error in the test. I check in the firmware and it definitely looks like so servo_conf_ servoConf[8];

primetoxinz avatar Jun 01 '18 17:06 primetoxinz

I can only reproduce this CRC issue with the msp_read_test on MultiWii. It does not occur with fcu_test+MultiWii or msp_read_test+Betaflight. If I change the copter type in MultiWii from QUADX to TRI, AIRPLANE or DUALCOPTER, I still receive messages with an expected CRC of 56, i.e. the message will have different payload but the same CRC. I haven't figured out yet why the CRC is constantly set to 56, which is also the message size (8 states * 7 byte).

christianrauch avatar Jun 05 '18 22:06 christianrauch