{"id":46,"date":"2024-06-21T09:35:05","date_gmt":"2024-06-21T00:35:05","guid":{"rendered":"https:\/\/hobbyfab.jp\/?p=46"},"modified":"2024-06-21T09:35:05","modified_gmt":"2024-06-21T00:35:05","slug":"esp%e3%81%aa%e3%82%93%e3%81%a1%e3%82%83%e3%82%892%e5%80%8b%e3%81%a7%e7%9b%b8%e4%ba%92%e9%80%9a%e4%bf%a1","status":"publish","type":"post","link":"https:\/\/hobbyfab.jp\/?p=46","title":{"rendered":"ESP\u306a\u3093\u3061\u3083\u30892\u500b\u3067\u76f8\u4e92\u901a\u4fe1"},"content":{"rendered":"\n<p>ESP8266\u3084ESP-WROOM-02\u3084\u3089\u3092\u4f7f\u3046\u3068\u7121\u7ddaLAN\u3067\u4eee\u60f3COM\u30dd\u30fc\u30c8\u304c\u7c21\u5358\u306b\u4f7f\u3048\u308b\u3063\u3066\u4e8b\u3092\u77e5\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>2\u500b\u4f7f\u3063\u305f\u3089\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u304c\u7c21\u5358\u306b\u7121\u7dda\u5316\u51fa\u6765\u308b\u3093\u3058\u3083\u7121\u3044\u304b\u3068\u601d\u3044\u3001\u3044\u308d\u3044\u308d\u3068\u8abf\u3079\u3066\u307f\u305f\u3068\u3053\u308d\u30c8\u30e9\u30f3\u30b9\u30da\u30a2\u30ec\u30f3\u30c8\u30e2\u30fc\u30c9\u3063\u3066\u306e\u3092\u4f7f\u3046\u3068\u4f55\u306b\u3082\u30d7\u30ed\u30b0\u30e9\u30e0\u3057\u306a\u304f\u3066\u3082\u3044\u3051\u3061\u3083\u3046\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Arduino\u306b\u3064\u306a\u3044\u3067\u3068\u304bESP8266\u306b\u30b9\u30b1\u30c3\u30c1\u66f8\u304d\u8fbc\u3093\u3067\u3068\u304b\u306e\u8a18\u4e8b\u306f\u3044\u308d\u3044\u308d\u3068\u898b\u304b\u3051\u308b\u3093\u3067\u3059\u304c\u3001\u76f8\u4e92\u901a\u4fe1\u3060\u3051\u51fa\u6765\u308c\u3070\u3044\u3044\u306e\u3067\u3061\u3083\u3061\u3083\u3063\u3068\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n\n\n\n<p>&nbsp;1. 2\u3064\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092USB\u7d4c\u7531\u3067PC\u3068\u3064\u306a\u3052\u307e\u3059<\/p>\n\n\n\n<p>&nbsp; &nbsp; &nbsp;\u4eee\u60f3COM\u30dd\u30fc\u30c8\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u308b\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u3069\u3061\u3089\u306eCOM\u30dd\u30fc\u30c8\u304b\u308f\u304b\u308b\u69d8\u306bCOM\u307d\u30fc\u3068\u306e\u756a\u53f7\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>&nbsp;2. \u30bf\u30fc\u30df\u30ca\u30eb\u30bd\u30d5\u30c8\u3092\u8d77\u52d5\u3057\u3066\u305d\u308c\u305e\u308c\u306eCOM\u30dd\u30fc\u30c8\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>&nbsp; &nbsp; \u901a\u4fe1\u8a2d\u5b9a\u306f\u3001\u901f\u5ea6=115200bps, \u30c7\u30fc\u30bf\u30d3\u30c3\u30c8=8bit, \u30b9\u30c8\u30c3\u30d7\u30d3\u30c3\u30c8=1bit, \u30d1\u30ea\u30c6\u30a3\u30fc=\u7121\u3057, \u30d5\u30ed\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb=\u7121\u3057<\/p>\n\n\n\n<p>&nbsp; &nbsp; \u7aef\u672b\u8a2d\u5b9a\u306f\u3001\u9001\u53d7\u4fe1\u3068\u3082\u306b\u6539\u884c\u3092CR+LF<\/p>\n\n\n\n<p>&nbsp;3. SoftAP\u5074\u306b\u4e0b\u8a18\u306eAT\u30b3\u30de\u30f3\u30c9\u30921\u884c\u3065\u3064\u9001\u4fe1\u3057\u307e\u3059<\/p>\n\n\n\n<p>&nbsp; &nbsp; \u203b\u3044\u3063\u307a\u3093\u306b\u9001\u4fe1\u3059\u308b\u30681\u884c\u524d\u306e\u30b3\u30de\u30f3\u30c9\u51e6\u7406\u304c\u7d42\u308f\u308b\u524d\u306b\u9001\u4fe1\u3055\u308c\u3066\u3057\u307e\u3044\u5931\u6557\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>AT<\/p>\n\n\n\n<p>AT+CWMODE_DEF=2<\/p>\n\n\n\n<p>AT+CWSAP_DEF=&#8221;ESP8266&#8243;,&#8221;1234567890&#8243;,5,3,1,0<\/p>\n\n\n\n<p>AT+CIPAP_DEF=&#8221;192.168.5.1&#8243;,&#8221;192.168.5.1&#8243;,&#8221;255.255.255.0&#8243;<\/p>\n\n\n\n<p>AT+CIPAPMAC_DEF=&#8221;1a:fe:36:97:d5:7b&#8221;<\/p>\n\n\n\n<p>AT+CWDHCP_DEF=0,0<\/p>\n\n\n\n<p>AT+CIPMUX=0<\/p>\n\n\n\n<p>AT+SAVETRANSLINK=1,&#8221;192.168.5.2&#8243;,1002,&#8221;UDP&#8221;,1005<\/p>\n\n\n\n<p>AT+RST<\/p>\n\n\n\n<p>\u6700\u5f8c\u306eAT+RST\u3067\u30ea\u30b9\u30bf\u30fc\u30c8\u3055\u308c\u3066\u5f85\u3061\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>&nbsp;4. Station\u5074\u306b\u4e0b\u8a18\u306eAT\u30b3\u30de\u30f3\u30c9\u30921\u884c\u3065\u3064\u9001\u4fe1\u3057\u307e\u3059<\/p>\n\n\n\n<p>AT<\/p>\n\n\n\n<p>AT+CWMODE_DEF=1<\/p>\n\n\n\n<p>AT+CIPSTA_DEF=&#8221;192.168.5.2&#8243;,&#8221;192.168.5.1&#8243;,&#8221;255.255.255.0&#8243;<\/p>\n\n\n\n<p>AT+CWAUTOCONN=1<\/p>\n\n\n\n<p>AT+CWJAP_DEF=&#8221;ESP8266&#8243;,&#8221;1234567890&#8243;<\/p>\n\n\n\n<p>AT+SAVETRANSLINK=1,&#8221;192.168.5.1&#8243;,1005,&#8221;UDP&#8221;,1002<\/p>\n\n\n\n<p>AT+RST<\/p>\n\n\n\n<p>\u6700\u5f8c\u306eAT+RST\u3067\u30ea\u30b9\u30bf\u30fc\u30c8\u3055\u308c\u3066SoftAP\u5074\u306b\u63a5\u7d9a\u3057\u76f8\u4e92\u901a\u4fe1\u304c\u53ef\u80fd\u306a\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e0a\u8a18\u8a2d\u5b9a\u306f\u30e6\u30fc\u30b6\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u30a8\u30ea\u30a2\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u96fb\u6e90\u6295\u5165(USB\u63a5\u7d9a)\u3059\u308b\u3068\u76f8\u4e92\u901a\u4fe1\u53ef\u80fd\u306a\u72b6\u614b\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u203bIP\u30a2\u30c9\u30ec\u30b9\u3084SSID\u7b49\u306fESP8266\u306eAT\u30b3\u30de\u30f3\u30c9\u8aac\u660e\u66f8\u306e\u8a18\u8ff0\u3092\u305d\u306e\u307e\u307e\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u4f7f\u3063\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u30b7\u30ea\u30a2\u30eb-USB\u5909\u63db\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001USB\u5909\u63db\u6a5f\u80fd\u306e\u7121\u3044\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066\u96fb\u6e90\u3055\u3048\u7528\u610f\u51fa\u6765\u308c\u3070\u65e2\u5b58\u306eRS232C\u3067\u63a5\u7d9a\u3059\u308b\u6a5f\u5668\u7b49\u304c\u7c21\u5358\u306b\u7121\u7dda\u5316\u51fa\u6765\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ESP8266\u3084ESP-WROOM-02\u3084\u3089\u3092\u4f7f\u3046\u3068\u7121\u7ddaLAN\u3067\u4eee\u60f3COM\u30dd\u30fc\u30c8\u304c\u7c21\u5358\u306b\u4f7f\u3048\u308b\u3063\u3066\u4e8b\u3092\u77e5\u308a\u307e\u3057\u305f\u3002 2\u500b\u4f7f\u3063\u305f\u3089\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u304c\u7c21\u5358\u306b\u7121\u7dda\u5316\u51fa\u6765\u308b\u3093\u3058\u3083\u7121\u3044\u304b\u3068\u601d\u3044\u3001\u3044\u308d\u3044\u308d\u3068\u8abf\u3079\u3066\u307f\u305f\u3068\u3053\u308d\u30c8\u30e9\u30f3\u30b9\u30da\u30a2\u30ec [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-6"],"_links":{"self":[{"href":"https:\/\/hobbyfab.jp\/index.php?rest_route=\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hobbyfab.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hobbyfab.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hobbyfab.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hobbyfab.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":1,"href":"https:\/\/hobbyfab.jp\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/hobbyfab.jp\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/hobbyfab.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hobbyfab.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hobbyfab.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}