Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27389

VS 2010 Serialport encoding

$
0
0
Hi, all.
I have a device which is communicating with rs232. It can be set to either ASCII or binary.
I can receive ASCII data, but this is quite slow. The binary data is sent with a compression algorithm.
The answer should be something like: (The transmitted bytes)
Name:  Untitled.png
Views: 50
Size:  43.1 KB

It is probably me that does something wrong in the communication.

This is the answer I get with Encoding (”Windows-1252”):
S
ACK
€_•0ùú_õìçÿûøûÝô&_÷þ____ìô
_ê___øõ_ùñ_ ñ÷_ýéø___üåû
úìý_’ßã
__ê__ð___éû_íô___ééëü_ýý
&_ïîîö_øî _óéç__ü_ü_ýóñé__ìôö___

And so on…

And this answer with UTF-8 encoding:
S
ACK
_ __&_ _ ___ ___
_
&
___ )_
__ __ __ _
_ ____ ____ _ ____ _ __ ___ __ ___

And this answer with ASCII encoding:

ACK
S
ACK
?_?_???___??????_ _____
_???
__?
_??__??_?
_?__??_?__ ????___??? ???__????____
_???!_???_?___?? _??___???___)

Any help would be appreciated.
Attached Images
 

Viewing all articles
Browse latest Browse all 27389

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>