Hi, thank you for your reply.
I went through the process to enable hotplug support.
Before I enabled hotplug support it looked like this in my /val/log/syslog
Jul 31 15:04:51 OptiPlex-9020 kernel: [199647.867119] usb 3-8: USB disconnect, device number 12
Jul 31 15:04:51 OptiPlex-9020 kernel: [199647.867549] mxuport ttyUSB0: MOXA UPort converter now disconnected from ttyUSB0
Jul 31 15:04:51 OptiPlex-9020 kernel: [199647.867732] mxuport ttyUSB1: MOXA UPort converter now disconnected from ttyUSB1
Jul 31 15:04:51 OptiPlex-9020 kernel: [199647.867776] mxuport 3-8:1.0: device disconnected
Jul 31 15:04:58 OptiPlex-9020 kernel: [199654.751203] usb 3-8: new high-speed USB device number 13 using xhci_hcd
Jul 31 15:04:58 OptiPlex-9020 kernel: [199654.880049] usb 3-8: New USB device found, idVendor=110a, idProduct=1250
Jul 31 15:04:58 OptiPlex-9020 kernel: [199654.880052] usb 3-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 31 15:04:58 OptiPlex-9020 kernel: [199654.880053] usb 3-8: Product: MOXA UPort 1250
Jul 31 15:04:58 OptiPlex-9020 kernel: [199654.880054] usb 3-8: Manufacturer: MOXA Technologies
Jul 31 15:04:58 OptiPlex-9020 kernel: [199654.880215] usb 3-8: ep 0x83 - rounding interval to 8 microframes, ep desc says 10 microframes
Jul 31 15:05:01 OptiPlex-9020 kernel: [199658.003469] mxuport 3-8:1.0: Using device firmware version v1.4.1
Jul 31 15:05:01 OptiPlex-9020 kernel: [199658.003495] mxuport 3-8:1.0: MOXA UPort converter detected
Jul 31 15:05:01 OptiPlex-9020 kernel: [199658.004122] usb 3-8: MOXA UPort converter now attached to ttyUSB0
Jul 31 15:05:01 OptiPlex-9020 kernel: [199658.004500] usb 3-8: MOXA UPort converter now attached to ttyUSB1
Jul 31 15:05:01 OptiPlex-9020 mtp-probe: checking bus 3, device 13: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-8"
Jul 31 15:05:01 OptiPlex-9020 mtp-probe: bus: 3, device: 13 was not an MTP device
Jul 31 15:05:01 OptiPlex-9020 snapd[1172]: hotplug.go:193: hotplug device add event ignored, enable experimental.hotplug
Jul 31 15:05:01 OptiPlex-9020 snapd[1172]: hotplug.go:193: hotplug device add event ignored, enable experimental.hotplug
the text snapd[1172]: hotplug.go:193: hotplug device add event ignored, enable experimental.hotplug
was present in the log.
After enabling the hotplug support, the text was not in the log anymore, so something happened there.
When executing the command snap connections bms2
with the usb device connected the result is
Interface Plug Slot Notes
home bms2:home :home -
network bms2:network :network -
opengl bms2:opengl :opengl -
pulseaudio bms2:pulseaudio :pulseaudio -
raw-usb bms2:raw-usb - -
serial-port bms2:serial-port - -
x11 bms2:x11 :x11 -
I thought the raw-usb or the serial-port plug would have been connected to something?
Here is a extract of the yaml file
apps:
bms2:
command: bin/start_bms.sh
plugs: [opengl, network, serial-port, x11, home, raw-usb, pulseaudio]
environment:
LD_LIBRARY_PATH: $SNAP/opt/Qt/5.12.2/gcc_64/lib:$SNAP/usr/local/lib/x86_64-linux-gnu/malt:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$SNAP/snap/bms/x45/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0:$LD_LIBRARY_PATH
QT_PLUGIN_PATH: $QT_PLUGIN_PATH:$SNAP/opt/Qt/5.12.2/gcc_64/plugins
QML2_IMPORT_PATH: $QML2_IMPORT_PATH:$SNAP/opt/Qt/5.12.2/gcc_64/qml
XDG_RUNTIME_DIR: /run/user/1000
LIBGL_DRIVERS_PATH: $SNAP/usr/lib/x86_64-linux-gnu/dri
parts:
bms2:
plugin: dump
source: .
stage-packages: [libfreetype6, libpng16-16, mesa-utils, libgl1-mesa-dri, libgl1-mesa-glx, libfontconfig1, fonts-freefont-ttf, ttf-ubuntu-font-family, libxrender1, libxkbcommon-x11-0, libxkbcommon0, libxcb-xfixes0, libpq5, libpulse0, libpulse-mainloop-glib0, libasound2]
override-build: |
snapcraftctl build
chmod +x $SNAPCRAFT_PART_INSTALL/bin/start_bms.sh
Is there something missing in the yaml file perhaps?
I do have the serial-port
plug in the apps:
section.
Do I need something for the port connection the parts:
section?