STM32F411 Example of MTSAS Cell Connection Using T-Mobile Data SIM
Dependencies: mbed
Revision 14:025cccfe4215, committed 2014-09-18
- Comitter:
- SeanNewton
- Date:
- Thu Sep 18 21:37:20 2014 +0000
- Parent:
- 13:699045e9cce9
- Commit message:
- Initial Rev using T-Mobile Data SIM
Changed in this revision
--- a/main.cpp Wed Aug 13 14:28:07 2014 +0000 +++ b/main.cpp Thu Sep 18 21:37:20 2014 +0000 @@ -3,11 +3,11 @@ int main(){ //Modify to match your apn if you are using an HSPA radio with a SIM card - const char APN[] = ""; - + const char APN[] = "epc.tmobile.com"; + printf("Starting...\n"); //Sets the log level to INFO, higher log levels produce more log output. //Possible levels: NONE, FATAL, ERROR, WARNING, INFO, DEBUG, TRACE - MTSLog::setLogLevel(MTSLog::INFO_LEVEL); + MTSLog::setLogLevel(MTSLog::TRACE_LEVEL); /** STMicro Nucelo F401RE * The supported jumper configurations of the MTSAS do not line up with @@ -18,7 +18,7 @@ * Uncomment the following line to use the STMicro Nuceleo F401RE */ MTSSerialFlowControl* io = new MTSSerialFlowControl(D8, D2, D3, D6); - + printf("FlowControl...\n"); /** Freescale KL46Z * To configure the serial pins for the Freescale KL46Z board, use MTSAS jumper * configuration B. Uncomment the following line to use the Freescale KL46Z board @@ -33,17 +33,17 @@ //Sets the baud rate for communicating with the radio io->baud(115200); - + printf("Baud...\n"); //Create radio object Cellular* radio = CellularFactory::create(io); - + printf("CellularFactory...\n"); if (! radio) { logFatal("Failed to initialize radio"); return 1; } radio->configureSignals(D4,D7,RESET); Transport::setTransport(radio); - + printf("setTransport...\n"); //Set radio APN for (int i = 0; i < 10; i++) { if (i >= 10) {
--- a/mbed.bld Wed Aug 13 14:28:07 2014 +0000 +++ b/mbed.bld Thu Sep 18 21:37:20 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1 \ No newline at end of file
--- a/mtsas.lib Wed Aug 13 14:28:07 2014 +0000 +++ b/mtsas.lib Thu Sep 18 21:37:20 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Multi-Hackers/code/mtsas/#b599bdb14c12 +http://mbed.org/teams/Multi-Hackers/code/mtsas/#2e4b1146a1ae