PSDK connection of various aircraft models

Follow

Comments

1 comment

  • Jayden Omi

    Thank you so much for sharing this post! It helped me setup a connection between my Matrices 300 RTK and a Raspberry Pi Zero W 2 for a custom attachment. 

    I did discover a weird configuration setting that needs to be adjusted on the Raspberry Pi Zero W 2 in order for the "ACM0" connection to establish correctly when connecting to the M300. I'll share the problem, and solution I discovered so others might not have to deal with it!

    In short my Pi would either hang on power up/boot, or freeze when I plugged the USB C connection from Eport development board when it was in "Device mode" (which is required for the M300). This is frustrating because occasionally the pi would be able to boot or establish connection "ACM0" connection depending on which order you powered up M300, Pi, and plugged connection in.

    I originally thought this was a power issue, however after looking at the Raspberry Pi logs, I l realized it was configuration issue with the Pi. 

    To fix the issue I change the pi to force "Host mode" for USB on boards, to do this I edited the "/boot/config.txt" file and make sure this line of code:

    dtoverlay=dwc2,dr_mode=host

    was underneath the "[all]" section so "Host mode" is forced for all connections.

    Additionally, I made sure the dwc2 module is loaded in by appending this line of code to the single line "/boot/cmdline.txt" file:

    modules-load=dwc2

    With these modifications the Pi no longer hangs on bootup, or freezes when connected to e-port board via USB C.

    Hopefully this helps someone else in the future!

    0
    Comment actions Permalink

Please sign in to leave a comment.

close