智能家居物联网项目:构建原型

IoT-. , , – , . . – , .



Intel IoT Commercial Development Kit, - Intel NUC Kit DE3815TYKHE, Arduino 101 . , c , , IoT- .

, , :

  • Intel NUC Kit DE3815TYKHE

  • - Intel NUC MRAA UPM Intel IoT Development Kit. – - , , IoT .

  • Intel XDK IoT Edition. IDE , . IoT- Intel.

  • IBM Bluemix . , , . Bluemix.

GitHub.


, , :

  • . , . : , , .

  • . , , .

  • . , , , , . , , - .


, , , , :

  • : , , .

  • : , , , , .

. , , , – . , . , , , , , - , .

, . , ( , ).

Intel NUC Arduino 101


Intel IoT Gateway Software Suite Intel NUC Kit DE3815TYKHE. , , . , USB-.

, NUC, IoT-, , . Intel IoT Gateway Developer Hub, , , IP- .

, Intel, -.

Intel NUC.

  1. Intel IoT Platform Marketplace – .

  2. Intel IoT Gateway Software Suite , , , .

  3. IMG- USB- , , 4 .

    — , Windows, Win32 Disk Imager.
    — Linux :

    sudo dd if=GatewayOS.img of=/dev/ sdX bs=4M; sync

    USB- – sdX.
  4. NUC. , .

  5. Intel NUC, , , F2 , BIOS.

  6. USB-. :

    Advanced Boot.
    Boot Configuration OS Selection Linux.
    — , Boot Devices USB.
    — .
    F10 USB-.

  7. ( – root).

  8. Wind River Linux:

    ~# deploytool -d /dev/mmcblk0 --lvm 0 --reset-media –F

  9. poweroff , , USB- . .

  10. NUC Ethernet- ifconfig eth0 , IP-, (, , , ).

  11. Intel IoT Gateway Developer Hub MRAA UPM , https://01.org. , :

    ~# smart update
    ~# smart upgrade
    ~# smart install upm
    

  12. Arduino 101 NUC. Arduino 101 Firmata, MRAA UPM.

  13. , .


, .


, :




Intel XDK IoT Edition


Intel XDK IoT Edition JavaScript Node.js .

, , Windows, Bonjour Print Services. Intel XDK IoT-, . Bonjour , . IP- . , Bonjour.

Intel XDK :

  1. IDE . .

  2. Windows Mac OS, .

    — Windows, . , .

    — Mac OS, .DMG- , . .PKG-.

  3. Linux, :


    — , . , Desktop, cd ~/Desktop/
    — , (, – installername), tar zxvf installername.
    — , .
    ./install.sh

  4. , Intel XDK IoT Edition .

  5. ( Windows) Bonjour Print Services. :

    .
    — BonjourPSSetup.exe .
    — .

  6. , Intel XDK IoT Edition Intel NUC, xdk-daemon, . , , 0.0.35 . :

    ~# smart update
    ~# smart install xdk-daemon

  7. xdk-daemon, Intel NUC , . Intel XDK .

IBM Bluemix


, Bluemix-, MongoDB .

Bluemix-


Bluemix MongoLab.


BlueMix

, , :

  1. Bluemix.
  2. (DASHBOARD).
  3. CREATE APP.
  4. WEB.
  5. SDK for Node.js CONTINUE.
  6. FINISH.
  7. , IBM, ADD A SERVICE OR API.
  8. Data & Analytics MongoLab.
  9. BI , .
  10. , , . RESTAGE.
  11. . , .

IBM Bluemix Cloud Foundry


Cloud Foundry, cf. , Cygwin. , Cloud Foundry Windows, .

, Cloud Foundry, , , IBM Bluemix .

Intel


  1. Intel XDK, Develop, Serial Terminal.
  2. , Port.
  3. Connect . root, – .
  4. ifconfig , IP- .
  5. Add Manual Connection IP- .
  6. , , , .
  7. Run.

.


IBM Bluemix


Node.js- Bluemix MongoDB REST API . , - .

Intel NUC, Arduino 101


Node.js- Intel NUC, . Arduino 101, . , , , IBM Bluemix, , , .

– -. (Intel NUC Arduino 101) . , SQLite , . , , , ( – , ).

, , , , , , .


, Intel NUC. , ( - - ), HTML5 JavaScript Intel XDK IoT Edition. , , .

, , , , REST API. , . .

, -. , , , , , , , .


IoT-, .

Intel IoT Commercial Developer Kit, Intel NUC Arduino 101, IoT-.

, , Grove Starter Kit Plus IoT Edition. IBM Bluemix. , , , Intel XDK IoT Edition.

IoT- . . !

Source: https://habr.com/ru/post/zh-CN397273/


All Articles