danke, dann versuche ichs nochmals...
denn es kommt immer eine flasche checksumme raus...
naja mal sehen... danke nochmals...
---
Moderiert von
Narses: Beiträge zusammengefasst---
das stimmt was nicht...
ich habe diesen text gefunden:
| Zitat: |
| calculate checksums and add them to the frame there are two checksums for FBUS. The first is an exclusive or (XOR) of the characters in every odd position in the frame and the second is an exclusive or (XOR) of the characters in every even position in the frame (eg if a frame was 1E 0C 00 7F 00 02 02 03, the odd checksum value would be: 1E XOR 00 XOR 00 XOR 02 which results in a value of 1C and the even checksum byte would be: 0C XOR 7F XOR 02 XOR 03 which results in a value of 72 note all values shown above are in hex |
das ist genau das was ich brauche...
laut diesem text sollte zb. 1E ODD sein... aber mit meinem code zeigt er mir EVEN an...
Moderiert von
Narses: Quote-Tags hinzugefügt.