github rtlabs-com/p-net public/v2.0.0
v2.0.0 (public)

one hour ago

Summary

This release extends P-Net with support for network and system redundancy (MRP and AR sets), dynamic reconfiguration and Device Access, and adds preliminary support for the Process Automation (PA) Profile. Frame handling has been reworked to be more robust against malformed packets, and a number of conformance related issues have been fixed.

New features

  • Media Redundancy Protocol (MRP) client
  • System redundancy with AR sets (S2)
  • Dynamic reconfiguration
  • Device Access
  • Parameter sequence handling (PrmBegin/PrmEnd)
  • Combined object container
  • Multicast pruning (filtering only)
  • Additional alarm and application callbacks
  • Process Automation (PA) Profile support, including profile-specific record data handled by the application (preliminary)
  • Software bill of materials (SBOM) for release archives
  • Segmented frame buffers. A frame no longer has to fit in one buffer, so lwIP can be configured with smaller pbufs that are chained for larger frames

Changes

  • Identification and maintenance data owned by the application
  • Frame parsing and construction moved to the platform abstraction layer. Frame buffers are only accessed through pnal_buf_* functions, so a port can use its own buffer type.
  • Platform abstraction layer extended with socket and background worker configuration
  • Received frames that cannot be parsed are dropped, and frames that do not fit in the buffer are not sent
  • LLDP time to live is 21 seconds instead of 20, as the PROFINET test specification requires. Neighbors keep the LLDP data of the device one second longer.
  • Sample application no longer reports an error when output data is read before the first frame from the PLC
  • Documentation restructured, with new security documentation and updated rt-kernel instructions

Breaking changes

Applications and porting layers written for version 1.0 must be updated. The sample application in samples/pn_dev shows the changes needed in an application, and the ports in src/ports the changes needed in a porting layer.

Application API (pnet_api.h):

  • The application owns the I&M data. im_0_data to im_4_data are removed from pnet_cfg_t. Implement read_im_0_cb to read_im_4_cb and write_im_1_cb to write_im_4_cb. Use pnet_load_im() and pnet_save_im() to store I&M1 to I&M4. To keep the data that version 1.0 stored, load the file pnet_data_im.bin. See app_im.c in the sample application.
  • The product name moved to product_info.name in pnet_cfg_t. product_info also holds the order ID, serial number, hardware revision and software revision.
  • pnet_plug_submodule() has a new flags argument. Plug the DAP identity submodule with PNET_SMF_IM_CARRIER | PNET_SMF_IM_DEVICE_REP, and other submodules with 0 unless they carry I&M data.
  • pnet_write_ind has a new prm_flag argument.
  • sm_released_cb and pnet_sm_released_cnf() are renamed to sm_activated_cb and pnet_sm_activated_cnf(). The callback is also needed if the application plugs or pulls submodules during a connection.
  • pnal_cfg in pnet_cfg_t is a pointer. The configuration of the background worker thread moved from pnal_cfg_t to bg_worker_thread in pnet_cfg_t.
  • PNET_ERROR_CODE_1_DCTRL_FAULTY_CONNECT_SUBMODLIST is renamed to PNET_ERROR_CODE_1_DCTRL_FAULTY_SUBMODLIST.

Build options:

  • PNET_MAX_AR is replaced by PNET_MAX_IO_AR and PNET_MAX_DA_AR. PNET_MAX_AR is still accepted, with a deprecation warning.
  • PNET_OPTION_PARAMETER_SERVER, PNET_OPTION_IR, PNET_OPTION_REDUNDANCY, PNET_OPTION_AR_VENDOR_BLOCKS and PNET_OPTION_MC_CR are disabled by default, as they are only partly supported. Enable them if needed.

Porting layer (pnal.h), see Porting the platform abstraction layer:

  • pnal_buf_t is defined by the port and accessed only through functions. Implement pnal_buf_read(), pnal_buf_write(), pnal_buf_fill(), pnal_buf_compare(), pnal_buf_get_size() and pnal_buf_set_size().
  • Implement pnal_get_md5_digest(). src/ports/common/pnal_common_md5.c can be used.
  • The UDP functions use pnal_socket_t instead of uint32_t.
  • pnal_thread_cfg_t is defined in pnal.h. Remove it from pnal_config.h.
  • With PNET_OPTION_MRP, implement the pnal_mrp_* functions. With PNET_OPTION_SECURITY_LEVEL_1, implement pnal_snmp_configure().

Issues fixed

ID Summary Component Severity
2732 p-net DCP Identify response sends a non-zero padding byte in the DeviceRole block P-Net minor
2730 p-net answers a refused IODWrite with ErrorCode PNIO instead of IODWriteRes P-Net normal
2729 p-net sends diagnosis alarms when pf_diag_add() is called with an unchanged diagnosis P-Net normal
2728 p-net resets the port diagnosis of all ports at every Connect P-Net normal
2727 p-net sets the ChannelDiagnosis alarm specifier for diagnosis that is not a fault P-Net normal
2701 p-net AlarmAck is not delivered to ALPMI if the local transport ACK send fails, later alarms are blocked P-Net normal
2537 p-net wont build with LOG_LEVEL_DEBUG P-Net minor
2503 Error in handling of IODWriteMultipleReq P-Net normal
2501 Wrong block sent in DCP Hello request P-Net normal
2499 Wrong size checked for received DCP Set request with FullIPSuiteBlock P-Net normal
2275 Endianness confusion in fragmented RPC responses P-Net normal

Conformance tests

Test Tool Version Result
PROFINET Test Bundle 2.46.0.205 Pass1

Footnotes

  1. Pass with hints in DHT - Scenario 1 (CLRPC) due to ETS limitations. ↩

Don't miss a new p-net release

NewReleases is sending notifications on new releases.