D
D
Diman892018-04-15 10:49:07
Smart House
Diman89, 2018-04-15 10:49:07

Strange relay board control?

Some time ago, in order to organize a "smart room" in an apartment, I bought a board for 16 10A \ 220V relays: USR-R16-T and all the sockets in the room were connected to this board by individual lines. The board is connected to the home network by a wire, software for managing the board is installed on the PC (turning on / off individual relays, a scheduler, etc.), a program for managing the board is also installed on the phone.
Problem: managing the board from the phone is practically (in 99% of cases) impossible.
The reason for this, it seems to me, is the huge delays from Chinese servers (moreover, such delays occur both when controlling the board via 3G \ LTE, and when controlling the board while connected to home Wi-Fi). Why this is happening is completely incomprehensible; I press the button on the phone to switch the relay, in the program interface the button becomes "clamped", but the switching itself does not occur (or it can happen in 5..50 minutes .... I never had the patience to wait) - with the actual when switching, the button in the program interface is "highlighted".
When controlling the board from a PC, the switching signals are instantaneous, and I begin to have doubts that the board is sending something to China.
The software is arranged as follows: an account is created on their website, a fee is attached to it; software is installed on the PC and you log in under your account and the board appears in the interface; on the phone is similar to PC
-> i.e. as if there is still a connection with China for management
How would I adequately start managing the board from the phone?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kn0ckn0ck, 2018-04-15
@kn0ckn0ck

Two important points follow from the description of the software for the phone (LonHand):
1. Each item has its own ID, managed through cloud server
2. No need of port forwarding, DDNS, port recording and VPN
It turns out that the phone application works through the "cloud" . As a mechanism for remote control of relays, something like polling is used - a periodic status request from an external server (possibly Chinese).
In general, nothing special, but if the server slows down, then the response time will be unpredictable. And the server will slow down if no one is engaged in it, and more and more clients are added.
If you dig further, you need to find out to which server the board / software sends requests. Trying to look for a less loaded server and reflashing the board, or replacing DNS records, in general, all this is a dubious pleasure.
The best option would probably be to replace the mobile app itself. Here is an example of a script for managing these relays, nothing complicated in general

A
areznikov, 2019-06-02
@areznikov

I have a similar board (without index T) and so there is an application for tedefone and software for Windows that works directly with the device via "locale" without incomprehensible china servers and clouds. appstore: lonhand mini

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question