Skip to main content

Mailbox Gateway

The mailbox gateway exposes the object dictionaries of the master and the slaves over UDP to external diagnostic tools, per ETG.8200.

Access through master.mailboxGateway().​

It serves external ETG.8200 diagnostic tools and most applications do not need it; to read and write the object dictionary from inside an application, use the master object dictionary and CoE interfaces directly.

Service form

UDP server, frame parsing and construction, routing, Discovery and statistics are all provided by the SDK; public method names / parameters / return types stay stable. The master number is master.MasterIndex (1-based), and the gateway allocates its port from it.

ETG.8200 standard

The mailbox gateway service conforms to the ETG.8200 standard, uses the standard UDP port 0x88A4 (34980), and the frame structure follows ETG.8200 Table 1.

Service acquisition and lifecycle​

master.mailboxGateway()​

public MailboxGatewayService mailboxGateway()

Obtain the mailbox gateway service instance of this master (com.darra.ethercat.master.MailboxGatewayService). Repeated calls on the same master return the same instance.

Returns

  • MailboxGatewayService — the mailbox gateway service instance of this master

Throws

  • IllegalStateException — the master has been released or is shutting down

Service registration / deregistration: the Java side has no separate registration or deregistration API. The gateway lives with the master lifecycle: master.close() calls stop() automatically and deregisters the instance; to stop it earlier, just call stop().

ActionBehavior
master.mailboxGateway()Creates and caches the instance lazily; does not start the service
gateway.start()Starts the UDP service; idempotent if already running
gateway.stop()Stops the service; if it has not fully stopped, the "retry pending" state is kept
master.close()Calls stop() automatically and deregisters the instance

Service control​

CategoryMethodTypeRead/writeDescription
Servicemaster.mailboxGateway()MailboxGatewayServiceread-onlyObtains the gateway service instance of this master; the same instance for the same master
PortgetPort() / setPort(int)int / voidread/writeDefault 34980 + max(0, 主站号 - 1) (master 1 is 0x88A4 / 34980); while running, getPort returns the port actually bound; the port can only be set before start
Running stateisRunning()booleanread-onlyWhether the service is running; a failed query is treated as not running
Start/stopstart()voidwrite-onlyStarts the service (throws IOException on a port binding failure / uninitialized master / the previous instance not fully stopped)
Start/stopstop()voidwrite-onlyStops the service; waits up to 3 s to confirm it stopped, and if it did not, keeps the retry-pending state
StatisticsgetStatistics()Statsread-onlySnapshot of send/receive and routing counters; returns a snapshot of all 0s when reading fails
StatisticsresetStatistics()voidwrite-onlyClears all statistics counters (the port and running state are not affected)

getPort() / setPort(int)​

public int getPort()
public void setPort(int port)

UDP port number. Default 34980 + max(0, 主站号 - 1): master 1 is the ETG.8200 standard port 0x88A4 (34980), master 2 is 34981, and so on.

Parameters

  • port (int) — port number, valid range 0..65535, must be set before start()

Returns

  • getPort() — while running, returns the port actually bound; when not running, returns the configured port; on a query exception or when the actual port is unknown, it also returns the configured port

Throws

  • setPort(int) — throws IllegalStateException while the service is running (the port cannot be changed at runtime)
  • setPort(int) — the master has been released or is shutting down, throws IllegalStateException
  • setPort(int) does not validate the port range; an out-of-range port throws IllegalArgumentException at start()

The port is bound strictly by the service: if it cannot be bound, start() fails and never switches ports silently.

caution

The port number must be set before the service starts.

isRunning()​

public boolean isRunning()

Whether the service is running.

Returns

  • boolean — true = running

Failure return semantics: a query exception is treated as "not running", returns false and logs an ERROR, without throwing.

start()​

public void start() throws IOException

Starts the mailbox gateway service.

Returns — none (returns on success, throws on failure)

Throws

  • IOException — start failed (possible causes: master not initialized, port in use, the previous stop has not completed, gateway initialization failed; if the previous stop() did not complete, the exception message includes a retry hint)
  • IllegalStateException — the master has been released; starting is always rejected during master.close() and while a close is in progress
  • IllegalArgumentException — the port is outside 0..65535

Behavior constraints

  • Idempotent: if already running, returns immediately without starting again.
  • Strict port binding: if the port cannot be bound, it fails; no silent port switch.
  • Executes serially with stop() on the same instance (synchronized methods); calls from multiple threads never start two services concurrently.

