LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 02-14-2017, 10:40 PM   #1
jackbk
LQ Newbie
 
Registered: Feb 2017
Posts: 13

Rep: Reputation: Disabled
How to talk with Real Time Clock hardware?


Hello all,

I raised this question in some forums. I think it is a common question when we write a program that will communicate with a hardware on the board. Unfortunately, there is no answer make me satisfactory!

Can you support me?

I have a board that integrates an Real Time Clock (RTC) chip. The RTC chip uses I2C protocol to read/write to its registers. Now, I want to use Python to access to the RTC chip.

Here is the information.

Chip RTC:
https://www.intersil.com/content/dam...1/isl12057.pdf

Board OS: Linux Yocto
Programming language: Python

If you have any know-how, please support me.

Thanks for any help.
 
Old 02-16-2017, 06:04 PM   #2
elucches
Member
 
Registered: Jan 2011
Posts: 108

Rep: Reputation: 11
Some years ago I used i2c-tools. There is a package in Ubuntu and I guess in most distributions. The home page is www.lm-sensors.org (although I've just tried the link and it seems to be down or too slow).

Regards,
Esteban
 
1 members found this post helpful.
Old 02-18-2017, 09:12 PM   #3
jackbk
LQ Newbie
 
Registered: Feb 2017
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thank you so much!

The homepage http://www.lm-sensors.org/ is slow, and I can not access to it!

But as I checked information of i2c-tools. It seems that SMBus is a way to talk with I2C device. I also believe that is one of method to talk with my RTC.

I am trying this method, unfortunately, there is still an issue that I am finding a solution, it is here

http://www.linuxquestions.org/questi...sy-4175599788/

If you have more idea, please give me. I really appreciate for any help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
real time clock on Raspberry Pi B+ mjosh Slackware 5 10-21-2014 06:44 AM
Query on Real-Time-Clock (RTC) ajaygarg Linux - Hardware 5 03-08-2012 01:03 PM
Real Time Clock & Real Time Timer jiramak Linux - Newbie 1 09-05-2007 06:43 PM
Cannot Access my Real Time Clock? raid517 Linux - Hardware 1 05-08-2005 05:09 PM
Real Time Clock(RTC) problem gongcon Linux - Software 6 01-06-2005 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration