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

Adpter v5 - problem with USR-ES1 module #21

Closed
zyzakin opened this issue Sep 18, 2023 · 13 comments
Closed

Adpter v5 - problem with USR-ES1 module #21

zyzakin opened this issue Sep 18, 2023 · 13 comments

Comments

@zyzakin
Copy link

zyzakin commented Sep 18, 2023

I have version 5 of the module, and I have to use an Ethernet connection because I am not getting a signal from the router via WiFi. Besides, I prefer a wired connection (as more reliable) than a radio connection.
Unfortunately, after connecting the module and setting the correct configuration image, the module is not detected (it has the status not available).
After repeated attempts to reset and change the WiFi configuration ( switching on, off ) finally the module was "noticed" and it started to work somehow. The USR-ES1 module I am using is HanRun HR961160C 2315.
Unfortunately today it stopped and I decided it was best to report it.

Pins configuration:
image

My logs with adapter:
image

@john30
Copy link
Owner

john30 commented Sep 23, 2023

after pressing the quick-settings button, the device needs to be restarted as well to run the module detection. did you do that?
anyway, is it the up-to-date firmware version? if not, then please update first.
the status shown on top of the web UI would be important to know as well

@zyzakin
Copy link
Author

zyzakin commented Sep 27, 2023

I just received the new module and the situation is as before.

To answer your question, yes, I did a reboot repeatedly, but it had no effect. I even turned off the power - to no avail.

Finally, I changed the location of the module and connected via WiFi and it works. Ultimately, however, I would like the connection to be via Ethernet.

Paste a snapshot of the status

obraz
obraz
I am worried about the increase in the temperature of the module
obraz

This time it shows a little more in the logs, but I can't interpret it.

17:17:33	
	network trigger installed
17:17:33	
Info	replExecuteFromFile: executing command: on -o server 2 "after -o -m 500 0 restart"
17:17:33	
Info	executeCommand: executing command: on -o server 2 "after -o -m 500 0 restart"
17:17:33	
	server trigger installed
17:17:33	
Info	replExecuteFromFile: executing command: if "isnvs sta.on" sta
17:17:33	
Info	executeCommand: executing command: if "isnvs sta.on" sta
17:17:33	
Info	executeCommand: executing command: isnvs sta.on
17:17:33	
Info	executeCommand: executing command: sta
17:17:33	
Info	pp: pp rom version: 9387209
17:17:33	
Info	net80211: net80211 rom version: 9387209
17:17:33	
Info	wifi_init: tcpip mbox: 32
17:17:33	
Info	wifi_init: udp mbox: 6
17:17:33	
Info	wifi_init: tcp mbox: 6
17:17:33	
Info	wifi_init: tcp tx win: 5744
17:17:33	
Info	wifi_init: tcp rx win: 5744
17:17:33	
Info	wifi_init: tcp mss: 1440
17:17:33	
Info	wifi_init: WiFi IRAM OP enabled
17:17:33	
Info	wifi_init: WiFi RX IRAM OP enabled
17:17:33	
Info	wifi_init: LWIP IRAM OP enabled
17:17:33	
Info	phy_init: phy_version 1110,9c20f0a,Jul 27 2023,10:42:54
17:17:33	
	using individual IP: 192.168.1.25 / 255.255.255.0, gateway 192.168.1.10
17:17:33	
	sta connecting to 'glabnet'
17:17:35	
Info	cmd_wifi: sta connect, set fix ip
17:17:35	
Info	repl_event_task: wifi event: 1
17:17:35	
Info	executeCommand: executing command: led 0 50
17:17:35	
Info	executeCommand: executing command: start
17:17:35	
Info	executeCommand: executing command: server
17:17:35	
Info	esp-rest: Starting HTTP Server
17:17:35	
	server started
17:17:35	
Info	executeCommand: executing command: led 0 10
17:17:35	
Info	replExecuteFromFile: executing command: if "var isnew" "ap EBUS" else "if \"isnvs ap.on\" ap"
17:17:35	
Info	executeCommand: executing command: if "var isnew" "ap EBUS" else "if \"isnvs ap.on\" ap"
17:17:35	
Info	executeCommand: executing command: var isnew
17:17:35	
	variable isnew = 0
