Re: trouble detecting Samsung SPH-M500's model data
"Sandy Patterson" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm running into this same problem. I'm not sure how it should be
fixed. It looks as though the m500 responds to the AT+GMM command with
a simple string that doesn't include the "+GMM: " part .... it does
include this part of the response for the +GMR and +GMI commands. So,
if I just change a line in phone_detect.py somewhere around 107.
#return ': '.join(resp[0].split(': ')[1:])
return resp[0]
then it detects the phone right. I don't think breaking detection for
every other phone is the correct solution though. Before the change
the model detected is blank. I'm also hesitant to muck about with this
part of the code since i can't test on any other phones.
I did figure out that I could change the modelresp packet (form the
one in p_samsung_packet.p) to model this not returning the command
itself, but it didn't change the phone detection.
Thanks,
Sandy Patterson
2007/9/12 Chris Peterson <[email protected]>:
> hi Joe,
>
> Following the example of many other Samsang phones' com_samsung*.py files, I
> tested using the com_samsungspha620 Phone class and then just
> com_samsung_packet Phone class.
>
> I'm not sure how, but I know I was reading the phone's AT GMM model
> correctly because I made the following notes in my dev notes text file:
>
> __check_profile: e = {'mode_modem': False, 'mode_brew': True,
> 'firmwareresponse': None, 'esn': '18D497DE', 'model': 'SPH-M500/154',
> 'firmware_version': '+GMR: ES.M500 1 [Nov 03 2006 16:17:56]',
> 'manufacturer': '+GMI: SAMSUNG ELECTRONICS CO., LTD.'}
>
> As you can see, both the ESN and Model were correctly initialized, but now
> only firmware_version and manufacturer get are initialized:
>
> __get_data: r = {'mode_modem': True, 'mode_brew': False, 'firmwareresponse':
> None, 'esn': '', 'model': '', 'firmware_version': 'ES.M500 1 [Nov 03
> 2006 16:17:56]', 'manufacturer': 'SAMSUNG ELECTRONICS CO., LTD.'}
>
>
> thanks,
> chris
>
>
>
>
> >>I've created stub files for com_samsungsphm500.py and
> >>p_samsungsphm500.p
> >
> >What's the parent class for your Phone class?
> >
> >-Joe Pham
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> BitPim-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bitpim-devel
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/