G
Guest
Hi All,
I am new to C# programming; I am developing an application for recording
audio data using voice modem.
I am using HyperTerminal to manually process audio data. The modem when
configured in voice record mode sends the audio (PCM) data on the serial
port, few of the characters from these are in Extended ASCII range i.e. more
than 127 decimal.
In HyperTerminal we can reset the property to force the incoming data to 7
bit ASCII, i.e. by un-checking this option we can record the Extended ASCII
also.
When I am using the C# application I am reading from serial port using
serialPort1.ReadExisting () --- this returns the complete received string or
serialPort1.Read(recevBuff, 0, buffLength)---- this returns received
characters in the recevBuff. The problem is by using both these methods the
extended ASCII characters are rounded off automatically to 7 bit ASCII and I
get the wrong response. I have even tried using the Encoding class with
Encoding.Default property but this does not give me the correct corresponding
Extended ASCII character in the response.
I have a plan to store this received data to a file but things are not
working due to this conversion problem. Can anybody help?
Thanks & Regards
Roshan.
I am new to C# programming; I am developing an application for recording
audio data using voice modem.
I am using HyperTerminal to manually process audio data. The modem when
configured in voice record mode sends the audio (PCM) data on the serial
port, few of the characters from these are in Extended ASCII range i.e. more
than 127 decimal.
In HyperTerminal we can reset the property to force the incoming data to 7
bit ASCII, i.e. by un-checking this option we can record the Extended ASCII
also.
When I am using the C# application I am reading from serial port using
serialPort1.ReadExisting () --- this returns the complete received string or
serialPort1.Read(recevBuff, 0, buffLength)---- this returns received
characters in the recevBuff. The problem is by using both these methods the
extended ASCII characters are rounded off automatically to 7 bit ASCII and I
get the wrong response. I have even tried using the Encoding class with
Encoding.Default property but this does not give me the correct corresponding
Extended ASCII character in the response.
I have a plan to store this received data to a file but things are not
working due to this conversion problem. Can anybody help?
Thanks & Regards
Roshan.