ilan the amazing wrote:
> I'm having the most odd problem. I've drawn up my 1D array of U8,
> convert it to string using the U8-2-string converter and send it, but
> my device does not respond.
>
> So I tap the line with an Oscope and I see that only some of the
> numbers are being sent out correctly. I send out a 32, it replies
> with a 32 (correct!). I send out a 30, it replies with a 34, 36
> combination. Btw these are all hex values. I've checked and double
> checked that I'm sending out a hex 30. Anyway it started doing the
> same for the 32. What is happening??? I tell it to send two hex
> number, it sends four!!??!?
Isn't it doing what you ask ?
Sending a U8 value to a serial port will send 8bits=1character=0-255.
Converting t
hat U8 to a string and then sending it to the serial port will
send 2 characters, each in the range 0-9A-F.
Try leaving out the U8ToString conversion, what the serial line and
the instrument is expecting are actually U8s, its only for the convinience
of humans that we write the U8s as hex numbers.
--
Remove "spamkill." when replying to this message