Serial API Commands#
Besides the Z-Wave API function calls described in “Z-Wave application programmers’ guide” the Serial API support a set of additional commands.
Application Node Information Command#
Starting with the Serial API protocol version 4, it is possible to call Serial API Application Node Information Command to store a new Node Information Frame (NIF). Prior to either starting or joining a Z-Wave network, the HOST needs to initially set up the Node Information Frame (NIF), which should define the type of Z-Wave node the Serial API module is supposed to be. To store the NIF in the protocol NVM area as well as in the application NVM area, the HOST needs to perform the following steps:
HOST->ZW: send SerialAPI_ApplicationNodeInformation() with NIF information, use FUNC_ID_SERIAL_API_APPL_NODE_INFORMATION.
HOST->ZW: send ZW_SetDefault(), use FUNC_ID_ZW_SET_DEFAULT.
| Serial API: |
|---|
| HOST->ZW: REQ | 0x03 | deviceOptionsMask | generic | specific | parmLength | nodeParm[ ] |
| ZW->HOST: (no response frame for this command) |
For more details, see the relevant Application Programming Guide [3].
Note: parmLength number of bytes in nodeParm (command class list) is default capped at 35 bytes (APPL_NODEPARM_MAX), longer values are truncated. Total REQ payload size is 4 + parmLength bytes.
Application Node Information Command Classes Command#
Starting with SDK 6.71.00, HOSTs connected to Serial API modules based on the End Device Routing or End Device Enhanced 232 library can set the Command Classes which should be supported in NOT Included, Insecurely Included, and Securely Included inclusion states. Supported command classes as set through the Serial API Application Node Information Command Classes Command with the FUNC_ID_SERIAL_API_APPL_NODE_INFORMATION_CMD_CLASSES Serial API command.
| Serial API: |
|---|
|
HOST->ZW: REQ | 0x0C | unincluded_parmLength | unincluded_nodeParm[unincluded_parmLength] | included_unsecure_parmLength | included_unsecure_nodeParm[included_unsecure_parmLength] | included_secure_parmLength | included_secure_nodeParm[included_secure_parmLength] ZW->HOST: RES | 0x0C | status Status: 0x01: Success 0x00: Failure |
Note: each *_parmLength is the byte count of the following command-class list. On NCP reference firmware, each list is limited to 35 bytes (APPL_NODEPARM_MAX); bytes beyond that are not copied. Host must send each length ≤ 35. Total REQ payload size: 3 + unincluded_parmLength + included_unsecure_parmLength + included_secure_parmLength bytes (minimum 3 when all lengths are zero).
SDK 6.71.00 adds Security to the protocol in the End Device Routing and End Device Enhanced 232 libraries resulting in additional setup steps before entering the inclusion process. Prior to joining a Z-Wave network, the HOST needs to initially set up which Security keyclasses (S0, S2_UNATHENTICATED, S2_AUTHENTICATED, S2_ACCESS) the node should apply for (if any). Afterwards the Security Authentication method must be specified. The Node Information Frame (NIF) which should define the type of Z-Wave node the Serial API module should be defined with regard to Listening, FLiRS, Generic type, Specific Type. Finally, the supported Command Classes for the various inclusion states should be set up.
Serial API:
In the Serial API, the Security API functions are reached through the FUNC_ID_ZW_SECURITY_SETUP (0x9C). Serial API FUNC_ID makes it possible to set the Requested Security Keys and Requested Authentication method in a End Device Routing/Enhanced 232-based Serial API Node prior to inclusion (add). The protocol requests the Requested Security Keys and Authentication during S2 inclusion.
Set Security Inclusion Requested Keys (E_SECURITY_SETUP_CMD_SET_SECURITY_INCLUSION_REQUESTED_KEYS):
HOST->ZW: REQ | 0x9C | 5 | registeredSecurityKeysLen(1) | registeredSecurityKeys
ZW->HOST: RES | 0x9C | 5 | retValLen(1) | retVal
retVal == TRUE => success
(OBSOLETE) Set Security Inclusion Requested Authentication (E_SECURITY_SETUP_CMD_SET_SECURITY_INCLUSION_REQUESTED_AUTHENTICATION):
HOST->ZW: REQ | 0x9C | 6 | registeredSecurityAuthenticationLen(1) | registeredSecurityAuthentication
ZW->HOST: RES | 0x9C | 6 | retValLen(1) | retVal
Or if unsupported
ZW->HOST: RES | 0x9C | 0xFF | retValLen(1) | retVal
retVal == TRUE => success
HOSTs, which are connected to a Serial API module based on either End Device Enhanced 232 or End Device Routing libraries should follow the list below for correct module setup prior to joining a Z-Wave network:
HOST->ZW: send SerialAPI_SetSecurityInclusionRequestedKeys
(OBSOLETE) HOST->ZW: send SerialAPI_SetSecurityInclusionRequestedAuthentication
HOST->ZW: send SerialAPI_ApplicationNodeInformation() with NIF information (listening, generic, specific)
HOST->ZW: send SerialAPI_ApplicationNodeInformationCmdClasses
HOST->ZW: send ZW_SetDefault()
Capabilities Command#
Starting with the Serial API protocol version 4, users can call the Serial API Capabilities Command to determine which Serial API functions a specific Serial API Z-Wave Module supports with the FUNC_ID_SERIAL_API_GET_CAPABILITIES Serial API function:
| Serial API: |
|---|
|
HOST->ZW: REQ | 0x07 ZW->HOST: RES | 0x07 | SERIAL_APPL_VERSION | SERIAL_APPL_REVISION | SERIALAPI_MANUFACTURER_ID1 | SERIALAPI_MANUFACTURER_ID2 | SERIALAPI_MANUFACTURER_PRODUCT_TYPE1 | SERIALAPI_MANUFACTURER_PRODUCT_TYPE2 | SERIALAPI_MANUFACTURER_PRODUCT_ID1 | SERIALAPI_MANUFACTURER_PRODUCT_ID2 | FUNCID_SUPPORTED_BITMASK[ ] |
|
SERIAL_APPL_VERSION is the Serial API application version (major), typically aligned with the SDK application version on reference NCP builds. SERIAL_APPL_REVISION is the Serial API application revision (minor). This pair is **not** the same byte as `ver` in **Get Init Data** (`0x02`), which is the **Serial API protocol version**. SERIALAPI_MANUFACTURER_ID1 is the Serial API application manufacturer_id (MSB). SERIALAPI_MANUFACTURER_ID2 is the Serial API application manufacturer_id (LSB). SERIALAPI_MANUFACTURER_PRODUCT_TYPE1 is the Serial API application manufacturer product type (MSB). SERIALAPI_MANUFACTURER_PRODUCT_TYPE2 is the Serial API application manufacturer product type (LSB). SERIALAPI_MANUFACTURER_PRODUCT_ID1 is the Serial API application manufacturer product ID (MSB). SERIALAPI_MANUFACTURER_PRODUCT_ID2 is the Serial API application manufacturer product ID (LSB). FUNCID_SUPPORTED_BITMASK[ ] is a bitmask where every supported Serial API function ID has a corresponding bit in the bitmask set to '1'. All unsupported Serial API function IDs have their corresponding bit set to '0'. The first byte in bitmask corresponds to FuncIDs 1-8, where bit 0 corresponds to FuncID 1 and bit 7 corresponds to FuncID 8. The second byte in bitmask corresponds to FuncIDs 9-16, and so on. |
Note: The default length of FUNCID_SUPPORTED_BITMASK is 32 bytes.
Node List Command#
Get Init Data Command#
Starting with the Serial API protocol version 4, users can call the Serial API Node List Command to determine the Serial API protocol version number, Serial API capabilities, nodes currently stored in the external NVM (only controllers), and a chip used in a specific Serial API Z-Wave Module with the FUNC_ID_SERIAL_API_GET_INIT_DATA Serial API function:
| Serial API: |
|---|
|
HOST->ZW: REQ | 0x02 (Controller) ZW->HOST: RES | 0x02 | ver | capabilities | 29 | nodes[29] | chip_type | chip_version (End Device) ZW->HOST: RES | 0x02 | ver | capabilities | 0 | chip_type | chip_version |
The parameter ver is the Serial API protocol version number (e.g. 10 on current NCP), not the same value as SERIAL_APPL_VERSION in Get Capabilities (0x07).
The parameter capabilities is a byte holding various flags describing the actual mode.
| Capabilities flags: |
|---|
| Bit 0: 0 = Controller API; 1 = End device API |
| Bit 1: 0 = Timer functions not supported; 1 = Timer functions supported. |
| Bit 2: 0 = Primary Controller; 1 = Secondary Controller |
| Bit 3: 0 = Not SIS; 1 = Controller is SIS |
| Bit 4-7: reserved |
Timer functions supported comprises of TimerStart, TimerRestart, and TimerCancel.
29 or 0 specifies the length of nodes[] array
nodes[29] is a node bitmask of classic Z-Wave node IDs (1–232). Long Range nodes are not included, use Get Long Range Nodes
The chip used can be determined as follows:
Z-Wave Chip | Chip_type | Chip_version |
|---|---|---|
ZW0102 | 0x01 | 0x02 |
ZW0201 | 0x02 | 0x01 |
ZW0301 | 0x03 | 0x01 |
ZM0401 | 0x04 | 0x01 |
ZM4102 | 0x04 | 0x01 |
SD3402 | 0x04 | 0x01 |
ZW050x | 0x05 | 0x00 |
ZGM130S | 0x07 | 0x00 |
ZG14 | 0x07 | 0x00 |
ZG23 | 0x08 | 0x00 |
ZGM230S | 0x08 | 0x00 |
Note: chip_type / chip_version are returned at runtime. Confirm on target hardware via Get Init Data (0x02).
Get Long Range Nodes Command#
In Z-Wave Long Range network, function FUNC_ID_SERIAL_API_GET_LR_NODES is used to obtain the list of Long Range nodes:
HOST->ZW: REQ | 0xDA | BITMASK_OFFSET
ZW->HOST: RES | 0xDA | MORE_NODES | BITMASK_OFFSET | BITMASK_LEN | BITMASK_ARRAY
MORE_NODES: byte, has value 1 if more nodes is available and the host can request the next chunk of the nodes bitmask array. Currently it always returns 0 as max supported number of LR nodes can fit in 128 bytes.
BITMASK_OFFSET: one-byte (8 bit) chunk index (0–3). Values 0, 1, 2, 3 correspond to byte offsets 0, 128, 256, 384 into the full LR node bitmask. If the requested value is greater than 3, the firmware clamps it to 3.
BITMASK_LEN: byte, hardcoded to 128 bytes (max 1024 LR node IDs).
BITMASK_ARRAY: an array of 128 bytes, with least significant bytes first, contains a bitmask of the available nodes in the network.
If bit N in byte J (J >= 0) is set to 1, then node with ID = BASE + (BITMASK_OFFSET × 1024) + 8×J + N, where BASE = 256, exists in the network.
Set Timeouts Command#
The timeout in the Serial API (starting with the Serial API version 4) can be set in 10 ms ticks by using the FUNC_ID_SERIAL_API_SET_TIMEOUTS Serial API function:
| Serial API: |
|---|
|
HOST->ZW: REQ | 0x06 | RXACKtimeout | RXBYTEtimeout ZW->HOST: RES | 0x06 | oldRXACKtimeout | oldRXBYTEtimeout Default value of RXACKtimeout is 1500ms (150 ticks). Default value of RXBYTEtimeout is 150ms (15 ticks). Must be called after reset if non Default timeouts are required. |
Set up ZW_SendData Callback Parameters Command#
The callback parameter list extension (starting with the Serial API version 6) can be controlled by using FUNC_ID_SERIAL_API_SETUP Serial API function:
| Serial API: |
|---|
|
HOST->ZW: REQ | 0x0B | 0x02 | enableTxStatusReport ZW->HOST: RES | 0x0B | 0x02 | CmdRes enableTxStatusReport = 0, No extra parameters can be transmitted on callback enableTxStatusReport = 1, Extra parameters should be transmitted on callback Default value of enableTxStatusReport is 1 (enable). Must be called after reset if none Default setting is required. |
Supported SERIAL_API_SETUP_CMD Command#
All supported SERIAL_API_SETUP commands can be obtained by using SERIAL_API_SETUP_CMD_SUPPORTED subcommand of SERIAL_API_SETUP_CMD
Host -> ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_ SUPPORTED | |||||||
ZW -> Host:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_ SUPPORTED | |||||||
Supported flags | |||||||
Supported bitmask 0 | |||||||
Supported bitmask 1 | |||||||
… | |||||||
Supported bitmask 16 | |||||||
Supported flags
SERIAL_API_SETUP_CMD supported commands, also include SERIAL_API_SETUP_CMD_SUPPORTED, are represented as bitmask flag. Example: SERIAL_API_SETUP_CMD_SUPPORTED | SERIAL_API_SETUP_CMD_TX_POWERLEVEL_SET | SERIAL_API_SETUP_CMD_TX_POWERLEVEL_GET | … The Supported flags byte lists only commands whose identifier is a power of two (1, 2, 4, 8, …). Commands with other identifiers are reported only in Supported bitmask.
Supported bitmask
Array of bytes listing all supported commands as a bitmask. For command identifier N, set bit (N − 1) % 8 in byte (N − 1) / 8 of the Supported bitmask, least significant byte first. Example (OR within each byte) Supported bitmask 0: (1 << (SERIAL_API_SETUP_CMD_SUPPORTED - 1)) | (1 << (SERIAL_API_SETUP_CMD_TX_POWERLEVEL_SET - 1)) | …
Configuration of Default Tx Power Level Command#
By default, the transmit power level is hard coded in the Z-Wave image downloaded to the Z-Wave chip. However, hardware differences in products may require changing the Tx power. Changing the default Tx power will require the following steps:
Use the SERIAL_API_SETUP_CMD_TX_POWERLEVEL_SET or SERIAL_API_SETUP_CMD_TX_POWERLEVEL_SET_16_BIT command to set the power levels to desired values. The values are stored in application NVM.
Use the FUNC_ID_SERIAL_API_SOFT_RESET command to restart the Z-Wave module so the new settings are activated. After restart, the firmware loads transmit power level from NVM (not from image constants alone).
Set Default Tx Power Level - 8 bit Command (Deprecated)#
The Transmit power can be configured through Serial API (starting with Serial API version 7) by using FUNC_ID_SERIAL_API_SETUP Serial API function, subfunction SERIAL_API_SETUP_CMD_TX_POWERLEVEL_SET.
The power levels set by this function are first used by the Z-Wave protocol next time the module is restarted.
Host -> ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_TX_POWERLEVEL_SET | |||||||
NormalTxPower | |||||||
Measured0dBmPower | |||||||
NormalTxPower
The power level used when transmitting frames at normal power. The power level is in deci dBm, for example 1 dBm output power will be 10 in NormalTxPower and -2 dBm will be -20 in NormalTxPower. This field is a signed 8-bit value (−127 to +127 deci dBm).
Measured0dBmPower
The output power measured from the antenna when NormalTxPower is set to 0 dBm. The power level is in deci dBm, for example 1 dBm output power will be 10 in Measured0dBmPower and -2 dBm will be -20 in Measured0dBmPower. This field is a signed 8-bit value (−127 to +127 deci dBm).
ZW->HOST:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_TX_POWERLEVEL_SET | |||||||
CmdRes | |||||||
CmdRes
Result of the command
CmdRes = 0 – Power levels was not set.
CmdRes = 1 – Power levels was set.
Set Default Tx Power Level - 16 bit Command#
The Transmit power can be configured through Serial API (starting with Serial API version 7) by using FUNC_ID_SERIAL_API_SETUP Serial API function, subfunction SERIAL_API_SETUP_CMD_TX_POWERLEVEL_SET_16_BIT.
The power levels set by this function are first used by the Z-Wave protocol next time the module is restarted.
Host -> ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_TX_POWERLEVEL_SET_16_BIT | |||||||
NormalTxPower 01 | |||||||
NormalTxPower 02 | |||||||
Measured0dBmPower 01 | |||||||
Measured0dBmPower 02 | |||||||
NormalTxPower 01 is Normal Powerlevel Setting (MSB) NormalTxPower 02 is Normal Powerlevel Setting (LSB) Measured0dBmPower 01 is Measured 0dBm Powerlevel Setting (MSB) Measured0dBmPower 02 is Measured 0dBm Powerlevel Setting (LSB)
NormalTxPower
The power level used when transmitting frames at normal power. The power level is in deci dBm, for example 1 dBm output power will be 10 in NormalTxPower and -2 dBm will be -20 in NormalTxPower. This field is a signed 16-bit value, however acceptable range is -100 deci dBm to maximum supported power (depends on HW part).
Measured0dBmPower
The output power measured from the antenna when NormalTxPower is set to 0 dBm. The power level is in deci dBm, for example 1 dBm output power will be 10 in Measured0dBmPower and -2 dBm will be -20 in Measured0dBmPower. This field is a signed 16-bit value, however acceptable range is -100 to 100 deci dBm.
ZW->HOST:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_TX_POWERLEVEL_SET_16_BIT | |||||||
CmdRes | |||||||
CmdRes
Result of the command
CmdRes = 0 – Power levels was not set.
CmdRes = 1 – Power levels was set.
Get Default Tx Power Level - 8 bit Command (Deprecated)#
The Transmit power can be read through the serial API (starting with Serial API version 7) by using FUNC_ID_SERIAL_API_SETUP Serial API function, subfunction SERIAL_API_SETUP_CMD_TX_POWERLEVEL_GET:
HOST->ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_TX_POWERLEVEL_GET | |||||||
ZW->HOST:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_TX_POWERLEVEL_GET | |||||||
NormalTxPower | |||||||
Measured0dBmPower | |||||||
NormalTxPower
Default value of NormalTxPower is 200. The power level used when transmitting frames at normal power. The power level is in deci dBm, for example 1 dBm output power will be 10 in NormalTxPower and -2 dBm will be -20 in NormalTxPower. This field is a signed 8-bit value (−127 to +127 deci dBm), and read from application NVM. If NVM holds a value outside −127…+127 deci dBm (for example 200), the module returns 127 (0x7F), not 200.
Measured0dBmPower
Default value of Measured0dBmPower is 0 The output power measured from the antenna when NormalTxPower is set to 0 dBm. The power level is in deci dBm, for example 1 dBm output power will be 10 in Measured0dBmPower and -2 dBm will be -20 in Measured0dBmPower. This field is a signed 8-bit value (−127 to +127 deci dBm), and read from application NVM. If NVM holds a value outside −127…+127 deci dBm, the module clamps to 127 (0x7F, Max) or −128 (0x80, Min).
Get Default Tx Power Level - 16 bit Command#
The Transmit power can be read through the serial API (starting with Serial API version 7) by using FUNC_ID_SERIAL_API_SETUP Serial API function, subfunction SERIAL_API_SETUP_CMD_TX_POWERLEVEL_GET_16_BIT:
HOST->ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_TX_POWERLEVEL_GET_16_BIT | |||||||
ZW->HOST:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_TX_POWERLEVEL_GET_16_BIT | |||||||
NormalTxPower 01 | |||||||
NormalTxPower 02 | |||||||
Measured0dBmPower 01 | |||||||
Measured0dBmPower 02 | |||||||
NormalTxPower 01 is Normal Powerlevel Setting (MSB) NormalTxPower 02 is Normal Powerlevel Setting (LSB) Measured0dBmPower 01 is Measured 0dBm Powerlevel Setting (MSB) Measured0dBmPower 02 is Measured 0dBm Powerlevel Setting (LSB)
NormalTxPower
Default value of NormalTxPower is 200 The power level used when transmitting frames at normal power. The power level is in deci dBm, for example 1 dBm output power will be 10 in NormalTxPower and -2 dBm will be -20 in NormalTxPower. This field is a signed 16-bit value, read from application NVM with no clamping. Values are typically those previously set by SET 16-bit (-100 deci dBm to maximum supported power (depends on HW part)).
Measured0dBmPower
Default value of Measured0dBmPower is 0 The output power measured from the antenna when NormalTxPower is set to 0 dBm. The power level is in deci dBm, for example 1 dBm output power will be 10 in Measured0dBmPower and -2 dBm will be -20 in Measured0dBmPower. This field is a signed 16-bit value, read from application NVM with no clamping. Values are typically those previously set by SET 16-bit (-100 to 100 deci dBm).
Get the Background RSSI Levels for each channel Command#
The command FUNC_ID_ZW_GET_BACKGROUND_RSSI returns the Background RSSI level for each valid channel. The command always returns four RSSI values (8-bit each): indices that are valid for the current region/device configuration may contain a measured level or a status code; indices that are not valid are set to 0x7F (not available for that slot — not a measured +127 dBm). The valid measured background RSSI range is typically −105 dBm to +30 dBm (see byte encoding below).
The number of valid channels depends on the region, the device type (controller/end device) and whether the end device node is included or not. In the following table there is a summary of the possible configurations. The four Background RSSI levels have assigned an index from 0 to 3 to identify them.
| Region | Device Type | Included (for End-devices) | Valid Background RSSI levels (index) |
|---|---|---|---|
| 2-channels | Controller/End-device | - |
0 (100kbps) 1 (9.6kbps) 2 (40kbps) |
| 3-channels | Controller/End-device | - |
0 (100kbps), 1 (100kbps), 2 (100kbps) |
| 4-channels (US_LR with ZW_LR_CHANNEL_A as 4th channel) | Controller | - |
0 (100kbps) 1 (9.6kbps) 2 (40kbps) 3 (ZW_LR_CHANNEL_A) |
| End-device | No |
0 (100kbps) 1 (9.6kbps) 2 (40kbps) 3 (ZW_LR_CHANNEL_A) |
|
| End-device | Yes |
0 (ZW_LR_CHANNEL_A) 1 (ZW_LR_CHANNEL_B) |
|
| 4-channel (US_LR with ZW_LR_CHANNEL_B as 4th channel) | Controller | - |
0 (100kbps) 1 (9.6kbps) 2 (40kbps) 3 (ZW_LR_CHANNEL_B) |
| End-device | No |
0 (100kbps) 1 (9.6kbps) 2 (40kbps) 3 (ZW_LR_CHANNEL_B) |
|
| End-device | Yes |
0 (ZW_LR_CHANNEL_A) 1 (ZW_LR_CHANNEL_B) |
Host -> ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_ZW_GET_BACKGROUND_RSSI | |||||||
ZW -> Host:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_ZW_GET_BACKGROUND_RSSI | |||||||
RSSI[0] | |||||||
RSSI[1] | |||||||
RSSI[2] | |||||||
RSSI[3] | |||||||
RSSI:
The function returns four 8-bit encoded Background RSSI values. Use the table above to know which indices are valid channels; any invalid index is 0x7F. On a valid index, interpret the byte using the encoding table below (not all bytes are numeric dBm).
Byte encoding on the Serial API wire (Z-Wave command interface / GET_BACKGROUND_RSSI):
Byte | Meaning |
|---|---|
0x00–0x7C | Measured RSSI in dBm (0…124) |
0x80–0xFF | Measured RSSI in dBm (−128…−1) |
0x7D | Below receiver sensitivity — no numeric dBm |
0x7E | Receiver saturated — no numeric dBm |
0x7F | RSSI not available (includes invalid channel indices per table; may also appear on a valid index when no value is available) |
Do not treat 0x7D, 0x7E, or 0x7F as measured dBm (including “+127 dBm” for 0x7F). Lower-layer PAL defines 125/126 as “cannot measure during RX/TX”; on Serial API, use the table above, not the PAL macro names.
Configuration of the RF Region Setting#
Configuration Any Time#
To change the RF Region setting at any time, use the sequence of commands below:
Use the SERIAL_API_SETUP_CMD_RF_REGION_SET command to set the RF Region setting to the new value.
Use the FUNC_ID_SERIAL_API_SOFT_RESET command to restart the Z-Wave module so the new setting gets activated.
Set RF Region#
The RF Region setting can be configured through serial API (starting with the Serial API version 8) by using FUNC_ID_SERIAL_API_SETUP Serial API function, sub-function SERIAL_API_SETUP_CMD_RF_REGION_SET.
The RF Region set by this function is first used by the Z-Wave protocol next time the module is restarted.
Host -> ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_RF_REGION_SET | |||||||
RfRegion | |||||||
RfRegion
The RF Region value to be set.
RF Region | Value |
|---|---|
Region US Z-Wave Long Range | 0x09 |
Region EU Z-Wave Long Range | 0x0B |
Region EU | 0x00 |
Region US | 0x01 |
Region Australia/New Zealand | 0x02 |
Region Hong Kong | 0x03 |
Region India | 0x05 |
Region Israel | 0x06 |
Region Russia | 0x07 |
Region China | 0x08 |
Region Japan | 0x20 |
Region Korea | 0x21 |
ZW->HOST:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_RF_REGION_SET | |||||||
CmdRes | |||||||
CmdRes
Result of the command
CmdRes = 0 – RF Region was not set (invalid value specified or error setting the value in firmware).
CmdRes = 1 – RF Region was successfully set.
Get RF Region#
The RF Region setting can be read through serial API (starting with the Serial API version 8) by using FUNC_ID_SERIAL_API_SETUP Serial API function, sub-function SERIAL_API_SETUP_CMD_RF_REGION_GET:
HOST->ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_RF_REGION_GET | |||||||
ZW->HOST:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_RF_REGION_GET | |||||||
RfRegion | |||||||
RfRegion
The returned RF Region value
See the SERIAL_API_SETUP_CMD_RF_REGION_SET command (p. 36) for details about the valid RF Region values.
RfRegion = 0xFE – Error retrieving the RF Region value
DCDC Configuration Commands#
The current DCDC configuration can be updated or retrieved using Set DCDC Configuration and Get DCDC Configuration Commands, respectively.
Set DCDC Configuration Command#
The host CPU system can set the DCDC Configuration by using the Serial API function FUNC_ID_SET_DCDC_CONFIG (0xDF).
HOST->ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SET_DCDC_CONFIG | |||||||
DCDC Configuration | |||||||
DCDC Configuration (8 bit):
Value identifying one of the three possible setups for the DCDC Configuration
DCDC Configuration | Value |
|---|---|
EDCDCMODE_AUTO | 0x00 |
EDCDCMODE_BYPASS | 0x01 |
EDCDCMODE_DCDC_LOW_NOISE | 0x02 |
ZW->HOST:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SET_DCDC_CONFIG | |||||||
CmdRes | |||||||
CmdRes (8 bit):
Possible results of the command:
CmdRes | Value |
|---|---|
Set DCDC Configuration not successful | 0x00 |
Set DCDC Configuration successful | 0x01 |
Get DCDC Configuration Command#
The host CPU system can get the current DCDC Configuration by using the Serial API function FUNC_ID_GET_DCDC_CONFIG (0xDE).
HOST->ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_GET_DCDC_CONFIG | |||||||
ZW->HOST:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_GET_DCDC_CONFIG | |||||||
DCDC Configuration | |||||||
DCDC Configuration (8 bit):
Value identifying one of the three possible setups for the DCDC Configuration:
DCDC Configuration | Value |
|---|---|
EDCDCMODE_AUTO | 0x00 |
EDCDCMODE_BYPASS | 0x01 |
EDCDCMODE_DCDC_LOW_NOISE | 0x02 |
Get Maximum Payload Size#
The maximum supported payload size can be read through serial API (starting with the Serial API version 7) by using FUNC_ID_SERIAL_API_SETUP Serial API function, sub function SERIAL_API_SETUP_CMD_TX_GET_MAX_PAYLOAD_SIZE:
HOST->ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_TX_GET_MAX_PAYLOAD_SIZE | |||||||
ZW->HOST:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_TX_GET_MAX_PAYLOAD_SIZE | |||||||
MaxPayloadSize | |||||||
MaxPayloadSize
Maximum payload size supported by the Z-Wave protocol.
Set Node ID Base Type#
Command to set the Base Type of all Serial API Command Node ID fields. Introduced in Serial API version 9. The Node ID Base Type defines how all Serial API Command Node ID fields should be interpreted. The setting can be either 8 or 16 bits.
The 8 bits setting is the default (legacy) setting where the Node ID field is 1 byte wide as illustrated in the command frame below:
| Byte 1 | Byte 2 | Byte3 | Byte 4 | Byte 5 | ...
| SOF | Length | Type | Cmd | NodeID | ...The 16 bits setting means the Node ID field is 2 bytes wide, with the most significant byte (MSB) first, as illustrated in the command frame below:
| Byte 1 | Byte 2 | Byte3 | Byte 4 | Byte 5 | Byte 6 | ...
| SOF | Length | Type | Cmd | NodeID MSB | NodeID LSB | ...Note: The configured Node ID Base Type is stored in non-volatile memory (NVM) and is restored after a controller reset or power cycle. The default value of 8 bits is only used when no Node ID Base Type configuration is available in NVM.
Host -> ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_NODEID_BASETYPE_SET | |||||||
BaseType | |||||||
BaseType
The Node ID Base Type value to be set.
BaseType | Value |
|---|---|
8 bits | 0x01 |
16 bits | 0x02 |
ZW->HOST:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SETUP | |||||||
SERIAL_API_SETUP_CMD_NODEID_BASETYPE_SET | |||||||
CmdRes | |||||||
CmdRes
Result of the command
CmdRes = 0: Command Error. An invalid BaseType value was provided. In this case, the controller falls back to the default Node ID Base Type (8 bits) for the current runtime session. This value is not persisted to NVM. After a controller restart, the Node ID Base Type is restored from the value stored in NVM.
CmdRes = 1: Command OK. The requested Node ID Base Type was successfully applied and stored in NVM.
Note: If an invalid BaseType value is provided, the controller falls back to the default 8-bit Node ID Base Type for the current runtime session. This value is not persisted to NVM. After a restart, the Node ID Base Type is restored from the value stored in NVM.
Serial API started Command#
The Serial API will inform the host that it has been started by issuing the FUNC_ID_SERIAL_API_STARTED command.
ZW->HOST:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_STARTED | |||||||
WakeupReason | |||||||
WatchdogStarted | |||||||
deviceOptionMask | |||||||
GenericNodetype | |||||||
SpecificNodetype | |||||||
CommandClassLength | |||||||
CommandClass 1 | |||||||
… | |||||||
CommandClass x | |||||||
Capabilities | |||||||
Manufacturer ID (MSB) | |||||||
Manufacturer ID (LSB) | |||||||
Reset Information (MSB) | |||||||
Reset Information (LSB) | |||||||
WakeupReason
The reason for starting up the Z-Wave module.
Define | Description | Value |
|---|---|---|
ZPAL_RESET_REASON_PIN | Reset triggered by reset pin | 0x00 |
ZPAL_RESET_REASON_DEEP_SLEEP_WUT | Reset triggered by wake up by timer from deep sleep state | 0x01 |
ZPAL_RESET_REASON_WATCHDOG | Reset triggered by watchdog | 0x03 |
ZPAL_RESET_REASON_DEEP_SLEEP_EXT_INT | Reset triggered by external interrupt event in deep sleep state | 0x04 |
ZPAL_RESET_REASON_POWER_ON | Reset triggered by power on | 0x05 |
ZPAL_RESET_REASON_SOFTWARE | Reset triggered by software | 0x07 |
ZPAL_RESET_REASON_BROWNOUT | Reset triggered by brownout circuit | 0x09 |
ZPAL_RESET_REASON_TAMPER | Reset triggered by a tamper attempt | 0x10 |
ZPAL_RESET_REASON_OTHER | Reset triggered by none of the above | 0xFF |
WatchdogStarted
0: Watchdog timer is not started.
1: Watchdog timer is started and kicked by the Serial API.
deviceOptionMask
The deviceoptionmask set by the SerialAPI_ApplicationNodeInformation command
GenericNodetype
The generic node type set by the SerialAPI_ApplicationNodeInformation command
SpecificNodetype
The specific node type set by the SerialAPI_ApplicationNodeInformation command
CommandClassLength
The number of command classes in the Node information frame
CommandClass x
The command class number supported by the node
Capabilities
Bitfield with information of supported Serial API Controller features
Value | Description |
|---|---|
Bit 0 | This bit indicates if the Controller supports Z-Wave Long range: The value 0 MUST indicate that the Controller does not support Z-Wave Long Range. The value 1 MUST indicate that the Controller does supports Z-Wave Long Range |
Bit 1 – Bit 7 | Unused |
Manufacturer ID (16 bit)
This field is mandatory when the field Reset Information is used, otherwise it is optional. In this frame, the Manufacturer ID is used to create namespace to avoid collisions between vendors. The Manufacturer ID corresponds to the Z-Wave manufacturer ID (https://github.com/Z-Wave-Alliance/zwave_xml/blob/main/zw_manufacturers.xml), that is assigned by the Z-Wave Alliance.
Reset Information (16 bits)
The reason for a Z-Wave module reset.
Define | Description | Value |
|---|---|---|
ZPAL_RESET_REQUESTED_BY_SAPI | Reset requested by Serial API host | 0x00 |
ZPAL_RESET_UNHANDLED_RADIO_EVENT | Unexpected radio event detected | 0x01 |
ZPAL_RESET_RADIO_ASSERT | Radio assertion | 0x02 |
ZPAL_RESET_ASSERT_PTR | Software assertion triggered | 0x03 |
ZPAL_RESET_EVENT_FLUSH_MEMORY | Memory flush operation failed | 0x04 |
ZPAL_RESET_RADIO_RECONFIGURE | Reset during radio reconfiguration | 0x05 |
ZPAL_RESET_INFO_DEFAULT | Reset reason not available | 0xFFFF |
Softreset Command#
The host CPU system can make a software reset of the Z-Wave module by using the Softreset Command.
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SERIAL_API_SOFT_RESET | |||||||
Wait 1.5 seconds after reset to ensure that the module is ready for communication again.
Note: USB modules will disconnect - connect when this command is issued, which means that the module may get a new address on the USB bus. This will make the old file handle to the USB serial interface invalid.
Watchdog Commands#
Some PC-based applications cannot guarantee kicking the watchdog before timeout causing the Watchdog to reset the Z-Wave ASIC unintentionally. The following Watchdog Commands are therefore available to avoid this:
Stop Watchdog: Disable Watchdog and stop kick Watchdog in ApplicationPoll
Watchdog handling disabled when powered up and Sleep/FLiRS mode will temporary stop Watchdog.
Both commands use an unacknowledged frame flow. They do not contain command-specific parameters, and the Z-Wave module does not return a response or callback frame.
The host CPU system can start Watchdog functionality by using the Serial API function FUNC_ID_ZW_WATCHDOG_START:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_ZW_WATCHDOG_START | |||||||
The host CPU system can stop Watchdog functionality by using the Serial API function FUNC_ID_ZW_WATCHDOG_STOP:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_ZW_WATCHDOG_STOP | |||||||
NVM Backup and Restore#
The host processor can make a backup or a restore of the Non-Volatile Memory (NVM) in the Z-Wave chip using the serial API. Support depends on the Serial API implementation; check the module’s supported-function bitmask.
There is one command for doing both backup and restore.
Host -> ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_NVM_BACKUP_RESTORE | |||||||
Operation | |||||||
Length | |||||||
Offset MSB | |||||||
Offset LSB | |||||||
Buffer[0] | |||||||
… | |||||||
.. | |||||||
Buffer[x] | |||||||
Operation (8bit):
The operation to be executed:
Operation | Value |
|---|---|
Open | 0x00 |
Read | 0x01 |
Write | 0x02 |
Close | 0x03 |
Read, Write, and Close operations are only valid after an Open operation has been executed.
Length (8bit)
A desired length of the read/write buffer
Offset (16bit)
An offset in the NVM where the write or read should be done.
Buffer (8bit*x)
The write buffer containing the data that should be written to NVM when restoring NVM.
ZW -> Host:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_NVM_BACKUP_RESTORE | |||||||
Return Value | |||||||
Length | |||||||
Offset MSB | |||||||
Offset LSB | |||||||
Buffer[0] | |||||||
… | |||||||
.. | |||||||
Buffer[x] | |||||||
Return Value (8bit)
The result of the requested operation.
| Return Value | Value |
|---|---|
| Ok | 0x00 |
| Error | 0x01 |
|
ErrorOperationMismatch (Error mixing read and write) |
0x02 |
|
ErrorOperationDisturbed (Error read operation disturbed by another write) |
0x03 |
| End Of File | 0xFF |
Length (8bit)
An actual length of the read/write buffer.
Offset (16bit)
An offset in the NVM where the write or read was done.
Buffer (8bit*x)
The read buffer containing the data that was read from NVM when backing up NVM.
Backing up NVM#
The backup and restore function is session-based because the Z-Wave protocol limits the access to the NVM while the backup and restore is being done. The host application should stop all other activity on the serial API while the backup is being done.
The correct sequence of commands for initiating a backup is the following:
FUNC_ID_NVM_BACKUP_RESTORE (open)
Returns the backup size.FUNC_ID_NVM_BACKUP_RESTORE (read, read, .)
Returns EOF if no more data or error if the backup is disturbed by other writes to the NVM.FUNC_ID_NVM_BACKUP_RESTORE (close)
Returns an error if backup was disturbed by other writes. Ok is returned if the backup was done without any writes to the NVM.If an error was returned, discard backed up data and try again.
Restoring NVM#
Restoring the NVM in the Z-Wave protocol requires a few more steps than the backup because the host needs to ensure that all old NVM data is deleted and that the new NVM is taken in use.
The correct sequence of commands for restoring NVM is the following:
FUNC_ID_ZW_SET_DEFAULT
Deletes all old NVM content.FUNC_ID_NVM_BACKUP_RESTORE (open)
Returns an unused value.FUNC_ID_NVM_BACKUP_RESTORE (write, write, ....)
Writes the whole NVM image to the NVM in the Z-Wave module.FUNC_ID_NVM_BACKUP_RESTORE (close)
Returns an unused value.FUNC_ID_SERIAL_API_SOFT_RESET
Activates the Z-Wave module with the new NVM image.Note that while the restore is taking place, the node will not be part of the network so all Z-Wave communication to the node will fail.
Restrictions on Functions Using Buffers#
The Serial API is implemented with buffers for queuing requests and responses. This restricts how much data that can be transferred through MemoryGetBuffer() and MemoryPutBuffer() compared to using them directly from the Z-Wave API.
Applications should ensure that requested transfer lengths do not exceed the supported buffer size.
For MemoryGetBuffer(), requests exceeding the maximum supported transfer length will be truncated to the available transmit buffer size.
For MemoryPutBuffer(), requests exceeding the supported receive buffer size will be rejected and no data will be written to the Z-Wave module.
Applications should therefore always verify the requested transfer length against the supported buffer limits before issuing buffer read or write operations.
Note: In the current implementation, MemoryGetBuffer() and MemoryPutBuffer() operations are limited by the configured application buffer size (currently 168 bytes).
Configuration of Z-Wave Long Range channel#
There are 2 rf-channels available for Z-Wave Long Range communication. A controller can only use one frequency at a time. The host can use the commands below to get and set the active Long Range channel.
Get Active Long Range channel#
Command to get the active Long Range rf-channel. Introduced in Serial API version 9.
HOST->ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_GET_LR_CHANNEL | |||||||
ZW->HOST:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_GET_LR_CHANNEL | |||||||
Channel | |||||||
Channel Configuration | |||||||
Channel
The rf-channel that the controller uses for Long Range communication.
Channel | Value |
|---|---|
Not Supported | 0x00 |
ZW_LR_CHANNEL_A | 0x01 |
ZW_LR_CHANNEL_B | 0x02 |
Reserved | 0x03-0xFF |
Channel Configuration
The automatic Long Range channel configuration of the Z-Wave API running on the Z-Wave Module.
Flag | Bit |
|---|---|
Reserved | 0-3 |
Auto channel selection support | 4 |
Auto channel selection active | 5 |
Reserved | 6-7 |
Set Active Long Range channel#
Command to set the active Long Range rf-channel. Introduced in Serial API version 9.
Host -> ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_SET_LR_CHANNEL | |||||||
Channel | |||||||
Channel
The rf-channel to be set.
Channel | Value |
|---|---|
Reserved | 0x00 |
ZW_LR_CHANNEL_A | 0x01 |
ZW_LR_CHANNEL_B | 0x02 |
Reserved | 0x03-0xFE |
Auto | 0xFF |
Configuration of Long Range virtual node IDs#
Four Long Range node IDs are reserved for virtual nodes. IDs: 4002, 4003, 4004 and 4005. By default, all frames with virtual node IDs are rejected by Z-wave controllers. To accept application level frames with a virtual node ID, that node ID must be enabled.
Command to enable virtual node IDs. Introduced in Serial API version 9.
Note: The command is not persistent. Must be re-issued after a reset or power-cycle of the Serial API Controller. I.e. the Host should subscribe to the Serial API Started Command to be notified of any Controller restart and re-issue the command accordingly.
Host -> ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_ZW_SET_LR_VIRTUAL_IDS | |||||||
NodeIdBitmask | |||||||
NodeIdBitmask
Setting bits to 1 will enable node IDs. Setting bits to 0 will disable.
NodeIdBitmask | bit |
|---|---|
Ignored | b4-b7 |
Enable node ID: 4005 | b3 |
Enable node ID: 4004 | b2 |
Enable node ID: 4003 | b1 |
Enable node ID: 4002 | b0 |
ZW_SendData Function#
Transmit contents of a data buffer to a single node or all nodes (broadcast).
FUNC_ID_ZW_SEND_DATA:
HOST->ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_ZW_SEND_DATA | |||||||
nodeID | |||||||
dataLength | |||||||
pData[] | |||||||
txOptions | |||||||
app_session_id | |||||||
ZW->HOST: Response data frame
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_ZW_SEND_DATA | |||||||
RetVal | |||||||
RetVal | Value |
|---|---|
false | no callback |
true | callback returns |
ZW->HOST: txStatus | wTransmitTicksMSB | wTransmitTicksLSB | bRepeaters | rssi_values.incoming[0] | rssi_values.incoming[1] | rssi_values.incoming[2] | rssi_values.incoming[3] | rssi_values.incoming[4] | bRouteSchemeState | repeater0 | repeater1 | repeater2 | repeater3 | routespeed | bRouteTries | bLastFailedLink.from | bLastFailedLink.to | bUsedTxpower | bMeasuredNoiseFloor | bAckDestinationUsedTxPower | bDestinationAckMeasuredRSSI | bDestinationckMeasuredNoiseFloor
Callback data frame
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_ZW_SEND_DATA | |||||||
app_session_id | |||||||
txStatus | |||||||
txStatus Report 1 | |||||||
... | |||||||
txStatus Report 2 | |||||||
Fields
bUsedTxpower
bMeasuredNoiseFloor
bAckDestinationUsedTxPower
bDestinationAckMeasuredRSSI
bDestinationckMeasuredNoiseFloor
Are applicable for Z-Wave Long Range Network only. Otherwise they are set to RSSI_NOT_AVAILABLE
ApplicationCommandHandler_Bridge#
Function ApplicationCommandHandler_Bridge is triggered after SerialAPI receives the frame
On Long Range Network:
ZW->HOST: REQ | 0xA8 | rxStatus | destNode | sourceNode | cmdLength | pCmd[] | multiDestsOffset_NodeMaskLen | multiDestsNodeMask[] | rssiVal | securityKey | bSourceTxPower | bSourceNoiseFloor
Fields:
bSourceTxPower
bSourceNoiseFloor
are applicable for Z-Wave Long Range Network only. Otherwise they are set to RSSI_NOT_AVAILABLE.
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_APPLICATION_COMMAND_HANDLER_BRIDGE | |||||||
rxStatus | |||||||
destNode | |||||||
sourceNode | |||||||
cmdLength | |||||||
pCmd[] | |||||||
multiDestsOffset_NodeMaskLen | |||||||
multiDestsNodeMask[] | |||||||
rssiVal | |||||||
Enable PTI Zniffer Functionality#
PTI Zniffer functionality can be enabled or disabled as a startup option on 800 Series Serial API Controllers. The controller continues to operate normally while also providing Zniffer data through the Packet Trace Interface (PTI). PTI functionality is disabled by default.
For custom hardware, expose the PTI_FRAME and PTI_DATA signals through the debug interface. Refer to the device-specific hardware documentation for the required pin routing.
Enable/disable PTI Zniffer#
Note that a node must be soft reset (7.17) after the command is sent to activate the setting.
Host -> ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_ENABLE_RADIO_PTI | |||||||
Enable (0x01) / Disable (0x00) | |||||||
The node answers the host to verify the setting:
ZW -> Host:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_ENABLE_RADIO_PTI | |||||||
OK (0x01) / Failure (0x00) | |||||||
Get Radio PTI state#
To get if the PTI functionality is currently enabled or not.
Host -> ZW:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_GET_RADIO_PTI | |||||||
The node answers the host to verify the setting:
ZW -> Host:
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
FUNC_ID_GET_RADIO_PTI | |||||||
Enabled (0x01) / Disabled (0x00) | |||||||