background image

www.BrickElectric.com 

4. General Functionality 

4.1 Basic Network Communications 

The main method  of  communication  to  BEM107  is  a  standard Ethernet  communication. 

This communication protocol makes use of Network Sockets or HTTP protocol to create 

point to point tunnels that data can flow through bi-directionally. In this way, the computer 

that  is  controlling  the  relay  can  send  commands  and  shortly  thereafter  receive  the 

response through the same Socket/Web Page. 

 
Communications 

In  most  programming  languages,  all  you  need  to  do  to  open  a  socket  is  to  import  the 

appropriate plug-in, build the socket object, and connect the socket using the IP Address 

and Port Number of the target device. 

 

MAC Address 

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,  BEM107  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. 

 

Assuming module current IP Address is 192.168.1.105 for all the following commands. 

 

Save parameters 

To save parameters: 

Web access URL:   

http://192.168.1.105/save=1 

Socket command text: 

save=1; 

 

4.3 Reboot 

Send the module a restart signal so it will restart itself. 

Some parameters modifications 

are  only  effective  after  a  reboot  or  power  cycle.

  Relay  contact  outputs  are  still  in 

control  during  reboot  process,  under  default  setting,  module  will  be  keep  the  contact 

status unchanged during this reboot process. Parameters modifications will be lost if you 

don't save them before reboot or power cycle operation. 

 

Assuming module current IP Address is 192.168.1.105 for all the following commands. 

 

Reboot 

Summary of Contents for BEM107

Page 1: ...nnel and provide with both enclosed and open type housing Its Ethernet connector provides 10 100baseT interface It supports EasyBus TCP HTTP control and Internet control protocols suitable for being u...

Page 2: ...onality 9 4 1 Basic Network Communications 9 4 2 Save Parameters 9 4 3 Reboot 9 4 3 DHCP Function 10 4 4 Static IP Address 10 4 5 Relay outputs control 11 4 6 Password protection 16 4 7 Http port sett...

Page 3: ...ion Temperature 30 to 85 Module Size 75mmx50mmx20mm Weight 1 2 Connection Diagram Fig 1 1 2 Specifications 2 1 Recommended Operating Conditions Parameters At T 25 Vsuplly 5V unless otherwise specified...

Page 4: ...ress 192 168 1 105 Subnet Mask 255 255 255 0 Gateway 192 168 1 1 DHCP disable Latest Firmware Version V107 0 00 You can download latest firmware for free HTTP function State Enable Port 80 Internet Co...

Page 5: ...rk by minimum steps For more information please refer to later chapters 3 1 HTTP Mode 1 Connect BEM107 with your routers or computer via a standard Ethernet cable And then power it on with 5 24VDC pow...

Page 6: ...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 Open it and see the following Fig 1 2 Fig 1 2 3 Cli...

Page 7: ...www BrickElectric com Fig 1 3...

Page 8: ...ee 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 3 If you need online help or need to contact us for customized func...

Page 9: ...ual delivered together with module package 4 2 Save Parameters After power cycle BEM107 will lose its parameter modifications if you don t actively require it to save modified parameters into internal...

Page 10: ...Assuming module current IP Address is 192 168 1 105 for all the following commands Enable Disable DHCP Note modification only effective after parameter saving and module reboot To Enable DHCP Web acce...

Page 11: ...on only effective after parameter saving and module reboot To set static Gateway Address to 192 168 2 1 Web access URL http 192 168 1 105 gateway 192 168 2 1 Socket command text gateway 192 168 2 1 Se...

Page 12: ...ands No timing features included Switches 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 Soc...

Page 13: ...ommands and wait for a predefined time period then automatically switches to opposite status Switches To pulse on ch1 output you can input by require web access Web access URL http 192 168 1 105 k01 3...

Page 14: ...imer K0xT1 timer supports from 1ms to 4294967295 second K0xT1 needs to be set for time value and K0xU1 needs to be set for timer value unit Default value for K0xT1 is 1000 and default unit for K0xU1 i...

Page 15: ...6 Timing Features To set up customized timer for relay cycle outputs timer T1 and T2 are used and need to be set Each relay channel has two independent timers K0xT1 and K0xT2 time period supports from...

Page 16: ...Mode Read current relay output status for feedback control Module will return the current status in web content or socket text depending on how do you send the command To read relay ch1 current status...

