Skip to content

FUOTA API ​

本页列出当前版本的完整方法及字段。方法通过 gRPC / gRPC-Web 调用;REST 注解不表示已部署 REST Gateway。

“必填:按业务校验”表示 proto3 未声明 required,不代表留空一定可用。UUID、EUI、权限、资源存在性与字段组合由服务端校验。嵌套结构详见页末消息结构。

调用方式、鉴权与错误处理

FuotaService ​

CreateDeployment ​

接口名称: api.FuotaService/CreateDeployment

功能: 创建 Deployment。Create the given FUOTA deployment.

请求: api.CreateFuotaDeploymentRequest;返回: api.CreateFuotaDeploymentResponse(单次响应)。

请求参数 ​

名称类型必填说明
deploymentapi.FuotaDeployment按业务校验Deployment.

返回值 ​

名称类型必填说明
idstring按业务校验资源 ID。 ID of the created deployment.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

GetDeployment ​

接口名称: api.FuotaService/GetDeployment

功能: 查询 Deployment。Get the FUOTA deployment for the given ID.

请求: api.GetFuotaDeploymentRequest;返回: api.GetFuotaDeploymentResponse(单次响应)。

请求参数 ​

名称类型必填说明
idstring按业务校验资源 ID。 FUOTA Deployment ID.

返回值 ​

名称类型必填说明
deploymentapi.FuotaDeployment按业务校验FUOTA Deployment.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Updated at timestamp.
started_atgoogle.protobuf.Timestamp按业务校验Started at timestamp.
completed_atgoogle.protobuf.Timestamp按业务校验Completed at timestamp.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

UpdateDeployment ​

接口名称: api.FuotaService/UpdateDeployment

功能: 更新 Deployment。Update the given FUOTA deployment.

请求: api.UpdateFuotaDeploymentRequest;返回: google.protobuf.Empty(单次响应)。

请求参数 ​

名称类型必填说明
deploymentapi.FuotaDeployment按业务校验Deployment.

返回值 ​

无字段。

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

DeleteDeployment ​

接口名称: api.FuotaService/DeleteDeployment

功能: 删除 Deployment。Delete the FUOTA deployment for the given ID.

请求: api.DeleteFuotaDeploymentRequest;返回: google.protobuf.Empty(单次响应)。

请求参数 ​

名称类型必填说明
idstring按业务校验资源 ID。 FUOTA deployment ID.

返回值 ​

无字段。

操作影响

此方法会删除、清空或重置对应资源/状态。调用前核对目标 ID;请勿通过重试重复执行有副作用的操作。

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

StartDeployment ​

接口名称: api.FuotaService/StartDeployment

功能: StartDeployment。Start the FUOTA deployment.

请求: api.StartFuotaDeploymentRequest;返回: google.protobuf.Empty(单次响应)。

请求参数 ​

名称类型必填说明
idstring按业务校验资源 ID。 FUOTA deployment ID.

返回值 ​

无字段。

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

ListDeployments ​

接口名称: api.FuotaService/ListDeployments

功能: 列出 Deployments。List the FUOTA deployments.

请求: api.ListFuotaDeploymentsRequest;返回: api.ListFuotaDeploymentsResponse(单次响应)。

请求参数 ​

名称类型必填说明
limituint32按业务校验本次最多返回条数。 Max number of FUOTA deployments to return in the result-set. If not set, it will be treated as 0, and the response will only return the total_count.
offsetuint32按业务校验分页起始偏移。 Offset in the result-set (for pagination).
application_idstring按业务校验应用 UUID。 Application ID to list the FUOTA Deployments for. This must be set, unelss tenant_id is set.
tenant_idstring按业务校验租户 UUID。 Tenant ID to list the FUOTA deployments for. This must be set, unless application_id is set.

返回值 ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of FUOTA Deployments.
resultrepeated api.FuotaDeploymentListItem按业务校验结果列表或结果内容。 Result-test.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

AddDevices ​

接口名称: api.FuotaService/AddDevices

功能: 添加 Devices。Add the given DevEUIs to the FUOTA deployment.

请求: api.AddDevicesToFuotaDeploymentRequest;返回: google.protobuf.Empty(单次响应)。

请求参数 ​

名称类型必填说明
fuota_deployment_idstring按业务校验FUOTA Deployment ID.
dev_euisrepeated string按业务校验DevEUIs. Note that the DevEUIs must share the same device-profile as assigned to the FUOTA Deployment.

返回值 ​

无字段。

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

RemoveDevices ​

