IEC 60870-5 Source Code Libraries

For 25 years, Triangle has provided the diagnostic tools and protocol expertise to  our customers to support all their conformance  & certification needs. We will work with you to ensure that your implementation of our source code libraries will pass all industry related certification and conformance testing.

Related Products

What's New

Current Release: v3.25
Release Date:  August 2019

Newest Features in this Release

  • Created an implementation guide for SCLs. 
  • Return the intermediate response statuses during command processing when ActTerm is ON. 
  • Added configuration to M104 to resolve an issue with the Secure Authentication Specification where M104SA sends a CTSTA (Test With Time) as the first message before beginning aggressive mode. If the time on the master and slave is out of sync this command may fail. In m104 - initTestCTSNA allows CTSNA (Test Without Time) to be sent if supported instead. 
  • he SCL has been updated to work with OpenSSL 1.1.x while retaining backward compatibility with version 1.0.x. For Windows builds a new define has been added, TMWCNFG_USE_OPENSSL_1_0_2 that must be defined when running with the legacy version. 
  • The wintooltkit samples now include TLS support. The samples include certificates that are compatible with those used by the test harness and the default configurations for both Linux and Windows are set to use them. Only a single define USE_TLS which defaults to false needs to be updated to configure the sample to use TLS for both DNP and 101/4 Secure Authentication builds. 
  • WinIoTarg now uses the Channel thread to check for received data eliminating the need for a separate CheckForInput thread/class. 
  • Update Linux target layer to use consistent logging technique.
  • LinIoTarg now creates a thread per channel (when not configured to run in polled mode). Once the channel has been opened, this thread will establish/listen for the channel connection and wait on the data socket for incoming data. This eliminates the latency when polling for received data. Also, locking has been reduced by eliminating the linked list of TCP Channels which required locking each time the list was accessed. .
  • Updated linTCP_transmit to check the error code returned by send. If its EAGAIN indicating that the socket is busy, wait for the socket to become writable and retry the send instead of disconnecting immediately. 
  • The Linux target layer has been updated to provide a basis for porting a target layer to another OS: 

    • A tmwtargcnfg.h file has been added to both the Linux and Windows target layer. This configuration file defines which features a given target layer supports. This will allow customers porting the Linux target layer to other OS's to easily identify code that may be unnecessary for their application and remove it instead of wasting time porting it. Target layer features currently defined in this file are:
    1. RS232
    2. TCP
    3. UDP (Only required for DNP)
    4. TLS
    5. EPOLL

  • In addition, SampleIoTarg has been created. This Sample target layer is a target layer example that can be compiled and linked with the wintoolkit C example programs that has no OS dependencies. It can be used as a baseline target layer to port the library to another OS or RTOS.  It can be built by specifying 
    build=sample from the Linux command line.

Key Additions to Recent Releases

v3.24
  • Made improvements to target layer timer examples.

  • Implemented event driven receive data in winiotarg so channels don’t have to be polled. This is also available in liniotarg.

  • Updated the Linux target layer, replaced LINIOCNFG_EVENT_DRIVEN conditional with polledMode configuration.

  • Support for epoll has been added to the Linux target layer. This support is controlled by the preprocessor conditional LINIOTARG_SUPPORT_EPOLL. If this is not defined, select is used. The select option has been left in place so we continue to have an example that can be ported to OS’s that do not support epoll.

  • Include files to allow SCL customers to generate Windows project files for different versions of Visual Studio.

  • Support for 64-bit versions of the .NET Protocol Components has been added.

  • Added configuration for the generation of diagnostic messages per sector, session, and channel to allow maximum flexibility. Maximum performance can be achieved by configuring each mask to zero so no diagnostic messages are generated, thus no messages would be forwarded to the .NET code. This also would allow a user to enable diagnostic messages on a single sector, session, etc. in a large configuration on a problem connection and avoid having to filter out diagnostic messages from all other connections.

  • Updated database wrapper header files and removed the /clr flag from the 870Managed and utilsManaged projects.

  • Updated simulated databases to use this diagnostic function, i14diag_securityStatisticString, instead of each maintaining its own copy.


v3.22

  • Improved performance of database interface and other library functions
  • Restructured directories and sample code for Windows® and Linux® target layer libraries
  • Expanded Windows target layer support for resolving IP address from destination host name
  • Updated Linux sample makefiles to generate debug information by default
  • 101/104: Added multiple enhancements to Secure Authentication library and documentation
  • 101/104: Updated IEC 60870-5 (101/104) Master CI Guide to better reflect capabilities of library
  • 104: Added support for IPv6 in Linux target layer
