ADICON Support Forum Applied Digital, Inc.
Page 1 of 3 123>
Topic Options
#22264 - 01/01/11 07:17 PM Ocelot programming
bmed Offline
junior


Registered: 01/01/11
Posts: 25
guys,

I just got my Ocelot. Wrote simple "if the " program, about 15 lines. It runs and turns my lamp A4 on an off repeatedly for about 20 seconds then stops. x10 light is off during all this. ocelot will me send x10 signals in "send x10" mode.

Can someone help.

Thanks,

Top
#22265 - 01/01/11 07:35 PM Re: Ocelot programming [Re: bmed]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6421
Loc: Montreal, QC, Canada
Looks like you're testing a static condition, such as "IF X-10 A/1 is ON" and output commands just keep filling the transmit buffer. Look for a single event, such as "Command Pair" (under the Status Change instruction). ex:

IF X10 A/1 Command Pair
THEN X10 B/2 Turn ON
...

read up on this kind of thing in the downloadable manual:

http://www.appdigusers.com/forums/ubbthreads.php/ubb/showflat/Number/15305#Post15305

Look at section 2, and in particular 2.5
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#22268 - 01/01/11 09:28 PM Re: Ocelot programming [Re: Guy Lavoie]
bmed Offline
junior


Registered: 01/01/11
Posts: 25
Guy,
I rolled back to firmware 3.08 instead of 3.18 and all works fine now. Interface has red LED that stays on and blinks with sending or receiving an x10 signal. The green LEd on the Ocelot stays green and blinks when sending an x19signal. I just wrote another program to control a couple of lights in living room. I'll keep you posted.

Plese let me know if anyone knows why 3.18 won't send x10 signals. Is it a programming error?

Top
#22269 - 01/02/11 10:25 AM Re: Ocelot programming [Re: bmed]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6421
Loc: Montreal, QC, Canada
I (and many others) use 3.18 and can send X10 just fine. I wonder if you have, or had, another problem? Have you tried putting back 3.18 and trying it again? Make sure you reload the same program after and test it again.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#22271 - 01/02/11 04:52 PM Re: Ocelot programming [Re: Guy Lavoie]
bmed Offline
junior


Registered: 01/01/11
Posts: 25
guy,
i tried reloading 3.18 and then the program I had written and then another smaller program but get the same results. They are below:

No X10 light of any kind.
The program runs ant turns lights on and off constaltly for 20-30 seconds and then does not work any more.
X10 monitor sohow constant activity of the x10 channels i used in program.

Nothing ever turns on or off and other RF or wired remotes erraticly work or not. I thin due to the constant activity caused by Ocelot.

If I go back to 3.08 I get a green x10 light that flickers when i send or receive a command. Timer "if-then" event in program work almost constantly but i have a noise problem that sometimes block a few commands.

3.18 just does not seem to work. Any other suggestions will be greatly appreciated.

Top
#22277 - 01/03/11 08:57 PM Re: Ocelot programming [Re: bmed]
bmed Offline
junior


Registered: 01/01/11
Posts: 25
guy,

I tried reinstalling c-max 200e5 on my laptop but keep getting "Error 1406" Cannot write value tVersionMinor to key \Products\2D******************FC6\InstallProperties.

What does this mean? If I say ignore install seems to finish ok. Is ther soemthing wrong again? This is the disk that came with my Ocelot.

After I finish install i try to reload ececutive and it says complete and restarting controler. Then says be sure to reload program.

What may be wrong now. Re-writing program now. Will report findings later. Going to bed now.

Bill

Top
#22279 - 01/04/11 06:16 AM Re: Ocelot programming [Re: bmed]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6421
Loc: Montreal, QC, Canada
Yes, this is a known error that you can ignore. It is mentioned in the FAQ section:

http://www.appdigusers.com/forums/ubbthreads.php/ubb/showflat/Number/17738#Post17738
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#22284 - 01/05/11 05:26 PM Re: Ocelot programming [Re: Guy Lavoie]
bmed Offline
junior


Registered: 01/01/11
Posts: 25
Guy,

I have tried reloading 3.18. That gets me a solid x10 light and i can send x10 raw signals. However, when i load any program I have written, I get the 2 way interface light flashing, the x10 monitor showing activity on all x10 unit codes i have in peogram, and modules ramdonly turning on and off constantly for a minite or so, then no programmed control ever.

A small part of my program is below. Am I doing the program wrong?

IF time becomes 1700
AND day of week is not Fri
OR day of week is not Sat
THEN unit A1 turns on

If time becomes 1700
AND day of week is Fri
OR day of week is Sat
Then unit A2 turns on

IF time becomes 2200
THEN unit A1 turns off
TEHN unit A2 turns off

END Program

I am stumped on sloving this. Please, any help or suggestions we be very appreciated.

If someone wants to eamil, my address is bmedley608@bigfoot.com

Bill

Top
#22286 - 01/05/11 06:31 PM Re: Ocelot programming [Re: bmed]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6421
Loc: Montreal, QC, Canada
Are you using C-Max 2.00e with executive verion 3.18? I'm wondering because your probram listing shows lines like "Then unit A2 turns on", which only appeared like that in the early 2.00a version. It was later corrected to show "Then unit A2 turn on".

