+ if (!strncmp(buffer, "AT+C", 4)) {
+ if (*(buffer+4) =='G') {
+ REPLY_SIMPLETEXT(buffer+5, line2, "SN", data->Imei);
+ REPLY_SIMPLETEXT(buffer+5, line2, "MM", data->Model);
+ REPLY_SIMPLETEXT(buffer+5, line2, "MI", data->Manufacturer);
+ REPLY_SIMPLETEXT(buffer+5, line2, "MR", data->Revision);
+ } else if (!strncmp(buffer+4, "SQ", 2)) {
+ ReplyRFLevel(data, line2, error);
+ } else if (!strncmp(buffer+4, "BC", 2)) {
+ ReplyBattery(data, line2, error);
+ } else if (!strncmp(buffer+4, "PB", 2)) {
+ if (*(buffer+6) == 'S') {
+ ReplyMemoryStatus(data, line2, error);
+ } else if (*(buffer+6) == 'R') {
+ ReplyReadPhonebook(data, line2, error, length);
+ }
+ }
+ }