ARTIK Cloud and ARTIK Module Demo
- ARTIK 710 with LCD module
- ARTIK 710 with Camera module
- Belkin WeMo Insight Switch
- Hue Bridge + Hue Bulb
- ipTime A3004NS-d (Wireless router supporting Android phone usb tethering)
- Bluetooth Speaker
- Samsung Smartcam SNH-P6410BN
- Install dependency packages to each ARTIK 710 boards
dnf update
dnf install git alsa-lib-devel npm gstreamer1-rtsp-server avahi-devel avahi-compat-libdns_sd-devel
- Install RTSP server program
dnf install autoconf automake m4 libtool gtk-doc glib2-devel gstreamer1-devel gstreamer1-plugins-base-devel
git clone https://github.com/GStreamer/gst-rtsp-server.git
cd gst-rtsp-server
git checkout 1.8
./autogen.sh
./configure --enable-examples
make
cd examples
libtool --mode=install install test-launch /usr/local/bin/
- Install TTS program (SVOX pico2wave)
[ubuntu-host]# apt-get source libttspico-utils
[ubuntu-host]# scp -r svox-1.0+git20130326/pico {your-710-board(MASTER)}
chmod +x autogen.sh
dnf install autoconf automake libtool popt-devel
./autogen.sh
./configure
make
make install
- Download dingdong MP3 file
- Open http://www.freesfx.co.uk/download/?type=mp3&id=16513
- Download MP3 file
- Copy to data/ding_dong_bell_door.mp3
- Static MAC address setup (u-boot) Serial console
...
Hit any key to stop autoboot: 3 <-- Enter key
artik710# run factory_load
artik710# factory_info list
artik710# factory_info write ethaddr <your mac address> e.g.) 00:11:58:23:12:54
artik710# run factory_save
artik710# reset
- Static IP setup: 192.168.0.10 (OAuth2 callback url)
- Open the ipTime admin webpage (http://192.168.0.1)
- Setup static IP address using 710 board MAC address
bluetoothctl
[bluetooth]# scan on
[NEW] Device XX:XX:XX:XX:XX:XX Logitech X100
[bluetooth]# pair XX:XX:XX:XX:XX:XX
[bluetooth]# connect XX:XX:XX:XX:XX:XX
[bluetooth]# exit
pactl list cards
pactl set-card-profile 1 a2dp_sink
- Open the ipTime admin webpage (http://192.168.0.1)
- Login (default id/password = 'admin' / 'admin')
- Enable the USB tethering option
- Install WeMo app on your smartphone
- Wi-Fi connect to WeMo (WeMo AP)
- Run WeMo application
- Setup WeMo to use ipTime AP
- Install Hue app on your smartphone
- Add Hue Bridge on Hue app
- Add Hue Bulb to Hue Bridge
- https://www.samsungsmartcam.com/
- Register your account
- Register the SNH-P6410BN camera to your account
- Setup camera id/password to 'admin' / '1234'
git clone https://github.com/SamsungARTIK/demokit
cd demokit
npm install
npm install -g forever forever-service
# Master board (indoor simulation)
forever-service install master --script bin/www
service master start
# Slave board (front door simulation)
forever-service install slave --script slave.js
service slave start
reboot
demokit/node_modules/mdns/lib/resolver_sequence_tasks.js
try {
- //var error = dns_sd.buildException(errorCode);
+ var error = null;
if ( ! error && service.interfaceIndex === iface) {
- https://developer.amazon.com/edw/home.html#/avs/list
- Register a Product Type --> Device
- Fill the form
- Device Type Info
- Company Name: ...
- Device Type ID: demokit
- Display Name: ...
- Security profile
- General
- Client ID & Client Secret --> Copy to clipboard
- Web settings
- Allowed Return URLs: https://192.168.0.10:9745/avs/callback
- General
- Device Type Info
- https://developer.artik.cloud/dashboard/applications
- Click NEW APPLICATION
- Fill the form
- APP NAME: DemoKit
- DESCRIPTION: ...
- AUTHORIZATION METHODS: Client credentials, auth code
- AUTH REDIRECT URL: https://192.168.0.10:9745/akc/callback
- Save
- Permissions
- PERMISSIONS
- Profile: Check to Read
- DEVICE PERMISSIONS
- + SET PERMISSIONS FOR A SPECIFIC DEVICE
- Belkin WeMo Insight Switch Proxy: Read + Write
- Shell proxy: Read + Write
- PERMISSIONS
- Click 'DemoKit' from left panel
- Click 'SHOW CLIENT ID & SECRET' from right side
- Client ID & Secret --> Copy to clipboard
- Open https://192.168.0.10:9745/setup
- Fill your AVS information to the client-id, client-secret field and 'Save'
- Fill your ARTIK Cloud application information to the client-client-secret field and 'Save'
- Click 'Get user tokens'
- Click 'Get device tokens' and 'Save'
- Press 'link button' on the Hue Bridge device
- Open https://192.168.0.10:9745/setup
- Click 'Get registered username' and 'Save'
- Dingdong --> Press MIC btn --> say 'ask artik to unlock the front door' --> Release MIC btn
- Press MIC btn --> say 'ask artik to lock the front door' --> Release MIC btn
- Bootstrap - Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.
- Bootstrap Switch
- jQuery - jQuery is a fast, small, and feature-rich JavaScript library.
- Notify.js - Notify.js is a jQuery plugin to provide simple yet fully customisable notifications.
- socket.io - Socket.IO enables real-time bidirectional event-based communication.
- Font Awesome - The iconic font and CSS toolkit.
- Express: body-parser, cookie-parser, debug, ejs, express, morgan, serve-favicon
- bl - Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!
- child-process-promise - Simple wrapper around the "child_process" module that makes use of promises
- dbus-native - D-bus protocol implementation in native javascript
- http-message-parser - HTTP message parser in JavaScript.
- mdns - multicast DNS service discovery
- mplayer - Node.js wrapper for mplayer
- mqtt - MQTT.js is a client library for the MQTT protocol, written in JavaScript for node.js and the browser.
- node-hue-api - Phillips Hue API Library for Node.js
- node-microphone - Allows Microphone access in node with arecord (Linux) and sox (Windows/OSX).
- onoff - GPIO access and interrupt detection with JavaScript
- passport - Simple, unobtrusive authentication for Node.js.
- passport-artikcloud - ARTIK Cloud authentication strategy for Passport.
- passport-oauth2 - OAuth 2.0 authentication strategy for Passport.
- passport-oauth2-refresh - A passport.js add-on to provide automatic OAuth 2.0 token refreshing.
- pwm - Write to your PWM outputs
- request - Simplified HTTP request client.
- socket.io - node.js realtime framework server
- socket.io-client - Realtime application framework (client)
- websocket - Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.
- wemo - WeMo client
This project is licensed under the Apache-2.0 License - see the LICENSE file for details
Copyright (c) 2016 Samsung Electronics Co., Ltd.