Example:

MailboxGatewayService gateway = master.mailboxGateway();
gateway.start();
System.out.println("邮箱网关已启动,端口: " + gateway.getPort()); // Mailbox gateway started, port: {gateway.getPort()}

stop()​

public void stop()

Stops the mailbox gateway service.

After returning, it confirms the running state for up to 3 seconds (50 ms intervals):

  • Stopped within the window → returns normally and start() can be called again.
  • Still running → logs an ERROR and keeps the "retry pending" state instead of falsely reporting "stopped"; the next stop() can retry, and during this time start() may fail with a hint in the exception message.

Throws — none; a call exception is only logged as ERROR and not thrown.

During master close() teardown, stop() can always execute (it is not blocked by the master release check).

Statistics​

getStatistics()​

public Stats getStatistics()

Gets a snapshot of the send/receive and routing statistics of the mailbox gateway. Each call returns an independent snapshot object.

Returns

  • Stats — statistics snapshot (MailboxGatewayService.Stats); see the table below for the fields

Throws — none; on a read failure or call exception it returns a snapshot of all 0s and logs an ERROR. All 0s do not mean "no traffic"; first check whether the service is running and check the logs.

Related structures — MailboxGatewayService.Stats:

FieldTypeDescription
rxPacketslongTotal number of UDP request packets received
txPacketslongTotal number of UDP response packets sent
rxByteslongTotal number of bytes received
txByteslongTotal number of bytes sent
masterOdRequestslongNumber of requests routed to the master object dictionary (Address = 0x0000)
slaveRequestslongNumber of requests routed to a slave mailbox (excluding master address requests)
dropMalformedlongNumber of packets dropped because of a malformed frame
dropUnsupportedlongNumber of packets explicitly rejected because the mailbox protocol is not supported

masterOdRequests + slaveRequests counts requests that were routed, while dropMalformed / dropUnsupported counts rejected packets; the two kinds of counters do not include each other.

resetStatistics()​

public void resetStatistics()

Resets all statistics counters. Only the counters are cleared; the port and running state are not affected.

Throws — none; a call exception is only logged as ERROR and not thrown.

Example:

MailboxGatewayService gateway = master.mailboxGateway();
gateway.start();

// ... run for a while ...

MailboxGatewayService.Stats stats = gateway.getStatistics();
System.out.printf("网关统计: 收=%d 包/%d 字节, 发=%d 包/%d 字节%n", // Gateway statistics: received=%d packets/%d bytes, sent=%d packets/%d bytes%n
stats.rxPackets, stats.rxBytes, stats.txPackets, stats.txBytes);
System.out.printf(" 主站 OD 请求=%d, 从站请求=%d, 丢弃畸形包=%d%n", // Master OD requests=%d, slave requests=%d, malformed packets dropped=%d%n
stats.masterOdRequests, stats.slaveRequests, stats.dropMalformed);

// Reset the counters
gateway.resetStatistics();

Concurrency and timeout constraints​

  • Serialized calls: start() / stop() execute mutually exclusively on the same gateway instance (synchronized methods); repeated calls from multiple threads never start two services.
  • Stop window: before returning, stop() confirms the running state for up to 3 seconds (polling every 50 ms); if it has not fully stopped within the window, the "retry pending" state is kept and stop() can be called again.
  • Master lifecycle: while or after master.close(), start() / setPort() throw IllegalStateException; stop() can still execute, and master.close() also calls stop() automatically and deregisters the instance.
  • Request timeout and retransmission: handled uniformly by the gateway; the Java side only performs parameter validation and state queries, does no frame-level timeout determination, and does not hold the listening socket.
  • Slave mailbox transaction timeouts: mailboxTimeout() = 5000 ms and mailboxRetries() = 3 are fixed reference values and the Java SDK has no entry point to set them (both setters throw UnsupportedOperationException); see master configuration for details.
  • Rate: a large number of synchronous SDO / mailbox operations still affects overall latency; limit concurrency and rate appropriately.

Failure return semantics​

APIFailure caseReturn / exception
mailboxGateway()master released or shutting downIllegalStateException
getPort()query exception / actual port unknownreturns the configured port
setPort(int)service runningIllegalStateException
setPort(int)master released or shutting downIllegalStateException
isRunning()query exceptionfalse (treated as not running), logs an ERROR
start()already runningreturns normally (idempotent)
start()port outside 0..65535IllegalArgumentException
start()master released or shutting downIllegalStateException
start()port in use / master not initialized / previous instance not fully stopped / gateway initialization failedIOException
stop()not fully stopped within 3 secondsdoes not throw; keeps the "retry pending" state; stop() can be called again
getStatistics()read failure / call exceptionsnapshot of all 0s, logs an ERROR
resetStatistics()call exceptiondoes not throw, logs an ERROR

