Professional Documents
Culture Documents
Simulation Tools.
Developed for RS-232 and TCP/IP-Connections
TABLE OF CONTENTS................................................................................................ 2
INTRODUCTION ........................................................................................................ 2
ADDITIONAL INFORMATION.................................................................................. 8
Introduction
ASTM (American Society for Testing and Materials) is the foremost American
standardization organization.
ASTM defines two Standards for communication between laboratory instruments and
computer systems:
E 1381 – 95 Low-Level Protocol: to Transfer Messages Between Clinical Laboratory
Instruments and Computer Systems.
E 1394 – 97 High-Level Protocol: Transferring Information Between Clinical
Instruments and Computer Systems: E 1394 usually uses E 1381
protocol for low-level communication.
ASTM standards are the standards that are mostely used worldwide in clinical
laboratory instruments for communication with the host systems such as LIS and
LIMS (Laboratory Information Management Systems).
ASTM Connector provides drivers for both ASTM low level and ASTM high level.
• ASTM High-Level Driver (AstmDriver)
Driver for ASTM E 1394 standard.
Used to transfers patient-oriented laboratory data in hierarchically organized
records with several fields.
AstmDriver AstmDriver
AstmComm AstmComm
for RS-232 for TCP/IP
// create a message
CAstmMessage* pMsg = m_pAstmDriver->createMessage();
// specify all tests for all specimen of the patient “My Patient”
pRequest->getStartingRange().getPatientID().SetValue(“My Patient”);
pRequest->getEndingRange ().getPatientID().SetValue(“My Patient”);
pRequest->getStartingRange().getSpecimenID().SetValue(“ALL”);
pRequest->getEndingRange ().getSpecimenID().SetValue(“ALL”);
pRequest-> getUniversalTestID().getLocalCodes().setValue (“ALL”);
// send message
pAstmDriver->sendMessage( pMsg );
The low-level driver allows for transfer of ASCII data according to the standard. The
client buffer length can be of arbitrary size. The driver divides it in pieces of the
maximal frame size that is allowed by the standard and transfers each frame to the
host. The driver sends all the necessary control codes, guards all timeouts and sends
retries if necessary.
The driver works completely asynchronously. The client can send any number of
messages without waiting for a result.
Receiving messages and acknowledge of successful transmissions are notified by
callbacks to the client implementations of the driver-defined callback classes.
Error recovery allows a client to continue after a transmission failure. He can choose
to retry the failed message, continue with the next message or to discard all
messages remaining in an idle state.
ASTM Simulator is a flexible and very powerful productivity tool for prototype testing,
system verification, system installation and troubleshooting ASTM communication
interfaces.
The powerful ASTM simulator has a complete Windows user interface with
document/view architecture, in which you can compose messages by just completing
forms offering virtually all possible data fields. Messages can be viewed in a tree
representing the data record hierarchy and in a tabbed dialog showing the content of
the selected record.
With ASTM Simulator both sides, host and instrument, can be simulated. Messages
can be created, edited, transmitted, received, saved (to file) and loaded (from file).
Tx: -ENQ-
Rx: <ACK>
Tx: -STX-1H|\^&||||||||||P||20000312134447-CR--ETX-C4-CR--LF-
Rx: <ACK>
Tx: -STX-2P|1-CR--ETX-3F-CR--LF-
Rx: <ACK>
Tx: -STX-
3O|1|0102220223||^^^QUI^^\^^^INR^^\^^^NA^^\^^^K^^\^^^KREA^^\^^^GLU^^\^^^CRP^^\^^^GGT^^\^^^
SDICH^^\^^^SPH^^\^^^SLC^^\^^^SNIT^^\^^^SPROT^^\^^^SGLU^^\^^^UPEP^^\^^^SKET^^\^^^UREP^^\^^
^SUROB^^\^^^UEC^^\^^^ULC^^\^^^SBIL^^\^^^SEC^^\^^^UZYL^^\^^^UMO-ETB-50-CR--LF-
Rx: <ACK>
Tx: -STX-4RG^^\^^^UHEF^^\^^^UKRI^^\^^^USCH^^||||||||||||||-CR--ETX-8D-CR--LF-
Rx: <ACK>
Tx: -STX-5L|1|N-CR--ETX-08-CR--LF-
Rx: <ACK>
Tx: -EOT-
Tx: -ENQ-
*** ASTMComm Error 3: Comm party does not respond
Tx: -EOT-
ASTM Simulator can be configured to use an available COM port. All communication
parameters like baud rate, number of data bits, etc. can be configured on the fly.
ASTM Simulator allows to be started in more than one instance to communicate
through two serial ports of the same computer (for testing purposes).
HEDONICS Management AG / Zurich, Switzerland / www.hedonics.ch 7/8
For the simulation of low-level communication, low-level protocol strings can be
entered directly or uploaded from a data file.
Additional Information