Release notes for the Trumpf TransApp of the ARTIS system
---------------------------------------------------------
Version 3.0.3.5 (20.08.2012)
- if the table top version is invalid a retry of the taple tob software version request will start

Version 3.0.3.4 (08.08.2012)
- segment and table type informations are only send if the Table SW version is known
- correct the statemachine so a not plugged ethernet cable to ARTIS do not affect a hang up of the statemachine
- fixed a critical error with the trap nut error (no table top recognition)

Version 3.0.3.3 (29.2.2012)
- Fixed DEVTMSINTSIEMENS-100: Error 0xF008 (CMD_USER_ERROR_QUICKSTOP_OUT) is only sent once when entering the situation.

Version 3.0.3.2 (27.1.2012)
- the periodical request for all segment information is stopped as soon as a new position is set for one segment

Version 3.0.3.1 (20.7.2011)
- if emergency stop is released, we now wait 5 seconds again until UDP connection is established again

Version 3.0.3.0 (30.6.2011)
- new error code 0xF009 for "resume from emergency stop" instead of 0xF000
- many command line params have been moved to a seperate init file
- the filter can be defined for the CMD messages which should forwarded over the ARTIS interface.
  In this filter up to 255 ranges or single CMD-IDs could be defined
- a new segment information signals if the current position data is valid or not. Only if this flag
  is set, the position data is set to the NULL value
- now also non simple messages could be forwared over the ARTIS interface

Version 3.0.2.8 (20.5.2011)
- timer added who requests the segment status informations at least after 500ms again. 
 
Version 3.0.2.7 (18.5.2011)
- now also the IP-address of the Artis system has to be given by parameter at system start
- support for historic messages activated. During initialization all the historic messages 
  are requested and send to the Artis server
- the debug informations could now be activated with the option "--debug <level>" at program start
- the debug informations are send to sysmsgd!!!
- the shuttle present flag is now interpreted correct
- EINTR is now controlled after write() is called
- in the Socket read function the error code EAGAIN and EINTR is tested
- the first reinit of socket and UDP connections are now done immediately (but not after emergency stop) 


Version 3.0.2.6 (08.03.2011)
- after receiving the system message "DISP_CMD_STMSG_TMPINFO2_TARGETPOS_REACHED" the stop command is 
  not send anymore. Instead the reset position message is send immediately.
 
Version 3.0.2.5 (03.03.2011)
- the next status message is only send if the last was acknowledged or the timeout has expired
- in the status message only the first 21 segments are transfered   

Version 3.0.2.4 (03.02.2011)
- the receive buffer of the socket read function has now a simple ring buffer functionality
- the status message is now send every 140ms or if the status has changed.
  even if the last status package was not acknowledged from the artis server
- the monitoring functions which control the XML protocol and the keep alive handling 
  of the motor controller improved/corrected    
- advanced debug output functionality added
- a help is printed out for the command line options 

Version 3.0.2.3 (20.01.2011)
- functions of "CmdList" only used in debug mode.
  this functions (de-)allocate memory frequently and because of the missing hardware MMU
  the linux kernel interrupts the system regularly when the garbage collector is active
- the TinyXML class is replaced by CString functions to extract the used data from the XML package
- C-String termination after receiving data from a socket now done before a C-String function is called
- wrong check for valid XML "Artis Event Response" resolved
- wrong timeout calculation for the MC "keep alive message" resolved

Version 3.0.2.2 (16.12.2010)
- checks for Null pointer references added
- In case a whole XML-message is not read from the socket in one call, we now wait for a while until 
  the remain part was read or an abort criterion has occurred
- Make file changed; debug Informations removed an optimization set to speed (-03)

Version 3.0.2.1 (1.12.2010)
- if a segment is moving and a lost of the artis-control is detected all segments are stopped 
  immediately
- spelling of table type "unknown" corrected (it was written "unkown")
- all changes from the version 3.0.1.7 until 3.0.1.9 merged
- the timing for the status event is changed, it now is send immediately after new values are 
  received from the KR or a timeout is reached       

Version 3.0.2.0 (19.07.2010)
- the three sockets could be now reconnected and connected without interferences of the other sockets
  the chance to lost the artis communication should be reduced significantly  
- the collision status and motor statuses are not handled anymore by the TransApp





Version 3.0.1.10 (16.12.2010)
- checks for Null pointer references added
- In case a whole XML-message is not read from the socket in one call, we now wait for a while until 
  the remain part was read or an abort criterion has occurred
- Make file changed; debug Informations removed an optimization set to speed (-03)

Version 3.0.1.9 (18.8.2010) 
- more bug fixing for unintended movement

Version 3.0.1.8 (16.8.2010)
- several bug fixes for unintended movement
- changes of the HW signals TUI and "Shuttle present" are now interpreted   
- if a shuttle is removed, all table top informations are collected from the MR

Version 3.0.1.7 (21.7.2010)
- bug fix for unintended movement

Version 3.0.1.6 (06.07.2010)
- bug fix for overflow errors 
- at startup we have to recall all segment informations in any case

Version 3.0.1.5 (26.05.2010) 
- SW OPT Version is not stored in a global variable anymore
- TT SW Version now received and send in the new XML Element <TableTopSW>
- the sequence of SN after startup and detection of new TT has changed. 
  The parallel requests are now removed and all requests are done step by step
