Topic: RS-485 & Python - Help!
To all,
I’m trying to get a Rane SR3 working with a Nion using the RS-485 serial port. Both are half-duplex, and I’m also monitoring the line with a full duplex USB/RS-485 box.
Intializing the SR3 requires several writes, and it should respond after every write. Here’s a few lines of code (one pair of write/read) –
port = serial_port.create( "/dev/ttyS1", 38400, 8, "none", 1, 0 )
sBeg = '%c@1 ' % (128 + id)
port.write( sBeg + "ILK,127,N\r" )
t1 = port.read(250, 100)
message.string_set( "Opened %i" % len(t1) )
I have checked many times and places in the code, the port read never returns anything. The port monitor also shows nothing being written by the SR3. All of the writes work fine.
Is something wrong with my code such that the Nion is not releasing the port for other node(s) to write? Maybe something in the port.create parameters?
BTW, using 1.5.1.
TIA,
Greg