Á¦¸ñ F1E22 AT ¹«ÀÀ´ä
ÀÛ¼ºÀÚ À̼­ÈÄ
À̸ÞÀÏ book1020@korea.ac.kr
ÀÛ¼ºÀÏÀÚ 2024-06-05
Á¶È¸¼ö 604
Ãßõ¼ö 17
F1E22 ºí·çÅõ½º ¸ðµâÀ» ¾ÆµÎÀÌ³ë ¿ì³ë¸¦ ÅëÇÑ ½Ã¸®¾óÅë½ÅÀ» ÀÌ¿ëÇØ AT command configurationÇÏ°í ÀÖ½À´Ï´Ù. ±×·¯³ª, ¾ÆµÎÀ̳ëÀÇ ½Ã¸®¾ó ¸ð´ÏÅÍ¿¡ AT¸¦ ÀÔ·ÂÇصµ ¾Æ¹« ¹ÝÀÀµµ ³ªÅ¸³ªÁö ¾Ê´Â ¹®Á¦°¡ ¹ß»ýÇÏ°í ÀÖ½À´Ï´Ù.


ÁøÇà °úÁ¤Àº ´ÙÀ½°ú °°½À´Ï´Ù.


1. ºí·çÅõ½º ¸ðµâÀÇ °¢ ÇÉÀ» ´ÙÀ½°ú °°ÀÌ ¾ÆµÎÀÌ³ë ¿ì³ë¿Í ¿¬°áÇÏ¿´½À´Ï´Ù.
- 3VÇÉ°ú RESETBÇÉÀº ¾ÆµÎÀ̳ë 3.3VÇÉÀ¸·Î
- GNDÇÉÀº ¾ÆµÎÀ̳ë GNDÇÉÀ¸·Î
- TXD´Â ¾ÆµÎÀ̳ë D8ÇÉÀ¸·Î
- RXD´Â ¾ÆµÎÀ̳ë D7ÇÉÀ¸·Î


2. ¾ÆµÎÀ̳ë ÄÚµå´Â ´ÙÀ½°ú °°ÀÌ ÀÛ¼ºÇÏ¿´½À´Ï´Ù.
#include <SoftwareSerial.h>

SoftwareSerial btSerial(8,7);

void setup() {
  Serial.begin(9600);
  btSerial.begin(9600);
}

void loop() {
  if (btSerial.available()) {
    Serial.write(btSerial.read());
  }

  if (Serial.available()) {
    btSerial.write(Serial.read());
  }
}


3. ¾ÆµÎÀ̳ëÀÇ ½Ã¸®¾ó ¸ð´ÏÅÍ ÀԷ¸ðµå´Â Carriage ReturnÀ¸·Î ¼³Á¤ÇÏ¿´½À´Ï´Ù. baudrateµµ ¶È°°ÀÌ 9600À¸·Î ¼³Á¤ÇÏ¿´½À´Ï´Ù.


4. ±×·¯³ª, ¾ÆµÎÀ̳뿡 Äڵ带 ¾÷·Îµå ÇÏ°í ½Ã¸®¾ó¸ð´ÏÅÍ¿¡ AT¸¦ ÀÔ·ÂÇÏ¸é ¾Æ¹«·± ¹ÝÀÀµµ ³ªÅ¸³ªÁö ¾Ê½À´Ï´Ù. ±úÁø ¹®ÀÚÁ¶Â÷µµ ³ª¿ÀÁö ¾Ê½À´Ï´Ù.


5. Ȥ½Ã³ª ÇÏ¿© baudrateµµ ¹Ù²ã º¸°í, ½Ã¸®¾ó ÀԷµµ No Line Ending, New line, Both NL & CR ¸ðµÎ ½ÃµµÇØ º¸¾ÒÁö¸¸ ¹®Á¦°¡ ÇØ°áµÇÁö ¾Ê¾Ò½À´Ï´Ù. ½ÉÁö¾î ¾ÆµÎÀÌ³ë º¸µåµµ ¿©·¯ °³¸¦ ½áºÃÁö¸¸ ±×´ë·Î ÀÔ´Ï´Ù.


6. Q&A¸¦ ã´ø Áß F1E22¸ðµâÀÌ FB155BC°ú ±¸Á¶°¡ µ¿ÀÏÇÏ´Ù°í ÇÏ¿© Ä«Æä¿¡ ¿Ã¶ó¿Â ±Û (https://cafe.naver.com/firmtech7/1326)µµ ½ÃµµÇØ º¸¾ÒÀ¸³ª, "Debug Character Input"±îÁö¸¸ Ãâ·ÂµÇ°í ±× µÚ·Î´Â °úÁ¤ÀÌ ÁøÇàµÇÁö ¾Ê½À´Ï´Ù.


ÀÌ¿¡, Ȥ½Ã Á¦°¡ ÇÑ ¹æ¹ý¿¡ ¹«¾ð°¡ À߸øµÈ ºÎºÐÀÌ ÀÖ´ÂÁö, ¾Æ´Ï¸é F1E22ÀÇ Ãʱâ AT ¼³Á¤À» ÇÏ´Â ¹æ¹ýÀÌ µû·Î ÀÖ´Â °ÍÀÎÁö¿¡ ´ëÇØ ¹®ÀÇ µå¸³´Ï´Ù.


°¨»çÇÕ´Ï´Ù.
IP 163.152.xxx.xxx
À̸§ ºñ¹Ð¹øÈ£
¡Ø ÇÑ±Û 1000ÀÚ ±îÁö¸¸ ÀԷ°¡´É : ÀÚ