yoneken / rosserial_stm32

This is a part of [rosserial](https://github.com/ros-drivers/rosserial) repository to communicate with ROS system through a USART for STM32 embedded system.
BSD 2-Clause "Simplified" License
218 stars 72 forks source link

wrong checksum for topic id and msg #47

Open corvusoul opened 6 months ago

corvusoul commented 6 months ago

Anytime I publish anything I keep getting "[INFO] [timestamp]: wrong checksum for topic id and msg"

I have messed around with delays in code and baud rates and versions of ROS but of no use. I know it's not an error but it is annoying and it would be nice if I can fix this.

yoneken commented 5 months ago

"[INFO] [timestamp]: wrong checksum for topic id and msg"

This message often appears when messages are sent frequently, so could you try adding a wait after sending messages? The problem may also be resolved by increasing the buffer size.

bdking3 commented 4 months ago

I am having the same issue and have verified that buffer size and delay size does not change the behavior. HAL_Delay of 1 or 1000 and buffer size of 512 or 2048, the issue remains. In fact, the check sum failure occurs for the same number of packets regardless of loop time. If you poll faster, it occurs faster, if you poll slower, it happens slower. In both cases, the same number of packets go by before the first checksum fails. This then happens rhythmically forever. I am running on an STM32L476VGT6U.

I will add that a day later, I have ported everything over to a STM32F413ZHT6U, hoping that moving from a L4 device to an F4 device would put me more in line hardware wise with this library, I still get the same issue.