- Event telegram is now send again in the correct interval of 250ms

Version 3.0.1.4 (16.03.2010) BRANCH
- reconnect timeout to MC is set to 5 sec. again (Zwangssynchronisierung der Motor abwarten)
- even more detailed informations for the connect error codes 0xF000 and 0xF001
- SN 0xC201 now also sent as error information over the event socket 

Version 3.0.1.3 (18.02.2010)
- reconnect timeout to MC is now 500ms instead of 5 sec.

Version 3.0.1.2 (test version 16.02.2010)
- in the event msg now only one error is send.
- if more than error occur in one 250ms slice, multiply event msg are send
- more detailed informations in case of an MC Connect timeout or Artis timeout error

Version 3.0.1.1 (24.11.2009)
- the speed maximum of segments are now received from MR
- first preparations to handle historic messages
- in the XML event socket the Part_Number, Serial_Number and HW_Versionare are now send in dec format
- calculation of velocity now in integer variables (not in float anymore)
- the minimal speed of 10% removed!

Version 3.0.1.0 (09.11.2009)
- the first preparations regarding the synchronization of received segment statuses and position messages between MR and Artis are now in #ifdef segments for the VD10 branch

Version 3.0.0.0 (21.10.2009)
- no changes

Version 2.12 (09.09.2009)
- the assembly user type (tableSubtyp) is received from MR and send to artis
- improvements if one socked connection failed
- first preparations to handle dynamic speed max. of segments
- first preparations to synchronize segment status and position messages between MR and Artis
- only after real position changes the timeout timer is restarted  

Version 2.11 (19.8.2009)
- At socket error "EAGAIN" the program doesn't terminate anymore
- Now two different flags hold the information how the segment has stopped and how we have to handle the situation. In the case the segment has stopped on it own we just wait until all other segments have stopped. this segment could be started again with a new position! In case all segments should hold triggerd by a STOP command we could not handle new drive commands from artis until the "resetPosition" was handled!
- handling of the break now fail save

Version 2.10 (11.8.2009)
- generated XML output now valid
- opcode handling for break corrected (now only send for max. 500ms and then a stop opcode is send
- more table types added
- normal messages between 0x3000 and 0x3ffff, 0x5000 and 0x5ffff and above 0xf000 are now send also to the artis system over XML in text/decimal form

Version 2.09 (25.6.2009)
- CANOpen state "Fault" added, used if error bit is set for a segment

Version 2.08 (not released)
- even after short disconnections a stop CMD is send to all axles
- all HW status changes / informations are evaluated in a single function
- outcome of the code reviews CR-KR-TA-0001-... to  CR-KR-TA-0005-... are realized
- reset position CMD is now send again after target or end position is reached (bug in MR is corrected)
- all "goto" commands removed
- macro DEBUG_OUT added for output in test mode
- for plate direction type for "unknown" added

Version 2.07 (18.05.2009)
- restart CMD timeout timer if CMD-List is not empty
- stop CMD send after ACK from brake toggle CMD
- reset communication to MR if emergency button is released (bug in MR)
- no reset position CMD if target or end position is reached (bug in MR)
- wait until reset position is ACK before new positions are accepted

Version 2.06 (13.05.2009)
- handling of the break improved, now also fast switched are handled correctly
- timeout handling of missing answers from system messages improved
- handling of reconnection to MR improved

Version 2.05 (20.04.2009)
- Fangbereich entfernt, macht jetzt der MR
- Verbesserungen beim Händling von Kollisionen und Endlagen

Version 2.04 (not published)
- function allSegmentsQsActive() renamed to allSegmentsStoped() and the functionality changed. Now for all segments the Bits SEGMENT_STATUS_MOVING and SEGMENT_STATUS_nQS has to be reset to return TRUE
- the handling of "target reached" and "end point reached" changed. Now the command "POS_FAHRT" is only stopped when the moving Flag SEGMENT_STATUS_MOVING has changed from 1 -> 0
- the lock in ranges has been optimized
//- after receiving system message TARGET_REACHED all segments are recollected from MR
- error messages added for connect timeouts to MC and Artis
- the first informations are not send until all segment informations and table informations (type, orientation and patient orientation) are collected

Version 2.03 (2009/03/20)
- handling of the commands ENABLE_OP and NEW_SET_POINT changed in the way that they are only accepted when the TransApp or MR are readdy to handle them (e.g. waiting for stop)
- handling of the commands QUICK_STOP and DISABLE_OP changed in the way that they are handled immediately and that the corresponding Bit in the drivestate is set

Version 2.02 (2009/03/18)
- handling at "target-reached" and "end position" changed that we only stop the "POS_FAHRT" command if the segment has stopped also
- break changes from ARTIS interface only accepted with active Artis-Bit
- changes in the handling of the DISABLE_OP command when we are in a stop situation
- after receiving the system target reached command all segments are now stopped correctly
- support for the "surgery table interface" test tool improved
- a new set point is only accepted if the break is not in the state "unlocked"
- changes in the brake state lead to a stop of all segments
- handling corrected if a segment is stopped by v=0 and over command DISABLE_OP

Version 2.01 (2009/03/16)
 
Version 2.00  (2009/02/25)
major changes in the TransApp
- state machine changed
- as many timers as possible removed
- handling at the end positions improved
