Example program for UART power saving configuration of cellular modem. This program can be used with UBLOX_C030_R412M board. It has nothing to do with 3GPP power saving mode.
Dependencies: ublox-at-cellular-interface ublox-cellular-base ublox-cellular-base-n2xx ublox-at-cellular-interface-n2xx
Diff: main.cpp
- Revision:
- 3:8f43ffa0251e
- Parent:
- 2:0d940d7fc284
--- a/main.cpp Mon Jun 17 17:06:17 2019 +0500 +++ b/main.cpp Mon Jun 24 12:49:40 2019 +0500 @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - #include "mbed.h" #include "UbloxATCellularInterface.h" #include "UbloxATCellularInterfaceN2xx.h" @@ -27,9 +26,9 @@ // UbloxATCellularInterfaceN2xx - Y - // Note: the N211 module supports only UDP, not TCP -// UbloxATCellularInterface and UbloxATCellularInterfaceN2xx uses an IP stack on the cellular -// module and hence uses less RAM (significant on C027). This also -// allows other AT command operations (e.g. sending an SMS) to happen +// UbloxATCellularInterface and UbloxATCellularInterfaceN2xx +// uses an IP stack on the cellular module and hence uses less RAM (significant on C027). +// This also allows other AT command operations (e.g. sending an SMS) to happen // during a data transfer (for which you should replace the // UbloxATCellularInterface library with the UbloxATCellularInterfaceExt // library). However, it is slower than using the LWIP/PPP on the mbed @@ -156,11 +155,10 @@ #endif /* This example program for the u-blox C030 and C027 boards instantiates - * the UbloxATCellularInterface or OnboardCellularInterface and uses it - * to make a simple sockets connection to a server, using 2.pool.ntp.org - * for UDP and developer.mbed.org for TCP. For a more comprehensive example, - * where higher layer protocols make use of the same sockets interface, - * see example-ublox-mbed-client. + * the UbloxATCellularInterface and uses it to make a simple sockets + * connection to a server, using 2.pool.ntp.org for UDP and developer.mbed.org for TCP. + * For a more comprehensive example, where higher layer protocols + * make use of the same sockets interface, see example-ublox-mbed-client. * Progress may be monitored with a serial terminal running at 9600 baud. * The LED on the C030 board will turn green when this program is * operating correctly, pulse blue when a sockets operation is completed @@ -203,7 +201,7 @@ interface->set_credentials(APN, USERNAME, PASSWORD); interface->init(PIN); - printf("Checking if already registered !\n"); + printf("Checking if already registered!\n"); if ( (interface->is_registered_csd() || interface->is_registered_psd() || interface->is_registered_eps()) ) { printf("De-registering...\n\n"); @@ -254,7 +252,7 @@ #endif #endif - printf("Getting the IP address of \"developer.mbed.org\" and \"2.pool.ntp.org\"...\n"); + printf("Getting the IP address of \"" TCP_SERVER "\" and \"2.pool.ntp.org\"...\n"); if ((interface->gethostbyname("2.pool.ntp.org", &udpServer) == 0) && (interface->gethostbyname(TCP_SERVER, &tcpServer) == 0)) { pulseEvent();