ascii character problem

Discussion in 'Questions (Windows Mobile)' started by Gale Johnson, May 28, 2008.

  1. Gale Johnson

    Gale Johnson Member Licensed User

    I am trying to send information via a serial port to an electronic machine. The machine requires a coding of "K" to start, followed by CHR(02). At the end of machine coding I need to send CHR(03). Instead, the characters being sent are chr(191) and chr(192). Is there some way to force the serial program to send the correct 02 & 03 ASCII characters?
  2. Erel

    Erel Administrator Staff Member Licensed User

    You should use Serial.Output2 to send the required bytes.
    The Bitwise library allows you to convert strings to bytes and vice versa.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice