Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UART0 connection failed #147

Open
hgdly opened this issue Feb 29, 2024 · 7 comments
Open

UART0 connection failed #147

hgdly opened this issue Feb 29, 2024 · 7 comments

Comments

@hgdly
Copy link

hgdly commented Feb 29, 2024

Hi,

I've run the sample code provided and on execution I get this error:

[0.005][core]-[Info]-[DjiCore_Init:101) Payload SDK Version : V3.8.0-beta.0-build.1929 
[2.198][adapter]-[Info]-[DjiAccessAdapter_Init:212) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error. 
[4.426][adapter]-[Info]-[DjiAccessAdapter_Init:212) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error.

I don't understand what the LINUX_UART_DEV1 and LINUX_UART_DEV2 configurations mean. Could you explain them to me and tell me how to find them?

Thanks in advance,
Hugo

@dji-dev
Copy link
Contributor

dji-dev commented Mar 1, 2024

Agent comment from Leon in Zendesk ticket #101744:

Dear Developer,

Hello, thank you for contacting DJI.

May I ask which model are you using? If it is an M300 model, you need to configure DEV1 and DEV2. For other models, you do not need to pay attention to DEV2.
The reason why M300 needs to be configured with DEV2 is because the serial port channel of M300 not only uses Uart, but also uses some channels in the USB link as the serial port function, so it needs to be configured with two serial ports.

Thank you for your support of DJI products.

Best Regards,
DJI Dajiang innovation SDK technical support

°°°

@hgdly
Copy link
Author

hgdly commented Mar 1, 2024

Agent comment from Leon in Zendesk ticket #101744:Dear Developer,

Hello, thank you for contacting DJI.

May I ask which model are you using? If it is an M300 model, you need to configure DEV1 and DEV2. For other models, you do not need to pay attention to DEV2. The reason why M300 needs to be configured with DEV2 is because the serial port channel of M300 not only uses Uart, but also uses some channels in the USB link as the serial port function, so it needs to be configured with two serial ports.

Thank you for your support of DJI products.

Best Regards, DJI Dajiang innovation SDK technical support

°°°

I'm using M350 model.

@hgdly
Copy link
Author

hgdly commented Mar 25, 2024

I still haven't managed to solve my problem, so I'm sending another message. Thanks for your reply !

@koikonomou
Copy link

I have the same problem with M350 model ! Did you manage to solve it ?

@hgdly
Copy link
Author

hgdly commented Mar 29, 2024

I have the same problem with M350 model ! Did you manage to solve it ?

No, not yet

@koikonomou
Copy link

Found a solution to the serial connection problem.
The issue was with the Dupont lines.
This resolved the issue for me.

  1. Replace old Dupont lines with new ones.
    
  2. Ensure connections are correct: Developer Kit TX to Serial Module RX, Developer Kit RX to Serial Module TX, and both GNDs connected.
    

Hope it helps!

@hgdly
Copy link
Author

hgdly commented Apr 2, 2024

Hi, I don't understand exactly what you've done. How did you find out what to put in the LINUX_UART_DEV1 value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants