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 04, 2022 by Ervin Lan's avatar Ervin Lan
Hide whitespace changes
Inline Side-by-side
Showing with 30 additions and 0 deletions
+30 -0
  • STA5-SmartLink-command-guidance.md STA5-SmartLink-command-guidance.md +30 -0
  • No files found.
STA5-SmartLink-command-guidance.md
View page @ 27a3ca61
......@@ -4,6 +4,7 @@
- [Designer](#designer)
- [Purpose](#purpose)
- [Requirement](#requirement)
- [Flow Chart](#flow-chart)
- [APIs](#apis)
- [SmartLink data format](#smartlink-data-format)
- [SmartLink data base structure](#smartlink-data-base-structure)
......@@ -63,6 +64,35 @@ export
└── libsocket.so
</pre>
## Flow Chart
```mermaid
graph TD
A[START] -->|Multi-thread| B(Socket Accepter thread)
B --> C(create_unix_server_socket)
C --> D(accept_unix_stream_socket)
D -->|Multi-thread| E(listener thread)
E --> F(Receive E_REQ_SUBSCRIBE command)
F --> G(Switch case by APP_TYPE)
G --> H{case MAIN_UI}
H --> I[Main UI message handler]
H --> J{case AA}
J --> K[Android Auto message handler]
J --> L{case CP}
L --> M[Apple CarPlay message handler]
L --> N{case BT_SRV}
N --> O[BT SRV message handler]
N --> P{case Others}
P --> Q[Others message handler]
P --> G
D -->|Multi-thread| R(listener thread)
R --> S(...)
D -->|Multi-thread| T(...)
A -->|Multi-thread| U(Key button thread)
U --> V(Detect /dev/input/event0)
A -->|Multi-thread| W(Rotary button thread)
W --> X(Detect /dev/input/event1)
```
## APIs
- To connect:
<pre>
......
Clone repository
  • APIs
  • STA5 SmartLink command guidance
  • Home