Home AMX User Forum AMX General Discussion
Options

tell where is the problem please!!

hello!!

i have a NI4000 controler...


i controled until now 6 devices and worked fine...

now i want to add a device to the 7 port and does not seem to work!!

if i change between the port put the device on port 6 inted port 7...

all the devices work and the device on the 6 port does not...it like it does not send commands more then 6 port and the contorler does want to only 6 port it does not matter to him the order....

the device is another mtrx of kramer, i have allredy have one that work on port 2 ,
i have tried to put the cable that work on port 2 and kramer work fine from port 2 but stop working on port 7 ,it does seem to be the strings ....

i think i missing something like enable 7 port ,or send commands to 7 ports, and i am seending the configuration at the start of the code to each port with the right name!!


it a problem i have never come a crross please can u give some leeds ,if u had
understand the problem?

Comments

  • Options
    yuriyuri Posts: 861
    a: check the baudrate of port 7
    b: check if the TX LED blinks when you send something
    c: check if the RX LED blinks when you send something
    d: your port could be broke

    :)
  • Options
    ericmedleyericmedley Posts: 4,177
    Also,

    You have to set the baud rate somewhere in the program. make sure that you do not put the baud rate set command(s) in the DEFINE_START section. Put it in a DATA_EVENT instead.

    So for example

    DEFINE_DEVICE

    dv_SERIAL_PORT_7 = 5001:07:0

    DEFINE_EVENT

    DATA_EVENT[dv_SERIAL_PORT_7]
    {
    ONLINE:
    {
    SEND_COMMAND dv_SERIAL_PORT_7, 'SET BAUD 19200,N,8,1 485 DISABLE'
    }
    }
  • Options
    galayegalaye Posts: 28
    well the led only tx led!! and i did set the boudrate

    i set it the same all the others

    is there any diffrence between the ports

    it is a strange problem when i change ports the one i replace the cable from stops working and the new start working...

    i will try with a clean soft!!

    this soft is origenly works on axcent 3 and i chnged it according to the note on amx.com to netlinx!!

    thanks

    any more ideas
  • Options
    galayegalaye Posts: 28
    it suppose to be in the event not on the start!!

    i understand ,it suppose to be on the event nor on the define_start!!!

    right

    this i didnt know...

    so i suppose to all ports define them by define event!!
  • Options
    DHawthorneDHawthorne Posts: 4,584
    DEFINE_START in a NetLinx application, happens before the devices come on line. So the command has no effect. That's why you need to initialize devices in the ONLINE event.In NetLinx, DEFINE_START is only good for initializing variables, or setting up buffers and level connections.
  • Options
    galayegalaye Posts: 28
    thanks....now i need to do this to all devices!!

    so how the other devices work....does he has some old config that he remember from older soft ...\\
  • Options
    I think that baud rates etc are persistent, so that you can get lucky and have a port's settings correct even though your software didn't do it.
  • Options
    galayegalaye Posts: 28
    i understand!!!

    thanks alot....

    i will try it and tell u , i will also try to control the device by ip,

    now i looking to for a web base tps....so can control the devices from my laptop.

    the idea is to put on the ie an ip addres and the same gui as the tps has comes up....

    still looking thanks for all your help!
  • Options
    galayegalaye Posts: 28
    o.k....i have tried....

    and this is what was the problem...

    i didnt know that the port setting is being done on the event...

    thanks
Sign In or Register to comment.