serialport adn encrpyted data

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
 
F

friend

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
 
J

Jamal

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top