-
Notifications
You must be signed in to change notification settings - Fork 195
Description
Hello,
I currently have a ticket with DJI support for this issue, but I figured I would post here to see if anyone in the community has a solution.
I am using a third-party sensor that communicates via serial. I have connected to the manifold 3 via a USB-to-TTL adapter. I know I have access to ttlUSB*, as when I have compiled and ran my program while connected to the manifold via VNC or SSH, things work. Once I have packaged my app as a .dpk file and installed it on the manifold, I get the standard error "Permission Denied" when trying to access the serial port.
Checking the user group on the manifold, the dji user, which is the only user that can be used for testing while connected via VNC/SSH, has access to the dialout group which controls serial port access. The appUser that is created when the .dpk is installed is not added to the dialout group. However, the appUser is by default added to the 'video' group.
With the ticket that I have opened, DJI suggested adding the appUser to the dialout group via the "sudo usermod -aG dialout appUser" command. However, this command fails as the dji user is not in the sudoers file. DJI also suggested modifying the build_dpk.sh script to add the user to the dialout group when the app is installed. I added the following lines to the script:
This also failed to add the user.
Has anyone else encountered this issue?