Solved

PHP - Generate Checksum CRC-CCITT

Posted on 2011-03-23
1
1,273 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 500 total points
ID: 35203739
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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 …

705 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