Page 17: ...eeded for port forwarding or any other reasons For example you can force your web browser to access http content at port 8080 to do so you need to enter http url 8080 This module is able to customize...

Page 18: ...cation customized information When more than one modules are installed in the field it is necessary to be able to read the identification information from module for example serial number Except for s...

Page 19: ...vice firmware version you can read device firmware version by communication for the purpose of better identification the device or diagnosis To read device firmware version Web access URL http 192 168...

Page 20: ...output module When one input is mapped to one or more outputs then if this input is triggered all the outputs that it mapped will also be triggered immediately 5 1 X Connect Map Setting Each BEM Seri...

Page 21: ...ct 1 8 105 4 VWSL4 X Connect CH4 input select 1 8 106 5 VWSL5 X Connect CH5 input select 1 8 107 6 VWSL6 X Connect CH6 input select 1 8 108 7 VWSL7 X Connect CH7 input select 1 8 109 8 VWSL8 X Connect...

Page 22: ...61 8 VWSIP81 X Connect CH8 target IP 1 0 255 162 8 VWSIP82 X Connect CH8 target IP 2 0 255 163 8 VWSIP83 X Connect CH8 target IP 3 0 255 164 8 VWSIP84 X Connect CH8 target IP 4 0 255 165 9 VWSIP91 X C...

Page 23: ...5 Relay 1 output control Write Read 00000 1 02 Input 1 status read Read To look into Modbus TCP frame structure or create your own Modbus TCP program here are the detailed message frame for each comma...

Page 24: ...e old fashioned and very detailed industry automation communication protocol before they can really start to do anything How to send a correct switch command Example switch on relay channel 1 K01 1 Ex...

Page 25: ...192 range 0 255 011 SIP2 module IP address 2 default value 168 range 0 255 012 SIP3 module IP address 3 default value 1 range 0 255 013 SIP4 module IP address 4 default value 105 range 0 255 014 Reser...

Page 26: ...ved parameter default value range 027 Reserved parameter default value range 028 Reserved parameter default value range 029 K1U1 Relay K1 timer T1 unit selector 0 ms 1 second default value 0 range 0 1...

Page 27: ...rved parameter default value range 040 Reserved parameter default value range 041 Reserved parameter default value range 042 Reserved parameter default value range 043 Reserved parameter default value...

Page 28: ...range 054 Reserved parameter default value range 055 Reserved parameter default value range 056 Reserved parameter default value range 057 Reserved parameter default value range 058 Reserved paramete...

Page 29: ...K2T2 Relay K2 timer T2 value default value 1000 range 0 65535 069 Reserved parameter default value range 070 Reserved parameter default value range 071 Reserved parameter default value range 072 Rese...

Page 30: ...rved parameter default value range 084 Reserved parameter default value range 085 Reserved parameter default value range 086 Reserved parameter default value range 087 Reserved parameter default value...

Page 31: ...P Device model type default value 107 range 100 DEVSN Device serial number default value range 101 PIP1 1 Ping monitor 1 IP address 1 default value 192 range 0 255 102 PIP1 2 Ping monitor 1 IP address...

Page 32: ...d parameter default value range 113 Reserved parameter default value range 114 Reserved parameter default value range 116 Reserved parameter default value range 117 Reserved parameter default value ra...

Page 33: ...rameter default value range 130 Reserved parameter default value range 131 Reserved parameter default value range 132 Reserved parameter default value range 133 PNAME1 Ping monitor 1 domain name max 5...

Page 34: ...AIT 5 K02 0 range 143 Reserved parameter default value range 144 Reserved parameter default value range 145 Reserved parameter default value range 146 Reserved parameter default value range 147 Reserv...

Page 35: ...r 2 max allowed no response failure times before reboot default value 3 range 0 65535 159 Reserved parameter default value range 160 Reserved parameter default value range 161 Reserved parameter defau...

Page 36: ...lector after reboot 0 ms 1 second default value 0 range 0 1 174 PDU2 Ping monitor 2 delay timer unit selector after reboot 0 ms 1 second default value 0 range 0 1 175 Reserved parameter default value...

Page 37: ...ult value 0 range 0 1 183 Reserved parameter default value range 184 Reserved parameter default value range 185 Reserved parameter default value range 186 Reserved parameter default value range 187 Re...

Page 38: ...t us Email brickelectric hotmail com 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...

Reviews: