I am working on a driver for a device at work, and I can't get the serial communication layer to work. The manual is very little help, and I am very rusty at this stuff. Here is what the manual says about the message:
Here is the message representation as seen at the output of the data-link layer :-
(STX)G(VALUE)M(VALUE)(COMMAND)[(COMMAND)...](ETX)(CRC)
1. The message starts with STX (HEX 02) indicating start of message.
2. G and M are identifiers that are contained in every message.
3. (COMMAND) is made up of (IDENTIFIER)(VALUES LIST).
(IDENTIFIER) is one of a series of letter or letter-number combinations detailed in the tables below.
(VALUES LIST) are decimal values, with leading-zero suppression (unless otherwise specified),
separated by commas and terminated by the next command or ETX.
Note that more than one (COMMAND) may be sent in a single message.
4. The message ends with ETX (HEX 03) indicating end of message.
I understand the STX, ETX and command parts, but I am a bit hazy on the bolded B and M commands, it just says they are identifiers, but I am not sure of the value to put in them. I have guessed a couple of things, but no go.
Here is the message representation as seen at the output of the data-link layer :-
(STX)G(VALUE)M(VALUE)(COMMAND)[(COMMAND)...](ETX)(CRC)
1. The message starts with STX (HEX 02) indicating start of message.
2. G and M are identifiers that are contained in every message.
3. (COMMAND) is made up of (IDENTIFIER)(VALUES LIST).
(IDENTIFIER) is one of a series of letter or letter-number combinations detailed in the tables below.
(VALUES LIST) are decimal values, with leading-zero suppression (unless otherwise specified),
separated by commas and terminated by the next command or ETX.
Note that more than one (COMMAND) may be sent in a single message.
4. The message ends with ETX (HEX 03) indicating end of message.
I understand the STX, ETX and command parts, but I am a bit hazy on the bolded B and M commands, it just says they are identifiers, but I am not sure of the value to put in them. I have guessed a couple of things, but no go.