970dda3cfa19586cde64fd5af58272a35b25a7df
Board/NWI/NWI1199-DAT/38-06-15-25-04-2023.png
... | ... | Binary files /dev/null and b/Board/NWI/NWI1199-DAT/38-06-15-25-04-2023.png differ |
Board/NWI/NWI1199-DAT/NWI1199-DAT.md
... | ... | @@ -3,41 +3,82 @@ |
3 | 3 | |
4 | 4 | - [[LAN8720-DAT]] |
5 | 5 | |
6 | +## hardware |
|
6 | 7 | |
7 | 8 | ![](42-44-18-24-04-2023.png) |
8 | 9 | |
9 | -| ESP32 | func | Ethernet | Note | |
|
10 | -| ------- | ----------- | ----------------- | ---- | |
|
11 | -| GPIO 17 | PHY_POWER | Osc_PWR (PHY_pwr) | | |
|
12 | -| GPIO 22 | EMAC_TXD1 | TX1 | | |
|
13 | -| GPIO 19 | EMAC_TXD0 | TX0 | | |
|
14 | -| GPIO 21 | EMAC_TX_EN | TX_EN | | |
|
15 | -| GPIO 26 | EMAC_RXD1 | RX1 | | |
|
16 | -| GPIO 25 | EMAC_RXD0 | RX0 | | |
|
17 | -| GPIO 27 | EMAC_RX_DV | CRS | | |
|
18 | -| GPIO 00 | EMAC_TX_CLK | nINT/REFCLK | | |
|
19 | -| GPIO 23 | SMI_MDC | MDC | | |
|
20 | -| GPIO 18 | SMI_MDIO | MDIO | | |
|
21 | -| GND | | GND | | |
|
22 | -| 3V3 | | VCC | | |
|
23 | - |
|
24 | - |
|
25 | -### IO 17 -- Osc_PWR (PHY_pwr) |
|
10 | +| ESP32 | func | Ethernet | Note | |
|
11 | +| ------- | ----------- | ----------------- | ------------ | |
|
12 | +| GPIO 17 | PHY_POWER | Osc_PWR (PHY_pwr) | obselete pin | |
|
13 | +| GPIO 22 | EMAC_TXD1 | TX1 | | |
|
14 | +| GPIO 19 | EMAC_TXD0 | TX0 | | |
|
15 | +| GPIO 21 | EMAC_TX_EN | TX_EN | | |
|
16 | +| GPIO 26 | EMAC_RXD1 | RX1 | | |
|
17 | +| GPIO 25 | EMAC_RXD0 | RX0 | | |
|
18 | +| GPIO 27 | EMAC_RX_DV | CRS | | |
|
19 | +| GPIO 00 | EMAC_TX_CLK | nINT/REFCLK | CLK IN | |
|
20 | +| GPIO 23 | SMI_MDC | MDC | | |
|
21 | +| GPIO 18 | SMI_MDIO | MDIO | | |
|
22 | +| GND | | GND | | |
|
23 | +| 3V3 | | VCC | | |
|
24 | + |
|
25 | +### Crystal |
|
26 | +- active 50MHz |
|
27 | + |
|
28 | +### jumper setup |
|
29 | + |
|
30 | +#### IO 17 -- Osc_PWR (PHY_pwr) |
|
26 | 31 | 3-way jumper |
27 | 32 | - NC (Not connect) |
28 | -- connect |
|
33 | +- connected |
|
29 | 34 | 2-way jumper |
30 | 35 | - Add pull down 4.7K |
31 | 36 | |
32 | -### IO0 -- CLK |
|
37 | +#### IO0 -- CLK |
|
33 | 38 | 2-way jumper (left) |
34 | 39 | - 4k7 pull up |
35 | 40 | 2-way jumper (right) |
36 | -- connect |
|
41 | +- connected |
|
42 | + |
|
43 | +The final jumper setup please refer the image blow |
|
44 | + |
|
45 | +![](38-06-15-25-04-2023.png) |
|
46 | + |
|
37 | 47 | |
38 | -### Crystal |
|
39 | -- active 50MHz |
|
40 | 48 | |
41 | 49 | |
50 | +## demo code output |
|
51 | + |
|
52 | +the demo code parts |
|
53 | + |
|
54 | + WiFi.onEvent(WiFiEvent); |
|
55 | +may need fix |
|
56 | + |
|
57 | +Normal output |
|
58 | + |
|
59 | + setup done |
|
60 | + |
|
61 | + connecting to 163.com |
|
62 | + HTTP/1.1 301 Moved Permanently |
|
63 | + Server: nginx |
|
64 | + Date: Tue, 25 Apr 2023 07:01:33 GMT |
|
65 | + Content-Type: text/html |
|
66 | + Content-Length: 178 |
|
67 | + Connection: keep-alive |
|
68 | + Location: http://www.163.com/ |
|
69 | + |
|
70 | + <html> |
|
71 | + <head><title>301 Moved Permanently</title></head> |
|
72 | + <body bgcolor="white"> |
|
73 | + <center><h1>301 Moved Permanently</h1></center> |
|
74 | + <hr><center>nginx</center> |
|
75 | + </body> |
|
76 | + </html> |
|
77 | + closing connection |
|
78 | + |
|
79 | + ETH status0, ETH MAC: 84:0D:8E:C8:8C:67, IPv4: 192.168.1.173, FULL_DUPLEX, 100Mbps |
|
80 | + |
|
42 | 81 | ## ref |
43 | -- https://sautter.com/blog/ethernet-on-esp32-using-lan8720/ |
|
... | ... | \ No newline at end of file |
0 | + |
|
1 | +- [[arduino-IDE-DAT]] |
|
2 | +- [[NWI1199]] |
SDK/Arduino-IDE-DAT/arduino-IDE-DAT.md
... | ... | @@ -55,3 +55,12 @@ use include “test.h” to add variables |
55 | 55 | pinMode(LED, OUTPUT); |
56 | 56 | digitalWrite(LED, lastPeriod%2); |
57 | 57 | } |
58 | + |
|
59 | + |
|
60 | +## common folder |
|
61 | + |
|
62 | +windows |
|
63 | + |
|
64 | +ETH.h |
|
65 | +- C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6\libraries\Ethernet\src\eth.h |
|
66 | +- C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6\libraries\Ethernet\src\eth.cpp |
|
... | ... | \ No newline at end of file |