<div dir="ltr"><div><div><div>OK - either this code is broken, or my OVMS is.<br><br></div>I flashed the code and set the unit up - no go, kept rebooting and the GPRS does not work.<br><br></div>Rebuild from clean. Reflashed, reloaded settings and still constant rebooting and GPRS does not work.<br>

<br></div>Matt<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 September 2013 10:24, Thomas Bergo <span dir="ltr"><<a href="mailto:thomas.bergo@gmail.com" target="_blank">thomas.bergo@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Have tested and fixed a lot of errors this weekend. and i believe that the code is now in a state where it can be merged into the main project.<br>

</div><div><br></div><div>Have pushed a release 1.3 to my fork on GitHub.</div>
<div><br></div><div><div>Changes:</div><div>1.3  23.09.13 (Thomas)</div><div>- Fixed charging notification when battery is full, SOC=100%</div><div>- TODO: Fix battery temperature reading. </div><div>1.2  22.09.13 (Thomas)</div>


<div>- Fixed Ideal range</div><div>- Added parking timer</div><div>- Added detection of car is asleep.</div><div>1.1  21.09.13 (Thomas)</div><div> - Fixed ODO</div><div> - Fixed filter and mask for poll0 (thanks to Matt Beard)</div>


<div> - Verified estimated range</div><div> - Verified SOC</div><div> - Verified Charge state</div><div> - Added battery temperature reading (thanks to Matt Beard)</div><div>1.0  Initial release</div></div><div><br></div>


<div>Regards, Thomas</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/21 Thomas Bergo <span dir="ltr"><<a href="mailto:thomas.bergo@gmail.com" target="_blank">thomas.bergo@gmail.com</a>></span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks to you all for participate.</div><div><br></div>Managed to spend some time on this project yesterday and this this evening.<div>


<br></div><div>Yesterday i was able to fix the ODO. And thanks to Matt i was able test the SOC, ideal range and Charge state. </div>
<div>Added the battery temperature reading form Matt's code.</div><div><br></div><div>My car is reporting range and ODO in Km, so added support to handle both miles and Km for ODO and Range based on can_mileskm.<br></div>


<div>
<div><br></div><div><i>"<span style="font-family:arial,sans-serif;font-size:13px">To receive all 0x3nn messages we could use filter SID 0x300 and mask 0x700, but I am worried that may cause a flood of messages.</span>"</i></div>



</div><div>The current code runs with this filter and mask, ans seems to be stable so far.</div><div><br></div><div>Still see some errors with the ideal range and the temperature reading. The app is reporting PEM: -125C, Motor: 144C and Battery: 5C </div>



<div><br></div><div>Pushed  the code with updates from Matt to GitHub.</div><div><br></div><div>Regards, Thomas</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/21 Michael Jochum <span dir="ltr"><<a href="mailto:mikeljo@mac.com" target="_blank">mikeljo@mac.com</a>></span><br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div style="word-wrap:break-word">Hi,<div><br></div><div>You can only set the Mask and Filter in a Configuraton Mode.</div>



<div><br></div><div>From Datasheet:</div><div>
                
        
        
                <div title="Page 327">
                        <div>
                                <div><p><span style="font-size:10.000000pt;font-family:'Arial'">23.3.1 CONFIGURATION MODE
</span></p><p><span style="font-size:9.000000pt;font-family:'Arial'">The CAN module has to be initialized before the
activation. This is only possible if the module is in the
Configuration mode. The Configuration mode is
requested by setting the REQOP2 bit. Only when the
status bit, OPMODE2, has a high level can the initial-
ization be performed. Afterwards, the Configuration
registers, the Acceptance Mask registers and the
Acceptance Filter registers can be written. The module
is activated by setting the REQOP control bits to zero.
</span></p><p><span style="font-size:9.000000pt;font-family:'Arial'">The module will protect the user from accidentally
violating the CAN protocol through programming
errors. All registers which control the configuration of
the module can not be modified while the module is on-
line. The CAN module will not be allowed to enter the
Configuration mode while a transmission or reception
is taking place. The Configuration mode serves as a
lock to protect the following registers:
</span></p><p><span style="font-size:9.000000pt;font-family:'Arial'">• ConfigurationRegisters<br>
• FunctionalModeSelectionRegisters
• BitTimingRegisters<br>
• IdentifierAcceptanceFilterRegisters
• IdentifierAcceptanceMaskRegisters
• FilterandMaskControlRegisters<br>
• MaskSelectionRegisters
</span></p><p><span style="font-size:9.000000pt;font-family:'Arial'">In the Configuration mode, the module will not transmit
or receive. The error counters are cleared and the
interrupt flags remain unchanged. The programmer will
have access to Configuration registers that are access
restricted in other modes.</span></p><p><span style="font-size:9.000000pt;font-family:'Arial'">-----------</span></p><p><span style="font-size:9.000000pt;font-family:'Arial'"> I don't believe that it will work without bad sideeffects.</span></p>



<div><br></div><div>Bye</div><div>michael</div><div><br></div><div><br></div>
                                </div>
                        </div>
                </div><div><div>Am 21.09.2013 um 11:32 schrieb Matt Beard OVMS <<a href="mailto:smvo@mxf.org.uk" target="_blank">smvo@mxf.org.uk</a>>:</div><div><br><blockquote type="cite"><span style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none">I may also try modifying the RX0 mask during the 1-second poll so that it cycles through filtering a single SID each time, meaning that it will take 4 seconds for a full update. I don't think this will be an issue as none of this data is fast changing.</span><br style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">



</blockquote></div></div><br></div></div><br></div></div><div>_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.teslaclub.hk" target="_blank">OvmsDev@lists.teslaclub.hk</a><br>
<a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br>
<a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br>
<br></blockquote></div><br></div>