{"id":13497,"date":"2019-05-13T15:15:00","date_gmt":"2019-05-13T06:15:00","guid":{"rendered":"https:\/\/www.appliot.co.jp\/lazurite-jp\/?p=13497"},"modified":"2019-09-03T08:44:37","modified_gmt":"2019-09-02T23:44:37","slug":"node-red%e3%81%8c%e5%8b%95%e4%bd%9c%e3%81%97%e3%81%aa%e3%81%84%e6%99%82%e3%81%ae%e8%a7%a3%e6%9e%90%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.appliot.co.jp\/lazurite-jp\/lazurite\/13497.html","title":{"rendered":"Node-RED\u304c\u52d5\u4f5c\u3057\u306a\u3044\u6642\u306e\u89e3\u6790\u65b9\u6cd5"},"content":{"rendered":"<p>Raspberry Pi\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308bLazurite\u306eNode-RED\u7528\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u4ee5\u4e0b\u306e\u69cb\u6210\u3067\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<table style=\"width: 739px;\">\n<tbody>\n<tr>\n<td style=\"width: 151px;\">5<\/td>\n<td style=\"width: 170px;\">Node-RED<\/td>\n<td style=\"width: 60px;\">node-red-contrib-lazurite<\/td>\n<td style=\"width: 164px;\">Node-RED\u306eLazurite Node<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 151px;\">4<\/td>\n<td style=\"width: 170px;\">Node-RED \/ \u5171\u6709\u30e9\u30a4\u30d6\u30e9\u30ea\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9<\/td>\n<td style=\"width: 60px;\">V8<\/td>\n<td style=\"width: 164px;\">Node\u7528C\u8a00\u8a9e\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30bf<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 151px;\">3<\/td>\n<td style=\"width: 170px;\">Linux\u5171\u6709\u30e9\u30a4\u30d6\u30e9\u30ea<\/td>\n<td style=\"width: 60px;\">SO<\/td>\n<td style=\"width: 164px;\">liblazurite<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 151px;\">2<\/td>\n<td style=\"width: 170px;\">Linux\u30ed\u30fc\u30c0\u30d6\u30eb\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb<\/td>\n<td style=\"width: 60px;\">KO<\/td>\n<td style=\"width: 164px;\">lazdriver.ko<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 151px;\">1<\/td>\n<td style=\"width: 170px;\">\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2<\/td>\n<td style=\"width: 60px;\">\u30fc<\/td>\n<td style=\"width: 164px;\">Lazurite Pi Gateway<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0b\u4f4d\u30ec\u30a4\u30e4\u304b\u3089\u9806\u756a\u306b\u52d5\u4f5c\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u3066\u3044\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\uff11\uff0e\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2<\/h2>\n<p>\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2\u5358\u4f53\u3067\u306e\u8a55\u4fa1\u306f\u3053\u3093\u306a\u3093\u3067\u3059\u30022. linux\u30ed\u30fc\u30c0\u30d6\u30eb\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u52d5\u4f5c\u3068\u5408\u308f\u305b\u3066\u3001\u52d5\u4f5c\u306e\u78ba\u8a8d\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>2. Linux\u30ed\u30fc\u30c0\u30d6\u30eb\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb<\/h2>\n<h3>\uff12\u2212\uff11\uff0e\u30ed\u30fc\u30c0\u30d6\u30eb\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f5c\u6210<\/h3>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9: \/home\/pi\/driver\/LazDriver<\/p>\n<p>lazdriver.ko\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u3044\u5834\u5408\u306f\u3001make\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001lazdriver.ko\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u6b63\u3057\u304f\u4f5c\u6210\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u3001LazuriteInstaller\u306esetup.sh\u304c\u6b63\u5e38\u306b\u7d42\u4e86\u3057\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>[code language=&#8221;bash&#8221;]<br \/>\npi@raspberrypi:~\/driver\/LazDriver $ make<br \/>\necho drv-lazurite.c subghz_api.c aes\/aes.c mach.c  arib_lazurite.c macl.c phy\/phy_ml7396.c hwif\/hal-lzpi.c  hwif\/random-lzpi.c  hwif\/spi-lzpi.c hwif\/i2c-lzpi.c<br \/>\ndrv-lazurite.c subghz_api.c aes\/aes.c mach.c arib_lazurite.c macl.c phy\/phy_ml7396.c hwif\/hal-lzpi.c hwif\/random-lzpi.c hwif\/spi-lzpi.c hwif\/i2c-lzpi.c<br \/>\nmake -C \/lib\/modules\/4.9.80-v7+\/build SUBDIRS=\/home\/pi\/driver\/LazDriver modules<br \/>\nmake[1]: Entering directory &#8216;\/home\/pi\/linux&#8217;<br \/>\n  CC [M]  \/home\/pi\/driver\/LazDriver\/drv-lazurite.o<br \/>\n  CC [M]  \/home\/pi\/driver\/LazDriver\/subghz_api.o<br \/>\n  CC [M]  \/home\/pi\/driver\/LazDriver\/aes\/aes.o<br \/>\n  CC [M]  \/home\/pi\/driver\/LazDriver\/mach.o<br \/>\n  CC [M]  \/home\/pi\/driver\/LazDriver\/arib_lazurite.o<br \/>\n  CC [M]  \/home\/pi\/driver\/LazDriver\/macl.o<br \/>\n  CC [M]  \/home\/pi\/driver\/LazDriver\/phy\/phy_ml7396.o<br \/>\n  CC [M]  \/home\/pi\/driver\/LazDriver\/hwif\/hal-lzpi.o<br \/>\n  CC [M]  \/home\/pi\/driver\/LazDriver\/hwif\/random-lzpi.o<br \/>\n  CC [M]  \/home\/pi\/driver\/LazDriver\/hwif\/spi-lzpi.o<br \/>\n  CC [M]  \/home\/pi\/driver\/LazDriver\/hwif\/i2c-lzpi.o<br \/>\n  LD [M]  \/home\/pi\/driver\/LazDriver\/lazdriver.o<br \/>\n  Building modules, stage 2.<br \/>\n  MODPOST 1 modules<br \/>\n  CC      \/home\/pi\/driver\/LazDriver\/lazdriver.mod.o<br \/>\n  LD [M]  \/home\/pi\/driver\/LazDriver\/lazdriver.ko<br \/>\nmake[1]: Leaving directory &#8216;\/home\/pi\/linux&#8217;<br \/>\nmake -C \/lib\/modules\/4.9.80-v7+\/build SUBDIRS=\/home\/pi\/driver\/LazDriver modules<br \/>\nmake[1]: Entering directory &#8216;\/home\/pi\/linux&#8217;<br \/>\n  Building modules, stage 2.<br \/>\n  MODPOST 1 modules<br \/>\nmake[1]: Leaving directory &#8216;\/home\/pi\/linux&#8217;<\/p>\n<p>pi@raspberrypi:~\/driver\/LazDriver $ ls lazdriver.ko<br \/>\nlazdriver.ko<\/p>\n<p>[\/code]<\/p>\n<h3>2-2. \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30ed\u30fc\u30c9<\/h3>\n<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30ed\u30fc\u30c9\u3057\u3066\u3001\u30ed\u30b0\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u300cLazurite MAC address: 001d 1290 0004 2f74\u300d\u306e\u90e8\u5206\u306f\u3001\u7121\u7dda\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u30b7\u30fc\u30eb\u304c\u8cbc\u3063\u3066\u3042\u308bMAC\u30a2\u30c9\u30ec\u30b9\u306e\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>[code language=&#8221;bash&#8221;]<br \/>\npi@raspberrypi:~\/driver\/LazDriver $ sudo insmod lazdriver.ko<br \/>\npi@raspberrypi:~\/driver\/LazDriver $ tail -n 5 \/var\/log\/syslog<br \/>\nMay 13 14:20:52 raspberrypi kernel: [340227.419024] [HAL] lzpi_rf_main_th thread start pid=29772<br \/>\nMay 13 14:20:52 raspberrypi kernel: [340227.419103] [HAL] lzpi_rx_led_thr thread start pid=29773<br \/>\nMay 13 14:20:52 raspberrypi kernel: [340227.419173] [HAL] lzpi_tx_led_thr thread start pid=29774<br \/>\nMay 13 14:20:52 raspberrypi kernel: [340227.420963] Lazurite MAC address: 001d 1290 0004 2f74<br \/>\nMay 13 14:20:52 raspberrypi kernel: [340227.420969] [drv-lazurite] End of init<br \/>\n[\/code]<\/p>\n<p>\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308blazurite.ko\u3092rmmod\u306b\u3088\u308aLinux\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u30a2\u30f3\u30ed\u30fc\u30c9\u3057\u3001\/var\/log\/syslog\u306e\u30ed\u30b0\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[code language=&#8221;bash&#8221;]<br \/>\npi@raspberrypi:~\/driver\/LazDriver $ sudo rmmod lazdriver<br \/>\npi@raspberrypi:~\/driver\/LazDriver $ tail -n 5 \/var\/log\/syslog<br \/>\nMay 13 14:25:00 raspberrypi kernel: [340475.754542] [HAL] rf_main_thread thread end<br \/>\nMay 13 14:25:00 raspberrypi kernel: [340475.754650] [HAL] tx_led_thread thread end<br \/>\nMay 13 14:25:00 raspberrypi kernel: [340475.754704] [HAL] rx_led_thread thread end<br \/>\nMay 13 14:25:00 raspberrypi kernel: [340475.764800] spi_remove<br \/>\nMay 13 14:25:00 raspberrypi kernel: [340475.765064] [drv-lazurite] exit remove<br \/>\npi@raspberrypi:~\/driver\/LazDriver $<br \/>\n[\/code]<\/p>\n<p>\u3053\u3053\u307e\u3067\u306e\u4f5c\u696d\u3067\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2\u306e\u6545\u969c\u3001\u3082\u3057\u304f\u306f\u6b63\u3057\u304f\u74b0\u5883\u8a2d\u5b9a\u304c\u884c\u3048\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nLazuriteInstaller\u306esetup.sh\u3067Lazurite\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306e\u74b0\u5883\u8a2d\u5b9a\u304b\u3089\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u624b\u9806\u306f<a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/contents\/gateway\/setup\/RasPiInstall.html\">\u3053\u3061\u3089<\/a><\/p>\n<h2>\uff13\uff0eLinux\u5171\u6709\u30e9\u30a4\u30d6\u30e9\u30ea<\/h2>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9: \/home\/pi\/driver\/liblazurite\/lib<\/p>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u30d1\u30b9\u306b\u5165\u308a\u3001make\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[code language=&#8221;bash&#8221;]<br \/>\npi@raspberrypi:~\/driver\/liblazurite\/lib $ make<br \/>\ng++ -shared -fPIC -o liblazurite.so dyliblazurite.cpp<br \/>\nsudo cp liblazurite.so \/usr\/lib<br \/>\ng++ -c dyliblazurite.cpp -o liblazurite.o<br \/>\nar r liblazurite.a liblazurite.o<br \/>\nar: creating liblazurite.a<br \/>\npi@raspberrypi:~\/driver\/liblazurite\/lib $<br \/>\n[\/code]<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u3053\u307e\u3067\u7d42\u308f\u308b\u3068\u3001\u300c\/usr\/lib\u300d\u306bliblazurite.so\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>[code language=&#8221;bash&#8221;]<br \/>\npi@raspberrypi:~\/driver\/liblazurite\/lib $ ls \/usr\/lib\/liblazurite.so<br \/>\n\/usr\/lib\/liblazurite.so<br \/>\n[\/code]<\/p>\n<p>\u5171\u6709\u30e9\u30a4\u30d6\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u52d5\u4f5c\u78ba\u8a8d\u3092\u3059\u308b\u305f\u3081\u306b\u306f\u3001<\/p>\n<p>\u300c\/home\/pi\/driver\/liblazurite\/sample\u300d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b5\u30f3\u30d7\u30eb\u30bd\u30d5\u30c8\u30a6\u30a8\u30a2\u3092\u30d3\u30eb\u30c9\u3057\u305f\u5f8c\u306b\u3001sample_rx_raw 26\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001MAC\u30a2\u30c9\u30ec\u30b9\u3092\u8868\u793a\u3057\u305f\u5f8c\u306b\u30c7\u30fc\u30bf\u306e\u53d7\u4fe1\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>[code language=&#8221;bash&#8221;]<br \/>\npi@raspberrypi:~\/driver\/liblazurite\/sample $ make<br \/>\ng++ -I.\/ -o sample_tx64 sample_tx64.cpp -L\/usr\/lib -llazurite<br \/>\ng++ -I.\/ -o sample_tx sample_tx.cpp -L\/usr\/lib -llazurite<br \/>\ng++ -I.\/ -o sample_rx_raw sample_rx_raw.cpp -L\/usr\/lib -llazurite<br \/>\ng++ -I.\/ -o sample_rx_payload sample_rx_payload.cpp -L\/usr\/lib -llazurite<br \/>\n.\/samp g++ -I.\/ -o sample_rx_link sample_rx_link.cpp -L\/usr\/lib -llazurite<br \/>\nr ra g++ -I.\/ -o sample_rx_promiscuous sample_rx_promiscuous.cpp -L\/usr\/lib -llazurite<br \/>\npi@raspberrypi:~\/driver\/liblazurite\/sample $ .\/sample_rx_raw 26<br \/>\nshort address:: 2f74<br \/>\nmac address:: 001d1290 00042f74<br \/>\n[\/code]<\/p>\n<h2>4. \u30685. V8\u3068node-red-contrib-lazurite<\/h2>\n<p>node-red-contrib-lazurite\u306f\u3001C\u8a00\u8a9e\u306e\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30bf\u3068lazurite\u30ce\u30fc\u30c9\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>C\u8a00\u8a9e\u306e\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30bf\u306f\u3001\u300c.node-red\/node_modules\/node-red-contrib-lazurite\/build\/Relase\/lazurite_wrap.node\u300d\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u3044\u5834\u5408\u306f\u3001\u300c.node-red\/node_modules\/node-red-contrib-lazurite\u300d\u306e\u30d5\u30a9\u30eb\u30c0\u3067\u3001\u300cnode-gyp rebuild\u300d\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>node-gyp rebuild\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[code language=&#8221;bash&#8221;]<br \/>\npi@raspberrypi:~\/.node-red\/node_modules\/node-red-contrib-lazurite $ node-gyp rebuild<br \/>\ngyp info it worked if it ends with ok<br \/>\ngyp info using node-gyp@3.8.0<br \/>\ngyp info using node@8.15.1 | linux | arm<br \/>\ngyp info spawn \/usr\/bin\/python2<br \/>\ngyp info spawn args [ &#8216;\/usr\/lib\/node_modules\/node-gyp\/gyp\/gyp_main.py&#8217;,<br \/>\ngyp info spawn args   &#8216;binding.gyp&#8217;,<br \/>\ngyp info spawn args   &#8216;-f&#8217;,<br \/>\ngyp info spawn args   &#8216;make&#8217;,<br \/>\ngyp info spawn args   &#8216;-I&#8217;,<br \/>\ngyp info spawn args   &#8216;\/home\/pi\/.node-red\/node_modules\/node-red-contrib-lazurite\/build\/config.gypi&#8217;,<br \/>\ngyp info spawn args   &#8216;-I&#8217;,<br \/>\ngyp info spawn args   &#8216;\/usr\/lib\/node_modules\/node-gyp\/addon.gypi&#8217;,<br \/>\ngyp info spawn args   &#8216;-I&#8217;,<br \/>\ngyp info spawn args   &#8216;\/home\/pi\/.node-gyp\/8.15.1\/include\/node\/common.gypi&#8217;,<br \/>\ngyp info spawn args   &#8216;-Dlibrary=shared_library&#8217;,<br \/>\ngyp info spawn args   &#8216;-Dvisibility=default&#8217;,<br \/>\ngyp info spawn args   &#8216;-Dnode_root_dir=\/home\/pi\/.node-gyp\/8.15.1&#8217;,<br \/>\ngyp info spawn args   &#8216;-Dnode_gyp_dir=\/usr\/lib\/node_modules\/node-gyp&#8217;,<br \/>\ngyp info spawn args   &#8216;-Dnode_lib_file=\/home\/pi\/.node-gyp\/8.15.1\/&lt;(target_arch)\/node.lib&#8217;,<br \/>\ngyp info spawn args   &#8216;-Dmodule_root_dir=\/home\/pi\/.node-red\/node_modules\/node-red-contrib-lazurite&#8217;,<br \/>\ngyp info spawn args   &#8216;-Dnode_engine=v8&#8217;,<br \/>\ngyp info spawn args   &#8216;&#8211;depth=.&#8217;,<br \/>\ngyp info spawn args   &#8216;&#8211;no-parallel&#8217;,<br \/>\ngyp info spawn args   &#8216;&#8211;generator-output&#8217;,<br \/>\ngyp info spawn args   &#8216;build&#8217;,<br \/>\ngyp info spawn args   &#8216;-Goutput_dir=.&#8217; ]<br \/>\ngyp info spawn make<br \/>\ngyp info spawn args [ &#8216;BUILDTYPE=Release&#8217;, &#8216;-C&#8217;, &#8216;build&#8217; ]<br \/>\nmake: Entering directory &#8216;\/home\/pi\/.node-red\/node_modules\/node-red-contrib-lazurite\/build&#8217;<br \/>\n  CXX(target) Release\/obj.target\/lazurite_wrap\/nodes\/lazurite\/lazurite_wrap.o<br \/>\n  SOLINK_MODULE(target) Release\/obj.target\/lazurite_wrap.node<br \/>\n  COPY Release\/lazurite_wrap.node<br \/>\nmake: Leaving directory &#8216;\/home\/pi\/.node-red\/node_modules\/node-red-contrib-lazurite\/build&#8217;<br \/>\ngyp info ok<br \/>\n[\/code]<\/p>\n<p>\u3053\u308c\u304c\u6b63\u5e38\u306b\u5b9f\u884c\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u3001Node-RED\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u6b63\u3057\u304f\u3067\u304d\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/nodered.org\/docs\/hardware\/raspberrypi\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u8003\u306b\u3001\u6b63\u3057\u304fnode-red\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>node-gyp\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u3066\u3044\u306a\u3044\u6642\u306f\u3001\u300cnpm install -g node-gyp\u300d\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Node-RED\u306b\u5bfe\u5fdc\u3057\u305f\u6b63\u3057\u3044Node.js\u3068\u305d\u308c\u306b\u5bfe\u5fdc\u3057\u305fnpm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u4e0a\u3067\u3001node-gyp\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308bLazurite\u306eNode-RED\u7528\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u4ee5\u4e0b\u306e\u69cb\u6210\u3067\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002 &nbsp; 5 Node-RED node-red-contrib-lazurite Node-RED\u306eLazurite Node 4 Node-RED \/ \u5171\u6709\u30e9\u30a4\u30d6\u30e9\u30ea\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9 V8 Node\u7528C\u8a00\u8a9e\u30a2\u30af\u30bb\u30e9\u30ec\u30fc\u30bf 3 Linux\u5171\u6709\u30e9\u30a4\u30d6\u30e9\u30ea SO liblazurite 2 Linux\u30ed\u30fc\u30c0\u30d6\u30eb\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb KO lazdriver.ko 1 \u30cf\u30fc\u30c9\u30a6\u30a8\u30a2 \u30fc Lazurite Pi Gateway \u4e0b\u4f4d\u30ec\u30a4\u30e4\u304b\u3089\u9806\u756a\u306b\u52d5\u4f5c\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u3066\u3044\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \uff11\uff0e\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2 \u30cf\u30fc\u30c9\u30a6\u30a8\u30a2\u5358\u4f53\u3067\u306e\u8a55\u4fa1\u306f\u3053\u3093\u306a\u3093\u3067\u3059\u30022. linux\u30ed\u30fc\u30c0\u30d6\u30eb\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u52d5\u4f5c\u3068\u5408\u308f\u305b\u3066\u3001\u52d5\u4f5c\u306e\u78ba\u8a8d\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002 2. Linux\u30ed\u30fc\u30c0\u30d6\u30eb\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb \uff12\u2212\uff11\uff0e\u30ed\u30fc\u30c0\u30d6\u30eb\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f5c\u6210 \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9: \/home\/pi\/driver\/LazDriver lazdriver.ko\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u306a\u3044\u5834\u5408\u306f\u3001make\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001lazdriver.ko\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u6b63\u3057\u304f\u4f5c\u6210\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u3001LazuriteInstaller\u306esetup.sh\u304c\u6b63\u5e38\u306b\u7d42\u4e86\u3057\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 [code language=&#038; [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[11,26,20],"tags":[],"class_list":["post-13497","post","type-post","status-publish","format-standard","hentry","category-lazurite","category-node-red","category-raspberry-pi"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts\/13497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/comments?post=13497"}],"version-history":[{"count":8,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts\/13497\/revisions"}],"predecessor-version":[{"id":14225,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts\/13497\/revisions\/14225"}],"wp:attachment":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/media?parent=13497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/categories?post=13497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/tags?post=13497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}