fix polarity of DE, osci image of working example

This commit is contained in:
2019-06-17 21:30:59 +01:00
parent f8fe6485d3
commit bf12960dc4
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
from pymodbus.client.sync import ModbusSerialClient
import RS485Ext
ser=RS485Ext.RS485Ext(port='/dev/ttyAMA0', baudrate=1200)
ser=RS485Ext.RS485Ext(port='/dev/ttyAMA0', baudrate=1200, stopbits=2)
client = ModbusSerialClient(method='rtu')
client.socket = ser