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: 6244
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: 6244
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 5 anonymous users online.
Recent Posts
Get Latched -vs- Get Real Time I/O
by Guy Lavoie
Yesterday at 06:18 PM
New Ocelot driver for Elve!
by Deane Johnson
09/07/10 07:13 AM
How to Send an X10 Command ... propertly
by John Hughes
09/06/10 08:21 PM
To send an IR command
by John Hughes
09/05/10 08:28 PM
C-Max & OS X compatibility
by bvnoldguy
09/03/10 08:24 PM
Shout Box

Newest Members
Madon, jsdds, Dave W, stevenotts, wesmo
2633 Registered Users
Forum Stats
2633 Members
19 Forums
3727 Topics
22065 Posts

Max Online: 58 @ 12/05/07 03:33 PM
September
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 30