Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wired etherent connectivity #12

Closed
glynhudson opened this issue Aug 21, 2019 · 12 comments
Closed

Wired etherent connectivity #12

glynhudson opened this issue Aug 21, 2019 · 12 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@glynhudson
Copy link
Collaborator

Test using Olimex ES32-gateway with Ethernet to be used instead of Wi-Fi when installation is more suited to wired Ethernet

https://www.olimex.com/Products/IoT/ESP32/ESP32-GATEWAY/open-source-hardware

@glynhudson glynhudson added the enhancement New feature or request label Aug 21, 2019
@glynhudson glynhudson added this to the v3.0.0 milestone Aug 21, 2019
@glynhudson glynhudson added this to To do in v3.0 via automation Aug 21, 2019
@jeremypoulter
Copy link
Collaborator

Added

v3.0 automation moved this from To do to Done Aug 27, 2019
@glynhudson
Copy link
Collaborator Author

glynhudson commented Sep 24, 2019

Ethernet dev board pinout connections:

2019-09-24

2019-10-16

@glynhudson
Copy link
Collaborator Author

I've just tried to test Ethernet on the Olimex ES32-gateway board, however when I try to compile the openevse_esp32-gateway environment I get Error: The program size (1312862 bytes) is greater than maximum allowed (1310720 bytes)

Have you able to compile the current version for the ES32 gateway board?

@glynhudson glynhudson reopened this Sep 30, 2019
v3.0 automation moved this from Done to In progress Sep 30, 2019
@jeremypoulter
Copy link
Collaborator

Travis CI also showed this issue for some reason, oddly worked fine locally. In any case been meaning to look at the binary size because building the debugger build fails for the same reason.

Given we are not using SPIFFS I opted to just use a different flash partition table to give us an extra 40% space.

Not tried it but I suspect this will not update over OTA.

v3.0 automation moved this from In progress to Done Sep 30, 2019
@glynhudson
Copy link
Collaborator Author

Thanks, it compiles fine now.

I've just tested updating Huzzah32 via HTTP update via web interface with a .bin compiled with min_spiffs.csv and it worked fine!

@glynhudson
Copy link
Collaborator Author

I've finally managed to get this up and running, it turns out the silkscreen on my hardware rev C is different to yours! Here are the location of Rx, Tx:

IMG_20191017_180535

Unfortunately the Ethernet does not seem to be working, I get these errors in the debug serial:

E (2094) emac: Timed out waiting for PHY register 0x2 to have value 0x0007(mask 0xffff). Current value 0xffff
E (3094) emac: Timed out waiting for PHY register 0x3 to have value 0xc0f0(mask 0xfff0). Current value 0xffff
E (3094) emac: Initialise PHY device Timeout
[E][ETH.cpp:101] begin(): esp_eth_enable error: -1

@glynhudson glynhudson reopened this Oct 17, 2019
v3.0 automation moved this from Done to In progress Oct 17, 2019
@jeremypoulter
Copy link
Collaborator

Is a Rev.E on that picture ;-) can you try
platformio_esp32_eth.zip ?
If that does not work, can you try the WiFi->ETH_LAN870 examples from the Arduinio IDE

@jeremypoulter
Copy link
Collaborator

The Arduino core has a setting for the revision of the board, in Platform IO this is done in platform.ini using:

board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY=\'E\'"

In addition to this there is also (now) a conflict with Serial2 and the Ethernet... GPIO17 is used for both so moved TX2 to GPIO 32 so the pinout is also changed.

@jeremypoulter
Copy link
Collaborator

image
image

v3.0 automation moved this from In progress to Done Oct 21, 2019
@jeremypoulter
Copy link
Collaborator

Fixed in ef4995d

@glynhudson
Copy link
Collaborator Author

Awesome, just tested this and it's working :-)

Got Network event SYSTEM_EVENT_ETH_CONNECTED
ETH Connected
Free: 215164
Got Network event SYSTEM_EVENT_ETH_GOT_IP
ETH MAC: 24:0A:C4:26:85:03, IPv4: 192.168.0.102, FULL_DUPLEX, 100Mbps
Connected, IP: 192.168.0.102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
v3.0
  
Done
Development

No branches or pull requests

2 participants