38 #ifndef SERIAL_CMD_H__ 39 #define SERIAL_CMD_H__ 44 #include "nrf_mesh_defines.h" 45 #include "nrf_mesh_serial.h" 46 #include "nrf_mesh_prov.h" 47 #include "nrf_mesh_dfu.h" 48 #include "nrf_mesh_assert.h" 49 #include "serial_types.h" 59 #define SERIAL_OPCODE_CMD_RANGE_DEVICE_START (0x00) 60 #define SERIAL_OPCODE_CMD_DEVICE_ECHO (0x02) 61 #define SERIAL_OPCODE_CMD_DEVICE_INTERNAL_EVENTS_REPORT (0x03) 62 #define SERIAL_OPCODE_CMD_DEVICE_SERIAL_VERSION_GET (0x09) 63 #define SERIAL_OPCODE_CMD_DEVICE_FW_INFO_GET (0x0A) 64 #define SERIAL_OPCODE_CMD_DEVICE_RADIO_RESET (0x0E) 65 #define SERIAL_OPCODE_CMD_DEVICE_BEACON_START (0x10) 66 #define SERIAL_OPCODE_CMD_DEVICE_BEACON_STOP (0x11) 67 #define SERIAL_OPCODE_CMD_DEVICE_BEACON_PARAMS_SET (0x12) 68 #define SERIAL_OPCODE_CMD_DEVICE_BEACON_PARAMS_GET (0x13) 69 #define SERIAL_OPCODE_CMD_DEVICE_HOUSEKEEPING_DATA_GET (0x14) 70 #define SERIAL_OPCODE_CMD_DEVICE_HOUSEKEEPING_DATA_CLEAR (0x15) 72 #define SERIAL_OPCODE_CMD_RANGE_DEVICE_END (0x1F) 74 #define SERIAL_OPCODE_CMD_RANGE_APP_START (0x20) 75 #define SERIAL_OPCODE_CMD_APP_APPLICATION (0x20) 76 #define SERIAL_OPCODE_CMD_RANGE_APP_END (0x20) 78 #define SERIAL_OPCODE_CMD_RANGE_SAR_START (0x21) 79 #define SERIAL_OPCODE_CMD_SAR_START (0x21) 80 #define SERIAL_OPCODE_CMD_SAR_CONTINUE (0x22) 81 #define SERIAL_OPCODE_CMD_RANGE_SAR_END (0x22) 83 #define SERIAL_OPCODE_CMD_RANGE_CONFIG_START (0x40) 84 #define SERIAL_OPCODE_CMD_CONFIG_ADV_ADDR_SET (0x40) 85 #define SERIAL_OPCODE_CMD_CONFIG_ADV_ADDR_GET (0x41) 86 #define SERIAL_OPCODE_CMD_CONFIG_CHANNEL_MAP_SET (0x42) 87 #define SERIAL_OPCODE_CMD_CONFIG_CHANNEL_MAP_GET (0x43) 88 #define SERIAL_OPCODE_CMD_CONFIG_TX_POWER_SET (0x44) 89 #define SERIAL_OPCODE_CMD_CONFIG_TX_POWER_GET (0x45) 90 #define SERIAL_OPCODE_CMD_CONFIG_UUID_SET (0x53) 91 #define SERIAL_OPCODE_CMD_CONFIG_UUID_GET (0x54) 92 #define SERIAL_OPCODE_CMD_RANGE_CONFIG_END (0x5F) 94 #define SERIAL_OPCODE_CMD_RANGE_PROV_START (0x60) 95 #define SERIAL_OPCODE_CMD_PROV_SCAN_START (0x61) 96 #define SERIAL_OPCODE_CMD_PROV_SCAN_STOP (0x62) 97 #define SERIAL_OPCODE_CMD_PROV_PROVISION (0x63) 98 #define SERIAL_OPCODE_CMD_PROV_LISTEN (0x64) 99 #define SERIAL_OPCODE_CMD_PROV_OOB_USE (0x66) 100 #define SERIAL_OPCODE_CMD_PROV_AUTH_DATA (0x67) 101 #define SERIAL_OPCODE_CMD_PROV_ECDH_SECRET (0x68) 102 #define SERIAL_OPCODE_CMD_PROV_KEYPAIR_SET (0x69) 103 #define SERIAL_OPCODE_CMD_PROV_CAPABILITIES_SET (0x6A) 104 #define SERIAL_OPCODE_CMD_RANGE_PROV_END (0x6F) 106 #define SERIAL_OPCODE_CMD_RANGE_OPENMESH_START (0x70) 107 #define SERIAL_OPCODE_CMD_OPENMESH_INIT (0x70) 108 #define SERIAL_OPCODE_CMD_OPENMESH_VALUE_SET (0x71) 109 #define SERIAL_OPCODE_CMD_OPENMESH_VALUE_ENABLE (0x72) 110 #define SERIAL_OPCODE_CMD_OPENMESH_VALUE_DISABLE (0x73) 111 #define SERIAL_OPCODE_CMD_OPENMESH_START (0x74) 112 #define SERIAL_OPCODE_CMD_OPENMESH_STOP (0x75) 113 #define SERIAL_OPCODE_CMD_OPENMESH_FLAG_SET (0x76) 114 #define SERIAL_OPCODE_CMD_OPENMESH_FLAG_GET (0x77) 115 #define SERIAL_OPCODE_CMD_OPENMESH_DFU_DATA (0x78) 116 #define SERIAL_OPCODE_CMD_OPENMESH_VALUE_GET (0x7A) 117 #define SERIAL_OPCODE_CMD_OPENMESH_BUILD_VERSION_GET (0x7B) 118 #define SERIAL_OPCODE_CMD_OPENMESH_ACCESS_ADDR_GET (0x7C) 119 #define SERIAL_OPCODE_CMD_OPENMESH_CHANNEL_GET (0x7D) 120 #define SERIAL_OPCODE_CMD_OPENMESH_INTERVAL_MIN_MS_GET (0x7F) 121 #define SERIAL_OPCODE_CMD_RANGE_OPENMESH_END (0x8F) 124 #define SERIAL_OPCODE_CMD_RANGE_MESH_START (0x90) 126 #define SERIAL_OPCODE_CMD_MESH_ENABLE (0x90) 127 #define SERIAL_OPCODE_CMD_MESH_DISABLE (0x91) 128 #define SERIAL_OPCODE_CMD_MESH_SUBNET_ADD (0x92) 129 #define SERIAL_OPCODE_CMD_MESH_SUBNET_UPDATE (0x93) 130 #define SERIAL_OPCODE_CMD_MESH_SUBNET_DELETE (0x94) 131 #define SERIAL_OPCODE_CMD_MESH_SUBNET_GET_ALL (0x95) 132 #define SERIAL_OPCODE_CMD_MESH_SUBNET_COUNT_MAX_GET (0x96) 133 #define SERIAL_OPCODE_CMD_MESH_APPKEY_ADD (0x97) 134 #define SERIAL_OPCODE_CMD_MESH_APPKEY_UPDATE (0x98) 135 #define SERIAL_OPCODE_CMD_MESH_APPKEY_DELETE (0x99) 136 #define SERIAL_OPCODE_CMD_MESH_APPKEY_GET_ALL (0x9A) 137 #define SERIAL_OPCODE_CMD_MESH_APPKEY_COUNT_MAX_GET (0x9B) 138 #define SERIAL_OPCODE_CMD_MESH_DEVKEY_ADD (0x9C) 139 #define SERIAL_OPCODE_CMD_MESH_DEVKEY_DELETE (0x9D) 140 #define SERIAL_OPCODE_CMD_MESH_DEVKEY_COUNT_MAX_GET (0x9E) 141 #define SERIAL_OPCODE_CMD_MESH_ADDR_LOCAL_UNICAST_SET (0x9F) 142 #define SERIAL_OPCODE_CMD_MESH_ADDR_LOCAL_UNICAST_GET (0xA0) 143 #define SERIAL_OPCODE_CMD_MESH_ADDR_SUBSCRIPTION_ADD (0xA1) 144 #define SERIAL_OPCODE_CMD_MESH_ADDR_SUBSCRIPTION_ADD_VIRTUAL (0xA2) 145 #define SERIAL_OPCODE_CMD_MESH_ADDR_SUBSCRIPTION_REMOVE (0xA3) 146 #define SERIAL_OPCODE_CMD_MESH_ADDR_PUBLICATION_ADD (0xA4) 147 #define SERIAL_OPCODE_CMD_MESH_ADDR_PUBLICATION_ADD_VIRTUAL (0xA5) 148 #define SERIAL_OPCODE_CMD_MESH_ADDR_PUBLICATION_REMOVE (0xA6) 149 #define SERIAL_OPCODE_CMD_MESH_ADDR_GET (0xA7) 150 #define SERIAL_OPCODE_CMD_MESH_ADDR_GET_ALL (0xA8) 151 #define SERIAL_OPCODE_CMD_MESH_ADDR_NONVIRTUAL_COUNT_MAX_GET (0xA9) 152 #define SERIAL_OPCODE_CMD_MESH_ADDR_VIRTUAL_COUNT_MAX_GET (0xAA) 153 #define SERIAL_OPCODE_CMD_MESH_PACKET_SEND (0xAB) 154 #define SERIAL_OPCODE_CMD_MESH_STATE_CLEAR (0xAC) 155 #define SERIAL_OPCODE_CMD_MESH_CONFIG_SERVER_BIND (0xAD) 156 #define SERIAL_OPCODE_CMD_MESH_NET_STATE_SET (0xAE) 157 #define SERIAL_OPCODE_CMD_MESH_NET_STATE_GET (0xAF) 158 #define SERIAL_OPCODE_CMD_RANGE_MESH_END (0xBF) 160 #define SERIAL_OPCODE_CMD_RANGE_DFU_START (0xD0) 161 #define SERIAL_OPCODE_CMD_DFU_JUMP_TO_BOOTLOADER (0xD0) 162 #define SERIAL_OPCODE_CMD_DFU_REQUEST (0xD1) 163 #define SERIAL_OPCODE_CMD_DFU_RELAY (0xD2) 164 #define SERIAL_OPCODE_CMD_DFU_ABORT (0xD3) 165 #define SERIAL_OPCODE_CMD_DFU_BANK_INFO_GET (0xD4) 166 #define SERIAL_OPCODE_CMD_DFU_BANK_FLASH (0xD5) 167 #define SERIAL_OPCODE_CMD_DFU_STATE_GET (0xD6) 168 #define SERIAL_OPCODE_CMD_RANGE_DFU_END (0xDF) 170 #define SERIAL_OPCODE_CMD_RANGE_ACCESS_START (0xE0) 171 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_PUB_ADDR_SET (0xE0) 172 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_PUB_ADDR_GET (0xE1) 173 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_PUB_PERIOD_SET (0xE2) 174 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_PUB_PERIOD_GET (0xE3) 175 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_SUBS_ADD (0xE4) 176 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_SUBS_REMOVE (0xE5) 177 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_SUBS_GET (0xE6) 178 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_APP_BIND (0xE7) 179 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_APP_UNBIND (0xE8) 180 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_APP_GET (0xE9) 181 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_PUB_APP_SET (0xEA) 182 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_PUB_APP_GET (0xEB) 183 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_PUB_TTL_SET (0xEC) 184 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_PUB_TTL_GET (0xED) 185 #define SERIAL_OPCODE_CMD_ACCESS_ELEM_LOC_SET (0xEE) 186 #define SERIAL_OPCODE_CMD_ACCESS_ELEM_LOC_GET (0xEF) 187 #define SERIAL_OPCODE_CMD_ACCESS_ELEM_SIG_MODEL_COUNT_GET (0xF0) 188 #define SERIAL_OPCODE_CMD_ACCESS_ELEM_VENDOR_MODEL_COUNT_GET (0xF1) 189 #define SERIAL_OPCODE_CMD_ACCESS_MODEL_ID_GET (0xF2) 190 #define SERIAL_OPCODE_CMD_ACCESS_HANDLE_GET (0xF3) 191 #define SERIAL_OPCODE_CMD_ACCESS_ELEM_MODELS_GET (0xF4) 192 #define SERIAL_OPCODE_CMD_RANGE_ACCESS_END (0xF4) 194 #define SERIAL_OPCODE_CMD_RANGE_MODEL_SPECIFIC_START (0xFC) 195 #define SERIAL_OPCODE_CMD_MODEL_SPECIFIC_MODELS_GET (0xFC) 196 #define SERIAL_OPCODE_CMD_MODEL_SPECIFIC_INIT (0xFD) 197 #define SERIAL_OPCODE_CMD_MODEL_SPECIFIC_COMMAND (0xFE) 198 #define SERIAL_OPCODE_CMD_RANGE_MODEL_SPECIFIC_END (0xFE) 205 typedef struct __attribute((packed))
211 typedef struct __attribute((packed))
214 uint8_t data[BLE_ADV_PACKET_PAYLOAD_MAX_LENGTH];
218 typedef struct __attribute((packed))
224 typedef struct __attribute((packed))
233 typedef struct __attribute((packed))
239 typedef union __attribute((packed))
250 typedef struct __attribute((packed))
253 uint8_t adv_addr[BLE_GAP_ADDR_LEN];
257 typedef struct __attribute((packed))
263 typedef struct __attribute((packed))
269 typedef struct __attribute((packed))
275 typedef union __attribute((packed))
285 typedef struct __attribute((packed))
287 uint8_t dfu_packet[BLE_ADV_PACKET_PAYLOAD_MAX_LENGTH];
291 typedef union __attribute((packed))
299 typedef struct __attribute((packed))
306 typedef struct __attribute((packed))
321 typedef struct __attribute((packed))
335 typedef struct __attribute((packed))
344 typedef struct __attribute((packed))
351 typedef struct __attribute((packed))
358 typedef union __attribute((packed))
370 typedef struct __attribute((packed))
377 typedef struct __attribute((packed))
384 typedef struct __attribute((packed))
390 typedef struct __attribute((packed))
398 typedef struct __attribute((packed))
405 typedef struct __attribute((packed))
411 typedef struct __attribute((packed))
417 typedef struct __attribute((packed))
425 typedef struct __attribute((packed))
431 typedef struct __attribute((packed))
438 typedef struct __attribute((packed))
444 typedef struct __attribute((packed))
450 typedef struct __attribute((packed))
456 typedef struct __attribute((packed))
462 typedef struct __attribute((packed))
468 typedef struct __attribute((packed))
474 typedef struct __attribute((packed))
480 typedef struct __attribute((packed))
486 typedef struct __attribute((packed))
492 typedef struct __attribute((packed))
507 typedef struct __attribute((packed))
513 typedef struct __attribute((packed))
522 typedef union __attribute((packed))
557 typedef struct __attribute((packed))
565 typedef struct __attribute((packed))
571 typedef struct __attribute((packed))
577 typedef struct __attribute((packed))
587 typedef union __attribute((packed))
597 typedef struct __attribute((packed))
605 typedef struct __attribute((packed))
612 typedef struct __attribute((packed))
618 typedef struct __attribute((packed))
624 typedef union __attribute((packed))
634 typedef struct __attribute((packed))
641 typedef struct __attribute((packed))
647 typedef struct __attribute((packed))
654 typedef struct __attribute((packed))
661 typedef struct __attribute((packed))
668 typedef struct __attribute((packed))
676 typedef struct __attribute((packed))
682 typedef struct __attribute((packed))
691 typedef struct __attribute((packed))
699 typedef union __attribute((packed))
708 serial_cmd_model_specific_init_t model_init;
709 serial_cmd_model_specific_command_t model_cmd;
714 typedef struct __attribute((packed))
720 typedef union __attribute((packed))
uint16_t devkey_handle
Handle of the devkey to delete.
uint16_t subnet_handle
Handle of the subnetwork to bind the devkey to.
serial_cmd_mesh_addr_publication_add_t addr_publication_add
Publication address add parameters.
uint16_t server_address
Remote provisioning Server address.
serial_cmd_mesh_addr_publication_remove_t addr_publication_remove
Publication address remove parameters.
#define SERIAL_CMD_MESH_PACKET_SEND_OVERHEAD
Mesh packet send command overhead.
uint16_t access_model_handle_t
Access layer handle type.
serial_cmd_device_beacon_start_t beacon_start
Beacon start parameters.
Used to update the ttl value for the messages originating from a given model.
serial_cmd_mesh_appkey_add_t appkey_add
Appkey add parameters.
uint8_t dfu_type
DFU Firmware type to get bank info about.
serial_cmd_device_echo_t echo
Echo parameters.
access_model_handle_t model_handle
Handle of the model that the access module should operate on.
#define NRF_MESH_KEY_SIZE
Size (in octets) of an encryption key.
Mesh devkey add command parameters.
serial_cmd_prov_t prov
Provisioning parameters.
uint16_t address_handle
Handle of the address to get the raw representation of.
uint16_t element_index
Index of the addressed element which owns the model.
uint8_t prov_context_index
Provisioning context index.
serial_cmd_mesh_packet_send_t packet_send
Packet send parameters.
serial_cmd_mesh_addr_subscription_add_t addr_subscription_add
Subscription address add parameters.
#define NRF_MESH_UUID_SIZE
Size (in octets) of a UUID.
serial_cmd_model_specific_init_header_t model_init_info
Basic information that is always needed to initialize a model.
Mesh address publication add command parameters.
serial_cmd_dfu_bank_info_get_t bank_info
DFU bank info parameters.
serial_cmd_pb_remote_client_remote_scan_cancel_t remote_scan_cancel
Cancel remote scanning procedure.
Advertisement address config command parameters.
serial_cmd_prov_auth_data_t auth_data
Parameters for the Authentication data packet.
Mesh subnet add command parameters.
uint16_t src_addr
Raw unicast address to use as source address.
uint16_t address_handle
Handle of the address to remove from the publication address list.
serial_cmd_mesh_addr_subscription_remove_t addr_subscription_remove
Subscription address remove parameters.
uint8_t step_number
Must not be larger than ACCESS_PUBLISH_PERIOD_STEP_MAX.
uint8_t size
Size of the OOB data.
uint16_t subnet_handle
Handle of the subnet to get all appkeys of.
uint16_t start_address
First address in the range of unicast addresses.
serial_cmd_mesh_subnet_update_t subnet_update
Subnet update parameters.
uint16_t appkey_handle
Handle of the appkey to delete.
serial_cmd_device_beacon_params_get_t beacon_params_get
Beacon params get parameters.
serial_cmd_prov_caps_t caps
Parameters for the Set capabilities packet.
Channel map config command parameters.
Union of all config command parameters.
uint16_t network_key_index
Network key index.
Mesh packet send command parameters.
Used for initializing one of the available models.
Mesh net state set command parameters.
TX power config command parameters.
serial_cmd_pb_remote_client_init_t init
Initialize PB-Mesh client.
uint8_t beacon_slot
Slot number of the beacon to set the payload for.
serial_cmd_model_specific_command_header_t model_cmd_info
Contains the handle of the model being addressed.
ECDH shared secret data parameters.
DFU bank info get command parameters.
Start remote provisioning command.
#define NRF_MESH_ECDH_PUBLIC_KEY_SIZE
Size of an ECDH public key.
Mesh subnet delete command parameters.
uint16_t dsm_handle_t
DSM handle type, used for the handles returned for the each set of data added.
serial_cmd_config_channel_map_t channel_map
Channel map.
Used to update the publish period of a model by updating resolution and number of steps...
serial_cmd_mesh_addr_local_unicast_set_t local_unicast_addr_set
Address local unicast set parameters.
uint8_t beacon_slot
Slot number of the beacon to stop.
uint8_t context_id
ID of context to set the oob method for.
uint16_t input_oob_actions
Available input actions for OOB authentication.
uint32_t interval_ms
TX interval in milliseconds.
Mesh subnet update command parameters.
Used by various access commands that work on address handles for a given model.
uint32_t iv_index
Initial IV index of the network.
Beacon params get cmd parameters.
serial_cmd_config_uuid_t uuid
Device UUID.
serial_cmd_openmesh_t openmesh
OpenMesh parameters.
uint16_t element_index
Index of the addressed element.
Mes address subscription add virtual command parameters.
uint16_t element_index
Index of the addressed element.
DFU relay command parameters.
uint8_t beacon_slot
Slot number of the beacon to get the parameters of.
DFU request command parameters.
uint8_t channel_map
Channel map bitfield for mesh to use, starting at channel 37.
serial_cmd_mesh_addr_add_t addr_add
Address add parameters.
serial_cmd_config_adv_addr_t adv_addr
Advertising address.
Used to update the location field of an element.
uint8_t application_index
Application context index.
uint8_t context_id
ID of the context to set the shared secret for.
serial_cmd_mesh_addr_subscription_add_virtual_t addr_subscription_add_virtual
Virtual subscription address add parameters.
Start remote scanning command.
Authentication data parameters.
uint16_t iv_update_timeout_counter
Timeout counter for IV update process.
serial_cmd_prov_keypair_t keypair
Parameters for the Set keypair packet.
serial_cmd_mesh_addr_publication_add_virtual_t addr_publication_add_virtual
Virtual publication address add parameters.
Cancel remote scanning command.
Mesh address add command parameters.
uint16_t count
Number of addresses in the range of unicast addresses.
Mesh address publication add virtual command parameters.
Union of all device command parameters.
dsm_handle_t dsm_handle
Handle for a value (e.g.
#define NRF_MESH_ECDH_SHARED_SECRET_SIZE
Size of an ECDH shared secret.
uint8_t input_oob_size
Maximum size of the OOB authentication input.
uint8_t iv_update_in_progress
Value indicating the phase of the IV update process.
uint16_t subnet_handle
Handle of the subnetwork to add the appkey to.
serial_cmd_pb_remote_client_remote_scan_start_t remote_scan_start
Start remote scanning procedure.
uint32_t bank_addr
Address in which to bank firmware.
Used by access commands that only require the element index.
uint8_t ttl
Time To Live value to use in packet.
serial_cmd_mesh_appkey_update_t appkey_update
Appkey update parameters.
uint8_t beacon_slot
Slot number of the beacon to start.
access_model_handle_t handle
Handle of the model that the access module should operate on.
uint32_t next_seqnum_block
The first sequence number block which is not yet allocated.
OOB method selection parameters.
uint16_t appkey_handle
Appkey or devkey handle to use for packet sending.
Mesh local unicast address set command parameters.
serial_cmd_application_t application
Application parameters.
serial_cmd_prov_oob_use_t oob_use
Parameters for the OOB use packet.
uint16_t owner_addr
Unicast address of the device that owns the given devkey.
access_model_handle_t model_handle
Handle for the model being modified.
serial_cmd_mesh_addr_virtual_add_t addr_virtual_add
Virtual address add parameters.
serial_cmd_mesh_devkey_delete_t devkey_delete
Devkey delete parameters.
uint8_t element_index
Element index.
uint8_t iv_update_flag
IV update in progress flag.
Mesh appkey update command parameters.
serial_cmd_mesh_config_server_devkey_bind_t config_server_devkey_bind
Configuration Server: device key bind parameters.
Mesh appkey delete command parameters.
serial_cmd_config_tx_power_t tx_power
Radio transmit power.
Mesh address virtual add command parameters.
uint8_t num_elements
The number of elements in the device.
uint8_t attention_duration_s
Time in seconds during which the device will identify itself using any means it can.
serial_cmd_device_t device
Device parameters.
serial_cmd_pb_remote_t pb_remote
PB-MESH parameters.
serial_cmd_mesh_t mesh
Mesh parameters.
serial_cmd_dfu_bank_flash_t bank_flash
DFU bank flash parameters.
uint16_t app_key_index
Mesh-global key index.
Mesh address subscription remove command parameters.
Union of all provisioning command parameters.
uint8_t dfu_type
DFU Firmware type to request.
serial_cmd_mesh_devkey_add_t devkey_add
Devkey add parameters.
uint16_t address_handle
Handle of address to get raw representation of.
serial_cmd_prov_ecdh_data_t ecdh_data
Parameters for the ECDH shared secret packet.
uint16_t address
Address to add as a subscription address.
access_model_id_t model_id
Company and model IDs.
uint8_t dfu_type
DFU Firmware type to flash.
uint16_t server_address
Remote provisioning Server address.
uint8_t tx_power
Transmit power of radio, see serial_cmd_tx_power_value_t for accepted values.
Used by access commands that only require the model handle.
uint8_t resolution
see access_publish_resolution_t for accepted values.
serial_cmd_mesh_appkey_delete_t appkey_delete
Appkey delete parameters.
ACCESS layer command parameters.
serial_cmd_config_t config
Configuration parameters.
serial_cmd_pb_remote_client_remote_provision_t remote_provision
Start remote provisioning.
#define NRF_MESH_ECDH_PRIVATE_KEY_SIZE
Size of an ECDH private key.
serial_cmd_access_t access
Used for Access layer and Model interfacing.
serial_cmd_mesh_subnet_add_t subnet_add
Subnet add parameters.
Used to get the handle value for a model instance.
uint8_t context_id
Context ID to use for this provisioning session.
uint32_t iv_index
Initial IV index of the network.
serial_cmd_prov_data_t data
Parameters for the Provisioning data packet.
Header for the model specific events.
Union of all command parameters.
Mesh address get command parameters.
Beacon params set cmd parameters.
nrf_mesh_fwid_t fwid
Firmware ID to request.
uint16_t subnet_handle
Handle of the subnet to delete.
uint8_t unprovisioned_device_index
Unprovisioned device index.
Mesh appkey get all command parameters.
Mesh appkey add command parameters.
serial_cmd_dfu_t dfu
DFU parameters.
Beacon start cmd parameters.
Mesh devkey delete command parameters.
serial_cmd_mesh_appkey_get_all_t appkey_get_all
Appkey get all parameters.
Mesh address subscription add command parameters.
serial_cmd_mesh_net_state_set_t net_state_set
Net state set parameters.
serial_cmd_device_beacon_params_set_t beacon_params_set
Beacon params set parameters.
Union of all config command parameters.
serial_cmd_openmesh_dfu_data_t dfu_data
DFU data parameters.
access_model_handle_t model_handle
Handle of the model that the access module should operate on.
uint8_t key_refresh_flag
Key refresh in progress flag.
nrf_mesh_fwid_t fwid
Firmware ID of firmware that should be relayed.
uint8_t context_id
ID of the context to set the authentication data for.
uint8_t tx_power
TX Power value, must be a value from serial_cmd_tx_power_value_t.
Used for sending commands to one of the initialized models.
uint16_t address_handle
Handle of address to remove from address subscription list.
uint8_t friendship_credential_flag
Control parameter for credentials used to publish messages from a model.
uint8_t channel_map
Channel map bitfield for beacon, starting at channel 37.
uint8_t transmic_size
Transport MIC size used enum.
uint8_t ttl
TTL for outgoing messages.
uint16_t appkey_handle
Handle of the appkey to change.
ID of a standalone firmware segment.
Mesh address publication remove command parameters.
uint8_t oob_method
OOB method to use, see nrf_mesh_prov_oob_method_t for accepted values.
uint16_t output_oob_actions
Available output actions for OOB authentication.
Provisioning provision command parameters.
Application command parameters.
Provisioning set capabilities parameters.
uint8_t addr_type
BLE advertising address type.
serial_cmd_dfu_request_t request
DFU request parameters.
serial_cmd_mesh_addr_get_t addr_get
Address get parameters.
Initialize PB-MESH Client.
uint8_t static_oob_types
The types of static OOB authentication methods.
Beacon stop cmd parameters.
Configuration Server: device key bind command parameters.
DFU bank flash command parameters.
serial_cmd_device_beacon_stop_t beacon_stop
Beacon stop parameters.
uint8_t oob_action
OOB action to use, see nrf_mesh_prov_input_action_t or nrf_mesh_prov_output_action_t for values...
uint32_t iv_index
The IV index to set.
uint16_t address
Unicast address to assign to the device.
#define NRF_MESH_STATIC_ASSERT(...)
Compile-time assertion.
uint16_t dst_addr_handle
Handle of destination address to use in packet.
uint16_t server_address
Remote provisioning Server address.
UUID config command parameters.
uint16_t net_key_index
Mesh-global key index.
uint8_t output_oob_size
Maximum size of the OOB authentication output.
uint16_t raw_address
Raw representation of the address to add.
uint8_t dfu_type
DFU Firmware type to relay.
serial_cmd_mesh_subnet_delete_t subnet_delete
Subnet delete parameters.
uint16_t subnet_handle
Handle of the subnet to change.
serial_cmd_dfu_relay_t relay
DFU relay parameters.
uint16_t address
Address to add as a publication address.
uint16_t address
Unicast address to assign to the device.
uint8_t force_segmented
Whether or not to force use of segmented message type for the transmission.
uint8_t public_key_type
The type of public key used in the device.
uint16_t location
Location value for the element.
#define NRF_MESH_SERIAL_PAYLOAD_MAXLEN
Maximum length of a serial packet's payload.