Quote:
I did miss lead you somewhat, sorry about that.
That data you see on your lcd display is really single byte data. this will need to be converted
to something useful for you like hex, decimal etc,etc.
So when I send : 11 00 00 11 it is a string that was entered by the program user, I then covert that string into single byte data and send this to the sensor. It is sent to the sensor as one chunk of data.
It is not sent as ascii, hex, decimal or the likes. that: 11000011 is converted into single byte data that the sensor can understand, based on rs232 protocol.
So the manual is correct in stating to send it as: 0x11+0x00+0x00+0x11 In my case when I sent it out like the manual stated, it would not work. my program had to convert it to single byte data for the sensor to read it.
So, I'm guessing it is the programmer's job to convert it. so I created in integer in the program to hold that.
I took the 11 and converted it, then the 00, then the 00, then the 11 and stored it in this integer.
That integer is what is sent out of the comport, not the 11 00 00 11.
It's the same when the data comes back I take all the data from the sensor and store it as an integer, then convert that integer into usable data for for us to see.
Maybe because its TTL that 11000011 should be pulsed as high low low high. Who knows ...