You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using modbus tk to simulate a slave on a raspberry pi with the following code:
`import modbus_tk
import modbus_tk.defines as cst
from modbus_tk import modbus_rtu
import serial
import time
PORT = "/dev/ttyUSB0"
def main():
"""main"""
#Create the server
server = modbus_rtu.RtuServer(serial.Serial(PORT,baudrate=9600,bytesize=8,parity='N', stopbits=1))
t = 32
if name == "main":
main()
Use modbus poll at the PC to simulate the master reading and writing to the slave registers.
However, the quality of communications has been poor, with a ratio of successful communications to communications timeouts of about 2 to 1.
Please point out my problem or include it in the next version of the upgrade!
The text was updated successfully, but these errors were encountered:
I am using modbus tk to simulate a slave on a raspberry pi with the following code:
`import modbus_tk
import modbus_tk.defines as cst
from modbus_tk import modbus_rtu
import serial
import time
PORT = "/dev/ttyUSB0"
def main():
"""main"""
#Create the server
server = modbus_rtu.RtuServer(serial.Serial(PORT,baudrate=9600,bytesize=8,parity='N', stopbits=1))
t = 32
if name == "main":
main()
Use modbus poll at the PC to simulate the master reading and writing to the slave registers.
However, the quality of communications has been poor, with a ratio of successful communications to communications timeouts of about 2 to 1.
Please point out my problem or include it in the next version of the upgrade!
The text was updated successfully, but these errors were encountered: