Re: simple transport protocol



Hello, Willem!
You wrote on Sun, 25 May 2008 09:53:23 +0000 (UTC):

W> Well it depends on the type of checksum. But here's a simple example:
W> Suppose the checksum is a simple sum modulo 256.
Some misunderstanding of terms: you sum up the values to be transmitted and
then apply operation of module 256? It means 'sum % 256' in C language for
example, but according to your example what you do is: '256 - sum'

Perhaps the checksum method you provided as an example uses another meaning
of modulo ?

W> We want to send the values: 2 5 8 10 15 20
W> So, the total of what we send is this:
length |> data | crc

W> 0 7 2 5 8 10 15 20 196

With best regards, Roman Mashak. E-mail: mrv@xxxxxxxx


.



Relevant Pages

  • Re: Bitwise AND
    ... turn off overflow checking down to the source file ... I have a two byte checksum at the end of my data. ... of all the preceeding characters but it never equals my check sum. ... > Dim CharSum as Long ...
    (microsoft.public.pocketpc.developer)
  • [PATCH 2.6.9-rc1-mm4 5/6] [m32r] Update checksum functions
    ... -unsigned int csum_partial_copy(const char *src, char *dst, ... sum = csum_partial; ... Copy from userspace and compute checksum. ... -asmlinkage unsigned int csum_partial; ...
    (Linux-Kernel)
  • Re: Simple but reliable checksum for small controllers
    ... I am looking for an efficient checksum method. ... Just adding the code bytes to a 16/24/32-bit sum is simple ... The actual polynomial varies somewhat ...
    (comp.arch.embedded)
  • Re: MD5 Weakness Exploited
    ... While what they have achieved is not the same as producing an identical MD5 ... verified using a checksum from somewhere else. ... tools to verify that the download matches what was intended to retrieve. ... and the check sum from Keith's site. ...
    (comp.os.os2.apps)
  • simple transport protocol
    ... transfer data from host computer to target (ARM7-based embedded system) over ... It should not be very reliable, so a simple checksum algorithm can be ... ended with a control check sum. ... Command is to issue commans to target system such as start, stop, ...
    (comp.programming)