#include <tcpipconnector.hpp>
Klassendiagramm für CTCPIPConnector:

Öffentliche Methoden | |
| CTCPIPConnector () | |
| initalize mutex for send_data this ensures that only a data block will be sent at one time | |
| virtual | ~CTCPIPConnector () |
| frees the mutex handle for send data | |
| virtual bool | initialize (const short TCPport, const char *pIPAddress) |
| initialize connection to the gateway | |
| bool | ReadEepromData (ADDRESS_TYPE nAddress, unsigned int uiLength) |
| send a read eeprom request | |
| bool | SendReadEepromDataCnf (ADDRESS_TYPE nAddress, const std::vector< unsigned char > &aucData) |
| send a read eeprom confirmation | |
| bool | ReadProgramData (ADDRESS_TYPE nAddress, unsigned int uiLength) |
| send a read program memory request | |
| bool | SendReadProgramDataCnf (ADDRESS_TYPE nAddress, const std::vector< unsigned char > &aucData) |
| send a read program confirmation | |
| bool | ReadRamData (ADDRESS_TYPE nAddress, unsigned int uiLength) |
| send a read ram request | |
| bool | SendReadRamDataCnf (ADDRESS_TYPE nAddress, const std::vector< unsigned char > &aucData) |
| send a read ram confirmation | |
| bool | WriteEepromData (ADDRESS_TYPE nAddress, const std::vector< unsigned char > &aucData) |
| send a write eeprom request | |
| bool | SendWriteEepromDataCnf (ADDRESS_TYPE nAddress, unsigned int uiLength) |
| send a write eeprom confirmation | |
| bool | WriteProgramData (ADDRESS_TYPE nAddress, const std::vector< unsigned char > &aucData) |
| send a write program memory request | |
| bool | SendWriteProgramDataCnf (ADDRESS_TYPE nAddress, unsigned int uiLength) |
| send a write program memory confirmation | |
| bool | WriteRamData (ADDRESS_TYPE nAddress, const std::vector< unsigned char > &aucData) |
| send a write ram request | |
| bool | SendWriteRamDataCnf (ADDRESS_TYPE nAddress, unsigned int uiLength) |
| send a write ram confirmation | |
| bool | SendStatusInfo (ADDRESS_TYPE nAddress, unsigned int uiLength, std::vector< unsigned char > aucData) |
| send a status information command | |
| bool | terminate (void) |
| close the current connection | |
| CCOMConnector * | GetCOMPort (void) const |
| get access to the associated COM port | |
| void | SetCOMPort (CCOMConnector *pMsg) |
| Set associated COM port parameters. | |
| bool | IsConnected (void) const |
| IsConnected returns the connection state of the connection. | |
Geschützte Methoden | |
| void | Receive (void *pData, long DataLen) |
| implemented pure virtual function from CTCPIPReceive | |
| virtual void | ReadEepromDataReq (ADDRESS_TYPE nAddress, unsigned int uiLength)=0 |
| this function will be called if a read eeprom request was received | |
| virtual void | ReadProgramDataReq (ADDRESS_TYPE nAddress, unsigned int uiLength)=0 |
| this function will be called if a read program request was received | |
| virtual void | ReadRamDataReq (ADDRESS_TYPE nAddress, unsigned int uiLength)=0 |
| this function will be called if a read ram request was received | |
| virtual void | WriteEepromDataReq (ADDRESS_TYPE nAddress, unsigned int uiLength, const std::vector< unsigned char > &aucData)=0 |
| this function will be called if a write eeprom request was received | |
| virtual void | WriteProgramDataReq (ADDRESS_TYPE nAddress, unsigned int uiLength, const std::vector< unsigned char > &aucData)=0 |
| this function will be called if a write program request was received | |
| virtual void | WriteRamDataReq (ADDRESS_TYPE nAddress, unsigned int uiLength, const std::vector< unsigned char > &aucData)=0 |
| this function will be called if a write ram request was received | |
| virtual void | ReadEepromDataCnf (ADDRESS_TYPE nAddress, unsigned int uiLength, const std::vector< unsigned char > &aucData)=0 |
| this function will be called if a read eeprom confirmation was received | |
| virtual void | ReadProgramDataCnf (ADDRESS_TYPE nAddress, unsigned int uiLength, const std::vector< unsigned char > &aucData)=0 |
| this function will be called if a read program confirmation was received | |
| virtual void | ReadRamDataCnf (ADDRESS_TYPE nAddress, unsigned int uiLength, const std::vector< unsigned char > &aucData)=0 |
| this function will be called if a read ram confirmation was received | |
| virtual void | WriteEepromDataCnf (ADDRESS_TYPE nAddress, unsigned int uiLength)=0 |
| this function will be called if a write eeprom confirmation was received | |
| virtual void | WriteProgramDataCnf (ADDRESS_TYPE nAddress, unsigned int uiLength)=0 |
| this function will be called if a write program confirmation was received | |
| virtual void | WriteRamDataCnf (ADDRESS_TYPE nAddress, unsigned int uiLength)=0 |
| this function will be called if a write ram confirmation was received | |
| virtual void | StatusInfo (ADDRESS_TYPE nAddress, unsigned int uiLength, const std::vector< unsigned char > &aucData)=0 |
| this function will be called if a status information was received | |
| void | SetUseCrcCheck (const bool bUseCrc) |
| set use of crc check while receiving data | |
| bool | GetUseCrcCheck (void) const |
| Gives the crc check flag back. | |
Geschützte Attribute | |
| bool | m_bRcvRawData |
| bool | m_bRcvRawDataFinished |
| char | m_sRcvRawDataString [200] |
Private Methoden | |
| void | CallMessageFunc (const CCommandstring &oCommandstring) |
| call the function corresponding to the overgiven commasn block | |
| bool | send_data (CCommandstring::CmdCode Command, ADDRESS_TYPE nAddress, unsigned int uiLength, const std::vector< unsigned char > &aucData) |
| sends the overgiven command to the fps | |
Private Attribute | |
| CStatemaschine | m_oStatemaschine |
| statemaschine to handle command blocks | |
| std::vector< unsigned char > | m_aucReceivedData |
| received data | |
| HANDLE | m_hSendBlock |
| Mutex. Lock to ensure that only one command string will be send at a time. | |
| bool | m_bUseCrcCheck |
| flag : true = use crc check while receiving data | |
| CCOMConnector * | m_pCOMPort |
| use a direct COM port connection for FPS access | |
|
|
call the function corresponding to the overgiven commasn block
|
|
|
get access to the associated COM port
|
|
|
Gives the crc check flag back.
|
|
||||||||||||
|
initialize connection to the gateway
|
|
|
IsConnected returns the connection state of the connection.
Erneute Implementation von CTCPIPComm. |
|
||||||||||||
|
send a read eeprom request use this function to read data from the eeprom of the fps
|
|
||||||||||||||||
|
this function will be called if a read eeprom confirmation was received
Implementiert in Cfps. |
|
||||||||||||
|
this function will be called if a read eeprom request was received
Implementiert in Cfps. |
|
||||||||||||
|
send a read program memory request use this function to read data from the program memory of the fps
|
|
||||||||||||||||
|
this function will be called if a read program confirmation was received
Implementiert in Cfps. |
|
||||||||||||
|
this function will be called if a read program request was received
Implementiert in Cfps. |
|
||||||||||||
|
send a read ram request use this function to read data from the ram of the fps
|
|
||||||||||||||||
|
this function will be called if a read ram confirmation was received
Implementiert in Cfps. |
|
||||||||||||
|
this function will be called if a read ram request was received
Implementiert in Cfps. |
|
||||||||||||
|
implemented pure virtual function from CTCPIPReceive
Implementiert CTCPIPCommReceive. |
|
||||||||||||||||||||
|
sends the overgiven command to the fps
|
|
||||||||||||
|
send a read eeprom confirmation
|
|
||||||||||||
|
send a read program confirmation
|
|
||||||||||||
|
send a read ram confirmation
|
|
||||||||||||||||
|
send a status information command
|
|
||||||||||||
|
send a write eeprom confirmation
|
|
||||||||||||
|
send a write program memory confirmation
|
|
||||||||||||
|
send a write ram confirmation
|
|
|
Set associated COM port parameters. Use this if not the standard communication via TCP/Modem is to be used. Uses a direct communictaion via serial port.
|
|
|
set use of crc check while receiving data
|
|
||||||||||||||||
|
this function will be called if a status information was received
Implementiert in Cfps. |
|
|
close the current connection
|
|
||||||||||||
|
send a write eeprom request use this function to write data to the eeprom of the fps
|
|
||||||||||||
|
this function will be called if a write eeprom confirmation was received
Implementiert in Cfps. |
|
||||||||||||||||
|
this function will be called if a write eeprom request was received
Implementiert in Cfps. |
|
||||||||||||
|
send a write program memory request use this function to write data to the program memory of the fps
|
|
||||||||||||
|
this function will be called if a write program confirmation was received
Implementiert in Cfps. |
|
||||||||||||||||
|
this function will be called if a write program request was received
Implementiert in Cfps. |
|
||||||||||||
|
send a write ram request use this function to write data to the ram of the fps
|
|
||||||||||||
|
this function will be called if a write ram confirmation was received
Implementiert in Cfps. |
|
||||||||||||||||
|
this function will be called if a write ram request was received
Implementiert in Cfps. |
1.3.7