执行dji_sdk_demo_linux报错:protocol frame crc16 error
已完成[30.844][linker]-[Warn]-[DjiProtocol_v1Unpack:186) protocol frame crc16 error, exp:0x4797 cur:0x041E
报错日志如下[37m[300.764][linker]-[Debug]-[DjiCommand_DealCmd:769) callback function (cmdset: 0x00 cmdid: 0x00) deal time: 0 ms [0m
[37m[300.774][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0400->0x0100 0x0405 [0m
[37m[300.774][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x0405 len:45 [0m
[37m[300.774][user]-[Debug]-[ReceiveXPortAttitudeInformation:345) receive XPort attitude information: [0m
[37m[300.774][user]-[Debug]-[ReceiveXPortAttitudeInformation:346) XPort attitude: pitch -2, roll 2, yaw -567. [0m
[37m[300.775][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0400 0xEE02 [0m
[37m[300.778][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0400->0x0507 0x0342 [0m
[37m[300.778][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x0342 len:56 [0m
[37m[300.782][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0306->0x0507 0x03C1 [0m
[37m[300.783][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x03C1 len:25 [0m
[37m[300.785][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0300->0x0100 0x036C [0m
[37m[300.785][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x036C len:71 [0m
[37m[300.788][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0800->0x0100 0x0901 [0m
[37m[300.788][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x0901 len:68 [0m
[37m[300.798][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0400->0x0507 0x0342 [0m
[37m[300.799][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x0342 len:56 [0m
[37m[300.802][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0306->0x0507 0x03C1 [0m
[37m[300.803][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x03C1 len:25 [0m
[37m[300.818][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0400->0x0507 0x0342 [0m
[37m[300.819][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x0342 len:56 [0m
[37m[300.822][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0306->0x0507 0x03C1 [0m
[37m[300.823][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x03C1 len:25 [0m
[37m[300.823][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0A01->0x1300 0x3C45 [0m
[37m[300.824][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x3C45 len:0 [0m
[37m[300.824][linker]-[Debug]-[DjiCommand_DealCmd:855) received unsupport request cmd that need ack, cmdset: 0x3C cmdid: 0x45 [0m
[37m[300.839][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0400->0x0507 0x0342 [0m
[37m[300.840][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x0342 len:56 [0m
[37m[300.842][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0306->0x0507 0x03C1 [0m
[37m[300.843][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x03C1 len:25 [0m
[37m[300.843][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x1107->0x0100 0x0A5A [0m
[37m[300.844][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x0A5A len:17 [0m
[37m[300.858][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0400->0x0507 0x0342 [0m
[37m[300.858][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x0342 len:56 [0m
[37m[300.862][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0306->0x0507 0x03C1 [0m
[37m[300.863][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x03C1 len:25 [0m
[37m[300.873][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0400->0x0100 0x0405 [0m
[37m[300.874][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x0405 len:45 [0m
[37m[300.874][user]-[Debug]-[ReceiveXPortAttitudeInformation:345) receive XPort attitude information: [0m
[37m[300.874][user]-[Debug]-[ReceiveXPortAttitudeInformation:346) XPort attitude: pitch -2, roll 2, yaw -567. [0m
[37m[300.878][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0400->0x0507 0x0342 [0m
[37m[300.878][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x0342 len:56 [0m
[37m[300.882][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0306->0x0507 0x03C1 [0m
[37m[300.882][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x03C1 len:25 [0m
[37m[300.884][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0300->0x0100 0x036C [0m
[37m[300.885][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x036C len:71 [0m
[37m[300.885][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0400 0xEE02 [0m
[37m[300.889][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0800->0x0100 0x0901 [0m
[37m[300.889][linker]-[Debug]-[DjiCommand_RecvWork:994) Receive msg from linker, id:0x0901 len:68 [0m
-
在samples/sample_c/platform/linux/nvidia_jetson/application/dji_sdk_config.h中只定义了数据传输功能如下:
#define CONFIG_MODULE_SAMPLE_DATA_TRANSMISSION_ON
执行可执行文件./dji_sdk_demo_linux还是报错:
[640.060][linker]-[Warn]-[DjiProtocol_v1Unpack:186) protocol frame crc16 error, exp:0xE6F4 cur:0xE801
具体运行信息如下:
[0.044][core]-[Info]-[DjiCore_Init:101) Payload SDK Version : V3.6.0-beta.0-build.1897
[0.443][adapter]-[Info]-[DjiAccessAdapter_Init:220) Identify aircraft series is Matrice 300 Series
[0.444][adapter]-[Info]-[DjiAccessAdapter_Init:240) Identify mount position type is Payload Port Type
[0.454][adapter]-[Info]-[DjiAccessAdapter_Init:340) Identity uart0 baudrate is 460800 bps
[0.458][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished.
[1.528][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished.
[2.528][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished.
[3.528][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished.
[4.528][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished.
[5.528][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished.
[6.528][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished.
[7.529][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished.
[8.529][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished.
[9.529][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished.
[10.529][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished.
[11.529][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished.
[14.448][core]-[Info]-[DjiIdentityVerify_UpdatePolicy:470) Updating dji sdk policy file...
[15.448][core]-[Info]-[DjiIdentityVerify_UpdatePolicy:473) Update dji sdk policy file successfully
[16.473][infor]-[Info]-[DjiAircraftInfo_GetAdapterSerialNumber:751) Get serial number of Skyport V2 or X-Port is 34DDKC20011RPJ
[16.482][core]-[Info]-[DjiCore_Init:169) Identify AircraftType = Matrice 300 RTK, MountPosition = Payload Port NO1, SdkAdapterType = X-Port
[25.553][core]-[Info]-[DjiCore_ApplicationStart:239) Start dji sdk application
[640.060][linker]-[Warn]-[DjiProtocol_v1Unpack:186) protocol frame crc16 error, exp:0xE6F4 cur:0xE801
请先登录再写评论。
评论
5 条评论