?>

Hard Copy World

HCW

Q&A

Home > Forum >

Q&A

질문 | 초보 : ESP8266 UART Development Board와 Arduino UNO3를 이용한 Wifi연결

페이지 정보

작성자 mukosalgi 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일18-03-25 22:34 조회114회 댓글1건

본문

수고 많으십니다.

아두이노 초보입니다. 한가지 도움을 청하고자 글을 올립니다.

 ESP8266 UART Wifi Development Board를 IC114에서 구매하였습니다. 그리고 이를 아두이노 우노3에 ESP8266 보드를 연결한 후 아두이노스케치파일(scanNetwork.ino)을 열고 컴파일/ upload하여 Wifi연결을 시도하였으나, 결국 Wifi 연결을 실패하였습니다. 구글에  검색어(ESP8266 UART Wifi Development Board for Arduino)를 입력하여 도움이 되는 글을 찾아보았지만, 결국 명확하게 도움이 될만한 자료를 찾지 못하였습니다.

 혹시, 하드카피월드에서 저의 고민을 해결하는데 도움을 주실 수 있는지요? 한마디로 어떻게 하면 ESP8266 UART Development Board로 scanNetwork를 에러없이 실행할 수 있는지요? 일주일째 여기저기 찾아보고 시도해보아도 도저히  upload를 성공시킬수가 없었습니다. ㅠㅠ
(라이브러리를 추가해야되는지, 아니면 Dip switch 변경?, 펌웨어업그레이드...???)

참조로,  아두이노 IDE(1.8.5)에서 에제파일(ScanNetwork.ino)를 실행시켰는데, 컴파일까지는 성공하였으나,  Upload단계에서 에러메세지를 내고 결국 Upload가 실패하였습니다.
아래는  scanNetwork.ino 소스와  IDE 실행(컴파일 후, Upload) 과정에서 발생한 에러메세지임니다.

AA. scanNetwork.ino

/*
 This example  prints the Wifi shield's MAC address, and
 scans for available Wifi networks using the Wifi shield.
 Every ten seconds, it scans again. It doesn't actually
 connect to any network, so no encryption scheme is specified.

 Circuit:
 * WiFi shield attached

 created 13 July 2010
 by dlf (Metodo2 srl)
 modified 21 Junn 2012
 by Tom Igoe and Jaymes Dec
 */


#include <SPI.h>
#include <WiFi.h>

void setup() {
  //Initialize serial and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }

  // check for the presence of the shield:
  if (WiFi.status() == WL_NO_SHIELD) {
    Serial.println("WiFi shield not present");
    // don't continue:
    while (true);
  }

  String fv = WiFi.firmwareVersion();
  if (fv != "1.1.0") {
    Serial.println("Please upgrade the firmware");
  }

  // Print WiFi MAC address:
  printMacAddress();
}

void loop() {
  // scan for existing networks:
  Serial.println("Scanning available networks...");
  listNetworks();
  delay(10000);
}

void printMacAddress() {
  // the MAC address of your Wifi shield
  byte mac[6];

  // print your MAC address:
  WiFi.macAddress(mac);
  Serial.print("MAC: ");
  Serial.print(mac[5], HEX);
  Serial.print(":");
  Serial.print(mac[4], HEX);
  Serial.print(":");
  Serial.print(mac[3], HEX);
  Serial.print(":");
  Serial.print(mac[2], HEX);
  Serial.print(":");
  Serial.print(mac[1], HEX);
  Serial.print(":");
  Serial.println(mac[0], HEX);
}

void listNetworks() {
  // scan for nearby networks:
  Serial.println("** Scan Networks **");
  int numSsid = WiFi.scanNetworks();
  if (numSsid == -1) {
    Serial.println("Couldn't get a wifi connection");
    while (true);
  }

  // print the list of networks seen:
  Serial.print("number of available networks:");
  Serial.println(numSsid);

  // print the network number and name for each network found:
  for (int thisNet = 0; thisNet < numSsid; thisNet++) {
    Serial.print(thisNet);
    Serial.print(") ");
    Serial.print(WiFi.SSID(thisNet));
    Serial.print("\tSignal: ");
    Serial.print(WiFi.RSSI(thisNet));
    Serial.print(" dBm");
    Serial.print("\tEncryption: ");
    printEncryptionType(WiFi.encryptionType(thisNet));
  }
}

void printEncryptionType(int thisType) {
  // read the encryption type and print out the name:
  switch (thisType) {
    case ENC_TYPE_WEP:
      Serial.println("WEP");
      break;
    case ENC_TYPE_TKIP:
      Serial.println("WPA");
      break;
    case ENC_TYPE_CCMP:
      Serial.println("WPA2");
      break;
    case ENC_TYPE_NONE:
      Serial.println("None");
      break;
    case ENC_TYPE_AUTO:
      Serial.println("Auto");
      break;
  }
}

 

BB. IDE  에러메세지



-------------------------------------------

스케치는 프로그램 저장 공간 6460 바이트(20%)를 사용. 최대 32256 바이트.
전역 변수는 동적 메모리 780바이트(38%)를 사용, 1268바이트의 지역변수가 남음.  최대는 2048 바이트.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x4d
보드에 업로딩중에 문제 발생. 다음을  참고하세요. http://www.arduino.cc/en/Guide/Troubleshooting#upload

댓글목록

최고관리자님의 댓글

최고관리자 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

보드 업로드 전에 포트와 보드 종류(ESP8266) 맞는지 확인해보세요. 그리고 업로드에 사용되는 시리얼 핀이 사용중이면 안됩니다. 가급적 핀에 연결된거 모두 해제하고 해보세요.
만약 이걸로 해결이 안되면 구글에서 에러 메시지로 검색을 해보셔야 할듯 합니다.


www.obs.co.kr www.kctc.or.kr www.cnbnews.com www.kukinews.com bokuennews.com bokuennews.com www.ddaily.co.kr www.fnit.co.kr http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://hmcc.hanyang.ac.kr/admin/data/product/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://www.aceups.com/admin/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://happyplus.chosunmagazine.com/admin/data/form/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.miracos.co.kr/admin/search/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.hanasia.com/new/pages/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.aquaseoul.com/conf/popups/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/ http://www.hardcopyworld.com/bootstrap/