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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
Sudden Impact Wearables Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Sudden Impact Wearables Design Challenge
  • More
  • Cancel
Sudden Impact Wearables Design Challenge
Blog SFH: Week 10 - Dawn of the new implementation
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: hawkeyethehacker
  • Date Created: 21 Mar 2015 1:53 PM Date Created
  • Views 437 views
  • Likes 0 likes
  • Comments 1 comment
  • safe_field_hockey
  • sudden_impact
Related
Recommended

SFH: Week 10 - Dawn of the new implementation

hawkeyethehacker
hawkeyethehacker
21 Mar 2015

Over the past few weeks I have been working on a new Server/Client implementation and finally, there is a result from the work.

imageimage

3af90ab73d3c8b82fed0b026f5476c5f.png

Pictured above are two screenshots from the app, in addition to the web monitoring page (monitor.php)

 

Below is a diagram detailing how the different parts of the server system interact with eachother.

c09c6ac1e392119f181eeff05f330987.png


How it all works


Uniform Node

The Uniform Node (Electric Imp) contacts Processdata.php over HTTP, transmitting data in POST headers. The fields transmitted by the Node are Device, Timestamp, Impact1, Impact2, ECG. More fields will be added including Temp.

Processdata.php carries out the storage of the data into a MySQL database. It checks to see if a node with the same device ID has been registered - if it has, it will update the existing record. Otherwise, it'll create a new record.


App

The app displays the content of endpoint.php once launched. The endpoint page queries the main database and list all connected nodes in a list form. Each list item contains a link to viewinfo.php, with the database row ID sent as a GET variable. viewinfo.php then queries the database and gets the node information pertaining to the row ID. This is then displayed in a list to the user.


Web Monitoring

monitor.php queries the database and displays the information in a table in a similar process as that of endpoint.php, however showing the sensor data. It is designed for use on a display other than a mobile, for example, monitoring from a PC/Mac.


Updates to the node software

To accomodate the new system, obviously the electric Imp's code had to be updated.

 

The Device is responsible for harvesting the data and sending it to the electric Imp agent.

The Agent is responsible for sending the data from the device to processdata.php.

 

Summary

All in all, quite a lot of progress on the software side of things have been made - which was greatly needed, because there is no point in harvesting data if you cannot use it somehow.

It's been a fun week, thanks for reading!


  • Sign in to reply

Top Comments

  • DAB
    DAB over 10 years ago +1
    Looks like a good start. You can always worry about calibration after you get the device to work reliably. DAB
  • DAB
    DAB over 10 years ago

    Looks like a good start.

     

    You can always worry about calibration after you get the device to work reliably.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
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