ISISComputingGroup / ISISComputingGroup/IBEX

StreamDevice: add checksum for M905 pressure controller

Offen
#8,024 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Keine Sprachdaten
Sterne
6
Forks
2
Ø Merge
16 Std. 40 Min.
Gemergte PRs (30 T.)
2

Beschreibung

The ISO 1745 protocol used by the M905 requires a checksum as follows:

One control byte BCC calculated in the following manner:
Perform an exclusive-OR with all bytes between the STX (not included) and the ETX (included).
- If the obtained byte (in ASCII format) is higher than 32, it can be taken as the BCC.
- If the obtained byte (in ASCII format) is lower than 32, the BCC byte will be obtained by adding 32.

(not: it doesn't say what happens if it is exactly 32)

This is an `%` type checksum that is a little like the `%` checksum in that it optionally adds 32 https://paulscherrerinstitute.github.io/StreamDevice/formats.html#chksum

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.