serialport adn encrpyted data

  • Thread starter Thread starter cloud
  • Start date Start date
C

cloud

Hello All,

Does the serial port can send send encrypted data to the remote
device.

When I try send this my application gets blocked.
Do we need to convert all these characters into string and then
sending through serial port ??
How can this be done ??

The data is something like this.
》ㄡ⑯ᅃé¹è¶Šà±«à®™ä€Žá€ é©¨éƒŸéª‘蛟èª?⮋☺⸧å£âé¦â»Ÿèˆ‰匞ٕ嘅䔈ĉ啋ᕕçŒâ„ ç¼ã ¿å½’豩톗㴠丕 äá´æ”?貊蛟麚çŽâµæ¼»å¼©â€˜éžœæŽš
Thanks to everyone
 
Hello All,

Does the serial port can send send encrypted data to the remote
device.

When I try send this my application gets blocked.
Do we need to convert all these characters into string and then
sending through serial port ??
How can this be done ??

The data is something like this.
》ㄡ⑯ᅃé¹è¶Šà±«à®™ä€Žá€ é©¨éƒŸéª‘蛟èª?⮋☺⸧å£âé¦â»Ÿèˆ‰ 匞ٕ嘅䔈ĉ啋ᕕçŒâ„ ç¼ã ¿å½’豩톗㴠丕 äá´æ”?貊蛟麚çŽâµæ¼»å¼©â€˜éžœæŽš
Thanks to everyone

solved.....thanks
 
Hi, friend
Serial port can send any byte array, does not matter what is inside
Only thing is if you have sent string in certain coding you should by
receiving decode the byte array with the same coding (in this case UTF-8)
..Convertion can be done by
Encoding.UTF8.GetString,
Encoding.UTF8.GetBytes

In general serial port sends data as bytes. Convertion bytes to string of
proper coding format is not a question of sending through serial port but it
is the question of proper coding/decoding bytes to string.

Regards, Jamal
 
Back
Top