<font style="font-family: arial,helvetica,sans-serif;" size="2">sounds
good, the changes will give a lot more information via the flashing
LEDs.<br /> <br />
pro voting<br /><br />Udo<br />Germany<br /><br />mobil +49171 374
7978<br />
e-mail udo.werges@t-online.de<br />
eFax +49322 23 73 9801<br />
<br />
-----Original Message-----<br />
> Date: Sat, 05 May 2012 10:46:57 +0200<br />
> Subject: Re: [Ovmsdev] Flashing Lights<br />
> From: William Petefish <william.petefish@gmail.com><br />
> To: OVMS Developers <ovmsdev@lists.teslaclub.hk><br />
<br />
<div style="float: left;">> </div><blockquote><div style="position:
relative;"><p style="margin:0px;">#6 has my vote. It may be more complex
in code, but easier to impliment on existing hardware.</p> <p
style="margin:0px;">I guess it could act similar to the old OBD that
cars had prior to OBD2.</p> <p style="margin:0px;">William</p> <div
class="gmail_quote">On May 5, 2012 2:36 AM, "Mark
Webb-Johnson" <<a
href="mailto:mark@webb-johnson.net">mark@webb-johnson.net</a>>
wrote:<br type="attribution" /><blockquote style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"
class="gmail_quote"> <div style="word-wrap: break-word;"><div><br
/></div><div>I've been getting frustrated lately trying to help users
diagnose problems early-on in the GSM connection sequence. We've had
problems with SIMs cards getting recognised (broken sim cards), with sim
locks (PIN lock on), with general modem comms issues, and with lack of
GSM signal - and all these show up as the same red flash, red solid, red
flash, red-green-alternate indicators. Without getting out a USB-serial
cable and laptop, it is real hard to diagnose.</div> <div><br
/></div><div>Talking this through with Bennett, and others, I think we
can do better, and I suggest the following changes:</div><div><br
/></div><div><ol><li>Take the LED control out of the individual code
files and have them controlled by a central module with its own timer.
This module would be told at a high level what to do with the LED (eg;
make the green led flash 7 times) and would make it so.<br /> <br
/></li><li>Both LEDs off would indicate NO POWER.<br /><br /></li><li>On
startup, animate both LEDs for a short time to demonstrate that they
both work.<br /><br /></li><li>Change init code to (a) use AT to verify
modem is connected, (b) check for SIM connected and readable, (c) check
for SIM PIN lock, (d) initialize modem to our required settings, and (e)
AT+COPS for cellular signal search. By splitting this up, to separate
check states, we can individually alert on a failure at a particular
state.<br /> <br /></li><li>In general, use the green LED to show
status, and the red LED to show the last error (cleared whenever a state
is successful).<br /><br /></li><li>On startup, you would see the green
led count up through each stage, and if it got stuck at a particular
stage the blinks would tell you where it is. If there was an error at
any stage, the red LED would indicate the error code.<br /> <br
/></li><li>For blinking, I suggest just off for a second, then rapidly
blink the code, then off for a second, then rapidly blink the code,
etc.<br /><br /></li><li>Once we reach a final GOOD state (either GSM
with GPRS disabled, or GPRS connected to server), we would just turn
both LEDs to a steady blinking pattern (perhaps on for a second, off for
a second).</li> </ol></div><div><br /></div><div>As well as the obvious
clarity to diagnostics that this brings, it would also be for general
use to see at a glance if the module is working correctly and is
connected to the server ok.</div> <div><br /></div><div>What do people
think?</div><div><br /></div><div>Regards, Mark.</div><div><br
/></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">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br
/> <br /></blockquote></div> </div></blockquote></font>