Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

add smart-tx function #112

Closed
wants to merge 5 commits into from
Closed

Conversation

susisstrolch
Copy link

Add Smart-Tx function
What Smart-Tx does:
Characters are send in loopback mode, w/o any delay. Waits until the send char (incl. ) is received. After the whole telegram is send out we expect to receive the whole telegram echo from EMS busmaster.

Because we monitor the send chars via loopback, we can precisely determine the required length for a w/o creating 'ghost characters'.

Smart-Tx is enabled by setting EMS_Sys_Status.emsTxDelay to 2. All other values will keep the old behaviour. So a non-intrusive switch should be possible.

proddy and others added 5 commits May 11, 2019 12:35
- fix typo - replace emsaurt_tx_poll by emsuart_tx_poll
- smart tx - enabled by EMS_Sys_Status.emsTxDelay == 2
  use loopback to send in burst mode
- change emsuart_tx_poll to use emsuart_tx_buffer
- encapsulate uart_swap in #ifndef NO_UART_SWAP (private use)
@proddy
Copy link
Collaborator

proddy commented May 21, 2019

wonderful, you beat me too it! I'll merge and run some tests on my side.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants