Push avant de modifier le bit de watchdog pour les essais ATS
Version 1.22 - Déconnexion manuelle du socket lors d'un timeout Modbus avec NetTrac. Aucune idée pourquoi ça ne se fait pas automatiquement!
This commit is contained in:
parent
e499518e8f
commit
4dfc62730a
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,3 +1,9 @@
|
||||
/debug/Escape.ZT
|
||||
/debug/LOG/LogZT.txt
|
||||
/debug/Makefile
|
||||
/debug/ZT
|
||||
/release/Makefile
|
||||
/release/ZT
|
||||
/sources/Modbus/ModbusTKTransport.cpp.autosave
|
||||
/sources/ZTStateMachine.cpp.autosave
|
||||
/interfaces_tmp
|
||||
|
||||
@ -61,7 +61,7 @@ MODBUS_CC_ETH_IF=eth2
|
||||
#Adresse modbus de la ZT
|
||||
MODBUS_SEI_DEVID=1
|
||||
#Port Modbus/TCP
|
||||
MODBUS_SEI_PORT=503
|
||||
MODBUS_SEI_PORT=502
|
||||
|
||||
|
||||
#----------------------------------
|
||||
@ -80,14 +80,14 @@ ENGLOG=3
|
||||
#Une seule station doit être sélectionnée
|
||||
|
||||
#STATION=HONORE_BEAUGRAND
|
||||
#STATION=ANGRIGNON
|
||||
STATION=ANGRIGNON
|
||||
#STATION=HENRI_BOURASSA
|
||||
#STATION=COTE_VERTU
|
||||
#STATION=BERRI_UQAM
|
||||
#STATION=LONGUEIL
|
||||
#STATION=SAINT_MICHEL
|
||||
#STATION=SNOWDON_L5
|
||||
STATION=MONTMORENCY
|
||||
#STATION=MONTMORENCY
|
||||
#STATION=MONTMORENCY_10_12
|
||||
#STATION=MONTMORENCY_10_22
|
||||
#STATION=DU_COLLEGE
|
||||
|
||||
Binary file not shown.
@ -56,6 +56,7 @@
|
||||
|
||||
//Flags definitions for HR2027
|
||||
#define ZT_WATCHDOG_ON_VALUE 0x8000
|
||||
//#define ZT_WATCHDOG_ON_VALUE 0x0001 //JFM 2020-09-25 modifie pour essais ATS (V1.21_TEST_ATS), doit etre 0x8000 en exploitation
|
||||
#define ZT_WATCHDOG_OFF_VALUE 0x0000
|
||||
|
||||
|
||||
|
||||
@ -84,6 +84,7 @@ int CModbusSEIMgr::ConnectToSlave(QHostAddress SlaveIP, int SlavePort)
|
||||
|
||||
int CModbusSEIMgr::DisconnectFromSlave()
|
||||
{
|
||||
mModbusTCPSocketHandle->flush();
|
||||
mModbusTCPSocketHandle->disconnectFromHost();
|
||||
mConnectionTimer->start();
|
||||
|
||||
@ -204,6 +205,7 @@ void CModbusSEIMgr::SEIModbusWatchdogtimerExpired()
|
||||
|
||||
emit SEIModbusLinkLost();
|
||||
mSEILinkState = false;
|
||||
DisconnectFromSlave(); //JFM 2021-03-12. Ajout suite aux essais site. La connexion doit etre coupee manuellement pour les raisons obscures.
|
||||
// mSEIWatchdogState = 0;
|
||||
}
|
||||
|
||||
|
||||
@ -29,9 +29,16 @@
|
||||
#ifndef ZTVERSION_H
|
||||
#define ZTVERSION_H
|
||||
|
||||
#define ZT_SOFT_VERSION "V1.21"
|
||||
#define ZT_SOFT_VERSION "V1.22"
|
||||
|
||||
//LOG DES CHANGEMENTS
|
||||
//Version 1.22
|
||||
//-Ajout de la deconnexion manuelle du socket lors du timeout
|
||||
// de watchdog avec NetTrac. Suite aux essais site Angrignon.
|
||||
|
||||
//V1.21_TEST_ATS (NON DEPLOYE)
|
||||
//Changement de l'endian du bit de watchdog pour les essais ATS.
|
||||
|
||||
//Version 1.21
|
||||
//-Correction d'un bug dans le calcul de l'adresse IP du Gateway
|
||||
//-Ajout de la désactivation du log d'ingénierie dans le script de mise à jour
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user