TIP: Sending an MLServeCmd from the Elk to MLServer

User avatar
mcascio
Founder
Founder
Posts: 8270
Joined: Tue Jan 28, 2003 4:03 pm
Location: Kenosha, Wi
Contact:

TIP: Sending an MLServeCmd from the Elk to MLServer

Postby mcascio » Wed Mar 01, 2006 8:48 pm

Open the ElkRP Software (not the Elk plugin) and add some items to the Texts section.
Such as:
MLServeCmd.SetVariable|lightstatus~on^M
MLServeCmd.SetVariable|lightstatus~off^M

The ^M should be put at the end of each MLServeCmd to send a carriage return.

Then go into the Rules section of the ELKRP software and set up some rules.
IE:
WHENEVER outbound(Zn 15)BECOMES NOT SECURE
THEN SEND THE FOLLOWING TEXT: "MLServeCmd.SetVariable|lightstatus~on^M" THROUGH PORT 0
Mario Cascio
Cinemar, Inc.
http://www.cinemaronline.com

User avatar
Cameras007
Member
Member
Posts: 64
Joined: Wed Jul 23, 2003 12:15 am
Location: Ohio
Contact:

Postby Cameras007 » Wed Mar 01, 2006 11:55 pm

Mario-

I am now able to switch ML scenes when an input changes from the ELK M1.
However I had to REMOVE the ^M in order for ML to switch scenes.
It has a note in the ELK RP Software that says "Recieved Text Must End In A Carriage Return", not text that is being sent out. Thank you for your help tonight David P. and Mario, It's nearly 12:00am I have burning ML-EYES and have to get to some sleep!
:shock:
"I do not fear computers, I fear the lack of them." ISAAC ASIMOV

majeds
Newbie
Newbie
Posts: 10
Joined: Fri Oct 27, 2006 8:41 am
Contact:

Postby majeds » Sun Jun 15, 2008 5:43 am

Is this valid only if the MLServer is connected to ELK through serial port ?

I have my ELK connected to my network using the Ethernet module and I tried the command with no success.

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Postby CinemarDave » Sun Jun 15, 2008 11:17 am

Should work either way. Post the Elk event log showing the commands being sent.

majeds
Newbie
Newbie
Posts: 10
Joined: Fri Oct 27, 2006 8:41 am
Contact:

Postby majeds » Sun Jun 15, 2008 12:33 pm

Your confirmation encourage me to re-test and I found myself leaving the ELKRP connected to the security main unit. I disconnected ELKRP and now everything is working as expected.

BTW, that's amazing me on how the command is catched by MLServer without specifying the MLServer IP. Good job and thanks for your prompt response.


Return to “Elk Products”

Who is online

Users browsing this forum: No registered users and 1 guest