Solved

PHP - Generate Checksum CRC-CCITT

Posted on 2011-03-23
1
1,261 Views
Last Modified: 2012-05-11
I apologize as I know very little about Hex but we have a GPS product that we need to send messages to (via UDP data posting) and I need to generate a 2 byte checksum value in PHP and don't know how to proceed.

The example says the following:

0x05d8 = CRC-CCITT (24 24 00 11 13 61 23 45 67 8f ff 50 00)

So, I need a PHP function where I can pass in that value in the parenthesis and get back the 05 D8 (I presume).

It very well may be that there is a PHP function already to do this.

Any help is greatly appreciated!

Thanks!!
0
Comment
Question by:khilles
1 Comment
 
LVL 5

Accepted Solution

by:
tsmgeek earned 500 total points
ID: 35203739
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question