MLGC Config

jwr
Senior Member
Senior Member
Posts: 134
Joined: Sat Oct 25, 2008 11:13 am
Contact:

MLGC Config

Postby jwr » Tue Dec 11, 2012 11:10 pm

Hey Dave,

I'm using MLGC 3.99.47 and MLServer 4. I have 4 MLGC devices, two are iTach. One of the iTach devices is a relay and one is an IR/Sensor.
I'm using the relay to simulate the push of a garage door opener button and the sensor is wired to detect when the door is open or closed (via contact switch). The relay is working correctly, but I'm having problems with the sensor notify. The logs are listed below and it's seems to me the notify is being posted on the relay iTach (device 1), not the IR/sensor iTach, but I can be sure because the output isn't clear on the devices being used. In the device config screen for MLGC it shows:

ID # Alias Model
1 TheaterGC GC-100-06
2 MainGC GC-100-12
3 GarageGCr iTachWF2CC
4 GarageGCs iTachWF2IR


12/11/2012 10:36:52 PM CMD: [DoMacro~PushDetButton]
12/11/2012 10:36:52 PM Macro: Relay~DetGarageRelay~Close
12/11/2012 10:36:52 PM CMD: [Relay~DetGarageRelay~Close]
12/11/2012 10:36:52 PM Relay: [setstate,1:1,1]
12/11/2012 10:36:52 PM Macro: Relay~DetGarageRelay~Close
12/11/2012 10:36:52 PM CMD: [Relay~DetGarageRelay~Close]
12/11/2012 10:36:52 PM Relay: [setstate,1:1,1]
12/11/2012 10:36:53 PM Macro: Delay~2
12/11/2012 10:36:53 PM CMD: [Delay~2]
12/11/2012 10:36:55 PM Macro: Relay~DetGarageRelay~Open
12/11/2012 10:36:55 PM CMD: [Relay~DetGarageRelay~Open]
12/11/2012 10:36:55 PM Relay: [setstate,1:1,0]
12/11/2012 10:36:55 PM NET TX: setstate,1:1,1
12/11/2012 10:36:55 PM NET TX: setstate,1:1,1
12/11/2012 10:36:55 PM RX:Device (1) [setstate,1:1,1]
12/11/2012 10:36:55 PM NET TX: setstate,1:1,0
12/11/2012 10:36:56 PM RX:Device (1) [setstate,1:1,1]
12/11/2012 10:36:56 PM RX:Device (1) [setstate,1:1,0]
12/11/2012 10:37:08 PM RX:Sensor (1) [sensornotify,1:1,0

The log says the relay is sent to device 1 and the notify is from device 1. Device 1 isn't either of my iTach devices, but the relay works correctly.

Is the notify being delivered correctly?
Could you put the ID# found in the Devices screen in the logs so we can tell which device is doing the action?

Thanks,
Jim

jwr
Senior Member
Senior Member
Posts: 134
Joined: Sat Oct 25, 2008 11:13 am
Contact:

Re: MLGC Config

Postby jwr » Mon Dec 17, 2012 4:43 pm

Hey Dave,

Any suggestions on this?

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

Re: MLGC Config

Postby CinemarDave » Mon Dec 17, 2012 8:45 pm

The (1) references the index to the socket it came in on. I'll add some additional info in the log to help.

jwr
Senior Member
Senior Member
Posts: 134
Joined: Sat Oct 25, 2008 11:13 am
Contact:

Re: MLGC Config

Postby jwr » Tue Jan 29, 2013 9:39 am

Hi Dave,

Is this still on the radar? I think there is an issue here with delivery of notifications, but I need trace to make sure.

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

Re: MLGC Config

Postby CinemarDave » Tue Jan 29, 2013 10:54 am

I thought I modified the plugin to show the reporting IP Address. Can you install the version I just released and run the tests. This will show the IP Address where the event is coming from then we can verify that it is being translated properly.

jwr
Senior Member
Senior Member
Posts: 134
Joined: Sat Oct 25, 2008 11:13 am
Contact:

Re: MLGC Config

Postby jwr » Tue Jan 29, 2013 1:37 pm

Hey Dave,

I installed the latest version and I'm getting errors for all devices. There are none showing up in my device list now.

1/29/2013 1:30:51 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-UUID=GlobalCache_000C1E026417><-SDKClass=Utility><-Make=GlobalCache><-Model=iTachWF2CC><-Revision=710-1010-05><-Pkg_Level=GCPK001><-Config-URL=http://192.168.75.52><-PCB_PN=025-0031-01><-Status=Ready>
]
1/29/2013 1:30:53 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-UUID=GlobalCache_000C1E026403><-SDKClass=Utility><-Make=GlobalCache><-Model=iTachWF2IR><-Revision=710-1001-05><-Pkg_Level=GCPK002><-Config-URL=http://192.168.75.53><-PCB_PN=025-0026-06><-Status=Ready>
]
1/29/2013 1:30:54 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-UUID=GC100_000C1E00B399_GlobalCache><-SDKClass=Utility><-Make=GlobalCache><-Model=GC-100-06><-Revision=1.0.0><Config-Name=GC-100><Config-URL=http://192.168.75.51>
]
1/29/2013 1:31:01 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-UUID=GlobalCache_000C1E026417><-SDKClass=Utility><-Make=GlobalCache><-Model=iTachWF2CC><-Revision=710-1010-05><-Pkg_Level=GCPK001><-Config-URL=http://192.168.75.52><-PCB_PN=025-0031-01><-Status=Ready>
]
1/29/2013 1:31:03 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-UUID=GlobalCache_000C1E026403><-SDKClass=Utility><-Make=GlobalCache><-Model=iTachWF2IR><-Revision=710-1001-05><-Pkg_Level=GCPK002><-Config-URL=http://192.168.75.53><-PCB_PN=025-0026-06><-Status=Ready>
]
1/29/2013 1:31:04 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-UUID=GC100_000C1E000000_GlobalCache><-SDKClass=Utility><-Make=GlobalCache><-Model=GC-100-12><-Revision=1.0.0><Config-Name=GC-100><Config-URL=http://192.168.75.50>
]
1/29/2013 1:31:09 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-SDKClass=Receiver><-Make=DENON><-Model=AVR-4306>
]
1/29/2013 1:31:10 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-UUID=GC100_000C1E00B399_GlobalCache><-SDKClass=Utility><-Make=GlobalCache><-Model=GC-100-06><-Revision=1.0.0><Config-Name=GC-100><Config-URL=http://192.168.75.51>
]
1/29/2013 1:31:11 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-UUID=GlobalCache_000C1E026417><-SDKClass=Utility><-Make=GlobalCache><-Model=iTachWF2CC><-Revision=710-1010-05><-Pkg_Level=GCPK001><-Config-URL=http://192.168.75.52><-PCB_PN=025-0031-01><-Status=Ready>
]
1/29/2013 1:31:13 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-UUID=GlobalCache_000C1E026403><-SDKClass=Utility><-Make=GlobalCache><-Model=iTachWF2IR><-Revision=710-1001-05><-Pkg_Level=GCPK002><-Config-URL=http://192.168.75.53><-PCB_PN=025-0026-06><-Status=Ready>
]
1/29/2013 1:31:21 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-UUID=GlobalCache_000C1E026417><-SDKClass=Utility><-Make=GlobalCache><-Model=iTachWF2CC><-Revision=710-1010-05><-Pkg_Level=GCPK001><-Config-URL=http://192.168.75.52><-PCB_PN=025-0031-01><-Status=Ready>
]
1/29/2013 1:31:23 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-UUID=GlobalCache_000C1E026403><-SDKClass=Utility><-Make=GlobalCache><-Model=iTachWF2IR><-Revision=710-1001-05><-Pkg_Level=GCPK002><-Config-URL=http://192.168.75.53><-PCB_PN=025-0026-06><-Status=Ready>
]
1/29/2013 1:31:27 PM ProcessEvent Error at line #30 - Subscript out of range [AMXB<-UUID=GC100_000C1E000000_GlobalCache><-SDKClass=Utility><-Make=GlobalCache><-Model=GC-100-12><-Revision=1.0.0><Config-Name=GC-100><Config-URL=http://192.168.75.50>
]

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

