Home AMX Forum AMXForums Archive Threads AMX Hardware
Options

NI3100 Watchdog

reeco81reeco81 Junior Member
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

  • ericmedleyericmedley Senior Member - 3709 Posts
    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
  • GregGGregG Just some guy...
    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)
    }
    
  • John NagyJohn Nagy CineTouch Product Manager
    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?
  • GregGGregG Just some guy...
    I know 4.x had it - haven't tried it on the NX yet, but hopefully they still have it.
  • reeco81reeco81 Junior Member
    ericmedley wrote: »
    sounds like a plan

    Any ideas???
  • reeco81reeco81 Junior Member
    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
  • ericmedleyericmedley Senior Member - 3709 Posts
    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.
  • reeco81reeco81 Junior Member
    Ahh yes i missed that bit
    cheers

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file