element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • 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
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Xively Demo with WizFi250
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: main8096
  • Date Created: 17 Nov 2014 9:39 PM Date Created
  • Views 306 views
  • Likes 0 likes
  • Comments 0 comments
Related
Recommended

Xively Demo with WizFi250

main8096
main8096
17 Nov 2014
Xively Demo with WizFi250

image

 

Let me introduce the “Xively server and WizFi250 application note.

 

In order to Test, the customer should make a Xively ID and acquire Channel and API key.

 

(For more information about the Xively, Please check the Youtube or Google)

 

 

 

This test environment is as below

 

•Feed ID : 1805123826

 

•X-ApiKey : H3lr9T1As7ADOfpXCvg8fdcUYC3wX39tXVUBGAIKvouibJnM

 

•Channel : Demo

 

 

 

Test Procedure

 

(A) The local data save to Xively Cloud

 

(B) The Data receive form Xively Cloud

 

 

 

Let’s start Demo

 

 

 

  (A) Request Raw Data: the temporary 4 byte data save to Xively cloud

 

PUT /v2/feeds/1805123826/datastreams/Demo HTTP/1.1\r\n

Host: api.xively.com\r\n

X-ApiKey: H3lr9T1As7ADOfpXCvg8fdcUYC3wX39tXVUBGAIKvouibJnM\r\n

Content-Length:81\r\n

\r\n

{\r\n

  "id": "Demo",\r\n

  "tags": [],\r\n

  "unit": {},\r\n

  "current_value": "4"\r\n

}\r\n

\r\n

\r\n

 

(Total 236 Byte)

 

 

 

(B) Request Raw Data : The Data receive form Xively cloud

 

GET /v2/feeds/1805123826/datastreams/Demo HTTP/1.1\r\n

Host: api.xively.com\r\n

X-ApiKey: H3lr9T1As7ADOfpXCvg8fdcUYC3wX39tXVUBGAIKvouibJnM\r\n

\r\n

 

(Total 136 Byte)

 

 

 

In order to use Xively server communication, you should associate with AP.

 

(It is depends on your test AP environment. Therefore we omission this parts.

 

Please refer to as below link

 

http://wizwiki.net/wiki/doku.php?id=products:wizfi250:wizfi250pg:start

 

(“Examples - Association & Disassociation” part)

 

u  Step #1: Obtain the Xively API sever IP

 

AT+FDNS=api.xively.com,3000

64.94.18.120

[OK]

 

u  Step #2:   Access the the Xively API sever, and then send the Request command that save the value “4” in the Channel Demo

 

AT+SCON=O,TCN,64.94.18.120,80,,0

 

[OK]

 

[CONNECT 0]

 

AT+SSEND=PUT /v2/feeds/1805123826/datastreams/Demo HTTP/1.1\r\n

 

Host: api.xively.com\r\n

 

X-ApiKey: H3lr9T1As7ADOfpXCvg8fdcUYC3wX39tXVUBGAIKvouibJnM\r\n

 

Content-Length:81\r\n

 

\r\n

 

{\r\n

 

  "id": "Demo",\r\n

 

  "tags": [],\r\n

 

  "unit": {},\r\n

 

  "current_value": "4"\r\n

 

}\r\n

 

\r\n

 

\r\n

 

[OK]

 

 

 

If you send correctly a data, you should be receive from the Xively API server

 

{0,64.94.18.120,80,251}HTTP/1.1 200 OK

 

Date: Wed, 06 Aug 2014 03:52:05 GMT

 

Content-Type: application/json; charset=utf-8

 

Content-Length: 0

 

Connection: keep-alive

 

X-Request-Id: 65d5981411f55879f102ebd8df82e4c2978cfac1

 

Cache-Control: max-age=0

 

Vary: Accept-Encoding

 

 

 

u  STEP #3: Close the connection the Xveily API Sever

 

AT+SMGMT=ALL

 

[DISCONNECT 0]

 

[OK]

 

 

 

when you see the Feed Channel, you should find a data to apply real time in Xively API server.

 

https://xively.com/feeds/1805123826

image

 

Next, we’re trying to get the data from Xively cloud server.

 

Refer to as below command

 

AT+SCON=O,TCN,64.94.18.120,80,,0

 

[OK]

 

 

 

[CONNECT 0]

 

AT+SSEND= GET /v2/feeds/1805123826/datastreams/Demo HTTP/1.1\r\n

 

Host: api.xively.com\r\n

 

X-ApiKey: H3lr9T1As7ADOfpXCvg8fdcUYC3wX39tXVUBGAIKvouibJnM\r\n

 

\r\n

 

[OK]

 

{0,64.94.18.120,80,441}HTTP/1.1 200 OK

 

Date: Wed, 06 Aug 2014 03:52:18 GMT

 

Content-Type: application/json; charset=utf-8

 

Content-Length: 122

 

Connection: keep-alive

 

X-Request-Id: 749920b4abcd6c4f6953906d14b4204002ae42be

 

Cache-Control: max-age=86400

 

X-Licence: http://creativecommons.org/publicdomain/zero/1.0/

 

Vary: Accept-Encoding

 

 

 

{"id":"Demo","current_value":"4","at":"2014-08-06T03:52:05.847187Z","max_value":"7.0","min_value":"0.0","version":"1.0.0"}

 

AT+SMGMT=ALL

 

 

 

[DISCONNECT 0]

 

[OK]

 

 

 

Notice:

 

Please refer to as below link.

 

This link explain How to connect between the temperature sense and the Xively API sever

 

http://wizwiki.net/blog/2014/03/19/arduino-temperature-monitoring-system-using-xively-server-wizfi250-evb/
  • 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 © 2023 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube