Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Raspberry Pi

No description
by

SiDi Srikk

on 11 December 2013

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Raspberry Pi

Headnode
Arduino
RaspberryPi
Xbee
Xbee & Long Range RF
SD card
USB storage
Ethernet
Cost
Size (Dimension)
Thinner 2 cm in height
Power Consumption
????
USB Wi-Fi Adapters
No reduce
Child Node
SD card module
Added
Long Range RF
C
C
Head
C
C
C
Server
C
HTTP (Internet)
Xbee 2.4GHz
RF 433Mhz
(original design)
Interface Diagram
Child
Head
Server
RF /
XBee
Arduino IDE [C++]
[Python]
Wi-fi /
Ethernet
Ethernet
[Python]
MySQL
User
Web-browser
[html js css php]
RF /
XBee
Communication Interface
Timer Control
Firmware
Background
Processes
Server
ChildNode
HeadNode
Users
WebApplication
Developers
Apache
PHP
The GET Method
http://www.test.com/index.htm?
name1
=
value1
&
name2
=
value2
TCP Socket
HTTP
on
built ontop of the TCP layer.
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>

//Target host details:
#define PORT 1234
#define HOST "74.74.74.74"

using namespace std;

//Function prototypes:
string MessageFormat(int, char**);
void MessageSend(string);

int main(int argc, char *argv[])
{
//Parse arguments and format message:
string message = MessageFormat(argc, argv);

//Send the message out:
MessageSend(message);

return 0;
}

string MessageFormat(int argc, char *argv[])
{
//Massage the command line parameters
// into my desired payload format.
.
.
.
How to Send Data to Server
[socket]
New optimize Database

Child
Head
Server
Original Node Serial No.
Value1
,
Value2
,...
Terminal Node Serial No.
Time Stamp1
,
Time Stamp2
,...
nodejs
[Arduino IDE]
[http]
TCP [Javascript]
SQLite
Limit table size :
on win32 w/ NTFS
2TB
Number of sensor
First time Node Authentication
1. Press each button on both side at the same time
2. XBee boardcast packet find that one
Already known
headnode serialNo.

Newborn node
Node
Node
3. Older one respond with headnode serialNo
Why we change?
Turning point
Previous Database
Example Model Type
Model Type : A
[Slot 1] : none
[Slot 2] : none
Model Type : B
[Slot 1] : humidity
[Slot 2] : temperature
[Slot 3] : light
[Slot 4] : pH
Model Type : C
[Slot 2] : temperature
Model Type : D
[Slot 1] : humidity
[Slot 2] : pH
[Slot 1] : motion
Data packet structure
Extract data packet
into MySQL

Original Node Serial No.
Value1
,
Value2
,...
Terminal Node Serial No.
Time Stamp1
,
Time Stamp2
,...
Number of sensor
...... ....... ....... .... ...
YYYY-MM-DD HH:MM:SS
H5354076hRenf
N556o6hwwDSf
1
34
YYYY-MM-DD HH:MM:SS
2
0.032
H5354076hRenf
N556o6hwwDSf
**Hopping data node
Full transcript