C027_Support library test

Dependencies:   C027_Support

Dependents:   C027_SupportTest_xively_location software_test_v1

Fork of Seeed_GPRS_Library_HelloWorld by wei zou

When running this example make sure you have:

  • edited the SIM PIN, APN, USER and PASSWORD for you network operator
  • have inserted a SIM card with enough credits
  • the antennas connected
  • have good reception (especially for GPS)
  • installed the mbed CDC drivers if you run windows
  • connected a terminal program, such as teraterm

The example will connect the modem to the network and attach it. I will place a post request to download a file from mbed website. It will do a USSD request and finally wait for incoming SMS. It will try to answer your SMS (try asking "where are you").

You should see a similar output in your preferred console program:

C027 Support Example
Device Init
Device Status:
  Device:       SARA-G350
  Power Save:   Active
  SIM:          Ready
  CCID:         xxxxxxxxxxxxxxxxxxxxxxxxxxx
  IMEI:         xxxxxxxxxxxxxxxxxxx
  IMSI:         xxxxxxxxxxxxxxxxxxx
  Manufacturer: u-blox
  Model:        SARA-G350
  Version:      08.49
Network Check
Network Status:
  Registration:       Home
  Signal Strength:    -87 dBm
  Operator:           Swisscom
  Phone Number:       +41xxxxxxxxxxx
Network Join
  IP Address: xx.xx.xx.xx
Socket Create
Socket Connect
Make a Http Post Request
Socket Send
Socket Recving
Socket 0: 337 bytes pending
Socket 0: 145 bytes pending
Socket 0: closed by remote host
Socket Recv "HTTP/1.1 200 OK
Server: nginx/1.1.19
Date: Thu, 10 Apr 2014 13:09:02 GMT
Content-Type: text/plain
Connection: close
Last-Modified: Fri, 27 Jul 2012 13:30:34 GMT
Cache-Control: max-age=36000
Expires: Thu, 10 Apr 2014 20:43:53 GMT
Vary: Accept-Encoding
X-Mystery-Header: 260358892
X-be: web0_prod_sjc
Age: 8709

Hello world!
"
Socket Close
Socket Free
Network Disconnect
Send Ussd Command *#134#
Got Ussd Answer: "UNKNOWN APPLICATION"
Checking SMS and GPS
GPS Location: 47.28xxx 8.56xxx
GPS Location: 47.28xxx 8.56xxx
...
GPS Location: 47.28xxx 8.56xxx
GPS Location: 47.28xxx 8.56xxx
Network Status:
  Registration:       Home
  Signal Strength:    -89 dBm
  Operator:           Swisscom
  Phone Number:       +41xxxxxxxxx
GPS Location: 47.28xxx 8.56xxx
GPS Location: 47.28xxx 8.56xxx
...

History

merged default tip

2016-08-11, by mazgch [Thu, 11 Aug 2016 07:12:02 +0000] rev 33

merged


.

2016-08-11, by mazgch [Thu, 11 Aug 2016 07:09:44 +0000] rev 32

.


import mbed 5.1

2016-08-11, by mazgch [Thu, 11 Aug 2016 07:04:52 +0000] rev 31

import mbed 5.1


clean-up

2015-08-21, by mazgch [Fri, 21 Aug 2015 09:14:03 +0000] rev 30

clean-up


added cellLocate support

2015-11-18, by msinig [Wed, 18 Nov 2015 16:07:01 +0000] rev 29

added cellLocate support


remove debug

2014-12-12, by mazgch [Fri, 12 Dec 2014 07:54:19 +0000] rev 28

remove debug


update for multi GNSS parsing

2014-12-12, by mazgch [Fri, 12 Dec 2014 07:50:45 +0000] rev 27

update for multi GNSS parsing


updated latest version of library

2014-10-01, by mazgch [Wed, 01 Oct 2014 09:19:33 +0000] rev 26

updated latest version of library


update dependency

2014-07-04, by mazgch [Fri, 04 Jul 2014 05:29:01 +0000] rev 25

update dependency


check for >0 when reading

2014-06-12, by mazgch [Thu, 12 Jun 2014 12:39:24 +0000] rev 24

check for >0 when reading