... | @@ -10,12 +10,13 @@ |
... | @@ -10,12 +10,13 @@ |
|
- [SmartLink data base structure](#smartlink-data-base-structure)
|
|
- [SmartLink data base structure](#smartlink-data-base-structure)
|
|
- [Common Command](#common-command)
|
|
- [Common Command](#common-command)
|
|
- [E_REQ_SUBSCRIBE](#subscribe)
|
|
- [E_REQ_SUBSCRIBE](#subscribe)
|
|
|
|
- [E_REQ_GET_WIFI_STATUS](#get-wifi-status)
|
|
|
|
- [E_RETURN_WIFI_STATUS_ON/E_RETURN_WIFI_STATUS_OFF](#return-wifi-status)
|
|
|
|
- [Windows Focus switch command](#windows-focus-switch-command)
|
|
- [E_REQ_I_AM_TOP](#on-top-notification)
|
|
- [E_REQ_I_AM_TOP](#on-top-notification)
|
|
- [E_REQ_I_AM_TOP for Android Auto](#on-top-notification-for-android-auto)
|
|
- [E_REQ_I_AM_TOP for Android Auto](#on-top-notification-for-android-auto)
|
|
- [E_GET_UP](#get-up)
|
|
- [E_GET_UP](#get-up)
|
|
- [E_GET_DOWN](#get-down)
|
|
- [E_GET_DOWN](#get-down)
|
|
- [E_REQ_GET_WIFI_STATUS](#get-wifi-status)
|
|
|
|
- [E_RETURN_WIFI_STATUS_ON/E_RETURN_WIFI_STATUS_OFF](#return-wifi-status)
|
|
|
|
- [Device Manager Command](#device-manager-command)
|
|
- [Device Manager Command](#device-manager-command)
|
|
- [E_REQ_GET_DEVICE_INFO](#get-device-information)
|
|
- [E_REQ_GET_DEVICE_INFO](#get-device-information)
|
|
- [E_RETURN_DEVICE_INFO](#return-device-information)
|
|
- [E_RETURN_DEVICE_INFO](#return-device-information)
|
... | @@ -162,6 +163,46 @@ if (ret < 0) { |
... | @@ -162,6 +163,46 @@ if (ret < 0) { |
|
|
|
|
|
- From SmartLink: No return message.
|
|
- From SmartLink: No return message.
|
|
|
|
|
|
|
|
### Get WiFi status
|
|
|
|
- From APPs - Client
|
|
|
|
- To get the Wi-Fi AP status from SmartLink. Send below message to SmartLink.
|
|
|
|
- Supported types: E_MAIN_UI, E_PHONE_CONNECTIVITY_AA, E_PHONE_CONNECTIVITY_CP, E_BT_SRV, E_OTHER_TYPE.
|
|
|
|
|
|
|
|
| Data member | Value |
|
|
|
|
| ----------- | -------------------------------------- |
|
|
|
|
| version | SML_MAJOR_VERSION |
|
|
|
|
| mode | E_DELEGATE |
|
|
|
|
| AppType | Refer to type APP_TYPE. |
|
|
|
|
| state | E_STATE_OK |
|
|
|
|
| AppClientID | Client ID. |
|
|
|
|
| srcAppName | Source application name in string. |
|
|
|
|
| dstAppName | "SML" |
|
|
|
|
| cmd | E_REQ_GET_WIFI_STATUS |
|
|
|
|
| len | Total length of message in bytes(288). |
|
|
|
|
|
|
|
|
- From SmartLink: Returned message, refer next section(Return WiFi status).
|
|
|
|
|
|
|
|
### Return WiFi status
|
|
|
|
- From SmartLink - Server
|
|
|
|
- Wi-Fi AP status returned from SmartLink:
|
|
|
|
- E_RETURN_WIFI_STATUS_ON means Wi-Fi AP is on and ready.
|
|
|
|
- E_RETURN_WIFI_STATUS_OFF means Wi-Fi AP is off and not ready.
|
|
|
|
- Supported types: E_MAIN_UI, E_PHONE_CONNECTIVITY_AA, E_PHONE_CONNECTIVITY_CP, E_BT_SRV, E_OTHER_TYPE.
|
|
|
|
|
|
|
|
| Data member | Value |
|
|
|
|
| ----------- | ------------------------------------------------ |
|
|
|
|
| version | SML_MAJOR_VERSION |
|
|
|
|
| mode | E_DELEGATE |
|
|
|
|
| AppType | Refer to type APP_TYPE. |
|
|
|
|
| state | E_STATE_OK |
|
|
|
|
| AppClientID | Client ID. |
|
|
|
|
| srcAppName | "SML" |
|
|
|
|
| dstAppName | Received Application name. |
|
|
|
|
| cmd | E_RETURN_WIFI_STATUS_ON/E_RETURN_WIFI_STATUS_OFF |
|
|
|
|
| len | Total length of message in bytes(288). |
|
|
|
|
|
|
|
|
## Windows Focus switch command
|
|
|
|
|
|
### On Top Notification
|
|
### On Top Notification
|
|
- From APPs - Client
|
|
- From APPs - Client
|
|
- Notify SmartLink when APP is on Projection mode. Send below message to SmartLink.
|
|
- Notify SmartLink when APP is on Projection mode. Send below message to SmartLink.
|
... | @@ -237,44 +278,6 @@ if (ret < 0) { |
... | @@ -237,44 +278,6 @@ if (ret < 0) { |
|
| cmd | E_GET_DOWN |
|
|
| cmd | E_GET_DOWN |
|
|
| len | Total length of message in bytes(288). |
|
|
| len | Total length of message in bytes(288). |
|
|
|
|
|
|
### Get WiFi status
|
|
|
|
- From APPs - Client
|
|
|
|
- To get the Wi-Fi AP status from SmartLink. Send below message to SmartLink.
|
|
|
|
- Supported types: E_MAIN_UI, E_PHONE_CONNECTIVITY_AA, E_PHONE_CONNECTIVITY_CP, E_BT_SRV, E_OTHER_TYPE.
|
|
|
|
|
|
|
|
| Data member | Value |
|
|
|
|
| ----------- | -------------------------------------- |
|
|
|
|
| version | SML_MAJOR_VERSION |
|
|
|
|
| mode | E_DELEGATE |
|
|
|
|
| AppType | Refer to type APP_TYPE. |
|
|
|
|
| state | E_STATE_OK |
|
|
|
|
| AppClientID | Client ID. |
|
|
|
|
| srcAppName | Source application name in string. |
|
|
|
|
| dstAppName | "SML" |
|
|
|
|
| cmd | E_REQ_GET_WIFI_STATUS |
|
|
|
|
| len | Total length of message in bytes(288). |
|
|
|
|
|
|
|
|
- From SmartLink: Returned message, refer next section(Return WiFi status).
|
|
|
|
|
|
|
|
### Return WiFi status
|
|
|
|
- From SmartLink - Server
|
|
|
|
- Wi-Fi AP status returned from SmartLink:
|
|
|
|
- E_RETURN_WIFI_STATUS_ON means Wi-Fi AP is on and ready.
|
|
|
|
- E_RETURN_WIFI_STATUS_OFF means Wi-Fi AP is off and not ready.
|
|
|
|
- Supported types: E_MAIN_UI, E_PHONE_CONNECTIVITY_AA, E_PHONE_CONNECTIVITY_CP, E_BT_SRV, E_OTHER_TYPE.
|
|
|
|
|
|
|
|
| Data member | Value |
|
|
|
|
| ----------- | ------------------------------------------------ |
|
|
|
|
| version | SML_MAJOR_VERSION |
|
|
|
|
| mode | E_DELEGATE |
|
|
|
|
| AppType | Refer to type APP_TYPE. |
|
|
|
|
| state | E_STATE_OK |
|
|
|
|
| AppClientID | Client ID. |
|
|
|
|
| srcAppName | "SML" |
|
|
|
|
| dstAppName | Received Application name. |
|
|
|
|
| cmd | E_RETURN_WIFI_STATUS_ON/E_RETURN_WIFI_STATUS_OFF |
|
|
|
|
| len | Total length of message in bytes(288). |
|
|
|
|
|
|
|
|
## Device Manager Command
|
|
## Device Manager Command
|
|
|
|
|
|
### Get device information
|
|
### Get device information
|
... | | ... | |