How can i send and receive Ascii code between 128 to 255

Last post 02-15-2008 7:21 by BobSchaefer. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 02-13-2008 22:55

    • Abitan
    • Not Ranked
    • Joined on 02-14-2008
    • Posts 2

    How can i send and receive Ascii code between 128 to 255

     I am Thai and i need to send and receive my language using OpenNETCF.IO.Serial  .

     my Application run at wince 4.2  so i don't want to use CF 2.0

    Can someone help me plzzz 

     

    Thank you 

  • 02-14-2008 6:53 In reply to

    Re: How can i send and receive Ascii code between 128 to 255

     I don't understand what the problem would be.  Just send it as bytes, and it'll happily send them over the serial connection.  I regularly send raw binary data across the serial port and have no issues at all with any of the values.  The trick is to use bytes and not characters or strings.

  • 02-15-2008 1:33 In reply to

    • Abitan
    • Not Ranked
    • Joined on 02-14-2008
    • Posts 2

    Re: How can i send and receive Ascii code between 128 to 255

     the problem is when i send Ascii code over 127  it always return to zero again

        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim buffer(6) As Byte
            buffer(0) = 125
            buffer(1) = 126
            buffer(2) = 127
            buffer(3) = 128
            buffer(4) = 129
            buffer(5) = 130
            SerialPort1.Output() = buffer
        End Sub

    Rx  125 126 127 000 001 002  << when Hyperterminal has received

     

     

  • 02-15-2008 3:39 In reply to

    • neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,152

    Re: How can i send and receive Ascii code between 128 to 255

    It could be that Hyperterminal is doing something funky. Have you written an app to determine this?


  • 02-15-2008 7:21 In reply to

    Re: How can i send and receive Ascii code between 128 to 255

    Its looking like you might have your connection set up for 7 bit, instead of 8 bit.  Double check the connection settings between the two machines and double-check what hyperterminal is doing.  It could very well be that you're fighting a mis-configuration of hyperterminal. 

Page 1 of 1 (5 items)