BrickElectric BEM104 Manual

BrickElectric BEM104 Manual

Ethernet relay

Advertisement

Quick Links

BrickElectric Ethernet Relay
BEM104
Excellent network building block
Introduction
BEM104 is an Wide Supply Input, Ethernet Remote Relay Module, with 2 output channels, and
provide with both enclosed and open type housing. Its Ethernet connector provides 10/100baseT
interface.
It supports EasyBus-TCP, HTTP control, Auto ping, 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.
BEM104 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 BEM104 and is the answer not in the manual?

Questions and answers

Summary of Contents for BrickElectric BEM104

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

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

    Operation Temperature -30℃ to +85℃ Module Size 75mmx50mmx20mm Weight 1.2 Connection Diagram Fig. 1.1 2. Specifications 2.1 Recommended Operating Conditions Parameters Symbol Values Unit At T = 25℃, V = 5V unless otherwise specified. Min. Typ. Max. suplly Operating voltage www.BrickElectric.com...
  • Page 4: Default Software Settings

    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 BEM104. 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 BEM104 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 BEM104 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: General Functionality

    You can find the MAC Address of the module at the simple start manual delivered together with module package. 4.2 Save Parameters After power cycle, BEM104 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 BEM104 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 on 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 off 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: www.BrickElectric.com...
  • Page 15 K0xT1/K0xT2 is 1000, and default unit for K0xU1/K0xU2 is ms. 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; 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: 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

    In some applications, customer may want to set up their own name for better identification of the device. For this purpose, device name can be customized, with a maximum length of 15 letters. To read device name: Web access URL: www.BrickElectric.com...
  • Page 19: Easybus Server/Client Mode

    If you wish to connect multiple software to relay module at the same time, please reference to HTTP access mode, which allows multiple software connection at the same time. To read relay module EasyBus mode: www.BrickElectric.com...
  • Page 20 Web access URL: http://192.168.1.105/ setpara[132]=1; Socket command text: setpara[132]=1; EasyBus Client Remote IP address This parameter setup the remote server IP address for relay module to connect. To read relay module EasyBus Client Remote IP address: Web access URL: www.BrickElectric.com...
  • Page 21 To set relay module EasyBus Client DNS Enable to be enabled: Web access URL: http://192.168.1.105/ setpara[129]=1; Socket command text: setpara[129]=1; EasyBus Client Remote Host Name For some applications, the remote server IP address is assigned by DHCP, so to get the 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: Auto Ping And Reboot Mode

    BEM104 has a 2 independent auto ping channels watchdog which can monitor 2 external servers/controllers on network at the same time. Auto ping monitor channels are completely independent from relay channels, you can map either one or both relay channel to each auto ping channel freely.
  • Page 24 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 25 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 26 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 27 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 28 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 29: X-Connect

    BEM Series I/O module to another output channel BEM Series I/O module. For example, if you have one BEM108 which have 8 inputs and four BEM104 which each have 2 outputs and in total 8 outputs. In such a case you can map each input of BEM108 to the eight outputs of 4 BEM104 without central controller.
  • Page 30: X-Connect Map Parameter List

    Or Socket command text: setpara[135]=1; Web access URL: http://192.168.1.105/ setpara[136]=106; Or Socket command text: setpara[136]=106; (3) Select output channel one of target BEM104 by: Web access URL: http://192.168.1.105/ setpara[173]=1; Or Socket command text: setpara[173]=1; 6.2 X-Connect Map Parameter List All eight X-Connect channels can be setup by the following parameter list:...
  • Page 31 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 32: Modbus-Tcp

    To switch off relay channel 1 output Ethernet frame: 0x05 0x00 0x00 0x00 0x00 To switch on relay channel 2 output Ethernet frame: 0x05 0x00 0x01 0xFF 0x00 To switch off relay channel 2 output Ethernet frame: 0x05 0x00 0x01 0x00 0x00 www.BrickElectric.com...
  • Page 33: Fast Program Reference

    1 default value: 192 range: 0 – 255 003 GW2 module gate way address 2 default value: 168 range: 0 – 255 004 GW3 module gate way address 3 default value: 1 range: 0 – 255 www.BrickElectric.com...
  • Page 34 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 35 0 range: 0 – 1 032 K2U2 Relay K2 timer T2 unit selector, 0 = ms, 1 = second default value: 0 range: 0 – 1 033 - Reserved parameter default value: - range: - 034 - Reserved parameter www.BrickElectric.com...
  • Page 36 - range: - 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 37 - 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 38 074 - Reserved parameter default value: - range: - 075 - Reserved parameter default value: - range: - 076 - Reserved parameter default value: - range: - 077 - Reserved parameter default value: - range: - 078 - Reserved parameter www.BrickElectric.com...
  • Page 39 - 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 40 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 41 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 42 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 43 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 44 - 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 45 - 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 46 - 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 47: 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