Supported protocols​

ProtocolType codeDescription
CoE0x03SDO read/write, supports the master object dictionary (ETG.1510) and the slave object dictionary
FoE0x04File transfer (frame parsing and segmentation are handled by the gateway; the Java side has no "single packet only" restriction)
SoE0x05IDN parameter read/write (ETG.1020 standard)
AoE0x01Vendor channel pass-through
VoE0x0FVendor-specific protocol pass-through
Address routing
  • Address = 0x0000 -> accesses the master object dictionary (CoE only)
  • Address = slave station address -> forwards to the corresponding slave (CoE / FoE / SoE / AoE / VoE)

Unified mailbox protocol interface​

com.darra.ethercat.abstractions.IMailboxProtocol is the unified contract for the seven mailbox protocol instances, obtained through slave.coe() / slave.foe() / slave.soe() / slave.aoe() / slave.eoe() / slave.voe() / slave.fsoe() (implementing classes: CoE / FoE / SoE / AoE / EoE / VoE / FSoE).

public interface IMailboxProtocol {
byte getProtocolType();
String getProtocolName();
boolean isSupported();
default Boolean supportState();
default boolean isSupportKnown();
MailboxStatus getLastStatus();
long getLastErrorCode();
MailboxStatistics getStatistics();
void resetStatistics();
}
MethodReturn typeDescription
getProtocolType()byteProtocol type code: AoE=0x01, EoE=0x02, CoE=0x03, FoE=0x04, SoE=0x05, FSoE=0x08, VoE=0x0F
getProtocolName()StringProtocol name: CoE / FoE / SoE / AoE / EoE / VoE / FSoE
isSupported()booleanWhether the slave has confirmed support for this protocol
supportState()BooleanCapability tri-state: Boolean.TRUE supported / Boolean.FALSE confirmed not supported / null unknown
isSupportKnown()booleanWhether the capability conclusion is known (false = unknown, which does not mean unsupported)
getLastStatus()MailboxStatusStatus of the most recent mailbox transaction; initially PENDING
getLastErrorCode()longProtocol-layer error code of the most recent transaction; 0 = no error or not applicable
getStatistics()MailboxStatisticsMailbox transaction statistics snapshot; returns an empty snapshot when the statistics interface is unavailable
resetStatistics()voidClears the mailbox transaction statistics counters; a no-op when the statistics interface is unavailable

Capability tri-state: isSupported() returns true only when support is confirmed; when the capability cannot be read it returns false, which is indistinguishable by boolean value from "confirmed not supported". To distinguish them, use supportState(): Boolean.TRUE = supported, Boolean.FALSE = confirmed not supported, null = unknown; isSupportKnown() is equivalent to supportState() != null. The default implementation can only be binary (unknown cannot be expressed); implementations with a read path (CoE / FoE / SoE / AoE / EoE / VoE) override supportState() and report a read failure truthfully as null instead of folding it into true or false.

Failure return semantics: getLastStatus() and getLastErrorCode() record the most recent transaction; on failure the status falls into TIMEOUT / MAILBOX_ERROR / INVALID_ARG and so on, and the error code is the protocol-layer error code (CoE = SDO Abort, FoE = FoE error code, SoE = SoE error code).

MailboxStatistics​

public class MailboxStatistics   // com.darra.ethercat.abstractions, immutable after creation
FieldTypeDescription
totalSentlongTotal number of transactions sent
totalReceivedlongTotal number of responses received (including error frames)
totalTimeoutlongTotal number of timeouts
totalMailboxErrorlongTotal number of mailbox error frames (MBX ERROR / SDO Abort)
totalProtocolErrorlongTotal number of protocol errors (protocol type / WKC mismatch)
totalCancelledlongTotal number of cancelled transactions
lastErrorCodelongMost recent error code (0 = none)
lastErrorTimeInstantTime of the most recent error (UTC; null when there is no error)
averageLatencyUsdoubleAverage transaction latency (microseconds)

