协议
RemoteControl
在 fuchsia.developer.remotecontrol/remote-control.fidl 中定义
ConnectCapability
如果由给定名字标识的组件公开了所请求名称的功能,则将渠道连接到服务(给定名字和渠道)。
请求
| 名称 | 类型 |
|---|---|
moniker |
string:4096
|
capability_set |
fuchsia.sys2/OpenDirType
|
capability_name |
fuchsia.component/name
|
server_channel |
handle<channel>
|
响应
| 名称 | 类型 |
|---|---|
payload |
RemoteControl_ConnectCapability_Result
|
EchoString
返回输入。
请求
| 名称 | 类型 |
|---|---|
value |
string:255
|
响应
| 名称 | 类型 |
|---|---|
response |
string:255
|
GetBootTime
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
time |
zx/InstantBoot
|
GetTime
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
time |
zx/InstantMono
|
IdentifyHost
请求
<EMPTY>
响应
| 名称 | 类型 |
|---|---|
payload |
RemoteControl_IdentifyHost_Result
|
LogMessage
将字符串写入设备上的 syslog。
请求
| 名称 | 类型 |
|---|---|
tag |
string
|
message |
string
|
severity |
fuchsia.diagnostics.types/Severity
|
响应
<EMPTY>
STRUCTS
CompatibilityInfo
在 fuchsia.developer.remotecontrol/host-identification.fidl 中定义
目标的兼容性信息
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
state |
CompatibilityState
|
主机工具与目标之间的兼容性状态。 |
无默认应用 |
platform_abi |
uint64
|
目标平台的 ABI 修订版本。 |
无默认应用 |
message |
string
|
适合向英语用户显示的状态消息字符串。 |
无默认应用 |
RemoteControl_ConnectCapability_Response
在 fuchsia.developer.remotecontrol/remote-control.fidl 中定义
<EMPTY>
RemoteControl_IdentifyHost_Response
在 fuchsia.developer.remotecontrol/remote-control.fidl 中定义
| 字段 | 类型 | 说明 | 默认 |
|---|---|---|---|
response |
IdentifyHostResponse
|
无默认应用 |
枚举
CompatibilityState flexible
类型:uint32
在 fuchsia.developer.remotecontrol/host-identification.fidl 中定义
主机工具与目标之间的兼容性状态。
| 名称 | 值 | 说明 |
|---|---|---|
ERROR |
0 |
确定兼容性状态时出错。 |
ABSENT |
1 |
未提供兼容性信息。 |
支持 |
2 |
支持 ABI 修订版本 |
未知 |
3 |
无法识别 ABI 修订版本。 |
不支持 |
4 |
不支持其提供的 ABI 修订版本。 |
ConnectCapabilityError flexible
类型:uint32
在 fuchsia.developer.remotecontrol/service-discovery.fidl 中定义
| 名称 | 值 | 说明 |
|---|---|---|
INVALID_MONIKER |
1 |
|
NO_MATCHING_CAPABILITIES |
2 |
|
NO_MATCHING_COMPONENT |
3 |
|
CAPABILITY_CONNECT_FAILED |
4 |
IdentifyHostError flexible
类型:uint32
在 fuchsia.developer.remotecontrol/host-identification.fidl 中定义
| 名称 | 值 | 说明 |
|---|---|---|
LIST_INTERFACES_FAILED |
1 |
|
GET_DEVICE_NAME_FAILED |
2 |
|
PROXY_CONNECTION_FAILED |
3 |
TunnelError flexible
类型:uint32
在 fuchsia.developer.remotecontrol/remote-control.fidl 中定义
| 名称 | 值 | 说明 |
|---|---|---|
CONNECT_FAILED |
1 |
|
SOCKET_FAILED |
2 |
|
CALLBACK_ERROR |
3 |
TABLES
IdentifyHostResponse
在 fuchsia.developer.remotecontrol/host-identification.fidl 中定义
| 序数 | 字段 | 类型 | 说明 |
|---|---|---|---|
2 |
nodename |
string:255
|
|
3 |
boot_timestamp_nanos |
uint64
|
|
4 |
serial_number |
string:255
|
|
5 |
ids |
vector<uint64>
|
|
6 |
product_config |
string:100
|
|
7 |
board_config |
string:100
|
|
8 |
addresses |
vector<fuchsia.net/Subnet>
|
从目标的角度来看,当前分配给目标接口的网络地址。这些信息仅供参考,用于目标识别,而不是建立主机到目标的连接。 |
9 |
boot_id |
uint64
|
新增:24
|
10 |
f_release |
uint32
|
新增:NEXT
|
UNIONS
RemoteControl_ConnectCapability_Result strict
在 fuchsia.developer.remotecontrol/remote-control.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
RemoteControl_ConnectCapability_Response
|
|
2 |
err |
ConnectCapabilityError
|
|
3 |
framework_err |
internal
|
RemoteControl_IdentifyHost_Result strict
在 fuchsia.developer.remotecontrol/remote-control.fidl 中定义
| 序数 | 变体 | 类型 | 说明 |
|---|---|---|---|
1 |
response |
RemoteControl_IdentifyHost_Response
|
|
2 |
err |
IdentifyHostError
|
|
3 |
framework_err |
internal
|
常量
| 名称 | 值 | 类型 | 说明 |
|---|---|---|---|
| MAX_CONNECT_MATCHES |
5
|
uint16 |
|
| MAX_NUM_MATCHES |
250
|
uint16 |
|
| NODE_NAME_MAX |
255
|
uint32 |