simple serial send/receive problem >> Solved
Hi,
I’m making a simple network program that uses com1 to send/receive data,
my packet structure is as follows
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
{ D S T <--data load-----------> cs }
D = destination
S = source
T = packet type
cs = check sum
}
The thing is when I send my packet it seems to insert a null character at bit 9 of the packet even thou it's declared as
char packet[16];
Meaning that when I enter 1 - 9 then a letter for the data
it’s received as
packet 1 {??D1234
packet 2 56789w*}
If I send the data packet to HyperTerminal it displays perfectly
so obviously it’s in my receive code... but I have no idea what it is im looking for... :(
Any ideas / thoughts greatly appreciated
Cheers,
Kev