Author Topic: Elk M1 System Trouble Status  (Read 3977 times)

peadard

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Mseries
Elk M1 System Trouble Status
« on: June 24, 2014, 07:32:10 pm »
Hi guys.

Does anybody know a way to get the Elk M1 System Trouble Status in Elve.

I want to do this to see issues such as Output Expander trouble and Telephone fault Trouble.

I thought I could use the send raw command to get it but cannot figure it out.

Thanks in advance.
P





iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: Elk M1 System Trouble Status
« Reply #1 on: June 25, 2014, 10:56:25 am »
I haven't looked myself so see what the driver supports in this regard, but you can definitely use the raw 'SS' command for it. There was a bug with sending raw command that was fixed with v2.1b, so try again with the new beta and see if it works.
I always wanted to be somebody. In retrospect, I think I should have been more specific.

peadard

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Mseries
Re: Elk M1 System Trouble Status
« Reply #2 on: June 25, 2014, 05:44:56 pm »
Thanks I'm just a little confused by how to get a/ interpret a response after sending the raw command.
The format to send is:    elkm1.SendRawCommand( _Command_, _CommandData_ )
The command to send is 06ss0054.
Any advice on how to combine these and get a response?
Thanks guys.



iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: Elk M1 System Trouble Status
« Reply #3 on: June 26, 2014, 08:02:29 am »
It looks like the raw command still isn't working correctly even in this new version. In the meanwhile you can use the generic network driver. Here my generic driver is called network:
Code: [Select]
network.SendLine("06ss0054");
Results:
Elk M1 Driver processing: 28SS00000000000000000000000000000000000030

However this maybe pointless as I am not readily seeing a way to capture that incoming port data despite it outputting to the log. I would mess around with the http driver so you could retrieve the results and processes from there.
I always wanted to be somebody. In retrospect, I think I should have been more specific.

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Elk M1 System Trouble Status
« Reply #4 on: June 26, 2014, 12:32:49 pm »
I'll take a look tonight.
John Hughes
Codecore Technologies

peadard

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Mseries
Re: Elk M1 System Trouble Status
« Reply #5 on: June 26, 2014, 03:23:07 pm »
Cool.
I have tried the Network driver and I can also output the data to the log but am also stumped on how to retrieve and use this data.
I'm presuming I need something like:

Code: [Select]
if   (response.recieved = 28SS00000000000000000000000000000000000030)

      {
         emailsender.SendEmail( _Recipients_, _Subject_, _Body_ )
      }


However I do not see a way of getting response.recieved.
Thanks for your help guys.



John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Elk M1 System Trouble Status
« Reply #6 on: June 26, 2014, 05:48:31 pm »
Just taking a quick look at this... to send the full command "06ss0054", use the following:

Code: [Select]
elkm1.SendRawCommand( "ss", "0054" );
You do not need to prefix the data length of 06 since the driver will do that for you.
John Hughes
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Elk M1 System Trouble Status
« Reply #7 on: June 26, 2014, 05:58:10 pm »
Also please note that the "SS" response is currently not handled by the driver and there is not a generic event raised when messages are received.
John Hughes
Codecore Technologies

peadard

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Mseries
Re: Elk M1 System Trouble Status
« Reply #8 on: June 26, 2014, 06:07:50 pm »
Thanks John.
I tried to send
Code: [Select]
elkm1.SendRawCommand( "ss", "0054" );
The Log showed the following output:
Elk M1 Driver sending 0c"ss"0054003A

I think it should be sending just 06ss0054.

This may not matter though if there is no way to interpret a response

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Elk M1 System Trouble Status
« Reply #9 on: June 26, 2014, 07:29:16 pm »
Ahhh, I see it now... yes there was a bug in SendRawCommand(). I've fixed it and will try to get a new release out this weekend.
John Hughes
Codecore Technologies

peadard

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Mseries
Re: Elk M1 System Trouble Status
« Reply #10 on: June 26, 2014, 07:44:27 pm »
Thanks John.
I will log a feature request for ss handling in the ELK M1 driver.
In the mean time does this mean there is no way to find system status issues (rather than rules in the M1 to turn on an  certain Output on Telephone Line error etc.)?
Not a big issue but some of our M1 units are connected to fire panels and have multiple output expanders and it would be handy to see if they have any issues without having to program each panel individually.
Thanks again for your help guys.
Regards.


John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Elk M1 System Trouble Status
« Reply #11 on: June 27, 2014, 06:28:00 pm »
I posted a new version which should fix SendRawCommand. Please let me know... although I understand you won't be able to handle the response at this time.
John Hughes
Codecore Technologies

peadard

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Mseries
Re: Elk M1 System Trouble Status
« Reply #12 on: June 28, 2014, 02:13:24 am »
Thanks John. I'll try it tonight and let you know.

peadard

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Mseries
Re: Elk M1 System Trouble Status
« Reply #13 on: June 29, 2014, 03:15:47 am »
Hi John.
I tried the Send Raw command and it looks like it is working correctly.
I was able to see the expected result.
Thanks.
P.

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: Elk M1 System Trouble Status
« Reply #14 on: June 29, 2014, 07:58:25 am »
Thanks for the update.
John Hughes
Codecore Technologies