Each field also provides a getter of the same name (getTotalSent() / getLastErrorCode() / getAverageLatencyUs(), etc.). Statistics are accounted per (master, slave, protocol); when the statistics interface is unavailable, each protocol returns MailboxStatistics.empty() (a snapshot of all 0s with lastErrorTime as null).

MailboxStatus​

public enum MailboxStatus   // com.darra.ethercat.abstractions
Enum valueCodeMeaning
PENDING0Pending (the transaction has not started or is still in progress)
SUCCESS1Completed successfully
TIMEOUT-1The peer did not respond within the specified time
CANCELLED-2Cancelled
MAILBOX_ERROR-3Mailbox error frame (MBX ERROR or protocol-layer Abort)
PROTO_MISMATCH-4Response protocol type mismatch
WKC_FAIL-6Working counter does not match the expected value
NO_MEMORY-7Out of memory
INVALID_ARG-8Invalid argument
NOT_IMPLEMENTED-9Not implemented / not supported
LINK_DOWN-10Link down (frames fail immediately instead of timing out one by one); check the cable / NIC link status
NOT_SENT-11Request never left the local host (frame never reached the wire: aborted / backoff / pool exhausted / channel closed / held by the kernel); not a slave timeout and not a slave rejection — carries no bus evidence, must not be used for slave-drop or health verdicts; callers treat it as retryable

Value rules: 0 and positive values mean completed (or not yet started), and negative values mean failure. getValue() returns the integer code, and fromValue(int) looks up the enum by code (an unknown value returns INVALID_ARG).

Frame structure​

EtherCAT Header:

  • Length: total length of Mailbox Header + Data
  • Data Type: fixed at 0x05 (Mailbox communication)

Mailbox Header:

  • Length: length of the mailbox data part
  • Address: 0x0000=master, other=slave station address
  • Type: 0x03=CoE, 0x04=FoE, 0x05=SoE, 0x01=AoE, 0x0F=VoE
  • Cnt: mailbox counter (1-7 cyclic)

Complete example​

Starting the gateway​

try (EtherCATMaster master = EtherCATMaster.create()) {
int slaveCount = master.setNetwork("\\Device\\NPF_{...}"); // Returns the slave count; -1 = failure (get the reason from getLastError())
if (slaveCount < 1) {
System.out.println("组网失败, 错误码 " + master.getLastError()); // Network setup failed, error code {master.getLastError()}
return;
}
master.start();

// Start the mailbox gateway
MailboxGatewayService gateway = master.mailboxGateway();
gateway.start();
System.out.println("邮箱网关已启动,端口: " + gateway.getPort()); // Mailbox gateway started, port: {gateway.getPort()}

// Wait...
System.in.read();

gateway.stop();
}

External client example​

import java.net.*;
import java.nio.*;