I don't know what could happen with 3.18 and 2.00a but you should certainly try it with 2.00e before looking for any other possible cause of problems.

About your program, I see a problem with the use of the OR statement (I call this the "deadly OR trap"!):

IF time becomes 1700
AND day of week is not Fri
OR day of week is not Sat
THEN unit A1 turns on


C-Max evaluates an OR statement as a complete new alternate condition that could be met, which on this case means "IF time becomes 1700 and day of week is not Fri" ... OR ..."IF day of week is not Sat". So as long as it is not Saturday, the Ocelot will be turning on A1 continuously, and will jam up the Ocelot just as you're seeing after about a minute. Seems you want to turn on A1 at 1700 on Monday to Friday, and A2 at 1700 on Saturday and Sunday. Program it like this:

IF day of week is not Fri
AND day of week is not Sat (use AND because both have to be true for a weekday)
AND time of day becomes = 1700
THEN unit A1 turn on

IF day of week is Fri
OR day of week is Sat (either day needs to be true)
AND time of day becomes = 1700
Then unit A2 turn on








_________________________
"If you don't know what you're doing, do it neatly..."

Top
#22287 - 01/05/11 06:44 PM Re: Ocelot programming [Re: Guy Lavoie]
bmed Offline
junior


Registered: 01/01/11
Posts: 25
Guy,

I am using 2.00e5 and 3.18. I did not copy the code, just what I wanted to do. I see the the OR would lock things up now. The code actually gives the THEN and the name I gave the A1 module and Turns on.

Like this: "THEN Living Room Floor Lamp Turn ON".

Thanks for this advice and code suggestion.

I really want to turn lamp (A1) on at a specific time every day, but I want to turn it off at differnet times based on day of week. Off Sun - Thursday at 10 PM but off Friday and Saturday at 11 PM.

I will try to change my code, but a code suggestion would help.

Thnaks again,

Bill

Top
#22289 - 01/07/11 07:02 PM Re: Ocelot programming [Re: Guy Lavoie]
bmed Offline
junior


Registered: 01/01/11
Posts: 25
Guy,

The code suggestion help. I now have a basic program running but I have a problem.

Teh light (A1) I turn on at 1800, I want to dim to 50% at 2100. When iI use the PCS dimmimg the lamp dims to off. Should I use the Levington dim instead or what?

Working on code more. Doing more things. The posibilities are endless.

Thanks,

Bill

Top
#22290 - 01/07/11 07:57 PM Re: Ocelot programming [Re: bmed]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6421
Loc: Montreal, QC, Canada
For the question in your previous post, you can test each day of the week, or ranges of days (Sunday = 0, Monday = 1,...Saturday = 6). So for Thursday and Friday you can do:

IF Day of week = Friday(5)
OR Day of week = Saturday(6)
AND Time of Day = 2300
THEN...

IF Day of week = Thursday(4)
OR Day of week = Saturday(0)
AND Time of Day = 2200
THEN...

for a Monday to Friday situation:

IF Day of week > Sunday(0)
AND Day of week < Saturday(6) ...note use of AND here

this is true boolean logic.

For the 50% dim thing, it depends on the brand and model of your switches. X-10 brand switches don't normally support any of the direct dim commands, and only respond to relative dims (THEN Transmit Single X-10 Dim... after addressing the switch.

Most other brands (Leviton, Switchlinc) usually support the Leviton commands, which use extended X10 commands The PCS brand supports the Preset Dim command (PCS Dim command).
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#22293 - 01/09/11 11:02 AM Re: Ocelot programming [Re: Guy Lavoie]
bmed Offline
junior


Registered: 01/01/11
Posts: 25
Guy,

thanks! Been working partly. the dim worked but dimmed to off. Also, I have a constant M13 Dim command every second. It is not cominf from Ocelot or interface I unplugged them and still have it. Turned off phase coupler/repeater (it did not show the command being repeated) bit still have it shown by jeff Volp FTBM meter. I have went arouind and unplugged everything I can t6hink of, any suggestions.

Bill

Top
#22294 - 01/09/11 11:56 AM Re: Ocelot programming [Re: bmed]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6421
Loc: Montreal, QC, Canada
Do you have a TM751 X10 transceiver? If so try unplugging it to see if that stops the dims. They have been known to sometimes send endless series of dims due to some kind of feedback problem. Other then that it could also be noise on the power line causing it. M13 happens to be the X10 house and unit codes that are all zero bits, although that could also be just a coincidence. Try uplugging possible source of noise, such as switching power supplies, compact fluorescent lights, etc.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#22296 - 01/09/11 12:37 PM Re: Ocelot programming [Re: Guy Lavoie]
bmed Offline
junior


Registered: 01/01/11
Posts: 25
Guy,

I do have several of the TM751. I tried removeing one at a time and then all but didn't help. I finally found a "cube" power supply with my Christams light FM transmitter that didn't get turned off after Christmas. It was the problem. Come to think of it, all my problems started before Christmas, about the time I started the FM transmitter. Maybe I found it for now.

