OSDK设备是STM32F40x,硬件不连接M300的USB口,只连接串口,这样的连接方式对于OSDK4.1和PSD...

Completed

Comments

11 comments

  • 0
    Comment actions Permalink
  • vzz

    参考你发的教程,现在STM32F40x跑psdk300也能跑通了,实现我想要的OSDK和MSDK的双向数据传输,但是有个问题,为什么stm32接上OSDK的串口和USB口跑PSDK300不需要开启“启动API控制”和配置波特率,不接USB只接串口还需要开启“启动API控制”和配置波特率才可以用

    0
    Comment actions Permalink
  • DJI Developer Support
    配置波特率是通过串口自适应的,与USB连接应该没有关系,我这边只连接串口,波特率与飞机不一致的情况下也会重设波特率。能否提供一下完整的终端打印log。
    0
    Comment actions Permalink
  • vzz

    好的,log信息稍后提供,就是说“启动API控制”那个不勾选也是可以的吗

    0
    Comment actions Permalink
  • DJI Developer Support
    是的,不勾选应该也是可以的。
    0
    Comment actions Permalink
  • vzz

    USB Device Connected
    USB Device Reset Completed
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    [32m[0.000][core]-[Info]-[DjiCore_Init:88) Payload SDK Version : V3.0.0-beta.0-build.999 [0m
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    [32m[1.807][utils]-[Info]-[DjiSdkVersionAck_Parse:181) Identify aircraft serial number = 1ZN3J5F00SE049, Firmware = 3.4.8.93 [0m
    [32m[1.808][adapter]-[Info]-[DjiAccessAdapter_Init:148) Identify aircraft series is Matrice 300 Series [0m
    [32m[1.808][adapter]-[Info]-[DjiAccessAdapter_Init:165) Identify mount position type is Extension Port Type [0m
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    [32m[2.996][core]-[Info]-[DjiCore_Init:145) Identify AircraftType = Matrice 300 RTK, MountPosition = Extension Port, SdkAdapterType = None [0m
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    [32m[8.091][core]-[Info]-[DjiCore_ApplicationStart:199) Start dji sdk application [0m
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    USB Device Connected
    USB Device Reset Completed
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    [32m[50.619][user]-[Info]-[ReceiveDataFromMobile:229) receive data from mobile: $, len:7. [0m
    [32m[50.620][user]-[Info]-[ReceiveDataFromMobile:229) receive data from mobile: $, len:7. [0m
    [32m[50.621][user]-[Info]-[ReceiveDataFromMobile:229) receive data from mobile: $, len:7. [0m
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    [32m[51.260][user]-[Info]-[ReceiveDataFromMobile:229) receive data from mobile: $, len:7. [0m
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    [32m[51.895][user]-[Info]-[ReceiveDataFromMobile:229) receive data from mobile: $, len:7. [0m
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    [32m[52.359][user]-[Info]-[ReceiveDataFromMobile:229) receive data from mobile: $, len:7. [0m
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    [32m[52.747][user]-[Info]-[ReceiveDataFromMobile:229) receive data from mobile: $, len:7. [0m
    ERROR: Control error: Device not responding
    USB Device Connected
    [32m[53.020][user]-[Info]-[ReceiveDataFromMobile:229) receive data from mobile: $, len:7. [0m
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    [32m[53.299][user]-[Info]-[ReceiveDataFromMobile:229) receive data from mobile: $, len:7. [0m
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    [32m[53.859][user]-[Info]-[ReceiveDataFromMobile:229) receive data from mobile: $, len:7. [0m
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    [32m[54.140][user]-[Info]-[ReceiveDataFromMobile:229) receive data from mobile: $, len:7. [0m
    [32m[54.320][user]-[Info]-[ReceiveDataFromMobile:229) receive data from mobile: $, len:7. [0m
    USB Device Reset Completed
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected

    0
    Comment actions Permalink
  • vzz

    这个是开启“启动API控制”和配置波特率的log

    0
    Comment actions Permalink
  • vzz

    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    [32m[0.000][core]-[Info]-[DjiCore_Init:88) Payload SDK Version : V3.0.0-beta.0-build.999 [0m
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    [32m[2.100][adapter]-[Info]-[DjiAccessAdapter_Init:138) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    [32m[4.240][adapter]-[Info]-[DjiAccessAdapter_Init:138) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    [32m[6.352][adapter]-[Info]-[DjiAccessAdapter_Init:138) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    [32m[8.442][adapter]-[Info]-[DjiAccessAdapter_Init:138) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. [0m
    ERROR: Control error: Device not responding
    USB Device Connected
    [31m[8.694][linker]-[Error]-[DjiChannel_uartInit:61) uart init error [0m
    [31m[8.694][linker]-[Error]-[DjiLinker_Init:108) init channel handle error [0m
    [31m[8.694][adapter]-[Error]-[DjiAccessAdapter_IdentifyUart0InfoAndAircraftSeries:448) DjiLinker_Init, stat:226 [0m
    [31m[8.694][linker]-[Error]-[DjiChannel_uartInit:61) uart init error [0m
    [31m[8.694][linker]-[Error]-[DjiLinker_Init:108) init channel handle error [0m
    [31m[8.694][adapter]-[Error]-[DjiAccessAdapter_IdentifyUart0InfoAndAircraftSeries:448) DjiLinker_Init, stat:226 [0m
    [31m[8.696][linker]-[Error]-[DjiChannel_uartInit:61) uart init error [0m
    [31m[8.696][linker]-[Error]-[DjiLinker_Init:108) init channel handle error [0m
    [31m[8.696][adapter]-[Error]-[DjiAccessAdapter_IdentifyUart0InfoAndAircraftSeries:448) DjiLinker_Init, stat:226 [0m
    [31m[8.696][utils]-[Error]-[DjiMsgq_Create:59) msgqueue malloc error [0m
    [31m[8.696][linker]-[Error]-[DjiLinker_Init:90) create recv msgq error [0m
    [31m[8.696][adapter]-[Error]-[DjiAccessAdapter_IdentifyUart0InfoAndAircraftSeries:501) DjiLinker_Init, stat:226 [0m
    [31m[8.696][utils]-[Error]-[DjiMsgq_Create:59) msgqueue malloc error [0m
    [31m[8.696][linker]-[Error]-[DjiLinker_Init:90) create recv msgq error [0m
    [31m[8.698][adapter]-[Error]-[DjiAccessAdapter_IdentifyUart0InfoAndAircraftSeries:501) DjiLinker_Init, stat:226 [0m
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding
    USB Device Connected
    USB Device Reset Completed
    ERROR: Control error: Device not responding

    0
    Comment actions Permalink
  • vzz

    这个是M300关闭“启动API控制”和配置与OSDK设备不同波特率的log

    0
    Comment actions Permalink
  • DJI Developer Support
    好的,这个问题这边再进一步确认一下,您可以暂时先配置使用。
    0
    Comment actions Permalink
  • DJI Developer Support
    这个问题这边测试了一下,勾选启动API控制与USB连接应该没有直接关系,您是否是在使用中来切换勾选或取消启动API控制?DJI Assistant2界面的控件还是有用的,如果在使用中勾选和取消勾选会更改飞机的设置。飞机上电启动时默认是勾选的,此时使用SDK无需先设置,如果使用过程中更改了设置,此时飞机启动API控制对应为设置的状态值。
    0
    Comment actions Permalink

Please sign in to leave a comment.