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.

71 lines
1.3 KiB

2 years ago
3 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. # linux_demo_project
  2. ```
  3. 功能:
  4. 1. 打通CAN通道
  5. 2. 打通ws通道,
  6. 2. 解析CAN消息,并上报给ws
  7. 3. 解析ws消息并发送给CAN
  8. TOOD:
  9. 1. 机械臂扫码功能
  10. 2.
  11. 测试:
  12. 1. websocket下发一条can指令,can卡能够收到
  13. 2. can卡上报一条指令,websocket能够收到
  14. ```
  15. ## 编译RK3328
  16. ```bash
  17. # 板子初始化
  18. ./boardinit.sh \
  19. --device_info "DEVICE_ID=a8000_1" \
  20. --device_info "FRP_SERVER_ADDR=47.92.195.73" \
  21. --device_info "STARTUP_DEFAULT_URL=127.0.0.1:80" \
  22. --ip 192.168.1.164
  23. # 初始化环境
  24. ./build.sh envsetup
  25. # 仅编译
  26. ./build.sh build
  27. # 编译调试版本,Cmake使用的是cmakepc.cmake
  28. ./build.sh buildhost
  29. # 编译打包部署(整包)
  30. ./build.sh --ip <ip> flash
  31. # 编译打包部署,重启系统(整包)
  32. ./build.sh --ip <ip> flash reboot
  33. # 编译并只部署应用
  34. ./build.sh --ip <ip> flashapp "app.out"
  35. # 只部署webapp
  36. ./build.sh --ip <ip> flashwebapp
  37. # 配置ssh-key,免密登录
  38. ./build.sh --ip <ip> ssh_copy_id
  39. ```
  40. 测试指令
  41. ```json
  42. {
  43. "channel":"can0",
  44. "protocol":"iflytopCanProtocolStackV1",
  45. "message": {
  46. "attribute": "normal",
  47. "priority": 4,
  48. "type": "read",
  49. "targetId": 129,
  50. "sourceId": 1,
  51. "seq": 0,
  52. "regAdd": 0,
  53. "regValue": 100
  54. }
  55. }
  56. ```