Simple detection for LE910-NA1 modules
Fork of MTS-Cellular by
Diff: Cellular/Cellular.cpp
- Revision:
- 69:93dace69ee98
- Parent:
- 65:2cdd943bb3a3
- Child:
- 76:6eeffc10739d
--- a/Cellular/Cellular.cpp Tue Oct 21 21:14:13 2014 +0000 +++ b/Cellular/Cellular.cpp Tue Nov 11 17:54:06 2014 +0000 @@ -71,6 +71,12 @@ return "MTSMC-EV3-IP"; case MTSMC_C2_IP: return "MTSMC-C2-IP"; + case MTSMC_LAT1: + return "MTSMC_LAT1"; + case MTSMC_LEU1: + return "MTSMC_LEU"; + case MTSMC_VW2: + return "MTSMC_VW2"; default: return "UNKNOWN ENUM"; } @@ -217,7 +223,7 @@ done = true; } - if(type == MTSMC_H5 || type == MTSMC_G3 || type == MTSMC_EV3 || type == MTSMC_C2) { + if(type == MTSMC_H5 || type == MTSMC_G3 || type == MTSMC_EV3 || type == MTSMC_C2 || type == MTSMC_LAT1) { if (result.find("CONNECT\r\n") != std::string::npos) { done = true; } @@ -249,7 +255,7 @@ { string csmp; - if (type == MTSMC_H5_IP || type == MTSMC_H5 || type == MTSMC_G3) { + if (type == MTSMC_H5_IP || type == MTSMC_H5 || type == MTSMC_G3 || type == MTSMC_LAT1) { csmp = "AT+CSMP=17,167,0,0"; } else if (type == MTSMC_EV3_IP || type == MTSMC_EV3 || type == MTSMC_C2_IP || type == MTSMC_C2) { csmp = "AT+CSMP=,4098,0,2"; @@ -320,7 +326,7 @@ } //Start of SMS message std::vector<std::string> vSmsParts = Text::split(line, ','); - if (type == MTSMC_H5_IP || type == MTSMC_H5 || type == MTSMC_G3) { + if (type == MTSMC_H5_IP || type == MTSMC_H5 || type == MTSMC_G3 || type == MTSMC_LAT1) { /* format for H5 and H5-IP radios * <index>, <status>, <oa>, <alpha>, <scts> * scts contains a comma, so splitting on commas should give us 6 items