Python Forum
How to talk with Real Time Clock hardware?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to talk with Real Time Clock hardware?
#11
(Feb-13-2017, 09:03 PM)Larz60+ Wrote: Did you look at the document in?

Quote:The MCU is a DART-MX6, and here http://variwiki.com/index.php?title=VAR-...e_Clock.29

It's still there.
the command:
hwclock
seems to be an os (proprietary for board?) command used to access RTC
Sorry that's about the extent of what I can offer.
You will need to dig some more, as frustrating as it is for you, same for me.

I checked your link yesterday (http://variwiki.com/index.php?title=VAR-...e_Clock.29).

It is a way to access to RTC by Linux command. It is same as a link I showed before.

http://www.variwiki.com/index.php?title=IMX_RTC

Both of them use Linux command to access to RTC, not by using Python.

Thank you for your offer. I know my question is too specific, so it is difficult to answer clearly everything.

I will dig more, and find out a solution.
Reply
#12
Here's a link on how to run Linux commands from python.
Of the methods shown, the subprocess method is safer than the os.system
method.
see https://www.cyberciti.biz/faq/python-exe...-examples/
Reply
#13
(Feb-14-2017, 02:57 AM)Larz60+ Wrote: Here's a link on how to run Linux commands from python.
Of the methods shown, the subprocess method is safer than the os.system
method.
see https://www.cyberciti.biz/faq/python-exe...-examples/

Thank you. I checked it and it is a good reference!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Non-blocking real-time plotting slow_rider 5 3,455 Jan-07-2023, 09:47 PM
Last Post: woooee
  Real time database satyanarayana 3 1,623 Feb-16-2022, 01:37 PM
Last Post: buran
  Real time data satyanarayana 3 20,318 Feb-16-2022, 07:46 AM
Last Post: satyanarayana
  Real time Detection and Display Gilush 0 1,764 Feb-05-2022, 08:28 PM
Last Post: Gilush
  Module 'time' has no attribute 'clock' Sophie 4 3,033 Jan-25-2022, 08:05 PM
Last Post: Sophie
  Clock\time calculation script Drone4four 3 1,442 Jan-21-2022, 03:44 PM
Last Post: ibreeden
  Real-Time output of server script on a client script. throwaway34 2 2,011 Oct-03-2021, 09:37 AM
Last Post: ibreeden
  time.clock not functioning Oldman45 3 2,667 Apr-07-2021, 08:51 AM
Last Post: Oldman45
  Real Time Audio Processing with Python Sound-Device not working Slartybartfast 2 3,882 Mar-14-2021, 07:20 PM
Last Post: Slartybartfast
Question I can't get my real-time chart with Python (Help!) Bastian_ElProfe 1 2,189 Jan-20-2021, 01:34 PM
Last Post: wostan

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020