Change-Id: Id8acf975a48865a8d355dd269d63941a2f5e4ca1
# install
INSTALL(TARGETS imc-plugin
# install
INSTALL(TARGETS imc-plugin
- LIBRARY DESTINATION lib/telephony/plugins)
+ LIBRARY DESTINATION lib/telephony/plugins/modems)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/res/wiki_mcc_mnc_oper_list.sql DESTINATION /tmp RENAME mcc_mnc_oper_list.sql)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME tel-plugin-imc)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/res/wiki_mcc_mnc_oper_list.sql DESTINATION /tmp RENAME mcc_mnc_oper_list.sql)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME tel-plugin-imc)
-%{_libdir}/telephony/plugins/*
+%{_libdir}/telephony/plugins/modems/*
/tmp/mcc_mnc_oper_list.sql
/usr/share/license/tel-plugin-imc
/tmp/mcc_mnc_oper_list.sql
/usr/share/license/tel-plugin-imc
gboolean result,
void *user_data)
{
gboolean result,
void *user_data)
{
- dbg("on_confirmation_modem_message_send - msg out from queue.");
+ dbg("msg out from queue");
dbg("%s", result == FALSE ? "SEND FAIL" : "SEND OK");
}
dbg("%s", result == FALSE ? "SEND FAIL" : "SEND OK");
}
TcorePlugin *plugin = user_data;
const TcoreATResponse *resp = data;
TcorePlugin *plugin = user_data;
const TcoreATResponse *resp = data;
- dbg("entry of on_response_bootup_subscription() - response comes\n");
+ if (resp->success > 0) {
+ } else {
+ dbg("result ERROR");
+ }
if (plugin != NULL)
modem_power_on(plugin);
if (plugin != NULL)
modem_power_on(plugin);
static void prepare_and_send_pending_request(CoreObject *co, const char *at_cmd, const char *prefix, enum tcore_at_command_type at_cmd_type, TcorePendingResponseCallback callback);
static void on_confirmation_modem_message_send(TcorePending *p, gboolean result, void *user_data); // from Kernel
static void prepare_and_send_pending_request(CoreObject *co, const char *at_cmd, const char *prefix, enum tcore_at_command_type at_cmd_type, TcorePendingResponseCallback callback);
static void on_confirmation_modem_message_send(TcorePending *p, gboolean result, void *user_data); // from Kernel
-void on_response_bootup_subscription(TcorePending *p, int data_len, const void *data, void *user_data);
-void on_response_last_bootup_subscription(TcorePending *p, int data_len, const void *data, void *user_data);
+static void on_response_network_registration(TcorePending *p, int data_len, const void *data, void *user_data);
static void on_response_enable_proactive_command(TcorePending *p, int data_len, const void *data, void *user_data);
static void on_confirmation_modem_message_send(TcorePending *p, gboolean result, void *user_data)
static void on_response_enable_proactive_command(TcorePending *p, int data_len, const void *data, void *user_data);
static void on_confirmation_modem_message_send(TcorePending *p, gboolean result, void *user_data)
+static void on_response_network_registration(TcorePending *p, int data_len, const void *data, void *user_data)
+{
+ const TcoreATResponse *resp = data;
+
+ if (resp->success > 0) {
+ dbg("registration attempt OK");
+ } else {
+ dbg("registration attempt failed");
+ }
+}
+
void prepare_and_send_pending_request(CoreObject *co, const char *at_cmd, const char *prefix, enum tcore_at_command_type at_cmd_type, TcorePendingResponseCallback callback)
{
TcoreATRequest *req = NULL;
void prepare_and_send_pending_request(CoreObject *co, const char *at_cmd, const char *prefix, enum tcore_at_command_type at_cmd_type, TcorePendingResponseCallback callback)
{
TcoreATRequest *req = NULL;
dbg("SIM ready. request COPS & remove callback");
dbg("power on done set for proactive command receiving mode");
prepare_and_send_pending_request(o, "AT+CFUN=6", NULL, TCORE_AT_NO_RESULT, on_response_enable_proactive_command);
dbg("SIM ready. request COPS & remove callback");
dbg("power on done set for proactive command receiving mode");
prepare_and_send_pending_request(o, "AT+CFUN=6", NULL, TCORE_AT_NO_RESULT, on_response_enable_proactive_command);
- prepare_and_send_pending_request(o, "AT+COPS=0", NULL, TCORE_AT_NO_RESULT, on_response_bootup_subscription);
+ prepare_and_send_pending_request(o, "AT+COPS=0", NULL, TCORE_AT_NO_RESULT, on_response_network_registration);