File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,35 @@ description: |
7171
7272 $ snap set micro-ros-agent device="device path"
7373
74+ When using the snap with a serial device, some steps need to be taken
75+ in order to establish a successful connection:
76+
77+ * Refresh your local installation of the snap `core` package:
78+
79+ $ sudo snap refresh core --edge
80+
81+ * Enable the hotplug feature and restart the `snapd` daemon:
82+
83+ $ sudo snap set core experimental.hotplug=true
84+ $ sudo systemctl restart snapd
85+
86+ * After plugging the microcontroller to the serial port, execute
87+ the `snap interface serial-port` command. You should see something
88+ like this:
89+
90+ name: serial-port
91+ summary: allows accessing a specific serial port
92+ plugs:
93+ - micro-ros-agent
94+ slots:
95+ - snapd:cp2102cp2109uartbrid (allows accessing a specific serial port)
96+
97+ * Connect your snap image to the desired serial port (replace accordingly):
98+
99+ $ snap connect micro-ros-agent:serial-port snapd:cp2102cp2109uartbrid
100+
101+ After this, you can execute your snap as usual,
102+ using `sudo micro-ros-agent serial -d <serial-dev>`.
74103
75104grade : stable
76105confinement : strict
You can’t perform that action at this time.
0 commit comments