ISISComputingGroup / ISISComputingGroup/IBEX

StreamDevice: add checksum for M905 pressure controller

Ouverte
#8,024 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Aucune donnée de langage
Étoiles
6
Forks
2
Merge moyen
16 h 40 min
PR mergées (30 j)
2

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.