/**
* ETG.8200 mailbox gateway UDP client
* Used to access the master/slave object dictionary from an external program
*/
class MailboxGatewayClient {
private final DatagramSocket socket;
private final InetAddress host;
private final int port;

public MailboxGatewayClient(String host, int port) throws Exception {
this.socket = new DatagramSocket();
this.socket.setSoTimeout(3000);
this.host = InetAddress.getByName(host);
this.port = port;
}

public MailboxGatewayClient(String host) throws Exception {
this(host, 0x88A4);
}

/** Builds an ETG.8200 frame */
private byte[] buildFrame(short address, byte mailboxType, byte[] mailboxData) {
int mbLength = mailboxData.length;
int ecatLength = 6 + mbLength;

ByteBuffer buf = ByteBuffer.allocate(2 + 6 + mbLength);
buf.order(ByteOrder.LITTLE_ENDIAN);

// EtherCAT Header
short ecatHeader = (short) ((0x05 << 12) | (ecatLength & 0x07FF));
buf.putShort(ecatHeader);

// Mailbox Header
buf.putShort((short) mbLength); // Length
buf.putShort(address); // Address
buf.put((byte) 0x00); // Channel + Priority
buf.put((byte) (mailboxType << 4));// Type

// Data
buf.put(mailboxData);
return buf.array();
}

/** Sends a request and receives the response */
public byte[] sendRequest(short address, byte mailboxType, byte[] mailboxData) throws Exception {
byte[] frame = buildFrame(address, mailboxType, mailboxData);
socket.send(new DatagramPacket(frame, frame.length, host, port));

byte[] recvBuf = new byte[4096];
DatagramPacket recv = new DatagramPacket(recvBuf, recvBuf.length);
socket.receive(recv);

byte[] result = new byte[recv.getLength()];
System.arraycopy(recvBuf, 0, result, 0, recv.getLength());
return result;
}

/** CoE SDO read */
public byte[] coeSdoRead(short address, short index, byte subindex) throws Exception {
byte[] coData = new byte[8];
coData[1] = 0x20; // CoE Type: SDO Request
coData[2] = 0x40; // SDO Upload (Read)
coData[3] = (byte) (index & 0xFF);
coData[4] = (byte) ((index >> 8) & 0xFF);
coData[5] = subindex;
return sendRequest(address, (byte) 0x03, coData);
}

/** CoE SDO write */
public byte[] coeSdoWrite(short address, short index, byte subindex, byte[] value) throws Exception {
byte[] coData = new byte[6 + value.length];
coData[1] = 0x20;
coData[2] = 0x20; // SDO Download (Write)
coData[3] = (byte) (index & 0xFF);
coData[4] = (byte) ((index >> 8) & 0xFF);
coData[5] = subindex;
System.arraycopy(value, 0, coData, 6, value.length);
return sendRequest(address, (byte) 0x03, coData);
}

/** SoE IDN read */
public byte[] soeRead(short address, short idn, byte driveNo, byte elementFlags) throws Exception {
byte[] soeData = new byte[4];
soeData[0] = 0x01; // OpCode: Read
soeData[1] = (byte) ((driveNo << 3) | (elementFlags & 0x07));
soeData[2] = (byte) (idn & 0xFF);
soeData[3] = (byte) ((idn >> 8) & 0xFF);
return sendRequest(address, (byte) 0x05, soeData);
}

/** SoE IDN write */
public byte[] soeWrite(short address, short idn, byte[] value,
byte driveNo, byte elementFlags) throws Exception {
byte[] soeData = new byte[4 + value.length];
soeData[0] = 0x02; // OpCode: Write
soeData[1] = (byte) ((driveNo << 3) | (elementFlags & 0x07));
soeData[2] = (byte) (idn & 0xFF);
soeData[3] = (byte) ((idn >> 8) & 0xFF);
System.arraycopy(value, 0, soeData, 4, value.length);
return sendRequest(address, (byte) 0x05, soeData);
}

/** FoE read (downloads a file from the slave; segmentation and session are handled by the gateway) */
public byte[] foeRead(short address, String filename) throws Exception {
byte[] nameBytes = (filename + "\0").getBytes(java.nio.charset.StandardCharsets.US_ASCII);
byte[] foeData = new byte[5 + nameBytes.length];
foeData[0] = 0x01; // OpCode: Read Request
System.arraycopy(nameBytes, 0, foeData, 5, nameBytes.length);
return sendRequest(address, (byte) 0x04, foeData);
}

/** VoE send/receive (vendor-specific protocol) */
public byte[] voeSendReceive(short address, int vendorId, short vendorType,
byte[] data) throws Exception {
ByteBuffer buf = ByteBuffer.allocate(6 + data.length).order(ByteOrder.LITTLE_ENDIAN);
buf.putInt(vendorId);
buf.putShort(vendorType);
buf.put(data);
return sendRequest(address, (byte) 0x0F, buf.array());
}
}

// --- Usage example ---
MailboxGatewayClient client = new MailboxGatewayClient("192.168.1.100");

// CoE: read the master object dictionary (address=0x0000)
byte[] resp = client.coeSdoRead((short) 0x0000, (short) 0x1018, (byte) 0x01);

// CoE: read the slave object dictionary
resp = client.coeSdoRead((short) 0x03E9, (short) 0x6040, (byte) 0x00);

// CoE: write the slave object dictionary
byte[] value = { 0x06, 0x00 };
client.coeSdoWrite((short) 0x03E9, (short) 0x6040, (byte) 0x00, value);

// SoE: read a slave IDN parameter value
resp = client.soeRead((short) 0x03E9, (short) 32, (byte) 0, (byte) 0x05);

// SoE: write a slave IDN parameter value
ByteBuffer valBuf = ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN);
valBuf.putInt(1000);
client.soeWrite((short) 0x03E9, (short) 32, valBuf.array(), (byte) 0, (byte) 0x05);

// FoE: download a file from the slave
resp = client.foeRead((short) 0x03E9, "firmware.bin");

// VoE: vendor-specific protocol
resp = client.voeSendReceive((short) 0x03E9, 0x00001164, (short) 0x0001,
new byte[] { 0x01, 0x02 });

