#22264 - 01/01/11 07:17 PM
Ocelot programming
|
bmed
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
|
|
|
|
#22268 - 01/01/11 09:28 PM
Re: Ocelot programming
[Re: Guy Lavoie]
|
bmed
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
|
|
|
|
#22271 - 01/02/11 04:52 PM
Re: Ocelot programming
[Re: Guy Lavoie]
|
bmed
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
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
|
|
|
|
#22284 - 01/05/11 05:26 PM
Re: Ocelot programming
[Re: Guy Lavoie]
|
bmed
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
|
|
|
|
#22287 - 01/05/11 06:44 PM
Re: Ocelot programming
[Re: Guy Lavoie]
|
bmed
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
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
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
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
|
|
|
|
#22296 - 01/09/11 12:37 PM
Re: Ocelot programming
[Re: Guy Lavoie]
|
bmed
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
|
|
|
|
#22305 - 01/14/11 11:14 AM
Re: Ocelot programming
[Re: Guy Lavoie]
|
bmed
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
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
|
|
|
|
#22330 - 01/15/11 07:30 PM
Re: Ocelot programming
[Re: Guy Lavoie]
|
bmed
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
|
|
|
|
Moderator: Dan Smith, Monte G, ADI Tech Support, Guy Lavoie
|
1 registered
(dasdasd)
and 17 anonymous users online.
|
|
2765 Members
19 Forums
3856 Topics
22808 Posts
Max Online: 67 @ 08/16/11 03:08 PM
|
|
|