BrickElectric BEM106 User Manual

Ethernet relay

Advertisement

BrickElectric Ethernet Relay
BEM106
Excellent network building block
Introduction
BEM106 is an Wide Supply Input, Ethernet Remote Relay Module, with 8 output channels, and
provide with both enclosed and open type housing. Its Ethernet connector provides 10/100baseT
interface.
It supports EasyBus-TCP, HTTP control, Modbus-TCP and Internet control protocols, suitable
for being used with servers, computers, mobiles, routers, etc., to provide remote control and monitor.
You can also define the port number for HTTP by yourself, to realize Router Port Forwarding.
With DHCP functions, it doesn't need to make any settings anymore in field. So just plug and
play, power it on and then enjoy your remote control.
BEM106 is a new generation product with more functions and higher stability. Control mode
"toggle" and "automatic cycle operation" are provided additionally.
www.BrickElectric.com
Features
⚫ WEB control
⚫ Modbus-TCP
⚫ X-Connect
⚫ Hardware Reset
⚫ 5 - 24 VDC power supply
⚫ EasyBus - simple solution
⚫ Android App
⚫ LAN mode
⚫ DHCP - Plug and play
⚫ Internet Control
⚫ Password Protection

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BEM106 and is the answer not in the manual?

Questions and answers

Summary of Contents for BrickElectric BEM106

  • Page 1 ⚫ Internet Control ⚫ Password Protection Introduction BEM106 is an Wide Supply Input, Ethernet Remote Relay Module, with 8 output channels, and provide with both enclosed and open type housing. Its Ethernet connector provides 10/100baseT interface. It supports EasyBus-TCP, HTTP control, Modbus-TCP and Internet control protocols, suitable for being used with servers, computers, mobiles, routers, etc., to provide remote control and monitor.
  • Page 2: Table Of Contents

    5. Auto ping and reboot mode ......................24 6. X-Connect ............................ 30 6.1 X-Connect Map Setting ..................... 30 6.2 X-Connect Map Parameter List..................31 7. Modbus-TCP ..........................33 8. Fast Program Reference ......................35 8.1 Easybus Specifications ....................... 35 9. Support & Contact us ........................49 www.BrickElectric.com...
  • Page 3: Device Overview

    1. Device Overview 1.1 General Ratings Power Consumption 5W max. Operation Temperature -30℃ to +85℃ Module Size 150mmx80mmx20mm Weight 1.2 Connection Diagram Fig. 1.1 www.BrickElectric.com...
  • Page 4: Specifications

    Subnet Mask: 255.255.255.0 You can download latest firmware for Gateway: 192.168.1.1 free. DHCP: disable ⚫ ⚫ HTTP function Internet Control State: Enable State: Enable Port: 80 Platform with App: Android iOS (in prepare) Windows (in prepare) Cross-Platform (Web Browser) in prepare www.BrickElectric.com...
  • Page 5: Easy Start

    A Practical step-by-step operation guide for starters This part is a step-by-step tutorial explaining how to start with BEM106. We'll not discuss too much details here. The only idea here is to make it work by minimum steps. For more information, please refer to later chapters.
  • Page 6: Lan Mode

    3.2 LAN Mode 1. Connect BEM106 with your routers or computer by Ethernet cable, and then power it on with 5 - 24VDC power supply. (see fig.1.1 at page 2) 2. Open any TCP test tool (if you don't have any, or you don't know what a TCP test tool is, you can use BE-Manager, it is within our software package).
  • Page 7 Fig.1.3 www.BrickElectric.com...
  • Page 8: Internet Mode

    3.3 Internet Mode: 1. Connect BEM106 with your routers or computer by Ethernet cable. And then power it on with 5-24VDC power supply. (see fig.1.1 at page 2) 2. Open "Hello Brick" app for android at any android phone, register a user and then have fun with Internet control.
  • Page 9: Functionality

    You can find the MAC Address of the module at the simple starter manual delivered together with module package. 4.2 Save Parameters After power cycle, BEM106 will lose its parameter modifications if you don't actively require it to save modified parameters into internal nonvolatile memory. For examples, IP Address, Gateway address and Net mask.
  • Page 10: Dhcp Function

    4.3 DHCP Function BEM106 supports both DHCP and static IP Addressing. For communication reliability, we recommend using a Static IP Address when you feel comfortable doing so. This will ensure that the device will always be where you expect it to be, when you try to connect to...
  • Page 11: Relay Outputs Control

    In the following contents, assuming current IP Address is 192.168.1.105. If you need to switch different channels please replace "k0x" to the value you need. For example, if you want control ch2, you may replace "k01" with "k02". www.BrickElectric.com...
  • Page 12 To switch off ch1 output: Web access URL: http://192.168.1.105/k01=0 Socket command text: k01=0; To switch on ch1 output: Web access URL: http://192.168.1.105/k01=1 Socket command text: k01=1; To toggle (opposite to previous status) ch1 output: Web access URL: http://192.168.1.105/k01=2 Socket command text: k01=2; www.BrickElectric.com...
  • Page 13 To pulse off ch1 output, you can input by require web access: Web access URL: http://192.168.1.105/k01=3 Socket command text: k01=3; To pulse on ch1 output, you can input by require web access: Web access URL: http://192.168.1.105/k01=4 Socket command text: k01=4; www.BrickElectric.com...
  • Page 14 To set timer T1 value to 5000: Web access URL: http://192.168.1.105/setpara[65]=5000 Socket command text: setpara[65]=5000; To set timer T1 value unit to ms: Web access URL: http://192.168.1.105/ setpara[29]=0 Socket command text: setpara[29]=0; To set timer T1 value unit to second: Web access URL: http://192.168.1.105/ setpara[29]=1 www.BrickElectric.com...
  • Page 15 To set timer T1 value to 5000: Web access URL: http://192.168.1.105/ setpara[65]=5000 Socket command text: setpara[65]=5000; To set timer T1 value unit to ms: Web access URL: http://192.168.1.105/ setpara[29]=0 Socket command text: setpara[29]=0; To set timer T1 value unit to second: www.BrickElectric.com...
  • Page 16: Password Protection

    Once enabled, user can only send effective command when they're able to provide correct 6-bit length access password. In the following contents, assuming current IP Address is 192.168.1.105. And device password is "123456", which is also the default password. Enable/Disable Password Protection To Enable password protection: Web access URL: www.BrickElectric.com...
  • Page 17: Http Port Setting

    For example, if you set incorrect IP Address and the device is no longer detectable in your network. Two different level of reset are provided in this module. Level-1 only reset parameters, i.e. network settings, time settings and so on, while Level-2 will reset on-chip app, i.e. for firmware updating/reload. www.BrickElectric.com...
  • Page 18: Identification & Customized Information

    Read serial number You can read serial number by reading the sticker on the device, but you can also read device serial number by communication. To read device serial number: Web access URL: http://192.168.1.105/ getpara[100]=1; Socket command text: getpara[100]=1; www.BrickElectric.com...
  • Page 19: Easybus Server/Client Mode

    5000(by default) and by actively connecting to module ip / port number you can create a TCP connection between your software and relay module. Unlike http interface, each module supports only one TCP channel at the same time. If www.BrickElectric.com...
  • Page 20 (for example, if DHCP mode is activated). Each relay module supports only one TCP connection to server, that means only one server can be connected in the same time. To set relay module to TCP Client Mode: Web access URL: http://192.168.1.105/ setpara[132]=1; Socket command text: www.BrickElectric.com...
  • Page 21 DNS function, by default this function is disabled. To read relay module EasyBus Client DNS Enable: Web access URL: http://192.168.1.105/ getpara[129]=1; Socket command text: getpara[129]=1; To set relay module EasyBus Client DNS Enable to be enabled: Web access URL: www.BrickElectric.com...
  • Page 22 To read relay module EasyBus Client Remote Host Name: Web access URL: http://192.168.1.105/ getpara[128]=1; Socket command text: getpara[128]=1; To set relay module EasyBus Client Remote Host Name, for example to BrickElectric.com: Web access URL: http://192.168.1.105/ setpara[128]=BrickElectric.com; Socket command text: setpara[128]=BrickElectric.com; EasyBus Client Watchdog In most of networks, router will kill a TCP connection if it is unused for some time period, an practical time will be 120 seconds.
  • Page 23 The higher the value of this parameters, the longer the server un-response time will be allowed. In good network environment this is recommended so it will save the traffic in total. For example, setpara[127] = 2, or setpara[127] = 3, 4 … 9999. www.BrickElectric.com...
  • Page 24: Auto Ping And Reboot Mode

    IP address from your DNS server. Change mode to Fixed IP Mode (mode 0) for auto ping: Auto Ping Channel 1: Web access URL: http://192.168.1.105/setpara[149]=0 Socket command text: setpara[149]=0; Auto Ping Channel 2: Web access URL: http://192.168.1.105/setpara[150]=0 Socket command text: setpara[150]=0; www.BrickElectric.com...
  • Page 25 Auto Ping Channel 1: Web access URL: Write: http://192.168.1.105/setpara[101]=192&setpara[102]=168&setpara[103]=1&setpara[104] =100 Read: http://192.168.1.105/getpara[101]=192&getpara[102]=168&getpara[103]=1&getpara[104] =100 Socket command text: Write: setpara[101]=192;setpara[102]=168;setpara[103]=1;setpara[104]=100; Read: getpara[101]=192;getpara[102]=168;getpara[103]=1;getpara[104]=100; Auto Ping Channel 2: Web access URL: Write: http://192.168.1.105/setpara[105]=192&setpara[106]=168&setpara[107]=1&setpara[108] =100 Read: http://192.168.1.105/getpara[105]=192&getpara[106]=168&getpara[107]=1&getpara[108] =100 Socket command text: Write: setpara[105]=192;setpara[106]=168;setpara[107]=1;setpara[108]=100; Read: getpara[105]=192;getpara[106]=168;getpara[107]=1;getpara[108]=100; www.BrickElectric.com...
  • Page 26 5 seconds, and then power it on again. I'm using k01 to supply power to my device, so my reboot sequence is: k01=0;wait=5;k01=1; and plus the programmable mark(if you don't insert programmable mark, your sequence will be running immediately rather than saving into preset program and wait to be triggered) www.BrickElectric.com...
  • Page 27 1. To set time unit to millisecond: setpara[46]=0; 2. To set time unit to second: setpara[46]=1; 3. To set time value to 60: setpara[82]=60; I want to setup time between pings to 60 seconds, for example: Web access URL: Write: http://192.168.1.105/setpara[46]=1&setpara[82]=60 Read: http://192.168.1.105/getpara[46]=1&getpara[82]=1 Socket command text: www.BrickElectric.com...
  • Page 28 2. To set time unit to second: setpara[173]=1; 3. To set time value to 60: setpara[165]=60; I want to setup after reboot delay time to 300 seconds, for example: Web access URL: Write: http://192.168.1.105/setpara[173]=1&setpara[165]=300 Read: http://192.168.1.105/getpara[173]=1&getpara[165]=1 Socket command text: Write: setpara[173]=1;setpara[165]=60; www.BrickElectric.com...
  • Page 29 Write: http://192.168.1.105/setpara[181]=0 Socket command text: Write: setpara[181]=0; Auto Ping Channel 2: To start auto ping: Web access URL: Write: http://192.168.1.105/setpara[182]=1 Socket command text: Write: setpara[182]=1; To stop auto ping: Web access URL: Write: http://192.168.1.105/setpara[182]=0 Socket command text: Write: setpara[182]=0; www.BrickElectric.com...
  • Page 30: X-Connect

    Web access URL: http://192.168.1.105/ setpara[102]=1; Or Socket command text: setpara[102]=1; (2) Select the module you want to map at 192.168.1.106 by: Web access URL: http://192.168.1.105/ setpara[133]=192; Or Socket command text: setpara[133]=192; Web access URL: http://192.168.1.105/ setpara[134]=168; Or Socket command text: setpara[134]=168; www.BrickElectric.com...
  • Page 31: X-Connect Map Parameter List

    0 ~ 255 VWSIP24 X-Connect CH2 target IP 4 0 ~ 255 VWSIP31 X-Connect CH3 target IP 1 0 ~ 255 VWSIP32 X-Connect CH3 target IP 2 0 ~ 255 VWSIP33 X-Connect CH3 target IP 3 0 ~ 255 www.BrickElectric.com...
  • Page 32 X-Connect CH6 output select 1 ~ 8 VWSR7 X-Connect CH7 output select 1 ~ 8 VWSR8 X-Connect CH8 output select 1 ~ 8 VWSR9 X-Connect CH9 output select 1 ~ 8 VWSR10 X-Connect CH10 output select 1 ~ 8 www.BrickElectric.com...
  • Page 33: Modbus-Tcp

    To switch on relay channel 4 output Ethernet frame: 0x05 0x00 0x03 0xFF 0x00 To switch off relay channel 4 output Ethernet frame: 0x05 0x00 0x03 0x00 0x00 To switch on relay channel 5 output Ethernet frame: 0x05 0x00 0x04 0xFF 0x00 www.BrickElectric.com...
  • Page 34 To switch off relay channel 7 output Ethernet frame: 0x05 0x00 0x06 0x00 0x00 To switch on relay channel 8 output Ethernet frame: 0x05 0x00 0x07 0xFF 0x00 To switch off relay channel 8 output Ethernet frame: 0x05 0x00 0x07 0x00 0x00 www.BrickElectric.com...
  • Page 35: Fast Program Reference

    This saves time for many people who wants to focus on more creative works, and they can start to create application with BEM106 immediately, rather than spend lots of time on learning the old-fashioned and very detailed industry automation communication protocol before they can really start to do anything.
  • Page 36 0 – 1 018 DHCP DHCP functionality, 0 = static IP mode, 1 = DHCP mode default value: 0 range: 0 – 1 019 PWEN Password enable, 0 = password disable, 1 = password disable default value: 0 www.BrickElectric.com...
  • Page 37 0 – 1 033 K3U1 Relay K3 timer T1 unit selector, 0 = ms, 1 = second default value: 0 range: 0 – 1 034 K3U2 Relay K3 timer T2 unit selector, 0 = ms, 1 = second www.BrickElectric.com...
  • Page 38 0 – 1 045 - Reserved parameter default value: - range: - 046 - Reserved parameter default value: - range: - 047 - Reserved parameter default value: - range: - 048 - Reserved parameter default value: - range: - www.BrickElectric.com...
  • Page 39 - range: - 060 - Reserved parameter default value: - range: - 061 - Reserved parameter default value: - range: - 062 - Reserved parameter default value: - range: - 063 - Reserved parameter default value: - www.BrickElectric.com...
  • Page 40 0 - 65535 076 K6T2 Relay K6 timer T2 value default value: 1000 range: 0 - 65535 077 K7T1 Relay K7 timer T1 value default value: 1000 range: 0 - 65535 078 K7T2 Relay K7 timer T2 value www.BrickElectric.com...
  • Page 41 - range: - 089 - Reserved parameter default value: - range: - 090 - Reserved parameter default value: - range: - 091 - Reserved parameter default value: - range: - 092 - Reserved parameter default value: - range: - www.BrickElectric.com...
  • Page 42 Ping monitor 2 IP address 1 default value: 192 range: 0 – 255 106 PIP2-2 Ping monitor 2 IP address 2 default value: 168 range: 0 – 255 107 PIP2-3 Ping monitor 2 IP address 3 default value: 1 www.BrickElectric.com...
  • Page 43 119 - Reserved parameter default value: - range: - 120 - Reserved parameter default value: - range: - 121 - Reserved parameter default value: - range: - 122 - Reserved parameter default value: - range: - 123 - Reserved parameter www.BrickElectric.com...
  • Page 44 Ping monitor 2 domain name, max 55 characters default value: www.example2.com range: - 135 - Reserved parameter default value: - range: - 136 - Reserved parameter default value: - range: - 137 - Reserved parameter default value: - range: - www.BrickElectric.com...
  • Page 45 150 PSEL2 Ping monitor 2 mode selector, 0 = fixed IP mode, 1 = DNS mode default value: 0 range: 0 – 1 151 - Reserved parameter default value: - range: - 152 - Reserved parameter default value: - www.BrickElectric.com...
  • Page 46 - range: - 165 PDT1 Ping monitor 1 delay timer after reboot default value: 1000 range: 0 – 65536 166 PDT2 Ping monitor 2 delay timer after reboot default value: 1000 range: 0 – 65536 167 - Reserved parameter www.BrickElectric.com...
  • Page 47 - 179 - Reserved parameter default value: - range: - 180 - Reserved parameter default value: - range: - 181 PCTRL1 Ping monitor 1 control word, 0 = stop, 1 = start default value: 0 range: 0 – 1 www.BrickElectric.com...
  • Page 48 - range: - 185 - Reserved parameter default value: - range: - 186 - Reserved parameter default value: - range: - 187 - Reserved parameter default value: - range: - 188 - Reserved parameter default value: - range: - www.BrickElectric.com...
  • Page 49: Support & Contact Us

    Email: support@brickelectric.com Skype Online Support: +86 182 1730 3961 WhatsApp Online Support: +86 182 1730 3961 Call Us: +86 182 1730 3961 If you have any questions or any customized software/hardware requirement, please send an email to our mailbox: support@brickelectric.com www.BrickElectric.com...

Table of Contents