Fuckup réglé
This commit is contained in:
parent
2cdb87405c
commit
d16760c456
Binary file not shown.
@ -3320,3 +3320,116 @@ Démarrage du logiciel Otarcik CAN le 2023-07-31 à 12:04:03
|
||||
2023-07-31 12:04:03 Initialisation d'un module PCAN. Handle:0x2, Baudrate:82
|
||||
2023-07-31 12:04:03 Impossible d'initialiser un module USB PCAN. Erreur:The value of a handle (PCAN-Channel, PCAN-Hardware, PCAN-Net, PCAN-Client) is invalid
|
||||
2023-07-31 12:04:03 Impossible d'initialiser le matériel CAN
|
||||
|
||||
|
||||
********************************************************************
|
||||
Démarrage du logiciel Otarcik CAN le 2023-07-31 à 12:20:02
|
||||
********************************************************************
|
||||
2023-07-31 12:20:02 Chargement de la configuration système...
|
||||
2023-07-31 12:20:02 Configuration système chargée avec succès!
|
||||
2023-07-31 12:20:02 Initialisation du dispositif [IVT Sensor]
|
||||
2023-07-31 12:20:02 Démarrage d'un module CAN...
|
||||
2023-07-31 12:20:02 Module PCAN trouvé à l'adresse 1 avec le handle 0x51
|
||||
2023-07-31 12:20:02 Initialisation d'un module PCAN. Handle:0x1, Baudrate:81
|
||||
2023-07-31 12:20:02 Impossible d'initialiser un module USB PCAN. Erreur:The value of a handle (PCAN-Channel, PCAN-Hardware, PCAN-Net, PCAN-Client) is invalid
|
||||
2023-07-31 12:20:02 Impossible d'initialiser le matériel CAN
|
||||
2023-07-31 12:20:02 Initialisation du dispositif [test]
|
||||
2023-07-31 12:20:02 Démarrage d'un module CAN...
|
||||
2023-07-31 12:20:02 Module PCAN trouvé à l'adresse 2 avec le handle 0x52
|
||||
2023-07-31 12:20:02 Initialisation d'un module PCAN. Handle:0x2, Baudrate:82
|
||||
2023-07-31 12:20:02 Impossible d'initialiser un module USB PCAN. Erreur:The value of a handle (PCAN-Channel, PCAN-Hardware, PCAN-Net, PCAN-Client) is invalid
|
||||
2023-07-31 12:20:02 Impossible d'initialiser le matériel CAN
|
||||
|
||||
|
||||
********************************************************************
|
||||
Démarrage du logiciel Otarcik CAN le 2023-07-31 à 12:33:56
|
||||
********************************************************************
|
||||
2023-07-31 12:33:56 Chargement de la configuration système...
|
||||
2023-07-31 12:33:56 Configuration système chargée avec succès!
|
||||
2023-07-31 12:33:56 Initialisation du dispositif [IVT Sensor]
|
||||
2023-07-31 12:33:56 Démarrage d'un module CAN...
|
||||
2023-07-31 12:33:56 Module PCAN trouvé à l'adresse 1 avec le handle 0x51
|
||||
2023-07-31 12:33:56 Initialisation d'un module PCAN. Handle:0x1, Baudrate:81
|
||||
2023-07-31 12:33:56 Impossible d'initialiser un module USB PCAN. Erreur:The value of a handle (PCAN-Channel, PCAN-Hardware, PCAN-Net, PCAN-Client) is invalid
|
||||
2023-07-31 12:33:56 Impossible d'initialiser le matériel CAN
|
||||
2023-07-31 12:33:56 Initialisation du dispositif [test]
|
||||
2023-07-31 12:33:56 Démarrage d'un module CAN...
|
||||
2023-07-31 12:33:56 Module PCAN trouvé à l'adresse 2 avec le handle 0x52
|
||||
2023-07-31 12:33:56 Initialisation d'un module PCAN. Handle:0x2, Baudrate:82
|
||||
2023-07-31 12:33:56 Impossible d'initialiser un module USB PCAN. Erreur:The value of a handle (PCAN-Channel, PCAN-Hardware, PCAN-Net, PCAN-Client) is invalid
|
||||
2023-07-31 12:33:56 Impossible d'initialiser le matériel CAN
|
||||
|
||||
|
||||
********************************************************************
|
||||
Démarrage du logiciel Otarcik CAN le 2023-07-31 à 12:35:46
|
||||
********************************************************************
|
||||
2023-07-31 12:35:46 Chargement de la configuration système...
|
||||
2023-07-31 12:37:45 Configuration système chargée avec succès!
|
||||
2023-07-31 12:40:05 Initialisation du dispositif [IVT Sensor]
|
||||
2023-07-31 12:40:09 Démarrage d'un module CAN...
|
||||
2023-07-31 12:40:27 Module PCAN trouvé à l'adresse 1 avec le handle 0x51
|
||||
|
||||
|
||||
********************************************************************
|
||||
Démarrage du logiciel Otarcik CAN le 2023-07-31 à 12:48:52
|
||||
********************************************************************
|
||||
2023-07-31 12:48:52 Chargement de la configuration système...
|
||||
2023-07-31 12:48:52 Configuration système chargée avec succès!
|
||||
2023-07-31 12:48:52 Initialisation du dispositif [IVT Sensor]
|
||||
2023-07-31 12:48:52 Démarrage d'un module CAN...
|
||||
2023-07-31 12:48:52 Module PCAN trouvé à l'adresse 1 avec le handle 0x51
|
||||
2023-07-31 12:48:52 Initialisation d'un module PCAN. Handle:0x1, Baudrate:28
|
||||
2023-07-31 12:48:52 Impossible d'initialiser un module USB PCAN. Erreur:The value of a handle (PCAN-Channel, PCAN-Hardware, PCAN-Net, PCAN-Client) is invalid
|
||||
2023-07-31 12:48:52 Impossible d'initialiser le matériel CAN
|
||||
2023-07-31 12:48:52 Initialisation du dispositif [test]
|
||||
2023-07-31 12:48:52 Démarrage d'un module CAN...
|
||||
2023-07-31 12:48:52 Module PCAN trouvé à l'adresse 2 avec le handle 0x52
|
||||
2023-07-31 12:48:52 Initialisation d'un module PCAN. Handle:0x2, Baudrate:82
|
||||
2023-07-31 12:48:52 Impossible d'initialiser un module USB PCAN. Erreur:The value of a handle (PCAN-Channel, PCAN-Hardware, PCAN-Net, PCAN-Client) is invalid
|
||||
2023-07-31 12:48:52 Impossible d'initialiser le matériel CAN
|
||||
|
||||
|
||||
********************************************************************
|
||||
Démarrage du logiciel Otarcik CAN le 2023-07-31 à 12:50:40
|
||||
********************************************************************
|
||||
2023-07-31 12:50:40 Chargement de la configuration système...
|
||||
2023-07-31 12:50:40 Configuration système chargée avec succès!
|
||||
2023-07-31 12:50:40 Initialisation du dispositif [IVT Sensor]
|
||||
2023-07-31 12:50:40 Démarrage d'un module CAN...
|
||||
2023-07-31 12:50:40 Module PCAN trouvé à l'adresse 1 avec le handle 0x51
|
||||
2023-07-31 12:50:40 Initialisation d'un module PCAN. Handle:0x51, Baudrate:28
|
||||
2023-07-31 12:50:40 Module PCAN USB initialisé avec succès
|
||||
2023-07-31 12:50:40 Chargement de la base de données D:/Main/Dev/YULTek/Otarcik_CAN/IVT-S_all-variations_12082020.dbc
|
||||
2023-07-31 12:50:40 Base de données chargée avec succès. Flags: 0x0
|
||||
2023-07-31 12:50:40 Dispositif [IVT Sensor] initialisé avec succès!
|
||||
2023-07-31 12:50:40 Initialisation du dispositif [test]
|
||||
2023-07-31 12:50:40 Démarrage d'un module CAN...
|
||||
2023-07-31 12:50:40 Module PCAN trouvé à l'adresse 2 avec le handle 0x52
|
||||
2023-07-31 12:50:40 Initialisation d'un module PCAN. Handle:0x52, Baudrate:28
|
||||
2023-07-31 12:50:40 Module PCAN USB initialisé avec succès
|
||||
2023-07-31 12:50:40 Chargement de la base de données D:/Main/Dev/YULTek/Otarcik_CAN/PCtelemetrie20230619.dbc
|
||||
2023-07-31 12:50:40 Base de données chargée avec succès. Flags: 0x0
|
||||
2023-07-31 12:50:40 Dispositif [test] initialisé avec succès!
|
||||
|
||||
|
||||
********************************************************************
|
||||
Démarrage du logiciel Otarcik CAN le 2023-07-31 à 12:56:00
|
||||
********************************************************************
|
||||
2023-07-31 12:56:00 Chargement de la configuration système...
|
||||
2023-07-31 12:56:00 Configuration système chargée avec succès!
|
||||
2023-07-31 12:56:00 Initialisation du dispositif [IVT Sensor]
|
||||
2023-07-31 12:56:00 Démarrage d'un module CAN...
|
||||
2023-07-31 12:56:00 Module PCAN trouvé à l'adresse 1 avec le handle 0x51
|
||||
2023-07-31 12:56:00 Initialisation d'un module PCAN. Handle:0x51, Baudrate:28
|
||||
2023-07-31 12:56:00 Module PCAN USB initialisé avec succès
|
||||
2023-07-31 12:56:00 Chargement de la base de données D:/Main/Dev/YULTek/Otarcik_CAN/IVT-S_all-variations_12082020.dbc
|
||||
2023-07-31 12:56:00 Base de données chargée avec succès. Flags: 0x0
|
||||
2023-07-31 12:56:00 Dispositif [IVT Sensor] initialisé avec succès!
|
||||
2023-07-31 12:56:00 Initialisation du dispositif [test]
|
||||
2023-07-31 12:56:00 Démarrage d'un module CAN...
|
||||
2023-07-31 12:56:00 Module PCAN trouvé à l'adresse 2 avec le handle 0x52
|
||||
2023-07-31 12:56:00 Initialisation d'un module PCAN. Handle:0x52, Baudrate:28
|
||||
2023-07-31 12:56:00 Module PCAN USB initialisé avec succès
|
||||
2023-07-31 12:56:00 Chargement de la base de données D:/Main/Dev/YULTek/Otarcik_CAN/PCtelemetrie20230619.dbc
|
||||
2023-07-31 12:56:00 Base de données chargée avec succès. Flags: 0x0
|
||||
2023-07-31 12:56:00 Dispositif [test] initialisé avec succès!
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -54,8 +54,7 @@ SOURCES += Sources/main.cpp \
|
||||
Sources/CloudLogging/MQTTClientWrapper.cpp \
|
||||
Sources/Gui/CCANWatchdogSettingsPage.cpp \
|
||||
Sources/CANBus/CANWatchdogConfig.cpp \
|
||||
Sources/GeneralSystemParams.cpp \
|
||||
Sources/CANBus/CANWatchdog.cpp
|
||||
Sources/GeneralSystemParams.cpp
|
||||
|
||||
HEADERS += Sources/MainWindow.h \
|
||||
Sources/PCANInterface.h \
|
||||
@ -81,8 +80,7 @@ HEADERS += Sources/MainWindow.h \
|
||||
Sources/CloudLogging/MQTTClientWrapper.h \
|
||||
Sources/Gui/CCANWatchdogSettingsPage.h \
|
||||
Sources/CANBus/CANWatchdogConfig.h \
|
||||
Sources/GeneralSystemParams.h \
|
||||
Sources/CANBus/CANWatchdog.h
|
||||
Sources/GeneralSystemParams.h
|
||||
|
||||
FORMS += Sources/Gui/MainWindow.ui \
|
||||
Sources/Gui/GeneralStatusPage.ui \
|
||||
|
||||
@ -28,7 +28,7 @@ CCANAnalyzer::~CCANAnalyzer()
|
||||
delete mCANReadTimer;
|
||||
}
|
||||
|
||||
int CCANAnalyzer::Init(CPCANInterface *CANDriverIF, quint8 CANDeviceChannel, QList<CCANMessage *> *MsgList, unsigned int PollPeriod)
|
||||
int CCANAnalyzer::Init(CPCANInterface *CANDriverIF,TPCANHandle DeviceHandle, quint8 CANDeviceChannel, QList<CCANMessage *> *MsgList, unsigned int PollPeriod)
|
||||
{
|
||||
if(MsgList == 0)
|
||||
{
|
||||
@ -43,6 +43,7 @@ int CCANAnalyzer::Init(CPCANInterface *CANDriverIF, quint8 CANDeviceChannel, QLi
|
||||
mCANDeviceChannel = CANDeviceChannel;
|
||||
mCANPollPeriod = PollPeriod;
|
||||
mCANDriverIF = CANDriverIF;
|
||||
mCANDeviceHandle = DeviceHandle;
|
||||
// CGeneralMessagesLogDispatcher::instance()->AddLogMessage("Démarrage d'un module CAN...");
|
||||
|
||||
mDeviceMessagesList = MsgList;
|
||||
|
||||
@ -23,7 +23,7 @@ public:
|
||||
QTimer *mCANReadTimer;
|
||||
unsigned int mCANPollPeriod;
|
||||
|
||||
int Init(CPCANInterface *CANDriverIF,quint8 CANDeviceChannel, QList<CCANMessage *> *MsgList, unsigned int PollPeriod);
|
||||
int Init(CPCANInterface *CANDriverIF,TPCANHandle DeviceHandle,quint8 CANDeviceChannel, QList<CCANMessage *> *MsgList, unsigned int PollPeriod);
|
||||
int ReadCAN();
|
||||
|
||||
QList<CCANMessage *> *mDeviceMessagesList;
|
||||
|
||||
@ -52,7 +52,7 @@ int CCANDevice::Init()
|
||||
CGeneralMessagesLogDispatcher::instance()->AddLogMessage("Démarrage d'un module CAN...");
|
||||
|
||||
mCANDriverIF = new CPCANInterface;
|
||||
if(mCANDriverIF->GetDeviceHandle(mDeviceConfigInfo.mCANDeviceID,mDeviceConfigInfo.mCANDeviceBaudrate) != RET_OK)
|
||||
if(mCANDriverIF->GetDeviceHandle(mDeviceConfigInfo.mCANDeviceID,mDeviceHandle) != RET_OK)
|
||||
{
|
||||
QString Log = QString("Impossible de trouver le module CAN sur le channel %1").arg(mDeviceConfigInfo.mCANDeviceID);
|
||||
CGeneralMessagesLogDispatcher::instance()->AddLogMessage(Log,true,1,CGeneralMessagesLogDispatcher::GEN_MSG_TXT_ERROR_STATUS);
|
||||
@ -60,7 +60,7 @@ int CCANDevice::Init()
|
||||
return RET_GENERAL_ERROR;
|
||||
}
|
||||
|
||||
if(mCANDriverIF->Init(mDeviceConfigInfo.mCANDeviceID,mDeviceConfigInfo.mCANDeviceBaudrate) != RET_OK)
|
||||
if(mCANDriverIF->Init(mDeviceHandle,mDeviceConfigInfo.mCANDeviceBaudrate) != RET_OK)
|
||||
{
|
||||
CGeneralMessagesLogDispatcher::instance()->AddLogMessage("Impossible d'initialiser le matériel CAN",true,1,CGeneralMessagesLogDispatcher::GEN_MSG_TXT_ERROR_STATUS);
|
||||
mIsCANInitialized = false;
|
||||
@ -83,7 +83,7 @@ int CCANDevice::Init()
|
||||
|
||||
|
||||
// if(mCANAnalyzer.Init(mDeviceConfigInfo.mCANDeviceID,mDeviceConfigInfo.mCANDeviceBaudrate,&mMessageList,mDeviceConfigInfo.mDevicePollPeriod) != RET_OK)
|
||||
if(mCANAnalyzer.Init(mCANDriverIF,mDeviceConfigInfo.mCANDeviceID,&mMessageList,mDeviceConfigInfo.mDevicePollPeriod) != RET_OK)
|
||||
if(mCANAnalyzer.Init(mCANDriverIF,mDeviceHandle,mDeviceConfigInfo.mCANDeviceID,&mMessageList,mDeviceConfigInfo.mDevicePollPeriod) != RET_OK)
|
||||
{
|
||||
CGeneralMessagesLogDispatcher::instance()->AddLogMessage(QString("Le dispositif [%1] n'a pas pu s'initialiser").arg(mDeviceConfigInfo.mDeviceName),true,1,CGeneralMessagesLogDispatcher::GEN_MSG_TXT_ERROR_STATUS);
|
||||
mProgramPtr->SetCANConnectionStatusRequest(false);
|
||||
|
||||
@ -46,6 +46,7 @@ public:
|
||||
// CCANDevice &operator=(const CCANDevice *source);
|
||||
|
||||
int NewMessageParsed(int BufferSize = 0);
|
||||
TPCANHandle mDeviceHandle;
|
||||
|
||||
private:
|
||||
bool mConfigSet;
|
||||
@ -54,6 +55,7 @@ private:
|
||||
|
||||
|
||||
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
Binary file not shown.
@ -21,7 +21,6 @@ debug/MQTTClientWrapper.o
|
||||
debug/CCANWatchdogSettingsPage.o
|
||||
debug/CANWatchdogConfig.o
|
||||
debug/GeneralSystemParams.o
|
||||
debug/CANWatchdog.o
|
||||
debug/moc_MainWindow.o
|
||||
debug/moc_PCANInterface.o
|
||||
debug/moc_OtarcikCan.o
|
||||
@ -34,4 +33,3 @@ debug/moc_CANAnalyzer.o
|
||||
debug/moc_CANDevice.o
|
||||
debug/moc_MQTTClientWrapper.o
|
||||
debug/moc_CCANWatchdogSettingsPage.o
|
||||
debug/moc_CANWatchdog.o
|
||||
|
||||
@ -21,7 +21,6 @@ release/MQTTClientWrapper.o
|
||||
release/CCANWatchdogSettingsPage.o
|
||||
release/CANWatchdogConfig.o
|
||||
release/GeneralSystemParams.o
|
||||
release/CANWatchdog.o
|
||||
release/moc_MainWindow.o
|
||||
release/moc_PCANInterface.o
|
||||
release/moc_OtarcikCan.o
|
||||
@ -34,4 +33,3 @@ release/moc_CANAnalyzer.o
|
||||
release/moc_CANDevice.o
|
||||
release/moc_MQTTClientWrapper.o
|
||||
release/moc_CCANWatchdogSettingsPage.o
|
||||
release/moc_CANWatchdog.o
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user