获取飞机版本失败,怎么解决

Completed

Comments

15 comments

  • DJI Developer Support
    尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 请问下使用的是什么链路?建议检查下链路是否是通畅的。 另外飞机的固件是否为最新的也可以确认下,先更新到最新的固件版本。 感谢您对大疆产品的支持!祝您一切顺利! Best Regards, DJI 大疆创新SDK技术支持
    0
    Comment actions Permalink
  • hjz

    网口加串口,串口用的是原生串口

    0
    Comment actions Permalink
  • DJI Developer Support
    尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 方便上传下完整的PSDK日志吗?同时可以在DjiPayloadCamera_GetVideoStreamRemoteAddress函数中加入打印,打印ip,然后用新终端ping一下看有没有通。 感谢您对大疆产品的支持!祝您一切顺利! Best Regards, DJI 大疆创新SDK技术支持
    0
    Comment actions Permalink
  • hjz

    [30.300][user]-[Info]-[DjiTest_CameraEmuBaseStartService:1555) Get video stream remote address: 192.168.110.1, port: 23003

    ping飞机ping不通

    0
    Comment actions Permalink
  • hjz

    psdk运行的时候设置eth1网卡ip如下图:

    eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.120.2  netmask 255.255.0.0  broadcast 192.168.255.255
            ether 00:e0:4c:36:00:24  txqueuelen 1000  (Ethernet)
            RX packets 553  bytes 54136 (54.1 KB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 107352  bytes 156379913 (156.3 MB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    0
    Comment actions Permalink
  • DJI Developer Support
    尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 请问下使用的是什么机型,麻烦提供下PSDK完整的日志。 感谢您对大疆产品的支持!祝您一切顺利! Best Regards, DJI 大疆创新SDK技术支持
    0
    Comment actions Permalink
  • hjz

    [0.011][core]-[Info]-[DjiCore_Init:101) Payload SDK Version : V3.6.0-beta.0-build.1883 
    [0.415][adapter]-[Info]-[DjiAccessAdapter_Init:220) Identify aircraft series is Matrice 300 Series 
    [0.415][adapter]-[Info]-[DjiAccessAdapter_Init:240) Identify mount position type is Payload Port Type 
    [0.427][adapter]-[Info]-[DjiAccessAdapter_Init:340) Identity uart0 baudrate is 460800 bps 
    [0.431][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [1.431][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [2.476][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [3.476][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [4.476][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [5.477][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [6.477][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [7.477][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [8.478][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [9.478][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [10.479][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [11.479][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [12.480][adapter]-[Info]-[DjiPayloadNegotiate_Init:218) Waiting payload negotiate finished. 
    [15.299][core]-[Info]-[DjiIdentityVerify_UpdatePolicy:470) Updating dji sdk policy file... 
    [16.299][core]-[Info]-[DjiIdentityVerify_UpdatePolicy:473) Update dji sdk policy file successfully 
    [17.322][infor]-[Info]-[DjiAircraftInfo_GetAdapterSerialNumber:750) Get serial number of Skyport V2 or X-Port is 39CDKA50010069 
    [17.326][core]-[Info]-[DjiCore_Init:169) Identify AircraftType = Matrice 300 RTK, MountPosition = Payload Port NO1, SdkAdapterType = Skyport V2 
    [17.563][time_sync]-[Info]-[DjiTimeSync_PushAppTimeHandle:111) Current time: 2023.12.13 16:10:27. 
    time1 is 193, time2 is 237, time3 is 182, distance far!
    [18.867][linker]-[Warn]-[DjiCommand_SendAsyncHandle:894) Command async send retry: index = 0, retryTimes = 3, cmdSet = 0, cmdId = 79 
    [19.868][linker]-[Warn]-[DjiCommand_SendAsyncHandle:894) Command async send retry: index = 0, retryTimes = 2, cmdSet = 0, cmdId = 79 
    [20.869][linker]-[Warn]-[DjiCommand_SendAsyncHandle:894) Command async send retry: index = 0, retryTimes = 1, cmdSet = 0, cmdId = 79 
    [21.870][linker]-[Error]-[DjiCommand_SendAsyncHandle:906) Command async send error 0 
    [21.870][linker]-[Error]-[DjiCommand_SendSync:489) sendSync callback timeout 
    [21.870][infor]-[Error]-[DjiAircraftInfo_GetAircraftVersion:433) Get aircraft version failed, errno: 0x000000E1. 
    [21.870][infor]-[Error]-[DjiAircraftInfo_GetAircraftVersion:434) Execution timeout. Suggestion : Please contact DJI for help. 
    [21.870][user]-[Error]-[main:145) get aircraft version info error 
    [31.404][user]-[Info]-[DjiTest_CameraEmuBaseStartService:1560) Get video stream remote address: 192.168.110.1, port: 23003 

    0
    Comment actions Permalink
  • DJI Developer Support
    尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 等到DjiCore_ApplicationStart();跑完再调用试试。 感谢您对大疆产品的支持!祝您一切顺利! Best Regards, DJI 大疆创新SDK技术支持
    0
    Comment actions Permalink
  • hjz

    [30.422][linker]-[Error]-[DjiCommand_SendAsyncHandle:906) Command async send error 0 
    [30.422][linker]-[Error]-[DjiCommand_SendSync:489) sendSync callback timeout 
    [30.422][infor]-[Error]-[DjiAircraftInfo_GetAircraftVersion:433) Get aircraft version failed, errno: 0x000000E1. 
    [30.422][infor]-[Error]-[DjiAircraftInfo_GetAircraftVersion:434) Execution timeout. Suggestion : Please contact DJI for help. 
    [30.422][user]-[Error]-[main:330) get aircraft version info error 

    0
    Comment actions Permalink
  • hjz

    放后面也是报错

    0
    Comment actions Permalink
  • DJI Developer Support
    尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 > RTK, MountPosition = Payload Port NO1, SdkAdapterType = Skyport V2 不好意思,之前忽略了一点,您是在Payload口跑的,获取飞机版本需要在OSDK/E-Port端口运行PSDK才行。 这个在sample中也有判断条件的。 感谢您对大疆产品的支持!祝您一切顺利! Best Regards, DJI 大疆创新SDK技术支持
    0
    Comment actions Permalink
  • hjz

    获取飞机版本信息在psdk/skyport或者xport这端运行的时候注释掉会有影响吗

    0
    Comment actions Permalink
  • DJI Developer Support
    尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 请问是指注释sample中的判断条件吗?这个注释其实没有用的,因为源码里面还是会判断是Extension Port还是Payload Port。 感谢您对大疆产品的支持!祝您一切顺利! Best Regards, DJI 大疆创新SDK技术支持
    0
    Comment actions Permalink
  • hjz

    注释掉获取飞机版本信息的函数

    0
    Comment actions Permalink
  • DJI Developer Support
    尊敬的开发者, 您好,感谢您联系DJI 大疆创新。 这个是不影响的,另外您在Payload Port运行的psdk,默认来说是不会跑这个函数的。 感谢您对大疆产品的支持!祝您一切顺利! Best Regards, DJI 大疆创新SDK技术支持
    0
    Comment actions Permalink

Please sign in to leave a comment.