Bonjour,

J'aimerais savoir si certains d'entre vous ont déjà développé une interface avec une balance (poids-prix ou peson) pour un système de caisse ? dans un besoin de sécurisation , je dois utiliser le protocole de communication [ Dialog 06 ] mais à part le schéma de communication et la structure des messages, je ne trouve nulle part comment répondre à un message de sécurité dont l'explication et celle-ci :

6.2.4.2 Checkout-Dialogue 06
The checkout-dialogue 06 presents for the scale the possibility, to request 1-5 pairs of values CS/KW in cyclic intervals from the POS-system and check their validity. In case of invalidity, no weight-results will be given from the scale to the POS-system, i.e. dealing with the scale is not possible. With the request for the checksums, the scale sends a random number, which has to be used from the POS-system for encoding the checksums. This shall prevent a third party from monitoring valid checksums with simple measures. The random number is an 8-bit-number, the higher nibble (here called Z1) is used for encoding the CS-values, and the lower nibble (here called Z2) is used for encoding the KW-values.
The encoding of the CS-values has to be made by rotating them to the left for Z1 bits, the encoding of the KW-values by rotating them to the right for Z2 bits.
effectivement je reçois un message contenant un nombre aléatoire que je dois encoder. Mais comment, crc16 ? quel polynôme ? bref un casse tête que mes connaissances en mathématiques rendent encore plus complexe ^^

Sinon quel protocole pourrais-je utiliser qui pourrait passer les certifications pour les points de vente ?

Merci d'avance pour toute information (ou orientation) que vous pourriez me donner !!