Protocol details​

CoE (CAN over EtherCAT)​

Supported operations:

  • SDO Upload (0x40) - reads the object dictionary
  • SDO Download (0x20) - writes the object dictionary
  • SDO Abort (0x80) - error response

Error codes:

  • 0x06020000 - object does not exist
  • 0x06010000 - unsupported access
  • 0x06010002 - write protection
  • 0x05040001 - command not implemented
  • 0x08000000 - general error

SoE (Servo over EtherCAT)​

Supported operations:

  • IDN Read (0x01) - reads an IDN parameter
  • IDN Write (0x02) - writes an IDN parameter

Supported elements:

  • Value (0x05) - parameter value
  • Name (0x00) - parameter name
  • Attribute (0x01) - parameter attribute
  • Unit (0x02) - unit
  • Min/Max (0x03/0x04) - minimum/maximum value
  • Default (0x06) - default value
  • Data Type (0x07) - data type

Error codes:

  • 0x8001 - service unavailable
  • 0x1001 - invalid command
  • 0x1009 - IDN does not exist
  • 0x3002 - invalid data size
  • 0x7002 - write failed
  • 0x8000 - general error

FoE (File over EtherCAT)​

Supported operations:

  • Read Request (0x01) - file download request
  • Write Request (0x02) - file upload preparation
  • Data (0x03) - file data transfer
  • Ack (0x04) - acknowledgment
  • Error (0x05) - error response

Segmentation and session: handled uniformly by the gateway; the Java layer does not parse frames and has no local "single packet only" restriction.

Error codes:

  • 0x00008001 - invalid opcode / not implemented
  • 0x00008002 - file not found
  • 0x00008003 - invalid file name
  • 0x00008000 - general error

VoE (Vendor over EtherCAT)​

Frame layout:

  • VendorID (4 bytes) - vendor identifier
  • VendorType (2 bytes) - vendor type
  • Data (n bytes) - vendor-specific data

Purpose:

  • Full pass-through to the slave VoE interface
  • Handles requests/responses automatically
  • Supports data of any length

Error codes:

  • 0x0001 - service unavailable
  • 0x0002 - invalid frame
  • 0x0003 - no response
  • 0x0000 - general error

Error handling​

ProtocolError typeError codeDescription
CoEobject does not exist0x06020000The requested object or slave does not exist
CoEunsupported access0x06010000The protocol type is not supported or the slave has no corresponding capability
CoEwrite protection0x06010002Attempt to write a read-only object
CoEcommand not implemented0x05040001The SDO command specification is not supported
CoEgeneral error0x08000000Other processing error
SoEIDN does not exist0x1009The requested IDN parameter does not exist
SoEwrite failed0x7002Writing the IDN parameter failed
FoEfile not found0x00008002The requested file does not exist
FoEinvalid file name0x00008003The file name format is invalid
VoEno response0x0003The slave did not return a VoE response

Timeout / retry / receive buffering and similar behavior are handled uniformly by the gateway; the Java layer does not hold the listening socket and does not do frame-level timeout determination.

Network security

By default the gateway is fully pass-through and allows network access to the entire object dictionary of the master and the slaves. Recommendations:

  • Use it only on a controlled network, or restrict access through an IP allowlist / VPN tunnel
  • Combine it with operating system firewall rules and allow only trusted source IPs
  • Enable it carefully in production environments and avoid exposing it to the public internet
Performance impact

The gateway runs on the SDK side, and Java calls only perform parameter validation and state queries. A large number of synchronous SDO/mailbox operations can still affect overall latency — limit concurrency and rate appropriately.

Limitations​

Frame parsing / routing / protocol handling are provided uniformly by the gateway, and the Java public surface has no "local implementation" type restrictions. Currently exposed capabilities:

  • CoE SDO read/write (master OD + slave OD)
  • SoE IDN parameter access
  • FoE file transfer (segmentation / session handled by the gateway)
  • AoE / VoE vendor protocol pass-through
  • Error handling and error code mapping
  • Statistics snapshots (send/receive / routing / malformed / unsupported, etc.)
Currently outside the Java public surface

Multicast / broadcast requests, the Address mapping table (+0x8000 virtual mapping) and ETG.8200 SelectedMaster multi-instance selection are not yet exposed as Java APIs; in a multi-master setup each master occupies one port 34980 + (主站号 - 1), and diagnostic tools connect to master 1's port by default.