// 更新runtime状态
cat1_api_runtime_set_cat1_imei(imei_temp);
- PPP_DEBUG_INFO("Updated IMEI: %s", imei_temp);
+ PPP_DEBUG_CRITICAL("Updated IMEI: %s", imei_temp);
return ERRCODE_SUCC;
}
// 更新runtime状态
cat1_api_runtime_set_cat1_signal(signal);
- PPP_DEBUG_INFO("Updated signal strength: %d", signal);
+ PPP_DEBUG_CRITICAL("Updated signal strength: %d", signal);
return ERRCODE_SUCC;
}
// 更新runtime状态
cat1_api_runtime_set_cat1_operator(operator_temp);
- PPP_DEBUG_INFO("Updated operator: %s", operator_temp);
+ PPP_DEBUG_CRITICAL("Updated operator: %s", operator_temp);
return ERRCODE_SUCC;
}
// 更新runtime状态
cat1_api_runtime_set_cat1_iccid(iccid_temp);
- PPP_DEBUG_INFO("Updated ICCID: %s", iccid_temp);
+ PPP_DEBUG_CRITICAL("Updated ICCID: %s", iccid_temp);
return ERRCODE_SUCC;
}
// 更新runtime状态
cat1_api_runtime_set_cat1_modemver(version_temp);
- PPP_DEBUG_INFO("Updated modem version: %s", version_temp);
+ PPP_DEBUG_CRITICAL("Updated modem version: %s", version_temp);
return ERRCODE_SUCC;
}
if (ret == ERRCODE_SUCC) {
// 根据网络注册状态设置网络连接状态
uint8_t network_on = (network_status == 1 || network_status == 5) ? 1 : 0;
- cat1_api_runtime_set_cat1_networkstat(network_on);
+ // cat1_api_runtime_set_cat1_networkstat(network_on);
cat1_api_runtime_set_cat1_networktype(network_status);
- PPP_DEBUG_INFO("Updated network status (CREG): %d, network_on: %d", network_status, network_on);
+ PPP_DEBUG_CRITICAL("Updated network status (CREG): %d, network_on: %d", network_status, network_on);
free(response);
return ERRCODE_SUCC;
}
uint8_t network_on = (network_status == 1 || network_status == 5) ? 1 : 0;
// cat1_api_runtime_set_cat1_networkstat(network_on);
cat1_api_runtime_set_cat1_networktype(network_status);
- PPP_DEBUG_INFO("Updated network status (CEREG): %d, network_on: %d", network_status, network_on);
+ PPP_DEBUG_CRITICAL("Updated network status (CEREG): %d, network_on: %d", network_status, network_on);
return ERRCODE_SUCC;
}
// 如果CCID命令成功,说明SIM卡正常
cat1_api_runtime_set_cat1_simstat(1); // 1表示SIM卡正常
- PPP_DEBUG_INFO("SIM card detected and normal");
+ PPP_DEBUG_CRITICAL("SIM card detected and normal");
return ERRCODE_SUCC;
}