17:17:35	
Info	executeCommand: executing command: if "isnvs ap.on" ap
17:17:35	
Info	executeCommand: executing command: isnvs ap.on
17:17:35	
Info	replExecuteFromFile: executing command: var eth 0
17:17:35	
Info	executeCommand: executing command: var eth 0
17:17:35	
Info	replExecuteFromFile: executing command: if "eth -t" "var eth 1" else "if \"eth -wt\" \"var eth 2\""
17:17:35	
Info	executeCommand: executing command: if "eth -t" "var eth 1" else "if \"eth -wt\" \"var eth 2\""
17:17:35	
Info	executeCommand: executing command: eth -t
17:17:35	
Info	statusLedTimerFn: duty set to 10
17:17:35	
Error	w5500.mac: W5500 version mismatched, expected 0x04, got 0x00
17:17:35	
Error	w5500.mac: emac_w5500_init(715): vefiry chip ID failed
17:17:35	
Info	gpio: GPIO[5]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
Error	esp_eth: esp_eth_driver_install(228): init mac failed
17:17:35	
Error	initialise_ethernet: initialise_ethernet(248): install driver
17:17:35	
Error	esp_eth: esp_eth_driver_uninstall(256): invalid argument
17:17:35	
Info	gpio: GPIO[6]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
Info	gpio: GPIO[2]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
Info	gpio: GPIO[0]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
Info	gpio: GPIO[3]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
	Ethernet not available
17:17:35	
Warning	executeCommand: command failed: eth -t = 1
17:17:35	
Info	executeCommand: executing command: if "eth -wt" "var eth 2"
17:17:35	
Info	executeCommand: executing command: eth -wt
17:17:35	
Error	w5500.mac: W5500 version mismatched, expected 0x04, got 0x00
17:17:35	
Error	w5500.mac: emac_w5500_init(715): vefiry chip ID failed
17:17:35	
Info	gpio: GPIO[8]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
Error	esp_eth: esp_eth_driver_install(228): init mac failed
17:17:35	
Error	initialise_ethernet: initialise_ethernet(248): install driver
17:17:35	
Error	esp_eth: esp_eth_driver_uninstall(256): invalid argument
17:17:35	
Info	gpio: GPIO[6]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
Info	gpio: GPIO[3]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
Info	gpio: GPIO[2]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
Info	gpio: GPIO[5]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
	Ethernet not available
17:17:35	
Warning	executeCommand: command failed: eth -wt = 1
17:17:35	
Info	replExecuteFromFile: executing command: io -a
17:17:35	
Info	executeCommand: executing command: io -a
17:17:35	
Info	replExecuteFromFile: executing command: function chkethcfg "if \"eth -c\" \"var eth 1\""
17:17:35	
Info	executeCommand: executing command: function chkethcfg "if \"eth -c\" \"var eth 1\""
17:17:35	
	function installed
17:17:35	
Info	replExecuteFromFile: executing command: if "!var isnew" "if \"!var eth\" chkethcfg"
17:17:35	
Info	executeCommand: executing command: if "!var isnew" "if \"!var eth\" chkethcfg"
17:17:35	
Info	executeCommand: executing command: var isnew
17:17:35	
	variable isnew = 0
17:17:35	
Info	executeCommand: executing command: if "!var eth" chkethcfg
17:17:35	
Info	executeCommand: executing command: var eth
17:17:35	
	variable eth = 0
17:17:35	
Info	executeCommand: executing command: chkethcfg
17:17:35	
Info	executeCommand: executing command: if "eth -c" "var eth 1"
17:17:35	
Info	executeCommand: executing command: eth -c
17:17:35	
Error	w5500.mac: W5500 version mismatched, expected 0x04, got 0x00
17:17:35	
Error	w5500.mac: emac_w5500_init(715): vefiry chip ID failed
17:17:35	
Info	gpio: GPIO[5]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
Error	esp_eth: esp_eth_driver_install(228): init mac failed
17:17:35	
Error	initialise_ethernet: initialise_ethernet(248): install driver
17:17:35	
Error	esp_eth: esp_eth_driver_uninstall(256): invalid argument
17:17:35	
Info	gpio: GPIO[6]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
Info	gpio: GPIO[2]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
Info	gpio: GPIO[0]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
Info	gpio: GPIO[3]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
17:17:35	
	Ethernet not available
17:17:35	
Warning	executeCommand: command failed: eth -c = 1
17:17:35	
Info	replExecuteFromFile: executing command: function enet eth "led 0 50" "led 1 50" "led 2 50"
17:17:35	
Info	executeCommand: executing command: function enet eth "led 0 50" "led 1 50" "led 2 50"
17:17:35	
	function installed
