× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



We'll we've stepped beyond my experience level with CRC's then... ;-)

I can only see one document in google that seems to fit, but it's in
chinese, and google translation feature might have mangled the embedded
source code...

However, here's what looks to be an excellent document to get you
started...
http://www.ross.net/crc/download/crc_v3.txt

hth,
-Eric

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Robert Upshall
Sent: Thursday, March 25, 2010 12:20 PM
To: RPG programming on the IBM i / System i
Subject: Re: Cyclic Redundancy Checking (CRC) in RPG

I working with a 3rd party socket interface and it is requiring a CRC
with each request I transmit. This is from their API docs:

CRC -16 generating polynomial: X16 + X15 + X13 + 1
Namely the binary value: 1101000000000001

Robert



DeLong, Eric wrote:
Sure, about 15 years ago for a zmodem application... This was
somewhat
common when we used dial-up over POTS. What is your application?

If intent is to ensure a transferred file is unchanged, you might be
better off with a standard like MD5 or SHA for checksum hash. Please
note that many communications interfaces make use of CRC algorithms
already, to ensure the integrity of data being transmitted. Also note
that there are dozens of different CRC algorithms, so you must be sure
to clarify the requirements.

-Eric

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Robert Upshall
Sent: Thursday, March 25, 2010 11:29 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Cyclic Redundancy Checking (CRC) in RPG

Has anybody ever done a Cyclic Redundancy Check (CRC) in RPG?

Robert






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.