Andriod app, to provide two-way communication between the actuation mechanism on bluetooth (BT) and the server on TCP.
$100-200 USD
已取消
已发布超过 11 年前
$100-200 USD
货到付款
Task
1. 3 screens:
a. main screen
b. the connection tcp setup - the server (IP), port, name
c. choice of BT of the device and input code pin. pair device
2. on the main screen - the Start buttons, Stop, a status connection with the server and BT, a check a log, a log text
3. if all settings are set, the Start button is enable
4. We click Start, connect to BT
5. Connection is successful - connect to the server, differently we report to the user about unavailability of BT and go to 3
6. Connect to the server - we send the command "LOGIN;name"
7. All commands it is a text line with termination \n (0x10)
8. Periodic the server sends SPING, it is necessary to respond to it SPONG
9. All remaining data are sent from the server on BT and from BT on the server as is
10. If within 1 minute there is no SPING or lost connection - each 5 seconds we try to connect.
11. Connected - a command "LOGIN;name"
12. If check a log, all commands coming from the server and BT we write to logs text.
13. Attempts connection and reconnections to write there always.
14. Lost connection with BT each 5 seconds we try to reinstall connection.
15. The button of feet breaks off all active connections.