aclayborne
Programmer
I know this is a pretty basic question for most of you all but the whole concept escapes me.
I have an application that needs to send and receive information through MSComm the setting will be (9600,8,N,1)
I will recieve a 5 byte packet ex:
Offset1 = 0x7E
Offset2 = 0x01
Offset3 = 0x02
Offset4 = Unused
Offset5 = Checksum(Modulo-256 sum of 1 thru 3)
1) What will I actually see in comEvReceive in the MSComm1.CommEvent.
2) What's the best way to handle it? Can I use the Split()Do I declare the variable that will handle the data as string, or an array of bytes ex: Dim B(4) As Byte.
3) How do I calculate my checksum.
I have an application that needs to send and receive information through MSComm the setting will be (9600,8,N,1)
I will recieve a 5 byte packet ex:
Offset1 = 0x7E
Offset2 = 0x01
Offset3 = 0x02
Offset4 = Unused
Offset5 = Checksum(Modulo-256 sum of 1 thru 3)
1) What will I actually see in comEvReceive in the MSComm1.CommEvent.
2) What's the best way to handle it? Can I use the Split()Do I declare the variable that will handle the data as string, or an array of bytes ex: Dim B(4) As Byte.
3) How do I calculate my checksum.