How to Put the Device RTC to Sleep Mode | developer.brewmp.com How to Put the Device RTC to Sleep Mode | developer.brewmp.com

Developer

How to Put the Device RTC to Sleep Mode

Forums:

HI

 

i am using IPHONECTL_SetOperatingMode( pMe->m_pIPhoneCtl,AEET_OPRT_MODE_LPM ) to set the device to sleep mode.But whether this function put the device RTC to sleep Mode

 

Please help me on this???

 

Thanks & Regards

 Pradeep

what to you mean by sleep mode.
you can set below parameter
AEET_OPRT_MODE_PWROFF : Phone is powering off. When modem and microprocessor are shutting down.AEET_OPRT_MODE_FTM : Phone is in factory test mode. Where modem and radio are active for factory programming.AEET_OPRT_MODE_OFFLINE : Phone is in offline mode. Where modem is active but not radio.AEET_OPRT_MODE_OFFLINE_AMPS : Phone is offline analog. Where modem is active but not radio.AEET_OPRT_MODE_OFFLINE_CDMA : phone is offline cdma. Where modem is active but not radio.AEET_OPRT_MODE_ONLINE : phone is online. Where modem and radio is actively performing transmit and receive.AEET_OPRT_MODE_LPM : Phone is in Low Power mode. Where the modem, transmitter and receiver are off but microprocessor is On.
 

what to you mean by sleep mode.
you can set below parameter
AEET_OPRT_MODE_PWROFF : Phone is powering off. When modem and microprocessor are shutting down.AEET_OPRT_MODE_FTM : Phone is in factory test mode. Where modem and radio are active for factory programming.AEET_OPRT_MODE_OFFLINE : Phone is in offline mode. Where modem is active but not radio.AEET_OPRT_MODE_OFFLINE_AMPS : Phone is offline analog. Where modem is active but not radio.AEET_OPRT_MODE_OFFLINE_CDMA : phone is offline cdma. Where modem is active but not radio.AEET_OPRT_MODE_ONLINE : phone is online. Where modem and radio is actively performing transmit and receive.AEET_OPRT_MODE_LPM : Phone is in Low Power mode. Where the modem, transmitter and receiver are off but microprocessor is On.
 

Sleep Mode is Where the Device will not be able to make call or send SMS and when a call is made from other device the device is Unreachable.Whether the Above Parameter put the RTC to Sleep Mode?

Sleep Mode is Where the Device will not be able to make call or send SMS and when a call is made from other device the device is Unreachable.Whether the Above Parameter put the RTC to Sleep Mode?

you can develop application which gets notifications for incoming calls and sms and blocking them on receiving. 

1.      
Register with AEECLSID_PHONENOTIFIER using AEET_NMASK_VOICE_CALLmask via the application MIF file. This can be added to
MIF file as follows:
a.      
Open CIF with resource manager and go to
Applets->Notifications.
b.     
Click Add, select Custom and add notification
details like notifier classid and mask.
c.      
Compile CIF to generate MIF.

ex. code for blocking calls: On
an incoming call, the application receives the EVT_NOTIFY event. The dwParam
for this event is of the type AEENotify where the pData member of this event is
of the type AEETNotifyInfo
 
