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_datatoim_4_dataare removed frompnet_cfg_t. Implementread_im_0_cbtoread_im_4_cbandwrite_im_1_cbtowrite_im_4_cb. Usepnet_load_im()andpnet_save_im()to store I&M1 to I&M4. To keep the data that version 1.0 stored, load the filepnet_data_im.bin. Seeapp_im.cin the sample application. - The product name moved to
product_info.nameinpnet_cfg_t.product_infoalso holds the order ID, serial number, hardware revision and software revision. pnet_plug_submodule()has a newflagsargument. Plug the DAP identity submodule withPNET_SMF_IM_CARRIER | PNET_SMF_IM_DEVICE_REP, and other submodules with0unless they carry I&M data.pnet_write_indhas a newprm_flagargument.sm_released_cbandpnet_sm_released_cnf()are renamed tosm_activated_cbandpnet_sm_activated_cnf(). The callback is also needed if the application plugs or pulls submodules during a connection.pnal_cfginpnet_cfg_tis a pointer. The configuration of the background worker thread moved frompnal_cfg_ttobg_worker_threadinpnet_cfg_t.PNET_ERROR_CODE_1_DCTRL_FAULTY_CONNECT_SUBMODLISTis renamed toPNET_ERROR_CODE_1_DCTRL_FAULTY_SUBMODLIST.
Build options:
PNET_MAX_ARis replaced byPNET_MAX_IO_ARandPNET_MAX_DA_AR.PNET_MAX_ARis still accepted, with a deprecation warning.PNET_OPTION_PARAMETER_SERVER,PNET_OPTION_IR,PNET_OPTION_REDUNDANCY,PNET_OPTION_AR_VENDOR_BLOCKSandPNET_OPTION_MC_CRare 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_tis defined by the port and accessed only through functions. Implementpnal_buf_read(),pnal_buf_write(),pnal_buf_fill(),pnal_buf_compare(),pnal_buf_get_size()andpnal_buf_set_size().- Implement
pnal_get_md5_digest().src/ports/common/pnal_common_md5.ccan be used. - The UDP functions use
pnal_socket_tinstead ofuint32_t. pnal_thread_cfg_tis defined inpnal.h. Remove it frompnal_config.h.- With
PNET_OPTION_MRP, implement thepnal_mrp_*functions. WithPNET_OPTION_SECURITY_LEVEL_1, implementpnal_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
-
Pass with hints in DHT - Scenario 1 (CLRPC) due to ETS limitations. ↩