You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
1.1 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. # README
  2. ```
  3. 1. 输入rootiflytop9973可以进入超级用户
  4. 2. ws测试地址: ws://192.168.8.10:19001
  5. {
  6. "command":"exceCanCmd",
  7. "cancmd":"call 1007 1"
  8. }
  9. {
  10. "command":"exceCanCmd",
  11. "cancmd":"huacheng_pressure_sensor_read_c1005 0"
  12. }
  13. {
  14. "command":"exceCanCmd",
  15. "cancmd":"huacheng_pressure_sensor_read_c1005 1"
  16. }
  17. {
  18. "command":"exceCanCmd",
  19. "cancmd":"huacheng_pressure_sensor_read_c1005 2"
  20. }
  21. {
  22. "command":"exceCanCmd",
  23. "cancmd":"huacheng_pressure_sensor_read_c1005 3"
  24. }
  25. ```
  26. # 编译
  27. ```
  28. ./build.sh
  29. ```
  30. ```
  31. scp ./build/app/app.out root@192.168.8.176:/app/
  32. ```
  33. # 依赖
  34. ## 部署环境依赖
  35. ```
  36. sudo apt-get install sqlite3 libsqlite3-dev
  37. ```
  38. ## 编译环境依赖
  39. ```
  40. sudo apt-get install sqlite3:arm64 libsqlite3-dev:arm64
  41. ```
  42. # 测试指令
  43. ```
  44. sudo apt-get install sqlite3 libsqlite3-dev
  45. sudo apt-get install sqlite3:arm64 libsqlite3-dev:arm64
  46. sqlite可视化
  47. sudo apt-get install sqlitebrowser
  48. https://www.sqlite.org/docs.html
  49. ```
  50. ```
  51. 液位测量压力传感器:
  52. 设备地址:01
  53. 量程:-1~4kPa
  54. 4 kPa=407.888 毫米水柱
  55. 传感器测量精度:0.407888 毫米水柱
  56. ```