TEST-TRACK 3.10.0
| Hans Roelvink
Introduction
The new TEST-TRACK 3.10.0 release includes new functions with regard to the Test Description Language, Command Editor, Manual Screen, Log Screen and Batch Run.
UART
- More configuration options for the UART. It is now possible to configure the UART with the usual options:
- Data bits can be configured to be 7 or 8,
- Parity can be configured as Odd, Even, or None and
- stop bits to be 1 or 2
Furthermore the allowed baud rate is increased to a maximum of 115,200. - UART Manual Packet mode added
Serial reception by UART was thus far limited to automatic mode. The Manual reception was added. Now if one sets RxMode to manual, the received packet will be available thought the TEST_SERIALFIELD command.
The CONFIG_SERIAL command has been updated to include these optional settings.
CONFIG_SERIAL [ 1 ]
BAUDRATE = 115200, DATABITS = 8, PARITY = NONE, STOPBITS = 1,
TXMODE = MANUAL, RXMODE = MANUAL,
RXTHRESHOLD = 32, RXTIMEOUT = 10,
STXMODE = OFF, TERMINALMODE = CRLF ; - More flexible WaitRx command
The WAITRX command waits for the occurrence of a Rx event. Until now events occurring before the start of the command were automatically cleared before starting to wait. When working with auto TxMode is can cause the unintended clearing of a reception event.
Now the possibility is added to specify whether the event is cleared before or after the waiting for the event.
WAITRX [ #UART_PORT ]
#RXTIMEOUT_VAR,
CLEAR = AFTER
ELSE IGNORE, "TIMEOUT OCCURRED" ;
Manual Screen: UART Terminal
- Rudimentary terminal functionality was added under the UART tab in the manual screen. One can use ASCII and escape characters like '\x0D' or '\r' in the line edit en press send to inject them into the transmit buffer.
New I2C Transceive command
- The separate I2C commands (START/WRITE/READ/STOP) that are parsed by the interpreter are relayed by the TCC card with some delay, which can be as high as 80ms.
Mostly, this poses no problems, but in some cases there are some tight timing constraints. As in for example the SMBus protocol, one needs to account for a low clock timeout of 35ms or even lower.A new command was added to the TDL language to be able to send a certain series of I2C commands. This series starts with a START condition and ends with a STOP. In between one can send up to 20 bytes of data and then receive up to 20 bytes.
#read_str = I2C_TRANSCEIVE [ 1 ]
TX = "TxMessage", RXSIZE = #Rxsize, ACK = OFF
ELSE ABORT, LOG = ON ;
Multiple Byte I2C commands.
- It is now possible to send and receive multiple bytes in single commands.
I2C_WRITE [ #Channel ] = #Str ELSE ABORT;
VAR #read_data = “”;
#read_data = I2C_READ [ #Channel ] SIZE = #n, ACK = OFF;
Command editor
- If the mouse is hovered about the command list drop down, a tool tip is displayed to show the complete command.
- Opening the command editor is now done by double clicking on a command from the command list on the left side of the screen is. After that one can change the selected command by a single mouse click.
Log screen
- The size of the log screen font can be changed with the mouse scroll-button whilst pressing the Ctrlbutton. To go back to the default font size, press Ctrl-0 (zero).
- All text can be selected with Ctrl-a.
Batch run in user 'Developer' mode.
- When running a batch in developer mode, the option is added to halt the execution when a failure occurs. This can be useful for instance when doing a burn in test.
- For the same reason another option is added to automatically create a backup of the log file (TTlog.txt) in the sub folder named 'Log Files' in the scripts folder. This option can be set in the Options menu under the tab Test Execution.
Bug fixes
- While communicating over the TCC's UART spuriously loss of bytes occurred.
- The UARTs RxThreshold and RxTimeout can not be over 255, although it was not verified.
The CONFIG_SERIAL command has been updated to include these optional settings.