Instability in Ethernet connections with RTL8201FI #11302
danieldecesaro
started this conversation in
Question - Community Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I'm changing my hardware project to use the RTL8201 instead of the LAN8720A.
The problem is that I can't get a stable connection with this new IC. When I start the communication, I can't always connect, and when I remove the cable and reconnect it, I don't receive the reconnection event. Can anyone help me with this???
I created a firmware as a proof of concept, below, along with the execution logs.
I'm using version 2.0.9 of the core, since this is the version that the rest of the project is based on, and a change would be extremely honorable.
CODE:
`
`
LOGS:
[ 28][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
[ 61][D][RTL8201_test.ino:94] ethernetConnect(): [RTL_8201] Inicializando Ethernet
[ 2729][V][WiFiGeneric.cpp:437] _arduino_event_cb(): Ethernet Started
[ 2730][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 18 - ETH_START
[ 2732][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 18
[ 2738][V][WiFiGeneric.cpp:430] _arduino_event_cb(): Ethernet Link Up
[ 2744][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 20 - ETH_CONNECTED
[ 2752][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 20
[ 2758][D][RTL8201_test.ino:65] EthConnected(): [RTL_8201] Cabo Ethernet conectado
[ 2788][I][RTL8201_test.ino:107] ethernetConnect(): [RTL_8201] SPEED: 100
[ 2789][I][RTL8201_test.ino:108] ethernetConnect(): [RTL_8201] HOSTNAME: RTL8201_test
[ 3754][V][WiFiGeneric.cpp:445] _arduino_event_cb(): Ethernet got newip:192.168.1.229
[ 3754][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 22 - ETH_GOT_IP
[ 3758][D][WiFiGeneric.cpp:1137] _eventCallback(): ETH IP: 192.168.1.229, MASK: 255.255.255.0, GW: 192.168.1.1
[ 3768][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 22
[ 3774][I][RTL8201_test.ino:73] EthGotIP(): [RTL_8201] ETHERNET IP: 192.168.1.229
[ 3792][I][RTL8201_test.ino:44] startmDNS(): [RTL_8201] mDNS inicializado em: 'http://RTL8201_test.local
[ 5791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 10791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 15791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 20791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 25791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 30791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 35791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 40791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 45791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 50791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 28][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
[ 61][D][RTL8201_test.ino:94] ethernetConnect(): [RTL_8201] Inicializando Ethernet
[ 4229][V][WiFiGeneric.cpp:437] _arduino_event_cb(): Ethernet Started
[ 4230][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 18 - ETH_START
[ 4232][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 18
[ 4279][I][RTL8201_test.ino:107] ethernetConnect(): [RTL_8201] SPEED: 10
[ 4280][I][RTL8201_test.ino:108] ethernetConnect(): [RTL_8201] HOSTNAME: RTL8201_test
[ 7282][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 12282][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 17282][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 22282][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 27282][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 32282][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 37282][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 42282][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 47282][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 52282][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 28][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
[ 61][D][RTL8201_test.ino:94] ethernetConnect(): [RTL_8201] Inicializando Ethernet
[ 2730][V][WiFiGeneric.cpp:437] _arduino_event_cb(): Ethernet Started
[ 2730][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 18 - ETH_START
[ 2732][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 18
[ 2738][V][WiFiGeneric.cpp:430] _arduino_event_cb(): Ethernet Link Up
[ 2744][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 20 - ETH_CONNECTED
[ 2752][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 20
[ 2758][D][RTL8201_test.ino:65] EthConnected(): [RTL_8201] Cabo Ethernet conectado
[ 2788][I][RTL8201_test.ino:107] ethernetConnect(): [RTL_8201] SPEED: 100
[ 2789][I][RTL8201_test.ino:108] ethernetConnect(): [RTL_8201] HOSTNAME: RTL8201_test
[ 3747][V][WiFiGeneric.cpp:445] _arduino_event_cb(): Ethernet got newip:192.168.1.229
[ 3747][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 22 - ETH_GOT_IP
[ 3751][D][WiFiGeneric.cpp:1137] _eventCallback(): ETH IP: 192.168.1.229, MASK: 255.255.255.0, GW: 192.168.1.1
[ 3760][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 22
[ 3766][I][RTL8201_test.ino:73] EthGotIP(): [RTL_8201] ETHERNET IP: 192.168.1.229
[ 3785][I][RTL8201_test.ino:44] startmDNS(): [RTL_8201] mDNS inicializado em: 'http://RTL8201_test.local
[ 5791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 10791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 15791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 20791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 25791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 30791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 35791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 40791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 42739][V][WiFiGeneric.cpp:434] _arduino_event_cb(): Ethernet Link Down
[ 42739][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 21 - ETH_DISCONNECTED
[ 42742][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 21
[ 42748][D][RTL8201_test.ino:69] EthDisconnected(): [RTL_8201] Cabo ethernet desconectado - razão: 0
[ 45791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 50791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 28][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
[ 61][D][RTL8201_test.ino:94] ethernetConnect(): [RTL_8201] Inicializando Ethernet
[ 2730][V][WiFiGeneric.cpp:437] _arduino_event_cb(): Ethernet Started
[ 2730][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 18 - ETH_START
[ 2732][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 18
[ 2738][V][WiFiGeneric.cpp:430] _arduino_event_cb(): Ethernet Link Up
[ 2744][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 20 - ETH_CONNECTED
[ 2752][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 20
[ 2758][D][RTL8201_test.ino:65] EthConnected(): [RTL_8201] Cabo Ethernet conectado
[ 2788][I][RTL8201_test.ino:107] ethernetConnect(): [RTL_8201] SPEED: 100
[ 2789][I][RTL8201_test.ino:108] ethernetConnect(): [RTL_8201] HOSTNAME: RTL8201_test
[ 3747][V][WiFiGeneric.cpp:445] _arduino_event_cb(): Ethernet got newip:192.168.1.229
[ 3747][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 22 - ETH_GOT_IP
[ 3751][D][WiFiGeneric.cpp:1137] _eventCallback(): ETH IP: 192.168.1.229, MASK: 255.255.255.0, GW: 192.168.1.1
[ 3760][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 22
[ 3766][I][RTL8201_test.ino:73] EthGotIP(): [RTL_8201] ETHERNET IP: 192.168.1.229
[ 3785][I][RTL8201_test.ino:44] startmDNS(): [RTL_8201] mDNS inicializado em: 'http://RTL8201_test.local
[ 5791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 10791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
[ 12739][V][WiFiGeneric.cpp:434] _arduino_event_cb(): Ethernet Link Down
[ 12739][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 21 - ETH_DISCONNECTED
[ 12742][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 21
[ 12748][D][RTL8201_test.ino:69] EthDisconnected(): [RTL_8201] Cabo ethernet desconectado - razão: 0
[ 15791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 20791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 25791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 30791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 35791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 40791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 45791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 50791][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK DOWN!!!
[ 28][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
[ 61][D][RTL8201_test.ino:94] ethernetConnect(): [RTL_8201] Inicializando Ethernet
[ 2930][V][WiFiGeneric.cpp:437] _arduino_event_cb(): Ethernet Started
[ 2930][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 18 - ETH_START
[ 2932][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 18
[ 2938][V][WiFiGeneric.cpp:430] _arduino_event_cb(): Ethernet Link Up
[ 2944][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 20 - ETH_CONNECTED
[ 2952][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 20
[ 2958][D][RTL8201_test.ino:65] EthConnected(): [RTL_8201] Cabo Ethernet conectado
[ 2988][I][RTL8201_test.ino:107] ethernetConnect(): [RTL_8201] SPEED: 100
[ 2989][I][RTL8201_test.ino:108] ethernetConnect(): [RTL_8201] HOSTNAME: RTL8201_test
[ 3947][V][WiFiGeneric.cpp:445] _arduino_event_cb(): Ethernet got newip:192.168.1.229
[ 3947][D][WiFiGeneric.cpp:1038] _eventCallback(): Arduino Event: 22 - ETH_GOT_IP
[ 3951][D][WiFiGeneric.cpp:1137] _eventCallback(): ETH IP: 192.168.1.229, MASK: 255.255.255.0, GW: 192.168.1.1
[ 3960][I][RTL8201_test.ino:61] wifiEvent(): [RTL_8201] EVENTO: 22
[ 3966][I][RTL8201_test.ino:73] EthGotIP(): [RTL_8201] ETHERNET IP: 192.168.1.229
[ 3985][I][RTL8201_test.ino:44] startmDNS(): [RTL_8201] mDNS inicializado em: 'http://RTL8201_test.local
[ 5991][D][RTL8201_test.ino:140] loop(): [RTL_8201] LINK UP!!!
Best regards,
Daniel de Cesaro
Beta Was this translation helpful? Give feedback.
All reactions