SV: [Icc-avr] CheckSum

Bengt Ragnemalm benra at imt.liu.se
Tue May 27 02:06:25 PDT 2008


I guess that you are using wires but if you are using something with a
protocol like Bluetooth there is no need for a CRC as it is bult in in the
protocol. Actually there are lots of electronics out there that have more
than one “wheel” inside. If I send something with Bluetooth, have a
connection and the buffer in the module is not full, I KNOW that all data
will always get through eventually. For wires, you must write the protocol
and I would suggest handshaking as well.

 

/Bengt

 

  _____  

Från: icc-avr-bounces at imagecraft.com [mailto:icc-avr-bounces at imagecraft.com]
För Albert vanVeen
Skickat: den 27 maj 2008 00:37
Till: Discussion list for ICCAVR and ICCtiny Users. You do NOT
needtosubscribeto icc-announce if you are a member of this.
Ämne: RE: [Icc-avr] CheckSum

 

It would indeed be a good idea to add a checksum to comms functions!

Depends what you want: plain CS, CRC, Fletcher?

We've used FCS in the companies I've worked the last 20 or so years, seems
to be accepted as "the best" value for 16 bits.

 

Albert.

 

 

  _____  

From: icc-avr-bounces at imagecraft.com [mailto:icc-avr-bounces at imagecraft.com]
On Behalf Of Andrew
Sent: Tuesday, May 27, 2008 09:25 AM
To: Discussion list for ICCAVR and ICCtiny Users. You do NOT
needtosubscribeto icc-announce if you are a member of this.
Subject: [Icc-avr] CheckSum

Hi,

 

I am sure I have asked this before but (if i have sorry for the repeat
question), does anybody have a simple checksum routine for an array of
bytes, they would not mind posting?

 

I need one for a maximum of 250 bytes I am sending through the serial port
to a PC (I could break this up into smaller chunks if needed ) at the moment
i am not using one, but I think it would be best to add one. 

 

I have found a few on AVR freaks, just wondered what everyone here uses.

 

Best Regards,

 

Andy 

Scanned by Bizo EmailFilter
<http://www.bizoservices.com/services/email_filter.html>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080527/ff8bd68f/attachment.html


More information about the Icc-avr mailing list