Advanced Sensing error
Hi! I have Matrice 210 V2 and connected it to Raspberry Pi 4 Raspbian 10. I wanted to compile my program and run it without Advance Sensing. Unfortunately it always searching for USB connection when creating a vehicle...
This is an error information:
Read App ID
User Configuration read successfully.
[536494.157]STATUS/1 @ getDroneVersion, L1702: ret = 0
[536494.157]STATUS/1 @ parseDroneVersionInfo, L1122: Device Serial No. = 1DADGBV001XXX
[536494.157]STATUS/1 @ parseDroneVersionInfo, L1124: Firmware = 3.4.3.42
[536494.157]STATUS/1 @ functionalSetUp, L279: Shake hand with drone successfully by getting drone version.
[536494.157]STATUS/1 @ legacyX5SEnableTask, L56: Legacy X5S Enable task created.
[536495.157]STATUS/1 @ sendHeartbeatToFCTask, L1576: OSDK send heart beat to fc task created.
[536495.357]STATUS/1 @ Control, L40: The control class is going to be deprecated.It will be better to use the FlightController class instead!
[536495.358]STATUS/1 @ FileMgrImpl, L253: register download file callback handler successfully.
[536495.359]STATUS/1 @ PSDKModule, L98: MOP only support M300, so mop client will not be initialized here.
[536495.359]STATUS/1 @ PSDKModule, L98: MOP only support M300, so mop client will not be initialized here.
[536495.359]STATUS/1 @ PSDKModule, L98: MOP only support M300, so mop client will not be initialized here.
[536495.359]STATUS/1 @ initDJIHms, L900: DJI HMS is not supported on this platform!
[536495.377]STATUS/1 @ getDroneVersion, L1702: ret = 0
[536495.377]STATUS/1 @ parseDroneVersionInfo, L1122: Device Serial No. = 1DADGBV001005A
[536495.377]STATUS/1 @ parseDroneVersionInfo, L1124: Firmware = 3.4.3.42
[536495.378]STATUS/1 @ AdvancedSensing, L145: Advanced Sensing init for the M210 drone
[536495.378]STATUS/1 @ init, L49: Looking for USB device...
[536495.401]STATUS/1 @ init, L65: Found 6 USB devices, identifying DJI device...
[536495.401]ERRORLOG/1 @ init, L89: Did not find any DJI USB device, please double-check your connection.
[536495.401]ERRORLOG/1 @ init, L91: Some helpful commands are 'lsusb' and 'dmesg'.
[536495.407]STATUS/1 @ LiveViewImpl, L89: Finding if liveview stream is available now.
[536495.907]STATUS/1 @ init, L254: Start advanced sensing initalization
[536495.907]STATUS/1 @ activate, L1329: version 0x304032A
[536495.907]STATUS/1 @ adv_pthread, L46: [536495.907]STATUS/1 @ adv_pthread, L48: adv pthread running !!!!!!!!!!!!!!!!!!!!!!!
I don't know why, on the same system the telemetry example runs properly (without advanced sensing). Init Vehicle is also shorter than in my programm (don't know why):
Read App ID
User Configuration read successfully.
[536390.763]ERRORLOG/1 @ initVehicle, L228: Failed to initialize ACM Linker channel!
[536390.773]STATUS/1 @ getDroneVersion, L1702: ret = 0
[536390.773]STATUS/1 @ parseDroneVersionInfo, L1122: Device Serial No. = 1DADGBV0010XXX
[536390.773]STATUS/1 @ parseDroneVersionInfo, L1124: Firmware = 3.4.3.42
[536390.773]STATUS/1 @ functionalSetUp, L279: Shake hand with drone successfully by getting drone version.
[536390.774]STATUS/1 @ legacyX5SEnableTask, L56: Legacy X5S Enable task created.
[536391.774]STATUS/1 @ sendHeartbeatToFCTask, L1576: OSDK send heart beat to fc task created.
[536391.974]STATUS/1 @ Control, L40: The control class is going to be deprecated.It will be better to use the FlightController class instead!
[536391.974]STATUS/1 @ FileMgrImpl, L253: register download file callback handler successfully.
[536391.975]STATUS/1 @ PSDKModule, L98: MOP only support M300, so mop client will not be initialized here.
[536391.975]STATUS/1 @ PSDKModule, L98: MOP only support M300, so mop client will not be initialized here.
[536391.975]STATUS/1 @ PSDKModule, L98: MOP only support M300, so mop client will not be initialized here.
[536391.975]STATUS/1 @ initDJIHms, L900: DJI HMS is not supported on this platform!
[536391.975]STATUS/1 @ init, L247: USB is not plugged or initialized successfully. Advacned-Sensing will not run.
[536391.975]STATUS/1 @ activate, L1329: version 0x304032A
[536391.995]STATUS/1 @ activate, L1367: Activation successful
My code in c++:
bool enableAdvancedSensing = false;
LinuxSetup linuxEnvironment(argc, argv, enableAdvancedSensing);
Vehicle* vehicle = linuxEnvironment.getVehicle(); // pobranie danych o podłączonym dronie DJI
if (vehicle == NULL){
std::cout << "Vehicle not initialized, exiting.\n";
return -1;
}
What should I do to switch off Advanced-Sensing like in telemetry sample.
Agent comment from kyle.cai in Zendesk ticket #68018:
Please compare the UserConfig.txt of the two samples. The log shows that one has an ACM device configured, and one initial ACM device failed.

image.png
image.png
°°°