checksum or CRC
Hello all,
I have developed a small stamp application that talks to a VB program
using the MSComm control. Does anyone out there in stamp land have any
suggestions on generating a checksum or CRC (what is the difference?)
that I can use to ensure the data being passed back and forth is
reliable? Finally, is there anything I need to do to run my .exe on
another PC that doesn't have VB installed on it? Do I need to distribute
any .dll files or anything? Thanks and have a great day.
Aaron
I have developed a small stamp application that talks to a VB program
using the MSComm control. Does anyone out there in stamp land have any
suggestions on generating a checksum or CRC (what is the difference?)
that I can use to ensure the data being passed back and forth is
reliable? Finally, is there anything I need to do to run my .exe on
another PC that doesn't have VB installed on it? Do I need to distribute
any .dll files or anything? Thanks and have a great day.
Aaron
Comments
approach. A checksum is simply the sum of all the data truncated to 8 or 16
bits. In theory a CRC check is more likely to find errors since a 1 bit
difference effectivly changes the entire hash but a checksum provides ample
detection for most applications and requires less overhead. simply add the
data using a byte varible.
checksum var byte
sering pin, baud [noparse][[/noparse]dta]
checksum=checksum+dta
etc...
Hope this helps.
MH
Original Message
From: <agarb@j...>
To: <basicstamps@egroups.com>
Sent: Friday, November 03, 2000 7:13 PM
Subject: [noparse][[/noparse]basicstamps] checksum or CRC
> Hello all,
>
> I have developed a small stamp application that talks to a VB program
> using the MSComm control. Does anyone out there in stamp land have any
> suggestions on generating a checksum or CRC (what is the difference?)
> that I can use to ensure the data being passed back and forth is
> reliable? Finally, is there anything I need to do to run my .exe on
> another PC that doesn't have VB installed on it? Do I need to distribute
> any .dll files or anything? Thanks and have a great day.
>
> Aaron
>
>
>
>
"missing msvbrun300.dll" which are the VB runtimes. There are also newer
versions up to msvbrun600.dll ( I belive ) Anyway, lots of common
programs install these files as a part of their installation, So it may
not be an issue but just for good measure,You should check if the
runtimes you will need are installed, and if not, install them if your
app needs them.
HTH
Dave
Original Message
From: Michael Hendricks <mjh80@b...>
To: basicstamps@egroups.com <basicstamps@egroups.com>
Date: Friday, November 03, 2000 7:33 PM
Subject: Re: [noparse][[/noparse]basicstamps] checksum or CRC
>CRC is a math formula (usually 16 or 32 bit) that is more of a hash based
>approach. A checksum is simply the sum of all the data truncated to 8 or 16
>bits. In theory a CRC check is more likely to find errors since a 1 bit
>difference effectivly changes the entire hash but a checksum provides ample
>detection for most applications and requires less overhead. simply add the
>data using a byte varible.
>
>checksum var byte
>
>sering pin, baud [noparse][[/noparse]dta]
>checksum=checksum+dta
>
>etc...
>
>Hope this helps.
>
>MH
>
>
>
Original Message
>From: <agarb@j...>
>To: <basicstamps@egroups.com>
>Sent: Friday, November 03, 2000 7:13 PM
>Subject: [noparse][[/noparse]basicstamps] checksum or CRC
>
>
>> Hello all,
>>
>> I have developed a small stamp application that talks to a VB program
>> using the MSComm control. Does anyone out there in stamp land have any
>> suggestions on generating a checksum or CRC (what is the difference?)
>> that I can use to ensure the data being passed back and forth is
>> reliable? Finally, is there anything I need to do to run my .exe on
>> another PC that doesn't have VB installed on it? Do I need to distribute
>> any .dll files or anything? Thanks and have a great day.
>>
>> Aaron
>>
>>
>>
>>
>
>
>
>
>
> I have developed a small stamp application that talks to a VB program
> using the MSComm control. Does anyone out there in stamp land have any
> suggestions on generating a checksum or CRC (what is the difference?)
> that I can use to ensure the data being passed back and forth is
> reliable?
Take a look at the BASIC Stamp examples on our S.N.A.P
page. There are examples for both CRC and checksum and
a (free) DLL that handles all this on the PC-side that
you can use in your VB program.
http://www.hth.com/snap/
> Finally, is there anything I need to do to run my .exe on
> another PC that doesn't have VB installed on it? Do I need to
> distribute any .dll files or anything?
Yes, you must install the VB runtime DLL's and all other
OCX/DLL you eventually used when developing your VB program. I
suggest you check the manual and then use the installation
wizard to build a setup program.
Best regards,
/Christer
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* High Tech Horizon - Christer Johansson - E-mail: cj@h... *
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Send and receive serial data over the power lines... For more info
about the PLM-24 Power Line Modem go to http://www.hth.com/plm-24/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
a little better. Is there a was to know which specific runtimes are
needed, or do I just try the "crash and burn" method. Once I know what
ones I need, how do I go about installing them? Do I just copy them to
c:\windows\system and them register them somehow?Since this is getting a
little off-topic, perhaps it would be best to reply off-list, or maybe
someone could refer me to some suitable references.
On Sun, 5 Nov 2000 23:43:21 -0500 samhell@s... writes:
> Sometimes a PC with no other VB type applications will complain about
> "missing msvbrun300.dll" which are the VB runtimes. There are also
> newer versions up to msvbrun600.dll ( I belive ) ......
I tried to do a search on my hard drive for msvbrun300.dll -- the closest
match I could find was Msvbvm50.dll and Msvbvm60.dll. Are these the
file(s) you referenced?
Thanks,
Aaron
> >From: <agarb@j...>
> >To: <basicstamps@egroups.com>
> >Sent: Friday, November 03, 2000 7:13 PM
> >Subject: [noparse][[/noparse]basicstamps] checksum or CRC
> >
> >
> >> Hello all,
> >>
> >> I have developed a small stamp application that talks to a VB
> program
> >> using the MSComm control. Does anyone out there in stamp land
> have any
> >> suggestions on generating a checksum or CRC (what is the
> difference?)
> >> that I can use to ensure the data being passed back and forth is
> >> reliable? Finally, is there anything I need to do to run my .exe
> on
> >> another PC that doesn't have VB installed on it? Do I need to
> distribute
> >> any .dll files or anything? Thanks and have a great day.
> >>
> >> Aaron
> >>
Personally I swear by the "crash and burn method", I would format and
install Win9-2K, then drop the bare .exe on it and see what happens. But
the preferred method is probably more like using the Visual Basic
Application Setup Wizard ( Included with VB 5 Enterprise, dont know about
pro or other vers.) It will prepare an entire setup program for your app
and make sure all housekeeping chores are done,....the down side is that it
is huge...( I couldn't make an app fit on a floppy..at all ) So then there
are third party installers like Installshield(.com), and Inf-Pro (get it @
download.com)and GP Install( freeware) They do all the setup stuff and
register dlls and ocx's and lots of other stuff.
Finally, you might use the trusty batch file...for example yours might look
like: ( saved as install.bat)
******************************************
md C:\stampapp
copy *.* C:\stampapp
copy stampapp.dll c:\windows\system
copy stampapp.ocx c:\windows\system
copy stampapp.exe C:\WINDOWS\desktop
Regsvr32 c:\windows\system\stampapp.dll
Regsvr32 c:\windows\system\stampapp.ocx
*******************************************
This would be a barebones install, I'm sure there are tons of other ways
to install and register files with batch files and .inf files.......I
just know this one works and is 100% free.
P.S. I obviously am not a pro, but I have used all of the stuff I
mentioned. I cant remember the details on which runtimes you will need to
distribute, but they will make themselves known pretty easily, if not taken
care of by some other way.
Dave
Original Message
From: agarb@j... <agarb@j...>
To: basicstamps@egroups.com <basicstamps@egroups.com>
Date: Tuesday, November 07, 2000 5:02 PM
Subject: Re: [noparse][[/noparse]basicstamps] checksum or CRC
>Thanks for the comments. I guess maybe I should have worded my question
>a little better. Is there a was to know which specific runtimes are
>needed, or do I just try the "crash and burn" method. Once I know what
>ones I need, how do I go about installing them? Do I just copy them to
>c:\windows\system and them register them somehow?Since this is getting a
>little off-topic, perhaps it would be best to reply off-list, or maybe
>someone could refer me to some suitable references.
>
>On Sun, 5 Nov 2000 23:43:21 -0500 samhell@s... writes:
>> Sometimes a PC with no other VB type applications will complain about
>> "missing msvbrun300.dll" which are the VB runtimes. There are also
>> newer versions up to msvbrun600.dll ( I belive ) ......
>
>I tried to do a search on my hard drive for msvbrun300.dll -- the closest
>match I could find was Msvbvm50.dll and Msvbvm60.dll. Are these the
>file(s) you referenced?
>
>Thanks,
>Aaron
>
>
>
>> >From: <agarb@j...>
>> >To: <basicstamps@egroups.com>
>> >Sent: Friday, November 03, 2000 7:13 PM
>> >Subject: [noparse][[/noparse]basicstamps] checksum or CRC
>> >
>> >
>> >> Hello all,
>> >>
>> >> I have developed a small stamp application that talks to a VB
>> program
>> >> using the MSComm control. Does anyone out there in stamp land
>> have any
>> >> suggestions on generating a checksum or CRC (what is the
>> difference?)
>> >> that I can use to ensure the data being passed back and forth is
>> >> reliable? Finally, is there anything I need to do to run my .exe
>> on
>> >> another PC that doesn't have VB installed on it? Do I need to
>> distribute
>> >> any .dll files or anything? Thanks and have a great day.
>> >>
>> >> Aaron
>> >>
>
>
>
>
me some things to go on and try.
Aaron
On Tue, 7 Nov 2000 20:57:58 -0500 samhell@s... writes:
> Aarron,
> Personally I swear by the "crash and burn method", I would format
> and
> install Win9-2K, then drop the bare .exe on it and see what happens.
> But
> the preferred method is probably more like using the Visual Basic
> Application Setup Wizard ( Included with VB 5 Enterprise, dont know
> about
> pro or other vers.) It will prepare an entire setup program for
> your app
> and make sure all housekeeping chores are done,....the down side is
> that it
> is huge...( I couldn't make an app fit on a floppy..at all ) So
> then there
> are third party installers like Installshield(.com), and Inf-Pro
> (get it @
> download.com)and GP Install( freeware) They do all the setup stuff
> and
> register dlls and ocx's and lots of other stuff.
> Finally, you might use the trusty batch file...for example yours
> might look
> like: ( saved as install.bat)
>
> ******************************************
> md C:\stampapp
> copy *.* C:\stampapp
> copy stampapp.dll c:\windows\system
> copy stampapp.ocx c:\windows\system
> copy stampapp.exe C:\WINDOWS\desktop
> Regsvr32 c:\windows\system\stampapp.dll
> Regsvr32 c:\windows\system\stampapp.ocx
> *******************************************
>
> This would be a barebones install, I'm sure there are tons of
> other ways
> to install and register files with batch files and .inf
> files.......I
> just know this one works and is 100% free.
>
> P.S. I obviously am not a pro, but I have used all of the
> stuff I
> mentioned. I cant remember the details on which runtimes you will
> need to
> distribute, but they will make themselves known pretty easily, if
> not taken
> care of by some other way.
>
> Dave
>
Original Message
> From: agarb@j... <agarb@j...>
> To: basicstamps@egroups.com <basicstamps@egroups.com>
> Date: Tuesday, November 07, 2000 5:02 PM
> Subject: Re: [noparse][[/noparse]basicstamps] checksum or CRC
>
>
> >Thanks for the comments. I guess maybe I should have worded my
> question
> >a little better. Is there a was to know which specific runtimes
> are
> >needed, or do I just try the "crash and burn" method. Once I know
> what
> >ones I need, how do I go about installing them? Do I just copy
> them to
> >c:\windows\system and them register them somehow?Since this is
> getting a
> >little off-topic, perhaps it would be best to reply off-list, or
> maybe
> >someone could refer me to some suitable references.
> >
> >On Sun, 5 Nov 2000 23:43:21 -0500 samhell@s... writes:
> >> Sometimes a PC with no other VB type applications will complain
> about
> >> "missing msvbrun300.dll" which are the VB runtimes. There are
> also
> >> newer versions up to msvbrun600.dll ( I belive ) ......
> >
> >I tried to do a search on my hard drive for msvbrun300.dll -- the
> closest
> >match I could find was Msvbvm50.dll and Msvbvm60.dll. Are these
> the
> >file(s) you referenced?
> >
> >Thanks,
> >Aaron
> >
> >
> >
> >> >From: <agarb@j...>
> >> >To: <basicstamps@egroups.com>
> >> >Sent: Friday, November 03, 2000 7:13 PM
> >> >Subject: [noparse][[/noparse]basicstamps] checksum or CRC
> >> >
> >> >
> >> >> Hello all,
> >> >>
> >> >> I have developed a small stamp application that talks to a VB
> >> program
> >> >> using the MSComm control. Does anyone out there in stamp land
> >> have any
> >> >> suggestions on generating a checksum or CRC (what is the
> >> difference?)
> >> >> that I can use to ensure the data being passed back and forth
> is
> >> >> reliable? Finally, is there anything I need to do to run my
> .exe
> >> on
> >> >> another PC that doesn't have VB installed on it? Do I need to
> >> distribute
> >> >> any .dll files or anything? Thanks and have a great day.
> >> >>
> >> >> Aaron
> >> >>
> >
> >
> >
> >
>
>
>
>
>