Troubleshoot ethernet gateway
-
I built an ethernet gateway a while back and it works great. I've been having sporadic issues with OpenHAB not being able to read from it or something similar. Is there an easy way to snoop on the traffic of the ethernet gateway? Will it respond to a ping? Can I view messages sent/received via netcat on Linux?
-
Yes it will respond to ping. Default address in the sketch is 192.168.178.66 but can be changed by setting IPAddress myIp.
Yes you can capture the traffic by using wireshark, tcpdump or similar tool. Easiest way is to run the tool on the same machine as you run OpenHAB and filter on the gateway's ip address.
Yes you can connect to the gateway using netcat, but I think it is only built to handle one connection at the same time so you might have to disconnect the connection from OpenHAB. TCP port 5003 is default but can be changed by setting IP_PORT in the sketch. -
Found the problem. Bad connection to router. I am now able to interact with it. Ping did work as did netcat. Thanks again.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login