Home AMX User Forum AMXForums Archive Threads AMX Hardware
Options

NI3100 Watchdog

Hi all
im hoping to set up a watchdog from a security system to let me know if something happens to the security system,
i currently have the two systems communicating via RS232 so i can send the 3100 a string every 5mins from the security i just need to write the code for the 3100 to send me an email if the other system goes down.

Comments

  • Options
    ericmedleyericmedley Posts: 4,177
    reeco81 wrote: »
    Hi all
    im hoping to set up a watchdog from a security system to let me know if something happens to the security system,
    i currently have the two systems communicating via RS232 so i can send the 3100 a string every 5mins from the security i just need to write the code for the 3100 to send me an email if the other system goes down.

    sounds like a plan
  • Options
    GregGGregG Posts: 251
    Check out the new built in email command for the latest netlinx firmware:
    DEFINE_START
    SMTP_SERVER_CONFIG_SET(SMTP_ADDRESS,'mail.amx.com')
    SMTP_SERVER_CONFIG_SET(SMTP_PORT_NUMBER,'25')
    SMTP_SERVER_CONFIG_SET(SMTP_USERNAME,'john.doe@amx.com')
    SMTP_SERVER_CONFIG_SET(SMTP_PASSWORD,'mypassword')
    SMTP_SERVER_CONFIG_SET(SMTP_FROM,'john.doe@amx.com')
    SMTP_SERVER_CONFIG_SET(SMTP_REQUIRE_TLS,SMTP_TLS_TRUE)
    
    DEFINE_EVENT
    Timeline_Event[TL_SECURITY_REPLY_CHECK]
    {
      If(nNoReplyForALongTimeFlag)
        SMTP_SEND(0:3:0,'jane.doe@acme.com','Security Alert','The security system is offline... again!',NULL_STR)
    }
    
  • Options
    John NagyJohn Nagy Posts: 1,736
    GregG wrote: »
    Check out the new built in email command for the latest netlinx firmware:

    Which latest, V4 for NI or 1.x for NX?
  • Options
    GregGGregG Posts: 251
    I know 4.x had it - haven't tried it on the NX yet, but hopefully they still have it.
  • Options
    reeco81reeco81 Posts: 4
    ericmedley wrote: »
    sounds like a plan

    Any ideas???
  • Options
    reeco81reeco81 Posts: 4
    GregG wrote: »
    Check out the new built in email command for the latest netlinx firmware:
    DEFINE_START
    SMTP_SERVER_CONFIG_SET(SMTP_ADDRESS,'mail.amx.com')
    SMTP_SERVER_CONFIG_SET(SMTP_PORT_NUMBER,'25')
    SMTP_SERVER_CONFIG_SET(SMTP_USERNAME,'john.doe@amx.com')
    SMTP_SERVER_CONFIG_SET(SMTP_PASSWORD,'mypassword')
    SMTP_SERVER_CONFIG_SET(SMTP_FROM,'john.doe@amx.com')
    SMTP_SERVER_CONFIG_SET(SMTP_REQUIRE_TLS,SMTP_TLS_TRUE)
    
    DEFINE_EVENT
    
    
    Timeline_Event[TL_SECURITY_REPLY_CHECK]
    {
      If(nNoReplyForALongTimeFlag)
        SMTP_SEND(0:3:0,'jane.doe@acme.com','Security Alert','The security system is offline... again!',NULL_STR)
    }
    


    Thanks Greg
    I have got the email part working already from inputs changing state, its just the watchdog part im having troubles with
  • Options
    ericmedleyericmedley Posts: 4,177
    reeco81 wrote: »
    Any ideas???

    The suggestions above will do exactly what you want. That is how you can send yourself an email notice based upon whatever code you write to monitor the security system.

    I usually include this feature whenever I write security/fire/medical/access software. I pan on emailing the client, myself or both.
  • Options
    reeco81reeco81 Posts: 4
    Ahh yes i missed that bit
    cheers
Sign In or Register to comment.