17:17:35	
Info	replExecuteFromFile: executing command: if "isnvs eth.on" "if \"var eth\" enet"
17:17:35	
Info	executeCommand: executing command: if "isnvs eth.on" "if \"var eth\" enet"
17:17:35	
Info	executeCommand: executing command: isnvs eth.on
17:17:35	
Info	executeCommand: executing command: if "var eth" enet
17:17:35	
Info	executeCommand: executing command: var eth
17:17:35	
	variable eth = 0
17:17:35	
Info	replExecuteFromFile: executing command: function ebusnvs ebus "led 0 50"
17:17:35	
Info	executeCommand: executing command: function ebusnvs ebus "led 0 50"
17:17:35	
	function installed
17:17:35	
Info	replExecuteFromFile: executing command: if "isnvs ebus.host" ebusnvs exit
17:17:35	
Info	executeCommand: executing command: if "isnvs ebus.host" ebusnvs exit
17:17:35	
Info	executeCommand: executing command: isnvs ebus.host
17:17:35	
Info	executeCommand: executing command: ebusnvs
17:17:35	
Info	executeCommand: executing command: ebus
17:17:35	
Info	init_ebus: switching to enhanced eBUS mode on TCP port (with bitrate deviation 0 and enhanced arbitration delay 200 us)
17:17:35	
Info	setup_uart: eBUS UART 1 on TX=10(inv) RX=7(inv) with 2400 Bd
17:17:35	
Info	uart: ALREADY NULL
17:17:35	
Info	host_task_tcp: listening
17:17:35	
Info	init_ebus: timer started
17:17:35	
Info	executeCommand: executing command: led 0 50
17:17:35	
Info	executeCommand: executing command: exit
17:17:35	
Info	executeCommand: command exit
17:17:35	
Info	executeCommand: command exit
17:17:35	
Info	replExecuteFromFile: successfully executed 45/45 commands from '/data/main.eas'
17:17:35	
	Welcome to eBUS Adapter Shield Interface! Type 'help' to get the list of commands.
17:17:35	
	Your terminal application does not support escape sequences.
17:17:35	
Info	main_task: Returned from app_main()
17:17:35	
Info	statusLedTimerFn: duty set to 50
17:17:40	
Info	host_task_tcp: accepted: 192.168.1.88
17:22:28	
Info	temperature_sensor: Range [-10°C ~ 80°C], error < 1°C

@john30
Copy link
Owner

john30 commented Sep 29, 2023

the logs shows that the Ethernet module can't be detected:

Error w5500.mac: W5500 version mismatched, expected 0x04, got 0x00

are you sure that you plugged it in correctly as shown on the UI?

grafik

@zyzakin
Copy link
Author

zyzakin commented Sep 30, 2023

I'm sure I've put it in right, because all the wires are on the same side.

I'm pasting a portion of the logs again.

13:09:15	Info	gpio: GPIO[6]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
13:09:15	Info	gpio: GPIO[2]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
13:09:15	Info	gpio: GPIO[0]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
13:09:15	Info	gpio: GPIO[3]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
13:09:15	Ethernet not available
13:09:15	    Warning	executeCommand: command failed: eth -t = 1
13:09:15	Info	executeCommand: executing command: if "eth -wt" "var eth 2"
13:09:15	Info	executeCommand: executing command: eth -wt
13:09:15	Error	w5500.mac: W5500 version mismatched, expected 0x04, got 0x00
13:09:15	Error	w5500.mac: emac_w5500_init(715): vefiry chip ID failed
13:09:15	Info	gpio: GPIO[8]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
13:09:15	Error	esp_eth: esp_eth_driver_install(228): init mac failed
13:09:15	Error	initialise_ethernet: initialise_ethernet(248): install driver
13:09:15	Error	esp_eth: esp_eth_driver_uninstall(256): invalid argument
13:09:15	Info	gpio: GPIO[6]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
13:09:15	Info	gpio: GPIO[3]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
13:09:15	Info	gpio: GPIO[2]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
13:09:15	Info	gpio: GPIO[5]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
13:09:15		Ethernet not available
13:09:15	Warning	executeCommand: command failed: eth -wt = 1
13:09:15	Info	replExecuteFromFile: executing command: io -a
13:09:15	Info	executeCommand: executing command: io -a
13:09:15	Info	replExecuteFromFile: executing command: function chkethcfg "if \"eth -c\" \"var eth 1\""
13:09:15	Info	executeCommand: executing command: function chkethcfg "if \"eth -c\" \"var eth 1\""
13:09:15		function installed

