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.

hex communication string


BartZaw Nov 20, 2015 05:50 PM

Hi all,

I am rather a beginner with the CRbasic so, probably this is a well know stuff...

I have some trouble to understand (normal you will say) what is happening. Indeed, my logger (CR1000) is connected to a captor that is sending via RS232 a string composed by 4 characters. I can see it on the terminal mode under hex display. I got "ff A6 01 20". This should be stored in a string or in the buffer but, when I check this string only two characters are there 0x01 and 0x20. The same in the buffer, only the two last characters are stored... My question is why? How can I read the two firs characters?

Thank you in advance for any help.

Bart


JDavis Nov 23, 2015 03:18 PM

Your SerialOpen instruction needs to choose a format that supports binary. Note that choosing a binary format for a port will disable Pakbus communication on that port.


BartZaw Nov 24, 2015 08:26 AM

Hello,

Thanks for your sugestion
. Can I ask you for more precisions? An example?

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