接口名称: api.FuotaService/RemoveDevices

功能: 移除 Devices。Remove the given DevEUIs from the FUOTA deployment.

请求: api.RemoveDevicesFromFuotaDeploymentRequest;返回: google.protobuf.Empty(单次响应)。

请求参数 ​

名称类型必填说明
fuota_deployment_idstring按业务校验FUOTA Deployment ID.
dev_euisrepeated string按业务校验DevEUIs.

返回值 ​

无字段。

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

ListDevices ​

接口名称: api.FuotaService/ListDevices

功能: 列出 Devices。List FUOTA Deployment devices.

请求: api.ListFuotaDeploymentDevicesRequest;返回: api.ListFuotaDeploymentDevicesResponse(单次响应)。

请求参数 ​

名称类型必填说明
limituint32按业务校验本次最多返回条数。 Max number of devices to return in the result-set. If not set, it will be treated as 0, and the response will only return the total_count.
offsetuint32按业务校验分页起始偏移。 Offset in the result-set (for pagination).
fuota_deployment_idstring按业务校验FUOTA Deployment ID.

返回值 ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of devices.
resultrepeated api.FuotaDeploymentDeviceListItem按业务校验结果列表或结果内容。 Result-set.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

AddGateways ​

接口名称: api.FuotaService/AddGateways

功能: 添加 Gateways。Add the given Gateway IDs to the FUOTA deployment. By default, ChirpStack will automatically select the minimum amount of gateways needed to cover all devices within the multicast-group. Setting the gateways manually overrides this behaviour.

请求: api.AddGatewaysToFuotaDeploymentRequest;返回: google.protobuf.Empty(单次响应)。

请求参数 ​

名称类型必填说明
fuota_deployment_idstring按业务校验FUOTA Deployment ID.
gateway_idsrepeated string按业务校验Gateway IDs. Note that the Gateways must be under the same tenant as the FUOTA Deployment.

返回值 ​

无字段。

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

ListGateways ​

接口名称: api.FuotaService/ListGateways

功能: 列出 Gateways。List the gateways added to the FUOTA deployment.

请求: api.ListFuotaDeploymentGatewaysRequest;返回: api.ListFuotaDeploymentGatewaysResponse(单次响应)。

请求参数 ​

名称类型必填说明
limituint32按业务校验本次最多返回条数。 Max number of gateways to return in the result-set. If not set, it will be treated as 0, and the response will only return the total_count.
offsetuint32按业务校验分页起始偏移。 Offset in the result-set (for pagination).
fuota_deployment_idstring按业务校验FUOTA Deployment ID.

返回值 ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of gateways.
resultrepeated api.FuotaDeploymentGatewayListItem按业务校验结果列表或结果内容。 Result-set.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

RemoveGateways ​

接口名称: api.FuotaService/RemoveGateways

功能: 移除 Gateways。Remove the given Gateway IDs from the FUOTA deployment.

请求: api.RemoveGatewaysFromFuotaDeploymentRequest;返回: google.protobuf.Empty(单次响应)。

请求参数 ​

名称类型必填说明
fuota_deployment_idstring按业务校验FUOTA Deployment ID.
gateway_idsrepeated string按业务校验Gateway IDs.

返回值 ​

无字段。

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

ListJobs ​

接口名称: api.FuotaService/ListJobs

功能: 列出 Jobs。List jobs for the given FUOTA deployment.

请求: api.ListFuotaDeploymentJobsRequest;返回: api.ListFuotaDeploymentJobsResponse(单次响应)。

请求参数 ​

名称类型必填说明
fuota_deployment_idstring按业务校验FUOTA Deployment ID.

返回值 ​

名称类型必填说明
jobsrepeated api.FuotaDeploymentJob按业务校验Jobs.

错误处理:按 统一错误说明 检查 gRPC 状态;本页不将通用状态码冒充每个方法的固定错误集合。

嵌套消息结构 ​

api.AddDevicesToFuotaDeploymentRequest ​

名称类型必填说明
fuota_deployment_idstring按业务校验FUOTA Deployment ID.
dev_euisrepeated string按业务校验DevEUIs. Note that the DevEUIs must share the same device-profile as assigned to the FUOTA Deployment.

api.AddGatewaysToFuotaDeploymentRequest ​

名称类型必填说明
fuota_deployment_idstring按业务校验FUOTA Deployment ID.
gateway_idsrepeated string按业务校验Gateway IDs. Note that the Gateways must be under the same tenant as the FUOTA Deployment.

api.CreateFuotaDeploymentRequest ​

