Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • AnW_STA5_SmartLink AnW_STA5_SmartLink
  • Project information
    • Project information
    • Activity
    • Members
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • Ervin Lan
  • AnW_STA5_SmartLinkAnW_STA5_SmartLink
  • Wiki
  • STA5 SmartLink command guidance

STA5 SmartLink command guidance · Changes

Page history
Update STA5 SmartLink command guidance authored May 05, 2022 by Ervin Lan's avatar Ervin Lan
Hide whitespace changes
Inline Side-by-side
Showing with 12 additions and 2 deletions
+12 -2
  • STA5-SmartLink-command-guidance.md STA5-SmartLink-command-guidance.md +12 -2
  • No files found.
STA5-SmartLink-command-guidance.md
View page @ a8393108
......@@ -4,7 +4,7 @@
- [Designer](#designer)
- [Purpose](#purpose)
- [Requirement](#requirement)
- [Flow Chart](#flow-chart)
- [Main Flow Chart](#main-flow-chart)
- [APIs](#apis)
- [SmartLink data format](#smartlink-data-format)
- [SmartLink data base structure](#smartlink-data-base-structure)
......@@ -65,7 +65,7 @@ export
└── libsocket.so
</pre>
## Flow Chart
## Main Flow Chart
```mermaid
graph TD
A[START] -->|Multi-thread| B(Socket Accepter thread)
......@@ -283,6 +283,7 @@ if (ret < 0) {
### Get device information
- From APPs - Client
- To get the device info from SmartLink. Send below message to SmartLink.
- Supported types: E_MAIN_UI, E_PHONE_CONNECTIVITY_AA, E_BT_SRV, E_OTHER_TYPE.
| Data member | Value |
| -------------------------- | ---------------------------------------- |
......@@ -303,6 +304,7 @@ if (ret < 0) {
### Return device information
- From SmartLink - Server
- The device info returned from SmartLink.
- Supported types: E_MAIN_UI, E_PHONE_CONNECTIVITY_AA, E_BT_SRV, E_OTHER_TYPE.
| Data member | Value |
| -------------------------- | --------------------------------------------------------------- |
......@@ -322,6 +324,7 @@ if (ret < 0) {
### Device Phone Link ON
- From SmartLink - Server
- The device Phone Link status is ON.
- Supported types: E_MAIN_UI.
| Data member | Value |
| -------------------------- | ---------------------------------------- |
......@@ -341,6 +344,7 @@ if (ret < 0) {
### Device Phone Link OFF
- From SmartLink - Server
- The device Phone Link status is OFF.
- Supported types: E_MAIN_UI.
| Data member | Value |
| -------------------------- | ---------------------------------------- |
......@@ -360,6 +364,7 @@ if (ret < 0) {
### UI Phone Link software button
- From UI - Client
- The Phone Link software button pressed, need to notify SmartLink.
- Supported types: E_MAIN_UI.
| Data member | Value |
| -------------------------- | ---------------------------------------- |
......@@ -380,6 +385,7 @@ if (ret < 0) {
### iAP2 connected
- From BTSRV - Client
- When iAP2 connected, need to notify SmartLink.
- Supported types: E_BT_SRV.
| Data member | Value |
| -------------------------- | ---------------------------------------------------------------- |
......@@ -401,6 +407,7 @@ if (ret < 0) {
### iAP2 disconnected
- From BTSRV - Client
- When iAP2 disconnected, need to notify SmartLink.
- Supported types: E_BT_SRV.
| Data member | Value |
| -------------------------- | ---------------------------------------------------------------- |
......@@ -422,6 +429,7 @@ if (ret < 0) {
### Pop a window for Phone Link
- From SmartLink - Server
- Call UI to pop a window for user confirm if Phone Link connection is allowed or not.
- Supported types: E_MAIN_UI.
| Data member | Value |
| -------------------------- | ----------------------------------------- |
......@@ -441,6 +449,7 @@ if (ret < 0) {
### Pop up window return
- From UI - Client
- To return the result of pop up window to SmartLink.
- Supported types: E_MAIN_UI.
| Data member | Value |
| ----------- | ------------------------------------------------------------------------- |
......@@ -457,6 +466,7 @@ if (ret < 0) {
### Disconnect BT connection with iPhone
- From SmartLink - Server
- Call BTSRV to disconnect BT connection with iPhone.
- Supported types: E_BT_SRV.
| Data member | Value |
| -------------------------- | ---------------------------------------- |
......
Clone repository
  • APIs
  • STA5 SmartLink command guidance
  • Home