source: rtos_arduino/trunk/arduino_lib/libraries/GSM/src/GSM3ShieldV1CellManagement.h@ 136

Last change on this file since 136 was 136, checked in by ertl-honda, 8 years ago

ライブラリとOS及びベーシックなサンプルの追加.

File size: 2.4 KB
Line 
1/*
2This file is part of the GSM3 communications library for Arduino
3-- Multi-transport communications platform
4-- Fully asynchronous
5-- Includes code for the Arduino-Telefonica GSM/GPRS Shield V1
6-- Voice calls
7-- SMS
8-- TCP/IP connections
9-- HTTP basic clients
10
11This library has been developed by Telefónica Digital - PDI -
12- Physical Internet Lab, as part as its collaboration with
13Arduino and the Open Hardware Community.
14
15September-December 2012
16
17This library is free software; you can redistribute it and/or
18modify it under the terms of the GNU Lesser General Public
19License as published by the Free Software Foundation; either
20version 2.1 of the License, or (at your option) any later version.
21
22This library is distributed in the hope that it will be useful,
23but WITHOUT ANY WARRANTY; without even the implied warranty of
24MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25Lesser General Public License for more details.
26
27You should have received a copy of the GNU Lesser General Public
28License along with this library; if not, write to the Free Software
29Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
31The latest version of this library can always be found at
32https://github.com/BlueVia/Official-Arduino
33*/
34#ifndef __GSM3_SHIELDV1CELLMANAGEMENT__
35#define __GSM3_SHIELDV1CELLMANAGEMENT__
36
37#include <GSM3ShieldV1ModemCore.h>
38#include <GSM3MobileCellManagement.h>
39#include <GSM3ShieldV1CellManagement.h>
40
41class GSM3ShieldV1CellManagement : public GSM3MobileCellManagement, public GSM3ShieldV1BaseProvider
42{
43 public:
44
45 /** Constructor
46 */
47 GSM3ShieldV1CellManagement();
48
49 /** Manages modem response
50 @param from Initial byte of buffer
51 @param to Final byte of buffer
52 */
53 void manageResponse(byte from, byte to);
54
55 /** getLocation
56 @return current cell location
57 */
58 int getLocation(char *country, char *network, char *area, char *cell);
59
60 /** getICCID
61 */
62 int getICCID(char *iccid);
63
64 /** Get last command status
65 @return returns 0 if last command is still executing, 1 success, >1 error
66 */
67 int ready(){return GSM3ShieldV1BaseProvider::ready();};
68
69 private:
70
71 char *countryCode;
72 char *networkCode;
73 char *locationArea;
74 char *cellId;
75
76 char *bufferICCID;
77
78 /** Continue to getLocation function
79 */
80 void getLocationContinue();
81
82 /** Continue to getICCID function
83 */
84 void getICCIDContinue();
85
86 bool parseQENG_available(bool& rsp);
87
88 bool parseQCCID_available(bool& rsp);
89
90};
91
92#endif
Note: See TracBrowser for help on using the repository browser.