|
DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
|
PROFINET DCP (Discovery and Configuration Protocol) frame codec (DETWS_ENABLE_PROFINET). More...
Go to the source code of this file.
PROFINET DCP (Discovery and Configuration Protocol) frame codec (DETWS_ENABLE_PROFINET).
DCP is how PROFINET IO-Devices are discovered and named on the wire before an IO connection exists. It rides raw L2 (ethertype 0x8892, PROFINET RT; see services/rawl2) with a fixed 10-octet frame header followed by DCP blocks:
Header: frameID(2) serviceID(1) serviceType(1) xid(4) responseDelay/reserved(2) dataLength(2) Block: option(1) suboption(1) blockLength(2) [blockInfo(2) for Set/Get responses] value...
FrameIDs: 0xFEFE Identify-request (multicast), 0xFEFF Identify-response, 0xFEFD Get/Set. This builds the DCP header + blocks and parses them (walking each block via a callback), so a device answers Identify (with its NameOfStation / IP / device id) and handles Set (assign name/IP). Pure, zero heap, host-testable; the raw-L2 transmit is the device step.
Definition in file profinet.h.