Giter VIP home page Giter VIP logo

netmod-serverapp's Introduction

NetMod-ServerApp

Reprogramming the Web_Relay_Con V2.0 HW-584 Network Module Did you buy one (or more) of these Network Modules and then find disappointment in the software on the board?

  • In the original from-the-factory firmware all of the modules have the same MAC address. That's a problem if you want more than one module on your network. And the supplier does not give you a way to change the MAC.
  • If you change the IP Address the device returns to its default IP Address when it power cycles. That makes it pretty much useless even if you only put one on your network - unless you're OK with it always having IP Address 192.168.1.4.

I decided to write my own firmware for the device to provide a web server interface that let's you change the IP Address, Gateway (Default Router) Address, Netmask, Port number (a REAL port number), and MAC Address. I also added the ability for the device to remember all these settings through a power cycle. Any Relay settings you make are also optionally saved through a power cycle. In addition the Network Module can be operated as a generic MQTT device or as a Home Assistant device with Auto Discovery.

Short summary of release history:

May 9, 2021 - Numerous fixes and improvements for HA Auto Discovery, Temperature Sensors, and Timers

April 12, 2021 - Released a parallel build for "Browser Only" users that does not include MQTT, but adds some requested features for users that do not want MQTT. The "Browser Only" version includes individual IO Names, IO Timers, and restores the Network Statistics page.

Feature Comparison of the MQTT and Browser builds:

Feature MQTT Build Browser Only Build
MQTT Support x
Home Assistant Support x
Browser IO Control x x
Browser Configuration x x
Full/Half Duplex x x
Link Error Statistics x x
DS18B20 Temp Sensor x x
IO Naming x
IO Timers x
Network Statistics x

February 20, 2021 - Added a UART debug interface for use by developers. Beginning with this release you should obtain Source Code and Executables from the "Release" area of the GitHub page (along the right margin of the page).

February 8, 2021 - Added an interface for up to 5 DS18B20 temperature sensors.

January 23, 2021 - A much improved Browser interface with the ability to define input/output pins individually. As a result there was no longer a need to have separate builds for the various configurations. Auto Discovery was added to the Home Assistant interface.

August 13, 2020 - Added support for 16 outputs, OR 8 outputs / 8 inputs, OR 16 inputs in three separate builds, plus an MQTT build with 8 outputs / 8 inputs, plus support for Home Assistant.

June 13, 2020 - A simple Browser Only GUI supporting 16 output pins with retention of all user settings through reboot and power cycles.

Help is avaialble via a link in the Configuration page that will take you to the GitHub Wiki page. All functionality is described in detail in the "Network Module Manual". I suggest you take a look.

If you upgrade from a pre-January 2021 version you will find that your Device Name, IP Address, Port Numbers, and MAC address entries are retained. However, since pins are now individually assigned your pinout settings will have to be re-entered in the Configuration page. Note that firmware downgrade is not supported in an automated way. Check the Network Module Manual for downgrade instructions.

Videos: See the video links in the Wiki

Many thanks to Carlos Ladeira and Jevgeni Kiski for their many hours of work in the 2021 releases. Their collaboration greatly improved the code for everyone.

Tested with:

  • Windows 10 Firefox 84.0.2 (64-bit)

  • Windows 10 Chrome 87.0.4280.141 (64-bit)

  • Windows 10 Chrome 88.0.4324.104 (64-bit)

  • Windows 10 Edge 87.0.664.75 (64-bit)

  • Windows 10 Edge 88.0.705.50 (64-bit)

  • Mac Safari Version 14.0.2

  • Mac Edge 87.0.664.75

  • Mac Opera 73.0.3856.344

  • Mac Firefox 84.0.2

  • Mac Firefox 72.0.2

  • Ubuntu 20.10 - Firefox 84.0.1 (64-bit)

  • Ubuntu 20.10 - Chromium 87.0.4280.88 (64-bit)

  • iPhone Safari on iOS 14.3

  • iPhone Chrome 87.0.4280.77 on iOS 14.3

  • Mosquitto

  • Node-Red

  • Chrome MQTTLens

  • Home Assistant

  • IE - NOT SUPPORTED - It won't work with the javascript that is now part of the Browser GUI.

IMPORTANT NOTE: The software provided in this project only works with the โ€œWeb_Relays_Con V2.0 HW-584โ€ which is based on the STM8S-005 or STM8S-105 processor and ENC28J60 ethernet controller. I haven't tried it with any other version of the hardware. I think the V.1 FC-160 is based on a Nuvoton processor and this code and the tools are incompatible.

NOTE: I am not in any way associated with the manufacturer of this device. I only wrote code to run on it for my own hobby purposes, and I am making it available for other hobbyists.

netmod-serverapp's People

Contributors

nielsonm236 avatar caladeira avatar flexiti avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.