Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20563

BASCOM-AVR : DS1307 RTC : REPLY

$
0
0
[quote:04b87951c1="rsavas"]Mark, I suggest to add a error handler/flag, if the device does not respond. Thx for your code as well.[/quote:04b87951c1] I do when it is under my control. The lock up is occurring in the SNTP BASCOM call. Further investigation and a simplified test case needs to be created so that I can post. Saying it it doesn't work, just isn't good enough for good help with the problem. [quote:04b87951c1] I have a ?, why use the rtc at all? I have not used the BASCOM clock, timekeeping functions, since I have done everything based on the rtc and my code. I do see that the DateTime library does not keep track of month & year, so I guess your sw has to keep track! If you are using the network as your clock/calendar reference and you periodically check then the reference why is the mcu reference not good enough? One reference will be more accurate than the other, so the assumption is the network is more accurate than your reference rtc or mcu. Rick[/quote:04b87951c1] In this application, it will be controlling my furnace, which is a dual source. Propane and electric assist with a heat pump. It currently has a energy management system on it but the algorithms are lame. The system overall is very good on the hardware side. My application will control the zones and read all the Tstats, read the back pressure force and control the fan speed of the furnace. IE: one zone calling for heat doesn't require or desired to have the fan speed at max, to much back pressure, etc. Monitoring of the outside temp, adjustable heat loss profiles for different structures, minimum air temps are used to calculate the desired air temp(DT) to heat the house. If the DT is not sufficient from the heat from the heat pump then there are four stages of electric assist at varying KWHs which are PWM'd. Security will be added as well down the road. Big task, yes, but a lot is already done. Manufacture is just up the road from me and I believe I know the system as well as their tech support does. :) The app also provides NO-IP client-host updates for the DNS updates of their free services. Just completed my WhatsMyPublicIP function so that the information can be sent to the NO-IP host account for update when the IP changes or at a scheduled update interval so that the account doesn't expire. All working. It is possible to loose power and there is also a possibility to loose connectivity to the Internet, thus no SNTP updates. IIRC the DS1307 is $2.00. So if power is lost, the RTC is backed and I can live with the time error until SNTP sync can occur. With the soft clock and power loss, I would basically be creating the DS1307 to retain time, can be done, just not worth the effort, IMHO. With the addition of the Wiznet libs to BASCOM, it really opens up the connectivity to the house, monitoring and control. Android app along with a VB app will be used to do remote logins to the system. Was going to have a web interface but the app will add a level a security. Regards, Mark

Viewing all articles
Browse latest Browse all 20563

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>