Re: MLGC Config

Postby CinemarDave » Tue Jan 29, 2013 2:03 pm

Yikes! Install the version I just released.

jwr
Senior Member
Senior Member
Posts: 134
Joined: Sat Oct 25, 2008 11:13 am
Contact:

Re: MLGC Config

Postby jwr » Tue Jan 29, 2013 2:23 pm

Same errors for all devices, moved to line 60:

Date Event
1/29/2013 2:21:53 PM ProcessEvent Error at line #60 - Subscript out of range [AMXB<-UUID=GlobalCache_000C1E026403><-SDKClass=Utility><-Make=GlobalCache><-Model=iTachWF2IR><-Revision=710-1001-05><-Pkg_Level=GCPK002><-Config-URL=http://192.168.75.53><-PCB_PN=025-0026-06><-Status=Ready>
]

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

Re: MLGC Config

Postby CinemarDave » Tue Jan 29, 2013 2:32 pm

Ok, but now it doesn't make sense. Stand by.

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

Re: MLGC Config

Postby CinemarDave » Tue Jan 29, 2013 3:19 pm

Ok, took the iTach out of the closet and hooked it up to see what was wrong. The new version now shows the IP address and doesn't throw errors. It also appears to work as designed.

jwr
Senior Member
Senior Member
Posts: 134
Joined: Sat Oct 25, 2008 11:13 am
Contact:

Re: MLGC Config

Postby jwr » Tue Jan 29, 2013 5:41 pm

Thanks Dave.

This one doesn't get errors. I'm still not seeing the expected behavior. I do see the trace line when the notification happens, but it doesn't set the ML variable and it doesn't perform the Open or Close ML command for the iTach device. There is a difference in what I see in the logs between the GC100 and the iTach. For the GC100, it sets the ML variable and performs the Open/Close ML command. Here are the lines from the log:

1/29/2013 5:18:34 PM RX:Device#3 (192.168.75.50) [statechange,4:1,1] -- When the contact is open
1/29/2013 5:19:04 PM RX:Device#3 (192.168.75.50) [statechange,4:1,0] -- When the contact is closed

For the iTach device I see these lines, the ML variable isn't set and the Open/Closed ML commands aren't executed:

1/29/2013 5:17:19 PM RX:Sensor#1 (192.168.75.53) [sensornotify,1:1,1
]
1/29/2013 5:18:11 PM RX:Sensor#1 (192.168.75.53) [sensornotify,1:1,0
]

Interesting there appears to be a carriage return and/or a line feed before the closing square bracket... Is this significant?
Also, the GC100 trace says statechange and the iTach device trace says sensornotify... Is this significant?

Both sensor modules are configured the same in the plugin...

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

Re: MLGC Config

Postby CinemarDave » Tue Jan 29, 2013 6:04 pm

StateChange is significant but the plugin handles it. Can you log all the traffic to a file and send me the entire mlgc event log?

jwr
Senior Member
Senior Member
Posts: 134
Joined: Sat Oct 25, 2008 11:13 am
Contact:

Re: MLGC Config

Postby jwr » Thu Feb 07, 2013 12:27 pm

Hi Dave,

Did you get a chance to look into the event log and database file I sent you?


Return to “Global Cache”

Who is online

Users browsing this forum: No registered users and 1 guest