<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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></body></html>