Access to ttyUSB* from snap (Ubuntu Core)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
Our app is running as a snap on a device and needs serial-port access to the ttyUSB device.
Running a snap list shows we have a number of snaps (none of which I think has a USB Slot)bash
$ snap list
Name Version Rev Tracking Developer Notes
alsa-utils 1.1.2-5 68 stable canonical -
bluez 5.44-3 129 stable canonical -
caracalla 16.04-1.35 49 stable canonical gadget
caracalla-kernel 4.4.0-119.143-1 81 stable canonical kernel
ccm-wda 3.00.0.39132 14 - dell-inc -
classic 16.04 19 edge canonical devmode
core 16-2.32.3 4407 stable canonical core
dcc 3.2.1.283 3 - dell-inc -
dcm 9.2.1.52 7 - dell-inc -
microservicebus-node 1.14 19 beta wmmihaa -
modem-manager 1.6.12-2 131 stable canonical -
network-manager 1.2.2-15 263 stable canonical -
ntpcontrol 0.1 13 edge ogra -
snappy-debug 0.31.7-snapd2.28.5 219 stable canonical -
snapweb 0.26-11 319 stable canonical -
test 1 x1 - - devmode
tpm2 1.0-5 42 stable canonical -
udisks2 2.6.4-2 100 stable canonical -
uefi-fw-tools 1.5.2-0.7.2+git 10 stable canonical -
ufw 0.36pre-16.10 14 stable canonical -
wifi-ap 18 208 stable canonical -
wpa-supplicant 2.4.3 41 stable canonical -
Is there a USB gadget snap out there?
usb snap ubuntu-core serial-port
add a comment |Â
up vote
2
down vote
favorite
Our app is running as a snap on a device and needs serial-port access to the ttyUSB device.
Running a snap list shows we have a number of snaps (none of which I think has a USB Slot)bash
$ snap list
Name Version Rev Tracking Developer Notes
alsa-utils 1.1.2-5 68 stable canonical -
bluez 5.44-3 129 stable canonical -
caracalla 16.04-1.35 49 stable canonical gadget
caracalla-kernel 4.4.0-119.143-1 81 stable canonical kernel
ccm-wda 3.00.0.39132 14 - dell-inc -
classic 16.04 19 edge canonical devmode
core 16-2.32.3 4407 stable canonical core
dcc 3.2.1.283 3 - dell-inc -
dcm 9.2.1.52 7 - dell-inc -
microservicebus-node 1.14 19 beta wmmihaa -
modem-manager 1.6.12-2 131 stable canonical -
network-manager 1.2.2-15 263 stable canonical -
ntpcontrol 0.1 13 edge ogra -
snappy-debug 0.31.7-snapd2.28.5 219 stable canonical -
snapweb 0.26-11 319 stable canonical -
test 1 x1 - - devmode
tpm2 1.0-5 42 stable canonical -
udisks2 2.6.4-2 100 stable canonical -
uefi-fw-tools 1.5.2-0.7.2+git 10 stable canonical -
ufw 0.36pre-16.10 14 stable canonical -
wifi-ap 18 208 stable canonical -
wpa-supplicant 2.4.3 41 stable canonical -
Is there a USB gadget snap out there?
usb snap ubuntu-core serial-port
Try runningsnap find tty
. Usinglist
shows you what is installed.
â Terrance
Apr 23 at 18:53
``` snap find tty Name Version Developer Notes Summary ttimer 0.0.1 jes - plain Timer (a tea-timer for systems w/o java) miniterm-joc 2 jocave - pySerial miniterm in a snap tio 1.30 lundmar - A simple TTY terminal I/O application linux-cl v0.1.0 rgrannell1 - change linux tty's colour scheme ```
â wmmhihaa
Apr 23 at 19:32
That's all thetty
applications that are available at this time to snap.
â Terrance
Apr 23 at 20:27
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Our app is running as a snap on a device and needs serial-port access to the ttyUSB device.
Running a snap list shows we have a number of snaps (none of which I think has a USB Slot)bash
$ snap list
Name Version Rev Tracking Developer Notes
alsa-utils 1.1.2-5 68 stable canonical -
bluez 5.44-3 129 stable canonical -
caracalla 16.04-1.35 49 stable canonical gadget
caracalla-kernel 4.4.0-119.143-1 81 stable canonical kernel
ccm-wda 3.00.0.39132 14 - dell-inc -
classic 16.04 19 edge canonical devmode
core 16-2.32.3 4407 stable canonical core
dcc 3.2.1.283 3 - dell-inc -
dcm 9.2.1.52 7 - dell-inc -
microservicebus-node 1.14 19 beta wmmihaa -
modem-manager 1.6.12-2 131 stable canonical -
network-manager 1.2.2-15 263 stable canonical -
ntpcontrol 0.1 13 edge ogra -
snappy-debug 0.31.7-snapd2.28.5 219 stable canonical -
snapweb 0.26-11 319 stable canonical -
test 1 x1 - - devmode
tpm2 1.0-5 42 stable canonical -
udisks2 2.6.4-2 100 stable canonical -
uefi-fw-tools 1.5.2-0.7.2+git 10 stable canonical -
ufw 0.36pre-16.10 14 stable canonical -
wifi-ap 18 208 stable canonical -
wpa-supplicant 2.4.3 41 stable canonical -
Is there a USB gadget snap out there?
usb snap ubuntu-core serial-port
Our app is running as a snap on a device and needs serial-port access to the ttyUSB device.
Running a snap list shows we have a number of snaps (none of which I think has a USB Slot)bash
$ snap list
Name Version Rev Tracking Developer Notes
alsa-utils 1.1.2-5 68 stable canonical -
bluez 5.44-3 129 stable canonical -
caracalla 16.04-1.35 49 stable canonical gadget
caracalla-kernel 4.4.0-119.143-1 81 stable canonical kernel
ccm-wda 3.00.0.39132 14 - dell-inc -
classic 16.04 19 edge canonical devmode
core 16-2.32.3 4407 stable canonical core
dcc 3.2.1.283 3 - dell-inc -
dcm 9.2.1.52 7 - dell-inc -
microservicebus-node 1.14 19 beta wmmihaa -
modem-manager 1.6.12-2 131 stable canonical -
network-manager 1.2.2-15 263 stable canonical -
ntpcontrol 0.1 13 edge ogra -
snappy-debug 0.31.7-snapd2.28.5 219 stable canonical -
snapweb 0.26-11 319 stable canonical -
test 1 x1 - - devmode
tpm2 1.0-5 42 stable canonical -
udisks2 2.6.4-2 100 stable canonical -
uefi-fw-tools 1.5.2-0.7.2+git 10 stable canonical -
ufw 0.36pre-16.10 14 stable canonical -
wifi-ap 18 208 stable canonical -
wpa-supplicant 2.4.3 41 stable canonical -
Is there a USB gadget snap out there?
usb snap ubuntu-core serial-port
asked Apr 23 at 18:19
wmmhihaa
162
162
Try runningsnap find tty
. Usinglist
shows you what is installed.
â Terrance
Apr 23 at 18:53
``` snap find tty Name Version Developer Notes Summary ttimer 0.0.1 jes - plain Timer (a tea-timer for systems w/o java) miniterm-joc 2 jocave - pySerial miniterm in a snap tio 1.30 lundmar - A simple TTY terminal I/O application linux-cl v0.1.0 rgrannell1 - change linux tty's colour scheme ```
â wmmhihaa
Apr 23 at 19:32
That's all thetty
applications that are available at this time to snap.
â Terrance
Apr 23 at 20:27
add a comment |Â
Try runningsnap find tty
. Usinglist
shows you what is installed.
â Terrance
Apr 23 at 18:53
``` snap find tty Name Version Developer Notes Summary ttimer 0.0.1 jes - plain Timer (a tea-timer for systems w/o java) miniterm-joc 2 jocave - pySerial miniterm in a snap tio 1.30 lundmar - A simple TTY terminal I/O application linux-cl v0.1.0 rgrannell1 - change linux tty's colour scheme ```
â wmmhihaa
Apr 23 at 19:32
That's all thetty
applications that are available at this time to snap.
â Terrance
Apr 23 at 20:27
Try running
snap find tty
. Using list
shows you what is installed.â Terrance
Apr 23 at 18:53
Try running
snap find tty
. Using list
shows you what is installed.â Terrance
Apr 23 at 18:53
``` snap find tty Name Version Developer Notes Summary ttimer 0.0.1 jes - plain Timer (a tea-timer for systems w/o java) miniterm-joc 2 jocave - pySerial miniterm in a snap tio 1.30 lundmar - A simple TTY terminal I/O application linux-cl v0.1.0 rgrannell1 - change linux tty's colour scheme ```
â wmmhihaa
Apr 23 at 19:32
``` snap find tty Name Version Developer Notes Summary ttimer 0.0.1 jes - plain Timer (a tea-timer for systems w/o java) miniterm-joc 2 jocave - pySerial miniterm in a snap tio 1.30 lundmar - A simple TTY terminal I/O application linux-cl v0.1.0 rgrannell1 - change linux tty's colour scheme ```
â wmmhihaa
Apr 23 at 19:32
That's all the
tty
applications that are available at this time to snap.â Terrance
Apr 23 at 20:27
That's all the
tty
applications that are available at this time to snap.â Terrance
Apr 23 at 20:27
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
You can gain access to devices by defining slots: try this article might be useful.
Other than that you need to install your snap using the --devmode flag.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You can gain access to devices by defining slots: try this article might be useful.
Other than that you need to install your snap using the --devmode flag.
add a comment |Â
up vote
0
down vote
You can gain access to devices by defining slots: try this article might be useful.
Other than that you need to install your snap using the --devmode flag.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You can gain access to devices by defining slots: try this article might be useful.
Other than that you need to install your snap using the --devmode flag.
You can gain access to devices by defining slots: try this article might be useful.
Other than that you need to install your snap using the --devmode flag.
answered Apr 26 at 13:23
jalim
195
195
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027546%2faccess-to-ttyusb-from-snap-ubuntu-core%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Try running
snap find tty
. Usinglist
shows you what is installed.â Terrance
Apr 23 at 18:53
``` snap find tty Name Version Developer Notes Summary ttimer 0.0.1 jes - plain Timer (a tea-timer for systems w/o java) miniterm-joc 2 jocave - pySerial miniterm in a snap tio 1.30 lundmar - A simple TTY terminal I/O application linux-cl v0.1.0 rgrannell1 - change linux tty's colour scheme ```
â wmmhihaa
Apr 23 at 19:32
That's all the
tty
applications that are available at this time to snap.â Terrance
Apr 23 at 20:27