Á¦Ç°¼Ò°³
ºí·çÅõ½º5 Á¦Ç°±º
ºí·çÅõ½º4 Á¦Ç°±º
ºí·çÅõ½º Á¦Ç°±º
ºí·çÅõ½º ¸ðµâ
Áö±×ºñ Á¦Ç°±º
·Î¶ó(LoRa) Á¦Ç°±º
¾×¼¼»ç¸® Á¦Ç°±º
±¸¸Å¹®ÀÇ
Á¦Ç°±¸ÀÔó
°ßÀû¿äû
°í°´Áö¿ø
°øÁö»çÇ×
ÀÚÁÖÇÏ´ÂÁú¹®
Q&A
´Ù¿î·Îµå
À¯Æ¿¸®Æ¼
SOURCE
ȸ·Îµµ&¹®¼
ȸ»ç¼Ò°³
CEOÀλ縻
ȸ»ç¿¬Çõ
Á¶Á÷µµ
ã¾Æ¿À½Ã´Â±æ
Á¦Ç°¼îÇθô
ÀÛ¼ºÀÚ
ºñ¹Ð¹øÈ£
À̸ÞÀÏ
Á¦¸ñ
------- ¿øº» ³»¿ë ---------
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 ¼³Á¤À» ÇÏ´Â ¹æ¹ýÀÌ µû·Î ÀÖ´Â °ÍÀÎÁö¿¡ ´ëÇØ ¹®ÀÇ µå¸³´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
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 ¼³Á¤À» ÇÏ´Â ¹æ¹ýÀÌ µû·Î ÀÖ´Â °ÍÀÎÁö¿¡ ´ëÇØ ¹®ÀÇ µå¸³´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
½ºÆÔ¹æÁö
[»õ·Î°íħ]
¡Ø ½ºÆÔ µî·Ï ¹æÁö¸¦ À§ÇØ °è»ê½ÄÀÇ ´äÀ» ÀÔ·ÂÇØ Áֽñ⠹ٶø´Ï´Ù.