Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Cr1000 send and receive hex-strings


ed Mar 7, 2017 06:07 AM

Hi,

I am not very experienced with programming, so please excuse if I ask easy things. I have 12 soil sensors which communicate via RS485. They are connected to the CR1000 using a SDM SIO1A Module. To get data out of them, they first need some initialization strings which contains the command, serial no and a checksum.
This is the first string: FD 0C 03 B5 A6 00 5C 01 00 C4
I searched this forum, found some topics but nothing worked.
Does someon knows a way to send hex strings?

Thanks

ed


aps Mar 7, 2017 11:53 AM

It would be very rare for a sensor to send and receive HEX strings - this is normally just the way binary strings are represented in sensor manuals.    However if they really are HEX values written into a string you will need to read the entire string, then chop it up using SplitStr and convert the values to integers using HextoDec functions.

This technical note gives some tips on programming for serial sensors:

https://s.campbellsci.com/documents/us/technical-papers/serial.pdf

Alternatively you could post more details of the sensors on here and someone might have already written code to read them or contact your local Campbell Scientific office who can provide further more detailed support.

Log in or register to post/reply in the forum.