LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-25-2013, 07:50 PM   #1
henryyao
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Rep: Reputation: 0
how do I achieve i2c broadcasting using ioctl in Linux


I'd like to check how many i2c devices are on my i2c bus and what's their slave addresses.

I understand that I should use the broadcasting address 0x00. And those devices may return an ACK when they receive the broadcasting message.

However, I dont know how to achieve that using ioctl() in Linux. Since according my understanding, ioctl() can only read byte from registers or write byte to registers, it does not have a designated function of recognizing the address that ACKs are sent from.

Or is there another solution?

Thanks
 
Old 08-01-2013, 09:26 AM   #2
elucches
Member
 
Registered: Jan 2011
Posts: 108

Rep: Reputation: 11
Documentation/i2c/dev-interface may help.
 
Old 08-14-2013, 10:58 AM   #3
henryyao
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: 0
How to detect which encoding Linux is using without locale untility

how can i delete this post?

Last edited by henryyao; 08-14-2013 at 11:02 AM.
 
  


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
How to forward IOCTL's from i2c-dev.c to adapter driver (i2c-rt3352.c) elonica.pl Linux - Kernel 2 08-23-2011 02:03 AM
how to enable ioctl( ) feature in i2c driver tanniru Linux - Kernel 7 07-14-2011 05:23 AM
How to pass IOCTL arguments from usespace ioctl call devkpict Linux - Kernel 1 12-07-2007 06:45 PM
web cam not broadcasting in gyachi-error in ioctl vidiocspict keithk2 Linux - Software 0 03-19-2007 10:58 PM
Help This Newb Achieve his Linux Dream! TeknoPhreak Linux - Newbie 9 03-21-2003 08:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:36 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