Upload
koji-wakayama
View
992
Download
0
Tags:
Embed Size (px)
Citation preview
OverviewEmbedded computing
Arduino Yun (Demo)MQTT
Mosquitto MQTT Broker (Demo)Arduino MQTT Library (Demo)
Pololu 3pi RobotSpooky (Live coding)
3D Printing (3D Print Shop)
Wednesday, October 30, 13
MQTTMessage Queue Telemetry Transport
Lightweight broker-basedpublish/subscribe messaging protocol
Invented in 1999by Dr Andy Stanford-Clark (IBM) and Arlen Nipper (Arcom)
Standard MQTT port: 1883 3 Qualities of Service for message delivery
Last will and testament featureMQTT-S for sensor networks
more on http://mqtt.org
Wednesday, October 30, 13
Pub / Sub
SubscriberPublisher
Topic
MessageA
Subscriber
Subscriber
MessageA
MessageA
MessageA
Wednesday, October 30, 13
SecurityName and Password
SSL(TCP/IP port 8883 is registered, for using MQTT over SSL)
Encrypted Data
Wednesday, October 30, 13
MQTT Topics & WildcardsTopics are hierarchical like filesystem path
/sensor/1/temperature/sensor/2/temperature
/sensor/2/pressure
Subscribers can use wildcards in topics/sensor/+/temperature
/sensor/2/+/sensor/#
Wednesday, October 30, 13
m1 forwardhex: 0xC1
binary 11000001decimal 193
m2 forward hex 0xC5
binary 11000101decimal 197
m1 backward hex 0xC2
binary 11000010decimal 194
m2 backward hex 0xC6
binary 11000110decimal 198
3pi motor controlreceives 2 bytescmd (128-255)speed (0-127)
Serial Slave Modehttp://www.pololu.com/docs/0J21/10.a
Wednesday, October 30, 13