Home

DAEnetIP3 User Manual

image

Contents

1. Win MAC answer address MMC 00 12 34 56 78 90 Some of the settings will take effect after restart www DENKOVI com 88 SSEMBL RTT DAEnetIP3 User Manual 17 8 8 System commands function function answer comment example bytes 1 2 byte 3 Makes system command YRT 1 Reset reset answer YRT 1 From Loads the command YDF 1 Default 000 000 default settings 000 00 settings and answer YDF 1 0 up to after 15 255 255 seconds 255 25 makes reset 5 www DENKOVI com 89 S Te DAEnetIP3 User Manual 18 Appendix 1 Connectors and LED indicators 18 1 DAEnetIP3 ports view o 2 9 O x gt PORTA_2 1 oO N WALSAS STATUS eo O STATUS LED SYSTEM POWER c D POWER LED DAEnetlP3 WT DAEnetlP3 WB DAEnetlP3 ET DAEnetlP3 EB Figure 66 DAEnetIP3 ports www DENKOVI com 90 SSEMBL CITA DAEnetIP3 User Manual 18 2 DAEnetIP3 ports description Table 17 Port A_1 PortA_1 digital outputs Free Free Free Free Free Free Free Free 3 3V DC Table 18 Port A_2 0 Z U PortA_2 digital outputs Free Free Free Free 12V DC 12V DC uu Z UO O U U U lt 9 O 9 9 Pt aii imputa PinN Bit Function Dir T 10 3 3V DC PWR www DENKOVI com 91 SSEMBL aRar DAEnetIP3 User Manual Table 20 Port C PortC analog inputs Free Free Free Free Free Free Free Free 3
2. oo WALSAS STATUS LED POWER LED TOP SIDE BOTTOM SIDE Figure 90 DAEnetIP3 WT www DENKOVI com 122 DAEnetIP3 User Manual 29 3 DAEnetIP3 EB This is DAEnetIP3 controller without Wi Fi interface The UART port SYSTEM Port and leds are soldered on the bottom side Figure 91 L VLYOd TOP SIDE www DENKOVI com PORTA_2 1 6 STATUS LED SYSTEM POWER LED BOTTOM SIDE Figure 91 DAEnetIP3 EB 123 DAEnetIP3 User Manual 29 4 DAEnetIP3 WB This is DAEnetIP3 controller with Wi Fi interface The UART port SYSTEM Port and leds are soldered on the bottom side Figure 92 L VLYOd TOP SIDE www DENKOVI com PORTA_2 1 STATUS LED POWER LED SYSTEM BOTTOM SIDE Figure 92 DAEnetlP3 WB 124
3. DAEnetIP3 User Manual will have to adjust the VSP settings The VSP name is COM1 your DAEnetIP3 device IP address in this case it is the default 192 168 0 100 We chose port to be 1010 but may be any free of your New Tibbo Virtual Serial Port Properties VSP Properties Control Lines Default Serial Settings WSP name COMI y For user Main Config Networking Trap Tap TO dla gt protocol provide On the fly Qut of band OTF index 0 commands Listening 4 997 Connection 5 El port x timeout LE Destination Specify by p address Browse for DS IP address 192 168 0 100 1010 www DENKOVI com Figure 85 Properties S Ta DAEnetIP3 User Manual 4 When you are sure for all settings just create the VSP Port name Routing mode Destination Add Remove All Allow Per User Configs Add edit remove Tibbo Virtual Serial Ports Figure 86 VSP created 5 The Virtual Serial Port now is created You may see it in the Device Manager b 2 Batteries b 8 Bluetooth Radios gt ME Computer gt a Disk drives b WE Display adapters gt 3 DVD CD ROM drives gt oS Human Interface Devices b Eg IDE ATA ATAPI controllers gt X Imaging devices b lt 2 Keyboards b A Mice and other pointing devices b Monitors b gt Network adapters 4 Ports COM amp LPT 11 Tibbo Virtual Serial Port COM1 b rocessors gt Sound video and game
4. answer RLS 14 39 45 16 09 2013 81 ETT 17 8 5 function function _ answer bytes 1 2 byte 3 DAEnetIP3 User Manual Commands for serial port From 00 up to FF read value 300 600 1200 2400 4800 9600 14400 19200 38400 56000 57600 115200 128000 256000 read value 1 None 2 Even 3 Mark 4 Odd 5 Space read value 7 or 8 data bits read value 0 Low during send 1 High during send read value 0 Full duplex 1 Half duplex read value 0 disable CRC16 1 enable CTC16 read value From 00 Get set serial up to FF port address The value is two bytes hex Get set the serial port baudrate Get set the serial port parity Get set serial port data bits Get set control direction line for serial port communicatio n Get set duplex mode for serial port communicatio n Get set CRC16 checksum for serial port communicatio n The settings will take effect after restart www DENKOVI com command SAD 0A answer SAD 0A command SAD answer SAD 1E command SBR 9600 answer SBR 9600 command SBR answer SBR 256000 command SPT 1 None answer SPT 1 command SPT answer SPT 2 Even command SDB 7 answer SDB 7 command SDB answer SDB 8 command SCL 1 answer SCL 1 command SCL answer SCL 2 command
5. 0 C pr Y Temperature sensor 0 3 3V Switch LEGEND TTL level OV or 3 3V May be applied directly to relay board Input digital signal from switch OV or 3 3V Input analog signal from temperature sensor 0 2 5V Figure 41 Distributed mode example 3 Table 11 Example 3 settings DAEnetIP3 1 inputs DAEnetIP3 2 outputs Network Settings Network Settings Eth IP address 192 168 1 100 Eth IP address 192 168 1 101 Eth Mask 255 255 255 0 Eth Mask 255 255 255 0 Eth GW 192 168 1 1 Eth GW 192 168 1 1 Remote Server IP Port 192 168 1 101 1005 Local Port Range 1005 1009 Working mode Ethernet 10 100 Mbit Digital Output 1 Port A Pin 1 Analog Input 1 Port C Pin 1 Mode On Off setting and remote Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Digital Output 2 Port A Pin 2 Low PortA Pin Pin 1 Remote true Mode On Off setting and remote Digital Input 1 Port B Pin 1 Mode Set output during rising slope PortA Pin Pin 2 Remote true Router Settings IP address 192 168 1 1 www DENKOVI com 45 S ST DAEnetIP3 User Manual 10 4 4 Example 4 Configuration 5 to 1 over LAN This example figure 42 shows how 5 controllers with a temperature sensor can control one controller with outputs over the LAN That s why the configuration is called 5 to 1 This is the maximum controllers that may control another DAEnetlP3 Note that each contro
6. 10 4 Examples 10 4 1 Example 1 Two DAEnetIP3 controllers connected via UTP cable This example figure 39 illustrates how two DAEnetlP3 controllers can be connected via single UTP cable They can work standalone without computer or router It is described how one digital input and one analog input of one DAEnetIP3 controller with inputs can control two digital outputs of another DAEnetIP3 controller with outputs DAEnetlP3 controller with inputs for example can read some temperature sensor connected to Al1 and switch connected to DI1 DAEnetIP3 controller with outputs will listen for requests and set its DO1 and DO2 according the given settings For example these outputs can control directly relay board The settings for the two DAEnetIP3 controllers that must be done are provided also Note that in this example are used the Ethernet interface network settings not the Wi Fi interface www DENKOVI com 42 DAEnetIP3 User Manual DAEnetIP3 2 outputs DAEnetIP3 1 inputs Relay Board _ UTP cable 0 3 3V Switch Temperature sensor LEGEND TTL level OV or 3 3V May be applied directly to relay board Input digital signal from switch OV or 3 3V Input analog signal from temperature sensor 0 2 5V Figure 39 Two DAEnetIP3 controllers connected via UTP cable Table 9 Example 1 settings DAEnetIP3 1 inputs DAEnetIP3 2 outputs Network Settings Eth IP address 192
7. 2 5V eeeee Wireless network Figure 40 Two DAEnetIP3 controllers connected via WLAN DAEnetIP3 1 inputs Network Settings Win IP address 192 168 1 100 Win Mask 255 255 255 0 Win GW 192 168 1 1 Remote Server IP Port 192 168 1 101 1005 Working mode Wi Fi 802 11 b g Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Low PortA Pin Pin 1 Remote true Digital Input 1 Port B Pin 1 Mode Set output during rising slope PortA Pin Pin 2 Remote true Wi Fi Settings WEP SSID Network WEP Key admin Router Settings IP address 192 168 1 1 WEP SSID Network WEP Key admin 10 4 3 via LAN Table 10 Example 2 settings DAEnetIP3 2 outputs Network Settings Win IP address 192 168 1 101 Win Mask 255 255 255 0 Eth GW 192 168 1 1 Local Port Range 1005 1009 Digital Output 1 Port A Pin 1 Mode On Off setting and remote Digital Output 2 Port A Pin 2 Mode On Off setting and remote Wi Fi Settings WEP SSID Network WEP Key admin Example 3 Two DAEnetIP3 controllers connected This example figure 41 is similar with the previous one The connection is done with two UTP cables and router It is used Ethernet interface settings www DENKOVI com 44 S RTT DAEnetIP3 User Manual DAEnetIP3 1 DAEnetIP3 2 inputs outputs UTP cable UTP cable etal lera r Router Relay Board
8. Min value 273 00 Max value 182 00 Label C www DENKOVI com 104 S RTT DAEnetIP3 User Manual 22 5 Connecting LM35DZ temperature sensor 12VDC from DAEnetIP3 PortC ADC 0 1023 divs LM35DZ Reference voltage source 2 5V Figure 79 Connecting LM35DZ to PortC 0 The measured temperature range is from 0 C up to 100 C The documentation for the sensor can be downloaded from here Settings for PortC 0 to show temperature in C linearization Min value 0 00 Max value 317 15 Label LC www DENKOVI com 105 S RTT DAEnetIP3 User Manual 22 6 Connecting MCP9700A temperature sensor 3 3VDC from DAEnetIP3 PortC ADC MCP9700A temperature sensor 0 1023 divs Reference voltage source 2 5V Figure 80 Connecting MCP9007A to PortC 0 The measured temperature range is from C 40 up to 125 C The documentation for the sensor can be downloaded from here Settings for PortC 0 to show temperature in C linearization Min value 49 69 Max value 210 73 Label LC www DENKOVI com 106 S RTT DAEnetIP3 User Manual 22 7 Connecting HIH 4000 humidity sensor 5VDC from external source PortC ADC HIH 4000 humidity sensor N E O 3 CN Oo k sd U o Reference voltage source 2 5V L DAEnetIP3 Figure 81 Connecting HIH 4000 to PortC 0 The measured relative humidity range is from 0 up to 100 The documentation fo
9. All other countries Allowed channels 1 14 e Security Mode o WEP 64 o WEP 128 o WPA TKIP Personal o WPA2 AES Personal e SSID The name of the wireless network that the controller must be connected to e Password WEP or WPA password e Signal strength indicates if the controller is associated to the wireless network and if yes the signal level from O up to 256 units Note also that when the controller security mode is changed to WPA or WPA2 it needs about 2 minutes to calculate the preshared key During this calculation it is stuck www DENKOVI com 63 S RTT DAEnetIP3 User Manual 17 DAEnetIP3 data application protocol DAEnetIP3 has several options for access besides over Web browser These are TCP IP protocol UART Serial protocol Telnet Virtual Serial Port and HTTP API Each of these four ways uses just one ASCII protocol with small modifications This means the core of this protocol the commands answers errors are the same These PDU protocol data units are shown on figure 55 Function code 3 bytes pe Data N bytes a Command PDU Answer Function code 3 bytes lt Answer N bytes ES PO Error Error code 2 bytes A PDU Figure 55 DAEnetIP3 data application protocol The Command PDU is combination of function code 3 bytes the char and data N bytes The answer PDU begins with function code 3 bytes the char and the answer data N bytes The
10. Example 2 CRC16 for DAEnetIP3 00 is disabled DAEnetlP3 00 receives TCP IP data with serial address 00 Data is sent over the serial line to DAEnetIP3 01 without added CRC16 checksum DAEnetIP3 00 performs respond DAEnetIP3 00 receives the response over the serial network and send it over the TCP IP Example 3 CRC16 for DAEnetIP3 00 is enabled DAEnetIP3 00 receives TCP IP data with serial address 01 Data is sent over the serial line to DAEnetlP3 01 with added CRC16 checksum DAEnetIP3 01 performs respond DAEnetIP3 00 receives the response over the serial network and send it over the TCP IP Example 4 CRC16 for DAEnetIP3 00 is enabled DAEnetIP3 00 receives TCP IP data with serial address 01 Data is sent over the serial line to DAEnetIP3 01 with added CRC16 checksum DAEnetIP3 01 performs respond However when data is sent back to DAEnetIP3 00 over the serial line some bit is wrong during serial communication DAEnetIP3 00 checks this and the TCP IP response is error code E3 Example 5 CRC16 for DAEnetIP3 00 is enabled DAEnetIP3 00 receives TCP IP data with serial address 01 Data is sent over the serial line to DAEnetIP3 01 with added CRC16 checksum However some bit is wrong during serial communication DAEnetIP3 01 checks this and the respond to DAEnetIP3 00 is error code E3 This error DAEnetIP3 00 sends back propagates to the TCP IP Example 6 CRC16 for DAEnetIP3 00 is disabled but CR
11. The reason for this is that the DAEnetlP3 controller accepts that the last received request for single pulse is with highest priority The user can not control manually the outputs in this mode 7 5 17 Timer and digital input This mode figure 27 configures the digital output to work as single pulse generator based on digital input falling rising slope Because the pulse can not be stopped it can be only started during falling rising slope depending on the mode in which the digital input works in Note that if the time between two falling rising slopes is less than the delay of the single pulse the digital output level will be in 1 until this interval became greater than Timer delay The user can not control manually the outputs in this mode www DENKOVI com 29 S ERT DAEnetIP3 User Manual level level Digital input mode Set output Digital input mode Set output durng rising edge durng falling edge m 0 On boot Time On boot Time Start timer Stop timer because time elapsed Digital output level Digital input level Figure 11 Timer and digital input 7 5 18 Timer and analog input This mode combines the timer mode and analog inputs figure 28 The user can not control manually the outputs in this mode e In Low mode the timer is started when the rising analog input level crosses the LT LH 2 limit e In High mode the timer is started when the falling analog input level cross
12. function code for default settings and is the delimiter 23 5 Reset via Telnet command Send to UART port YRT 1 Where YRT 1 is the function code for default settings and is the delimiter 23 6 Reset via DAEnetlP3 socket command Send to UART port AAYRT 1 Where the AA is the serial address YRT 1 is the ol function code for default settings and is the delimiter www DENKOVI com 109 S Te DAEnetIP3 User Manual 24 Appendix 7 Loading the default settings 24 1 Hardware loading default settings L VLYJOd Z YL9Od Jumper for default settings n lt a m WALSAS for default settings DAEnetlP3 WT DAEnetIP3 WB DAEnetIP3 ET DAEnetIP3 EB Figure 83 Jumper for default factory settings Turn off the power supply of the IP controller Remove the jumper for default settings Turn on the power supply of the IP controller Wait 20 seconds Turn off the power supply Put the jumper again on the position shown on the figure above Turn on the power supply poy e ae ee 24 2 Web loading default settings Web browser gt System gt Load default settings www DENKOVI com 110 SSEMBL URETA DAEnetIP3 User Manual 24 3 Loading default settings via VART command Send to UART port AAYDF 1 Where the AA is the serial address YDF 1 is the function code for default settings and is the delimiter 24 4 Loading default settings via Telne
13. 2 communicate over UTP cable and DAEnetIP3 3 communicate over wireless network DAEnetIP3 1 the server can handle the two types of messages over the UTP cable and over the wireless Its input sockets are configured so it accepts any incoming connections DAEnetIP3 2 and DAEnetIP3 3 however must be configured to work with their Ethernet and Wireless interfaces The router is the gateway for the LAN and WLAN networks In this way DAEnetIP3 1 and DAEnetIP3 2 are in local area network and DAEnetIP3 1 and DAEnetIP3 3 are in another local area network wireless local area network www DENKOVI com 50 SSEMBL Raita DAEnetIP3 User Manual Table 14 Example 6 settings DAEnetIP3 1 outputs DAEnetIP3 2 inputs Network Settings Network Settings Win IP address 192 168 1 20 Win IP address 192 168 1 21 Win Mask 255 255 255 0 Win Mask 255 255 255 0 Win GW 192 168 1 1 Win GW 192 168 1 1 Eth IP address 192 168 1 10 Eth IP address 192 168 1 11 Eth Mask 255 255 255 0 Eth Mask 255 255 255 0 Eth GW 192 168 1 1 Eth GW 192 168 0 1 Local Port Range 1005 1009 Remote Server IP Port 192 168 1 10 1005 Digital Output 1 Port A Pin 1 Working mode Ethernet 10 100 Mbit Mode On Off setting and remote Analog Input 1 Port C Pin 1 Digital Output 2 Port A Pin 2 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Mode On Off setting and remote Low PortA Pin Pin 1 Remote true Wi Fi Settings Wi Fi Sett
14. If the address is AB and the command is not valid then send error If the address is AB and the CRC 16 is not valid then send error If the address is not AB then do not send response or error code TCP IP network WAN LAN WLAN Serial network Figure 52 Receiving commands over serial network www DENKOVI com 60 14 Real Time Clock RTC 14 1 RTC Web page DAEnetIP3 User Manual Clock Time Date 21 47 42 15 09 2013 Second 38 Minute 47 Hour 21 Day has monn 09 Year 2013 Offset hours v 2 vw Last Succ NTP Sync 18 00 02 15 09 2013 Set clock Synchronize clock Figure 53 RTC settings e Set clock Set the RTC with the given date and time The date and time must be valid The Year may be from 2000 up to 2099 e Synchronize clock DAEnetlP3 will synchronize the RTC with the given NTP server from the administration settings page If there is no connection with the NTP server the controller will keep the old time e Offset determines the offset in hours applied to the date time when it is synchronizing via NTP e Last successful NTP synchronization read only shows when was the previous successful synchronization from NTP server 14 2 Auto synchronization from NTP The controller supports auto synchronization from NTP server automatically When this option is enabled Web Admin gt Allow NTP auto sync
15. SDM 1 answer SDM 1 command SDM answer SDM 2 command S16 1 answer S16 1 command S16 answer S16 0 82 EE DAEnetIP3 User Manual Commands for admin settings N 10 symbols z A Z O 9 Sari read value Abs 10 symbols z A Z 0 9 ae S read value ia 10 symbols z A Ls 0 9 KE A read value From 1 to 65535 read value From 1 to 65535 read value From 1 to 65535 read value From 1 to 65531 read value From 1 to 65535 read value From 000 000 000 000 up to 255 255 255 255 read value Telnet passwor d string Web passwor d string RC4 passwor d string Set Get the telnet password max 10 symbols Set Get the web password max 10 symbols Set Get the RC4 password max 10 symbols Set get the remote DAEnetIP3 server port This is for distributed mode Set get the NTP server port Set get the HTTP port Set get the Local Port Range Set get the User Socket Port Set get Eth IP address command MPT admin answer MPT admin command MPT answer MPT secret command MPW admin answer MPW admin command MPW answer MPW secret command MP4 admin answer MP4 admin command MP4 answer MP4 secret command MPR 1005 answer MPR 1005 command MPR answer MPR 1005 command MPN 37 answer MPN 37 c
16. TCP IP bridge DAEnetIP3 works as serial bridge between serial network UART and TCP IP network The algorithm for this bridge is based on several rules e When DAEnetlP3 receives command PDU from TCP IP socket decrypting or not decrypting RC4 it retransmits always the data over the serial network with or without CRC16 If the address of the received command is the same then DAEnetIP3 executes the command and sends the response or error only over the TCP IP encrypting or not encrypting the RC4 because this is the way that the command came from Enable RC4 parameter Serial address AB Enable CRC16 parameter Socket UART If address is AB and the command is valid then send respond If the address is AB and the command is not valid then send error If the address is not AB then do not send response or error code TCP IP network WAN LAN WLAN Serial network Figure 51 Receiving command over TCP IP network www DENKOVI com 59 S lt a DAEnetIP3 User Manual e When DAEnetlP3 receives command PDU over the serial network it checks or doesn t check the CRC16 checksum retransmits always the data over the TCP IP encrypting or not encrypting the RC4 If the command address was the same the controller executes the command and sends respond error code over the serial line with or without CRC 16 Socket UART If address is AB and the command is valid then send respond
17. command MSR 192 168 0 10 answer MSR 192 168 0 10 command MSR answer MSR 192 168 0 10 command MSN 192 168 0 10 answer MSN 192 168 0 50 command MSN answer MSN 192 168 0 50 command MMA 255 255 255 0 answer MMA 255 255 255 0 command MMA answer MMA 255 255 255 0 command MMC answer MMC 00 12 34 56 78 90 command MET 1 Enable Telnet answer MET 1 command MET answer MET 0 command ME4 1 Enable RC4 answer ME4 1 command ME4 answer ME4 0 command MWM 0 Ethernet 10 10 Mbit answer MWM 0 command MWM answer MWM 1 Wi Fi 802 11 command MGW 192 168 0 1 answer MGW 192 168 0 1 command MGW answer MGW 192 168 0 1 command MFV answer MFV 1 0 0 84 ETT www DENKOVI com Max 15 symbols taz A Z 0 9 T and ae read value 0 1 L read value Max 10 symbols a Z AZ 0 9 oe and G read value From 000 000 000 000 up to 255 255 255 255 read value From 1 to 65535 read value Max 30 symbols a Z BZ 0 9 e and ae read value Max 30 symbols a Z A Z 0 9 rot and Je read value Max 30 symbols taz AZ 0 9 a and ee read value Max 30 symbols a Z A Z 0 9 and read value 0 1 7 read value 0 1 read value Module name 0 1 String HT
18. 00 00 01 00 DO6 H 1 S On Off x1 1 15 sec v 00 00 00 00 01 00 DO7 fs 1 7 On Off vy 1 21 5 sec y 00 00 00 00 01 00 DOS b a 7 On Off l 21 5 sec v 00 00 00 00 01 00 DOY hofa 7 On Off CHR 21 5 sec v 00 00 00 00 01 00 D010 fu fa Y On Off e 1 7 74 5 sec w 00 00 00 00 01 00 D011 12 1 19 On Off l 7 4 7 5 sec y 00 00 00 7 00 01 00 D012 13 1 On Off 1 1 5 sec y 00 00 00 00 01 00 D013 4 1 M On Off e 1 7 14 5 sec w 00 00 00 00 01 00 DO14 1s 1 On Off 1 1 5 sec y 00 00 00 00 01 00 DO15 Set Digital Outpus Figure 12 Port A web page 16 digital outputs 7 2 Setting the digital outputs The 16 bit digital outputs port can be set in two ways It is possible to set single output line in low high level or set the whole port In some modes the user can not set the outputs manually because they are set by time events input signals or another DAEnetIP3 controller Via web browser it is possible to be set only at once all of them 7 3 Reading the digital outputs state status It is possible to read digital output states anytime User can read single line or the whole port all the 16 output lines 7 4 PortA initial state Bellow are given the initial states of PortA depending on the selected mode e On Off setting last state before power off e On Off setting and digital input according to the input e On Off setting and analog input according to the input www DE
19. 2 Connect DAEnetIP3 RJ45 port with UTP doesn t matter crossover or 0 N CON UTP cable connection with PC for first time Connect DAEnetIP3 RJ45 port with UTP doesn t matter crossover or straight cable Connect the PC with the other side of the UTP cable Change the IP of the PC It may be for example 192 168 0 1 DAEnetIP3 is shipped with 192 168 0 100 Supply DAEnetIP3 with power supply 12 VDC the middle pin of DAEnetIP3 power jack is 12VDC The power led with red color must be on Open your browser IE Firefox Opera and type 192 168 0 100 in the address bar Use admin for password UTP cable connection with router straight cable Connect PC with the other side of the UTP cable Remember or write down the IP of the PC for example we accept it is 192 168 1 2 Change the IP of the PC It may be for example 192 168 0 1 DAEnetIP3 is shipped with 192 168 0 100 Supply DAEnetIP3 with power supply 12 VDC the middle pin of DAEnetIP3 power jack is 12VDC The power led with red color must be on Open your browser IE Firefox Opera and type 192 168 0 100 in the address bar Use admin for password Open admin settings Change the Eth IP address of DAEnetlP3 Make it to be in one network with your router and PC For example if your router is with IP 192 168 1 1 and PC with 192 168 1 2 make DAEnetIP3 with 192 168 1 100 Eth mask must be 255 255 255 0 and E
20. 38 S GST DAEnetIP3 User Manual 9 12 4 Acc In this mode figure 37 the threshold for events are the Low and High Threshold ADC Level Analog input mode Acc Generate reaction Depending on the event output mode it may stop event reaction Figure 37 ADC mode Acc 9 12 5 Low High In this mode figure 38 the threshold for events are the Low and High Threshold ADC Level 1023 Analog input mode Low High Generate reaction Depending on the event output mode it may stop event reaction Figure 38 ADC mode Low High www DENKOVI com 39 SSEMBL aTait DAEnetIP3 User Manual 9 12 6 Port A pin value This is abstract variable that is available for each analog input It contains the number of some of the digital output lines It determines which is the attached output line to this input This means which output will react when this input generates event 9 12 7 Remote value This boolean value accept only true false is available for each analog inputs and determines if the digital output given by Remote value is of the current DAEnetIP3 controller or it is of another DAEnetIP3 controller in the network If the value is true then the input controls another DAEnetIP3 s digital output otherwise if false it controls the current DAEnetIP3 digital output line 9 12 8 Description Description text for each input It can string with the followin
21. 4 6 Example 6 Mixed Configuration sse sese eee eee cnn 50 10 4 7 Example 7 Ring configuration over WLAN sse eee eee 52 10 48 CUStO EXAMEN AAN 53 www DENKOVI com 3 SSEMBL Tai DAEnetIP3 User Manual Ti FGA EG yO Nae corso eevee Sea vege cee occas nl tice hee eee ete de Eaa ane 54 12 WARE Seral P OR T 56 h QOVEINIOW A Rs E 56 12 2 PAD PUIG AION S ci as Miaeekal tcc 57 12 3 UART Serial Port web server Dage eee eee 58 124 eTo s UA OMe T 58 IB UART lt gt TCRIP eae 59 14 Real Time Clock RTC 61 VA ARG Web page e e ee ea a e e et a aa seas 61 14 2 Auto synchronization from NTR 61 153E mail NotiticationS kea a a a a aa e dae 62 16 Wi Fi 802 11 MMT ACS sese eee eee 63 17 DAEnetlP3 data application protocol 64 17 1 CPAP SOCKEt based protocol iaa ea 65 TI e isena E shy Sunset a e ego 68 1637 SE Mal Protocol TTT 69 144 Virtual senal Porta cada 69 FE lt NR S S sln Tal TTT 71 TED GRO TO MODISTAS 72 TO TL GRC 16 GaSe eT 72 176 2 CRG16 Pero Mid vecinal 74 1166 30 RETO e nle lale nn 75 WA TROP OCS td AS A RA A T a A 76 17 8 Protocol data units PDU description sss eee eee eee 76 17 8 1 Function codes for digital output port Port AI eee esse 76 17 8 2 Commands for digital input port Port BI sss eee eee 78 17 8 3 Commands for analog input port Port C oooonccccnnnnconanoccccnnnccnnanaaannnnnns 79 17 8 4 Commands for system clock it tn ied he adiaetedeeie eos 81 17 8 5 Commands f
22. Get remote value of PortC 1 answer CR1 0 command CC1 AlI1 Set PortC 1 Description Al1 answer CC1 Al1 command CC7 Get PortC 7 description answer CC7 AI7 command CDO 7 Get PortC 1 value with dimension answer CC1 45 27Volts command CS1 Volts Set PortC 1 dimension for Al1 answer CS1 Volts command CS7 Get PortC 7 description answer CS7 cm command Cl1 19 12 Set PortC 1 min value Al1 answer Cl1 19 12 command Cl7 Get PortC 7 min value answer Cl7 123 00 command CA1 119 12 Set PortC 1 max value Al1 answer CA1 119 12 command CA7 Get PortC 7 max value answer CA7 1721 12 80 ETT 17 8 4 Commands for system clock DAEnetIP3 User Manual function function _ answer comment bytes 1 2 e te 3 www DENKOVI com From 01 01 2000 00 00 00 up to 31 12 2099 23 59 59 read value From 15 up to 15 read value read value Get set the RTC value system time Get set the offset in hours for NTP synchronizatio Synchronize the RTC from NTP server Retrieves when the clock was synchronized for last time successfully 2 0 0 version command RTC 08 08 2011 12 30 00 answer RTC 08 08 2011 12 30 00 command RTC get time answer RTC 08 08 2011 12 30 05 command RZO 2 answer RZO 2 command RZO get offset answer RZO 3 command RNT 1 answer RNT 0K command RLS
23. IP Port 192 168 1 102 1005 Working mode Wi Fi 802 11 b g Digital Output 1 Port A Pin 1 Mode On Off setting and remote Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Low PortA Pin Pin 1 Remote true Wi Fi Settings WEP SSID Network WEP Key admin DAEnetIP3 3 inputs outputs Network Settings Win IP address 192 168 1 102 Win Mask 255 255 255 0 Win GW 192 168 1 1 Local Port Range 1005 1009 Remote Server IP Port 192 168 1 103 1005 Working mode Wi Fi 802 11 b g Digital Output 1 Port A Pin 1 Mode On Off setting and remote Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Low PortA Pin Pin 1 Remote true3 Remote true Wi Fi Settings WEP SSID Network WEP Key admin Custom examples Of course the above examples are only small part of what configurations can be done It is possible to combine them to add or remove controllers and so on It must be only kept some rules regarding the distributed mode e Distributed network with DAEnetIP3 controllers are for slow processes temperature measuring and setting relays for instance It is not recommend to connect for example 1 kHz generator to some digital input and expect to toggle some relay over the network e Note that each DAEnetlP3 controller usually has two interfaces Wireless and Ethernet They must be set properly depending on the net
24. OA L w Threshold H n A A os 36 9 5 High Threshold H hG 37 GR aeui Hysteresis LH rnea a cs eevee eE bs 37 9 7 High Hysteresis ale eierne dE 37 OB TRUSS ce A RO A E A RRA 37 9 9 ANU WAN o lala acd ee at die eile 37 9 TO Maximum vale cp a a a ria 37 A ee R a E E et Sel S 37 9 12 Analog INPUEMI OAE ii lA E E 37 9 12 1 Simple reading cvez sees ii creed G a 37 D Rel 38 A Higi nnr eee rer eee Cee ners 38 92A A fa ei sal cast act Bee Oe ea tes E aaa Marre aE a hee UES Liat 39 9 125 OWING l Ca coe eas ta cel ade tM on Deuter inate A A 39 9 12 6 POLA sll NTT 40 9 127 Remote TET 40 G K Reuel eT 40 10 Distributed Box to bOx mode sss sss 41 10 1 Configuring the digital OPUS iii 41 10 2 Configuring the digital analog Inputs sss eee eee eee 41 10 3 Configuring the network parameters eee eee eee 42 10 3 1 Ethernet Wi Fi IP address MASK and Gateway eee eee eee 42 10 3 2 Remote server IP dd 42 10 33 Ree POM RANGE sto stc cs 42 10 3 4 Remote server PO asada di daa 42 T0 3 0 Working MOOG 22 A eh ia A aes 42 10 4 Banesto taa naaa 42 10 4 1 Example 1 Two DAEnetlP3 controllers connected via UTP cable 42 10 4 2 Example 2 Two DAEnetIP3 controllers connected via WLAN 43 10 4 3 Example 3 Two DAEnetIP3 controllers connected via LAN 44 10 4 4 Example 4 Configuration 5 to 1 over LAN 46 10 4 5 Example 5 Configuration 5 to 1 over WLAN eee eee 48 10
25. ON and PortA 8 PortA 15 are OFF Send OOASG Receive OOASG 00FF Get all the relais states CRC16 is ON The answer is that the PortA 0 PortA 7 are ON and PortA 8 PortA 15 are OFF Send OOASG 2DE3 Receive OO0ASG 00FF2F5C Example commands for HTTP API Set PortA 0 OFF Send ASO 0 Receive lt IDOCTYPE html gt lt html gt lt body gt AS0 0 lt body gt lt html gt Set PortA 0 ON Send ASO 1 Receive lt IDOCTYPE html gt lt html gt lt body gt AS0 1 lt body gt lt html gt 27 2 Commands for Digital Inputs Port B Example commands for TCP IP VSP RC4 encryption is off Serial address of the device is 00 Get PortB 0 state The input level is low Send OOBVO Receive OOBVO 0 Get PortB 7 state The input level is high Send OOBV7 Receive 0OBV7 1 Get the whole PortB PortB 0 PortB 3 is low and PortB 4 PortB 7 is high Send 0OOBVG Receive OOBVG FO Example commands for Telnet Get the whole PortB PortB 0 PortB 3 is low and PortB 4 PortB 7 is high Send BVG Receive BVG FO Example commands for UART Serial address of the device is 00 Get the whole PortB PortB 0 PortB 3 is low and PortB 4 PortB 7 is high Send 0OOBVG Receive OOBVG FO www DENKOVI com 117 SSEMBL Taita DAEnetIP3 User Manual Get the whole PortB CRC16 is ON PortB 0 PortB 3 is low and PortB 4 PortB 7 is high Send OOBVG E1A7 Receive 00BVG F039F0 Example commands f
26. On Off setting and remote Digital Output 1 Port A Pin 3 Mode On Off setting and remote Digital Output 2 Port A Pin 4 Mode On Off setting and remote Digital Output 1 Port A Pin 5 Mode On Off setting and remote Wi Fi Settings WEP SSID Network WEP Key admin DAEnetIP3 3 inputs Network Settings Win IP address 192 168 1 102 Win Mask 255 255 255 0 Win GW a 192 168 1 1 Remote Server IP Port 192 168 1 100 1006 Working mode Wi Fi 802 11 b g Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Low PortA Pin Pin 2 Remote true Wi Fi Settings WEP SSID Network WEP Key admin DAEnetIP3 5 inputs Network Settings Win IP address 192 168 1 104 Win Mask 255 255 255 0 Win GW a 192 168 1 1 Remote Server IP Port 192 168 1 100 1008 Working mode Wi Fi 802 11 b g Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Low PortA Pin Pin 4 Remote true Wi Fi Settings WEP SSID Network WEP Key admin Router Settings IP address 192 168 1 1 WEP SSID Network WEP Key admin www DENKOVI com DAEnetIP3 User Manual Table 13 Example 5 settings DAEnetIP3 2 inputs Network Settings Win IP address 192 168 1 101 Win Mask 255 255 255 0 Win GW a 192 168 1 1 Remote Server IP Port 192 168 1 100 1005 Working mode Wi Fi 802 11 b g Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 1
27. Set get the Wi Fi Win gateway Set get the Wi Fi interface region Set get the Wi Fi SSID Set get the Wi Fi security mode After executing this command the controller will need about 2 minutes to calculate the pre shared key in case of WPA WPA2 Return the Wi Fi interface status in units from 0 up to 256 If the controller is not associated it returns NOSIGNAL command WIP 192 168 0 1 answer WIP 192 168 0 1 command WIP answer WIP 192 168 0 1 command WNM 255 255 255 0 answer WNM 255 255 255 0 command WNM answer WNM 255 255 255 0 command WDG 192 168 0 1 answer WDG 192 168 0 1 command WDG answer WDG 192 168 0 1 command WRG 0 FCC answer WRG 0 command WRG 1 EU answer WRG 1 command WSI Network answer WSl Network command WSI answer WSI Network command WOD answer WOD 1 command WOD 2 answer WOD 2 command WHS answer WHS NOSIGNAL it is not associated to the Wi Fi network command WHS answer WHS 176 signal is good 87 SSEMBL BTT DAEnetIP3 User Manual Max 15 symbols WiFi Set get the Wi command WEP admin a z A Z 0 9 passwor Fi password answer WEP admin _ and d It may be 5 or command WEP read value 13 symbols answer WEP admin for WEP or l ii max 15 symbols for WPA WPA2 read value Get the Wi Fi command WMC
28. That s why it is recommend to use R2 resistor in the following way T i Gay 0 7 DAEnetIP3 Figure 76 Connecting switch to PortB 0 ee www DENKOVI com 102 S RTT DAEnetIP3 User Manual 22 3 Analog inputs PortC DAEnetIP3 has 8 analog inputs port This port is called Port C Each output line has pull down resistor 100K to GDN figure 77 The resolution of the used ADC is 10 bit The reference voltage is 2 5VDC The input voltage for each ADC channel is from 0 up to 2 5V approx 25mV div Be careful the inputs are connected directly to the MCU pins Incorrect connections or over voltage may damage the DAEnetIP3 controller That s why it is recommend to use R1 resistor for protection O Sensor D Ea ho N N o U o Reference voltage source 2 5V Figure 77 Using PortC analog inputs R1 resistor must be chosen in a way so there must be no more than 1mA input current in case of short cut or damaged sensor Vmax R1 lt 1mA www DENKOVI com 103 S RTT DAEnetIP3 User Manual 22 4 Connecting LM335Z temperature sensor 12VDC from DAEnetIP3 PortC ADC 0 1023 divs LM335Z temperature sensor Reference voltage source 2 5V Figure 78 Connecting LM335Z to PortC 0 The measured temperature range is from 40 C up to 100 C The documentation for the sensor can be downloaded from here Settings for PortC 0 to show temperature in C linearization
29. Z a ia pe Analog Input Event y K Pulses Input events Setting outputs Figure 5 Simple PLC DAEnetIP3 has UART port RX TX and Direction pin allowing to create RS485 network DAEnetIP3 acts like a bridge between the two types of networks This is suitable in cases where single IP address must access many DAEnetlP3 controllers PC A TCP IP socket based 1 protocol RS485 network ee ore Ethernet Internet UART lt gt RS485 UART lt gt RS485 UART lt gt RS485 Convertor Convertor Convertor 4 A 4 DAEnetIP3 DAEnetiP3 DAEnetlP3 E 4 4 Mi Wi Wi Bridge o Cc D Figure 6 Access RS485 network of many DAEnetIP3s over local network Internet Wireless www DENKOVI com 11 S ST DAEnetIP3 User Manual In many cases the inputs and outputs are not located at the same place With DAEnetIP3 this is not a problem because each controller may send message to another one saying turn digital output 1 in logical one Each DAEnetlP3 may be controller by up to 5 another DAEnetlP3 controllers at the same time The communication is done over the LAN WLAN Once the network is configured there is no need of PC This is also called Box To Box mode DAEnetIP3 outputs eee eee e gt 4 H Relay Board N Y ai R Router Se DAEnetIP3 E H Se DAEnetIP3 inputs ae T SR inputs a AR A G 4 L DAEnetIP3 inputs m C Temperature sensor Humidity ser Switch Figure 7 Dist
30. com Firmware Last Firmware version ver 1 0 0 Documentation User Manual ve Email b_denkov babw bg Skype borislav_denkov Phone mm 003598833670510 Figure 9 Web access DAEnetIP3 has built in web server for configuration figure 9 All the parameters can be accessed via web browsers like Mozilla IE and Opera Some of the pages are refreshed automatically In this way it is possible to track all the I O states in real time without manually refreshing the page The web browser must support JavaScript The controller is designed to be in two versions with Wi Fi and without Wi Fi module It is smart and recognizes if there is Wi Fi add on module In this case the web interface will display some extra features for the Wi Fi 802 11 settings www DENKOVI com 16 S EST DAEnetIP3 User Manual 6 2 Login page 71 Mozilla Firefox a a PeaaktupaHe Msraeq Mcropma OTmeTkM MMHcTpymMeHTH Momou http 192 168 1 50 index html 6 http 1192 168 1 50findex htm Please login Password eeeees Figure 10 Login page Initially the web server will require password for login figure 10 Only one session can be activated at a time This means if once there is logged user nobody else will be able to login If the currently logged user logs out new user will be able to login The session has timeout 3 minutes This means if there is no data transferred over the web 3 minutes the current session will be stopp
31. controllers gt 1 System devices b Universal Serial Bus controllers Figure 87 Device Manager www DENKOVI com 115 SSEMBL RETROE DAEnetIP3 User Manual 27 Appendix 10 Example commands 27 1 Commands for Digital Outputs Port A Example commands for TCP IP VSP RC4 encryption is off Serial address of the device is 00 Set PortA 0 OFF Send OOASO 0 Receive OOASO 0 Set PortA 0 ON Send 00OASO0 1 Receive OOAS0 1 Set PortA 11 OFF Send OOASB 0 Receive OOASO 0 Set PortA 11 ON Send OOASB 17 Receive OOAS0 1 Set all output pins whole PortA ON Actually all the DO are in high level Send OOASG FFFF Receive OOASO 0 Set all output pins whole PortA OFF Actually all the DO are in low level Send OOASG 0000 Receive OOASO 0000 Get PortA 0 state The answer is that the output is in low level Send OOASO Receive OOASO 0 Get all the outputs state whole PortA The answer is that the PortA 0 PortA 7 are ON and PortA 8 PortA 15 are OFF Send OOASG Receive OOASG 00FF Example commands for Telnet Get all the outputs states The answer is that the PortA 0 PortA 7 are ON and PortA 8 PortA 15 are OFF Send ASG Receive ASG 00FF www DENKOVI com 116 SSEMBL aRar DAEnetIP3 User Manual Example commands for UART Serial address of the device is 00 Get all the outputs states CRC16 is OFF The answer is that the PortA 0 PortA 7 are
32. error PDU is the error code 2 bytes The command answer and error finish with the char This is delimiter and it is forbidden char it is not used in the protocol DAEnetIP3 data application protocol is fully ASCII This means in the protocol exchange data consists of only printable characters For example the command received sent is 01ASG 1111EC86 This command sets the 16 bit digital output port in state 1111 0001000100010001 DO 0 4 8 12 are in logical 1 end the rest are in logical 0 Then e 01 is the address which consists of two chars 0 and 1 It is hex number represented with chars The maximum may be F and E e ASG 1111 is the command PDU 1111 is hex number represented with chars that is the states of the whole digital outputs The number may be from 0000 0 0 0 0 up to FFFF P P P F e EC86 is the CRC16 checksum Its also hex number represented with chars It s the check sum of 01ASG 1111 e is char that is the delimiter The reason for this is that the controller protocol is more understandable if it works with simple ASCII protocol Bellow char also may be mentioned as byte www DENKOVI com 64 SSEMBL ERT DAEnetIP3 User Manual 17 1 TCP IP socket based protocol DAEnetIP3 controller has possibility for access via TCP IP protocol The user may connect with custom software to port that is defined for socket based TCP IP commu
33. green and shows the status of the connection with other DAEnetlP3 when the controllers works in distributed mode This led is marked on the PCB as STAT There are 3 modes o Remote DAEnetIP3 controller is found the status led is constantly ON DAEnetIP3 User Manual Figure 69 Indication for connected state to remote host o Remote DAEnetIP3 controller is found but the port is wrong the status led is ON OFF with 0 2 second period 0 2 sec 0 2 sec Figure 70 Indication for no port found state to remote host o Remote DAEnetIP3 controller is not found at all the status led is ON OFF with 1 second period 1 sec 1 sec Figure 71 Indication for no IP address found state to remote host www DENKOVI com 94 S Peers DAEnetIP3 User Manual 18 5 DAEnetlP3 Wi Fi led indicator and external antenna connector Note that this is only for DAEnetIP3 TW and DAEnetIP3 BW Connector for external antenna Figure 72 DAEnetIP3 Wi Fi led indicator an external antenna socket DAEnetIP3 Wi Fi module has orange led for wireless connection status If the led is on then the connection is established If it is off DAEnetIP3 is not connected via wireless If the led is flashing then the connection is being established DAEnetIP3 has external antenna socket I PEX MHF 2 www DENKOVI com 95 SSEMBL aRar DAEnetIP3 User Manual 19 Appendix 2 Connecting the controller to LAN WLAN WAN 19 1 1 2 3 19
34. state is O If the initial state was 1 the logic is the same but the output levels will be reversed because of the inverting The user can not control manually the outputs in this mode www DENKOVI com 24 SSEMBL EERON DAEnetIP3 User Manual e n Low mode the output level is inverted when the rising analog input level crosses the LT LH 2 limit and when the falling analog input level crosses the LT LH 2 limit e In High mode the output level is inverted when the rising analog input level crosses the HT HH 2 limit and when falling analog input level crosses the HT HH 2 limit e n Acc mode the output level is inverted when the rising analog input level crosses the HT HH 2 and when the rising analog input level crosses the LT LH 2 e In Low High mode the output level is inverted when the rising falling analog input level crosses the LT LH 2 HT HH 2 and when the rising falling analog input level crosses the HT HH 2 LT LH 2 7 5 9 Inverting and schedule In this mode Figure 20 the digital output states are inverted by the two time events Time 1 and Time 2 The user can not control manually the outputs in this mode Level On boot Time Digital output level Time event Y inverting Figure 20 Inverting and schedule 7 5 10 Inverting and remote In this mode the output can be inverted by input digital or analog from another DAEnetIP3 controller over the network The user can no
35. 0 answer MN1 0 command MN2 answer MN2 1 command MN2 0 answer MN2 0 85 esr 0 1 read value 0 1 read value From 0 up to 99 read value DAEnetIP3 User Manual Get Set enabling On Boot event 2 0 0 version Get Set enabling NTP event 2 0 0 version Get Set the interval in minutes over which it will be send Keep alive email 2 0 0 version Some of the settings will take effect after restart www DENKOVI com command MN3 answer MN3 1 command MN3 0 answer MN3 0 command MN4 answer MN4 1 command MN4 0 answer MN4 0 command MN5 answer MN5 1 command MN5 99 answer MN5 99 86 SSEMBL RTT DAEnetIP3 User Manual 17 8 7 Commands for Wi Fi settings optional function function _ answer comment bytes 1 2 byte 3 www DENKOVI com From 000 000 000 000 up to 255 255 255 255 read value From 000 000 000 00 0 up to 255 255 255 25 5 From 000 000 000 000 up to 255 255 255 255 read value From 000 000 000 000 up to 255 255 255 255 read value 0 FCC 1 EU 2 JAPAN 3 OTHER read value Max 15 symbols a z A Z 0 9 and read value 0 WEP64 1 WEP128 2 WPA TKIP 3 WP2 AES read value Security mode read value Set get the Wi Fi Win IP address Set get the Wi Fi Win Mask
36. 1 of DAEnetIP3 01 receive 01ASG FFFF send 02ASG 0000 gets the whole PortA in O of DAEnetIP3 02 receive O2ASG 0000 e CRC16 ON send OOASG 2DE3 gets the whole PortA status of DAEnetIP3 00 receive OOASG 0FOF959B send 01ASG FFFF2DAA sets the whole PortA in 1 of DAEnetIP3 01 receive 01ASG FFFF2DAA send 02ASG 0000C9E 2 gets the whole PortA in O of DAEnetIP3 02 receive O2ASG 0000C9E2 17 4 Virtual Serial Port This communication way is almost the same like TCP IP The data transfer is done also via same TCP IP network and user defined port The only difference is that www DENKOVI com 69 es arr DAEnetIP3 User Manual all the communication is done by the Windows Virtual Serial Port driver and in this way the user is able to communicate with DAEnetIP3 via regular COM port ADU Address 2 bytes Function code 3 bytes p Data N bytes a Command Answer Error Address 2 bytes Error code 2 bytes PDU Figure 61 Communication via Virtual Serial Port www DENKOVI com 70 SSEMBL ems DAEnetIP3 User Manual 17 5 HTTP API commands This communication way is preferred very often because it is easy to be used for integration ADU Function code 3 bytes a Data N bytes ES Command Answer Figure 62 Communication with HTTP API commands Bellow are shown example commands Please note that there is HTTP API password by default it is admin
37. 168 0 100 Eth Mask 255 255 255 0 Eth GW 192 168 0 101 Remote Server IP Port 192 168 0 101 1005 Working mode Ethernet 10 100 Mbit Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode PortA Pin Pin 1 Remote true Digital Input 1 Port B Pin 1 Mode Set output during rising slope PortA Pin Pin 2 Low Remote true 10 4 2 via WLAN This example figure 40 is extension of the Network Settings Eth IP address 192 168 0 100 Eth Mask 255 255 255 0 Eth GW 192 168 0 101 Local Port Range 1005 1009 Digital Output 1 Port A Pin 1 Mode On Off setting and remote Digital Output 2 Port A Pin 2 Mode On Off setting and remote Example 2 Two DAEnetIP3 controllers connected previous one It demonstrates how two DAEnetIP3 controllers can be connected to each other but this time over WLAN It is used Wi Fi router Again one analog and one digital inputs of one DAEnetIP3 controller control two digital outputs of another DAEnetIP3 controller It used the Wi Fi interface so the Wi Fi network settings must be set properly www DENKOVI com 43 an DAEnetIP3 1 inputs Temperature sensor 0 3 3V Switch Router DAEnetIP3 User Manual DAEnetIP3 2 outputs LEGEND TTL level 0V or 3 3V May be applied directly to relay board Input digital signal from switch OV or 3 3V Input analog signal from temperature sensor 0
38. 3 12 command CG2 10 Set PortC 2 HH in 10 answer CG2 10 command CG3 Get PortC 3 HH answer CG3 12 command CM3 1 Set PortC 3 mode in Low answer CM3 1 command CM4 answer CM4 4 Acc command CPO F attaches DO15 PortA 15 to AlO PortC 0 answer CPO F command CPO Get the attached PortA pin to this input answer CPO A command CRO 1 Enable remote control for PortC 0 705 C SSEMBL up to 7 PortC 7 From 0 PortC 0 up to 7 PortC 7 From 0 PortC 0 up to 7 PortC 7 From 0 PortC 0 up to 7 PortC 7 read value Max 10 symbols az AZ 0 9 Jl and iy read value read value Max 5 symbols a Z A Z 0 9 T and G read value From 9999 99 up to 9999 99 read value From 9999 99 up to 9999 99 read value Descript ion string Value with dimensi on Dimensi on Label 9999 99 up to 9999 99 9999 99 up to 9999 99 DAEnetIP3 User Manual control value of this analog input Set get the Description parameter Get the ADC value with dimension 2 0 0 version Get set the dimension label for this channel 2 0 0 version Set get the value at ADC 0 minimum value 2 0 0 version Set get the value at ADC 1023 maximum value 2 0 0 version HT HH gt LT LH HT HH lt 1023 LT LH gt 0 www DENKOVI com answer CRO 1 command CR1
39. 3V DC Z U UART SYSTEM Function Reset 3 3V DC Reserved Default GND Z U Legend Free the pin is free to be used by user XXXXXX the pin is reserved for special function can not be accessed In the pin is digital input Out the pin is digital output Ain the pin is analog input www DENKOVI com 92 S BST DAEnetIP3 User Manual 18 3 DAEnetIP3 power jack and RJ 45 port Link Data Led green 100BaseT Led yellow Figure 67 DAEnetIP3 RJ 45 Port and Power Jack The power jack is for 12VDC power supply The middle pin of the power jack is 12VDC THERE IS NOT PROTECTION AGAINST REVERSE VOLTAGE REVERSE VOLTAGE WILL DAMAGE THE DEVICE RJ 45 Port is for Ethernet cable connection The devices recognize straight or cross over UTP cable auto MDIX The RJ 45 Port has two leds green and yellow The green led is turned on when live Ethernet cable is plugged into the device The LED blinks whenever an Ethernet packet is received The yellow is turned on when the device links with the hub at 100Mb The LED is off when the link is established at 10Mb 18 4 DAEnetIP3 Led indicators Figure 68 Led indicators www DENKOVI com 93 DAEnetIP3 has two extra led indicators e Power Led It is red and if it is on then the controller is powered up It is connected to 3 3V source This led is marked on the PCB as POW Status Led It is
40. 5 7 Inverting and digital Input ip 23 7 5 8 Inverting and analog Inputs eee eee iio 24 10 9 Invertingand scehed le soine eea ee ee ea e 25 19 10 inverting and Te ne 25 t B T E E E E E cca ae face ee 26 7 5 12 Pulses and digital Input sese 26 7 5 13 Pulses and analog puts isidro ia 27 1 9 14 HIE and e nee l 28 7 5 15 Pulses and TOMO lucida lio genere h 28 Pee Os TON ae seis E eee hte 28 19 11 TIME Can digital PU tLc canada dis 29 7 5 18 Timer and analog Putin ips ata 30 7 95 19 Timer and Te MOS to ER 31 TO IN VAMO tai et rca AA AAA 31 Pole OFE A ete E Meret att alates td alse ad Sale ae eed Le 31 1 87 Delay yaly e e aeae e eaa at 31 TI Mode Valle id ee cae a n a de 31 FeO me Weal TS T 32 LON Pad ume 2 UNS al e is 32 Pa DO CSCMPUON TT 32 www DENKOVI com 2 SSEMBL URETA DAEnetIP3 User Manual 8 Digital Inputs POM Port B prer italia split sis 33 9 1 POortB Webipago citada aes 33 8 2 Reading the digital imputs 0 c0 cccecssccenecseneeeteeeseseeceeeeeeeesennesececeeeeeeeseneess 33 8 3 POL B MOdeS iraia ec 33 8 3 1 Simple reading rrine lei eats 33 8 3 2 Set output during rising edge sss eee eee 33 8 3 3 Set output during falling edge sss sese 34 0 34 Port A pii vale nn A da 34 C395 Remote valle tasa e A E ae aT 34 dd R lele 34 9 Analog Inputs Port ROCA LS 35 9 1 Port C Web Pag ii da eileen aaa si da 35 9 2 Reading the analog Inputs ie eee eee eee 35 9 3 Refresh lan 36
41. 50 LH 10 HH 10 Mode Low PortA Pin Pin 1 Remote true Wi Fi Settings WEP SSID Network WEP Key admin DAEnetIP3 4 inputs Network Settings Win IP address 192 168 1 103 Win Mask 255 255 255 0 Win GW a 192 168 1 1 Remote Server IP Port 192 168 1 100 1007 Working mode Wi Fi 802 11 b g Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Low PortA Pin Pin 3 Remote true Wi Fi Settings WEP SSID Network WEP Key admin DAEnetIP3 6 inputs Network Settings Win IP address 192 168 1 105 Win Mask 255 255 255 0 Win GW a 192 168 1 1 Remote Server IP Port 192 168 1 100 1009 Working mode Wi Fi 802 11 b g Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Low PortA Pin Pin 5 Remote true Wi Fi Settings WEP SSID Network WEP Key admin 49 S RTT DAEnetIP3 User Manual 10 4 6 Example 6 Mixed configuration DAEnetIP3 1 outputs Relay Board gt UTP cable a za gt Ss DAEnetIP3 3 DAEnetIP3 2 s Ssi inputs inputs Temperature J ue sensor Temperature sensor LEGEND TTL level OV or 3 3V May be applied directly to relay board Input analog signal from temperature sensor 0 2 5V Figure 44 Mixed configuration This example figure 44 demonstrates how two client DAEnetIP3 inputs control one server DAEnetIP3 with outputs DAEnetIP3
42. 68 1 1 So the Win IP of the DAEnetIP3 Wi Fi interface may be 192 168 1 2 Win Mask 255 255 255 0 and Win gateway is 192 168 1 1 11 Click Save button 12 Unplug the power supply 13 Remove the UTP cable from the PC and controller 14 Supply again the DAEnetIP3 15 The orange Wi Fi status led of DAEnetIP3 must blink initially and then must be on constantly This means the controller is connected to the Wireless network If the led is off then DAEnetIP3 is not connected to the Wireless network because some settings are not correct If so you need to check out the settings again 16 1f the DAEnetIP3 is connected properly open browser and type 192 168 1 2 17 Now you may access the DAEnetIP3 controller over Wi Fi www DENKOVI com 97 SSEMBL BTT DAEnetIP3 User Manual 19 4 1 2 3 o NOD 9 Wi Fi connection with router Connect DAEnetIP3 RJ45 port with UTP doesn t matter crossover or straight cable Connect PC with the other side of the UTP cable Change the IP of LAN card of the PC It may be for example 192 168 0 1 DAEnetIP3 is with 192 168 0 100 Supply DAEnetIP3 with power supply 12 VDC the middle pin of DAEnetIP3 power jack is 12VDC The power led with red color must be on Open your browser IE Firefox Opera and type 192 168 0 100 in the address bar Use admin for password Open Wi Fi settings Change the Win IP address of DAEnetIP3 Make it to be in one network with your Wi Fi
43. 7 PortC 7 CR From 0 0 disable 0 Set get the PortC 0 1 enable Remote www DENKOVI com read value From 0 up to 99 read value From 0 up to 1023 read value From 0 up to 1023 read value From 0 up to 512 read value From 0 up to 512 read value 0 None 1 Low 2 High 3 Low High 4 Acc read value From 0 PortA 0 up to F PortA 15 read value DAEnetIP3 User Manual Commands for analog input port Port C 0 1 0 0 99 4 F 1 comment Get the value of single PortC analog input line Get Set the refresh time It is from 0 to 9 9 sec Set get the PortC line low threshold Set get the PortC line high threshold Set get the PortC line low hysteresis Set get the PortC line high hysteresis Set get the PortC line mode Set get the pin of PortA that is attached to this analog input example command CV0 answer CVO 1023 command CFO 1 Set PortC 0 refresh time in 1 answer CFO 1 command CF1 Get PortC 1 refresh time answer CF1 1 command CLO 512 Set PortC 0 LT in 512 answer CLO 512 command CL1 Get PortC 1 LT answer CL1 100 command CHO 900 Set PortC 0 HT in 900 answer CHO 900 command CH1 Get PortC 1 HT answer CH1 800 command CO2 10 Set PortC 2 LH in 10 answer CO2 10 command CO3 Get PortC 3 LH answer CO
44. 8 1 1 Remote Server IP Port 192 168 1 100 1005 Working mode Ethernet 10 100 Mbit Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Mode On Off setting and remote Low PortA Pin Pin 1 Remote true Digital Output 1 Port A Pin 3 Mode On Off setting and remote Digital Output 2 Port A Pin 4 Mode On Off setting and remote Digital Output 1 Port A Pin 5 Mode On Off setting and remote DAEnetIP3 3 inputs DAEnetIP3 4 inputs Network Settings Network Settings Eth IP address 192 168 1 102 Eth IP address 192 168 1 103 Eth Mask 255 255 255 0 Eth Mask 255 255 255 0 Eth GW a 192 168 1 1 Eth GW a 192 168 1 1 Remote Server IP Port 192 168 1 100 1006 Remote Server IP Port 192 168 1 100 1007 Working mode Ethernet 10 100 Mbit Working mode Ethernet 10 100 Mbit Analog Input 1 Port C Pin 1 Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Low PortA Pin Pin 2 Remote true Low PortA Pin Pin 3 Remote true DAEnetIP3 5 inputs DAEnetIP3 6 inputs Network Settings Network Settings Eth IP address 192 168 1 104 Eth IP address 192 168 1 105 Eth Mask 255 255 255 0 Eth Mask 255 255 255 0 Eth GW a 192 168 1 1 Eth GW a 192 168 1 1 Remote Server IP Port 192 168 1 100 1008 Remote Server IP Port 192 168 1 100 1009 Working mode Ethernet 10 100 Mbit Working mode Ethe
45. AEnetIP3 controllers over the WAN LAN WLAN only via one IP address with the denkovi protocol The serial address FF is reserved and all DAEnetIP3 controllers accept commands with this address but sends respond with its own address ADU Address 2 bytes Function code 3 bytes Data N bytes i PDU Command ADU Answer Address 2 bytes Function code 3 bytes lt Answer N bytes E AAA AAA AS sl PDU ADU naires E byes erre zoe PDU Error Figure 56 TCP IP socket based application protocol www DENKOVI com 65 DAEnetIP3 User Manual PC A TCP IP socket based L x protocol RS485 network Ce rT Y x Ethernet Internet UART lt gt RS485 UART lt gt RS485 UART lt gt RS485 Convertor Convertor Convertor L A DAEnetiP3 DAEnetIP3 DAEnetIP3 v N S E Router Serial address 01 Serial address 02 Bridge Serial address 00 Figure 57 DAEnetlP3 can work as a bridge between TCP IP network and serial network Example commands referring to Figure 57 e RC4 OFF CRC16 OFF send OOASG gets the whole PortA status of DAEnetIP3 00 receive OOASG 0FO0F send 01ASG FFFF sets the whole PortA in 1 of DAEnetIP3 01 receive 01ASG FFFF send OZASG 0000 gets the whole PortA in 0 of DAEnetIP3 02 receive O2ASG 0000 e RC4 ON pass is admin CRC16 OFF send bytes 09 76 41 78 7B 88 76 D1 gets the whole PortA status o
46. Admin default settings HTTP Port o i OB Receiver e mail firm ver 2 0 0 receiver E mail password firm ver 2 0 0 emailpassword E mail notifications DI firm ver 2 0 0 E mail notifications NTP firm ver 2 0 0 No E mail notifications On Boot firm ver www DENKOVI com 14 E mail notifications Al firm ver 2 0 0 Na SOS No No No O SSEMBL DAEnetIP3 User Manual 2 0 0 E mail notification sent each firm ver 0 minutes 2 0 0 Only for DAEnetIP3 Wx If DAEnetIP3 Ex this parameter is not available Working mode is only Ethernet 10 100 Mbit 5 7 Wi Fi Settings Table 8 Wi Fi default settings Parameter Value P Address Subnet Mask Default Gateway Region 192 168 1 100 255 255 255 0 192 168 1 1 FCC chn 1 11 Network Password admin Security Mode WEP64 Only for DAEnetIP3 Wx If DAEnetIP3 Ex these parameters are not available because there is not Wi Fi interface Parameter Cate IP Address 1921681400 S Subnet Mask 255 255 255 0 Default Gateway 192 168 Region FCC chm IT SSID Network EST E Security Mode CP WEPOA i www DENKOVI com 15 S RTT DAEnetIP3 User Manual 6 Web server 6 1 Overview DAEnewPS Digital Outputs Digital Inputs Analog Inputs Serial Port Welcome to DAEnetIP3 System Clock Standalone with Wi Fi 802 11 b g connection Admin Settings WiFi Settings System Log Out Denkovi Assembly Electronics Ltd Byala Rousse Bulgaria Web Site www denkovi
47. B TTT 124 www DENKOVI com 5 SSEMBL oe DAEnetIP3 User Manual 1 Basic features DAEnetIP3 is multifunctional standalone Ethernet Wireless device for remote management and control with Virtual Serial Port TCP IP socket based protocol HTTP API Web Telnet and serial commands access Many controllers can be connected over LAN WLAN WAN or serial network It can work standalone without PC Several such controllers can work together in distributed WAN WLAN network and inputs of one controller can control outputs of another one It can be used in combination with relay boards and input output boards some of them may be found on http www denkovi com 10 100 Mbit Ethernet interface with Link Led Auto MDIX Wireless Wi Fi 802 11 b g interface supporting WEP64 WEP128 WPA TKIP Personal and WPA2 AES Personal Hot spot is not supported UART interface for RS232 RS485 serial connection with other such controllers UART can be used also for configuration of the parameters Power supply 12VDC Consumption 90 mA 170 mA with Wi Fi interface on 12 VDC 1 x 16 digital outputs 0 3 3V 1 x 8 digital inputs 0 3 3V 1 x 8 analog inputs Referent voltage 2 5 V resolution 10 bits On boot the outputs are set with states before reset Built in RTC Real Time Clock It can be synchronized via NTP manually or automatically each 6 hours Capacitor power backup keeps time for days during power failure Virtual Se
48. C16 for DAEnetIP3 01 is enabled DAEnetIP3 00 receives TCP IP data with serial address 00 Data is sent over the serial line to DAEnetIP3 01 without added CRC16 checksum DAEnetIP3 01 checks the CRC16 checksum and notice that there is CRC16 error So the response that DAEnetIP3 01 performs response over the serial line with error code E3 DAEnetIP3 00 retransmits this error E3 response over the TCP IP network Example 7 CRC16 for DAEnetIP3 00 is enabled DAEnetIP3 00 receives data with serial address 00 from the serial line It checks the CRC16 remove the checksum and resent the data over the TCP IP network The data may be received by remote host application and notification may be indicated DAEnetlP3 00 sends answer back to the serial line Example 8 CRC16 for DAEnetIP3 00 is enabled DAEnetIP3 00 receives data with serial address 02 from the serial line Because the serial address is not 00 but 02 then the data is just passed over the TCP IP network Generally DAEnetIP3 performs checks CRC16 checksum calculations Only if this is enabled by the user setting the CRC16 enable parameter from web Serial Port gt CRC16 Only for the serial line UART A good online tool for CRC16 calculation is http www lammertbies nl comm info crc calculation html www DENKOVI com 73 S RTT DAEnetIP3 User Manual 17 6 2 CRC16 performing Step 1 DAEnetlP3 performs command response error over the serial line Se
49. FCE2 address bit is wrong o 3 DAEnetIP3 00 does not receive any response because there is no such address 05 in the serial network www DENKOVI com 74 S RTT DAEnetIP3 User Manual 17 6 3 CRC16 checking Step 1 DAEnetIP3 receives command with CRC16 over the serial line Ser Addr 2 chars Command PDU N chars 1 char Step 2 DAEnetIP3 checks if the CRC16 checksum is valid F CRC16 Checksum 4 chars CRC16 of Ser Addr 2 chars Command PDU N chars Step 3 case 1 DAEnetlP3 performs response because the CRC16 checksum is valid The data is sent also over the serial line Ser Addr 2 chars Response PDU N chars Step 3 case 2 DAEnetlP3 performs error because the CRC16 checksum is not valid The data is sent also over the serial line Ser Addr 2 chars Error code 2 chars Figure 65 CRC16 checking e Example 1 Correct communication o 1 DAEnetIP3 00 receives data over serial line OOASG 2DE3 o 2 DAEnetIP3 00 resends the command over TCP IP serial network OOASG o B DAEnetIP3 00 checks the CRC16 checksum It is valid o 4 DAEnetIP3 00 sends the response over the serial line OOASG O0000A9FB e Example 2 Bit from function code is wrong o 1 DAEnetIP3 00 receives data over serial line OOBSG 2DE3 a bit from function code is wrong o 2 DAEnetIP3 00 resends the command over TCP IP serial network OOBSG o 38 DAEnetIP3 00 checks the CRC16 checksu
50. MCP9700A temperature Sensor 106 22 7 Connecting HIH 4000 humidity SENSO eee e eee 107 22 8 Connecting SHARP GP2Y0A21YKOF distance sensor sse eee 108 23 Appendix 6 Reset the controller sss 109 23 ec c is S T A O 109 23 2 HardWare A Nae eats eke eek Ae Sa ch cee ie 109 23 3 Resetvia WED a 109 23 4 Reset via UART COMMON uri id ieee 109 23 5 Reset via Telnet Command eee eee 109 23 6 Reset via DAEnetlP3 socket COmmand sees eee 109 24 Appendix 7 Loading the default Settings sees 110 24 1 Hardware loading default settings eee eee 110 24 2 Web loading default Settings eee eee eee 110 24 3 Loading default settings via UART Command cc cee eee 111 24 4 Loading default settings via Telnet command eee 111 24 5 Loading default settings via DAEnetIP3 socket command sese 111 25 Appendix 8 Firmware Upgrade sss sese sese 112 26 Appendix 9 How to create Virtual Serial Port for DAEnetIP3 113 27 Appendix 10 Example commande sese 116 27 1 Commands for Digital Outputs Port AI sss eee eee 116 27 2 Commands for Digital Inputs Port BI esse sees 117 27 3 Commands for Analog Inputs Port C ooooninnccccccconnccconanananancncncncnonnnnnann non nos 119 28 Appendix 11 Mechanical draw sss 120 29 Appendix 12 Ordering Codes 121 29 1 DAENCIPS A ET e erer er e e E AA E ah E ER E 121 29 2 DAE netl P3 WT is a A A a de OS 122 29 3 DABS S Brillo 123 29 As DAENCUPS W
51. NKOVI com 19 S E ELECTRONS DAEnetIP3 User Manual 7 5 On Off setting and schedule according to the time On Off setting and remote 0 Inverting last state before power off Inverting and digital input 0 Inverting and analog input 0 Inverting and schedule 1 Inverting and remote 0 Pulses last enable pulses state before power off Pulses and digital input enabled disabled according to the input Pulses and analog input enabled disabled according to the input Pulses and schedule enabled disabled according to the time Pulses and remote 0 Timer 0 Timer and digital input 0 Timer and analog input 0 Timer and remote 0 Port A modes DAEnetIP3 supports 19 digital output modes 7 5 1 On Off setting DO Level User turns the User turns the output in low level output in high level User turns the User turns the output in high level output in low level Time Digital output level E Output level 0 B Output level 1 Figure 13 On Off setting On boot This is simple setting of the outputs figure 13 The user can set the output in ON logical 1 high level and in OFF logical 0 low level 7 5 2 On Off setting and digital input In this mode figure 14 the output is set according falling rising edge of some digital input level The user can not control manually the outputs in this mode www DENKOVI com 20 SSEMBL RTT DAEnetIP3 User Manual e When DI is in Set output du
52. S RTT DAEnetIP3 User Manual DAEnetIP3 User Manual Date 23 10 2013 Describes DAEnetIP3 firmware version 2 0 0 www DENKOVI com 1 SSEMBL aTait DAEnetIP3 User Manual Gn E GKM Content Basic ST A a Oe ae eae 6 DURE MSU S PUB aa tl li tdo a 7 lt technical PATAMELSES nara 8 ee o A esse caunudesenccecs tacos nabee EE aE EE OEE eS 9 DOUE SUN Sa dG eres ats Raise Meena add netsh ahs Sul de ela Aaa tas 13 5 1 Digital outputs Port Ayes cis eee oe a aces aes es ee ac eek he 13 92 Diga Inputs Port Biosca dal 13 53 Analog Inpuis POr Ej acter Joh d cadets R ade cede ey 13 54A Senal aln cic aati A nace hace ee aide hee a 13 ASS Es o AAA teat rae eon ten Lea Deg uated ous 14 OPIN Maddie caret rece a wus etal catia ald sean eit ies salen Calter tiated 14 SOSA LT 15 MV SD SI Crt A eh ad ae ee ed A an i aad 16 ONIS AS SAA ARO eb nt ewan MOEN Ea Rd 16 A o o acs eae eae cade eas Caer et eed eee eee 17 6 3 ME da 18 Digital outputs port Port A a 19 LAPORTA WED PAYO escri A Ia 19 7 2 Setting the digital OUtOULS crol 19 7 3 Reading the digital outputs state Stahusl sese 19 A ROA Mita SUNG ritchie lesa a San laie E a aia 19 TOS ROA elel a ca date VES et cana cal as Sache eae Oe 20 19 1 ONO Std sana oaa 20 7 5 2 On Off setting and digital Input sese 20 7 5 3 On Off setting and analog Input sese eee eee 21 7 5 4 On Off setting and schedule 22 7 50 On Olf setting and TEMOlE iii id 23 LO INV codec ele 23 7
53. TP API passwor s e mail Receive r s e mail SMTP userna me SMTP passwor d DAEnetIP3 User Manual Get set the module name 2 0 0 version Get Set enabling of NTP auto sync 2 0 0 version Get set HTTP API password 2 0 0 version Set get the IP address of E mail server 2 0 0 version Set get the SMTP server port 2 0 0 version Get set the sender s e mail 2 0 0 version Get set the receiver s e mail 2 0 0 version Get set the SMTP login username 2 0 0 version Get set the SMTP password 2 0 0 version Get Set enabling Al event 2 0 0 version Get Set enabling DI event 2 0 0 version command MNA answer MNA DAEnellP3 command MNA Module1 answer MNA Module1 command MEN answer MEN 1 command MEN 0 answer MEN 0 command MPA answer MPA admin command MPA test answer MPA test command MSS 192 168 0 30 answer MSS 192 168 0 30 command MSS answer MSS 192 168 0 30 command MPS 25 answer MPS 25 command MPS answer MPS 26 command MSE answer MSE test gmail com command MSE test yahoo com MSE test command MSV answer MSV test gmail com command MSV test yahoo com answer MSV test command MSU answer MSU username command MSU username answer MSU usernamet command MSP answer MSP pass command MSP pass1 answer MSP pass1 command MN1 answer MN1 1 command MN1
54. controller can control only one another DAEnetIP3 controller and can be controlled by maximum 5 DAEnetIP3 controllers The user must configure two ports for these sockets The first port is for outgoing connection socket and this is the port of the controlled DAEnetIP3 Remote Port The second port is for incoming connections For example the incoming port is 1000 the other four incoming ports are 1001 1002 1003 1004 and 1005 Actually this is Local Port Range Bellow they are given the parameters used for distributed mode 10 1 Configuring the digital outputs Each digital output has 19 modes Four of these modes allow this output to be controlled by remote input input that belongs to another DAEnetIP3 controller These modes are On Off setting and remote Inverting and remote Pulses and remote Timer and remote lf the output is not configured to work in some of these modes it is not possible to be controlled by remote input of another DAEnetIP3 controller 10 2 Configuring the digital analog inputs Each digital analog input has parameter that describes which is the digital output line that must be controlled by this input This parameter must be set to the desired output line 1 16 of Port A The inputs have also another very important booelan parameter Remote If this parameter is set that s mean this input controls output from another DAEnetIP3 controller If this parameter is not set that s mean this input controls output fro
55. ding The possible ports which must be forwarded are e HTTP port by default it is 80 e User socket port by default it is 1010 e Incoming ports range for distributed mode by default it is 1005 1009 For example if the module is with IP 192 168 1 50 router model is TL WR340G TL WR340GD one possible port forwarding scheme is shown on the image bellow TP LINK Status Basic Settings Quick Setup Network Wireless ID Service Ports IP Address Protocol Status Modify Advanced Settings 1 80 192 168 1 50 TCP Enabled Modify Delete Et 2 1005 192 168 1 50 TCP Enabled Modify Delete Forwarding 3 1006 192 168 1 50 TCP Enabled Modify Delete Port Triggering 4 1007 192 168 1 50 TCP Enabled Modify Delete DMZ 5 1008 192 168 1 50 TCP Enabled Modify Delete UPnP 6 1009 192 168 1 50 TCP Enabled Modify Delete S L 7 1010 192 168 1 50 TCP Enabled Modify Delete Static Routing IP amp MAC Binding Dynamic DNS Add New Enable All Disable All Delete All Maintenance System Tools Previous Next Figure 73 TP Link WR340G TL WR340GD example port forwarding settings for DAEnetIP3 A good link for port forwarding with setting up tutorials for different routers is this one www DENKOVI com 99 S os DAEnetIP3 User Manual 21 Appendix 4 Android application for DAEnetlP3 There is third parity android software for DAEnetIP3 It is marketed by iSwitch LLC It can be downloaded f
56. e analog input value actually the returned result is the sum of all elements divided to 8 the length of the buffer In this way it is retrieved the average value of the analog signal and not the moment which very often may not be correct The time interval between two measured values elements is determined by the user It is called Refresh time The minimum value is 100ms So single reading of the analog input channel may be minimum 0 8 seconds The algorithm for filling the buffer is showed on figure 34 This is actually FIFO First In First Out buffer www DENKOVI com 35 SSEMBL Tarra DAEnetIP3 User Manual The current measured value is All the values are shifted to right with one position 1 stored as N8 3 The oldest value N1 is removed 2 ADC Buffer Figure 34 ADC FIFO buffer 1 Firstly it is performed right sift 2 Secondly the oldest value N1 which came first now is removed 3 Thirdly the new measured ADC value is stored as N8 the newest value This cyclic action is performed with period Refresh Time The formula for calculating the analog input voltage is given below Vinnie Ain n 2 5 1024 where Vin is the voltage of the ADC channel and n is the number of the channel from 0 up to 7 The reference voltage is 2 5V For example if we get ADC value 512 from channel 0 PortC 0 the voltage would be 512 2 5 1024 1 25 Volts gt The ADC value can be read also directly by specia
57. ed and new user will be able to login Also it is recommended when the user leaves the web page firstly to logout www DENKOVI com 17 S RST DAEnetIP3 User Manual 6 3 Menu Module Digital Outouts Digital Inputs Analog Inputs Sei Pot System Clock Admin Settings WiFi Settings System Log Out Ver 2 0 0 Figure 11 Web navigation The navigation is organized with frames because of the limited resources of the controller On figure 11 they are shown the navigation bars There is also information about the network settings RTC date and time and current firmware version www DENKOVI com 18 S RTT DAEnetIP3 User Manual 7 Digital outputs port Port A DAEnetIP3 has 16 bit digital output port with 10 kOhm pull down resistors to GND 7 1 Port A web page Port A 16 channel digital output port Pin Status Control Mode ON OFF Delay Mode Time1 Time2 Description lo 1 19 On Off l 1 7 5 J sec y 00 00 00 00 01 00 DOO fi 1 19 On Off EIH 1 7 5 sec y 00 00 00 7 00 01 00 DO1 b a T On Off l 7 74 7 5 sec y 00 00 00 00 01 00 DO2 B a wl On Off 1 1 5 sec y 00 00 00 7 00 01 00 DO3 4 fo v On Off lH 7 74 5 sec w 00 00 00 00 01 00 DO4 MEN Y On Off 11 21 5 sec y 00 00 00 00 01 00 DOS b Pi Y On Off CHR 21 5 sec v 00 00
58. ed directly to relay board Input analog signal from temperature sensor 0 2 5V The circle direction Figure 45 Ring configuration Table 15 Example 7 settings www DENKOVI com 52 KET DAEnetIP3 1 inputs outputs Network Settings Win IP address 192 168 1 100 Win Mask 255 255 255 0 Win GW 192 168 1 1 Local Port Range 1005 1009 Remote Server IP Port 192 168 1 101 1005 Working mode Wi Fi 802 11 b g Digital Output 1 Port A Pin 1 Mode On Off setting and remote Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Low PortA Pin Pin 1 Remote true Wi Fi Settings WEP SSID Network WEP Key admin DAEnetIP3 4 inputs outputs Network Settings Win IP address 192 168 1 103 Win Mask 255 255 255 0 Win GW 192 168 1 1 Local Port Range 1005 1009 Remote Server IP Port 192 168 1 100 1005 Working mode Wi Fi 802 11 b g Digital Output 1 Port A Pin 1 Mode On Off setting and remote Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Low PortA Pin Pin 1 Remote true Wi Fi Settings WEP SSID Network WEP Key admin Router Settings IP address 192 168 1 1 WEP SSID Network WEP Key admin 10 4 8 DAEnetIP3 User Manual DAEnetIP3 2 inputs outputs Network Settings Win IP address 192 168 1 101 Win Mask 255 255 255 0 Win GW 192 168 1 1 Local Port Range 1005 1009 Remote Server
59. ed over single IP figure 49 Each DAEnetIP3 has serial address from O up to 254 00 FE The address 255 FF is reserved for emergency situations For RS485 network it must be used UART lt gt RS485 converter for example SN75176B PC N TCPAP socket based U V protocol RS485 network Ethernet Internet UART lt gt RS485 UART lt gt RS485 UART lt gt RS485 L Convertor Convertor Convertor x A 4 a V L DAEnetIP3 DAEnetIP3 DAEnetIP3 L L T t Y ss T gt gt Router Serial address 01 Serial address 02 Bridge Serial address 00 Figure 49 RS485 network with many DAEnetIP3 Each DAEnetIP3 can be accessed over TCP IP socket This may be done over WAN LAN WLAN This controller is used to be said TCP IP lt gt serial bridge When TCP IP packet is received then it is checked if it is valid command and if the serial address is the same and if yes then executes the command In all cases the data which has come in the TCP IP socket is retransmitted out to the UART port Then over RS485 usually the data command is propagated to the rest DAEnetIP3 controllers in this serial network It is true the opposite when data is coming in to the UART port it is decoded eventually and resend to the TCP IP socket if there is established TCP IP connection or not Of course UART port may be used not only with UART lt gt RS485 converters but with UART lt gt RS232 MAX232 UART lt gt USB FT232 and
60. es the HT HH 2 limit e In Acc mode the timer is started when the rising analog input level crosses the HT HH 2 limit e In Low High mode the timer is started when the rising analog input level crosses the LT LH 2 limit or the falling analog input level crosses the HT LH 2 limit www DENKOVI com 30 S RTT DAEnetIP3 User Manual level level 1023 Analog input mode Low 1023 Analog input mode Acc Y did d ET dd FE G LEVE E 0 On boot Time On boot Time Start timer Digital output level O Stop timer because time elapsed Analog input level Figure 12 Timer and analog input 7 5 19 Timer and remote In this mode the single pulse timer can be started by input analog or digital from another DAEnetIP3 controller over the network The user can not control manually the outputs in this mode 7 6 ON value This value is available for each digital output and determines the ON time the time when the output is in high level when the output works in some of the pulse modes The ON value is gt 1 and lt 99 7 7 OFF value This value is available for each digital output and determines the OFF time the time when the output is in low level when the output works in some of the pulse modes The OFF value is gt 1 and lt 99 7 8 Delay value This value is available for each digital output and determines the one shot pulse delay time when the output works in some of t
61. eter The time value must be in format HH MM SS Set get the Time2 parameter The time value must be in format HH MM SS Set get the Description parameter Set get the timer delays resolution for this channel 2 0 0 version OFF parameter in 2 answer AFO 10 command AFC Get PortA 12 ON parameter answer AFC 10 10 command AD1 5 Set PortA 1 Delay parameter in 5 answer AD1 5 command ADC Get PortA 12 Delay parameter answer ADC 10 10 command A11 12 00 00 Set PortA 1 Time1 event at 12 o clock answer A11 12 00 00 command A11 Get PortA 1 Time1 parameter answer A11 01 00 30 command A21 12 00 00 Set PortA 1 Time1 event at 12 o clock answer A21 12 00 00 command A21 Get PortA 1 Time2 parameter answer A21 01 00 30 command AC1 DO1 Set PortA 1 description DO1 answer AC1 DOO0 command ACC Get PortA 12 description answer ACC DO12 command AT1 0 Set PortA 1 resolution in seconds answer AT1 0 command ATC Get PortA 12 resolution answer ATC 2 hours 77 RT LE From 0 PortB 0 up to 7 PortB 7 From 0 PortB 0 up to 7 PortB 7 www DENKOVI com read value 0 Simple reading 1 Set output during rising slope 2 Set output during falling slope read value From 0 PortA 0 up to F PortA 15 read value 0 disable 1 enable read value Max 10 symb
62. f DAEnetIP3 00 receive bytes 09 76 41 78 7B 88 79 AC 60 57 08 send bytes 09 77 41 78 7B 88 OF AC 16 57 08 sets the whole PortA in 1 of DAEnetIP3 01 receive bytes 09 77 41 78 7B 88 OF AC 16 57 08 send bytes 09 74 41 78 7B 88 79 DA 60 21 08 gets the whole PortA in O of DAEnetIP3 02 receive bytes 09 74 41 78 7B 88 79 DA 60 21 08 e RC4 OFF CRC16 ON send OOASG gets the whole PortA status of DAEnetIP3 00 www DENKOVI com 66 SSEMBL T RECRON DAEnetIP3 User Manual receive OO0ASG 0FOF959B send 01ASG FFFF sets the whole PortA in 1 of DAEnetIP3 01 receive O1ASG FFFF2DAA send 02ASG 0000 gets the whole PortA in O of DAEnetIP3 02 receive O2ASG 0000C9E2 s RC4 ON pass is admin CRC16 ON send bytes 09 76 41 78 7B 88 76 D1 gets the whole PortA status of DAEnetIP3 00 receive bytes 09 76 41 78 7B 88 79 AC 60 57 OA EF 71 74 BF send bytes 09 77 41 78 7B 88 OF AC 16 57 08 sets the whole PortA in 1 of DAEnetIP3 01 receive bytes 09 77 41 78 7B 88 OF AC 16 57 01 9E 09 77 BF send bytes 09 74 41 78 7B 88 79 DA 60 21 08 gets the whole PortA in O of DAEnetIP3 02 receive bytes 09 74 41 78 7B 88 79 DA 60 21 70 E3 0D 04 BF www DENKOVI com 67 SSEMBL ms DAEnetIP3 User Manual 17 2 Telnet protocol The communication over Telnet is based on the command PDU answer and error codes Here the user can access only one DAEnetlP3 controller only the server which i
63. f the DI level and during falling edge of the DI level e When DI is in Set output during falling edge mode the pulses are started during rising edge of the DI level and stopped during falling edge of the DI level 7 5 13 Pulses and analog input 1023 Analog input mode Low 1023 Analog input mode Acc Analog input mode Low High On boot On boot Digital output level Analog input level gt lt Start pulses X Stop pulses Figure 23 Pulses and analog input In this mode figure 23 when some analog input level crosses the given threshold the pulse generating is started or stopped The user can not control manually the outputs in this mode e In Low mode pulses are started when the rising analog input level crosses the LT LH 2 limit and stopped when the falling analog input level crosses the LT LH 2 limit e In High mode pulses are started when the rising analog input level crosses the HT HH 2 limit and stopped when falling analog input level crosses the HT HH 2 limit e In Acc mode the pulses are started when the rising analog input level crosses the HT HH 2 and stopped when the rising analog input level crosses the LT LH 2 e In Low High pulses are started when the rising falling analog input level crosses the LT LH 2 HT HH 2 The pulses are stopped when the rising falling analog input level crosses the HT HH 2 LT LH 2 www DENKOVI com 27 S RTT DAEnetIP3 U
64. g lt la Ta Tor Save settings Figure 29 Port B web page 8 x digital inputs 8 2 Reading the digital inputs The digital inputs can be read separately only single line or it can be read the whole port at a time The state of the digital input mode can be read anytime and it doesn t matter in what mode works each input channel The controller has simple digital input filter It measures the signal level on the digital input pin and stores it in variable with name diValue This variable will contain O or 1 depending what was the level detected by the controller After about 100 ms the controller measures the input level again and stores the new value in diNewValue If the diValue is different than diNewValue that s mean the input level is not stable and the controller does not accept it But if diValue is the same as diNewValue that s mean the digital input signal is stable and it can be accepted After that diValue diNewValue and after about 100ms the algorithm is repeated In this way DAEnetIP3 has simple digital input filter The controller can handle only digital signals with frequency less than 10Hz 1 0 1s 8 3 Port B modes 8 3 1 Simple reading This mode is simple reading of the digital inputs value There are no reactions based on this input In this mode it is just for monitoring 8 3 2 Set output during rising edge www DENKOVI com 33 SSEMBL aTait DAEnetIP3 User Manual Di leve
65. g chars a z A Z 09 7 and www DENKOVI com 4 SSEMBL cetera DAEnetIP3 User Manual 10 Distributed Box to box mode In some cases it is necessary controlling the digital outputs from digital analog inputs But the sensors connected to the inputs may not be close to the devices controlled by the outputs In such case it is necessary two or more DAEnetIP3 controllers to be connected through the LAN WAN WLAN They should work together and the inputs of one DAEnetIP3 must controls the outputs of another DAEnetlP3 controller In this mode the controllers connected in one distributed network can work together without computer DAEnetIP3 support such function It is called Distributed mode or Box to box mode Bellow in the documentation will be used the notations controlling DAEnetlP3 controller with inputs and controlled DAEnetIP3 controller Controlling DAEnetlP3 means this is controller that will send TCP IP messages based on its inputs changes Controlled DAEnetlP3 is this one that accepts the messages from controlling DAEnetIP3 and it sets its outputs based on the received TCP IP messages From the networking side the controlling DAEnetIP3 is client and the controlled one is server This mode is organized with TCP IP sockets Each DAEnetIP3 controller has one socket for output connection and 5 sockets for input connections The output socket servers for controlling others DAEnetIP3 controllers Each DAEnetIP3
66. he timer modes The Delay value is gt 1 and lt 99 7 9 Mode value This value is available for each digital output and determines if the ON OFF and Delay values are in seconds minutes or hours www DENKOVI com 31 SSEMBL Pe REIROS DAEnetIP3 User Manual 7 10 Time 1 value This value is available for each digital output and determines the Time 1 moment when the output works in some of the schedule modes The Time 1 value is with format hh mm ss 7 11 Time 2 value This value is available for each digital output and determines the Time 2 moment when the output works in some of the schedule modes The Time 2 value is with format hh mm ss 7 12 Description Description text for each output It can string with the following chars a z A Z 09 7 and 7 www DENKOVI com 32 S STT DAEnetIP3 User Manual 8 Digital Inputs Port Port B Port B is 8 bit digital inputs port Each channel has pull up resistor to 3 3V 8 1 Port B web page Port B 8 channel digital input port Pin Status Mode PorfAPin Remote Description 0 O Set output during rising edge Pin0 Y DIO 1 0 Simple reading Pin14 Ton Pao Set output during falling edge Pin9 DI2 3 0 Simple reading Pin3 a os 4 0 Simple reading Pin4 a os 5 O Simple reading Y Pin5 DI5 6 0 Simple reading Pini Die 7 0 Simple readin
67. html gt lt body gt CV7 1002 lt body gt lt html gt www DENKOVI com 119 S RTT DAEnetIP3 User Manual 28 Appendix 11 Mechanical draw 44 4 A ee 9 38 7 38 7 38 2 X KZ D 0000 O AE z aoodooooo on o o o holes x Z L 00 SY de gt joo X lt i gt 00 00 0 00000 On 2 gt 090 10 0 100000 00H 00 0 0 10 0010 4 oo slate 0010 oo oo oo ololo oo oo oo ojojo o oo alelo o0l a Le 99 loo oo z S 40 6 pa Ph ages eel solo i ES oo o00 0 3 eo loo 21212 90 lo lo 29 ooo Blalal 00 lo 00 00000 090 O 2 BMolV 000 00000 000 o z oo oro 9 ko o Z o O 2 leds x 3 mm S ole ome Mead o o o og o2 O o i o O LT y 2 oro A aa o o T a o 36 5 All jumpers are with 2 54 step 40 6 Figure 88 DAEnetIP3 PCB dimensions www DENKOVI com 120 S Te DAEnetIP3 User Manual 29 Appendix 12 Ordering codes 29 1 DAEnetlP3 ET This is DAEnetIP3 controller without Wi Fi interface The UART port SYSTEM Port and leds are soldered on the top side Figure 89 L VLYOd PORTA_2 1 o N WALSAS STATUS LED POWER LED TOP SIDE BOTTOM SIDE Figure 89 DAEnetIP3 ET www DENKOVI com 121 S RTT DAEnetIP3 User Manual 29 2 DAEnetlP3 WT This is DAEnetIP3 controller with Wi Fi interface The UART port SYSTEM Port and leds are soldered on the top side Figure 90 PORTA_2 1 p G A d El
68. ings WEP SSID Network WEP SSID Network WEP Key admin WEP Key admin DAEnetIP3 3 inputs Router Settings Network Settings IP address 192 168 1 1 Win IP address 192 168 1 22 WEP SSID Network Win Mask 255 255 255 0 WEP Key admin Win GW 192 168 1 1 Eth IP address 192 168 1 11 Eth Mask 255 255 255 0 Eth GW 192 168 1 1 Remote Server IP Port 192 168 1 10 1006 Working mode Wi Fi 802 11 b g Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Low PortA Pin Pin 2 Remote true Wi Fi Settings WEP SSID Network WEP Key admin www DENKOVI com 51 S GST DAEnetIP3 User Manual 10 4 7 Example 7 Ring configuration over WLAN This example figure 45 demonstrates how a simple ring configuration with 4 DAEnetIP3 modules can be developed Each DAEnetIP3 control the next and it is controlled by the previous one For example DAEnetIP3 1 control DAEnetlP3 2 and it is controlled by DAEnetIP3 4 Each module works as server client at the same time There is no limit of adding modules to this network because each module has only one input socket reserved DAEnetIP3 1 7 a DAEnetIP3 2 inputs outputs inputs outputs Temperature sensor E sensor Relay Boa d DAEnetIP3 3 inputs outputs DAEnetIP3 4 inputs outputs 0 C Temperature Temperature sensor sensor Relay Board LEGEND TTL level OV or 3 3V May be appli
69. l This rising edge will generate event Time Figure 30 Set output during rising slope mode In this mode figure 30 DAEnetlP3 controller generates event if it is detected rising edge of the digital input The type of the event depends on the mode of the attached digital output to this input 8 3 3 Set output during falling edge In this mode figure 31 DAEnetlP3 controller generates event if it is detected falling edge of the digital input The type of the event depends on the mode of the attached digital output to this input DI level This falling edge will generate event Time Figure 31 Set output during falling slope mode 8 3 4 Port A pin value This is abstract variable that is available for each digital input It contains the number of some of the digital output lines It determines which is the attached output line to this input This means which output will react when this input detects falling rising edge of the input signal 8 3 5 Remote value This boolean value accept only true false is available for each digital inputs and determines if the digital output is of the current DAEnetlP3 controller or it is of another DAEnetIP3 controller in the network If the value is true or 1 then the input controls another DAEnetIP3 s digital output otherwise if false or 0 it controls the current DAEnetIP3 digital output line 8 3 6 Description Description text for each input It ca
70. l command in measurement units for example in C F V m depending on the used sensor This is also so called analog inputs linearization This is usually used when there is connected sensor to the analog input This is also so called software calibration and it can be done for each analog input separately The formula is f Max n Mim ADC _ value n Min n 1024 where ADC_value n is the value in measured units temperature voltage hummidity Min n is the is the minimum value Max n is the maximum value and Ain n is the ADC channel value and n is the number of the channel from 0 up to 7 n y Ain n Label For example if we connect LM35DZ temperature sensor to the PortC 0 to get the value directly in C LM35DZ can measure from 0 to 100 C and gives 10mv C and at 0 C it gives OV so Min 0 O Max 0 250 this is the value in C which would appear if the voltage is 2 5V the value at 1024 Label C there is limitation for the symbols So if we get reading 256 that s mean that the value returned by this special command will be 62 5 C 9 3 Refresh time This is the period for reading refreshing the analog inputs The minimum value is 1 0 1s 100ms The maximum is 99 9 9ms 9900ms The default value is 1 9 4 Low Threshold LT This is one of the thresholds limits that is used for events generating The value is between 1 and 1023 www DENKOVI com 36 SSEMBL Rar DAEnetIP3 User Ma
71. lling DAEnetIP3 has different Remote Port parameter 1005 1006 1007 1008 1009 and they are in the local port range of the controlled DAEnetIP3 Each of the five controlling DAEnetIP3 2 6 have one analog input attached to 5 totally digital outputs of the controlled DAEnetIP3 1 In this mode it is possible to measure 5 different temperatures in 5 points and set relays of a single relay board Relay Board DAEnetIP3 1 outputs DAEnetIP3 6 inputs DAEnetIP3 2 inputs UTP cable oo ses o 3 gt i RE Temperature a Temperature sensor sensor Eie DAEnetIP3 5 DAEnetIP3 3 ee UTP cable Ne inputs inputs a 1 DAEnetIP3 4 inputs l Temperature C sensor Temperature i sensor C LEGEND Temperature LLL TTL level OV or 3 3V May be sensor applied directly to relay board Input analog signal from temperature sensor 0 2 5V Figure 42 Configuration 5 to 1 over LAN Table 12 Example 4 settings www DENKOVI com 46 KEI DAEnetIP3 1 outputs Network Settings Eth IP address 192 168 1 100 Eth Mask 255 255 255 0 Eth GW 192 168 1 1 Local Port Range 1005 1009 Digital Output 1 Port A Pin 1 Mode On Off setting and remote Digital Output 2 Port A Pin 2 DAEnetIP3 User Manual DAEnetIP3 2 inputs Network Settings Eth IP address 192 168 1 101 Eth Mask 255 255 255 0 Eth GW a 192 16
72. m It is not valid o 4 DAEnetIP3 00 sends the error over the serial line OOE3AE7D e Example 3 Bit from address is wrong o 1 DAEnetIP3 00 receives data over serial line O56ASG 2DE3 a bit from function code is wrong o 2 DAEnetIP3 00 resends the command over TCP IP serial network O5ASG o 8 DAEnetIP3 00 does not perform response or error over the serial line because the address is not 00 but 05 www DENKOVI com 75 SSEMBL A DAEnetIP3 User Manual 17 7 Error codes The possible error codes are e E1 invalid function code e E2 invalid data e E3 invalid checksum communication error for the serial line Means that CRC16 checksum is not valid This error does not apply to Telnet and HTTP API 17 8 Protocol data units PDU description 17 8 1 Function codes for digital output port Port A function function _ answer comment example bytes 1 2 byte 3 From 0 low level Set get single command ASO 1 PortA 0 in 1 PortA 0 i high level output line answer AS0 1 up to F read value state of pot A command ASF read PortA 15 PortA 15 answer ASF 0 From 0 0 On Off setting 3 Set get PortA command AMO 1 Set PortA 0 PortA 0 1 On Off setting 5 6 7 line mode in mode On Off setting and DI up to F amp DI 9 A B answer AMO 0 PortA 15 2 On Off setting DEF command AMA 7 Get amp Al A PortA 10 mode 3 On Off setting ans
73. m the current DAEnetIP3 controller Note that more than one digital analog inputs may control same digital output line The user must configure these settings properly to avoid errors www DENKOVI com 41 SSEMBL ERa DAEnetIP3 User Manual 10 3 Configuring the network parameters 10 3 1 Ethernet Wi Fi IP address MASK and Gateway The controllers desired to work as distributed system must be in same network so the IP address and MASK must be set with appropriate values Note that the controller may support two kind of interfaces Ethernet and optional Wi Fi 10 3 2 Remote server IP This is the IP address of the DAEnetlP3 controller which digital outputs must be controlled by the current DAEnetIP3 controller 10 3 3 Local Port Range These are the five ports determined to accept incoming connections from DAEnetIP3 controller with digital analog inputs 10 3 4 Remote server Port This is the network port of the remote server This port must be in the Local Port Range of the remote DAEnetIP3 controller remote server 10 3 5 Working mode This parameter determines if the outgoing connection this is valid for DAEnetlP3 controller with inputs will be established over Ethernet interface or Wi Fi interface Because the controller has two network settings groups one for Ethernet and one for Wireless the settings that will be valid for the distributed mode are determined by the working mode Ethernet or Wi Fi interface
74. me to prepare and send email This sometimes can be several seconds If there is another event request for E mail sending during this time it won t be sent There is not queue of events www DENKOVI com 62 S Los DAEnetIP3 User Manual 16 Wi Fi 802 11 interface DAEnetIP3 has WiFi interface optionally The controller can work as a client only it can not create Hot Spot but it can be only associated to Wi Fi network On figure 54 it is shown Wi Fi settings page Note that to take effect changing the settings the DAEnetIP3 controller must be rebooted WiFi Settings Win IP Address 192 168 1 12 Win Network Mask 255 255 255 0 Win Default Gateway 192 168 1 1 Region FCC chn 1 11 N Security Mode WPA TKIP Personal SSID Network_A Password ASCII Singal Strength 173 256 Changes will take effect after restart Figure 54 Wi Fi settings e Win IP address The IP address of the module This address is for the wireless interface e Win Network Mask The mask of the module This mask is for the wireless interface e Win Default Gateway The default gateway of the module This gateway is for the wireless interface e Region The region that is located the DAEnetlP3 controller o FCC chn 1 11 FCC domain US Canada Taiwan Allowed channels 1 11 o EU chn 1 13 European Union Allowed channels 1 13 o JAPAN chn 1 14 Japan Allowed channels 1 14 o Other chn 1 14
75. n string with the following chars a z A Z 0 9 and www DENKOVI com 34 S RTT DAEnetIP3 User Manual 9 Analog Inputs Port Port C Port C is 8 channel analog input port 8 x ADC The reference voltage is 2 5VDC and each channel is with 10 bit resolution 1024 9 1 Port C Web page Port C 8 channel ADC port Pin Vaue Refresh LT HT LH HH Min Max Label Mode PortAPin Remote Description 0 po 1 50 700 5 5 00 10241 Volts Low 0 Sensort 1 Ped 1 200 700 5 5 0 0 10241 C Low i Temp1 2 od 1 200 700 5 5 loo 10241 F Low v 2 Temp2 3 E 1 200 700 5 5 0 0 1024 1 cm Low 113 v distance 4 1 200 70 5 5 00 10241 Unis Low 4 Am 5 pee 1 200 700 5 5 0 0 10241 m Low lB distance2 6 Be 1 200 700 5 5 0 0 1024 1 gr Low Y IB y E weight 7 o 1 200 700 5 5 0 0 10241 RH Low 7 y hummidity Save settings Figure 32 Port C web page 8 x analog inputs 9 2 Reading the analog inputs Each of the eight analog inputs can be read by any time The returned value is a number between 1 and 1023 Each analog input has software filter The filter is shown on figure 33 Refresh time Analog Input level N1 N2 N7 N8 8 Figure 33 Structure of ADC filter The filter is actually buffer array with 8 elements When the user or firmware reads som
76. network We accepted the IP of the Wi Fi network is 192 168 1 X So the Win IP of the DAEnetlP3 Wi Fi interface may be 192 168 1 2 Win Mask 255 255 255 0 and Win gateway is 192 168 1 1 The IP of your router Set the SSID and WEP password Click Save button 10 Unplug the power supply 11 Remove the UTP cable from the PC and controller 12 Supply again the DAEnetlP3 with 12VDC 13 The orange Wi Fi status led of DAEnetIP3 must blink initially and then must be on constantly This means the controller is connected to the Wireless network If the led is off then DAEnetIP3 is not connected to the Wireless network because some settings are not correct If so you need to check out the settings again Also you may restart your router just in case 14 1f the DAEnetlP3 is connected properly open browser and type 192 168 1 2 15 Now you may access the DAEnetIP3 controller over Wi Fi WARNING e Do not touch DAEnetlP3 while it is powered up this may damage the DAEnetIP3 e Do not reverse the polarity of the power supply this will damage the DAEnetIP3 www DENKOVI com 98 S GST DAEnetIP3 User Manual 20 Appendix 3 Port forwarding Since the device does not support DHCP and DNS the only way to access it from outside network is to make port forwarding There is lot of information what is and how to make it This document is not object of that but it has aim to demonstrate mostly which ports are used for port forwar
77. ng analog input level crosses the LT LH 2 HT HH 2 The output level is set low when the rising falling analog input level crosses the HT HH 2 LT LH 2 www DENKOVI com 21 level 1023 DAEnetIP3 User Manual Analog input mode Low 1023 Analog input mode Acc 0 On boot Time On boot E Output level 0 R Output level 1 Figure 15 On Off setting and analog input Time Digital output level Analog input level 7 5 4 On Off setting and schedule Level On boot Time Digital output level Time event E Output level 0 B Output level 1 Figure 16 On Off setting and schedule This mode figure 16 is designed for setting digital outputs based on time events There are two time events Time 1 and Time 2 When Time 1 appears the output will be turned in high level and when Time 2 appears it will be in low level There is no matter is Time 1 is before Time 2 or the Time 2 is before Time 1 Time 1 is www DENKOVI com 22 SSEMBL BTT DAEnetIP3 User Manual determined by the field Time1 and Time 2 by Time from the configuration web page The user can not control manually the outputs in this mode 7 5 5 On Off setting and remote In this mode the output can be controlled by input digital or analog from another DAEnetIP3 controller over the network The user can not control manually the outputs in this mode 7 5 6 Inverting In this mode the user is able t
78. nication This port is called User Socket Port The communication message format ADU application data units over TCP IP socket is shown on figure 56 It is added serial address to the command answer and error messages The idea is that in this way the user can access over TCP IP protocol not only the server DAEnetIP3 module but all the modules connected over the serial network to this DAEnetIP3 controller These controllers are distinguished by the Address field 2 bytes which is actually the serial address The idea is shown on figure 57 The user connects to DAEnetIP3 with serial address 00 but he can communicate with DAEnetIP3 serial address 01 and DAEnetIP3 serial address 02 DAEnetlP3 serial address 00 is actually bridge between TCP IP network and serial network When data comes in to DAEnetIP3 serial address 00 to User Socket Port it checks if the address is 00 If yes it decodes the command and executes it or returns error code In both case it resends the TCP IP packet data to the serial network If the address in this example is 01 or 02 then DAEnetIP3 serial address 00 just pass the TCP IP packet data through the serial network and DAEnetIP3 serial address 01 or 02 decodes the command executes it and returns answer or error again over the serial network After that DAEnetIP3 serial address 00 takes this serial data and sends it over the TCP IP network In this way the user is able to access many serially connected D
79. nual 9 5 High Threshold HT This is the second threshold limit that is used for events generating The value is between 1 and 1023 9 6 Low Hysteresis LH This value is the hysteresis for the Low Threshold The value is between 1 and 512 9 7 High Hysteresis HH This value is the hysteresis for the High Threshold The value is between 1 and 512 9 8 Rules e HT HH gt LT LH e HT HH lt 1023 e LT LH gt 0 9 9 Minimum value This value is equal of ADC value 0 divisions 9 10 Maximum value This value is equal of ADC value 1024 divisions 9 11 Label This is the label in which is measured the analog input It may be V C RH 9 12 Analog Input Mode Generally there are 5 modes for the analog inputs 9 12 1 Simple reading This mode is simple reading of the analog input value There are no reactions events based on this input It is used only to retrieve the values from the analog inputs monitoring www DENKOVI com 37 S RTT DAEnetIP3 User Manual 9 12 2 Low In this mode figure 35 the threshold for events is the Low Threshold ADC Level Depending on the Generate reaction output mode it may stop event event reaction Figure 35 ADC mode Low 9 12 3 High In this mode figure 36 the threshold for events is the High Threshold ADC Level Depending on the Generate reaction output mode it may event stop event reaction Figure 36 ADC mode High www DENKOVI com
80. o invert the digital outputs If the previous output state was 0 after inverting it will be 1 and vices versa Level User inverts the output User inverts the output On boot Time Y inverting Digital output level Figure 17 Inverting 7 5 7 Inverting and digital input In this mode figure 18 the digital outputs are inverted by falling rising slope of some digital input The user can not control invert manually the output state in this mode e When DI is in Set output during rising slope mode the DO state is inverted during rising slope of the DI level e When DI is in Set output during falling slope mode the DO state is inverted during falling slope of the DI level www DENKOVI com 23 S RTT DAEnetIP3 User Manual Level Level Digital input mode Set output Digital input mode Set output durng rising edge durng falling edge 0 On boot Time On boot Time Digital output level Analog input level Y inverting Figure 18 Inverting and digital input 7 5 8 Inverting and analog input Level Level 1023 Analog input mode Low 1023 Analog input mode Acc On boot Time On boot Time Digital output level Analog input level Y inverting Figure 7 Inverting and analog input In this mode figure 19 the digital output state is inverted when some analog input level crosses the given threshold In the figure it is shown the graphics when the initial output
81. ols a E z 1 A Z O Q ere n read value DAEnetIP3 User Manual Commands for digital input port Port B Get the value of single PortB digital input line Get the whole PortB value The MSB is PortB 7 The LSB is PortB 0 Set get the PortB line mode Set get the pin of PortA that is attached to this digital input Set get the Remote control value of this digital input Set get the Description parameter example command BV0 answer BVO 1 command BVG answer BVO FF all inputs are in 1 command BMO 1 Set PortB 0 mode in Set output during rising slope answer BMO0O 1 command BM1 Get PortB 1 mode answer BM1 0 PortB 1 mode is Simple reading command BPO F attaches DO15 PortA 15 to DIO PortB 0 answer BPO F command BP0 Get the attached PortA pin to this input answer BP0 A command BRO 1 Enable remote control for PortB 0 answer BRO 1 command BR1 Get remote value of PortB 1 answer BR1 0 command BC1 DI1 Set PortB 1 Description DI1 answer BC1 DI1 command BC7 7 Get PortB 7 description answer BC7 DI7 78 C SSEMBL 17 8 3 function function _ bytes 1 2 byte 3 PortC 7 From 0 PortC 0 up to 7 PortC 7 From 0 PortC 0 up to 7 PortC 7 From 0 PortC 0 up to 7 PortC 7 From 0 PortC 0 up to 7 PortC 7 From 0 PortC 0 up to
82. ommand MPN answer MPN 37 command MPH 80 answer MPH 80 command MPH answer MPH 80 command MPH 1005 Set range 1005 1009 answer MPH 1005 command MPH answer MPH 1005 command MPU 1010 answer MPU 1010 command MPU answer MPU 1010 command MIP 192 168 0 5 answer MIP 192 168 0 5 command MIP answer MIP 192 168 0 10 MI R From Set get Eth IP command MIR 192 168 0 1 000 000 000 000 protection answer MIR 192 168 0 1 up to address command MIR 255 255 255 255 read value answer MIR 192 168 0 2 www DENKOVI com 83 rss www DENKOVI com From 000 000 000 000 up to 255 255 255 255 read value From 000 000 000 000 up to 255 255 255 255 read value From 000 000 000 000 up to 255 255 255 255 read value read value 0 1 read value 0 1 read value 0 Ethernet 10 10 Mbit 1 Wi Fi 802 11 read value From 000 000 000 000 up to 255 255 255 255 read value Firmwar 5 char string that represents the e version version DAEnetIP3 User Manual Set get the IP address of the remote server Set get the IP address of the NTP server Set get the Eth network mask Get the Eth MAC address Get Set enabling of Telnet Get Set enabling of RC4 encryption Get Set working mode Set get the Eth gateway address Get the firmware version
83. or HTTP API Get the whole PortB PortB 0 PortB 3 is low and PortB 4 PortB 7 is high Send BVG Receive lt IDOCTYPE html gt lt html gt lt body gt BVG 0F lt body gt lt html gt Get PortB 7 state The input level is high Send BV7 Receive lt IDOCTYPE html gt lt html gt lt body gt BV7 1 lt body gt lt html gt www DENKOVI com 118 SSEMBL Tarra DAEnetIP3 User Manual 27 3 Commands for Analog Inputs Port C Example commands for TCP IP VSP RC4 encryption is turned off Serial address of the device is 00 Get PortC 0 state The input level is 512 From 1023 max Send 00CV0 Receive OOCV0 512 Get PortC 7 state The input level is 1002 From 1023 max Send 0OCV7 Receive 0OCV7 1002 Example commands for Telnet Get PortC 0 state The input level is 512 From 1023 max Send CV0 Receive CV0 512 Example commands for UART Serial address of the device is 00 Get PortC 0 state The input level is 512 From 1023 max CRC16 is OFF Send 00CV0 Receive OOCV0 512 Get PortC 0 state The input level is 512 From 1023 max CRC16 is ON Send 0OOCVO 3B2A Receive 00CVO 512F4EA Example commands for HTTP API Get PortC 0 state The input level is 512 From 1023 max Send CV0 Receive lt IDOCTYPE html gt lt html gt lt body gt CV0 512 lt body gt lt html gt Get PortC 7 state The input level is 1002 From 1023 max Send CV7 Receive lt IDOCTYPE html gt lt
84. or serial DOT 82 17 8 6 Commands for admin SCuiINGS 2 sese 83 17 8 7 Commands for Wi Fi settings optional sese eee 87 17 8 8 System COMMANOS estat eee eee 89 18 Appendix 1 Connectors and LED iNdicators ccccccccccccccccccccnnnncnonnnnnnnnnnnnnnnnn 90 18 1 DAENetIP3I POMS VIGW lt 5 oran 90 18 2 DAEnetlP3 ports descnpiioOn e sese 91 18 3 DAEnetIP3 power jack and RJ 45 pO sss 93 18 4 DAEnetlP3 Led Indicators 93 18 5 DAEnetIP3 Wi Fi led indicator and external antenna connector 95 19 Appendix 2 Connecting the controller to LAN WLAN WAN cceeeeeeeeees 96 19 1 UTP cable connection with PC for first me eee 96 19 2 UTP cable connection with TOM isis nara 96 19 3 Wi Fi connection with PC for first Hme rnnr reene 97 19 4 Wi Fi connection with outer eee 98 20 Appendix 3 Port forwarding ccccccceeeeeeeeceeeeeeeeeeeeeeeeeeeeeseseesseseseeeseeeeeeeeeees 99 21 Appendix 4 Android application for DAEnetlP3 cee eeeeeeeeeeceeeeeeeeeeeeeeeeees 100 22 eTel lean PORNS anna ida 101 221 Digital Outputs POA aries ex emilee oa ie eet onde 101 22 2 Digital inputs ONES cased o ia Soca dass mania buses 102 22 3 Analog inputs PORO Las coil 103 www DENKOVI com 4 SSEMBL Po RETROE ET DAEnetIP3 User Manual 22 4 Connecting LM335Z temperature Sengar eee eee 104 22 5 Connecting LM35DZ temperature SENSO eee eee 105 22 6 Connecting
85. other UART converters www DENKOVI com 57 S STT DAEnetIP3 User Manual 12 3 12 4 UART Serial Port web server page Serial Port Serial address hex oi Baud rate 9600 Party NONE Data bits 8 Data Bits v Control ine RTS Low during send crc16 No lt Save Settings Figure 50 Setup page for UART Serial Port Configuration Bellow are described the UART Serial address lt may be from O0hex to FEhex Odec 254dec This is the serial address of the controller in the serial network The controller will respond on command that is only with its serial address There shouldn t be duplicate serial addresses The serial address FF is reserved and it can not be assigned to any DAEnetIP3 controller Baud rate lt may be 300 600 1200 2400 4800 9600 14400 19200 38400 56000 57600 115200 128000 or 256000 Parity May be None Even Mark Odd Space Data bits 7 or 8 Control line This is if the line is low during send or high during send Duplex mode Half duplex suitable for RS485 or Full duplex CRC16 If this parameter is enabled then DAEnetIP3 UART port will sends checks during receiving CRC16 checksum of the data appended to the end of the data and before the delimiter If this parameter is not enabled then DAEnetIP3 will not sends checks during receiving CRC16 checksum www DENKOVI com 58 S oo DAEnetIP3 User Manual 13 UART lt gt
86. r Addr 2 chars Command response error PDU N chars 1 char Step 2 DAEnetlP3 makes CRC16 checksum CRC16 of Ser Addr 2 chars Command response error PDU N chars Step 3 DAEnetIP3 inserts the CRC16 checksum before The packet is ready for sending over serial line Ser Addr 2 chars Command response error PDU N chars 1 char Figure 64 CRC16 performing e Example 1 Respond CRC16 calculation 1 DAEnetIP3 00 receives data over serial OOASG 2DE3 o 2 DAEnetIP3 00 resends data over TCP IP OOASG 7 o 8 DAEnetIP3 00 sends data over serial OOASG O000A9FB o 4 DAEnetIP3 00 sends data over TCP IP OOASG 0000 O e Example 2 Command CRC16 calculation o 1 DAEnetIP3 00 receives data over TCP IP 01ASG o 2 DAEnetIP3 00 resends data over serial 01ASG FCE2 o 8 DAEnetIP3 00 receives data from DAEnetIP3 01 01ASG FFOOABOD o 4 DAEnetIP3 00 resends data over TCP IP 01ASG FFO00 e Example 3 Error CRC16 calculation function code is wrong o 1 DAEnetIP3 00 receives data over TCP IP 01ASG o 2 DAEnetIP3 00 resends data over serial 01BSG FCE2 a bit is wrong o 3 DAEnetIP3 00 receives data from DAEnetIP3 01 01E36E2C o 4 DAEnetIP3 00 resends data over TCP IP 01E3 e Example 4 Error CRC16 calculation address is wrong o 1 DAEnetIP3 00 receives data over TCP IP 01ASG o 2 DAEnetIP3 00 resends data over serial O5ASG
87. r the sensor can be downloaded from here Calibration settings for PortC 0 to show relative humidity in RH are linearization Min value 34 82 Max value 157 00 Label RH www DENKOVI com 107 S RTT DAEnetIP3 User Manual 22 8 Connecting SHARP GP2Y0A21YKOF distance sensor 5VDC from external source PortC ADC SHARP GP2Y0A21YKOF distance sensor E E O 3 N o gt ez U o Reference voltage source 2 5V Figure 82 Connecting GP2Y0A21YKOF to PortC 0 The documentation for the sensor can be downloaded from here The sensor is not linear and it is not possible to show ADC values directly in cm but still DAEnetIP3 can be adjusted to show values in volts Settings for PortC 0 to show sensor output in volts are linearization Min value 0 00 Max value 4 55 Label V www DENKOVI com 108 SSEMBL aRar DAEnetIP3 User Manual 23 Appendix 6 Reset the controller 23 1 Hardware 1 1 Unplug the power supply carefully 2 Wait 10 seconds 3 Plug the power supply 23 2 Hardware 2 1 Connect Pin 1 and Pin 2 of system port It is recommended connecting these pins with switch or button avoiding the possibility of touching DAEnetIP3 tracks while working 2 Disconnect the Pin 1 and Pin 2 of system port 23 3 Reset via Web Web browser gt System gt Reset 23 4 Reset via UART command Send to UART port AAYRT 1 Where the AA is the serial address YRT 1 is the
88. rate as simple alarm When some input change its state or cross some threshold for analog inputs particular output changes its state also DAEnetIP3 oo i C J RH Humidity sensor 0 3 3V Switch Figure 3 Alarm with DAEnetIP3 DAEnetIP3 gives possibilities to built up to 8 thermostats using all the 8 analog inputs and 8 of the digital outputs The flexibility of DAEnetIP3 allows to attach each analog input to each digital output The combination of different I O modes makes several variations for the thermostat Each thermostat can be tracked configured easily via web browser The whole process of course may be tracked adjusted also via Telnet TCP IP socket and UART Temperature sensor U LU PC DAEnetIP3 q Relay Board A A TTL Level N a N 1 1 0 0 N U 1 0 0 1 1 1 1 N 5 N 0 e gt gt Ethernet Internet Router Electrical device Web Telnet TCP IP socket based protocol Figure 4 Web based thermostat based on DAEnetIP3 temperature sensor and relay board www DENKOVI com 10 S ST DAEnetIP3 User Manual DAEnetIP3 allows to set the 16 digital outputs according some event The mode of each digital input determines how it will react when this event appears The event may be some time slope of digital input or crossing some threshold for analog input DAEnetlP3 Set Time Event ae Pl gt E SS nA A 4 Digital Input Event a
89. rial Port it may be accessed with Serial RS232 commands over TCP IP network Integrated WEB server with authorization and features like Ajax parameters reading Telnet commands HTTP API commands TCP IP ASCII protocol with optional RC4 encryption All the network ports can be defined by the user Supports ICMP ping 19 modes for I O lines such as inverting timer pulses setting output via input and switch ON OFF according particular time scheduling Any input may be referred to control any output of this or another controller in the TCP IP network Linearization for the analog inputs Box to Box distributed mode SMTP with authentication SSL is not supported E mail notifications for various events IP address protection Power and status led Size 108mm x 45mm x 24mm Working temperature range 20 to 70 C www DENKOVI com 6 S GST DAEnetIP3 User Manual 2 DAEnetlP3 PCB Digital Outputs Pins 8 15 12 VDC and GND Wi Fi 802 11 b g interface PEX antenna connector pron nae Pins 0 7 Inputs middle pin is 12VDC www DENKOVI com 7 SSEMBL aRar DAEnetIP3 User Manual 3 Technical parameters Table 1 Technical parameters Digital outputs count 8 10bit ADC Vref 2 5V with 100 kOhm pull down resistor to GND Digitalimputscount_____ _______8__________ Power On AAA AAA Telnetforconfiguration____ ______Yes Cd Web server for configuration access Config
90. ributed Box To Box mode DAEnetIP3 is device which can be integrated into another device embedding For example it can be used in combination with different add on peripheral modules with relays analog inputs digital inputs The combination for example shown on figure 8 is DAE PB RO12 DI8 Al8 DAEnetIP3 that may be found on http www denkovi com 12 Relays 0 12V o e Digital Inputs 0 12V Analog Inputs 0 10V DAEnetIP3 Figure 8 I O module and DAEnetIP3 www DENKOVI com 12 SSEMBL e REOR DAEnetIP3 User Manual 5 Default Settings These are the default factory settings of DAEnetlP3 When you buy the controller you will receive it with these settings 5 1 Digital outputs Port A Table 2 Port A default settings DOx x 0 15 Mode firm ver 2 0 0 5 2 Digital Inputs Port B Table 3 Port B default settings PortA pin 5 3 Analog Inputs Port C Table 4 Port C default settings Refresh Refresh LT Low Threshold HT High Threshold LH Low Hysteresis HH High Hysteresis Mode Min firm ver 2 0 0 000 E 5 4 Serial Port Table 5 Serial Port default settings www DENKOVI com 13 SSEMBL 32T DAEnetIP3 User Manual Parameter Serial address Baud rate Stop bits Nane Parit None Data bits 8 o y Duplex mode Control line CRC16 5 5 System clock Table 6 System clock default settings Offset hours 2 5 6 Admin Table 7
91. ring rising edge mode the DO is set in high level during rising edge of the DI level DO is set in low level during falling edge of the DI level e When DI is in Set output during falling edge mode the DO is set in low level during rising edge of the DI level DO is set in high level during falling edge of the DI level level level Digital input mode Set output Digital input mode Set output durng rising edge durng falling edge 0 On boot Time On boot Time Output level 0 R Output level 1 Figure 14 On Off setting and digital input Digital output level Digital input level 7 5 3 On Off setting and analog input On figure 15 is shown the dependence between digital output On Off setting and analog input the four modes The user can not control manually the outputs in this mode e n Low mode the output level is set high when the rising analog input level crosses the LT LH 2 limit and set low when the falling analog input level crosses the LT LH 2 limit e n High mode the output level is set low when the rising analog input level crosses the HT HH 2 limit and set high when falling analog input level crosses the HT HH 2 limit e n Acc mode the output level is set high when the rising analog input level crosses the HT HH 2 and set low when the rising analog input level crosses the LT LH 2 e In Low High mode the output level is set high when the rising falli
92. rnet 10 100 Mbit Analog Input 1 Port C Pin 1 Analog Input 1 Port C Pin 1 Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Refresh 1 LT 100 HT 150 LH 10 HH 10 Mode Low PortA Pin Pin 4 Remote true Low PortA Pin Pin 5 Remote true Router Settings IP address 192 168 1 1 www DENKOVI com 47 S GST DAEnetIP3 User Manual 10 4 5 Example 5 Configuration 5 to 1 over WLAN This example figure 43 is same as the previous one but it is used Wi Fi interface of all the DAEnetIP3 controllers Relay Board DAEnetIP3 1 outputs DAEnetIP3 6 DAEnetIP3 2 inputs 4 1 1 1 Y 2 wer K nc 0 at A ve 5 wae a 1 zi x a A W y i y ireless Temperature Network gt Temperature sensor ae A Re gner DAEnetIP3 3 a 1 Te DAEnetIP3 5 2 a a S g gt inputs e y DAEnetIP3 4 inputs Temperature sensor Temperature Y sensor C LEGEND Temperature PT TTL level OV or 3 3V May be sensor applied directly to relay board Input analog signal from temperature sensor 0 2 5V Figure 43 Distributed mode example 4 www DENKOVI com 48 KET DAEnetIP3 1 outputs Network Settings Win IP address 192 168 1 100 Win Mask 255 255 255 0 Win GW 192 168 1 1 Local Port Range 1005 1009 Digital Output 1 Port A Pin 1 Mode On Off setting and remote Digital Output 2 Port A Pin 2 Mode
93. rom DAN F A 9 57 AM Relay Board Network Settings Network Address URL URL or Static IP Address Port Number DAEnetlP3 User Port Network Password Must match DAEnetIP3 RC4 password Use RC4 Encryption Must Match DAEnetIP3 Configuration Setting Select Active Tabs Relay Port A Active Digital IO Port B Active Channel 1 0 0AtoD Analog to Digital Active Display and Update Screen Orientation Figure 74 Android software for DAEnetIP3 by iSwitch LLC www DENKOVI com 100 S Pe ELECTRO A DAEnetIP3 User Manual 22 Appendix 5 I O Ports 22 1 Digital outputs PortA DAEnetIP3 has 16 digital outputs port This port is called Port A Each output line has pull down resistor 10K to GND figure 75 The low level is OV The high level is 3 3V Be careful the outputs are connected directly to the MCU pins Incorrect connections or over voltage may damage the DAEnetIP3 controller SPDT Relay NC co O NO 1N4007 DAEnetIP3 A ia PA GND J Figure 75 Connecting 12V relay to PortA 0 www DENKOVI com 101 S RTT DAEnetIP3 User Manual 22 2 Digital inputs PortB DAEnetIP3 has 8 digital inputs port This port is called Port B Each output line has pull up resistor 10K to 3 3V figure 76 When the input is not connected its state is high 1 Be careful the inputs are connected directly to the MCU pins Incorrect connections or over voltage may damage the DAEnetIP3 controller
94. s made the telnet connection to The port for Telnet is constant 23 Telnet command answer and error ADU application data unit are shown on figure 58 ADU Function code 3 bytes p Data N bytes Command Answer Figure 58 Telnet protocol Example commands Telnet 192 168 1 50 iPassword admin WELCOME gt ASG 000A BUG 66 FF ASG FFFF Figure 59 Telnet from Windows From web Telnet can be enabled disabled in the following way Web Admin gt Enable Telnet From web telnet password can be adjusted in the following way Web Admin gt Telnet Password www DENKOVI com 68 SSEMBL aRar DAEnetIP3 User Manual 17 3 Serial protocol ADU Command Address 2 bytes Function code 3 bytes Data N bytes CRC16 2 bytes Answer Error Address 2 bytes Error code 2 bytes CRC16 2 bytes ES e r PDU Figure 60 Communication via serial protocol The communication over serial port is shown on figure 60 To each PDU it are added 2 bytes serial address at the beginning and 2 bytes CRC16 before the char The CRC16 bytes are actually checksum calculated with Modbus CRC16 algorithm The check sum is performed over all previous bytes without Example commands referring to Figure 60 e CRC16 OFF send OOASG 7 gets the whole PortA status of DAEnetIP3 00 receive OO0ASG 0FOF send 01ASG FFFF sets the whole PortA in
95. ser Manual 7 5 14 Pulses and schedule Level On boot Time Digital output level Time event X Start pulses X Stop pulses Figure 8 Pulses and schedule On figure 24 it is shown the digital output mode Pulses and schedule If the moment given by Time 1 appears then pulse generating is started If Time 2 appears then pulse generating is stopped The user can not control manually the outputs in this mode 7 5 15 Pulses and remote In this mode the pulse generating for this digital output can be started stopped by input digital or analog from another DAEnetIP3 controller over the network The user can not control manually the outputs in this mode 7 5 16 Timer User starts the timer Level Time Digital output level On boot Start timer O Stop timer Because time elapsed Delay Figure 9 Timer www DENKOVI com 28 S TT DAEnetIP3 User Manual Level User starts the timer User starts the timer again Time On boot Digital output level lt Delay O Start timer Delay Stop timer because time elapsed Figure 10 Timer requests This mode figure 25 allows the given digital output mode to make single one shoot pulse with custom delay The pulse can not be stopped only can be started If the current pulse is started and not elapsed and new request for single pulse is appeared then the pulse will be stopped after the delay time after the last pulse is started figure 26
96. t RC4 password secret DAEnetIP3 receives Set all outs in 1 DAEnetIP3 sends Outs set Figure 46 RC4 normal conversation www DENKOVI com 54 PC DAEnetIP3 User Manual x ll DAEnetIP3 ve A TCP IP RC4 password secret jj J v 2 2 2 27 gt gt PC sends Set all outs in 1 RC4 password anothersecret DAEnetIP3 receives 77777777 Figure 137 RC4 bad conversation From web RC4 can be enabled disabled in the following way Web Admin gt Enable RC4 encoding From web RC4 password can adjusted in the following way Web Admin gt RC4 password A good online tool for RC4 calculation is http www fyneworks com encryption rc4 encryption www DENKOVI com 55 S TT DAEnetIP3 User Manual 12 UART Serial Port 12 1 Overview DAEnetIP3 has one built in UART Universal asynchronous receiver transmitter It is shown on figure 48 STATUS LED STATUS LED SYSTEM POWER LED POWER LED DAEnetlP3 ET DAEnetlP3 EB DAEnetlP3 WT DAEnetlP3 WB Figure 48 DAEnetIP3 UART port The UART port lines are e Tx output This is the transmission UART line e Rx input This is the receiving UART line e Dir output This is the RS485 direction line e Gnd This is ground www DENKOVI com 56 S RT DAEnetIP3 User Manual 12 2 Applications The main purpose of the UART is creating RS485 network access
97. t command Send to UART port YDF 1 Where YDF 1 is the function code for default settings and is the delimiter 24 5 Loading default settings via DAEnetlP3 socket command Send to UART port AAYDF 1 Where the AA is the serial address YDF 1 is the ol function code for default settings and is the delimiter www DENKOVI com 111 SSEMBL Te DAEnetIP3 User Manual 25 Appendix 8 Firmware upgrade Please note that TFTP firmware upgrade is not anymore supported From our experience we don t recommend to use it because it is unsafe and this can damage your DAEnetIP3 controller If you would like to upgrade your DAEnetIP3 device with the last firmware version please contact with us and we will send you instructions www DENKOVI com 112 S AE DAEnetIP3 User Manual 26 Appendix 9 How to create Virtual Serial Port for DAEnetlP3 1 Download and install Device Server Toolkit o 32 bit Windows download o 64 bit Windows download 2 When you start the application you will have to create your Virtual Serial Port that will be used in your project So when you start the software you should see the window bellow Click Add button Tibbo VSP Manager V5 9 5 Port Help Port name Routing mode Destination Remove Remove All Allow Per User Configs Add edit remove Tibbo Virtual Serial Ports Figure 84 VSP Manager www DENKOVI com 113 3 After that you IP address is network
98. t control manually the outputs in this mode www DENKOVI com 25 S RTT DAEnetIP3 User Manual 7 5 11 Pulses User starts the pulses User stops the pulses On boot Digital output level X Start pulses X Stop pulses Period Figure 21 Pulses In this mode figure 21 the digital output is set in 1 for some time ON time and after that set in O for some time OFF time In this way the DAEnetIP3 controller can make pulses with custom period based on ON OFF times The user can starts stops the pulses The pulse generating always starts with the ON time When the user stops the pulses the output state becomes 0 7 5 12 Pulses and digital input Digital input mode Set output Digital input mode Set output durng rising edge durng falling edge 0 On boot On boot Digital output level Digital input level X Start pulses X Stop pulses Figure 22 Pulses and digital input This mode figure 22 configures the outputs to work as pulse generator based on digital input falling rising slope Actually the rules for pulse generation are the same as point 7 5 1 When the input level makes falling or rising edge the pulse generation is started or stopped depending on the digital input mode The user can not control manually the outputs in this mode www DENKOVI com 26 S RTT DAEnetIP3 User Manual e When DI is in Set output during rising edge mode the pulses are started during rising edge o
99. th gateway 192 168 1 1 router IP 10 Unplug the power supply 11 Disconnect the UTP cable from PC and connect it to the router 12 Supply again the DAEnetIP3 13 Give back the old IP of the PC 192 168 1 2 14 Open browser and type 192 168 1 100 15 Now you may access the DAEnetIP3 controller with router via router from PC www DENKOVI com 96 SSEMBL aRar DAEnetIP3 User Manual 19 3 Wi Fi connection with PC for first time 1 Create ad hoc Wi Fi network with your PC Your OS must support this For example Microsoft Windows 7 supports this function We accept the name of Ad Hoc SSID is Network the encryption type is WEP 64 and the password is admin 2 Make the IP of this wireless interface of your PC for example 192 168 1 1 and mask 255 255 255 0 3 Connect DAEnetIP3 RJ45 port with UTP doesn t matter crossover or straight cable 4 Connect PC with the other side of the UTP cable 5 Change the IP of LAN card of the PC It may be for example 192 168 0 1 DAEnetIP3 is with 192 168 0 100 6 Supply DAEnetIP3 with power supply 12 VDC the middle pin of DAEnetIP3 power jack is 12VDC The power led with red color must be on 7 Open your browser IE Firefox Opera and type 192 168 0 100 in the address bar 8 Use admin for password 9 Open Wi Fi settings 10 Change the Win IP address of DAEnetIP3 Make it to be in one network with your PC Ad Hoc network We accepted the IP of the PC Ad Hoc is 192 1
100. the controller synchronizes its RTC at 00 00 06 00 12 00 and 18 00 o clock The NTP server can be adjusted from web in the following way Web Admin gt NTP Server IP Remote Port www DENKOVI com 2614 SSEMBL RTT DAEnetIP3 User Manual 15 E mail notifications From version 2 0 0 DAEnetIP3 supports E mail SMTP notifications based on several possible events There are several parameters which must be adjusted correctly to work with SMTP These are E mail server port Web Admin gt E mail server port E mail receiver Web Admin gt E mail receiver E mail sender Web Admin gt E mail sender E mail username Web Admin gt E mail username E mail password Web Admin gt E mail password The events which can generate E mail notifications are e On boot event the controller sends E mail when it is booted This is useful to know if there was power off of the power supply e Keep alive event this E mail may be sent during some interval from 1 min to 99 min e Al event this event is generated regarding the analog inputs events chapter 9 e DI event this event is generated regarding the digital inputs events chapter 8 e NTP event this event is generated when the controller tries to synchronize its clock The E mail contains information if the synchronization was successful or not Note If there are more than one event generated at a time it will be sent only the first one The controller needs ti
101. to prevent unauthorized access Example commands send http your ip address command html P admin amp ASG 7 amp get the whole PortA status of DAEnetIP3 receive lt IDOCTYPE html gt lt html gt lt body gt ASG FFFF lt body gt lt html gt sena http your ip address command html P admin amp AS G amp BVG 78 amp CV0 7 amp send several commands at a time receive lt DOCTYPE html gt lt htmIl gt lt body gt ASG FFFF BVG 0F CV0 12 lt body gt lt html gt the answers are ordered in the same way of requests Please note that e Each HTTP request must end with amp symbol e There is limitation of the total parameters length including password no more than 245 symbols e The answer is returned in HTML file in the body section From web HTTP API password can be adjusted in the following way Web Admin gt HTTP API password www DENKOVI com 71 SSEMBL AE DAEnetIP3 User Manual 17 6 CRC16 Modbus 17 6 1 CRC16 case studies DAEnetIP3 supports CRC16 Modbus modification algorithm for prevention of errors during serial communications On figure 63 is shown how DAEnetlP3 encode decode the CRC16 checksum DAEnetIP3 DAEnetlP3 Socket UART UART sockinData serialOutData p ETTET ETTTETETETTETT sockOutData D y seriallnData 7 A e AAA Ay Enable CRC16 X Serial Address 00 Enable CRC16 Yes Serial Address 01 Figure 63 CRC case studies The socklnData is the data s
102. tream that comes in to the user defined socket sockOutData is the data stream that comes out from the user defined socket serialOutData is the data stream that comes out to the UART interface The seriallnData is the incoming data in to the UART port With X is marked if the CRC is enabled or disabled We On table 16 are shown different situations for CRC16 checking With brackets is marked which is the first second third and fourth event It is used the ASG command which gets the digital outputs Port A states Legend e o Serial address o PDU command o CRC 16 checksum o Wrong byte during communication some bit is inverted o Error code Table 16 Examples of CRC16 calculation i ion Dor Oem ee te T 3 O1ASG 7 1 01ASG 0000 4 O1ASG 000039F6 2 01ASG 000039F6 3 yes 4 O1ASG 7 1 Ote36E2c 4 01asc 000039F6 2 01ASG 000139F6 3 yes S O1ASG 7 1 Ote36E2C 4 01Asc 000139F6 2 O1E36E2CI3 yes fs T fotce T E EE 17 EIN E 02456 7 PL O2ASG FCE2 1 yes Comments for the examples e Example 1 CRC16 for DAEnetIP3 00 is enabled DAEnetIP3 00 receives TCP IP data with serial address 00 Data is sent over the serial line to DAEnetIP3 01 with added CRC16 checksum DAEnetlP3 00 performs respond DAEnetIP3 00 receives the response over the serial network and send it over the TCP IP www DENKOVI com 72 SSEMBL EERE DAEnetIP3 User Manual
103. uration over Serial port UART Ir ee ATA Enable disable Telnet O Ys TCP IP socket based protocol for direct Yes configuration over LAN WLAN WAN Yes Virtual Serial Port VSP es protection O AA 108mm x 45mm x 24mm Power supply voltage 12VDC CPU power supply output level 3 3VDC 3 3VDC www DENKOVI com 8 S RTT DAEnetIP3 User Manual 4 Application examples DAEnetIP3 has 16 digital outputs that are suitable for controlling electrical devices over the local network or Internet Using its Wi Fi 802 11 communication module it is possible to control different electrical devices wireless PC DAEnetIP3 Relay Board TTL Level Power supply A 120 220 250VAC d oc eccccccces gt Router Ethernet Internet Web Telnet TCPAP socket based protocol Figure 1 Controlling electrical devices with DAEnetIP3 remotely Electrical device DAEnetIP3 has 8 analog inputs Vref 2 5V 10bit resolution and 8 digital inputs 0 3 34 Each sensor producing signal compatible with these inputs levels is suitable Once the information over LAN WLAN or WAN from sensors is gathered it may be received from PC server and saved for processing 0 Humidity sensor 0 3 3V Switch Serre t Router Ethernet Internet Web Telnet TCP IP socket based protocol Figure 2 Tracking sensors www DENKOVI com 9 S A DAEnetIP3 User Manual DAEnetIP3 can ope
104. wer AMA 0 amp schedule 4 On Off setting amp remote 5 Inverting 6 Inverting amp DI Inverting 8 Al 8 Inverting amp schedule 9 Inverting amp remote A Pulses B Pulses amp DI C Pulses amp Al D Pulses 4 schedule E Pulses remote F Timer G Timer amp DI H Timer amp Al l Timer amp remote read value From 0 From 0 up to 99 From 00 Set get the ON command ANO 10 Set PortA 0 read value up to 99 parameter PortA 0 ON parameter in 10 up to F Value is from O answer AMO 10 PortA 15 to 99 command ANB Get PortA 11 ON parameter answer ANB 10 10 AF From0 T From 0 up to 99 Set get the command AFO 2 Set PortA 0 www DENKOVI com 76 DO PortA 0 up to F PortA 15 From 0 PortA 0 up to F PortA 15 From 0 PortA 0 up to F PortA 15 From 0 PortA 0 up to F PortA 15 From 0 PortA 0 up to F PortA 15 www DENKOVI com read value up to 99 From 0 up to 99 read value From 00 00 00 up to 23 59 59 read value From 00 00 00 up to 23 59 59 read value Descript Max 10 symbols a Z AZ 0 9 ion and read value string 0 seconds 0 1 or 2 1 minutes 2 hours read value DAEnetIP3 User Manual OFF parameter Value is from 0 to 99 Set get the Delay parameter Value is from 0 to 99 Set get the Time1 param
105. work that the DAEnetIP3 controllers are used e The incoming sockets for controlled DAEnetIP3 modules accepts connections over LAN and WLAN e The outgoing connections for controlling DAEnetlP3 modules can be established either via LAN either via WLAN This must be set with Working Mode parameter e It is not recommend using distributed mode over the WAN Internet The communication is not secured and there may be some significant latency www DENKOVI com 53 S RTT DAEnetIP3 User Manual 11 RC4 Encryption Communication via TCP IP socket with DAEnetIP3 controller may be encrypted with RC4 algorithm The RC4 encryption may be activated deactivated by the user anytime The RC4 encryption is used for protection the TCP IP socket communication The RC4 is not used for Telnet and distributed mode Box to box mode and HTTP API To communicate properly two nodes with RC4 for example PC and DAEnetIP3 they must have the same RC4 passwords or the RC4 must be disabled at all RC4 algorithm if enabled from client side is responsibility of the user software Below are shown two situations where the RC4 is enabled The first figure 46 is normal conversation the both sides have the same passwords The second figure 47 is bad conversation the sides have different RC4 passwords T aind DAEnetIP3 Sey A TCP IP RC4 password secret L TP gt PC sends Set all outs in 1 PC receives Outs se

Download Pdf Manuals

image

Related Search

Related Contents

MANUAL DE INSTRUCCIONES  2 - Sony  INFLATABLE PFD`S MAZU MARINE  lire l`article  a pdf version for printing  OPERATING INSTRUCTIONS  カタログ (pdf形式、207.178KByte)  Samsung SP-47W3HF Manual de Usuario  GL957 - Comtec  MANUAL DE INSTRUCCIONES 2008  

Copyright © All rights reserved.
Failed to retrieve file