Обновление
This commit is contained in:
parent
bf9a9e35f7
commit
36e29c9f14
|
|
@ -22,7 +22,8 @@
|
||||||
|
|
||||||
#define LEN_DEBUG_TP_BUFF 128
|
#define LEN_DEBUG_TP_BUFF 128
|
||||||
|
|
||||||
#define timeout_StMin 25
|
#define timeout_StMin 20 // Сепаратор между многокадровыми сообщениями
|
||||||
|
#define timeout_Br 10 // Перед отправкой FlowControl (для получения остальных данных)
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
TP_TYPE_FRAME_SF = 0,
|
TP_TYPE_FRAME_SF = 0,
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ uint16_t sendFlowFrame(tCanSerialPortFrameTp *env, uint32_t id, uint32_t timeout
|
||||||
frame->blockSize = 0;
|
frame->blockSize = 0;
|
||||||
frame->timeST = 0;
|
frame->timeST = 0;
|
||||||
|
|
||||||
SystemDelayMs(timeout_StMin); // !!!
|
SystemDelayMs(timeout_Br);
|
||||||
uint16_t sent = env->ioCanFrame->transmit(env->ioCanFrame->env, (uint8_t *) frame, 8, id,
|
uint16_t sent = env->ioCanFrame->transmit(env->ioCanFrame->env, (uint8_t *) frame, 8, id,
|
||||||
PROTOCOL_CAN_TYPE_UDS, timeout);
|
PROTOCOL_CAN_TYPE_UDS, timeout);
|
||||||
|
|
||||||
|
|
@ -142,7 +142,7 @@ uint16_t sendConsecutiveFrame(tCanSerialPortFrameTp *env, uint8_t *data, uint16_
|
||||||
|
|
||||||
memcpy(&frame->data[0], data, size);
|
memcpy(&frame->data[0], data, size);
|
||||||
|
|
||||||
SystemDelayMs(timeout_StMin); // !!!
|
SystemDelayMs(timeout_StMin);
|
||||||
|
|
||||||
uint16_t sent = env->ioCanFrame->transmit(env->ioCanFrame->env, (uint8_t *) frame, 8, id,
|
uint16_t sent = env->ioCanFrame->transmit(env->ioCanFrame->env, (uint8_t *) frame, 8, id,
|
||||||
PROTOCOL_CAN_TYPE_UDS, timeout);
|
PROTOCOL_CAN_TYPE_UDS, timeout);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue