<div dir="ltr"><div>To the List,</div><div><br></div><div>For anyone else working with the TAPR-supplied magnetometer boards, this is <b>not</b> the recommended way of making things work.</div><div><br></div><div>As the original developer of the hardware design and the author of the runMag code, there are standard ways to make this work that do not involve editing the source code.</div><div>I cannot maintain non-standard changes.</div><div>If something really needs changing, please let me know and I will address it.</div><div><br></div><div>For unknown reasons, Scottie chose to use non-default values for the sensor addresses on the I2C bus.  </div><div>At one point he indicated that he was going to change this in the final product, but that did not happen.</div><div><br></div><div>However, the software was written to allow the use of any of these addresses using command line arguments.</div><div><br></div><div>A good starting point for testing is to use:</div><div><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"><div><font face="monospace">./runMag <b>-M 0x23</b> </font><span style="font-family:monospace"><b>-R 0x1F </b></span><span style="font-family:monospace"><b>-r</b> </span><span style="font-family:monospace">-b 1 -j -A 60 -c 400 -Z <br></span></div></blockquote><br>On the other question:<div><span style="font-family:monospace"><br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures;font-family:monospace">I see the 
MEMORY chip is on a different i2c bus and don’t think I have this one 
function yet.  I figured the idea was to put calibration info in that 
chip.</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures;font-family:monospace">I plane to look a little more into that issue and get it working before I put the remote sensor in the ground.</span></div>
</div></blockquote><div><span style="font-family:monospace"><br></span></div>I can't tell you much.  <br></div><div>I do not know whether Scottie loaded any information into these chips or not.<br></div><div>I offered to work with Scottie on the HAT I2C flashing and though he agreed, he never communicated with me about it.<br>I do not believe that it matters at this point.  </div><div>It is not used by runMag and I am not aware that it is used elsewhere in the project.<br>This is a rarely implemented feature of Pi HATs.  </div><div>It is not difficult to implement if needed.</div><div><br></div><div>If you continue to have difficulties with this or other aspects of the magnetometer setup, please contact me.</div><div>I am committed to making sure that the magnetometers work well for everyone.</div><div><br></div><div>Dave Witten, KD0EAG</div><div><a href="mailto:wittend@wwrinc.com">wittend@wwrinc.com</a><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 8 Jul 2023 at 13:38, <<a href="mailto:tangerinesdr-request@lists.tapr.org" target="_blank">tangerinesdr-request@lists.tapr.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send TangerineSDR mailing list submissions to<br>
        <a href="mailto:tangerinesdr@lists.tapr.org" target="_blank">tangerinesdr@lists.tapr.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.tapr.org/mailman/listinfo/tangerinesdr_lists.tapr.org" rel="noreferrer" target="_blank">http://lists.tapr.org/mailman/listinfo/tangerinesdr_lists.tapr.org</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:tangerinesdr-request@lists.tapr.org" target="_blank">tangerinesdr-request@lists.tapr.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:tangerinesdr-owner@lists.tapr.org" target="_blank">tangerinesdr-owner@lists.tapr.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of TangerineSDR digest..."<br>
Today's Topics:<br>
<br>
   1. Re: Magnetometer bring up issues (Jonathan)<br>
<br><br><br>---------- Forwarded message ----------<br>From: Jonathan <<a href="mailto:emuman100@gmail.com" target="_blank">emuman100@gmail.com</a>><br>To: TAPR TangerineSDR Modular Software Defined Radio <<a href="mailto:tangerinesdr@lists.tapr.org" target="_blank">tangerinesdr@lists.tapr.org</a>><br>Cc: <br>Bcc: <br>Date: Sat, 8 Jul 2023 13:05:39 -0400<br>Subject: Re: [TangerineSDR] Magnetometer bring up issues<br><div dir="ltr">Hi Bob,<div><br></div><div>I'm glad to see you got this working. I didn't get a chance to email last night, but the new batch of magnetometer boards do not have the local temperature sensor populated.</div><div><br></div><div>When Nathaniel and I installed the magnetometer at his QTH, we also ran into the same issue that the documented I2C addresses were not correct for the board version we had, so we had to poll the bus and guess which values were which.</div><div><br></div><div>The magnetometer can be used on any Pi because the runMag utility simply polls the i2c addresses for data.</div><div><br></div><div>Jonathan</div><div>KC3EEY</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 8, 2023 at 12:33 AM Bob Stricklin via TangerineSDR <<a href="mailto:tangerinesdr@lists.tapr.org" target="_blank">tangerinesdr@lists.tapr.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
I managed to get this working by forcing the proper address in the header files as shown below.  My guess is the developers had HAT pcbs and remote pcbs that had all the parts populated. The TAPR boards only have parts on the remote boards. The code is not
 dealing with this properly or I did not set some flag I was supposed to set. 
