-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question]An error occurred when using the Modbus Service and Openyurt to connect to a real sensor! #2115
Comments
@LavenderQAQ PTAL |
@HuangYuFe Hello, could you please provide the version of EdgeX you are using? |
@LavenderQAQ The version of EdgeX I'm using is levski, and both of them have image versions 2.3.0 |
@LavenderQAQ |
@HuangYuFe Try using a privileged container. Reading and writing to a real device inside a container may require enabling privileges. apiVersion: v1
kind: Pod
metadata:
name: privileged-pod
spec:
containers:
- name: privileged-container
image: your-image
securityContext:
privileged: true |
@LavenderQAQ Yes, I also took this into account afterwards and modified the YMAL file as follows:
After rebuilding the service, the same permission error is still reported. |
What happened:
I tried to use the EdgeX project to complete the integration of real sensor devices based on the ModbusRTU protocol. I completed the deployment of EdgeX using Openyurt' Deployment deployer。
In addition, I have completed the access of real sensor devices based on ModbusTCP, which can complete the data collection.
But when I try to collect ModbusRTU device data via the USB hardware interface, I get a problem.
What you expected to happen:
I checked the deployment information of the EdgeX application according to the permission denial prompted by the log message, and I confirmed that the mount path is /dev/ttyUSB0 and I have the r/w permission.
So, it's not clear to me what the cause of the error is, here's the YAML content of my Openyurt deployer:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):1.22.4cat /etc/os-release
):Ubuntu 20.04.6 LTSuname -a
):Linux orangepi5plus 6.1.43-rockchip-rk3588others
/kind question
The text was updated successfully, but these errors were encountered: