用NVIDIA NX上配置M30的PSDK程序,串口可以收到数据,但USB连接不上

Completed

Comments

16 comments

  • DJI Developer Support
    M30现在的固件要先成功运行PSDK程序才能ping通。可以参考论坛帖检查一下配置,3.3和最新的版本已经支持不配置bulk成功启动RNDIS连接。 PSDK 3.3版本USB通信链路的优化(https://sdk-forum.dji.net/hc/zh-cn/articles/13296411829145) 注意hal_network.h中设置网口名对应到RNDIS网口上。
    1
    Comment actions Permalink
  • 韩姣姣

    运行PSDK报错

    [0.021][core]-[Info]-[DjiCore_Init:95) Payload SDK Version : V3.3.0-beta.0-build.1665 
    [0.087][adapter]-[Info]-[DjiAccessAdapter_Init:171) Identify aircraft series is Matrice 30 Series 
    [0.087][adapter]-[Info]-[DjiAccessAdapter_Init:189) Identify mount position type is Extension Port Type 
    [2.117][adapter]-[Info]-[DjiPayloadNegotiate_Start:185) Waiting payload negotiate finish. 
    [3.117][adapter]-[Info]-[DjiPayloadNegotiate_Start:185) Waiting payload negotiate finish. 
    [4.117][adapter]-[Info]-[DjiPayloadNegotiate_Start:185) Waiting payload negotiate finish. 
    [5.117][adapter]-[Info]-[DjiPayloadNegotiate_Start:185) Waiting payload negotiate finish. 
    [6.117][adapter]-[Info]-[DjiPayloadNegotiate_Start:185) Waiting payload negotiate finish. 
    [7.118][adapter]-[Error]-[DjiAccessAdapter_Init:293) Payload negotiate error, returnCode = 225 
    [7.118][adapter]-[Error]-[DjiAccessAdapter_Init:297) Payload negotiate info failed. Probably the usb device configuration may not be successful. Please don't register socket handler if you don't want to use the network.  
    [7.118][core]-[Error]-[DjiCore_Init:115) Access adapter init error, stat:225 
    terminate called after throwing an instance of 'std::runtime_error'
      what():  Core init error.

    0
    Comment actions Permalink
  • 韩姣姣

    你好,我确认了硬件连接,现在出现了个usb1,识别出DJIele1网卡,串口出现了ttyACM0,但是PSDK还是报错,串口工具查看ttyTHS0有数据,ttyACM0没有数据,这是为啥呢?

    0
    Comment actions Permalink
  • 韩姣姣

    usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.44.3  netmask 255.255.255.0  broadcast 192.168.44.255
            inet6 fe80::61b8:6d9:e8a7:c2ea  prefixlen 64  scopeid 0x20<link>
            ether c2:42:16:4e:5b:86  txqueuelen 1000  (以太网)
            RX packets 9  bytes 1310 (1.3 KB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 66  bytes 13784 (13.7 KB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    usb1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
            ether f6:73:5e:93:87:5f  txqueuelen 1000  (以太网)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    0
    Comment actions Permalink
  • DJI Developer Support
    机载设备USB接M30飞机,USB做device接入到飞机,飞机端USB做host。机载设备识别到ACM0端口,硬件连接不对。 注意: https://developer.dji.com/doc/payload-sdk-tutorial/cn/quick-start/device-connect.html ![](https://djisdksupport.zendesk.com/attachments/token/lmhncjPeyUX1mXBLiFw8z8C8t/?name=image.png)
    0
    Comment actions Permalink
  • 韩姣姣

    应该出现usb1吗

    0
    Comment actions Permalink
  • 韩姣姣

    现在A6拉地,没有usb1和ACM0了,ttyTHS0有数据,但运行PSDK还是报错,USB通信有问题

    0
    Comment actions Permalink
  • DJI Developer Support
    使用PSDK 3.3最新版本,按如下代码检查。如果依旧有问题,需要排查硬件连接是否有问题。 ![](https://djisdksupport.zendesk.com/attachments/token/eJnJ5vuoz5NLMiyvkjf6FIsOs/?name=image.png) 网口名改为RNDIS对应的网口(自己板子上识别到的或配置的RNDIS网口) ![](https://djisdksupport.zendesk.com/attachments/token/zq31z5me3J986DX4O2mwBCta2/?name=image.png) ![](https://djisdksupport.zendesk.com/attachments/token/dJM9n8pfaBVEZoTC86lepZ3uE/?name=image.png) 若需要配置bulk,可以参考: M30开发 + 树莓派4B配置USB device RNDIS 和 BULK
    0
    Comment actions Permalink
  • 韩姣姣

    NX连接M30,就把NX的usb0的IP自动置为192.168.44.3,这正常吗?

    0
    Comment actions Permalink
  • DJI Developer Support
    “NX的usb0的IP自动置为192.168.44.3”这个不对,运行PSDK程序后才会对指定的网口设置IP,可以进到hal_network.c回调中,debug调试一下,运行PSDK程序会触发回调来对指定的网口进行设置。 T_DjiReturnCode HalNetWork_Init(const char *ipAddr, const char *netMask, T_DjiNetworkHandle *halObj)
    0
    Comment actions Permalink
  • 韩姣姣

    我现在PSDK还在报错USB通信问题。NX识别出了个DJI ele网卡,这是否正常?

    0
    Comment actions Permalink
  • 韩姣姣

    我调试了,程序没有进入HalNetWork_Init,但是进入了HalNetWork_GetDeviceInfo,VID和PID正常。

    0
    Comment actions Permalink
  • 韩姣姣

    0
    Comment actions Permalink
  • 韩姣姣

    连接OTG口就好了。

    0
    Comment actions Permalink
  • 韩姣姣

    有没有非回调方式的读取视频流方法?

    0
    Comment actions Permalink
  • DJI Developer Support
    PSDK从飞机获取视频流后只有通过回调上抛,应用端可以从回调获取数据后自行封装处理。
    0
    Comment actions Permalink

Please sign in to leave a comment.