{
unsigned int data_len = 0;
char data[] = "AT+CPAS";
+
dbg("TIMEOUT for 1st AT Command !!!!! NO Response for initial AT command. Resending it");
data_len = sizeof(data);
void on_response_bootup_subscription(TcorePending *p, int data_len, const void *data, void *user_data)
{
const TcoreATResponse *resp = data;
+
dbg("entry of on_response_bootup_subscription() - response comes\n");
if (resp->success) {
void on_response_last_bootup_subscription(TcorePending *p, int data_len, const void *data, void *user_data)
{
const TcoreATResponse *resp = data;
+
dbg("enry of on_response_last_bootup_subscription() - final response comes\n");
if (resp->success) {
dbg("SEND OK");
{
CoreObject *o = 0;
TcoreHal *h = 0;
+
o = tcore_pending_ref_core_object(p);
h = tcore_object_get_hal(o);
/* XBCSTAT subscription */
prepare_and_send_pending_request(plugin, "sap", "at+xbcstat=1", NULL, TCORE_AT_NO_RESULT, on_response_bootup_subscription);
+ /* AGPS- assist data and reset assist data subscription */
+ prepare_and_send_pending_request(plugin, "gps", "at+cposr=1", NULL, TCORE_AT_NO_RESULT, on_response_bootup_subscription);
+
+ prepare_and_send_pending_request(plugin, "gps", "at+xcposr=1", NULL, TCORE_AT_NO_RESULT, on_response_bootup_subscription);
/* text/pdu mode subscription*/
prepare_and_send_pending_request(plugin, "umts_sms", "at+cmgf=0", NULL, TCORE_AT_NO_RESULT, on_response_last_bootup_subscription);
TcorePlugin *plugin = NULL;
TcoreHal *hal = NULL;
TReturn ret;
+
dbg("Entry");
/* IMC Plugin dereferenced from pending request */
{
TcoreHal *hal = NULL;
TcorePending *pending = NULL;
+
dbg("Entered");
/* HAL has type itself,
static gboolean on_event_mux_channel_up(CoreObject *o, const void *event_info, void *user_data)
{
TcorePlugin *plugin = NULL;
+
dbg("Entry");
plugin = (TcorePlugin *) user_data;
TcorePending *pending = NULL;
hal = tcore_object_get_hal(o);
- if(FALSE == tcore_hal_get_power_state(hal)){
+ if (FALSE == tcore_hal_get_power_state(hal)) {
dbg("cp not ready/n");
return TCORE_RETURN_ENOSYS;
}
TcorePending *pending = NULL;
hal = tcore_object_get_hal(o);
- if(FALSE == tcore_hal_get_power_state(hal)){
+ if (FALSE == tcore_hal_get_power_state(hal)) {
dbg("cp not ready/n");
return TCORE_RETURN_ENOSYS;
}
char *cmd_str = NULL;
hal = tcore_object_get_hal(o);
- if(FALSE == tcore_hal_get_power_state(hal)){
+ if (FALSE == tcore_hal_get_power_state(hal)) {
dbg("cp not ready/n");
return TCORE_RETURN_ENOSYS;
}