Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDDS30 SerialPacketized Error #7

Open
al3c00 opened this issue May 4, 2024 · 2 comments
Open

MDDS30 SerialPacketized Error #7

al3c00 opened this issue May 4, 2024 · 2 comments

Comments

@al3c00
Copy link

al3c00 commented May 4, 2024

Hi
I'm trying to use multiple MDDS30 Rev 1.3 with Serial Packetized Mode on a pcb. However i can't even get to run one unit (doesn't matter if i use your example code or write my own). I send the dummy byte 0x80, then the error lights stop flashing 2x. When i want to use the control funtion from the example code the lights start blinking again. The switches are 11100000. Was there a change in Rev 1.3 that isn't mentionend in the user manual?

Thanks in advance

@al3c00
Copy link
Author

al3c00 commented May 4, 2024

Found the cause of the troubles: The size of the checksum is only one byte but Command Byte 255 + Header Byte 0x55(85) would be 340 which should be at least a uint16_t. This leads to buffer overflow and a corrupt/false checksum...is there anyway to evade this?

@waiweng83
Copy link
Contributor

Hi. Sorry for the late reply. For prompt response, you may contact [email protected] directly in the future.

Regarding the checksum of MDDS30 packetized serial mode, it only takes the LSB of the checksum.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants