Accessing serial ports via a snap on Ubuntu classic

Bug #1736929 reported by Alan Pope 🍺🐧🐱 🦄 on 2017-12-07
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Medium
Unassigned

Bug Description

This bug is to track the issue previously discussed on the forum at https://forum.snapcraft.io/t/accessing-serial-ports-via-a-snap-on-ubuntu-classic/2168 dating back to Sep 18th 2017.

"Over the weekend I started making a snap of a really old Java application for programming a universal IR remote. While I have been able to snap the application I can’t use it the snap because, as far as I can tell, I have no means to access serial ports from a snap installed on a classic system2.

As it happens I don’t have any hardware with a physical RS-232 port so I’m using a USB to serial port adapter requiring access to /dev/ttyUSB[0-9] and the raw-usb interface isn’t suitable for that either1.

While my ancient application is probably only of value to a handful of people these issues also effect the Node-RED snap, which has been in the beta channel for some months and the Node-RED team are reluctant to promote to candidate or stable because the snap is missing many essential capabilities that are provided by peripherals exposed via USB and serial ports.

Is supporting these use cases on the roadmap? If so, what is the anticipated delivery time frame?"

Kyle said "Indeed, to the length of my knowledge it’s impossible to access serial ports under confinement while on classic Ubuntu. You need to use devmode, and then as @ogra says you need a custom gadget on Ubuntu Core. Since gadgets aren’t a thing on classic, you’re stuck waiting for the hotplug interface, which is currently planned but, as I understand it, unscheduled."

Michael Vogt (mvo) on 2018-01-02
Changed in snapd:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers