So I am writting a moble laptop program that will send information from a server to a laptop that is ridding in a car somewhere in the city.
I would like to get ideas of how to make a Message Structure that will one day be able to be upgraded if needbe.
This is what I have come up with on my own:
Start Pattern = some hex character or two of them
len mess. = the length of the entire messages
len hdr = the length of the header
fc = function code = purpose of the message.
data len = Length of message data
dest = destination of message
data = text to be sent in string format
stop pattern = some hex character or opposite of start pattern if more than one character.
so would hex be the way to go with header info or not what is the format that should be used so that I can keep my packet size down?
Thanks for all your help TheKing
I would like to get ideas of how to make a Message Structure that will one day be able to be upgraded if needbe.
This is what I have come up with on my own:
Start Pattern = some hex character or two of them
len mess. = the length of the entire messages
len hdr = the length of the header
fc = function code = purpose of the message.
data len = Length of message data
dest = destination of message
data = text to be sent in string format
stop pattern = some hex character or opposite of start pattern if more than one character.
so would hex be the way to go with header info or not what is the format that should be used so that I can keep my packet size down?
Thanks for all your help TheKing