名称类型必填说明
deploymentapi.FuotaDeployment按业务校验Deployment.

api.CreateFuotaDeploymentResponse ​

名称类型必填说明
idstring按业务校验资源 ID。 ID of the created deployment.

api.DeleteFuotaDeploymentRequest ​

名称类型必填说明
idstring按业务校验资源 ID。 FUOTA deployment ID.

api.FuotaDeployment ​

名称类型必填说明
idstring按业务校验资源 ID。 Deployment ID. This value is automatically set on create.
application_idstring按业务校验应用 UUID。 Application ID.
device_profile_idstring按业务校验终端模版 UUID。 Device-profile ID.
namestring按业务校验名称。 Deployment name.
multicast_group_typeapi.MulticastGroupType {CLASS_C=0, CLASS_B=1}按业务校验Multicast-group type.
multicast_class_c_scheduling_typeapi.MulticastGroupSchedulingType {DELAY=0, GPS_TIME=1}按业务校验Multicast-group scheduling type (Class-C only).
multicast_druint32按业务校验Multicast data-rate.
multicast_class_b_ping_slot_periodicityuint32按业务校验Multicast ping-slot period (Class-B only). Valid options are: 0 - 7. Number of ping-slots per beacon-period: pingNb = 2^(7-periodicity) Periodicity: 0 = 128 ping-slots per beacon period = ~ every 1 sec Periodicity: 7 = 1 ping-slot per beacon period = ~ every 128 sec
multicast_frequencyuint32按业务校验Multicast frequency (Hz).
multicast_timeoutuint32按业务校验Multicast timeout. This defines the timeout of the multicast-session. Please refer to the Remote Multicast Setup specification as this field has a different meaning for Class-B and Class-C groups.
calculate_multicast_timeoutbool按业务校验Calculate multicast timeout. If set to true, ChirpStack will calculate the multicast-timeout.
unicast_max_retry_countuint32按业务校验The number of times ChirpStack will retry an unicast command before it considers it to be failed.
fragmentation_fragment_sizeuint32按业务校验Fragmentation size. This defines the size of each payload fragment. Please refer to the Regional Parameters specification for the maximum payload sizes per data-rate and region.
calculate_fragmentation_fragment_sizebool按业务校验Calculate fragmentation size. If set to true, ChirpStack will calculate the fragmentation size.
fragmentation_redundancy_percentageuint32按业务校验Fragmentation redundancy percentage. The number represents the percentage (0 - 100) of redundant messages to send.
fragmentation_session_indexuint32按业务校验Fragmentation session index.
fragmentation_matrixuint32按业务校验Fragmentation matrix.
fragmentation_block_ack_delayuint32按业务校验Block ack delay.
fragmentation_descriptorbytes按业务校验Descriptor (4 bytes).
request_fragmentation_session_statusapi.RequestFragmentationSessionStatus {NO_REQUEST=0, AFTER_FRAGMENT_ENQUEUE=1, AFTER_SESSION_TIMEOUT=2}按业务校验Request fragmentation session status.
payloadbytes按业务校验Payload. The FUOTA payload to send.
on_complete_set_device_tagsmap<string, string>按业务校验Set device tags on complete.

api.FuotaDeployment.OnCompleteSetDeviceTagsEntry ​

名称类型必填说明
keystring按业务校验消息定义未补充字段说明。
valuestring按业务校验消息定义未补充字段说明。

api.FuotaDeploymentDeviceListItem ​

名称类型必填说明
fuota_deployment_idstring按业务校验ID.
dev_euistring按业务校验终端完整 DevEUI。 DevEUI.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
completed_atgoogle.protobuf.Timestamp按业务校验Completed at timestamp.
mc_group_setup_completed_atgoogle.protobuf.Timestamp按业务校验McGroupSetup completed at timestamp.
mc_session_completed_atgoogle.protobuf.Timestamp按业务校验McSession completed at timestamp.
frag_session_setup_completed_atgoogle.protobuf.Timestamp按业务校验FragSessionSetup completed at timestamp.
frag_status_completed_atgoogle.protobuf.Timestamp按业务校验FragStatus completed at timestamp.
error_msgstring按业务校验Error message.

api.FuotaDeploymentGatewayListItem ​

名称类型必填说明
fuota_deployment_idstring按业务校验ID.
gateway_idstring按业务校验网关 EUI。 Gateway ID.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.

api.FuotaDeploymentJob ​

