]> sigrok.org Git - libsigrok.git/commit
dmm/bm86x: check more bytes in DMM packet (undocumented by vendor)
authorGerhard Sittig <redacted>
Mon, 17 May 2021 20:14:50 +0000 (22:14 +0200)
committerGerhard Sittig <redacted>
Sun, 21 Aug 2022 15:45:11 +0000 (17:45 +0200)
commitf12591299ee58dec8cbbada4c0073b34f9359c75
treeb44148ceed70ea0378f087d9592ec6ed415506c5
parent118da66f8d8ab1ce2a60f429654f533df7f9ee08
dmm/bm86x: check more bytes in DMM packet (undocumented by vendor)

User johnch reported via IRC that bm86x meters can lose sync to the
packet stream which goes unnoticed and tries to process invalid data.

Tighten the packet validity check, compare four bytes of the third chunk
in the DMM packet. This improves reliability, but isn't backed by vendor
documentation. It's yet to get determined whether other existing devices
don't provide the four-byte magic pattern.
src/dmm/bm86x.c