LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-20-2020, 02:11 PM   #1
Hazardsneon
LQ Newbie
 
Registered: May 2020
Posts: 2

Rep: Reputation: Disabled
i2cset/get on Device Address Over 0x77


I'm working with a SBC running Linux. I am trying to get and set a device with an address of 0x7C but the standard limit is 0x77. I am able to run the following and the device shows up:
Code:
i2cdetect -y -a 0 0x03 0x7D
However, the "-a" and [first last] parameters are not valid for i2cget or i2cset and limit me to addresses of 0x03 to 0x77.

Is there a way to increase that limit address or override the limit like I can with i2cdetect?

If it matters this is using i2cset version 3.1.1 on GenToo

Last edited by Hazardsneon; 05-20-2020 at 02:19 PM.
 
Old 05-21-2020, 06:58 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
I have no deeper knowledge about this, but I have come across i2c on a Nokia N900.
Maybe searching through these results can help: https://wiki.maemo.org/Special:Search?search=i2c&go=Go
 
Old 05-21-2020, 10:26 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Where are you getting this standard limit? I2C addresses are 7-bit (typical, doubt this is a rare 10-bit device), and they go up to 0x7F.

More information is needed. Please explain how you've reached this conclusion.
 
Old 05-21-2020, 11:41 AM   #4
Hazardsneon
LQ Newbie
 
Registered: May 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
When I try to run:
Code:
i2cget -f -y -a 0 0x7C 0x10
I get:
Code:
Error: Chip address out of range (0x03-0x77)!
Usage: i2cget [-f] [-y] I2CBUS CHIP-ADDRESS [DATA-ADDRESS [MODE]]
  I2CBUS is an integer or an I2C bus name
  ADDRESS is an integer (0x03 - 0x77)
  MODE is one of:
    b (read byte data, default)
    w (read word data)
    c (write byte/read byte)
    Append p for SMBus PEC
Also if I look at some man pages they mention this 0x03 to 0x77 pass band.
https://manpages.debian.org/unstable...cget.8.en.html

It does mention that I can use the "-a" for i2cdetect to allow using addresses between 0x00 - 0x02 and 0x78 - 0x7f. This works but doesn't apply to i2cget or i2cset where I would really like to use it.
 
  


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
iptables logs the same MAC address over and over... sickdude Linux - Security 7 05-22-2009 07:49 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
loop: can't open device /dev/loop0: No such device or address miaviator278 Linux - Security 3 06-09-2004 09:24 PM
compile kernel over, and over, and over....... chopp Slackware 10 03-30-2004 05:23 AM
When switched to command line, repeats "sr0: CD-ROM device not ready" over and over paradoxdruid Linux - General 7 10-21-2003 05:44 PM

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

All times are GMT -5. The time now is 10:35 AM.

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