Quantcast
Channel: MultiTech Developer Resources » All Posts
Viewing all articles
Browse latest Browse all 7111

Reply To: No RS-485 communication

$
0
0

Hi Prakash,
Can you try putting the set-rs485 call inside the python script after you open the tty like this:


import minimalmodbus
import os
instrument = minimalmodbus.Instrument('/dev/ttyAP2', 1)
os.system('set-rs485 /dev/ttyAP2 1')
reading = instrument.read_register(40605, 4)

Viewing all articles
Browse latest Browse all 7111

Trending Articles