RoboMaster / RoboRTS

An open source software stack for Real-Time Strategy research on mobile robots
Other
839 stars 349 forks source link

串口模块仍然无法与开源固件传输数据 #18

Closed Mor-harry closed 6 years ago

Mor-harry commented 6 years ago

双向测试发现,都可以正常发送数据,但是接受过程中的解码似乎出现问题,主要体现是串口助手读取车或者tx2端都有数据,但是互相解码的过程中无法正常解码,导致两边系统无法通信

Robin970822 commented 6 years ago

我们遇到相同的问题!但是rm端无法读取命令码为0x0001到0x0007的数据。(这些数据是由裁判系统产生,我们测试了裁判系统的端口,发现有这些信息发出,但不是按照手册上的通讯协议的格式,比如命令码为0x0001的数据长度为35而非手册中的25;然而我们的确发现裁判系统发出的信息部分包含通讯协议中我们所需要的信息,比如命令码为0x0001的数据中的确有当前血量的信息而没有当前最大血量的信息,命令码为0x0002的数据中的确有哪个装甲板受攻击的信息,而没有受伤害种类的信息。)

KevinLADLee commented 6 years ago

这是因为裁判系统主控在最新的固件中更新了协议,我们测试通过后会及时更新RoboRTS和RoboRTS-Firmware。 Sorry about that. The referee system protocol has been changed. We will update our code in RoboRTS and RoboRTS-Firmware in next commit.

eeluobu commented 6 years ago

The latest protocol in RoboRTS protocol has been updated, please update the latest RoboRTS-Firmware, and update the Referee-System firmware by RoboMaster Assistant