Please login or register.

Login with username, password and session length
Pages: 1 2 [3] 4

Author Topic: CM15A triggers timers earlier & earlier each day  (Read 26126 times)

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13259
Re: CM15A triggers timers earlier & earlier each day
« Reply #30 on: October 09, 2010, 06:29:53 AM »

You may not see many empty Cxxx places on the CM15As main board.

Most engineers would add a .1uf 50 volt cap across the main power supply caps and ICs for some high frequency bypassing. Not there and I guess never thought of as there are no positions for them.

One user here added four .1uf 50 volt caps by soldering them directly across C11,C12 and U1,U2 VCC to VSS. He did say his over all performance was improved.

You can find many of the X10 devices in the FCC database. Some even have schematics available.
http://kbase.x10.com/wiki/Schematics
Note here. My RF Receiver Daughter Card from the CM15A does not match the schematic on the FCC site.

I suspect the clock maybe getting its timing from the Zero Crossing circuit. You can see how it is done in the main board schematic. Not too sophisticated. Small power supply derived from a tap on the power transformers primary. Switching transistor and an opto isolator to the controller circuit.
« Last Edit: October 09, 2010, 09:15:11 AM by Brian H »
Logged

JeffVolp

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 122
  • Posts: 2285
    • XTB Home Page
Re: CM15A triggers timers earlier & earlier each day
« Reply #31 on: October 09, 2010, 10:15:23 AM »

I suspect the clock maybe getting its timing from the Zero Crossing circuit. You can see how it is done in the main board schematic. Not too sophisticated. Small power supply derived from a tap on the power transformers primary. Switching transistor and an opto isolator to the controller circuit.

It isn't so much the simplicity of the circuit, it is what is done with that ZCD input in firmware.  If it merely counts transitions, then there is the potential for a glitch near the zero crossing to cause double counting.  If it ignores that input except when a transition is expected, then it would not be sensitive to noise except for it possibly causing the X10 transmission window to shift slightly.

Jeff
Logged
X-10 automation since the BSR days

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13259
Re: CM15A triggers timers earlier & earlier each day
« Reply #32 on: October 09, 2010, 10:22:51 AM »

Jeff; Thanks for the clarifications.
Logged

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Re: CM15A triggers timers earlier & earlier each day
« Reply #33 on: October 09, 2010, 07:57:11 PM »

I'm not an engineer, but did anyone look into the possibility of adding a real-time clock chip to the CM15A, so that it doesn't have to rely on the accuracy of the 60Hz to run the clock?
Logged

JeffVolp

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 122
  • Posts: 2285
    • XTB Home Page
Re: CM15A triggers timers earlier & earlier each day
« Reply #34 on: October 09, 2010, 10:53:06 PM »

I'm not an engineer, but did anyone look into the possibility of adding a real-time clock chip to the CM15A, so that it doesn't have to rely on the accuracy of the 60Hz to run the clock?

An accurate 60Hz reference is needed to position X10 transmissions, so that must come from the powerline itself.

Jeff
Logged
X-10 automation since the BSR days

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Re: CM15A triggers timers earlier & earlier each day
« Reply #35 on: October 10, 2010, 08:40:48 PM »

I'm not an engineer, but did anyone look into the possibility of adding a real-time clock chip to the CM15A, so that it doesn't have to rely on the accuracy of the 60Hz to run the clock?

An accurate 60Hz reference is needed to position X10 transmissions, so that must come from the powerline itself.

Jeff
Thanks for clarifying. However, could they have designed it so that it uses the 60Hz reference to time the signals correctly, BUT uses the clock chip to keep the actual time to run timers properly?

They use a clock chip to keep the time when the device is unplugged, why not use that all the time?
Logged

JeffVolp

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 122
  • Posts: 2285
    • XTB Home Page
Re: CM15A triggers timers earlier & earlier each day
« Reply #36 on: October 10, 2010, 11:09:07 PM »

They use a clock chip to keep the time when the device is unplugged, why not use that all the time?

There is no "clock chip" in the CM15A.  If it does keep time when the power is off, it must be using the microcontroller's internal oscillator.  That does not have the long term accuracy of the 60Hz power grid, which is normally good to seconds a month.  The internal clock in the CY7C63723 is accurate to 1.5% after it adjusts itself from USB communication.  (That's about 20 minutes a day.)

