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

Raspberry Pi 4 daemon install #289

Open
cedricmelancon opened this issue Nov 26, 2021 · 1 comment
Open

Raspberry Pi 4 daemon install #289

cedricmelancon opened this issue Nov 26, 2021 · 1 comment

Comments

@cedricmelancon
Copy link

Issue template

  • Hardware description: Raspberry Pi 4
  • OS: Ubuntu 20.04
  • Installation type: snap
  • Version or commit hash: snap version

Steps to reproduce the issue

I want to use microros-arduino to communicate from an OpenCR to a RaspberryPi 4. I did the snap installation and the following configuration:

sudo snap set micro-xrce-dds-agent transport=serial dev=/dev/ttyACM0
sudo snap set micro-xrce-dds-agent daemon=true
snap connect micro-xrce-dds-agent:serial-port snapd:virtualcomport

Then reboot.

Expected behavior

The agent connects properly to the usb device and receive data from the OpenCR.

Actual behavior

When coming back from the boot, if I do dmesg | grep tty, I get the following message:

audit: type=1400 audit(1637948726.589:47): apparmor="DENIED" operation="open" profile="snap.micro-xrce-dds-agent.daemon" name="/dev/ttyACM0" pid=1804 comm="MicroXRCEAgent" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0

So I'm not able to get data from the device.

Also, how can we see the log from the agent when running as daemon?

Additional information

@cedricmelancon
Copy link
Author

Got some improvements. I found how to get the logs and realized that the service was not started. Now it works, but I get no connection from the OpenCR. When I plug the OpenCR on my laptop with Linux 20.01, I get automatic communication.

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

1 participant