PSDK3.3.0初始化不成功,串口报错

Completed

Comments

5 comments

  • DJI Developer Support
    日志看起来是获取另一个负载相机信息出错,PSDK 3.x和PSDK 2.x这部分初始化有点差异。这个问题是不是飞机上电给负载设备上电启动是出现的问题?若是,可以稍微延时启动PSDK core看是否能缓解问题。若依旧大概率出现异常,建议导出无人机的整机日志,以及无人机固件版本,并描述一下复现步骤。我们将进一步评估确认。 ![](https://djisdksupport.zendesk.com/attachments/token/ulUsIwr1zR31I50CAXdk5Ylft/?name=image.png)
    0
    Comment actions Permalink
  • YUAN

    延时启动没缓解,而且关键在于,每次启动不一定都是获取另一个负载相机出错,比如:

    [0.014][core]-[Info]-[DjiCore_Init:95) Payload SDK Version : V3.3.0-beta.0-build.1665
    [0.580][adapter]-[Info]-[DjiAccessAdapter_Init:171) Identify aircraft series is Matrice 300 Series
    [0.580][adapter]-[Info]-[DjiAccessAdapter_Init:189) Identify mount position type is Payload Port Type
    [0.595][adapter]-[Info]-[DjiPayloadNegotiate_Start:200) Waiting payload negotiate finished.
    [1.600][adapter]-[Info]-[DjiPayloadNegotiate_Start:200) Waiting payload negotiate finished.
    [2.656][adapter]-[Info]-[DjiPayloadNegotiate_Start:200) Waiting payload negotiate finished.
    [3.660][adapter]-[Info]-[DjiPayloadNegotiate_Start:200) Waiting payload negotiate finished.
    [4.670][adapter]-[Info]-[DjiPayloadNegotiate_Start:200) Waiting payload negotiate finished.
    [5.680][adapter]-[Info]-[DjiPayloadNegotiate_Start:200) Waiting payload negotiate finished.
    [6.690][adapter]-[Info]-[DjiPayloadNegotiate_Start:200) Waiting payload negotiate finished.
    [9.605][core]-[Info]-[DjiIdentityVerify_UpdatePolicy:411) Updating dji sdk policy file...
    [10.610][core]-[Info]-[DjiIdentityVerify_UpdatePolicy:414) Update dji sdk policy file successfully
    [12.420][linker]-[Warn]-[DjiCommand_SendAsyncHandle:860) Command async send retry: index = 0, retryTimes = 3, cmdSet = 0, cmdId = 81
    [12.630][linker]-[Warn]-[DjiCommand_SendAsyncHandle:860) Command async send retry: index = 0, retryTimes = 2, cmdSet = 0, cmdId = 81
    [12.840][linker]-[Warn]-[DjiCommand_SendAsyncHandle:860) Command async send retry: index = 0, retryTimes = 1, cmdSet = 0, cmdId = 81
    [13.050][linker]-[Error]-[DjiCommand_SendAsyncHandle:872) Command async send error 0
    [13.050][linker]-[Error]-[DjiCommand_SendSync:475) sendSync callback timeout
    [13.051][infor]-[Error]-[DjiAircraftInfo_GetAdapterSerialNumber:659) Can't get the serial num of Skyport V2 or X-Port. Probably because DJI Adapter not finish init or hardware error. Please contact DJI for help.
    [13.770][linker]-[Warn]-[DjiCommand_SendAsyncHandle:860) Command async send retry: index = 0, retryTimes = 3, cmdSet = 0, cmdId = 81
    [13.900][infor]-[Info]-[DjiAircraftInfo_GetAdapterSerialNumber:646) Get serial number of Skyport V2 or X-Port is 34DDJB9001BG1S
    [13.912][core]-[Info]-[DjiCore_Init:163) Identify AircraftType = Matrice 300 RTK, MountPosition = Payload Port NO1, SdkAdapterType = X-Port
    [14.120][linker]-[Warn]-[DjiCommand_SendAsyncHandle:860) Command async send retry: index = 1, retryTimes = 3, cmdSet = 5, cmdId = 11
    [14.330][linker]-[Warn]-[DjiCommand_SendAsyncHandle:860) Command async send retry: index = 1, retryTimes = 2, cmdSet = 5, cmdId = 11
    [14.540][linker]-[Warn]-[DjiCommand_SendAsyncHandle:860) Command async send retry: index = 1, retryTimes = 1, cmdSet = 5, cmdId = 11
    [14.750][linker]-[Error]-[DjiCommand_SendSync:475) sendSync callback timeout
    [14.750][collaboration]-[Error]-[DjiPayloadCollaboration_SubscribeOtherCameraSystemStateOnM300:651) subscribe other camera system state error: 0x000000E1.
    [14.750][collaboration]-[Error]-[DjiPayloadCollaboration_Init:159) subscribe other camera system state error: 0x000000E1.
    [14.750][core]-[Error]-[DjiCore_Init:194) Execution timeout. Suggestion : Please contact DJI for help.
    [14.750][core]-[Error]-[DjiCore_Init:195) Payload collaboration init error
    [14.750][user]-[Error]-[dji_init:117) Core init error
    [14.920][linker]-[Error]-[DjiCommand_SendAsyncHandle:872) Command async send error 0
    [14.920][infor]-[Warn]-[DjiAircraftInfo_CheckPingStatusAsyncCallback:229) connect status async timeout
    [34.920][linker]-[Error]-[DjiCommand_SendAsyncHandle:872) Command async send error 0
    [34.920][infor]-[Warn]-[DjiAircraftInfo_CheckPingStatusAsyncCallback:229) connect status async timeout

    还有可能是获取挂载信息出错,甚至获取Xport信息出错。

    并且还有一个现象就是dji assistant2 上来看,Payload SDK 负载连接状态,是一直在未连接和已连接之间反复变化。初步估计此原因导致初始化时获取信息超时,并且后续使用也用不了。

    两秒后又

    一直循环。

    换过xport,换过板子(PSDK2.x版本都没问题)。在重启飞机,或不重启飞机直接重启程序的情况下都会出现。

     

    无人机日志已导出,无人机版本

    0
    Comment actions Permalink
  • DJI Developer Support
    看起来还是初始化启动的问题,麻烦将飞机日志和完整的PSDK运行日志通过邮箱发送至dev@dji.com吧,如果日志太大,会另通过邮箱另建网盘上传日志。
    0
    Comment actions Permalink
  • Hao Tang

    同问题,请问是否有解决?

    0
    Comment actions Permalink
  • 馒头弟

    同问题,请问是否有解决?

    0
    Comment actions Permalink

Please sign in to leave a comment.