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.
|
2 years ago | |
---|---|---|
.project | 2 years ago | |
.vscode | 2 years ago | |
env | 2 years ago | |
src | 2 years ago | |
webapp | 2 years ago | |
zcmake@a68cdff520 | 2 years ago | |
.clang-format | 2 years ago | |
.gitignore | 2 years ago | |
.gitmodules | 2 years ago | |
CMakeLists.txt | 2 years ago | |
Linux测试指令说明.md | 2 years ago | |
README.md | 2 years ago | |
TODO.md | 2 years ago | |
boardinit.sh | 2 years ago | |
build.sh | 2 years ago | |
工程对接.md | 2 years ago |
README.md
linux_demo_project
功能:
1. 打通CAN通道
2. 打通ws通道,
2. 解析CAN消息,并上报给ws
3. 解析ws消息并发送给CAN
TOOD:
1. 机械臂扫码功能
2.
测试:
1. websocket下发一条can指令,can卡能够收到
2. can卡上报一条指令,websocket能够收到
TODO:
1. 删除掉虚拟从设备的相关功能
2. 增加扩展寄存器包上报拦截汇总功能
3. 增加httpRPC借口
4. 增加ws事件上报通道
5. 增加EEPROM
编译RK3328
# 板子初始化
./boardinit.sh \
--device_info "DEVICE_ID=a8000_1" \
--device_info "FRP_SERVER_ADDR=47.92.195.73" \
--device_info "STARTUP_DEFAULT_URL=127.0.0.1:80" \
--ip 192.168.1.164
# 初始化环境
./build.sh envsetup
# 仅编译
./build.sh build
# 编译调试版本,Cmake使用的是cmakepc.cmake
./build.sh buildhost
# 编译打包部署(整包)
./build.sh --ip <ip> flash
# 编译打包部署,重启系统(整包)
./build.sh --ip <ip> flash reboot
# 编译并只部署应用
./build.sh --ip <ip> flashapp "app.out"
# 只部署webapp
./build.sh --ip <ip> flashwebapp
# 配置ssh-key,免密登录
./build.sh --ip <ip> ssh_copy_id
测试指令
{
"channel":"can0",
"protocol":"iflytopCanProtocolStackV1",
"message": {
"attribute": "normal",
"priority": 4,
"type": "read",
"targetId": 129,
"sourceId": 1,
"seq": 0,
"regAdd": 0,
"regValue": 100
}
}