v3.21
  • 101/104: Added support for Secure Authentication for IEC 60870-5 (-101 and -104) according to the IEC 60870-5-7 standard based on the cyber-security standard IEC 62351 (Parts 3, 5, and 8)
  • 101/102/103/104: Improved Linux makefiles and Windows solution and project files
  • 101/104: Improved integration with OpenSSL library
  • 101/104: Added call to the user callback function for master when ACT CON response is received in response to CICNA and CCINA requests
  • 101/104: Added call to the user callback function for master when ACT TERM response is received from each sector in response to CICNA and CCINA broadcast requests, not just the final ACT TERM response
  • 104: Improved handling of TCP connection loss for controlled station (outstation)
v3.20
  • 101/104: Improved support for creating a redundant channel
  • 101: Corrected an error in Delay Acquisition, where the time was calculated incorrectly
  • 101/104: Fixed issue with The Double Transmission feature
  • 101/104: Corrected an issue when using unique functions for cdc and crc status functions and using the automatic generation of 101/104 protocol events with COT Remote when a control is received
  • 101: Added support in .NET library for case when user overrides control database but not monitored point database
v3.19
  • 101/104: Modify code to allow use of either UNICODE or MBCS character set
  • 101/102/104: Changed master 101/102/104 to ignore the COT "test bit". Master will indicate the COT test bit was set in the diagnostics messages, then mask off that bit and process the COT normally
  • 101/104: Improved Master 101/104 to better enforce rules for responses to Select requests
  • 104: Add configuration for time tagged requests with time in the future to be allowed.
  • 104: Validate time tagged requests with time in the future not just expired time and expand maximum allowed “age” in the past or in the future of allowed commands.
  • 101: Added feature to allow controlled station to support multiple requests of the same Type Id to be processed simultaneously
v3.18
  • Added more checking to discard improperly formatted messages
  • Allow compile time choice of using either standard or Microsoft “safe” string functions that include the length of the buffer to be written to (ie strcpy or strcpy_s)
  • Only generate cyclic and background data when online. This was done to improve cyclic behavior when the connection is lost
  • 101 and 104: Enhanced examples to show the different addEvent possibilities and use the sector time instead of the system time
  • 104: Added validating state for conformance testing - disconnect if I or S Frame is received when link is stopped

for IEC 60870-5-101:
v3.12 - Added support for Peer (dual mode) session with the same address and support for Double Transmission. v3.07 - Added sample Linux and Window target implementation. v3.01.01 - Added ability to keep time on a per-session basis. v3.00.45 - Added support for Gasunie PIDs. v3.00.38 - Added ability to display Structured IOAs.

for IEC 60870-5-102:

v3.07 - Added sample Linux and Window target implementation.
v3.01.01 - Added ability to keep time on a per-session basis.
v3.00.25 - Added ability for Master to queue commands.

for IEC 60870-5-103:
v3.07 - Added sample Linux and Window target implementation.
v3.01.01 - Added ability to keep time on a per-session basis.
v3.00.45 - Added support for Areva private ASDUs and for Siemens SIPROTEC private ASDU 205.
v3.00.29 - Enhanced support for multiple threads.
v3.00.25 - Added ability for Master to queue commands.
v3.00.22 - Added support for ASDU 124 Procomoe specification.

for IEC 60870-5-104:
v3.12 - Added support for Double Transmission.
v3.07 - Added sample Linux and Window target implementation.
v3.01.01 - Added ability to keep time on a per-session basis.
v3.00.45 - Added support for Gasunie PIDs.
v3.00.38 - Added ability to display Structured IOAs.
v3.00.35 - Added memory alignment support.
v3.00.32 - Added support for multiple threads.
v3.00.25 - Added ability for Master to queue commands.

 



 

 TMWLogo

 
Quick Links  Contact Us:
Home
Products
Videos
Training
Support
Reference
About Us

Triangle MicroWorks, Inc.
Sales: +1 919.870.5101
Support: +1 919.781.1931
Fax: +1 919.870.6692
sales@TriangleMicroWorks.com
support@TriangleMicroWorks.com

Follow us on YouTube Follow us on Facebook Visit us on LinkedIn Follow us on Twitter

 
Copyright © 2013-2019 Triangle MicroWorks, Inc. All Rights Reserved