<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi <span style="caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">Brandon,</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"> This issue has been resolved, the old CPLD version does not support writing to this register.<br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>发件人:</b> zhouyuanqing8@outlook.com <zhouyuanqing8@outlook.com><br>
<b>发送时间:</b> 2020年5月20日 9:52<br>
<b>收件人:</b> Brandon Wyman <bjwyman@gmail.com>; openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org><br>
<b>主题:</b> 回复: about i2cset tool</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi Brandon,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Sorry, I did not retain the output information of the i2cset command before, I copied the output information from the i2cget command.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span> I tried the following command, the register still cannot be written, and there was no error message.This command is to turn on the LED light.</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span><span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">/usr/sbin#<span> </span></span>i2cset -f 9 0x10 0x82 0xffff w<br>
</span>
<div>WARNING! This program can confuse your I2C bus, cause data loss and worse!<br>
</div>
<div>I will write to device file /dev/i2c-9, chip address 0x10, data address<br>
</div>
<div>0x82, data 0x102, mode word.<br>
</div>
<div>Continue? [Y/n] Y<br>
</div>
<span></span></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span> i2cget command works just fine.<span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important"></span></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>/usr/sbin# i2cget 9 0x10 0x02 i 3<br>
</span>
<div>WARNING! This program can confuse your I2C bus, cause data loss and worse!<br>
</div>
<div>I will read from device file /dev/i2c-9, chip address 0x10, data address<br>
</div>
<div>0x02, 3 bytes using read I2C block data.<br>
</div>
<div>Continue? [Y/n] Y<br>
</div>
<div>3: 0x03 0x00 0x00<br>
</div>
<div><br>
</div>
<div>/usr/sbin# i2cget 9 0x10 0x02 i 3<br>
</div>
<div>WARNING! This program can confuse your I2C bus, cause data loss and worse!<br>
</div>
<div>I will read from device file /dev/i2c-9, chip address 0x10, data address<br>
</div>
<div>0x02, 3 bytes using read I2C block data.<br>
</div>
<div>Continue? [Y/n] Y<br>
</div>
<div>3: 0x03 0xff 0x00<br>
</div>
<div><br>
</div>
<div>/usr/sbin# i2cget 9 0x10 0x02 i 3<br>
</div>
<div>WARNING! This program can confuse your I2C bus, cause data loss and worse!<br>
</div>
<div>I will read from device file /dev/i2c-9, chip address 0x10, data address<br>
</div>
<div>0x02, 3 bytes using read I2C block data.<br>
</div>
<div>Continue? [Y/n] y<br>
</div>
<div>3: 0x03 0x00 0x00</div>
<div><br>
</div>
<span></span></div>
<div>
<div id="x_appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>发件人:</b> openbmc <openbmc-bounces+zhouyuanqing8=outlook.com@lists.ozlabs.org> 代表 Brandon Wyman <bjwyman@gmail.com><br>
<b>发送时间:</b> 2020年5月20日 3:24<br>
<b>收件人:</b> openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org><br>
<b>主题:</b> Re: about i2cset tool</font>
<div> </div>
</div>
<div>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<br>
</p>
<div class="x_x_moz-cite-prefix">On 2020-05-19 02:40, <a class="x_x_moz-txt-link-abbreviated" href="mailto:zhouyuanqing8@outlook.com">
zhouyuanqing8@outlook.com</a> wrote:<br>
</div>
<blockquote type="cite">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi All</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I use the i2cget to read the device data, but the i2cset did not write the data to the device, and the operation of i2cset did not report any errors.<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
for example:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>:/usr/sbin# i2cget 9 0x10 0x00 i 3<br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>WARNING! This program can confuse your I2C bus, cause data loss and worse!<br>
</div>
<div>I will read from device file /dev/i2c-9, chip address 0x10, data address<br>
</div>
<div>0x00, 3 bytes using read I2C block data.<br>
</div>
<div>Continue? [Y/n]<br>
</div>
<div>3: 0x02 0x32 0xcc<br>
</div>
<div><br>
</div>
<div>:/usr/sbin# i2cset 9 0x10 0x82 0x0101 2<br>
</div>
<div>WARNING! This program can confuse your I2C bus, cause data loss and worse!<br>
</div>
<div>I will read from device file /dev/i2c-9, chip address 0x10, data address<br>
</div>
<span>0x00, using read word data.</span></div>
</blockquote>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
Well, that is a bit odd. It looks like that just did a read, not a write.</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
Do you need to use the force access option? What is that 2? Should it be a word (w)?<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<a class="x_x_moz-txt-link-freetext" href="https://linux.die.net/man/8/i2cset">https://linux.die.net/man/8/i2cset</a></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
i2cset -f 9 0x10 0x82 0x0101 w<br>
</p>
<blockquote type="cite">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><br>
</span></div>
<div><font size="3" face="Calibri, Arial, Helvetica, sans-serif" color="#000000">when </font><font face="Calibri, Arial,
Helvetica, sans-serif" color="#000000"><span style="">I</span></font><font size="3" face="Calibri, Arial, Helvetica, sans-serif" color="#000000"> check
the 0x82 reg,the value is not changed.</font></div>
<div><font size="3" face="Calibri, Arial, Helvetica, sans-serif" color="#000000"><br>
</font></div>
<div><font size="3" face="Calibri, Arial, Helvetica, sans-serif" color="#000000">Thanks</font></div>
<div><font size="3" face="Calibri, Arial, Helvetica, sans-serif" color="#000000">harley</font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><br>
</span></div>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>