PSDK V3.4 在 M300 OSDK模式下重启容易失败
使用配置如下:PSDK V3.4 , M300, 通过串口和ACM连接,等效于以前的OSDK
log如下,在不重启板载电脑的情况下,重启PSDK程序,3次中就会有一次 Try identify UART0,并最终 Core init error. 225。
- 请问是什么问题导致的?
- 能够自定义 Try identify UART0超时时间?
- 以前的OSDK就十分稳定,随便重启OSDK程序都不会初始化不过。请问这里是什么原因?
Dbg [17:57:18.282]: [32m[0.019][user]-[Info]-[DjiUser_ApplicationStart:251) DjiUser_FillInUserInfo. [0m
Dbg [17:57:18.282]: [32m[0.019][user]-[Info]-[DjiUser_ApplicationStart:258) DjiCore_Init. [0m
Dbg [17:57:18.282]: [32m[0.020][core]-[Info]-[DjiCore_Init:96) Payload SDK Version : V3.4.0-beta.0-build.1749 [0m
Dbg [17:57:20.476]: [31m[2.217][linker]-[Error]-[DjiProtocol_sdkUnpack:237) protocol frame crc32 error [0m
Dbg [17:57:20.578]: [32m[2.319][adapter]-[Info]-[DjiAccessAdapter_Init:164) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
Dbg [17:57:22.888]: [32m[4.628][adapter]-[Info]-[DjiAccessAdapter_Init:164) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
Dbg [17:57:25.231]: [32m[6.972][adapter]-[Info]-[DjiAccessAdapter_Init:164) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
Dbg [17:57:25.927]: [33m[7.668][linker]-[Warn]-[DjiProtocol_v1Unpack:171) protocol frame crc8 error [0m
Dbg [17:57:27.618]: [32m[9.358][adapter]-[Info]-[DjiAccessAdapter_Init:164) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
Dbg [17:57:29.527]: [31m[11.268][linker]-[Error]-[DjiProtocol_sdkUnpack:228) protocol frame crc16 error:0xEF12 0xEC35 [0m
Dbg [17:57:30.003]: [32m[11.744][adapter]-[Info]-[DjiAccessAdapter_Init:164) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
Dbg [17:57:32.372]: [32m[14.113][adapter]-[Info]-[DjiAccessAdapter_Init:164) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
Dbg [17:57:34.265]: [31m[16.006][linker]-[Error]-[DjiProtocol_sdkUnpack:228) protocol frame crc16 error:0x3201 0xE2BA [0m
Dbg [17:57:34.772]: [32m[16.513][adapter]-[Info]-[DjiAccessAdapter_Init:164) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
Dbg [17:57:37.244]: [32m[18.984][adapter]-[Info]-[DjiAccessAdapter_Init:164) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
Dbg [17:57:39.626]: [32m[21.367][adapter]-[Info]-[DjiAccessAdapter_Init:164) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
Dbg [17:57:39.627]: [31m[21.367][adapter]-[Error]-[DjiAccessAdapter_Init:169) Try identify UART0 connection timeout. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
Dbg [17:57:39.627]: [31m[21.367][core]-[Error]-[DjiCore_Init:116) Access adapter init error, stat:225 [0m
Dbg [17:57:39.627]: [31m[21.367][user]-[Error]-[DjiUser_ApplicationStart:261) Core init error. 225 [0m
-
看了这里
2、新版本OSDK与无人机通信的波特率采用自适应,仅需通过上述宏定义:USER_BAUD_RATE指定波特率,无需再通过DJI Assistant2设置无人机波特率。
原来自适应指的是 代码预定义啊
Please sign in to leave a comment.
Comments
3 comments