Newbie Question - Serial Port to AMX Wiring
Krobar
Posts: 32
in AMX Hardware
Hi everyone,
I have used the 9 pin 2 way ports sucessfully in the past but have not managed to get 1 way rs232 on a bare wire port working (I'm using an NI2100 connecting to a Lumagen HDP video processor).
I think I have set the port corectly:
Line 3 (23:03:20):: Command To [5001:7:1]-[GET BAUD]
Line 4 (23:03:20):: String From [5001:7:1]-[PORT 7,9600,N,8,1]
Line 5 (23:03:41):: Command To [5001:7:1]-[GET MODE]
Line 6 (23:03:41):: String From [5001:7:1]-[PORT 7 SERIAL,CARRIER,IO LINK 0]
I wired negative to Pin 5 (Ground) and positive to Pin 2 (Receive) but the device does not respond. It works fine on a 2 way port with 9pin serial cable that came with it. With LEDs enabled, the IR port light does not flash either although I do get the notification of data being sent to the port as expected.
I have used the 9 pin 2 way ports sucessfully in the past but have not managed to get 1 way rs232 on a bare wire port working (I'm using an NI2100 connecting to a Lumagen HDP video processor).
I think I have set the port corectly:
Line 3 (23:03:20):: Command To [5001:7:1]-[GET BAUD]
Line 4 (23:03:20):: String From [5001:7:1]-[PORT 7,9600,N,8,1]
Line 5 (23:03:41):: Command To [5001:7:1]-[GET MODE]
Line 6 (23:03:41):: String From [5001:7:1]-[PORT 7 SERIAL,CARRIER,IO LINK 0]
I wired negative to Pin 5 (Ground) and positive to Pin 2 (Receive) but the device does not respond. It works fine on a 2 way port with 9pin serial cable that came with it. With LEDs enabled, the IR port light does not flash either although I do get the notification of data being sent to the port as expected.
0
Comments
SERIAL is wired infrared (i.e. Sony Control-S, Barco)
I have a completely unrelated question but I'm sure it would be easy for most people here. I'm trying to use Find_String to find a End Of File character(ASCII Code 1A), I have tried the code below but it doesnt work:
X = FIND_STRING(PREPROCONTENTS,$1A, 1)
Is it possible to use Find_String to find Line Feeds, Carriage Returns etc?
Change this:
X = FIND_STRING(PREPROCONTENTS,$1A, 1)
To this:
X = FIND_STRING(PREPROCONTENTS,"$1A", 1)
You need the double quotes to satisfy the string requirement.
I've managed my first RS232 control loop (It copies each command in turn from a variable that cloned the buffer and then runs conditionals on it to see what to do)