
AMB8426-M_8626-M_MA_EN_V2_4
Page 7 of 48
Released: Nov.2013
2.2 Command Mode
In this operating mode, the communication with the module is achieved by using predefined
commands. For example, these commands can be used to set and read operating parameters
and to execute special functions (see chapter 7).
Also transmission and receiving of wM-Bus data is possible in this mode.
In this case, contrary to the transparent mode (each telegram starts with a length byte), the
telegram has to be preceded by a start byte 0xFF. This is followed by the command, the length
and the payload.
The last byte transmitted is the checksum (XOR of all preceding bytes including the start byte).
The evaluation of the checksum can also be deactivated (see Config_CRC_Disable).
Figure 7:
Telegram format of serial interface in the command mode
2.2.1 Command overview
Each command of Type
„REQ“ (Request) is followed by a confirm from the module of
type „CNF“ (Confirm). Thus the respective command byte is complimented by the bit
0x80 and returned by the module together with the respective data or status
information. For example in this way the
Request „0x0D“ becomes a Confirm „0x8D“
and
„0x11“ becomes „0x91“.
The following table provides an overview of the valid commands.
Command
Value
[hex]
Description
CMD_DATA_REQ
0x00 Transmission of wM-Bus data
CMD_DATARETRY_REQ
0x02 Resend data previously sent by the module
CMD_DATA_IND
0x03 Output of received Data
CMD_SET_MODE_REQ
0x04 Temporary change of the wM-Bus mode of
operation (in volatile memory)
CMD_RESET_REQ
0x05 Software reset
CMD_SET_CHANNEL_REQ
0x06 Select channel
CMD_SET_REQ
0x09 Write parameters of the non-volatile memory
CMD_GET_REQ
0x0A Read parameters from the non-volatile memory
CMD_SERIALNO_REQ
0x0B Read serial number
CMD_FWV_REQ
0x0C Read firmware version
CMD_RSSI_REQ
0x0D Read current RSSI value
Reserved
0x0E