if (pNotify->dwMask & AEET_NMASK_VOICE_CALL)
{
AEETNotifyInfo * pTNotifyInfo = pNotify->pData;
DBGPRINTF("####Event is %d",pTNotifyInfo->event);
if (pTNotifyInfo && (AEET_EVENT_CALL_INCOM == pTNotifyInfo->event))
{
AEETCallEventData * pTCallEventData = (AEETCallEventData *)&(pTNotifyInfo->event_data);
ICALLMGR_GetCall(pMe->pICallMgr, pTCallEventData->cd, &pMe->pCall);
nError = ICALL_GetInfo(pMe->pCall, &sTCallInfo, sizeof(sTCallInfo));

if (SUCCESS == nError)
{
DBGPRINTF("the length is %s",sTCallInfo.other_party_no);
LogToFile(sTCallInfo.other_party_no);

if(pMe->pCall)
{
nError = ICALL_End(pMe->pCall);
DBGPRINTF("ret=%d", nError );

FREE(pCalls);

Blocking incoming SMS: Use ISMS_SetClientStatus() with AEESMS_CS_BLOCK to block
all incoming SMSes.
 

you can develop application which gets notifications for incoming calls and sms and blocking them on receiving. 

1.      
Register with AEECLSID_PHONENOTIFIER using AEET_NMASK_VOICE_CALLmask via the application MIF file. This can be added to
MIF file as follows:
a.      
Open CIF with resource manager and go to
Applets->Notifications.
b.     
Click Add, select Custom and add notification
details like notifier classid and mask.
c.      
Compile CIF to generate MIF.

ex. code for blocking calls: On
an incoming call, the application receives the EVT_NOTIFY event. The dwParam
for this event is of the type AEENotify where the pData member of this event is
of the type AEETNotifyInfo
 
if (pNotify->dwMask & AEET_NMASK_VOICE_CALL)
{
AEETNotifyInfo * pTNotifyInfo = pNotify->pData;
DBGPRINTF("####Event is %d",pTNotifyInfo->event);
if (pTNotifyInfo && (AEET_EVENT_CALL_INCOM == pTNotifyInfo->event))
{
AEETCallEventData * pTCallEventData = (AEETCallEventData *)&(pTNotifyInfo->event_data);
ICALLMGR_GetCall(pMe->pICallMgr, pTCallEventData->cd, &pMe->pCall);
nError = ICALL_GetInfo(pMe->pCall, &sTCallInfo, sizeof(sTCallInfo));

if (SUCCESS == nError)
{
DBGPRINTF("the length is %s",sTCallInfo.other_party_no);
LogToFile(sTCallInfo.other_party_no);

if(pMe->pCall)
{
nError = ICALL_End(pMe->pCall);
DBGPRINTF("ret=%d", nError );

FREE(pCalls);

Blocking incoming SMS: Use ISMS_SetClientStatus() with AEESMS_CS_BLOCK to block
all incoming SMSes.
 

Mahesh thanks for the info given above I wanted to try that out also ... whether the Above API i,e IPHONECTL_SetOperatingMode()  puts the RTC To sleep Mode ....

Mahesh thanks for the info given above I wanted to try that out also ... whether the Above API i,e IPHONECTL_SetOperatingMode()  puts the RTC To sleep Mode ....

No, You can set only below parameters
AEET_OPRT_MODE_PWROFF : Phone is powering off. When modem and microprocessor are shutting down.AEET_OPRT_MODE_FTM : Phone is in factory test mode. Where modem and radio are active for factory programming.AEET_OPRT_MODE_OFFLINE : Phone is in offline mode. Where modem is active but not radio.AEET_OPRT_MODE_OFFLINE_AMPS : Phone is offline analog. Where modem is active but not radio.AEET_OPRT_MODE_OFFLINE_CDMA : phone is offline cdma. Where modem is active but not radio.AEET_OPRT_MODE_ONLINE : phone is online. Where modem and radio is actively performing transmit and receive.AEET_OPRT_MODE_LPM : Phone is in Low Power mode. Where the modem, transmitter and receiver are off but microprocessor is On.

No, You can set only below parameters
AEET_OPRT_MODE_PWROFF : Phone is powering off. When modem and microprocessor are shutting down.AEET_OPRT_MODE_FTM : Phone is in factory test mode. Where modem and radio are active for factory programming.AEET_OPRT_MODE_OFFLINE : Phone is in offline mode. Where modem is active but not radio.AEET_OPRT_MODE_OFFLINE_AMPS : Phone is offline analog. Where modem is active but not radio.AEET_OPRT_MODE_OFFLINE_CDMA : phone is offline cdma. Where modem is active but not radio.AEET_OPRT_MODE_ONLINE : phone is online. Where modem and radio is actively performing transmit and receive.AEET_OPRT_MODE_LPM : Phone is in Low Power mode. Where the modem, transmitter and receiver are off but microprocessor is On.