element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Internet of Things
  • Technologies
  • More
Internet of Things
Blog [IoT WiFi This+]GCM(Google Cloud Messaging for Android) with WizFi250
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Internet of Things to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: main8096
  • Date Created: 24 Oct 2014 9:10 PM Date Created
  • Views 338 views
  • Likes 0 likes
  • Comments 0 comments
Related
Recommended

[IoT WiFi This+]GCM(Google Cloud Messaging for Android) with WizFi250

main8096
main8096
24 Oct 2014

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 


Google Developers Console(Project Management, API Key, Project ID)
https://console.developers.google.com/

image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GCM Sender(Android App for GCM test)
https://play.google.com/store/apps/details?id=com.eastandroid.gcmsender

 


Raw Data File to send to GCM Server (738 Byte)

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
POST /gcm/send HTTP/1.1
Host: android.googleapis.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:20.0) Gecko/20100101 Firefox/20.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: null
Content-Type: application/json; charset=UTF-8
Authorization: key=AIzaSyAl0UKsZZn5kllSlYBH38GI3**********
Content-Length: 311
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
{
"data": {
    "from_name": "WizFi250",
    "message": "Hello Android!!!!!!!!!"
  },
  "registration_ids" : ["APA91bE-SEttXIYhDZtCTZ6ImwVfo711X_VZ__g3UjpTOAz**********ylxUTDdHWHZd5V80WtQZ8vOnIZuAbnKRJkWUYTY2O8lvUaEIW0U8nRy73oQdJpxj4LI4FhIehAS6svJ3sQOKpfqBh9Xp5l8T7au4kPKpmPQHSkRszmY7**********"]
}

WizFi250 AT Command Log

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
at+fdns=android.googleapis.com,3000
74.125.130.95
[OK]
AT+SCON=O,TCN,74.125.130.95,80,,0
[OK]
[CONNECT 0]
at+ssend=0,,,738
[0,,,738]
[OK]
{0,74.125.130.95,80,497}HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Date: Thu, 21 Aug 2014 00:17:08 GMT
Expires: Thu, 21 Aug 2014 00:17:08 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alternate-Protocol: 80:quic
Transfer-Encoding: chunked
8f
{"multicast_id":518793381**********,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1408580228828675%492cdc**********"}]}
0
at+smgmt=all
[DISCONNECT 0]
[OK]
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube