get line state

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8339
    Zeus
    Participant

    hi Mikhail
    i am trying to get the communication line state and send it to input channel,so that i can record event on change to let user know the communication line state through the web platform ant let user konw when was the time that device went Idle or Terminated. it confused me for three days,could you help me how can i make it work, thanks a lot.

    #8342
    Zeus
    Participant

    hi
    i have an idea. i will write a kpdriver to analysis the commonsvc log file and send the status to input channel. it would help me solve my problem.
    is that good ahaha

    #8345
    JW
    Participant

    Hi, I used the following work around.
    Line 1
    |–Device 1
    |–Device 2

    Added extra channels as temporary data
    InCnl 10101: Signal 1 of device 1, real, Line 1 Device 1 Stat
    InCnl 10201: Signal 1 of device 1, real, Line 1 Device 1 Stat

    add extra channel to monitor status
    InCnl 101: stat(10101), Calculated discrete, Line 1 Device 2 Stat (O means offline, 1 online)
    InCnl 102: stat(10201), Calculated discrete, Line 1 Device 2 Stat (O means offline, 1 online)
    InCnl 100: Stat(10101)+Stat(10201)==0?0:1, Calculated discrete, Line 1 Stat (O means offline, 1 online)

    then enable event on change of these 3 channels, to log event of online/offline

    ** assuming all device offline = communication line offline.

    you can miniplate formulas to have more states as you needed

    #8349
    Zeus
    Participant

    it is a good idea thanks
    but it will cost plenty to config input channel.
    i write a kpdriver to analysis the commonsvc log file and a send status to inputchannels there are four states.you can see it in project code.
    i use a master server and many slave servers in a large project. i use gate module to send data between them.
    i also write a kpdriver to monitor the tcp status between servers.
    i write an big screen project to show tcp state and line state.

    #8351
    Mikhail
    Moderator

    Hi,

    Currently, getting line and device state is not supported. You need some workaround.
    It can be a good idea for the future.

    What information do you need to extract?

    i use gate module to send data between them

    Rapid Gate was updated on December 14, 2020. Do you use the latest version?

    i write an big screen project to show tcp state and line state.

    Could you share screenshots?

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.