Home AMX User Forum NetLinx Studio

No data received trough rs-232 port

I've security system connected trough rs-232 to NI-3000. Device itself is constantly sending my data, but i can not receive it eider trough buffer or event.

my code:
data_event [dvSatel]{
ONLINE:{
SEND_COMMAND dvSatel,"'SET BAUD 4800,N,8,1, 485 Disable'";

wait 100{
send_command dvSatel,"'GET BAUD'";
}
}
STRING:{
send_string 0,"'Satel Text: ',data.text";

if (find_string(data.text,"$FF,$FF",1)){
send_string dvSatel,"$FF,$FF,$01,$02,$03,$04,$05,$01,$10,$FF,$AA";

ErrorSatelProtocolType++;
send_string 0,"'WARNIG: wykryto blod protokolu Satela nr: ',itoa(ErrorSatelProtocolType)";
}
}
COMMAND:{
send_string 0,"'Satel Cmd: ',data.text";
}
ONERROR:{
send_string 0,"'Satel err: ',data.text";
}
}

I've started with additional CREATE_BUFFER logic (and i would like to work in such way), but I've commented it out just to make sure that it's not source of the problem.
Also tried XON and HSON (just sending those commands on online, without any additional logic, cos I don't think I need any).
Led on controller is not blinking.
Cable and device is good because I can revive data trough my com-port on my laptop (same communication setting, but computer seem to work both with "DATA FLOW CONTROL" set to "None" and "XonXoff ?").

NO idea what I'm doing wrong, or where to start search for solution (google didn't help)

marcin

Comments

  • viningvining Posts: 4,368
    If the device only requires pins 2,3 & 5 only use those pins. Sometimes a factory cable with all 9 pins connected won't work and just because it works with your laptop doesn't mean it will work with the master when using all pins. The master's ports are configured for a multiple of wiring options so only use the pins that are needed on the AMX side. The other side isn't usuually an issue but if you have to make a cable just use the pins needed on both ends to be safe.
  • My documentation states that 2,3,5 (communication and ground) and 4,6 (device connected sensor, so called DTR DST), and those last two are needed. I'm wondering if AMX is covering those two, mostly giving signal on 6'st pin.

    Also will try disable others as advised.
  • pin 9 wasn't connected.
    cutting of wire from pin 7 and 8 didn't cane much.
    and then cutting wire from pin 1 did the thing.

    thanks for help
    wouldn't figure it out by myself.
Sign In or Register to comment.