Hi, You need to use:
plugs: [serial-port] In your snapcraft.yaml; then you also have to connect your snap to that interface manually as it's not autoconnected; check "snap interfaces" to see which plugs and slots are connected. Cheers, - Loïc Minier On Wed, Sep 7, 2016 at 4:00 PM, Jenny Murphy <[email protected]> wrote: > Hi, > I solved the previous issue regarding the use of the RXTX java library > and the application is loading and running without errors. > However my java code isn't detecting the port, it should be able to see > /dev/ttyUSB0. > > In the dmesg log I see the following errors : > > [101043.875139] usb 1-2: new full-speed USB device number 7 using xhci_hcd > [101044.006418] usb 1-2: New USB device found, idVendor=10c4, > idProduct=ea60 > [101044.006441] usb 1-2: New USB device strings: Mfr=1, Product=2, > SerialNumber=3 > [101044.006456] usb 1-2: Product: CP2102 USB to UART Bridge Controller > [101044.006470] usb 1-2: Manufacturer: Silicon Labs > [101044.006482] usb 1-2: SerialNumber: 0001 > [101044.011589] cp210x 1-2:1.0: cp210x converter detected > [101044.012037] usb 1-2: cp210x converter now attached to ttyUSB0 > > [101098.191960] audit_printk_skb: 258 callbacks suppressed > > [101098.191979] audit: type=1400 audit(1473254849.416:69078): > apparmor="DENIED" operation="open" > profile="gateway.sideload_main_IdNRFcRcGPGe" > name="/dev/ttyUSB0" pid=4875 comm="java" requested_mask="wr" > denied_mask="wr" fsuid=0 ouid=0 > > > Is there anyway to solve this. I am working on a Ubuntu 15.04 platform. > > Thanks again. > > -- > *Jenny Murphy* > *EpiSensor, Georges Quay House, Georges Quay, Limerick, Ireland* > [email protected] <[email protected]> t | +353 (0) 61 > 512 511 w | http://www.episensor.com > > -- > Snapcraft mailing list > [email protected] > Modify settings or unsubscribe at: https://lists.ubuntu.com/ > mailman/listinfo/snapcraft > > -- - Loïc
-- Snapcraft mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
