background image

www.BrickElectric.com 

4. Functionality 

4.1 Basic Network Communications 

The main method  of  communication  to  BEM105  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  starter  manual  delivered 

together with module package. 

 

4.2 Save Parameters 

After  power  cycle,  BEM105  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 BEM105

Page 1: ...h 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 used with servers computer...

Page 2: ...LAN Mode 6 3 3 Internet Mode 8 4 Functionality 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 Pa...

Page 3: ...www BrickElectric com 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...

Page 4: ...C 10A 125VAC 10A 24VDC 10A 12VDC 10A 2 2 Default Software Settings Default Settings IP Setting IP address 192 168 1 105 Subnet Mask 255 255 255 0 Gateway 192 168 1 1 DHCP disable Latest Firmware Versi...

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

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: ...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 No other need at relay module is necessary 3 If you need online help or n...

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

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 off ch1 output you can input by require web access Web access URL http 192 168 1 105 k01...

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

Page 15: ...ed 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 1ms to 4294967295 second K0xT1 K0xT...

Page 16: ...tput 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 Web access URL http 192 1...

Page 17: ...r 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 http acc...

Page 18: ...e and try to download latest firmware from Internet Please connect to internet when you do this operation 4 9 Identification customized information When more than one modules are installed in the fiel...

Page 19: ...Web access URL http 192 168 1 105 setpara 97 my_device Socket command text setpara 97 my_device Read device type you can read device type by communication for the purpose of better identification the...

Page 20: ...o ping mode select default is fixed IP mode 2 Configure Fixed IP or Domain Name default is your gateway IP 3 Configure programmable reboot sequence default is no action 4 Set time between pings defaul...

Page 21: ...nnel 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 Socke...

Page 22: ...ase of remote IP device becomes unresponsive auto ping function will run a pre set reboot sequence to make a customized reboot action according to your application For this function the following comm...

Page 23: ...65535 seconds Normally 60 seconds should be useful for most applications To setup time you need to set 2 parameters time unit and time Auto Ping Channel 1 1 To set time unit to millisecond setpara 45...

Page 24: ...xt Write setpara 158 5 Read getpara 158 1 6 Delay time after reboot After auto ping detected an external controller unresponsive failure and running a reboot sequence it is naturally necessary that th...

Page 25: ...ping function please make sure your every other setting is finished so it can work correctly If you save settings after auto ping start when power on the device auto ping will automatically start aga...

Page 26: ...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 27: ...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 28: ...27 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 030 K1U2 Relay K1 timer T2 unit se...

Page 29: ...ed parameter default value range 039 Reserved parameter default value range 040 Reserved parameter default value range 041 Reserved parameter default value range 042 Reserved parameter default value r...

Page 30: ...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 31: ...00 range 0 65535 069 K3T1 Relay K3 timer T1 value default value 1000 range 0 65535 070 K3T2 Relay K3 timer T2 value default value 1000 range 0 65535 071 K4T1 Relay K4 timer T1 value default value 1000...

Page 32: ...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 33: ...P Device model type default value 105 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 34: ...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 35: ...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 36: ...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 37: ...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 38: ...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 39: ...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 40: ...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: