i write a byte array to a USB device that returns the same array back.
Every thing works ok (number of bytes is correct write/read) but when any byte in hexa is greater the 0x7F the value that a write e read always a positive value, for instance when i send a byte like 0x95 (-107) i receive 0x15 (21). This values i read from byte array directly in the debugger and not from any convertion to String.
The device is just a simple test board with a FT2XX and i connect RX and TX to make a loop back.
Can anyone can help?
Thanks in advance.
Jorge
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
i write a byte array to a USB device that returns the same array back.
Every thing works ok (number of bytes is correct write/read) but when any byte in hexa is greater the 0x7F the value that a write e read always a positive value, for instance when i send a byte like 0x95 (-107) i receive 0x15 (21). This values i read from byte array directly in the debugger and not from any convertion to String.
The device is just a simple test board with a FT2XX and i connect RX and TX to make a loop back.
Can anyone can help?
Thanks in advance.
Jorge
sorry, the subject was not well!
DarkVader