- GPRS(General packet radio service), is a packet oriented mobile data service on the 2G and 3G cellular communication system's global system for mobile communications (GSM).
- the GPRSInterface is a library to use GPRS like Ethernet or WiFi, you can have a try with a GPRS module(ex. Seeed_GPRS_Sheild)
The folowing we will introduce some function which is used very normal.
At the very beginning, we should had it initialized. You can use this function :
GPRSInterface gprs(PIN_TX,PIN_RX,19200,"cmnet",NULL,NULL) gprs.init();
PIN_TX and PIN_RX is the serial communication pin with GPRS module
19200 is the baud rate of serial communication
"cmnet" is the APN for GPRS service
the first NULL is the user name for APN
the second NULL is the password for APN
Connect the Internet
you can connect the Internet as the following :
Get IP Address
GPRS will get IP address by using DHCP, if connect success, you can get the IP address as following :
you can create a TCPSocketConnection instance to send/receive data now :
TCPSocketConnection sock; sock.connect(HOST, PORT); sock.send(DATA,LENGTH); sock.receive(BUFFER,LENGTH);
Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.
Seeed is a hardware innovation platform for makers to grow inspirations into differentiating products. By working closely with technology providers of all scale, Seeed provides accessible technologies with quality, speed and supply chain knowledge. When prototypes are ready to iterate, Seeed helps productize 1 to 1,000 pcs using in-house engineering, supply chain management and agile manufacture forces. Seeed also team up with incubators, Chinese tech ecosystem, investors and distribution channels to portal Maker startups beyond.