?
Solved

PHP - Generate Checksum CRC-CCITT

Posted on 2011-03-23
1
Medium Priority
?
1,274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
tsmgeek earned 2000 total points
ID: 35203739
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

771 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