Connection problem #1160
-
Hi everyone, I'm trying to combine OpenCV and pymodbus in my project. This will be the detection of objects with a camera connected to the HMI panel. At first, I wanted to set up the connection properly, but I have a problem with that. In my case, the raspberry PI is the server and the laptop (later HMI) is the client. I was able to establish communication between devices with Modbus Client Simulator on laptop and Modbus Server Simulator on RPI, but when I try to run my simple code on RPI the connection is not working. Python version: 3.9.2 `from pymodbus.server import StartTcpServer logging.basicConfig() def run_server(): if name == "main": What I receive in terminal is: I tried to use examples from the site, they also don't work. Is there something wrong with my code or should I look elsewhere for the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I am not sure how I can help you, I have a couple of RPI4 working 24/7 with v3.0.0 as server and client. You need to do a couple of things:
|
Beta Was this translation helpful? Give feedback.
I am not sure how I can help you, I have a couple of RPI4 working 24/7 with v3.0.0 as server and client.
You need to do a couple of things:
Without these informations it is impossible to help you more.