<HTML dir=ltr><HEAD>
<META content="text/html; charset=windows-1250" http-equiv=Content-Type>
<STYLE>@font-face {
font-family: Calibri;
}
@font-face {
font-family: Tahoma;
}
@page WordSection1 {margin: 70.85pt 70.85pt 70.85pt 70.85pt; }
P.MsoNormal {
FONT-SIZE: 11pt; FONT-FAMILY: "Calibri","sans-serif"; MARGIN: 0cm 0cm 0pt
}
LI.MsoNormal {
FONT-SIZE: 11pt; FONT-FAMILY: "Calibri","sans-serif"; MARGIN: 0cm 0cm 0pt
}
DIV.MsoNormal {
FONT-SIZE: 11pt; FONT-FAMILY: "Calibri","sans-serif"; MARGIN: 0cm 0cm 0pt
}
A:link {
TEXT-DECORATION: underline; COLOR: blue
}
SPAN.MsoHyperlink {
TEXT-DECORATION: underline; COLOR: blue
}
A:visited {
TEXT-DECORATION: underline; COLOR: purple
}
SPAN.MsoHyperlinkFollowed {
TEXT-DECORATION: underline; COLOR: purple
}
P.MsoAcetate {
FONT-SIZE: 8pt; FONT-FAMILY: "Tahoma","sans-serif"; MARGIN: 0cm 0cm 0pt
}
LI.MsoAcetate {
FONT-SIZE: 8pt; FONT-FAMILY: "Tahoma","sans-serif"; MARGIN: 0cm 0cm 0pt
}
DIV.MsoAcetate {
FONT-SIZE: 8pt; FONT-FAMILY: "Tahoma","sans-serif"; MARGIN: 0cm 0cm 0pt
}
SPAN.TextbublinyChar {
FONT-FAMILY: "Tahoma","sans-serif"
}
P.msochpdefault {
FONT-SIZE: 12pt; FONT-FAMILY: "Calibri","sans-serif"; MARGIN: 0cm 0cm 0pt
}
LI.msochpdefault {
FONT-SIZE: 12pt; FONT-FAMILY: "Calibri","sans-serif"; MARGIN: 0cm 0cm 0pt
}
DIV.msochpdefault {
FONT-SIZE: 12pt; FONT-FAMILY: "Calibri","sans-serif"; MARGIN: 0cm 0cm 0pt
}
SPAN.style-mailovzprvy17 {
FONT-FAMILY: "Calibri","sans-serif"; COLOR: windowtext
}
SPAN.textbublinychar0 {
FONT-FAMILY: "Tahoma","sans-serif"
}
SPAN.StylE-mailovZprvy23 {
FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d
}
.msochpdefault {
FONT-SIZE: 10pt; FONT-FAMILY: "Calibri","sans-serif"
}
</STYLE>
<STYLE id=owaParaStyle>P {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
</STYLE>
</HEAD>
<BODY lang=CS dir=ltr link=blue vLink=purple fPStyle="1" ocsi="0">
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV>Ale já myslel pull-up na CH_PD a GPIO0. Na RXD jsem viděl dát pull-up snad
jen jednou... Jak to máte celé zapojené? A ten USB převodník je také na
3.3V?</DIV>
<DIV> </DIV>
<DIV>P.B.</DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=michal.grunt@vynet.cz
href="mailto:michal.grunt@vynet.cz">Michal Grunt</A> </DIV>
<DIV><B>Sent:</B> Wednesday, February 25, 2015 9:08 PM</DIV>
<DIV><B>To:</B> <A title=hw-list@list.hw.cz
href="mailto:hw-list@list.hw.cz">HW-news</A> </DIV>
<DIV><B>Subject:</B> RE: ESP8266/USART záhada</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; COLOR: #000000; DIRECTION: ltr">
<P>Tak jsem to zkoušel a nic. Myslíte pullup na RX (na ESP modulu)? Chová se to
pořád stejně...</P>
<P> </P>
<P>MG</P>
<P> </P>
<DIV style="FONT-SIZE: 16px; FONT-FAMILY: times new roman; COLOR: #000000">
<HR tabIndex=-1>
<DIV id=divRpF676742 style="DIRECTION: ltr"><FONT color=#000000 size=2
face=Tahoma><B>Od:</B> Hw-list [hw-list-bounces@list.hw.cz] za uživatele Michal
Grunt [michal.grunt@vynet.cz]<BR><B>Odesláno:</B> 25. února 2015
14:34<BR><B>Komu:</B> HW-news<BR><B>Předmět:</B> RE: ESP8266/USART
záhada<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<DIV class=WordSection1>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Večer vyzkouším,
děkuji.</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">MG</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN> </P>
<DIV>
<DIV
style="BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0cm; PADDING-TOP: 3pt; PADDING-LEFT: 0cm; BORDER-LEFT: medium none; PADDING-RIGHT: 0cm">
<P class=MsoNormal><B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"'>From:</SPAN></B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"'> Hw-list
[mailto:hw-list-bounces@list.hw.cz] <B>On Behalf Of </B>Pavel
Brychta<BR><B>Sent:</B> Wednesday, February 25, 2015 2:29 PM<BR><B>To:</B>
HW-news<BR><B>Subject:</B> Re: ESP8266/USART záhada</SPAN></P></DIV></DIV>
<P class=MsoNormal> </P>
<DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Arial","sans-serif"; COLOR: black'>Myslím,
že mám všude 2k2... Bohužel je s tím občas dost laborace, ale zase je to
vyvážený cenou no... Ještě doporučuju překontrolovat na citlivost “na prst” –
přejet po po vývodech (v případě ESP-01) prstem, jestli to
vydrží.</SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Arial","sans-serif"; COLOR: black'></SPAN> </P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Arial","sans-serif"; COLOR: black'>P.B.</SPAN></P></DIV>
<DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'></SPAN> </P></DIV>
<DIV>
<DIV>
<P class=MsoNormal style="BACKGROUND: whitesmoke"><B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>From:</SPAN></B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'> <A
title=michal.grunt@vynet.cz href="mailto:michal.grunt@vynet.cz"
target=_blank>Michal Grunt</A> </SPAN></P></DIV>
<DIV>
<P class=MsoNormal style="BACKGROUND: whitesmoke"><B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>Sent:</SPAN></B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>
Wednesday, February 25, 2015 1:28 PM</SPAN></P></DIV>
<DIV>
<P class=MsoNormal style="BACKGROUND: whitesmoke"><B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>To:</SPAN></B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'> <A
title=hw-list@list.hw.cz href="mailto:hw-list@list.hw.cz"
target=_blank>HW-news</A> </SPAN></P></DIV>
<DIV>
<P class=MsoNormal style="BACKGROUND: whitesmoke"><B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>Subject:</SPAN></B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'> RE:
ESP8266/USART záhada</SPAN></P></DIV></DIV></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 12pt; COLOR: black"></SPAN> </P></DIV></DIV>
<DIV>
<DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>Zajímavý,
že se o tom nikde moc nezmiňují, ale měl jsem na to trochu podezření. Jak veliký
pull up doporučujete? Zkoušel jsem 1k (jiný momentálně nemám po ruce). Chytlo se
to, ale až po cca půl minutě blikání a to ještě ne vždy na každý
start...<BR><BR>MG</SPAN></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN
style='FONT-SIZE: 12pt; FONT-FAMILY: "Times New Roman","serif"; COLOR: black'>
<HR align=center SIZE=2 width="100%">
</SPAN></DIV>
<DIV id=divRpF721367>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>Od:</SPAN></B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>
Hw-list [hw-list-bounces@list.hw.cz] za uživatele Pavel Brychta
[pavel.brychta@duhasys.eu]<BR><B>Odesláno:</B> 25. února 2015
11:03<BR><B>Komu:</B> HW-news<BR><B>Předmět:</B> Re: ESP8266/USART
záhada</SPAN><SPAN
style='FONT-SIZE: 12pt; FONT-FAMILY: "Times New Roman","serif"; COLOR: black'></SPAN></P></DIV>
<DIV>
<DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Arial","sans-serif"; COLOR: black'>Typická
závada <IMG id=_x0000_i1026 border=0 alt="Veselý obličej"
src="cid:3E33BE95DC7C41D3A95271AEF6CC18BA@PBRYNBD" width=19 height=19>Chybí Vám
pull-up. Už jsem se s tím setkal. Pokud svítí modrá LED, tak to tak v drtivé
většině bývá.</SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Arial","sans-serif"; COLOR: black'></SPAN> </P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Arial","sans-serif"; COLOR: black'>P.B.</SPAN></P></DIV>
<DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'></SPAN> </P></DIV>
<DIV>
<DIV>
<P class=MsoNormal style="BACKGROUND: whitesmoke"><B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>From:</SPAN></B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'> <A
title=michal.grunt@vynet.cz href="mailto:michal.grunt@vynet.cz"
target=_blank>Michal Grunt</A> </SPAN></P></DIV>
<DIV>
<P class=MsoNormal style="BACKGROUND: whitesmoke"><B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>Sent:</SPAN></B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>
Wednesday, February 25, 2015 10:53 AM</SPAN></P></DIV>
<DIV>
<P class=MsoNormal style="BACKGROUND: whitesmoke"><B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>To:</SPAN></B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'> <A
title=hw-list@list.hw.cz href="mailto:hw-list@list.hw.cz"
target=_blank>mailto:hw-list@list.hw.cz</A> </SPAN></P></DIV>
<DIV>
<P class=MsoNormal style="BACKGROUND: whitesmoke"><B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>Subject:</SPAN></B><SPAN
style='FONT-SIZE: 10pt; FONT-FAMILY: "Tahoma","sans-serif"; COLOR: black'>
ESP8266/USART záhada</SPAN></P></DIV></DIV></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 12pt; COLOR: black"></SPAN> </P></DIV></DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN style="COLOR: black">Zdravím, mám STM32F103</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"><A
href="http://img34.olx.ua/images_slandocomua/183653005_1_644x461_otladochnaya-plata-stm32-stm32f103c8t6-poltava.jpg"
target=_blank>http://img34.olx.ua/images_slandocomua/183653005_1_644x461_otladochnaya-plata-stm32-stm32f103c8t6-poltava.jpg</A></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black">a k tomu nadrátovaný modul ESP8266
(na USART1).</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: black">Mám jednoduchý program pro
připojení k AP. Na USART1 mám ještě připojený serial/USB kablík pro
odposlouchávání komunikace (pouze RX z pohledu převodníku resp. TX PA9). Vše
běží. Ale když USB kabel odpojím, zapnu napájení tak modul se k AP nepřipojí.
Rychle bliká modrá LED na wifi modulu v podstatě bez přerušení – normálně bliká
pouze asi vteřinu při připojení k AP.</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: black">Odpojím napájení a když zapojím
pouze RX serial/USB kablík (aniž bych ten USB zapojoval do PC) tak vše opět
běží…</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: black">Vyzkoušel jsem i externí napájení
(ne z PC) a chová se to stejně. Jedině snad, že bych měl nějak blbě
nakonfigurovaný USART1 a ten USB převodník by to nějak „pozitivně“
ovlivňoval...</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: black">void USART1_Init()</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black">{</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
GPIO_InitTypeDef GPIO_InitStructure;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
USART_InitTypeDef USART_InitStructure;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
NVIC_InitTypeDef NVIC_InitStructure;</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"></SPAN> </P>
<P class=MsoNormal><SPAN
style="COLOR: black">
RCC_APB2PeriphClockCmd (RCC_APB2Periph_USART1 | RCC_APB2Periph_GPIOA,
ENABLE);</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"></SPAN> </P>
<P class=MsoNormal><SPAN
style="COLOR: black">
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
GPIO_Init(GPIOA, &GPIO_InitStructure);</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"></SPAN> </P>
<P class=MsoNormal><SPAN
style="COLOR: black">
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
GPIO_Init(GPIOA, &GPIO_InitStructure);</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"></SPAN> </P>
<P class=MsoNormal><SPAN
style="COLOR: black">
USART_InitStructure.USART_BaudRate
= 115200;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
USART_InitStructure.USART_WordLength
= USART_WordLength_8b;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
USART_InitStructure.USART_StopBits
= USART_StopBits_1;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
USART_InitStructure.USART_Parity
= USART_Parity_No ;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
USART_InitStructure.USART_HardwareFlowControl =
USART_HardwareFlowControl_None;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
USART_InitStructure.USART_Mode
= USART_Mode_Rx | USART_Mode_Tx;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
USART_Init(USART1, &USART_InitStructure);</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"></SPAN> </P>
<P class=MsoNormal><SPAN
style="COLOR: black">
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_0);</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
NVIC_Init(&NVIC_InitStructure);</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"></SPAN> </P>
<P class=MsoNormal><SPAN
style="COLOR: black">
USART_ITConfig(USART1, USART_IT_RXNE, ENABLE);</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">
NVIC_EnableIRQ(USART1_IRQn);</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"></SPAN> </P>
<P class=MsoNormal><SPAN
style="COLOR: black">
USART_Cmd(USART1, ENABLE);</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black">}</SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"></SPAN> </P>
<P class=MsoNormal><SPAN style="COLOR: black">Děkuji za rady</SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black">MG</SPAN></P></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>