dji-sdk / Onboard-SDK

DJI Onboard SDK Official Repository
https://github.com/dji-sdk/Onboard-SDK
Other
912 stars 633 forks source link

ERRORLOG/1 @ initVehicle, L215: Failed to initialize linker channel. Vehicle not initialized #918

Open fabioCarfi95 opened 1 year ago

fabioCarfi95 commented 1 year ago

Hello everyone,

I'm trying to customize the OSDK 4.1.0. I followed all the passages explained in the run the sample page but, when I execute the point 2 of chapter ''Execute the Sample program'', it gives me the error written in the title. Thinking that I could have failed something on the changes applied, I downloaded an OSDK copy and followed the steps again without any changes but it gives me the same error.

Can someone help me?

dji-dev commented 1 year ago

Agent comment from kyle.cai in Zendesk ticket #85004:

“Failed to initialize linker channel.” It means that the UART port initialization failed. it is need to check that the UART port name configured on the OSDK side and the UART port actually used are correct.

°°°

fabioCarfi95 commented 1 year ago

I checked the UART port name and gave them all the permissions as specified in the first point of Compile Chapter in the Run the Sample page. I have executed the following command and this is the output

image

I also gave all the access using "chmod 777 /dev/ttyACM0"

Unfortunately, I continue having the same problem. What can be others operations to resolve this problem? To let you know we are using the OSDK 4.1.0 on M210 v2

dji-dev commented 1 year ago

Agent comment from kyle.cai in Zendesk ticket #85004:

This linker corresponds to the UART port of the onboard device connected to the TTL of the drone, not ttyACM0, which is usually the ACM device recognized after the dual A USB is connected to the drone. https://developer.dji.com/document/1bb1b2dc-9694-4d6b-ad43-fa69c5a10400
image.png

°°°

fabioCarfi95 commented 1 year ago

So, for using the OSDK I HAVE TO use only the UART cable instead of the dual A USB one? For what I read in other tutorial, I was pretty sure that the USB is the right one. The image linked in the previous response doesn't correspond to any image, do you mean Figure 2 of the page linked?