I'm still concerned that the module starts to heat up after attaching the USR-ES1.

Maybe it is a matter of a different model of USR-ES1 ?
ESR-US1

There is another possibility - maybe I damaged something on the module ( temperature rise problem ) ? However, I do not know how to check it

At the moment I'm using over WiFi and if there's no other way, I'll leave it that way. If nothing else can be done, just close this issue.

By the way, it would be nice if when you select the appropriate button it is already highlighted. Thanks to this, the user would be sure what was selected.
Of course, under certain conditions. I can imagine a scenario where the user selects some pre-configuration and then manually changes the configuration of one or two pins, then of course the highlighting disappears.
obraz

Thank you very much for your help so far

@john30
Copy link
Owner

john30 commented Sep 30, 2023

having the wires on the same side does not necessarily mean that the USR was plugged in correctly. it needs to have the exact position in the headers as shown.
what is the status of the LEDs on the USR?
the log again tells that the module is not recognized.

@zyzakin
Copy link
Author

zyzakin commented Oct 1, 2023

photo with connected module.
ESR-US1-installed

Nothing has changed in the logs.

18:48:13	Info	replExecuteFromFile: executing command: var eth 0
18:48:13	Info	executeCommand: executing command: var eth 0
18:48:13	Info	replExecuteFromFile: executing command: if "eth -t" "var eth 1" else "if \"eth -wt\" \"var eth 2\""
18:48:13	Info	executeCommand: executing command: if "eth -t" "var eth 1" else "if \"eth -wt\" \"var eth 2\""
18:48:13	Info	executeCommand: executing command: eth -t
18:48:13	Info	statusLedTimerFn: duty set to 10
18:48:13	Error	w5500.mac: W5500 version mismatched, expected 0x04, got 0x00
18:48:13	Error	w5500.mac: emac_w5500_init(715): vefiry chip ID failed
18:48:13	Info	gpio: GPIO[5]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
18:48:13	Error	esp_eth: esp_eth_driver_install(228): init mac failed
18:48:13	Error	initialise_ethernet: initialise_ethernet(248): install driver
18:48:13	Error	esp_eth: esp_eth_driver_uninstall(256): invalid argument
18:48:13	Info	gpio: GPIO[6]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
18:48:13	Info	gpio: GPIO[2]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
18:48:13	Info	gpio: GPIO[0]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
18:48:13	Info	gpio: GPIO[3]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0

@john30
Copy link
Owner

john30 commented Oct 1, 2023

you want to look at the bottom of the USR module and check the numbering on the Wiznet chip

@zyzakin
Copy link
Author

zyzakin commented Oct 1, 2023

I have two types of W5500 modules. It gives the numbers printed on the chips

  • DSW618/2213 (HR961160C/2315)
  • DJ4828/2236 (HR961160C/2321)

@john30
Copy link
Owner

john30 commented Oct 3, 2023

do they really read W5500 on it? because any other chip is not supported

and what about the LEDs I've asked?

@zyzakin
Copy link
Author

zyzakin commented Oct 3, 2023

I don't know which LEDs on the USR-ES1 module you are asking about ? I took a picture where you can see the green (Link) and orange (Active) LED of the LAN connector and the red color of the power LED below. The other LEDs on the USR-ES1 are not visible.

I also pasted a photo of the module itself.
W5500

@john30
Copy link
Owner

john30 commented Oct 8, 2023

do you know if the modules are working? We've seen many items that are just broken even though the LEDs are shining.

anyway, to ensure that there is no connectivity issue from adapter to USR module, you can use a short wire to acknowledge that all IO pins to the module are OK.
In order to to that, remove the module from the adapter and then use the adapter UI to set the pin configuration to "+all in" and apply that.
then connect the wire to the IO pins against a GND pin one by one. if connected to GND, the UI should show the level as "L" (after pressing the reload Icon in the "Status" tab header).
you could also check the opposite (i.e. set an individual IO pin to output H/L and check it with another IO pin set to input).
if thats OK, and you're USR module still does not work, it is broken to 99%.

@john30
Copy link
Owner

john30 commented Dec 23, 2023

closed for inactivity

@john30 john30 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2023
@dlbogdan
Copy link

dlbogdan commented Mar 7, 2024

I have the same issue with a (probably clone) W5500 chinezium pcb.
I think I saw on a forum on esp-idf that these clones need 100ms delay before polling the ID or something.

nevermind, found it here: espressif/esp-idf#11331

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants