{"id":12643,"date":"2018-11-19T10:39:37","date_gmt":"2018-11-19T01:39:37","guid":{"rendered":"https:\/\/www.appliot.co.jp\/lazurite-jp\/?p=12643"},"modified":"2018-12-21T09:01:44","modified_gmt":"2018-12-21T00:01:44","slug":"%e3%83%a9%e3%82%ba%e3%83%a9%e3%82%a4%e3%83%88%e5%a7%ab%e3%81%ae%e6%8c%91%e6%88%a6%e6%97%a5%e8%a8%98-%e7%84%a1%e7%b7%9a%e3%81%a7%e3%82%ab%e3%83%a1%e3%83%a9%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92","status":"publish","type":"post","link":"https:\/\/www.appliot.co.jp\/lazurite-jp\/lazurite\/12643.html","title":{"rendered":"\u3089\u305a\u3089\u3044\u3068\u59eb\u306e\u6311\u6226\u65e5\u8a18 \u7121\u7dda\u3067\u30ab\u30e1\u30e9\u306e\u30c7\u30fc\u30bf\u3092\u9001\u308b"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u8868\u7d19.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12792 size-medium\" src=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u8868\u7d19-246x200.png\" alt=\"\u8868\u7d19\" width=\"246\" height=\"200\" srcset=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u8868\u7d19-246x200.png 246w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u8868\u7d19-640x521.png 640w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u8868\u7d19.png 982w\" sizes=\"auto, (max-width: 246px) 100vw, 246px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u30b7\u30b9\u30c6\u30e0\u69cb\u6210<\/h2>\n<h3>\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9<\/h3>\n<p>Lazurite SubGHz<\/p>\n<p>\u30ab\u30e1\u30e9\u30e2\u30b8\u30e5\u30fc\u30eb <a href=\"https:\/\/www.switch-science.com\/catalog\/3781\/\">ArduiCAM<\/a><\/p>\n<h3>\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4 &amp; \u30ab\u30e1\u30e9\u753b\u50cf\u306e\u4fdd\u5b58<\/h3>\n<p>Raspberry Pi 3<\/p>\n<p>Lazurite Pi Gateway<\/p>\n<div id=\"smoothplay4\"><\/div>\n<h2>\u624b\u9806<\/h2>\n<h3>Raspberry Pi\u5074\u306e\u8a2d\u5b9a<\/h3>\n<p>Lazurite Pi Gateway\u306e\u30c9\u30e9\u30a4\u30d0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001<a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/documents\">\u3053\u3061\u3089<\/a>\u3092\u898b\u3066\u7121\u7dda\u4fe1\u53f7\u304c\u53d6\u5f97\u3067\u304d\u308b\u307e\u3067\u306f\u5b8c\u6210\u3055\u305b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u7121\u7dda\u4fe1\u53f7\u306e\u9001\u53d7\u4fe1\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3089\u3001\u4eca\u56de\u306fruby\u3067\u7121\u7dda\u53d7\u4fe1\u3057\u305fJPEG\u306e\u753b\u50cf\u30c7\u30fc\u30bf\u3092Raspberry Pi\u3067\u53d7\u4fe1\u3057\u3001\u53d7\u4fe1\u3059\u308b\u305f\u3073\u306b\u9023\u756a\u306e\u30d5\u30a1\u30a4\u30eb\u540d\uff08sample 000x.jpg)\u3067\u4fdd\u5b58\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u30da\u30fc\u30b8\u306e\u6700\u5f8c\u306b\u8cbc\u308a\u4ed8\u3051\u3057\u307e\u3057\u305f\uff01<\/p>\n<p><a href=\"#smoothplay3\">\u30da\u30fc\u30b8\u306e\u6700\u5f8c\u3078<\/a><\/p>\n<p>&#8220;.\/sample_rx_jpq.rb 36&#8221; \u306a\u3069\u3001<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u540d\u306e\u5f8c\u308d\u306b\u7121\u7dda\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u756a\u53f7\u3092\u6307\u5b9a\u3059\u308b\u3068\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>Lazurite SubGHz\u5074\u306e\u624b\u9806<\/h3>\n<h4>\u8a55\u4fa1\u30dc\u30fc\u30c9\u3092\u7d44\u307f\u7acb\u3066\u308b<\/h4>\n<p><a href=\"http:\/\/www.arducam.com\/wp-content\/uploads\/2017\/12\/ArduinoConnection-.jpg\">\u3053\u3061\u3089<\/a>\u306e\u30da\u30fc\u30b8\u306b\u5f93\u3063\u3066\u30dc\u30fc\u30c9\u3092\u7d44\u307f\u7acb\u3066\u307e\u3059\u3002<\/p>\n<p>\u2193<\/p>\n<p><a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u5b8c\u6210\u7cfb\u273f\u59eb.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12783 size-large\" src=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u5b8c\u6210\u7cfb\u273f\u59eb-640x480.png\" alt=\"\u5b8c\u6210\u7cfb\u273f\u59eb\" width=\"640\" height=\"480\" srcset=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u5b8c\u6210\u7cfb\u273f\u59eb-640x480.png 640w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u5b8c\u6210\u7cfb\u273f\u59eb-267x200.png 267w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u5b8c\u6210\u7cfb\u273f\u59eb.png 884w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u914d\u7dda1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12747 size-large\" src=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u914d\u7dda1-640x480.jpg\" alt=\"\u914d\u7dda\" width=\"640\" height=\"480\" srcset=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u914d\u7dda1-640x480.jpg 640w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u914d\u7dda1-267x200.jpg 267w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>\u914d\u7dda\u306f\u3001\u4e0b\u8a18\u8868\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<table>\n<tbody>\n<tr bgcolor=\"#faebd7\">\n<td style=\"text-align: center;\"><span style=\"color: #000000;\"><strong>\u8272<\/strong><\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #000000;\"><strong>Lazurite SubGHz<\/strong><\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #000000;\"><strong>\u30ab\u30e1\u30e9<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u30aa\u30ec\u30f3\u30b8<\/td>\n<td style=\"text-align: center;\">7<\/td>\n<td style=\"text-align: center;\">CS<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u9ec4\u8272<\/td>\n<td style=\"text-align: center;\">11<\/td>\n<td style=\"text-align: center;\">MOSI<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u307f\u3069\u308a<\/td>\n<td style=\"text-align: center;\">12<\/td>\n<td style=\"text-align: center;\">MISO<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u9752<\/td>\n<td style=\"text-align: center;\">13<\/td>\n<td style=\"text-align: center;\">SCK<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u3080\u3089\u3055\u304d<\/td>\n<td style=\"text-align: center;\">GND<\/td>\n<td style=\"text-align: center;\">GND<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u30b0\u30ec\u30fc<\/td>\n<td style=\"text-align: center;\">3.3V<\/td>\n<td style=\"text-align: center;\">VCC<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u767d<\/td>\n<td style=\"text-align: center;\">A4<\/td>\n<td style=\"text-align: center;\">SDA<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u9ed2<\/td>\n<td style=\"text-align: center;\">A5<\/td>\n<td style=\"text-align: center;\">SCL<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h4>\u6700\u65b0\u7248\u306eLazurite IDE\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h4>\n<p>Lazurite\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u304b\u3089\u6700\u65b0\u7248\u306eLazurite IDE\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u307e\u305f\u3001<a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/ArduCAM_OV5642Plus_LazuriteIDE2.zip\">\u3053\u3053<\/a>\u304b\u3089\u8ffd\u52a0\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001Unzip\u3057\u305f\u5f8c\u3001LazuriteIDE(c:\\LazuriteIDE)\u306elibraries, examples\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b2018\u5e7412\u670821\u65e5\u3000\u30ab\u30e1\u30e9\u30c7\u30fc\u30bf\u306e\u9001\u4fe1\u9593\u9694\u3092\uff11\u6642\u9593\u306b\uff11\u56de\u306b\u3059\u308b\u3068\u52d5\u4f5c\u3057\u306a\u304f\u306a\u308b\u3068\u3044\u3046\u4e0d\u5177\u5408\u3092\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002<\/p>\n<h4>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8aac\u660e<\/h4>\n<p>\u8d77\u52d5\u3059\u308b\u3068\u81ea\u52d5\u7684\u306b\u5199\u771f\u3092\u53d6\u3063\u3066\u3001\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u3078\u7121\u7dda\u9001<wbr \/>\u4fe1\u3057\u307e\u3059\u3002<br \/>\n\u9001\u4fe1\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u6b21\u306e\u5199\u771f\u64ae\u5f71\u3092\u958b\u59cb\u3059\u308b\u307e<wbr \/>\u3067\u306b\uff11\uff10\u79d2\u9593\u30b9\u30ea\u30fc\u30d7\u3057\u3001<br \/>\n\u5fa9\u5e30\u5f8c\u306b\u307e\u305f\u5199\u771f\u3092\u64ae\u3063\u3066\u9001\u4fe1\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u9078\u629e<\/h4>\n<p>1) \u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u9078\u3076<br \/>\nLazurite IDE\u3092\u8d77\u52d5\u5f8c\u3001\u30d5\u30a1\u30a4\u30eb -&gt; 07.SwitchSience\u3000-&gt; ArduCAM_Mini_5MP_OV5642_Plus_Functions\u3000\u304b\u3089\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>2) \u9001\u4fe1\u5148\u306e\u30a2\u30c9\u30ec\u30b9\u90e8\u5206\u3092\u66f8\u304d\u63db\u3048\u308b<br \/>\n\u9001\u4fe1\u5148\u306e\u7121\u7dda\u30a2\u30c9\u30ec\u30b9\uff08<span style=\"text-decoration: underline;\">\uff12\uff18\u884c\u76ee\u306eHOST ADDRESS<\/span>)\u3092<br \/>\nRaspberry Pi\u306e\u7121\u7dda\u6a5f\u306e\u30a2\u30c9\u30ec\u30b9\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12822 size-medium\" src=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/camera\u273frazu-pi1-297x200.png\" alt=\"camera\u273frazu pi\" width=\"297\" height=\"200\" srcset=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/camera\u273frazu-pi1-297x200.png 297w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/camera\u273frazu-pi1-120x80.png 120w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/camera\u273frazu-pi1-640x432.png 640w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/camera\u273frazu-pi1.png 848w\" sizes=\"auto, (max-width: 297px) 100vw, 297px\" \/><\/p>\n<p>\u53d7\u4fe1\u78ba\u8a8d\u304c\u306a\u3044\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u3060\u3068\u30c7\u30fc\u30bf\u304c\u6b20\u843d\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u53d7\u4fe1\u78ba\u8a8d\u4ed8\u304d\u306e\u30e6\u30cb\u30ad\u30e3\u30b9\u30c8\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>3) \u30d1\u30bd\u30b3\u30f3\u3068\u63a5\u7d9a\u3059\u308b<br \/>\n\u30d1\u30bd\u30b3\u30f3\u3068Lazurite SubGHz\u3092\u63a5\u7d9a\u3057\u3001<br \/>\n\u30c4\u30fc\u30eb\u3000\u2192\u3000\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u3000\u2192\u3000\u901a\u4fe1\u30dd\u30fc\u30c8\u3000\u2192\u3000COM\u00d7\u00d7\u3000\u306b\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u3066\u3044\u306a\u3051\u308c\u3070\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p>\uff14) LazuriteIDE\u306e\u300c\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306b\u8ee2\u9001\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3059<\/p>\n<p>&nbsp;<\/p>\n<h2>\u5b9f\u9a13\u7d50\u679c<\/h2>\n<p>&nbsp;<\/p>\n<p>\u30ab\u30e1\u30e9\u3067\u64ae\u3063\u305f\u5199\u771f\u304cLazurite SubGHz\u304b\u3089\u7121\u7dda\u3067Raspbery Pi\u306b\u9001\u4fe1\u3057\u3001<br \/>\n\u64ae\u3063\u305f\u753b\u50cf\u304cPC\u306b\u9001\u3089\u308c\u3001JPEG\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u2729<\/p>\n<p>\u3053\u3061\u3089\u304c\u5b9f\u969b\u306b\u64ae\u3063\u3066\u307f\u305f\u5199\u771f\u3067\u3059\uff01<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u8a66\u3057\u64ae\u308a\u273f\u59eb.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12826\" src=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u8a66\u3057\u64ae\u308a\u273f\u59eb.png\" alt=\"\u8a66\u3057\u64ae\u308a\u273f\u59eb\" width=\"500\" height=\"441\" srcset=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u8a66\u3057\u64ae\u308a\u273f\u59eb.png 500w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/\u8a66\u3057\u64ae\u308a\u273f\u59eb-227x200.png 227w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>\u64ae\u5f71\u3057\u305f\uff4a\uff50\uff47\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3048\u3070\u3001\u7c21\u5358\u306b\u30bf\u30a4\u30e0\u30e9\u30d7\u30b9\u52d5\u753b\u3082\u4f5c\u308c\u305d\u3046\u3067\u3059\u306d\uff01<\/p>\n<p>\u662f\u975e\u3001\u304a\u305f\u3081\u3057\u304f\u3060\u3055\u3044\uff01\uff01<\/p>\n<p>&nbsp;<\/p>\n<div id=\"smoothplay3\">\u2604<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><\/div>\n<p>\u4e0b\u8a18\u304c\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u5bb9\u3067\u3059\uff01\u2193<\/p>\n<p>[ruby]<\/p>\n<p>#! \/usr\/bin\/ruby<br \/>\n# -*- coding: utf-8; mode: ruby -*-<br \/>\n# Function:<br \/>\n# Lazurite Sub-GHz\/Lazurite Pi Gateway Sample program<br \/>\n# SerialMonitor.rb<br \/>\nrequire &#8216;LazGem&#8217;<\/p>\n<p>laz = LazGem::Device.new<\/p>\n<p># Halt process when CTRL+C is pushed.<br \/>\nfinish_flag=0<br \/>\nSignal.trap(:INT){<br \/>\nfinish_flag=1<br \/>\n}<\/p>\n<p>if ARGV.size == 0<br \/>\nprintf(&quot;please input argument of ch at leastn&quot;)<br \/>\nprintf(&quot;command format is shown below&#8230;n&quot;)<br \/>\nprintf(&quot;.\/sample_rx.rb ch panid baud pwrn&quot;)<br \/>\nprintf(&quot; ch: 24-61n&quot;)<br \/>\nprintf(&quot; panid: 0-0xffffn&quot;)<br \/>\nprintf(&quot; baud: 50 or 100n&quot;)<br \/>\nprintf(&quot; pwr: 1 or 20n&quot;)<br \/>\nexit 0<br \/>\nend<\/p>\n<p># open device deriver<\/p>\n<p>dst_addr = 0xffff<br \/>\nch = 36<br \/>\npanid = 0xabcd<br \/>\nbaud = 100<br \/>\npwr = 20<\/p>\n<p>if ARGV.size &gt;0<br \/>\nch=Integer(ARGV[0])<br \/>\nend<br \/>\nif ARGV.size &gt; 1<br \/>\npanid = Integer(ARGV[1])<br \/>\nend<br \/>\nif ARGV.size &gt; 2<br \/>\nbaud = Integer(ARGV[2])<br \/>\nend<br \/>\nif ARGV.size &gt; 3<br \/>\npwr = Integer(ARGV[3])<br \/>\nend<\/p>\n<p>laz.init()<\/p>\n<p>print(sprintf(&quot;myAddress=0x%016xn&quot;,laz.getMyAddr64()))<br \/>\nprint(sprintf(&quot;myAddress=0x%04xn&quot;,laz.getMyAddress()))<\/p>\n<p>laz.begin(ch,panid,baud,pwr)<br \/>\nlaz.rxEnable()<\/p>\n<p># main routine<br \/>\n$last_byte = nil<br \/>\n$rx_jpeg = false<br \/>\n$jpeg_data = []<br \/>\n$jpeg_file_offset = 0<br \/>\n$num = 0<br \/>\nwhile finish_flag == 0 do<br \/>\n if laz.available() == 0<br \/>\n sleep 0.01<br \/>\n next<br \/>\n end<br \/>\n rcv = laz.read()<br \/>\n data = rcv[&quot;payload&quot;].unpack(&quot;llC*&quot;);<br \/>\n len = data.length<br \/>\n offset = data[1]<br \/>\n data[2..len-1].each {|d|<br \/>\n if $last_byte ==nil then<br \/>\n $last_byte = d<br \/>\n next<br \/>\n end<br \/>\n if $last_byte == 0xFF &amp;&amp; d == 0xD8 then<br \/>\n $jpeg_data = []<br \/>\n $rx_jpeg = true<br \/>\n $jpeg_data.push(0xFF)<br \/>\n $jpeg_data.push(0xD8)<br \/>\n $jpeg_file_offset = 0<br \/>\n p &quot;start JPEG receive&quot;<br \/>\n elsif $last_byte == 0xFF &amp;&amp; d == 0xD9 then<br \/>\n $jpeg_data.push(0xD9)<br \/>\n $rx_jpeg = false<br \/>\n f = open(&quot;sample&quot;+(&#8216;000&#8217;+$num.to_s)[-4,4]+&quot;.jpg&quot;, &quot;wb&quot;)<br \/>\n $num += 1<br \/>\n f.write($jpeg_data.pack(&quot;C*&quot;))<br \/>\n f.close<br \/>\n p &quot;end of JPEG receive&quot;<br \/>\n elsif $rx_jpeg == true then<br \/>\n $jpeg_data.push(d)<br \/>\n end<br \/>\n $last_byte = d<br \/>\n }<br \/>\n if $jpeg_file_offset != 0 &amp;&amp; (offset &#8211; $jpeg_file_offset) != 128 then<br \/>\n p &quot;data receive error&quot;<br \/>\n end<br \/>\n $jpeg_file_offset = offset<br \/>\n #print(rcv[&#8216;payload&#8217;])<br \/>\nend<\/p>\n<p># finishing process<br \/>\nlaz.remove()<\/p>\n<p>[\/ruby]<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"#smoothplay4\">\u4e0a\u90e8\u3078\u623b\u308b<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; &nbsp; \u30b7\u30b9\u30c6\u30e0\u69cb\u6210 \u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9 Lazurite SubGHz \u30ab\u30e1\u30e9\u30e2\u30b8\u30e5\u30fc\u30eb ArduiCAM \u30b2\u30fc\u30c8\u30a6\u30a7\u30a4 &amp; \u30ab\u30e1\u30e9\u753b\u50cf\u306e\u4fdd\u5b58 Raspberry Pi 3 Lazurite Pi Gateway \u624b\u9806 Raspberry Pi\u5074\u306e\u8a2d\u5b9a Lazurite Pi Gateway\u306e\u30c9\u30e9\u30a4\u30d0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001\u3053\u3061\u3089\u3092\u898b\u3066\u7121\u7dda\u4fe1\u53f7\u304c\u53d6\u5f97\u3067\u304d\u308b\u307e\u3067\u306f\u5b8c\u6210\u3055\u305b\u3066\u304f\u3060\u3055\u3044\u3002 \u7121\u7dda\u4fe1\u53f7\u306e\u9001\u53d7\u4fe1\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3089\u3001\u4eca\u56de\u306fruby\u3067\u7121\u7dda\u53d7\u4fe1\u3057\u305fJPEG\u306e\u753b\u50cf\u30c7\u30fc\u30bf\u3092Raspberry Pi\u3067\u53d7\u4fe1\u3057\u3001\u53d7\u4fe1\u3059\u308b\u305f\u3073\u306b\u9023\u756a\u306e\u30d5\u30a1\u30a4\u30eb\u540d\uff08sample 000x.jpg)\u3067\u4fdd\u5b58\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 \u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u30da\u30fc\u30b8\u306e\u6700\u5f8c\u306b\u8cbc\u308a\u4ed8\u3051\u3057\u307e\u3057\u305f\uff01 \u30da\u30fc\u30b8\u306e\u6700\u5f8c\u3078 &#8220;.\/sample_rx_jpq.rb 36&#8221; \u306a\u3069\u3001 \u30d7\u30ed\u30b0\u30e9\u30e0\u540d\u306e\u5f8c\u308d\u306b\u7121\u7dda\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u756a\u53f7\u3092\u6307\u5b9a\u3059\u308b\u3068\u52d5\u4f5c\u3057\u307e\u3059\u3002 &nbsp; Lazurite SubGHz\u5074\u306e\u624b\u9806 \u8a55\u4fa1\u30dc\u30fc\u30c9\u3092\u7d44\u307f\u7acb\u3066\u308b \u3053\u3061\u3089\u306e\u30da\u30fc\u30b8\u306b\u5f93\u3063\u3066\u30dc\u30fc\u30c9\u3092\u7d44\u307f\u7acb\u3066\u307e\u3059\u3002 \u2193 \u914d\u7dda\u306f\u3001\u4e0b\u8a18\u8868\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u8272 Lazurite SubGHz \u30ab\u30e1\u30e9 \u30aa\u30ec\u30f3\u30b8 7 CS \u9ec4\u8272 11 MOSI \u307f\u3069\u308a 12 MISO \u9752 13 SCK \u3080\u3089\u3055\u304d GND GND \u30b0\u30ec\u30fc 3.3V VCC \u767d  [&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],"tags":[],"class_list":["post-12643","post","type-post","status-publish","format-standard","hentry","category-lazurite"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts\/12643","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=12643"}],"version-history":[{"count":5,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts\/12643\/revisions"}],"predecessor-version":[{"id":16508,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts\/12643\/revisions\/16508"}],"wp:attachment":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/media?parent=12643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/categories?post=12643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/tags?post=12643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}