 |
|
|
Topic: [MSComm/Comm32] receiving binary and ASCII data
|
By: Guest | Posted on: Sep 10 2020 at 11:31:30 AM | [QUOTE]20/ 9/10 8:59 000000074290ZےےJA?¨4.88 13.2 41.1 84.2 27.0 32.1 319 42.4 7.3 50.3 3.7 0.6 4.4 14.0 42.7 8.9 7.9 10.7 57.9145.6 - ---
"(..+&
+G]dZD/! 4UdYD5'
$11 C10
[/QUOTE]
I get the above data when I use the following code:
[CODE]
Dim bBuffer() As Byte
If comRS232.InBufferCount > 0 Then
ReDim bBuffer(comRS232.InBufferCount - 1) As Byte
bBuffer = comRS232.Input
inpString = inpString + StrConv(bBuffer, vbUnicode)
End If
'Parse inpString when whole the message is received
[/CODE]
It is incorrect and missing a lot of binary data as per described by the instrument manual :(
When I use ComTestSerial from MicroRidge company and it receives the following data which is the correct data:
[QUOTE]20/ 9/10 8:44 000000074284Z ےے ےے ےے Kے †œ+D نu l ' ‹v x ] ×C
7.5 5.09 13.4 41.3 81.1 26.3 32.4 228 37.3 10.8 51.9 2.8 0.8 3.9 13.9 37.4 12.0 9.3 21.5 57.9154.9 -
6db8
ے
%/7:71*
ے | |
By: Guest | Posted on: Sep 10 2020 at 11:36:22 AM | I am using
comRS232.InputMode = comInputModeBinary
| |
|