CDMS phones also implement the extended version of the CardInfo API,
PhnLibCardInfoEx(UInt16 refNum, CharPtr * manufacturer,
                CharPtr * model, CharPtr * modemSWRev,
                CharPtr * esn, CharPtr * prlRev, CharPtr * hostSWRev,
CharPtr * modemHWRev, CharPtr *priChecksum)
This perportedly returns ESN directly (see CharPtr *esn).

It could be that the extended call should be used on CDMA phones, but I
found the regular call to be more reliable on all samples of the 650. YMMV

--------------------
Jeff Loucks
Work 425-284-1128 [EMAIL PROTECTED]
Home 253-851-8908 [EMAIL PROTECTED]
Mobile 253-691-8812


-----Original Message-----
From: Jeffry Loucks [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 14, 2004 3:39 PM
To: Palm Developer Forum
Subject: RE: Retriving ESN on CDMA Treo devices



The following is for the Treo 600. I haven't figured out the Treo 650 yet
(looking for documentation).

Determine phone type with HsAttrGet(hsAttrPhoneType,0,&temp), eg:
        {
        UInt32 temp;

        HsAttrGet(hsAttrPhoneType,0,&temp);
        if (temp == hsAttrPhoneTypeCDMA)
                ...
        }


Use PhnLibCardInfo(UInt16 refNum, CharPtr* manufacturer, CharPtr* model,
CharPtr* version, CharPtr* serial) to get the ESN on a CDMA Treo600. ESN is
returned as serial.


--------------------
Jeff Loucks
Work 425-284-1128 [EMAIL PROTECTED]
Home 253-851-8908 [EMAIL PROTECTED]
Mobile 253-691-8812


-----Original Message-----
From: Keyur Patwa [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 14, 2004 1:49 PM
To: Palm Developer Forum
Subject: Retriving ESN on CDMA Treo devices


Hi guys,

Can anyone here tell me about the API function that can return the ESN
number for CDMA Treo devices?

I would also like to grab the Device Name (e.g Treo 600 / Treo 650) and tye
type of device (CDMA/GSM) programatically if it is possible!

I am working on Treo 600 and 650 devices only.

Thanks,
Keyur.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to