Hi,

Has anyone had any trouble with the function PhnLibModulePowered on the
Centro and 755P devices? 

We're using it to test whether the radio is powered on.

We're turning the radio on using HsTurnRadioOn() and have even tried
PhnLibSetModulePower(UInt16, Boolean) but PhnLibModulePowered is aways
returning a zero on these two phones.

I've copied and pasted the relevant documentation from the headers. I'm
afraid the SDK docs didn't really explain anything.

I noticed that the documentation is written that the return value is an
Err, when it isn't declared as doing so.

Does anyone know for sure if the Centro and T755P are returning an Err
when they should be returning a PhnPowerType/_PhnPowerType enum value?

This is the only explanation I have for why our code is interpreting a
zero return value (errNone...?) as 'phnPowerOff'.

If anyone can help with my query or share any knowledge, it's really
appreciated. I've tried searching around but couldn't find anything
mentioned anywhere that described this behaviour on these two phones.
The only alternative we have is to put a special case in our code to
test the sysFtrNumOEMDeviceID, but this is a bit of a cludge and I'm not
sure if it's just a side-effect of some other issue on these phones.

As I say, if anyone can help, it's very much appreciated.

We're testing on a United States Sprint VDL Centro and 755P.

We've tested fine on the Sprint VDL Treo 650 and 700P.

Many thanks,
Dave

David Birdsall
Software Engineer
mxData Ltd

Telephone: +44 (0)1625 526644
Email:     [EMAIL PROTECTED]
Web:       http://www.mxdata.co.uk/



Attached are the headers :-



<HsPhoneTypes.h>

/**
 *  Power state of the radio
 **/
enum _PhnPowerType
  {
    phnPowerOff,              /**<        */
    phnPowerOn,               /**<        */
    phnPowerStartCharging,    /**<        */
    phnPowerStopCharging,     /**<        */
    phnPowerLow,                      /**<        */
    phnPowerSave              /**< Modem goes to deep sleep after
failing to search for service */
  };

typedef UInt8 PhnPowerType;   /**<        */

<HsPhonePower.h>

/**
 *  @brief 
 *  
 *  @param refNum:      IN:   
 *  @retval Err Error code.
 **/
  extern PhnPowerType PhnLibModulePowered (UInt16 refNum)
      PHN_LIB_TRAP (PhnLibTrapModulePowered);

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to