Hi all
In my java app i am reading date time from BBB with externally connected RTC using java library that provided for data/time, my issue is i am not able to read time as expected(hh:mm:ss), anybody faced similar issue?, is there any solution?
Hi all
In my java app i am reading date time from BBB with externally connected RTC using java library that provided for data/time, my issue is i am not able to read time as expected(hh:mm:ss), anybody faced similar issue?, is there any solution?
When you use Java app, it uses standard library that probably doesn't use the RTC hardware. I would write my own and solve that problem. Read Date and time in Java about Unix time and you will understand why. The RTC chip on the other handle will be better if you read directly.
Clem
Ok, but my BBB is showing correct time on display on it's right corner just like our normal PC, but when we get time through java library it print's different one(time).
Trying not to be condescending, but what is displayed on BBB is not from Java library! Please read Date and time in Java to see what you will get in Java environment,,
Clem
Yes, i understand, it seems that BBB takes time from /etc/default/hwclock() ,I'm assuming because the RTC1 (DS1307) is loaded via a script when Debian boots the hwclock has already loaded and defaulted to RTC0 because my external RTC1 is yet to be loaded.
Note:
i edit /etc/default/hwclock() to my external RTC1, but no result
Yes, i understand, it seems that BBB takes time from /etc/default/hwclock() ,I'm assuming because the RTC1 (DS1307) is loaded via a script when Debian boots the hwclock has already loaded and defaulted to RTC0 because my external RTC1 is yet to be loaded.
Note:
i edit /etc/default/hwclock() to my external RTC1, but no result