Auto-connection request for `arduino-mhall` serial-port

Thanks for taking a look at this. I’ll also respond here to your questions about the other two requests 1 2.

The snaps are arduino, s4a and arduino-mhall119. They all need access to Arduino-compatible boards connected via USB. There are several reasons why serial-port is not sufficient for this yet. (these are the reasons why the snaps need raw-usb)

  • Hotplug support is still experimental. At the moment, using it requires users to run a bunch of commands. I’d like the Arduino IDE to just work. As popey said “Arduino developers range from expert to complete newbie with a kit as a present for their birthday. We should make it as smooth as possible.” The s4a - “Scratch for Arduino” snap targets kids directly, to help them program Arduino’s and robots without writing code.
  • When I plug in multiple arduino boards, I only get one slot: core:usb20-serial. The slot only gives access to one of the devices, it seemingly picks one device at random and gives the snap access to that one device. Other devices are not accessible.
  • This requires greedy plugs, which doesn’t seem to work with hotplug at the moment.

However, I do like the design of Hotplug support, and I’d like to tinker with it, so that’s why I’m also asking for a greedy auto-connection to the serial-port interface. This will also make it easy to switch to serial-port immediately when it leaves “experimental” and the bugs are fixed.

Let me know if you want me to open a single thread for all the requests. I didn’t do that now because some of the threads already have votes in them.