通訊協定
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
將字串寫入裝置的系統記錄。
要求
| 名稱 | 類型 |
|---|---|
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
|
無預設值 |
列舉
彈性相容性狀態
類型:uint32
定義於 fuchsia.developer.remotecontrol/host-identification.fidl
主機工具與目標之間的相容性狀態。
| 名稱 | 值 | 說明 |
|---|---|---|
錯誤 |
0 |
判斷相容性狀態時發生錯誤。 |
缺席 |
1 |
沒有相容性資訊。 |
支援 |
2 |
支援 ABI 修訂版本 |
不明 |
3 |
無法辨識 ABI 修訂版本。 |
不支援 |
4 |
不支援提供的 ABI 修訂版本。 |
彈性 ConnectCapabilityError
類型:uint32
定義於 fuchsia.developer.remotecontrol/service-discovery.fidl
| 名稱 | 值 | 說明 |
|---|---|---|
INVALID_MONIKER |
1 |
|
NO_MATCHING_CAPABILITIES |
2 |
|
NO_MATCHING_COMPONENT |
3 |
|
CAPABILITY_CONNECT_FAILED |
4 |
IdentifyHostError 彈性
類型:uint32
定義於 fuchsia.developer.remotecontrol/host-identification.fidl
| 名稱 | 值 | 說明 |
|---|---|---|
LIST_INTERFACES_FAILED |
1 |
|
GET_DEVICE_NAME_FAILED |
2 |
|
PROXY_CONNECTION_FAILED |
3 |
TunnelError 彈性
類型: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
| 序數 | Variant | 類型 | 說明 |
|---|---|---|---|
1 |
response |
RemoteControl_ConnectCapability_Response
|
|
2 |
err |
ConnectCapabilityError
|
|
3 |
framework_err |
internal
|
RemoteControl_IdentifyHost_Result strict
定義於 fuchsia.developer.remotecontrol/remote-control.fidl
| 序數 | Variant | 類型 | 說明 |
|---|---|---|---|
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 |