Home All Groups Group Topic Archive Search About

Re: serialport adn encrpyted data

Author
2 Jul 2009 6:33 AM
friend
On Jul 1, 2:38 pm, cloud <fren***@googlemail.com> wrote: > 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

Author
5 Jul 2009 10:36 AM
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

Show quoteHide quote
"friend" <lavanyaredd***@gmail.com> wrote in message
news:268b2a8a-0332-4d92-a931-595bd0f18e21@g1g2000yqh.googlegroups.com...
> On Jul 1, 2:38 pm, cloud <fren***@googlemail.com> wrote:
>> 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.
>> ???????????????????????? ????c??????????? ???????????'??
>> Thanks to everyone
>
> solved.....thanks