Liczba postów: 34
Liczba wątków: 9
Dołączył: May 2012
Reputacja:
0
192.168.1.100 remote kontrol ---> enable server
192.168.1.101 remote kontrol ---> enable client --- INP1D ---> OUT0
-----------------
192.168.1.101 = INP1D ----> LOW => 192.168.1.100 OUT0 =ON
192.168.1.101 = INP1D ----> HIGH => 192.168.1.100 OUT0 =OFF
OK NO PROBLEM
-----------------
192.168.1.101 = INP1D ----> LOW => 192.168.1.100 OUT0 =ON
192.168.1.101 INP1D ----> LOW |POWER OFF |
INP1D ----> HIGH ----> |POWER ON | 192.168.1.100 OUT0 =OFF
OK NO PROBLEM
---------------------------
192.168.1.101 = INP1D ----> LOW => 192.168.1.100 OUT0 =ON
192.168.1.100 |POWER OFF |
|POWER ON | 192.168.1.100 OUT0 =OFF (192.168.1.101 => INP1D ----> LOW)
PROBLEM
<t></t>
Liczba postów: 2,349
Liczba wątków: 40
Dołączył: Oct 2011
Reputacja:
14
You're right, I added client-side options.
But it works, so that the server receives UDP packets from the client, and if the server is turned off and back on, it does not know how to set the output until get the package from the client. Server does not know what is the address of the client(because there may be many) and can not send the package to the client.
There are two ways to solve the problem.
1.Easier to implement: Add option, the server will remember the outputs stats before off and after turning on them set. Only that this option has one drawback: as the server is turned off and at that time will change the status of the client INPD it will not be noticed.
2. Difficult to implement: Server will remember client IP(the last client package before off) and when you turn on, serwer sends requesting packet to the client the transfer of the current state of INPD.
The first solution is sufficient or not?
pozdrawiam
tomek
Liczba postów: 34
Liczba wątków: 9
Dołączył: May 2012
Reputacja:
0
client at regular intervals, send INP status?
or to the server, type the IP address of the client, status query INP be a solution?
<t></t>
Liczba postów: 34
Liczba wątków: 9
Dołączył: May 2012
Reputacja:
0
What time intervals will be OK?
1-20 sec
<t></t>
Liczba postów: 34
Liczba wątków: 9
Dołączył: May 2012
Reputacja:
0
Control Panel ---> DIGITAL Inputs State : DIGITAL Inputs : INP1D INP2D INP3D INP4D 4 pcs
Network Configuration ---> Remote Control : INP1D - INP2D 2 pcs
Remote Control 4 pcs Is it possible?
<t></t>