Fastrack Supreme is restarting due to voice call


#1

Hi ALL,

I am using the Fastrack Supreme, According to my application i have to use GPS,GPRS and GSM(SMS and Voice call). For GPS i am using the IES connector (eRide GPS module)to trace the vehicle. Fastrack Supreme is rebooting after voice call. This is happening each time when i am dialing to a fixed number. From Fastrack Supreme i am used 2 GPIO’s(GPIO-21, GPIO-25 Interrupt)for GPIO-21i was connected a Panic button, When it is pressed call will goes to a fixed number, after finishing the call Fastrack supreme is rebooting. What is the problem. How to resolve it. Could anybody please help me.

If any body want the code i was written i will send it for review.

Thanks&Regards
ARISE


#2

Hi arisemesh8,
Can you get out the code?
ttt


#3

gpi0-21 use as an interruption input and a Key input? it may cause confusion, normally, when ENC28J60 generate interruption the pin is low ;since you connect to a Key input, when a key is pressed, the pin is low; ENC28J60 may check that it isn’t generate by itself,it must cause by the external MCU,and the MCU must be in reboot state,to be synchronous, ENC28J60 decide to reboot. I am doing a project ,use Q2687 to control ENC28J60.


#4

Hi,

     Below i was posted the voice call code. After making the call Fastrack Supreme is restarting. Could you please tell me what exactly the problem.

/*******************************************************************************************/
bool PanicUnSohdl(adl_atUnsolicited_t *cmd)
{
TRACE((5," Button Pressed "));

//adl_atCmdCreate(Fixed_Number, FALSE, (adl_atRspHandler_t)NULL, NULL);			// ATD080671275788


adl_tmrSubscribe (FALSE, 5, ADL_TMR_TYPE_100MS, DialPanic);
adl_atCmdCreate ("AT+WIOW=21,1", FALSE, (adl_atRspHandler_t) NULL,NULL);
setCallFlag=1;
return TRUE;

}
/*******************************************************************************************/
bool ReleaseCallUnSohdl(adl_atUnsolicited_t *cmd)
{

TRACE((5,"Switch OFF Speaker "));

adl_atCmdCreate ("AT+WIOW=21,0", FALSE, (adl_atRspHandler_t) NULL,NULL);

setCallFlag=0;

return TRUE;

}
/*******************************************************************************************/
void DialPanic()
{

adl_callSetup(Fixed_Number , ADL_CALL_MODE_VOICE);

}
/*******************************************************************************************/
s8 CALL_Handler( u16 Event, u32 Call_ID )
{

		TRACE ((5, "Inside CALL_Handler" ));

		switch (Event) {

		case ADL_CALL_EVENT_BUSY:
			 break;
		case ADL_CALL_EVENT_NO_CARRIER:
		case ADL_CALL_EVENT_RELEASE_ID:
			TRACE ((5, "ADL_CALL_EVENT_NO_CARRIER:" ));
			TRACE ((5, "ADL_CALL_EVENT_RELEASE_ID:" ));
			adl_tmrSubscribe (FALSE, 1, ADL_TMR_TYPE_100MS, ATHUnSohdl);
			adl_callHangup();
			break;
		case ADL_CALL_EVENT_HANGUP_OK:
			TRACE ((5, "ADL_CALL_EVENT_HANGUP_OK:" ));
			 break;
		case ADL_CALL_EVENT_RING_VOICE:  // voice phone call ringing
			 TRACE ((5, "ADL_CALL_EVENT_RING_VOICE:" ));
			 break;
		case ADL_CALL_EVENT_SETUP_OK:
			TRACE ((5, "ADL_CALL_EVENT_SETUP_OK:" ));
			 break;
		case ADL_CALL_EVENT_NO_ANSWER:
			TRACE ((5, "ADL_CALL_EVENT_NO_ANSWER:" ));
			adl_tmrSubscribe (FALSE, 1, ADL_TMR_TYPE_100MS, ATHUnSohdl);
			adl_callHangup();
			 break;
		case ADL_CALL_EVENT_ANSWER_OK:
			TRACE ((5, "ADL_CALL_EVENT_ANSWER_OK:" ));
			 break;
		case ADL_CALL_EVENT_ANSWER_OK_FROM_EXT:
			TRACE ((5, "ADL_CALL_EVENT_ANSWER_OK_FROM_EXT:" ));
				break;
		default:

			break;

}
return TRUE;
}
/*******************************************************************************************/
void SimHandler(u8 Event)
{
if(Event == ADL_SIM_STATE_FULL_INIT)
{
TRACE ((5, “Sim Fully Initialsed” ));
wm_strcat(imei,"");
Boot_Config();
}
}

//
void adl_main ( adl_InitType_e InitType )
{
adl_simSubscribe (SimHandler, NULL );
adl_callSubscribe(CALL_Handler); //SUBSCRIBING FOR CALL
}
/
/