convert hex to decimal on temp sensor.


mike72

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.

 

mike

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

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.