Guess I need more help now though. I have x10 voltage readings from all over the house. I am using a Jeff Vlop XTB booster. I get 9.90 volts at places and o.02 volts at other places. Would thsi be surge strips, computers, etc. or maybe something else. I have turned the phase coupler/repeater back on, but I get the wide voltages with it either on or off

Any suggestions?

Bill

Top
#22297 - 01/09/11 01:41 PM Re: Ocelot programming [Re: bmed]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6421
Loc: Montreal, QC, Canada
Surge strips are notorious "signal suckers". Try unplugging them, especially if they are near (and on the same circuit breaker) the places where you have weak signals readings. Cleaning up such problems are an exercise in patience but once done, really pay off in increased reliability.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#22305 - 01/14/11 11:14 AM Re: Ocelot programming [Re: Guy Lavoie]
bmed Offline
junior


Registered: 01/01/11
Posts: 25
Guy,

First, thanks for all the help. But now, I have another problem I can't figure out. I wrote a short section of code to turn x10 C1 on when B1 on was pressed. I also wrote code to turn C1 off when b1 off is pressed. Code works fine but when I press b1 on I get B1 B1 B1 B1 over and over for about 40 seconds then I get B on and the finally c1 and c on. I get the same repeated B1 when I do B1 off. I tried using several different hand held Rf x10 controllers wirh the same result. If I use a wired-in remote I get a few B1 but very few or none. This constant repeating of B1 causes noise that will not allow and other signal to work until it quits. I have a CR234 repeater/coupler at the main panel and have an FTB booster with my my Ocelot interface pluged into that. I get between 5 and 9 volts on the AC line when codes are sent. I have turned the CR234 off and still get the B1 repeating. I left the CR234 on but unplugged the FTB with the same result but lower voltage on the line. Now down to about to about 2 volts and now some distant modules do not respond.

Any suggestions? Something has to be wrong.

Bill

Top
#22306 - 01/14/11 02:24 PM Re: Ocelot programming [Re: bmed]
ADI Tech Support Moderator Offline
addict


Registered: 12/22/02
Posts: 622
Loc: Branson West, MO
What exactly does your code say for handling this? Are you using On Command Pair under the If statement? That will check for B1 followed by the On.

Kevin Barrett
ADI Tech Support



Edited by ADI Tech Support (01/14/11 02:28 PM)

Top
#22310 - 01/14/11 05:29 PM Re: Ocelot programming [Re: bmed]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6421
Loc: Montreal, QC, Canada
 Originally Posted By: bmed
... but when I press b1 on I get B1 B1 B1 B1 over and over for about 40 seconds then I get B on and the finally c1 and c on. I get the same repeated B1 when I do B1 off. I tried using several different hand held Rf x10 controllers wirh the same result. If I use a wired-in remote I get a few B1 but very few or none...


So it looks like your command is getting into some kind of feedback loop and something is repeating it. To eliminate the Ocelot as a possible source (due to programming) disconnect the RJ11 cable from the PSC05 so that the PSC05 is plugged in the socket but with nothing connected to it. Then send your B1 on command the same way you doing it and observe the LED on the PSC05. Does it blink off repeatedly? This would tell you that the B1 is being received over and over again even without the Ocelot connected. If so, then try other tests with the booster/coupler turned off or whetever. A command pair should normally cause the PSC05's LED to blink off twice only.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#22330 - 01/15/11 07:30 PM Re: Ocelot programming [Re: Guy Lavoie]
bmed Offline
junior


Registered: 01/01/11
Posts: 25
Guy,

I un-hooked cable to the PSC05 but left the coupler (CR234) connected. I get the same constant blinking of the PSC05 LED. I turned off the CR2354 and don't get anything. Coupling is shit off also, so I guess I'm on different phases of the service. I moved to seveal different outlets on the lower level of house and still nothing. I did notice that if I held the remote b1 on button for more that a second the repeats poured in.

Another project: I hooked a motion sensor to an x10 emergency module and used that signal to activate andother x10 module. Emergency midule is E1 and activated module is A8. Code works with just "IF house code E1 turns on THEN quick command to turn A8 on. This works but there is a 3-4 second delay before A8 turns on after the motion sensor detects. Also I tried making it work only if time is> than sunset AND is< than sunrise but that won't work. My coding sucks.

Any suggestions on either problems?

Bill

Top
Page 1 of 3 123>


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
1 registered (dasdasd) and 17 anonymous users online.
Recent Posts
baby carriers
by apsun
05/19/12 06:53 PM
The Foremost Selected Infant Carriers
by dasdasd
05/19/12 06:33 PM
Whole house music.
by Guy Lavoie
05/19/12 04:13 PM
cmax 2.0
by Presidio Dog
05/12/12 10:42 PM
Dead SpeakEasy
by ADI Tech Support
05/04/12 09:50 AM
Shout Box

Newest Members
dasdasd, apsun, modularko, Presidio Dog, appoa
2765 Registered Users
Forum Stats
2765 Members
19 Forums
3856 Topics
22808 Posts

Max Online: 67 @ 08/16/11 03:08 PM
May
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 31