Menu

byte to hexa problem

Help
DarkVader
2007-11-23
2012-12-06
  • DarkVader

    DarkVader - 2007-11-23

    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

     
    • DarkVader

      DarkVader - 2007-11-23

      sorry, the subject was not well!

      DarkVader

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.