Jump to content

Nuvoton M0517LBN ARM-based 8/16 channel Web Relay boards - AKA NC800, SainSmart, Bewinner, found on Amazon, ebay, etc.


TFay

Recommended Posts

I have mapped out the controls for the family 8 and 16 Channel Relay Module Boards which are built using Nuvoton MO517LBN ARM microcontrollers with ENC28J60 ethernet controllers, which are found under various names/brands on Amazon, etc. (NC800, SainSmart, Bewinner, etc.)

These all use the Nuvoton M0517LBN ARM microcontroller with an ENC28J60 ethernet chip. You can also get the 16 channel controller boards (OP, but no relays) on ebay for as low at $7.95, which control up to 16 relays (16 channel relay boards that take these controllers are also easily available on Amazon). 

Note that while the M0517LBN based Web Relays seem to be very stable when being controlled via ISY network resources, they can be quite unstable when accessing them via a Web browser (e.g. Chrome), so I recommend avoiding that as much as possible.


Notes on Port/Routing:
Please note that these from what I have seen these Nuvoton M0517LBN based relay boards ALWAYS use port 80 (e.g. 192.168.1.10:80) and changing the "port" via the network settings does NOT actually change the TCP/IP port. The default "port" 30000 is not actually the TCP/IP port at all, but rather the prefix of the URL for the REST API commands. For example, the default for turning on all relays is 192.168.1.10:80/30000/45, but if you change the "port" from 30000 to 40000, all you actually do is change the URL to 192.168.1.10:80/40000/45, while port 80 remains the same (note, since port 80 is always the default for HTTP, both "192.168.1.10:80/30000/45" and "192.168.1.10/30000/45" are effectively the same URL, with or without specifying port 80.) This means you can set up port forwarding from a router, using port 80 from the NC800, and forwarding that to any port you choose. But note that the ENC28J60 based relays typically have no security, so they will be wide open to the Internet. So just because you can, doesn't mean you should. Best to keep yours safely behind your firewall/router, and let your ISY/Polisy control it via the wider world. 

Changing network settings:
You can change the TCP/IP network address via a web browser at the following URL (assuming the device has default IP address 192.168.1.10)
http://192.168.0.92/30000/41

Beware! It seems that many of these Muvoton M0517LBN based units, regardless of the manufacturer, use the same MAC address (54:55:58:10:00:24), which means you cannot have more than one of them on your network. The issue seems to be that while the ENC28J60 ethernet controller is capable of using unique MAC addresses, the manufactures of these devices simply use a common code flash on the M0517LBN ARM chips that all specify the very same MAC address (54:55:58:10:00:24). The ENC28J60 data sheet does specifically state that "Users of the ENC28J60 must generate a unique MAC address for each controller used," so the use of a common MAC for all these devices is the result of a programming deficiency, not a limitation of the ENC28J60 ethernet controller. If anyone has one of these units and you find that it has a different MAC address than 54:55:58:10:00:24, please let us know which model you have, as that may open the door for multiple of these units to be on the same network. 

NC800_Web_Relay_8_Channel.zip

WebRelay16-ENC28J60_chipset.zip

Edited by TFay
  • Like 1
Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...