Plugin Commands: Test Harness
Detailed Description
The test harness commands are used to test various unusual functionality or behavior of a remote device.
Macro Definition Documentation
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_ADD_CHILD |
plugin test-harness add-child [ShortId:2] [EUI:-1] [nodeType:1]
-
Adds a child to the child table.
- ShortId - INT16U - The shortId of the child device.
- EUI - OCTET_STRING - The EUI64 of the child (big endian).
- nodeType - INT8U - The node type of the child device.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_APS_SEC_FOR_CLUSTER_OFF |
plugin test-harness aps-sec-for-cluster off
- Turns off automatic APS security for the previously specified cluster.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_APS_SEC_FOR_CLUSTER_ON |
plugin test-harness aps-sec-for-cluster on [clusterId:2]
-
Turns on automatic APS security for the specified cluster.
- clusterId - INT16U - The cluster ID to add APS security to automatically.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_ATTR_OPTIONS |
plugin test-harness attr options [type:1] [timeout:2]
-
Set the options for the attributes tests.
- type - INT8U
- timeout - INT16U
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_ATTR_SET_DEST |
plugin test-harness attr set-dest [addr:2] [endpoint:1]
-
Set the destination for the attributes tests.
- addr - INT16U
- endpoint - INT8U
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_ATTR_START_TEST |
plugin test-harness attr start-test [clusterId:2] [attrStartId:2] [attrEndId:2] [clientToServer:1]
-
Start the attributes test.
- clusterId - INT16U
- attrStartId - INT16U
- attrEndId - INT16U
- clientToServer - BOOLEAN
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_CONCENTRATOR_START |
plugin test-harness concentrator start
- Starts the concentrator's periodic broadcasts.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_CONCENTRATOR_STOP |
plugin test-harness concentrator stop
- Starts the concentrator's periodic broadcasts.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_ENDPOINT_CLUSTER_ENDPOINT_INDEX |
plugin test-harness endpoint cluster-endpoint-index [endpoint:1] [clusterId:2] [mask:1]
-
Get cluster endpoint index
- endpoint - INT8U - The local endpoint of the cluster.
- clusterId - INT16U - The cluster whose index is needed.
- mask - INT8U - 0 for client-side attributes or 1 for server-side attributes.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_ENDPOINT_DISABLE |
plugin test-harness endpoint disable [endpoint:1]
-
Disables the endpont to receive messages and be discovered
- endpoint - INT8U - The endpoint number.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_ENDPOINT_ENABLE |
plugin test-harness endpoint enable [endpoint:1]
-
Enables the endpont to receive messages and be discovered
- endpoint - INT8U - The endpoint number.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_ENDPOINT_STATUS |
plugin test-harness endpoint status
- Disables the endpont to receive messages and be discovered
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_HASH_THE_FLASH |
plugin test-harness hash-the-flash
- Runs the AES-CCM algorithm over the contents of the software image to calcalute the image stamp.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_ADV_APS_FC |
plugin test-harness key-establishment adv-aps-fc
- Advances the local device's outgoing APS FC by 4096.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_CERT_MANGLE_CHANGE_BYTE |
plugin test-harness key-establishment cert-mangle change-byte [byteIndex:1] [byteValue:1]
-
Changes a single byte in the cert
- byteIndex - INT8U - The index of the certificate byte to change
- byteValue - INT8U - The new value of the certificate byte
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_CERT_MANGLE_CORRUPT |
plugin test-harness key-establishment cert-mangle corrupt [corruptionIndex:1]
-
Corrupts a single byte in the cert
- corruptionIndex - INT8U - The index of the certificate byte to corrupt
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_CERT_MANGLE_ISSUER |
plugin test-harness key-establishment cert-mangle issuer [issuer:-1]
-
Changes the issuer in the certificate.
- issuer - OCTET_STRING - The EUI64 of the issuer (big endian).
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_CERT_MANGLE_LENGTH |
plugin test-harness key-establishment cert-mangle length [lengthModifier:1]
-
Mangles the length of the certificate
- lengthModifier - INT8S - The positive or negative change in length.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_CERT_MANGLE_SUBJECT |
plugin test-harness key-establishment cert-mangle subject [subject:-1]
-
Changes the subject (EUI64) of the cert
- subject - OCTET_STRING - The EUI64 of the subject (big endian).
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_DEFAULT_RESP |
plugin test-harness key-establishment default-resp
- Sends a default response error message in response to initate KE.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_DELAY_CBKE |
plugin test-harness key-establishment delay-cbke [actualDelay:2] [advertisedDelay:2]
-
Changes the advertised delays by the local device for CBKE.
- actualDelay - INT16U - Set the actual delay that occurs.
- advertisedDelay - INT16U - Sets the advertised delay sent to the partner of key establishment
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_KEY_MANGLE |
plugin test-harness key-establishment key-mangle [lengthModifier:1]
-
Mangles the length of the empheral key.
- lengthModifier - INT8S - The positive or negative change in length.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_NEW_KEY_POLICY |
plugin test-harness key-establishment new-key-policy [allowKeyEstablishmentPolicy:1]
-
Sets the policy of whether the TC allows new KE requests.
- allowKeyEstablishmentPolicy - INT8U - Allows / disallows new key establishment requests.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_NO_RESOURCES |
plugin test-harness key-establishment no-resources
- All received KE requests will be responded with 'no resources'.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_NORMAL_MODE |
plugin test-harness key-establishment normal-mode
- Sets the key establishment mode to normal.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_OUT_OF_SEQUENCE |
plugin test-harness key-establishment out-of-sequence [commandId:1]
-
All received KE requests will be responded with 'no resources'.
- commandId - INT8U - The out-of-sequence command ID to send.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_RESET_APS_FC |
plugin test-harness key-establishment reset-aps-fc
- Forces the local device to reset its outgoing APS FC.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_SET_AVAILABLE_SUITE |
plugin test-harness key-establishment set-available-suite [suite:2]
-
Selects between the CBKE 163k1 and 283k1 suites.
- suite - INT16U - This field holds the type of key establishment suite. It can be EMBER_AF_CBKE_KEY_ESTABLISHMENT_SUITE_163K1, EMBER_AF_CBKE_KEY_ESTABLISHMENT_SUITE_283K1, or EMBER_AF_INVALID_KEY_ESTABLISHMENT_SUITE
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_SUITE |
plugin test-harness key-establishment suite [suite:2]
-
Selects between the CBKE 163k1 and 283k1 suites.
- suite - INT16U - This field holds the type of key establishment suite. It can be EMBER_AF_CBKE_KEY_ESTABLISHMENT_SUITE_163K1, EMBER_AF_CBKE_KEY_ESTABLISHMENT_SUITE_283K1, or EMBER_AF_INVALID_KEY_ESTABLISHMENT_SUITE
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_ESTABLISHMENT_TIMEOUT |
plugin test-harness key-establishment timeout
- Artificially creates a timeout by delaying an outgoing message.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_UPDATE_BROADCAST |
plugin test-harness key-update broadcast
- Changes TC NWK key update mechanism to broadcast.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_UPDATE_NOW |
plugin test-harness key-update now
- Starts a TC NWK key update now
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_KEY_UPDATE_UNICAST |
plugin test-harness key-update unicast
- Changes TC NWK key update mechanism to unicast with APS security.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_OTA_IMAGE_MANGLE |
plugin test-harness ota image-mangle [index:2]
-
Mangles the Simple Storage RAM OTA image.
- index - INT16U - The byte index into the OTA image that will be mangled.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_PRICE_SEND_NEW_FIELDS |
plugin test-harness price send-new-fields [sendNewFields:1]
-
Controls whether the new SE 1.1 price fields are included.
- sendNewFields - INT8U - Boolean indicating whether to send new fields.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_PRICE_SEND_SE10_FIELDS |
plugin test-harness price send-se10-fields [sendNewFields:1]
-
Controls whether the new SE 1.1 price fields are included.
- sendNewFields - INT8U - Boolean indicating whether to send new fields.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_RADIO_OFF |
plugin test-harness radio off
- Turns off the radio so that no messages are sent.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_RADIO_ON |
plugin test-harness radio on
- Turns on the radio if it was previously turned off
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_REGISTRATION_OFF |
plugin test-harness registration off
- Turns off automatic SE registration.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_REGISTRATION_ON |
plugin test-harness registration on
- Turns on automatic SE registration.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_SET_COMPLIANCE_REVISION |
plugin test-harness set-compliance-revision [version:1]
-
Setting a compliance revision for a device such that the device can act as pre-R21 or R21+ for testing purposes. The reason for doing this is because the end device may send a node descriptor request and the hub will respond with the node descriptor response which will include the hub's compliance revision. If the compliance revision of the hub is R21+, only then will the TC link key request be made by the end device.
- version - INT8U - The compliance version
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_SET_MAX_CHILDREN |
plugin test-harness set-max-children [version:1]
-
Sets the maximum children supported by the local node.
- version - INT8U - The maximum number of children to support
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_SET_RADIO_POWER |
plugin test-harness set-radio-power [power:1]
-
Sets the radio power.
- power - INT8U - The radio power to set.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_STACK_LIMIT_BEACONS_OFF |
plugin test-harness stack limit-beacons off
- Disables a limit to the max number of outgoing beacons.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_STACK_LIMIT_BEACONS_ON |
plugin test-harness stack limit-beacons on
- Enables a limit to the max number of outgoing beacons.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_STATUS |
plugin test-harness status
- Display the current status of the test harness.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_TC_KEEPALIVE_SEND |
plugin test-harness tc-keepalive send
- Sends a Trust Center Keepalive.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_TC_KEEPALIVE_START |
plugin test-harness tc-keepalive start
- Starts the TC keepalive state machine.
#define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_TEST_HARNESS_PLUGIN_TEST_HARNESS_TC_KEEPALIVE_STOP |
plugin test-harness tc-keepalive stop
- Stops the TC keepalive state machine.