Türkiyenin en kapsamlı forum/yorum portalı olacak olan sitemize katkıda bulunmak ister misiniz? Moderatorler/Yöneticiler aramaktayız. BİZE YAZIN >>

How to validate the message?

Mesaj: 134

How to validate the message?

Mesaj#1 » 2017 Ağu 01 10:27

I am sending multiple messages from a MCU to my computer and I want to use a 32-bit Cyclic Redundancy Check to verify that the messages are correct. From what I've read, it should be possible to append the last CRC reminder to the last message and run that through the CRC function. If the message was error free, it should then return zero. I have however been unsuccessful in implementing this using the binascii-library [binascii.crc32()].

Let's for example say I want to check the message internally from the example given in python docs (I'm using P 3.5). How would I go ahead checking if this was the correct message?

Please help...

I didn't find the right solution from the Internet.
4G LTE system video

“Araçlar” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 0 misafir

Giriş  •  Kayıt