EtherentãšTCP / IPã¯ãããŸããŸãªããã€ã¹ãæ¥ç¶ããæãäžè¬çãªæ¹æ³ã§ããããã§ãã WiFiã¯æè¿ãæç·ã®ãé
ç·ãEtherentã«åã£ãŠä»£ãããŸããããããŒããæ¥ç¶ããŠèŠã€ãããLANã«æ¥ç¶ãããæãç°¡åãªæ¹æ³ã§ãã ãã®ãããªã€ãŒãµãããã®ã¢ã¯ã»ã·ããªãã£ã¯ãã³ã³ãããŒã©ãŒãã»ã³ãµãŒãæ¶è²»ã¡ãŒã¿ãŒãªã©ã®æå°ã®ããŒããŠã§ã¢ãééããŸããã§ããã ä»ã§ã¯ãã¢ãã®ã€ã³ã¿ãŒããã
* ãïŒã¢ãã®ã€ã³ã¿ãŒããããIoTïŒãšãããã¡ãã·ã§ããã«ãªããŒã±ãã£ã³ã°çšèªãšåŒã°ããŠããŸãã
ããã§ãWIZnetããã®éåœã®ãã€ã¯ããµãŒãããã¯ãç§ãã¡ã倧ãã«å©ããŠãããŸãã WIZnetã¯ãIOcPïŒã€ã³ã¿ãŒããããªãããŒãã³ããã»ããµïŒã¯ã©ã¹ã®ãããã®ããªã掻çºãªã¡ãŒã«ãŒã§ãã ããã¯äœã§ãã 人éã®èŠ³ç¹ã§ã¯ãããã¯ãããã§ãïŒäžæ¹ã§Etherentãæã¡ãå
éšã«ã¯TCP / IPãåŠçããããã®ç¬èªã®å°ããªããã»ããµãå«ãŸããä»æ¹ã§ã¯-å°ããªããŒããŠã§ã¢ãšéä¿¡ããããã®ã·ã³ãã«ãªã€ã³ã¿ãŒãã§ã€ã¹ã§ãã
æåã®éšåã§ã¯ããå°ããªè
ºããšç°ãªãããããžã®ãªã³ã¯ã®æãæ¥ç¶ããããšã®å°ããªçè«çãªæŠèŠããããŸãã
ããããããã«åé¡ãçºçããŸãïŒãã¹ãŠãã¡ã€ã³ã§åŠçã§ããã®ã«ã
ãªãå¥ã®ããã»ããµãã·ã¹ãã ã«å°å
¥ããã®ã§ããïŒ çããŠã¿ãŸãããã
æŠèŠïŒããããªããšã®ããã®ã€ãŒãµãããã
䟡å€ã®èŠæš¡ïŒæ倧ã§ãã«åäœãŸãã¯ãã以äžïŒããäžããããããã¯ãŒã¯ã«ãããããªããšããå«ããããŸããŸãªæ¹æ³ãèããŠã¿ãŸãããã
ãã€ã¯ãã³ã³ãããŒã©çšã®ãããã¯ãŒã¯ã«å°éããæãç°¡åã§ç°¡åãªæ¹æ³ã¯ã
COMport-to-Telnet ã
Serial2Ethernetã³ã³ããŒã¿ïŒãªããŒã¹TelnetãšãåŒã°ããããšããããŸãïŒã
䜿çšããããšã§ãã ãã®å Žåãã³ã³ããŒã¿ãŒã¯Telnetã»ãã·ã§ã³ãããã£ãããããããããã€ã¯ãã³ã³ãããŒã©ãŒã®éåžžã®COMããŒãã«ãããã·ã¥ãããŸãã 次ã«ããªãã¬ãŒã¿ãŒã¯ãããã¯ãŒã¯çµç±ã§ã®ã¿éåžžã®ãã€ã¢ãã°ã«å
¥ããŸãã ããŠãç§ã¯äœãšèšãããšãã§ããŸããïŒ ãŸããå¥ã®ãã€ã¯ãã³ã³ãããŒã©ãŒããããããã€ã¹ã¯ãŸã£ããå®äŸ¡ã§ã¯ãããŸããïŒ
èªå®¶è£œã¢ãžã¥ãŒã«ãš
Tibboã¢ãžã¥ãŒã«ã«é¢ããèšäºïŒã ã1ã€ã®ãã©ã¡ãŒã¿ãŒã®å€æŽ/èªã¿åãããšããåçŽãªã¿ã¹ã¯ã§ã¯ãããã§ååã§ãã åäžã®ã»ãã·ã§ã³ãåºå®ãããã³ã«ãªã©ãå€ãã®æ¬ ç¹ããããŸããããšãã°ãSSLãååšããªãå ŽåãSSLããã蟌ãããšã¯å°é£ã§ããããšãã°ãIPã¢ãã¬ã¹ãããŒããå€æŽãããªã©ãã³ã³ããŒã¿ãŒ
èªäœã®æ§æ
ã®è€éããªã©ã§ãã
å¥ã®ãªãã·ã§ã³ã¯ãããŒãäžã«å®éã®Etherentãåãããã€ã¯ãã³ã³ãããŒã©ãŒã§ãããéåžžã¯MACã¬ãã«ã®ã¿ã§ãå€éšPHYããããå¿
èŠã§ãïŒKS8721BLãDM9161AãRTL8201ïŒã ãã®ãããªããããMIIãŸãã¯RMIIãšã®æ¥ç¶ã«ã¯ãå°ãªããšãå€éšãã³ãå¿
èŠã§ãã PHYãLANã«æ¥ç¶ããã«ã¯ããã©ã³ã¹ãŸãã¯MagJackãã¯ãã ä»ãããå¿
èŠããããŸãã ãããã£ãŠããã³ã³ããŒãã³ãã®æ°ãã«ãããšãããã§ã¯ã²ã€ã³ã¯ãããŸããã é©ããããšã«ãå€éšEtherent PHYã¯éåžžã«é«äŸ¡ãªãããã§ã1ã±ãŒã¹ãããæ°ãã«ã§ãã ããããWIZnetã®ããã
å
šäœãšã»ãŒåãã³ã¹ãã§ãã·ãªã³ã³ã®éç£ã«ã¯1ãããŒããããŸãã ã¯ããWIZnetçšã®ãã©ã³ã¹ãå¿
èŠã§ãããçµã¿èŸŒã¿ã®MACã³ã³ãããŒã©ãŒããã®å€§å¹
ãªã²ã€ã³ã¯äŸ¡æ Œã§ã¯æ©èœããŸããã 2çªç®ïŒMAC / PHYã®ãœãããŠã§ã¢ãµããŒãã¯éââåžžã«è€éã§èšå€§ã§ãã ããšãã°ãSTM32Fxx7ã®å Žåãã€ãŒãµããããã©ã€ããŒã®ãœãŒã¹ã³ãŒãã¯ãCã§çŽ100Kã®ããã¹ããå æããŸãïŒ
Etherã䜿çšããPICã«é¢ããèšäº ïŒã Etherentãã©ã€ããŒã«å ããŠãTCP / IPã¹ã¿ãã¯
èªäœ ïŒ
LwIPãŸãã¯
uIP ïŒãå¿
èŠã§ãã ãµã€ãºã«å ããŠãå®è¡é床ãå¿ããªãã§ãã ããïŒãã ããSTM32ã¯ãã§ã«æåã®Pentiumãããé«éã§ãããããã©ãŒãã³ã¹ã®å¶éã«ã€ããŠã¯å¿ããããšãã§ããŸãïŒã
ãããããã€ã¯ãã³ã³ãããŒã©äžã®ããã«ããœãããŠã§ã¢IPã¹ã¿ãã¯ã®å©ç¹ã¯ãããŸããïŒ ãã¡ãããããŸãã åŸã§æ€èšããŸãããä»ã®ãšããã¯ç¶ç¶ããŸãã
3çªç®ã®ãªãã·ã§ã³ã¯
Microchip ENC28J60ã³ã³ãããŒã©ãŒSPIã€ãŒãµããã
ããã ïŒããã³ããŸãç¥ãããŠããªã
Silabs CP2200 ïŒã§ããããã¯ãã
åã蟌㿠ãã«æ·±ãæãããŠããŸãã ãããã¯TCP / IPã³ããã»ããµã§ã¯ãªããå®éã®ã€ãŒãµããã
ã³ã³ãããŒã©ã§ããããšã«æ³šæããŠãã ããã ãããã§ã§ããããšã¯ãEtherentãã¬ãŒã ã®åä¿¡ãšåä¿¡ã ãã§ãã ã€ãŸããTCP / IPã¹ã¿ãã¯ã¯ãŸã èªåã§è¡ãå¿
èŠããããŸãã ã¯ããçŽ æŽããã
å°ããªãã®ããå€å
žçãªLwIPãuIPãŸã§ãããã€ãã®æ¢è£œã®ã¹ã¿ãã¯ããããŸãã
ããã§ãããã®ãããªãœãªã¥ãŒã·ã§ã³ã¯çµã¿èŸŒã¿ã®MACã³ã³ãããŒã©ãŒãšçŽæ¥ç«¶åããå¯èœæ§ãé«ãããããäŸ¡æ Œã¯æ°ãã«ãšåãã§ãebay / aliexpressã®æ¢è£œã®ã¢ãžã¥ãŒã«ïŒãããããã©ã³ã¹ãRJ45ãœã±ãããåããããŒãïŒã§çŽ5..7ãã«ã§ãã WIZnet補åã«æ»ããŸãããã
WIZnetïŒéäžã§ãã
æåã®W3100ããã€ã¹ã¯ãããªãåã®2001幎ã«ãªãªãŒã¹ãããŸããã ããã¯æ¬æ ŒçãªTCP / IP IOcPïŒã³ããã»ããµãŒïŒã§ãããCOMããŒããšMACã³ã³ãããŒã©ãŒã®éã®ç¹å®ã®äžéæ¹æ³ãæäŸãããããå
ã®TCP / UDP "ãœã±ãã"ã®ã¢ã€ãã¢ãå®çŸããŸããã ç©ççã«ã¯ãW3100ã¯éåžžã«äŸ¿å©ãªãã¥ã¢ã«ãããMAS / PHYãããã§ã¯ãªãããarduinoãã©ã€ããŒãïŒAVRïŒãšããã³ã¬ã€ããã®éã§ã®æ¬åœã®äººæ°ã
W5100ããã€ã¹ã«ããããããŸããã ãå
¬åŒã®ã
Arduinoã€ãŒãµãããã·ãŒã«ã㯠ãW5100å°çšã«çµã¿ç«ãŠãããŠãããšèšãã°ååã§ãã
ãã以æ¥ãå€ãã®æéãçµéããW5100ã®æ¬ ç¹ãé¡èã«ãªããŸããïŒãããã¯ããªãç±ããªãããããã¯ãŒã¯é床ã¯ããã10Mbit / sã§ããããã«ã¯ããã€ãã®ãšã©ãŒããããŸãïŒãšã©ãŒã¿ã«èšèŒãããŠããŸãïŒã åœç¶ã®ããšãªãããWIZnetã¯éããªãW5200ãšããã¢ãã«ãå°å
¥ã
ãŸãã ã ãã®ãããã¯ã100Mbitã§åäœããã¹ãªãŒãç¶æ
ã«ãªããé»åãç¯çŽãã䞊åæ¥ç¶ã倱ããçŽç²ãªSPIãæ®ã£ãŠããããšãåŠã³ãèã®æ°ã倧å¹
ã«åæžããŸããã ïŒãã©ã¬ã«ãã¹ããµããŒãããããã«ã圌ã«ã¯ãå
åŒãW5300ãããŸãïŒã
W5200ã®å®è£
ãšéçºã¯å€§æåãåããŸããïŒ ãããŠä»æ¥ã«è³ããŸã§ãã¢ãžã¥ãŒã«ãäœæããïŒããã€ãã£ããã®WizNET
WIZ820ioããå§ãŸã ïŒãããŸããŸãªArduinoã·ãŒã«ãã§çµãããŸãã ããšãã°ãSeeeduinoãããžã§ã¯ãã®ãå
Œ΋
Ethernet Shield V2.0ããDfrobotã®
ArduinoçšEthernet Shieldãªã©ã§ã ã ãããŠãä»ã®ã¢ãžã¥ãŒã«ã®
倧ããªãªã¹ãããããŸãïŒãªã¹ãã¯éåžžã«å€§ããã®ã§ã次第ã«çž®å°ããŸãïŒã
æåŸã«ã2013幎10æã«ãWIZnet
ã¯æ°ããW5500ã
çºè¡šããŸããããã®
W5500ã«ã€ããŠã¯ããã®èšäºã§å®éã«äŒããäºå®ã§ããïŒãã®ãããªé·æã«ãããå°å
¥ã«ã€ããŠã¯ããããªããïŒã ãããã¯ããå°ã䟿å©ã«ãªããŸãã
LUT-do-it-yourselfersã48LQFNã±ãŒã¹ãå
éšã®é«éããã±ãããSPIããã³Cortex M0ã«ããã補é ããã»ã¹ãšæ¶è²»é»åãåæžã§ããŸããã äžè¬çã«ããããã¯ãW5200 on steroidsãã®ããã«èŠããŸãã
W5200ãšW5500ã®æ¯èŒ ã
次ã«ãWizNETã¯WIZ550ioã¢ãžã¥ãŒã«ããªãªãŒã¹ãïŒããã«ãåè·¯ããããŸãïŒããarduinomaniaãããé¢ããªãããã«ãWIZnetã¯ããã«
Arduinoã·ãŒã«ãèªäœããªãªãŒã¹ããŸããïŒArduinoããWIZ550ioãžã®åãªãããã·ãã¢ããã¿ãŒã§ãïŒã
ããããArduino
ã¯èæ
®ã
ãã« ã圌ãã¯ç§ãã¡ãªãã§ãããè¡ããŸãïŒããšãã°ãããHabréã§ïŒ
Arduinoã«
åºã¥ãã€ãŒãµããã枩床èšãªã©ïŒãW5500ãSTM32ãªã©ã®äžè¬çãªãã€ã¯ãã³ã³ãããŒã©ãŒã«åºå®ããããšããŸãã WizNETèªäœããã®çŽ æŽããããã¡ããªãèªèããŠããã以åã®W5200ïŒUSB2Serialçšã®STM32F103C8ããã³FT232RQïŒã§
W5200E01-M3ã¢ãžã¥ãŒã«ããªãªãŒã¹ã
ãŸãã ã ããã«STM32 + W5500ã®ã¢ãžã¥ãŒã«ïŒ
WIZ550webãç»å ŽããŸãã ã
ã¡ãªã¿ã«ã2014幎3æãW5500ã䜿çšããéçºã®ããã«ãCircuitcellarã§
Connect The Magicã³ã³ãã¹ããçºè¡šãããWIZnetã¯ããããšã¢ãžã¥ãŒã«ã®äŸ¡æ ŒãäžããŸããïŒ
賌å
¥ ïŒã ã³ã³ãã¹ãã§ã¯ãæé«15,000ãã«ãç²åŸã§ããŸãã ãµã€ãã®è©³çŽ°ãããã«ã¯çŽ æŽããã
èšäºããããŸãã
2çªç®ã®éšåïŒè¿œå ããå ŽåïŒã§ã¯ãW5500ïŒãŸãã¯WIZ550ioïŒãæ·±ã»ã³LCãã¯ãããžãŒæ ªåŒäŒç€Ÿã®å°ããª
ãããã°ããŒãã«ãã蟌ã¿ãŸãã
ãããŠ15,000ãã«ãç²åŸããŸãã ã·ã§ãŒã«
㯠Aliexpressã§7.99ãã«ã§
販売ãããŠãããHabréã§ãäœåºŠãèšåãããŠããŸããã
PSèè
ã¯å°æ¬ãããäŒç€ŸWIZnetãšã¯äœã®é¢ä¿ããããŸããããW5500äžã®ãªã³ã¯ã®ãªã¹ãã¯åŸã
ã«æé·ãããã®ãããªããã«å€ãããŸããã