Protocol : SIEMENS - 3964(R) DUST


 

Parameterization :

CDE adapter :

Modulation mode :

Transmission rates :

Acknowledge-control : 
    

TimeOut :

16 bit Block length :

Data format :
  
  

switch setting  PCM

pulse-code-modulation asynchronous

100 - 115200 baud

This parameter is only required for the two-channel record. In all other cases it must be set on "no".

150 msec ( variable )

yes / no

- Sinaut  FWK 8 / II
- Sinaut FWK 16 / III
- Sinaut FWA

.

Attention

The switch setting "EES" at the CDE adapter ( used as in older LIAN versions ) is no longer allowed to be used. Instead of, a two-channel recording now is implemented.

Data format :

Between MS and RTU information in the form of transmission blocks are interchanged. In monitoring direction several coupled blocks can be transmitted with one transmission block. The data block length occupies 8 bits or 16 bits. Program TRAP knows the structure of the transmission block. The data block length occupies 8 bits or 16 bits. Program TRAP knows the structure of  the transmission block / coupled block. The user has only to select the data format.

Protocol structure

Control
signs
Code
hexadecimal
Description
STX  
  
  

DLE ETB  
  

DLE ETX

DLE
  
   
   
   
  
   

NAK

02  
  
 

10 17  
  

10 13

10
   
  
   
   
  
   

15 

By sending STX transmission is announced. During the time of acknowledgement monitoring an echo is expected. If it is not arriving STX id repeated up two times.

DLE ETB indicates the end of a transmission block. It will follow one block at least.

Indicates the end of a transmission block.

DLE will indicate "ready for reception" after receiving STX and DC2.
DLE also means the positive echo on a correctly received transmission block.
Furthermore DLE initiates the end-control sign ETB or ETX. If DLE happens to occur in the data , DUST 3964 ( R )adds a second DLE to point the receiver to this special case. The receiving partner or program SIMO fades out the additional DLE.

NAK is the negative echo on a block received faulty.

Identification of block end

The block end is identified by the length defined in the data block. After receiving the block length bytes / words it will be checked whether the length is > 1026. If this is true the reception will end with the message "wrong length".

Monitoring times of 3964(R) 

Time of acknowledgement monitoring tQ :

The time of acknowledgement monitoring will be started after transmitting the control signs STX , DC2 , DLE , BCC or DLE ETX BCC.

Time of sign monitoring tZ :

The program controls  the arriving of the single signs by the time constant tZ. If a sign does not arrive within  this  the transmission  will be concluded ; the user is informed by displaying "Time out". In the program LIAN only one common time parameter has to be set for tQ and tZ via the menu item Timeout

Monitoring

One channel recording :

With the monitoring on one channel the program SIMO can not execute a protocol-control ( STX => DLE , ... ). The Timeout must be exactly  set to recognize the beginning of transmission blocks or single control-characters. If errors occur with the record of transmission blocks , the Timeout is probably too high. With 300 baud the setting is about 150msec. The higher the baud rate , the lower the timeout must be set.

The parameter Acknowledge-control must be set to "no" in LIAN

 

Two channel recording :

There are two corresponding channels. It can  be alternative the channels 1 + 2 or 2 + 3. With each first channel the control direction ( RTI => RTU ) and with each second channel the monitoring direction ( RTU => RTI ) is recorded. Thereby the program SIMO executes a protocol- control  ( STX => DLE ). The parameter acknowledge control must be set on "yes"in the program LIAN with the parameterization. The DLE acknowledges on STX or on the transmission block are supervised. The message "*F:Ack-delay !" is shown if the acknowledge is missing. Message to protocol violations are suppressed , when the acknowledge-control is set on "no".

Simulation

In order to work with the program SIMO as counter-station a simulation mode was implemented. Via the commands "rti [ station ] [ fwk ]" the Dust-simulation is started. The parameter [ fwk ] determines the FWK-number which is entered into the transmission block before transmission with FWK16/III. With other data formats it can be inapplicable. Via "rti" a higher priority to the solution of initiation conflicts is assigned to this channel. The setting "rtu" is lower  priory and answers moreover check loops. 

Allocation of TDB buffer

Dust 3964 ( R ) general :
NUM- Commentary -------- Data ( hexadecimal ) ---
480:
481:
482:
STX       480
DLE       481
NAK     15
02
10
15

 

FWK 8 / II :
NUM- Commentary -------- Data ( hexadecimal ) ---
499: Pos. Acknowl.  499 0D 0C 00 04 04 87 07 00 02 00 00 00 A5 00 10 03 00

 

FWK 16 / III :
NUM- Commentary -------- Data ( hexadecimal ) ---
497:
498:
499:  
StR ( CC ) zugesch     497
Test-loop                    498
Positive Quittung         499  
0A 00 00 00 00 05 00 00 22 00 10 03 00
0A 00 00 00 00 05 00 00 02 00 A5 10 03 00
0F 00 00 00 00 0A 00 88 04 00 05 00 00 02 00 A5 10 03 00
Die Sequenz-Nummer wird beim Senden automatisch hochgezählt.

 

Sinaut 8FWA :

The station number handed over as parameter is entered in each telegram and the TFK-number is set correctly. Furthermore telegrams are transmitted automatically when required. The following send buffers are reserved ( These buffers should not be used otherwise ).

Num Commentary -------- STA T D Addr S Data ( hexadecimal ) ---
495
496
497
498
499

Anlaufquittung      495
TFK-Quittung       496
ZX STOP             497
ZF bit                  498
Q,Prüf                 499 

0
0
16
1
1
0
0
0
0
0
0
0
0
0
514
513
782
781
512
0
0
0
0
0
00 00
00 00
1B 10 10 10 10 00 00 00 00
00 00 00 00 00
AA 55
By calling up "rti" or "rtu" again the simulation is ended.

Format output SIMO and TRAP

The output for each channel can be manipulated over the menu item <Format> in the programs SIMO, TRAP and TDEP. To optimise the output one can distinguish between three plain text settings for protocols with long telegrams.

Plain text F 1

Plain text
F 2
 

Plain text
F 3
Output takes place in hexadecimal description.

Output takes place in protocol specific Plain text transmission blocks are divided in coupled blocks.

At the moment not used ( no output ).
If the PC has dynamical problems you should choose "Plain text F1".

Transmission errors

*F:Sequence : Sequence-number with the reception is not sequence.
*F:Blocklength :
   
The DBL-information in the block doesn't correspondent to the really received length.
*F:BCC : The telegram check sum in the BCC-byte is incorrect.
*F:DLE : DLE is missing in the transmission block ( DBL + 1 ).
*F:ETX : ETX is missing in the transmission block ( DBL + 2 ).
*F:NAK : It was answered with NAK instead of DLE.
*F:Acknowledge : It was not answered with DLE.

 


MAYR Software

Wuerzburger Ring 39,  D 91056 Erlangen

Manual LIAN DOS


LIAN DOS Protocol Simulator and Analyzer
© Copyright 1991, 1996, 2001, 2006-2010 by Werner Mayr. All Rights reserved.