Sign in to follow this  

convert hex to decimal on temp sensor.

Recommended Posts

hi there

i bought a cheap and nasty temp/humidity sensor a few months ago and have been struggling ever since to wrap my head around the instruction manual.

i need to change the station address from 1 to 3, and to receive the information in something i can understand. i have used many hexdecimal to decimal converters but still cant make any sense out of this.

is it possible to help me please and convert the hex?

attached is the manual for the sensor.



Temperature and humidity sensor modbus protocol (correctable temperature and humidity).doc

Share this post

Link to post
Share on other sites

Hex is just another form of a decimal number.  0x0f (hex) and 15 (decimal) are the same number.  Those docs simply show 15 as 0x0f instead of 15.  So it's not really a "hex" device, it just takes numbers.  The hard part for this device is going to be the CRC.  Its not particularly hard, but you are going to have to convert that sample CRC generation code into DAQFactory script.  You might see if there is a way to disable the CRC on the device.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this