Subversion Repositories Projects

Rev

Rev 449 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 449 Rev 451
Line 21... Line 21...
21
cConnection::cConnection()
21
cConnection::cConnection()
22
{
22
{
23
    i_Type = 0;
23
    i_Type = 0;
24
 
24
 
25
    TTY = new ManageSerialPort();
25
    TTY = new ManageSerialPort();
26
    o_Timer = new QTimer(this);
26
    //o_Timer = new QTimer(this);
27
 
27
 
28
    connect(o_Timer,   SIGNAL(timeout()),       SLOT(slot_Timer()));
28
    //connect(o_Timer,   SIGNAL(timeout()),       SLOT(slot_Timer()));
29
 
29
 
30
    TTY->setBaudRate(BAUD57600);   //BaudRate
30
    TTY->setBaudRate(BAUD57600);   //BaudRate
31
    TTY->setDataBits(DATA_8);      //DataBits
31
    TTY->setDataBits(DATA_8);      //DataBits
32
    TTY->setParity(PAR_NONE);      //Parity
32
    TTY->setParity(PAR_NONE);      //Parity
33
    TTY->setStopBits(STOP_1);      //StopBits
33
    TTY->setStopBits(STOP_1);      //StopBits
Line 240... Line 240...
240
    return true;
240
    return true;
241
}
241
}
242
 
242
 
243
void cConnection::stop_ReSend()
243
void cConnection::stop_ReSend()
244
{
244
{
245
    o_Timer->stop();
245
    //o_Timer->stop();
246
}
246
}
247
 
247
 
248
void cConnection::slot_Timer()
248
void cConnection::slot_Timer()
249
{
249
{
250
        switch(i_Type)
250
        switch(i_Type)