FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
07-10-2023 01:49 PM
Dear ctrlX Community!
We tried to access ttyACM0 device by Python script, but we ran into the following error:
audit: type=1400 audit(1688986787.001:132): apparmor="DENIED" operation="open" profile="snap.rexroth-ide.ide" name="/dev/ttyACM0" pid=6499 comm="python3" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0
Could You recommend a solution to this issue?
Thanks in advance!
07-11-2023 08:29 AM
Hi @8run0tti
Just to avoid some confusion: Are you using your self created python snap? Or do you use our python runtime and IDE-App?
In case you are using a self created snap then you have to use the serial-port interface in your snap.
In case you are using our IDE-App: connecting to a serial port is currently not possible from this app. I can forward this request to the develop team.
Best regards,
Nick
07-11-2023 09:07 AM
Hi Nick!
Thanks for the answer!
We use the Python runtime with IDE app. We need to provide some data ftom ttyACM device to PLC app whit this simple Python script, because the PLC app can only handle ttyUSB devices. The pyserial extension is currently available in the runtime, the only issue is with access rights.
If the development team could fix this issue, it would be great!
07-11-2023 01:37 PM
I forwarded your request to the development team. I will let you know, when I got news for you on this topic.
08-29-2023 04:35 PM
You are right, we need the right interface. We push again the question to the devs 🙂