Skip to content

Commit 837d871

Browse files
authored
Add steps for estalishing a serial connection (#45)
1 parent 4df06bc commit 837d871

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

snap/snapcraft.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff 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
75104
grade: stable
76105
confinement: strict

0 commit comments

Comments
 (0)