Interesting...   That is similar to the drift quoted at the beginning of this article.  Could it be using the internal clock rather than 60Hz as a reference?

Jeff
Logged
X-10 automation since the BSR days

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13259
Re: CM15A triggers timers earlier & earlier each day
« Reply #37 on: October 11, 2010, 06:08:37 AM »

Gee Jeff; That could be a possibility.
Logged

bvw

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 12
Re: CM15A triggers timers earlier & earlier each day
« Reply #38 on: October 12, 2010, 11:30:16 AM »

It has been very educational following this conversational thread, but it seems that determining the root cause of my CM15A clock problem may be on another tack.
Four days ago I installed AHP (v 3.271) and built a new .ahx on a laptop that had never had a previous AHP install. The purpose was to eliminate any possibility of this being a software issue.
All timers have since triggered as programmed. (The connected laptop has been shut down all this time).
I really didn't expect this result because I had already performed an AHP upgrade a few weeks ago on my primary connected PC, and it had no effect on the CM15A clock issue. Perhaps there is a corrupted remnant of the old install on my primary PC, perhaps there is a conflict with some other app. I will continue to monitor and build out the .ahx on the laptop and try to determine what to do next on the primary PC.
Thank you for all your input so far, and please share any thoughts you may have regarding this latest result.
(I wouldn't declare this issue resolved quite yet).
Logged

JeffVolp

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 122
  • Posts: 2285
    • XTB Home Page
Re: CM15A triggers timers earlier & earlier each day
« Reply #39 on: October 12, 2010, 12:04:43 PM »


The interesting thing is that you did this on another computer.  The Cypress Semiconductor data sheet on the microcontroller used in the CM15A talks about it adjusting its internal clock based upon the USB connection.  Perhaps the USB port frequency is a factor in the CM15A clock error problems?

Jeff
Logged
X-10 automation since the BSR days

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Re: CM15A triggers timers earlier & earlier each day
« Reply #40 on: October 12, 2010, 12:36:25 PM »


The interesting thing is that you did this on another computer...
Jeff

Did you verify that the clock on the old PC is keeping correct time (WITHOUT having to connect to the Internet to sync)?

If the clock on the PC is off, perhaps it is passing that inaccuracy over to the CM15A somehow?
Logged

JeffVolp

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 122
  • Posts: 2285
    • XTB Home Page
Re: CM15A triggers timers earlier & earlier each day
« Reply #41 on: October 12, 2010, 12:40:29 PM »


I don't thing the RTC in the PC has any relationship to the USB bus speed.  The RTC is normally a separate chip powered by a small battery.  The USB port would either run off the bus clock or some internal clock in the USB controller itself.

Jeff
Logged
X-10 automation since the BSR days

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Re: CM15A triggers timers earlier & earlier each day
« Reply #42 on: October 12, 2010, 02:14:43 PM »

Sorry, I guess my post was confusing.
I was under the impression that when connected, the CM15A syncs its clock to the PC clock. (There are a lot of people who complained their timers were off by one hour, and it turns out their PC time zone was incorrect). Perhaps if the PC's clock is off, and if the CM15A is syncing time to the PC, then it is syncing to a bad time reference, and starts to get off track. I'm not an engineer, so I'm really not qualified to do anything other than throw out my own hair-brained theories. ;-)
Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13259
Re: CM15A triggers timers earlier & earlier each day
« Reply #43 on: October 12, 2010, 02:33:37 PM »

Yes I believe the CM15A does set its time if connected to the computer and AHP is run.
Logged

Dan Lawrence

  • Hero Member
  • *****
  • Helpful Post Rating: 68
  • Posts: 3991
Re: CM15A triggers timers earlier & earlier each day
« Reply #44 on: October 12, 2010, 08:55:50 PM »

I believe you are correct.  My CM15A is plugged into my PC 24/7/365 and has been since 2005 so that's been 5 years of service with no interruptions.  I just updated to 3.185 as a clean install (did a total uninstall of AHP (3.271) first before installing 3.185.  Timers and my keypress Macro work as created.
Logged
I don't SELL this stuff... BUT I sure do ENJOY using it!!!
Pages: 1 2 [3] 4
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.