ADICON Support Forum Applied Digital, Inc.
Page 1 of 1 1
Topic Options
#21589 - 01/19/10 01:15 PM Secu16/Ocelot sends asynch message when inputs change?
beelzerob Offline
newbie


Registered: 07/28/08
Posts: 9
For quite a while now, I've had issues where all of the sudden, my polling of the Ocelot goes crazy...like the bytes were all offset. I had to put in code to wipe the slate clean and try again. It seemed like, with no warning, I'd suddenly get an extra 7 or 8 bytes of data. But nothing in the protocol doc mentions this, so I just wrote it off as annoying.

I've now come to believe that the bytes are being sent asynchronously from the Ocelot whenever one of the inputs on the Secu16i changes. If so, this would be VASTLY superior to my polling. However, again, my protocol doc (same as available on the website) doesn't mention anything about asynch messages coming across.

Soo...is the ocelot/secu16/secu16i setup to send asynch messages when an input changes? And if so, what is the format of that message? I know I could puzzle it out if I wanted to, but that's a hassle when there should be a document for this, as it's obviously an intended feature.

Top
#21590 - 01/19/10 02:05 PM Re: Secu16/Ocelot sends asynch message when inputs change? [Re: beelzerob]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6401
Loc: Montreal, QC, Canada
Looks like you're getting input change notification messages. The controller parameters 15 to 18 control whether notification messages are sent for things like X10 received, i/o status changes, etc. Look at the very end of the downaloadable Ocelot manual to see the parameters and their effect. In your case it looks like at least parameter 16 is set to 1. Either set it (and any of the other three) to 0 to poll for status yourself, or use the notification messages themselves for what you want to monitor.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#21603 - 01/30/10 04:50 AM Re: Secu16/Ocelot sends asynch message when inputs change? [Re: Guy Lavoie]
beelzerob Offline
newbie


Registered: 07/28/08
Posts: 9
Thanks much for the reply, Guy. For some reason I couldn't get my ocelot to talk to the cmax software (kept timing out), but I'll just live happy with the knowledge its sending notification messages.

However, I still can't find a format guide for how to parse those incoming notification messages. Where would I find that?

Top
#21604 - 01/30/10 10:51 AM Re: Secu16/Ocelot sends asynch message when inputs change? [Re: beelzerob]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6401
Loc: Montreal, QC, Canada
From what I can tell (I don't have the exact spec), you get 4 bytes as an input change notification. It apprears to be (in hex)F0, module #, input #, status

where status = 1 if input went ON and 0 if it went OFF.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
Page 1 of 1 1


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
0 registered and 26 anonymous users online.
Recent Posts
how to post an icon
by manu
02/03/12 03:40 AM
Command Pair
by kuro
02/01/12 12:49 AM
Does anyone have a copy of the latest TSE?
by sevenzenith1
01/30/12 05:17 AM
Have HAL2000 do the work or the Ocelot?
by khem
01/28/12 02:49 PM
Ocelot + Powermid = Fail
by Guy Lavoie
01/27/12 03:37 PM
Shout Box

Newest Members
dfgg, manu, kuro, sevenzenith1, chuck214
2748 Registered Users
Forum Stats
2747 Members
19 Forums
3835 Topics
22711 Posts

Max Online: 67 @ 08/16/11 03:08 PM
February
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29