Forum Replies Created
-
AuthorPosts
-
Zeus
ParticipantHi,
That is the solution. The 4G DTU contains the config.Zeus
ParticipantLooks good. I will try. That’s a good idea.
Zeus
ParticipantHi,
You did not get my point. I tried all modes. they are all not working correctly. By IP is not the solution and the other two modes are also not the solutionZeus
ParticipantYes, The DTU module is a TCP client and the line is a TCP server. you can see it in my question.
-
This reply was modified 3 years, 11 months ago by
Zeus.
Zeus
ParticipantHi,
Random IP address is disgusting.Zeus
ParticipantHi,
Yes. There is a config in the DTU module. TCP Server IP address and port.Zeus
ParticipantIt won’t work. I saw the source code.
Both of the modes below could not deal with that.protected bool BindConnByFirstPackage(TcpConnection tcpConn, string firstPackage)
protected void BindConnByDeviceLibrary(TcpConnection tcpConn, KPLogic kpLogic)Zeus
ParticipantHi both,
The DTU has a random IP address. So we could not connect it by IP.
There is a way to handle it but it’s stupid. Config each line a TCP port.Zeus
ParticipantHi,
Thanks.Zeus
Participant66666
Zeus
Participant你是轮询么?是不是用了串口服务器
Zeus
Participant你可以在公式里对state进行赋值 代码含义如下
/// <summary>
/// Не определён
/// </summary>
public const int Undefined = 0;
/// <summary>
/// Определён
/// </summary>
public const int Defined = 1;
/// <summary>
/// Архивный
/// </summary>
public const int Archival = 2;
/// <summary>
/// Ошибка в формуле
/// </summary>
public const int FormulaError = 3;
/// <summary>
/// Изменён
/// </summary>
public const int Changed = 4;
/// <summary>
/// Недостоверен
/// </summary>
public const int Unreliable = 5;/// <summary>
/// Аварийное занижение
/// </summary>
public const int LowCrash = 11;
/// <summary>
/// Занижение
/// </summary>
public const int Low = 12;
/// <summary>
/// Нормализация
/// </summary>
public const int Normal = 13;
/// <summary>
/// Завышение
/// </summary>
public const int High = 14;
/// <summary>
/// Аварийное завышение
/// </summary>
public const int HighCrash = 15;/// <summary>
/// Вход разрешён
/// </summary>
public const int InPermitted = 101;
/// <summary>
/// Выход разрешён
/// </summary>
public const int OutPermitted = 102;
/// <summary>
/// Доступ запрещён
/// </summary>
public const int AccessDenied = 103;
/// <summary>
/// Повреждение ШС
/// </summary>
public const int WireBreak = 111;
/// <summary>
/// Снят с охраны
/// </summary>
public const int Disarm = 112;
/// <summary>
/// Поставлен на охрану
/// </summary>
public const int Arm = 113;
/// <summary>
/// Тревога
/// </summary>
public const int Alarm = 114;Zeus
ParticipantHi,
It works. Thanks!Zeus
Participant数据 有value 和status 0代表undefined
Zeus
Participant方便发一下截图么? undefined 是数据的状态
-
This reply was modified 3 years, 11 months ago by
-
AuthorPosts