<div><br>
</div>
<div>This is what makes it function:</div>
<div><br>
</div>
<div><b>device_defs.h</b></div>
<div><br>
</div>
<div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<div style="margin:0px;font-stretch:normal;line-height:normal">
<div style="color:rgb(47,180,29);margin:0px;font-stretch:normal;line-height:normal">
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">//-------------------------------------------</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">// Address of the device changed N5BRG  7/7/2023</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">//-------------------------------------------</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">// #define RM3100_I2C_ADDRESS              0x20</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">// #define RM3100_I2C_ADDRESS_7bit         0x20</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">// #define RM3100_I2C_ADDRESS_8bit         0x20 << 1 // MBED uses 8 bit address</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">#define RM3100_I2C_ADDRESS              0x23</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">#define RM3100_I2C_ADDRESS_7bit         0x23</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">#define RM3100_I2C_ADDRESS_8bit         0x23 << 1 // MBED uses 8 bit address</span></div>
</div>
<div style="color:rgb(47,180,29);margin:0px;font-stretch:normal;line-height:normal">
<br>
</div>
<div style="margin:0px;font-stretch:normal;line-height:normal"><b>MCP9808.h</b></div>
<div style="color:rgb(47,180,29);margin:0px;font-stretch:normal;line-height:normal">
<b><br>
</b></div>
<div style="color:rgb(47,180,29);margin:0px;font-stretch:normal;line-height:normal">
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">// MCP9808 Bus Address.</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">//-----------------------------------</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">//#define MCP9808_LCL_I2CADDR_DEFAULT         0x18       // alt: (selected by chip hardware 0x18 - 0x1F</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">//#define MCP9808_RMT_I2CADDR_DEFAULT         0x19       // alt: (selected by chip hardware 0x18 - 0x1F</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">// Changed N5BRG  7/7/2023</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">#define MCP9808_LCL_I2CADDR_DEFAULT         0x1F       // alt: (selected by chip hardware 0x18 - 0x1F</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">#define MCP9808_RMT_I2CADDR_DEFAULT         0x1F       // alt: (selected by chip hardware 0x18 - 0x1F</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">I see the MEMORY chip is on a different i2c bus and don’t think I have this one function yet.  I figured the idea was to put calibration info in that chip.</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">I plane to look a little more into that issue and get it working before I put the remote sensor in the ground.</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;color:rgb(0,0,0)">
<span style="font-variant-ligatures:no-common-ligatures">Bob N5BRG</span></div>
<div><span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
</div>
</div>
</div>
<div><br>
<blockquote type="cite">
<div>On Jul 7, 2023, at 4:29 PM, Bob Stricklin via TangerineSDR <<a href="mailto:tangerinesdr@lists.tapr.org" target="_blank">tangerinesdr@lists.tapr.org</a>> wrote:</div>
<br>
<div>
<div>
<div>I am trying to get the TAPR supplied magnetometer working and having some problems.</div>
<div><br>
</div>
<div>After cloning Dave's GitHub and running make I see this output:</div>
<div><br>
</div>
<div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures"><b>~/rm3100-runMag
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> ls</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">CHANGES.txt  cmdmgr.h  device_defs.h  i2c.c  i2c.o   
</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>logs</b></span><span style="font-variant-ligatures:no-common-ligatures">    main.h    MCP9808.h      README.md  runMag.c  runMag.o      
</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>runrun.sh</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">cmdmgr.c     cmdmgr.o 
</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>docs</b></span><span style="font-variant-ligatures:no-common-ligatures">           i2c.h  LICENSE  main.c  Makefile  metadata.json 
</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>runMag</b></span><span style="font-variant-ligatures:no-common-ligatures">     runMag.h 
</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>run-nopipe.sh</b></span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures"><b>~/rm3100-runMag
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> cat runrun.sh </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">./runMag -b 1 -j -M 23 -A 10 -c 400 -U 140 -Z > /home/web/wsroot/pipein.fifo</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures"><b>~/rm3100-runMag
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> mkdir test/</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~/rm3100-runMag
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> ./runMag -b 1 -j -M 23 -A 10 -c 400 -U 140 -Z > ./test/pipein.fifo</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">./runMag: invalid option -- 'U'</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~/rm3100-runMag
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> ./runMag -b 1 -j -M 23 -A 10 -c 400 -Z > ./test/pipein.fifo</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">Error : I/O error reading temp sensor at address: [0x19].</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">Error : I/O error reading temp sensor at address: [0x18].</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">Error : I/O error reading temp sensor at address: [0x19].</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">Error : I/O error reading temp sensor at address: [0x18].</span></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~/rm3100-runMag
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> ./runMag -M 23 -m</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">"time", "rtemp", "ltemp", "x", "y", "z", "rx", "ry", "rz", "total"</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">"07 Jul 2023 21:04:38", 15.1029, -19.0455, 45.8655, 134, -169, 407</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">"07 Jul 2023 21:04:38", 15.0998, -19.0481, 45.8631, 134, -169, 407</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">"07 Jul 2023 21:04:39", 15.0984, -19.0519, 45.8628, 134, -169, 407</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">"07 Jul 2023 21:04:40", 15.0972, -19.0479, 45.8633, 134, -169, 407</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">"07 Jul 2023 21:04:41", 15.0957, -19.0515, 45.8711, 134, -169, 407</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">^C</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~/rm3100-runMag
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> ./runMag -L 1f -l</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">i2c_writebuf(): write(): Remote I/O error</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">i2c_read read value.: Remote I/O error</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">RM3100 REVID NOT CORRECT: RM3100 REVID: 0x0 <> EXPECTED: 0x22.</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~/rm3100-runMag
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> ./runMag -L 0x1f -l</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">i2c_writebuf(): write(): Remote I/O error</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">i2c_read read value.: Remote I/O error</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">RM3100 REVID NOT CORRECT: RM3100 REVID: 0x0 <> EXPECTED: 0x22.</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~/rm3100-runMag
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> ./runMag -L 0x1F -l</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">i2c_writebuf(): write(): Remote I/O error</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">i2c_read read value.: Remote I/O error</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">RM3100 REVID NOT CORRECT: RM3100 REVID: 0x0 <> EXPECTED: 0x22.</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">
<div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~/rm3100-runMag
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> sudo ./runMag -L 0x1f -l</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">i2c_writebuf(): write(): Remote I/O error</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">i2c_read read value.: Remote I/O error</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</div>
<div style="margin:0px;font-stretch:normal;line-height:normal"><span style="font-variant-ligatures:no-common-ligatures">RM3100 REVID NOT CORRECT: RM3100 REVID: 0x0 <> EXPECTED: 0x22.</span></div>
<div><span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px">
<br>
<span style="font-variant-ligatures:no-common-ligatures"></span></div>
</div>
<div><br>
</div>
<div>Raspberry Pi 3B:  (Also tried a few other Raspberry Pi units.)</div>
<div><br>
</div>
<div>used sudo raspi-config to activate I2C</div>
<div><br>
</div>
<div>Then I edited /boot/config.txt to add:</div>
<div><br>
</div>
<div>dtoverlay=i2c-gpio,bus=3,i2c_gpio_delay_us=1,i2c_gpio_sda=28,i2c_gpio_scl=27</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> i2cdetect -l  </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">i2c-3<span style="white-space:pre-wrap">
</span>i2c       <span style="white-space:pre-wrap"></span>3.i2c                          
<span style="white-space:pre-wrap"></span>I2C adapter</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">i2c-1<span style="white-space:pre-wrap">
</span>i2c       <span style="white-space:pre-wrap"></span>bcm2835 (i2c@7e804000)         
<span style="white-space:pre-wrap"></span>I2C adapter</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> i2cdetect -y 1</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">00:          -- -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 1f </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">20: -- -- -- 23 -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">70: -- -- -- -- -- -- -- --                         </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> i2cdetect -y 3</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">00:          -- -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">70: -- -- -- -- -- -- -- --                         </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> i2cdetect -y 2</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">Error: Could not open file `/dev/i2c-2' or `/dev/i2c/2': No such file or directory</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> i2cdetect -y 4</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">Error: Could not open file `/dev/i2c-4' or `/dev/i2c/4': No such file or directory</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(47,180,29)">
<span style="font-variant-ligatures:no-common-ligatures"><b>pi@Fox-in-box-v3</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)"><b>~
 $</b></span><span style="font-variant-ligatures:no-common-ligatures"> </span></div>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(47,180,29)">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(47,180,29)">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(47,180,29)">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
Results:</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<br>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
Looks like the magnetic sensors may be responding but the temp sensor is not responding to reads. The temp sensor does show up as a valid i2c address though.</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<br>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
I noticed the memory chip on local and on remote is not responding with address A0 and this device in on the same i2c bus it seems. According to the data sheet</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
without the jumper installed on WP it should be working in read mode. I put the jumper on and still do not see the device with i2cdetect -y 1. If this is not being used for</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
anything else I would prefer to put the jumper on WP and allow it to be used in the ground after being buried. With WP pulled high the chip is still pulling 1 - 2 ma anyway.</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<br>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
I would appreciate any comments on what else should be done to get this working so I can put the unit in the ground and get providing data.</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<br>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<br>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
Bob N5BRG</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<br>
</div>
<div><span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
</div>
-- <br>
TangerineSDR mailing list<br>
<a href="mailto:TangerineSDR@lists.tapr.org" target="_blank">TangerineSDR@lists.tapr.org</a><br>
<a href="http://lists.tapr.org/mailman/listinfo/tangerinesdr_lists.tapr.org" target="_blank">http://lists.tapr.org/mailman/listinfo/tangerinesdr_lists.tapr.org</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>

-- <br>
TangerineSDR mailing list<br>
<a href="mailto:TangerineSDR@lists.tapr.org" target="_blank">TangerineSDR@lists.tapr.org</a><br>
<a href="http://lists.tapr.org/mailman/listinfo/tangerinesdr_lists.tapr.org" rel="noreferrer" target="_blank">http://lists.tapr.org/mailman/listinfo/tangerinesdr_lists.tapr.org</a><br>
</blockquote></div>
TangerineSDR mailing list<br>
<a href="mailto:TangerineSDR@lists.tapr.org" target="_blank">TangerineSDR@lists.tapr.org</a><br>
<a href="http://lists.tapr.org/mailman/listinfo/tangerinesdr_lists.tapr.org" rel="noreferrer" target="_blank">http://lists.tapr.org/mailman/listinfo/tangerinesdr_lists.tapr.org</a><br>
</blockquote></div>