wqf233333 / DJI-SDK-SKILL

FAQ for Onboard SDK , Guidance SDK, Manifold
9 stars 8 forks source link

Activation Onboard SDK failure #6

Open Ebtiisam opened 4 years ago

Ebtiisam commented 4 years ago

Currently i'm using Manifold 2-C along with M210 V2 RTK, and when i try to launch :

roslaunch dji_sdk sdk.launch

i get the following error:


Since DJI assistant is not connecting, i think i will try to execute 230400, how can i activate it since i get this error

ERRORLOG/1 @ initVirtualRC, L1188: Virtual RC is not supported on this platform!

STATUS/1 @ activate, L1398: version 0x304031F

STATUS/1 @ getErrorCodeMessage, L752: activate
STATUS/1 @ getCMDSetActivationMSG, L801: NEW_DEVICE_ERROR

ERRORLOG/1 @ activate, L1424: Failed to activate please retry SET 0x0 ID 0x1 code 0x3

ERRORLOG/1 @ activate, L1431: Solutions for NEW_DEVICE_ERROR:

Double-check your app_id and app_key in UserConfig.txt. Does it match with your DJI developer account?
If this is a new device, you need to activate it through the App or DJI Assistant 2 with Internet
For different aircraft, the App and the version of DJI Assistant 2 might be different
For A3, N3, M600/Pro and M100, please use DJI GO App
For M210 V1, please use DJI GO 4 App or DJI Pilot App
For M210 V2, please use DJI Pilot App
For DJI Assistant 2, it's available on the 'Download' tab of the product page
If this device is previously activated with another app_id and app_key, you will need to re-activate it again.
A new device needs to be activated twice to fix the NEW_DEVICE_ERROR, so please try it twice.
[ERROR] [1572940707.785004134]: drone activation error
[ERROR] [1572940707.785109778]: Vehicle initialization failed
^C[dji_sdk-2] killing on exit
STATUS/1 @ getErrorCodeMessage, L752: removePackage
STATUS/1 @ getCMDSetSubscribeMSG, L835: SUBSCRIBER_ILLEGAL_DATA_LENGTH

STATUS/1 @ getErrorCodeMessage, L752: removePackage
STATUS/1 @ getCMDSetSubscribeMSG, L835: SUBSCRIBER_ILLEGAL_DATA_LENGTH

STATUS/1 @ getErrorCodeMessage, L752: removePackage
STATUS/1 @ getCMDSetSubscribeMSG, L835: SUBSCRIBER_ILLEGAL_DATA_LENGTH

STATUS/1 @ getErrorCodeMessage, L752: removePackage
STATUS/1 @ getCMDSetSubscribeMSG, L835: SUBSCRIBER_ILLEGAL_DATA_LENGTH

STATUS/1 @ getErrorCodeMessage, L752: reset
STATUS/1 @ getCMDSetSubscribeMSG, L835: SUBSCRIBER_ILLEGAL_DATA_LENGTH
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

what should i do?

Ebtiisam commented 4 years ago

actually this error that i get not the previous one.


dji@manifold2:~/Desktop/M210_ws$ roslaunch dji_sdk sdk.launch
... logging to /home/dji/.ros/log/701beedc-0f6c-11ea-bb58-74da38ebc18f/roslaunch-manifold2-22341.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://manifold2:36243/

SUMMARY
========

PARAMETERS
 * /dji_sdk/align_time: False
 * /dji_sdk/app_id: 1079440
 * /dji_sdk/app_version: 1
 * /dji_sdk/baud_rate: 921600
 * /dji_sdk/enc_key: 39d353a8e9ad01b6c...
 * /dji_sdk/serial_name: /dev/ttyUSB0
 * /dji_sdk/use_broadcast: False
 * /rosdistro: kinetic
 * /rosversion: 1.12.13

NODES
  /
    dji_sdk (dji_sdk/dji_sdk_node)

auto-starting new master
process[master]: started with pid [22352]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 701beedc-0f6c-11ea-bb58-74da38ebc18f
process[rosout-1]: started with pid [22365]
started core service [/rosout]
process[dji_sdk-2]: started with pid [22376]

STATUS/1 @ init, L56: Attempting to open device /dev/ttyUSB0 with baudrate 921600...

STATUS/1 @ init, L66: ...Serial started successfully.

STATUS/1 @ parseDroneVersionInfo, L762: Device Serial No. = 1DADG7200100F1

STATUS/1 @ parseDroneVersionInfo, L764: Hardware = PM420

STATUS/1 @ parseDroneVersionInfo, L765: Firmware = 3.4.3.37

ERRORLOG/1 @ initVirtualRC, L1188: Virtual RC is not supported on this platform!

STATUS/1 @ activate, L1398: version 0x3040325

STATUS/1 @ getErrorCodeMessage, L752: activate
STATUS/1 @ getCMDSetActivationMSG, L801: NEW_DEVICE_ERROR

ERRORLOG/1 @ activate, L1424: Failed to activate please retry SET 0x0 ID 0x1 code 0x3

ERRORLOG/1 @ activate, L1431: Solutions for NEW_DEVICE_ERROR:
* Double-check your app_id and app_key in UserConfig.txt. Does it match with your DJI developer account?
* If this is a new device, you need to activate it through the App or DJI Assistant 2 with Internet
For different aircraft, the App and the version of DJI Assistant 2 might be different
For A3, N3, M600/Pro and M100, please use DJI GO App
For M210 V1, please use DJI GO 4 App or DJI Pilot App
For M210 V2, please use DJI Pilot App
For DJI Assistant 2, it's available on the 'Download' tab of the product page
* If this device is previously activated with another app_id and app_key, you will need to re-activate it again.
* A new device needs to be activated twice to fix the NEW_DEVICE_ERROR, so please try it twice.
[ERROR] [1574676902.789620174]: drone activation error
[ERROR] [1574676902.789776176]: Vehicle initialization failed
^C[dji_sdk-2] killing on exit

STATUS/1 @ getErrorCodeMessage, L752: removePackage
STATUS/1 @ getCMDSetSubscribeMSG, L835: SUBSCRIBER_ILLEGAL_DATA_LENGTH

STATUS/1 @ getErrorCodeMessage, L752: removePackage
STATUS/1 @ getCMDSetSubscribeMSG, L835: SUBSCRIBER_ILLEGAL_DATA_LENGTH

STATUS/1 @ getErrorCodeMessage, L752: removePackage
STATUS/1 @ getCMDSetSubscribeMSG, L835: SUBSCRIBER_ILLEGAL_DATA_LENGTH

STATUS/1 @ getErrorCodeMessage, L752: removePackage
STATUS/1 @ getCMDSetSubscribeMSG, L835: SUBSCRIBER_ILLEGAL_DATA_LENGTH

STATUS/1 @ getErrorCodeMessage, L752: reset
STATUS/1 @ getCMDSetSubscribeMSG, L835: SUBSCRIBER_ILLEGAL_DATA_LENGTH
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done