Phone auto-detection
"Roger Binns" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <003401c5495d$99301ae0$3501a8c0@rogersqyvr14d3> |
Joe, Please can you do some more updates the phone detection code. Firstly see if you can talk to all the ports in parallel (ie use multiple threads) otherwise things get quite slow. (In the short term you could also set the timeout to one second instead of the default 3). The code seems to believe it can send AT commands at anything and seems to wait an infinite amount of time for responses. With the LG diagnostics interface, this should not be done. I'd recommend filtering the list of com ports first and only send AT commands to modem devices (ie not to serial devices) The current code hangs (well I had to control-C BitPim after 4 minutes) when sending AT commands to the diagnostic interface of an LG phone. It is a good idea to put something in the log since users won't see the console output. I'd be happy for it to be a lot and be verbose until the feature is reliable. You should also only grab the list of ports that at least one phone module has in its auto-detection list. That will avoid talking to ports we know that no phone model is interested in. (I can assure you that BitPim can only confuse my GPS :-) Do not send AT$CDMG. If sent on the USB modem interface of an LG phone, it switches the diagnostics to use the serial interface (most LG phones can be talked to over a serial interface or a composite USB interface). Once that switch has happened then the phone can't be talked to unless the user goes in and changes some settings in a hidden service menu. Roger ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click