openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.88k stars 3.59k forks source link

[nibeheatpump] Ip and MAC is not set on Arduino Uno #14678

Open Sectorchan opened 1 year ago

Sectorchan commented 1 year ago

Hi,

I've got a Arduino Uno w Eth shield and RS485 board. I uploaded the image to the Uno, with disconnected ETH Shield and RS485 without any error, also I've made the IP config.

Is it supposed that I can ping the uno? Do I have to use a SD card on the ETH shield?`

As it seems that the IP has not been set so no IP is shown in the router nor I can ping it

lsiepel commented 1 year ago

I think this is question that is better placed in the community forums.

Documentation can be found here: https://www.openhab.org/addons/bindings/nibeheatpump/

quote: NibeGW configuration (such IP addresses, ports, etc) can be adapted directly by editing the code files.

Sectorchan commented 1 year ago

I knew, It is configured, but from my point of view, the uno should provide his IP to the router if it is a static configuration `// Ethernet configuration

define BOARD_MAC "DD-4D-38-5C-1C-77"

define BOARD_IP "192.168.1.10"

define DNS_SERVER "1.1.1.1"

define GATEWAY_IP "192.168.1.1"

define NETWORK_MASK "255.255.255.0"`

I'll state my question in the community forum

Sectorchan commented 1 year ago

I dont see any point where the IP is set with a call.

Where is actually the IP been set and not just declared for the Arduino Uno?

paulianttila commented 1 year ago

I knew, It is configured, but from my point of view, the uno should provide his IP to the router if it is a static configuration

Ethernet use MAC addresses for communication. Address Resolution Protocol (ARP) l is used to solve the MAC address of IP's. IP address should be from same subnet.

I dont see any point where the IP is set with a call.

https://github.com/openhab/openhab-addons/blob/70a9f463edb24e7520cc88eba959a8f73845b54f/bundles/org.openhab.binding.nibeheatpump/contrib/NibeGW/Arduino/NibeGW/NibeGW.ino#L272

Sectorchan commented 1 year ago

got it!

For some reasons the IP is not set with this sketch. With the sample ethernet -> Webserver setting the IP and MAC works and I can ping it.

What options do I have with an Uno to debug? (I have no other Arduino only the 1st rev of a Raspi.

Sectorchan commented 1 year ago

No one have an idea?

paulianttila commented 1 year ago

I no longer have an Arduino Uno, but you have configured the code according to readme?

Sectorchan commented 1 year ago

Yes, everything correct configured grafik grafik grafik

Sectorchan commented 10 months ago

Any ideas?