<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Felix,<div><br></div><div>So, your car install went ok? Glad to hear you can finally make use of this after all your hard work on the graphics and design.</div><div><br></div><div>Eager to hear anything you suggest. We're getting lots of compliments on the iPhone App.</div><div><br></div><div>I also have some graphics refinements to discuss with you (the white boxes have some aliasing artifacts on the diagonal lines, but I need to give you the exact dimensions for this (and work it out for the new iPad retina). I'll try to let you know the details for this later tonight (my time).</div><div><br></div><div>Regards, Mark.</div><div><br><div><div>On 20 Mar 2012, at 12:38 AM, felix bonnier wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div bgcolor="#FFFFFF"><div>mark,</div><div><br></div><div> I will send you some further ideas on the UI which I think still needs some cleaning up, now that I actually have a working unit and can play with all the functions it has been a lot easier to immerse myself in the layout and depth of the app and it's settings</div><div><br></div><div>best</div><div><br></div><div>/fb</div><div><br>Sent from my iPad somewhere in our beautiful universe.......</div><div><br>On 19 Mar, 2012, at 22:25, Mark Webb-Johnson <<a href="mailto:mark@webb-johnson.net">mark@webb-johnson.net</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div><br></div><div>Any Telco engineers here?</div><div><br></div><div>I've been working on the iOS App code to convert the GSM signal strength indicator that comes back from the car into a 5 bar display and dBm value. There doesn't seem to be a standard for this, so I picked the iPhone 4.0.1 levels, as the reportedly the same as AT&T now use and at least I can compare with my iPhone.</div><div><br></div><div>Code looks like this:</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><font class="Apple-style-span" face="'Andale Mono'">  // car_gsmlevel comes back from the car as the output of AT+CSQ</font></div><div><font class="Apple-style-span" face="'Andale Mono'">  // It is reportedly in the range 0..31, 99.</font></div><div><font class="Apple-style-span" face="'Andale Mono'">  int car_gsmlevel = [ovmsAppDelegate myRef].car_gsmlevel;</font></div><div><font class="Apple-style-span" face="'Andale Mono'"><br></font></div><div><font class="Apple-style-span" face="'Andale Mono'">  // Calculate dBm from AT+CSQ signal level</font></div><div><font class="Apple-style-span" face="'Andale Mono'">  int car_gsmdbm = 0;</font></div><div><font class="Apple-style-span" face="'Andale Mono'">  if (car_gsmlevel <= 31)</font></div><div><font class="Apple-style-span" face="'Andale Mono'">    car_gsmdbm = -113 + (car_gsmlevel*2);</font></div><div><font class="Apple-style-span" face="'Andale Mono'"><br></font></div><div><font class="Apple-style-span" face="'Andale Mono'">  // Tell the user about the dBm </font></div><div><font class="Apple-style-span" face="'Andale Mono'">  m_gsm.text = [NSString stringWithFormat:@"%d dBm",car_gsmdbm];</font></div><div><font class="Apple-style-span" face="'Andale Mono'"><br></font></div><div><font class="Apple-style-span" face="'Andale Mono'">  // Calculate the signal bars 0..5</font></div><div><font class="Apple-style-span" face="'Andale Mono'">  int car_signalbars = 0;</font></div><div><font class="Apple-style-span" face="'Andale Mono'">  if ((car_gsmdbm < -121)||(car_gsmdbm >= 0))</font></div><div><font class="Apple-style-span" face="'Andale Mono'">    car_signalbars = 0;</font></div><div><font class="Apple-style-span" face="'Andale Mono'">  else if (car_gsmdbm < -107)</font></div><div><font class="Apple-style-span" face="'Andale Mono'">    car_signalbars = 1;</font></div><div><font class="Apple-style-span" face="'Andale Mono'">  else if (car_gsmdbm < -98)</font></div><div><font class="Apple-style-span" face="'Andale Mono'">    car_signalbars = 2;</font></div><div><font class="Apple-style-span" face="'Andale Mono'">  else if (car_gsmdbm < -87)</font></div><div><font class="Apple-style-span" face="'Andale Mono'">    car_signalbars = 3;</font></div><div><font class="Apple-style-span" face="'Andale Mono'">  else if (car_gsmdbm < -76)</font></div><div><font class="Apple-style-span" face="'Andale Mono'">    car_signalbars = 4;</font></div><div><font class="Apple-style-span" face="'Andale Mono'">  else</font></div><div><font class="Apple-style-span" face="'Andale Mono'">    car_signalbars = 5;</font></div></div></blockquote><div><br></div><div>Does that look ok, or can anyone with experience of this suggest anything better?</div><div><br></div><div>I've got a testflightapp build ready with this, and should be able to release tomorrow morning (my time). Just waiting for some device ids / testflightapp recruits to come in from interested developers who have eMailed me offering to help.</div><div><br></div><div>Regards, Mark.</div><div><br></div><div>P.S. The last 20120318 testflightapp build looks good. Crashes for the past 24 hours have gone to zero and things seem more stable.</div><div><br></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>OvmsDev mailing list</span><br><span><a href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a></span><br><span><a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a></span><br></div></blockquote></div>_______________________________________________<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></blockquote></div><br></div></body></html>