名称类型必填说明
jobstring按业务校验Job identifier.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at.
completed_atgoogle.protobuf.Timestamp按业务校验Completed at.
max_retry_countuint32按业务校验Max. retry count.
attempt_countuint32按业务校验Attempt count.
scheduler_run_aftergoogle.protobuf.Timestamp按业务校验Scheduler run after.
warning_msgstring按业务校验Warning message.
error_msgstring按业务校验Error message.

api.FuotaDeploymentListItem ​

名称类型必填说明
idstring按业务校验资源 ID。 ID.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Updated at timestamp.
started_atgoogle.protobuf.Timestamp按业务校验Started at timestamp.
completed_atgoogle.protobuf.Timestamp按业务校验Completed at timestamp.
namestring按业务校验名称。 Name.
application_idstring按业务校验应用 UUID。 Application ID.
application_namestring按业务校验Application name.

api.GetFuotaDeploymentRequest ​

名称类型必填说明
idstring按业务校验资源 ID。 FUOTA Deployment ID.

api.GetFuotaDeploymentResponse ​

名称类型必填说明
deploymentapi.FuotaDeployment按业务校验FUOTA Deployment.
created_atgoogle.protobuf.Timestamp按业务校验创建时间。 Created at timestamp.
updated_atgoogle.protobuf.Timestamp按业务校验最后更新时间。 Updated at timestamp.
started_atgoogle.protobuf.Timestamp按业务校验Started at timestamp.
completed_atgoogle.protobuf.Timestamp按业务校验Completed at timestamp.

api.ListFuotaDeploymentDevicesRequest ​

名称类型必填说明
limituint32按业务校验本次最多返回条数。 Max number of devices to return in the result-set. If not set, it will be treated as 0, and the response will only return the total_count.
offsetuint32按业务校验分页起始偏移。 Offset in the result-set (for pagination).
fuota_deployment_idstring按业务校验FUOTA Deployment ID.

api.ListFuotaDeploymentDevicesResponse ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of devices.
resultrepeated api.FuotaDeploymentDeviceListItem按业务校验结果列表或结果内容。 Result-set.

api.ListFuotaDeploymentGatewaysRequest ​

名称类型必填说明
limituint32按业务校验本次最多返回条数。 Max number of gateways to return in the result-set. If not set, it will be treated as 0, and the response will only return the total_count.
offsetuint32按业务校验分页起始偏移。 Offset in the result-set (for pagination).
fuota_deployment_idstring按业务校验FUOTA Deployment ID.

api.ListFuotaDeploymentGatewaysResponse ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of gateways.
resultrepeated api.FuotaDeploymentGatewayListItem按业务校验结果列表或结果内容。 Result-set.

api.ListFuotaDeploymentJobsRequest ​

名称类型必填说明
fuota_deployment_idstring按业务校验FUOTA Deployment ID.

api.ListFuotaDeploymentJobsResponse ​

名称类型必填说明
jobsrepeated api.FuotaDeploymentJob按业务校验Jobs.

api.ListFuotaDeploymentsRequest ​

名称类型必填说明
limituint32按业务校验本次最多返回条数。 Max number of FUOTA deployments to return in the result-set. If not set, it will be treated as 0, and the response will only return the total_count.
offsetuint32按业务校验分页起始偏移。 Offset in the result-set (for pagination).
application_idstring按业务校验应用 UUID。 Application ID to list the FUOTA Deployments for. This must be set, unelss tenant_id is set.
tenant_idstring按业务校验租户 UUID。 Tenant ID to list the FUOTA deployments for. This must be set, unless application_id is set.

api.ListFuotaDeploymentsResponse ​

名称类型必填说明
total_countuint32按业务校验符合条件的总条数。 Total number of FUOTA Deployments.
resultrepeated api.FuotaDeploymentListItem按业务校验结果列表或结果内容。 Result-test.

api.RemoveDevicesFromFuotaDeploymentRequest ​

名称类型必填说明
fuota_deployment_idstring按业务校验FUOTA Deployment ID.
dev_euisrepeated string按业务校验DevEUIs.

api.RemoveGatewaysFromFuotaDeploymentRequest ​

名称类型必填说明
fuota_deployment_idstring按业务校验FUOTA Deployment ID.
gateway_idsrepeated string按业务校验Gateway IDs.

api.StartFuotaDeploymentRequest ​

名称类型必填说明
idstring按业务校验资源 ID。 FUOTA deployment ID.

api.UpdateFuotaDeploymentRequest ​

名称类型必填说明
deploymentapi.FuotaDeployment按业务校验Deployment.

设备使用指南