Access to ttyUSB* from snap (Ubuntu Core)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








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?







share|improve this question




















  • 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











  • That's all the tty applications that are available at this time to snap.
    – Terrance
    Apr 23 at 20:27














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?







share|improve this question




















  • 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











  • That's all the tty applications that are available at this time to snap.
    – Terrance
    Apr 23 at 20:27












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?







share|improve this question












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?









share|improve this question











share|improve this question




share|improve this question










asked Apr 23 at 18:19









wmmhihaa

162




162











  • 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











  • That's all the tty 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










  • ``` 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















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










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.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    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






























    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.






    share|improve this answer
























      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.






      share|improve this answer






















        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.






        share|improve this answer












        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 26 at 13:23









        jalim

        195




        195



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            Which professions warranted travel in Medieval times?

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Trouble downloading packages list due to a “Hash sum mismatch” error