<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.StylE-mailovZprvy18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:none;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Goodwe se (standardne) pripojuji do zakaznickych aplikaci pres wifinu, seriak je (standardne) na smartmerak. Vymenil bych Arduino nano za malinu a apka se bude primerene lepe psat. JM<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=CS>From:</span></b><span lang=CS> Hw-list <hw-list-bounces@list.hw.cz> <b>On Behalf Of </b>Jirka Mww<br><b>Sent:</b> Tuesday, November 21, 2023 3:46 PM<br><b>To:</b> HW-news <hw-list@list.hw.cz><br><b>Subject:</b> Re: Seriova komunikace RS485<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>DĂky za odpověď, ano, mám tam jen odpor 120 Ohm mezi A a B. ZkusĂm to tedy podepĹ™Ăt na +5V a 0. ZatĂm jsem tohle nikdy nepouĹľil. <o:p></o:p></p><div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><div><p class=MsoNormal>Zdravi<br>Jirka SloupenskĂ˝ OK1MWW<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p></div></div><div id=DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2><p class=MsoNormal><o:p> </o:p></p><table class=MsoNormalTable border=1 cellpadding=0 style='border:none;border-top:solid #D3D4DE 1.0pt'><tr><td width=55 style='width:41.25pt;border:none;padding:9.75pt .75pt .75pt .75pt'><p class=MsoNormal><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><span style='border:solid windowtext 1.0pt;padding:0cm;mso-fareast-language:EN-US;text-decoration:none'><img border=0 width=46 height=29 style='width:.4791in;height:.302in' id="obrázek_x0020_1" src="cid:image002.jpg@01DA1C94.A3C64AF0" alt="Obrázek byl odebrán odesĂlatelem."></span></a><span style='mso-ligatures:standardcontextual;mso-fareast-language:EN-US'><o:p></o:p></span></p></td><td width=470 style='width:352.5pt;border:none;padding:9.0pt .75pt .75pt .75pt'><p class=MsoNormal style='line-height:13.5pt'><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#41424E;mso-ligatures:standardcontextual;mso-fareast-language:EN-US'>Neobsahuje žádnĂ© viry.</span><span style='mso-ligatures:standardcontextual;mso-fareast-language:EN-US'><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#4453EA'>www.avast.com</span></a></span><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#41424E;mso-ligatures:standardcontextual;mso-fareast-language:EN-US'><o:p></o:p></span></p></td></tr></table></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Ăşt 21. 11. 2023 v 15:38 odesĂlatel Petr Labaj <<a href="mailto:labaj@volny.cz">labaj@volny.cz</a>> napsal:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'><div><p class=MsoNormal style='margin-bottom:12.0pt'>Jak to máte zakonÄŤenĂ©?<br>Jen odporem mezi A, B nebo máte potaĹľenĂ© ty linky do +5V a 0V?<br><br>Ty levnĂ© "automatickĂ© pĹ™epĂnaÄŤe smÄ›ru" fungujĂ ÄŤasto tak, Ĺľe poÄŤĂtajĂ se silnĂ˝m potaĹľenĂm do tÄ›ch neaktivnĂch ĂşrovnĂ.<br>TakĹľe vysĂlaÄŤ spustĂ jen pro aktivnĂ ĂşroveĹ (zde L na vstupu), pro H prostÄ› ten vysĂlaÄŤ s nÄ›jakĂ˝m zpoĹľdÄ›nĂm vypnou a spolĂ©hajĂ na ty externĂ odpory.<br><br>Vrazil bych tam na linku A+ odpor tĹ™eba 2k2 na +5V, na B- pak 2k2 na GND.<br><br>PL<br><br>********************<o:p></o:p></p><div><p class=MsoNormal>Dne 21.11.2023 v 15:31 Jirka Mww napsal(a):<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal>DobrĂ˝ den, <o:p></o:p></p><div><p class=MsoNormal>ladĂm tady komunikaci mezi dvÄ›ma Arduiny, jedno je Arduino Nano a druhĂ© je Arduino Mega , pĹ™ĂslušnĂ˝ seriovĂ˝ kanál je na Mega serial2. Na Nano pouĹľĂvám HW seriovĂ˝ kanál. SW seriovĂ˝ kanál nenĂ vĹŻbec vyuĹľit. Na Arduinu Nano je modul RS485, kterĂ˝ má externĂ vstup pro pĹ™epĂnánĂ smÄ›ru pĹ™enosu, ten obsluhuji svĂ˝m SW a vše zdá se funguje správnÄ›. Na Arduinu Mega mám nÄ›jakĂ˝ ÄŤĂnskĂ˝ modul RS485, kterĂ˝ takovĂ˝ vstup nemá , pĹ™epĂná se sám, posĂlám jen ÄŤtyĹ™i znaky pomocĂ funkce <span style='font-size:10.5pt;font-family:Consolas;color:#D35400'>Serial2</span><span style='font-size:10.5pt;font-family:Consolas;color:#4E5B61'>.</span><span style='font-size:10.5pt;font-family:Consolas;color:#D35400'>println</span><span style='font-size:10.5pt;font-family:Consolas;color:#434F54'>(</span><span style='font-size:10.5pt;font-family:Consolas;color:#005C5F'>"X1A"</span><span style='font-size:10.5pt;font-family:Consolas;color:#434F54'>) </span><span style='font-size:10.5pt;font-family:Consolas;color:#4E5B61'>t.j. </span>vÄŤetnÄ› CR na konci, vÄ›tšinou to funguje, ale ten koncovĂ˝ znak, na kterĂ˝ protistrana ÄŤeká, aby pĹ™Ăkaz provedla, se obÄŤas ( cca 1 x za 40 pĹ™enosĹŻ ) nepošle. Linku monitoruji pĹ™es externĂ pĹ™evodnĂk a PC ale efekt je stejnĂ˝, jak na stranÄ› Arduino Nano, tak na stranÄ› PC. ProstÄ› ten koncovĂ˝ znak nepĹ™ijde tam ani tam. Komunikace s FVE mÄ›niÄŤem Goodwe pĹ™es dalšà port toho Arduino Mega mi funguje normálnÄ›. Je tam podobnĂ˝ modul RS485 opÄ›t bez Ĺ™ĂzenĂ smÄ›ru pĹ™enosu, je jenom galvanicky oddÄ›lenĂ˝. Nemáte nÄ›jakĂ˝ nápad, na co se zaměřit ? VkládánĂ zpoĹľdÄ›nĂ do rĹŻznĂ˝ch relevantnĂch částĂ programu nepomáhá. <o:p></o:p></p></div><div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><div><p class=MsoNormal>Zdravi<br>Jirka SloupenskĂ˝ OK1MWW<o:p></o:p></p></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></blockquote><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>_______________________________________________<br>HW-list mailing list - sponsored by <a href="http://www.HW.cz" target="_blank">www.HW.cz</a><br><a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a><br><a href="http://list.hw.cz/mailman/listinfo/hw-list" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><o:p></o:p></p></blockquote></div></div></body></html>