support library for C027 helper functions for Buffer Pipes, Buffered Serial Port (rtos capable) and GPS parsing. It includes modem APIs for USSD, SMS and Sockets.

Dependents:   HTTPClient_Cellular_HelloWorld Cellular_HelloMQTT MbedSmartRestMain Car_Bon_car_module ... more

This library is intended to be used with u-blox products such as the C027 or a shield with u-blox cellular and GPS modules like the cellular and positioning shield from Embedded Artist.

For 2G/GSM and 3G/UMTS you need to:

  • have a SIM card and know its PIN number
  • need to know you network operators APN setting These setting should be passed to the connect or init and join functions. You can also extend the APN database in MDMAPN.h.

For CDMA products you need to make sure that you have provisioned and activated the modem with either Sprint or Verizon.

Committer:
mazgch
Date:
Thu Apr 10 13:05:45 2014 +0000
Revision:
35:9275215a3a5b
Parent:
19:2b5d097ca15d
Child:
42:6786401ba18c
fix low power mode

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mazgch 0:cb2d45baaca3 1 #pragma once
mazgch 0:cb2d45baaca3 2
mazgch 2:b6012cd91657 3 #include "mbed.h"
mazgch 0:cb2d45baaca3 4 #include "Pipe.h"
mazgch 0:cb2d45baaca3 5
mazgch 15:5eda64e5b9d1 6 #define _SerialPipeBase SerialBase
mazgch 15:5eda64e5b9d1 7
mazgch 15:5eda64e5b9d1 8 class SerialPipe : public _SerialPipeBase
mazgch 0:cb2d45baaca3 9 {
mazgch 9:e7a5959ffae1 10 public:
mazgch 15:5eda64e5b9d1 11 SerialPipe(PinName tx, PinName rx, int rxSize = 128, int txSize = 128);
mazgch 9:e7a5959ffae1 12 virtual ~SerialPipe(void);
mazgch 9:e7a5959ffae1 13 // tx channel
mazgch 13:e2446fcdc246 14 int writeable(void);
mazgch 13:e2446fcdc246 15 int putc(int c); // blocking
mazgch 15:5eda64e5b9d1 16 int put(const void* buffer, int length, bool blocking);
mazgch 9:e7a5959ffae1 17 // rx channel
mazgch 9:e7a5959ffae1 18 int readable(void);
mazgch 13:e2446fcdc246 19 int getc(void); // blocking
mazgch 15:5eda64e5b9d1 20 int get(void* buffer, int length, bool blocking);
mazgch 13:e2446fcdc246 21 protected:
mazgch 9:e7a5959ffae1 22 void rxIrqBuf(void);
mazgch 9:e7a5959ffae1 23 void txIrqBuf(void);
mazgch 13:e2446fcdc246 24 void txStart(void);
mazgch 9:e7a5959ffae1 25 Pipe<char> _pipeRx;
mazgch 9:e7a5959ffae1 26 Pipe<char> _pipeTx;
mazgch 9:e7a5959ffae1 27 };