How this driver is built. GDL90Driver is a thin layer on top of the UDP socket driver: the socket setup, the remoteIP / remotePort / localIP / localPort fields and almost all messages come from the UDPSocketDriver code. The driver adds no configuration fields and no messages of its own. In the current source the GDL90 stream (GDL90Stream) does not yet decode received datagrams into blocks (its read function is empty), so no GDL90-specific error messages exist. The GDL90 message library (framing with 0x7E flags, CRC-16, escape bytes) is part of the driver source, but a CRC or message-ID failure is not reported by the engine; see section 3. Fields are described in the Streams manual (GDP90 / GDL90 Driver section).

1. First checks

  1. Set "localIP": "?" (or "remoteIP": "?") once. The driver prints the network adapters and their IPv4 addresses of this machine and the driver is discarded (it is not loaded). Pick the address of the adapter that is on the same network as the GDL90 source, then put the real value back.
  2. Check the start-up line in the log: UDPSocketDriver: <name> created with setup : remote <ip>:<port> remote bind to ... local <ip>:<port>. It shows what was actually opened. If the local part is missing, localPort is 0 or not set, and nothing can be received.
  3. Check with a packet capture tool (Wireshark, filter udp.port == 4000) that datagrams really arrive on the machine and on which port. A GDL90 source (ADS-B receiver, EFB app, simulator) normally sends to the UDP port 4000 of the receiving device.
  4. Check the block counters of the input block in DIPanel or System Layout: msgCounter rising = datagrams are accepted into the block; errCounter rising = datagrams were rejected.
  5. Use the stream recorder or a capture to look at the first bytes of a datagram. A GDL90 message starts and ends with the flag byte 0x7E, and the byte after the start flag is the message ID.

2. Message reference

These messages are written by the UDP socket code that GDL90Driver uses. <name> is the stream name.

MessageCauseWhat to do
UDPSocketDriver: <name> WSAStartup failed with error: <n> (Windows)Windows sockets could not be initialized.Check that the Winsock service is running and that no security software blocks the process; restart the machine if it persists.
UDPSocketDriver: <name> socket() failed with error code: <n>The operating system refused to create the sending socket (remoteIP is set).Look up the error code (Windows Sockets error codes). Typical: too many open sockets or a firewall/security product blocking the process.
UDPSocketDriver: <name> Invalid IP address <ip>remoteIPBind is not a valid IPv4 address.Use dotted IPv4 (192.168.1.20); host names are not accepted here.
UDPSocketDriver: <name> Bind failed Address in use <ip>:<port> (Windows)Another program or another stream already owns that local UDP port.Close the other program (EFB app, another simulator, a second CoreEngine). Make sure two streams do not use the same localPort. Find the owner with netstat -ano -p udp.
UDPSocketDriver: <name> Bind failed <ip>:<port> with error code: <n> (Windows) / Bind failed <ip>:<port> (Linux)The bind to localIP:localPort failed: the localIP is not an address of this machine (10049 on Windows), the port is below 1024 without privileges (Linux), or access is denied.Use "localIP": "" (all adapters) or an address from the "?" list. Use a port above 1024.
UDPSocketDriver: <name> Could not create socket: <ip>:<port>, error code <n>The receiving socket could not be created.As for socket() failed.
UDPSocketDriver: <name> non blocking setup failed <ip>:<port>The receiving socket could not be switched to non-blocking mode.Restart the engine. If it persists, the network stack is in a bad state (VPN / filter driver).
UDPSocketDriver: <name> recvfrom() failed. not bind (error 10022)A receive was attempted on a socket that was never bound: localPort is 0 or the bind at start-up failed.Set localPort and fix the earlier Bind failed message.
UDPSocketDriver: <name> recvfrom() failed. message send too large (check stream block size, current used is <N> bytes)A datagram is larger than the input buffer, whose size is the largest input block. The rest of the datagram is lost.Make the input block at least as big as the biggest datagram that the source sends (GDL90 traffic and ownship reports are small, but some EFB apps pack several messages into one datagram).
UDPSocketDriver: <name> recvfrom() failed with error code: <n> / recvfrom() failedOther receive error. Error 10054 (connection reset) appears on Windows when an earlier send was answered by an ICMP "port unreachable".Check that the remote device is on and listening on remotePort. Look up the code.
UDPSocketDriver: <name> sendto() failed with error code: <n> / sendto() failedSend error: network down, no route to the host, or a broadcast address used without permission.Check the cable / Wi-Fi, the IP and subnet of the PC, and that remoteIP is reachable (ping).
UDPSocketDriver: '<name>' not initializedA send was attempted but the sending socket was not created (no remoteIP, or socket creation failed).Set remoteIP and remotePort, and fix the earlier start-up error.
Stream: '<name>': block '<block>': timing <N>us > system minor frame <M>us; data may be lost. (warning)An input block has a numeric framePerMS longer than the minor frame: the socket is read less often than datagrams arrive and the operating system buffer can overflow. (Documented for the byte-stream drivers; the same framePerMS rule applies to every input block.)Set "framePerMS": -1 for input blocks. See the note on framePerMS.

The start-up information line is UDPSocketDriver: <name> created with setup : remote <ip>:<port> remote bind to <ip>:<port> local <ip>:<port>. It is an information message, not an error.

3. Network problems (the most common cause of "no data")

SymptomCauseFix
Nothing is received, no error, counters stay at 0localPort is not the port the source sends to (GDL90 devices use UDP 4000 by default), or localIP is the address of a different adapter than the one that receives the traffic.Match localPort to the source configuration. Use "localIP": "" to listen on all adapters, or the address printed by "?".
Nothing is received on Windows, a packet capture shows the datagrams arrivingThe Windows firewall blocks inbound UDP for the executable (the prompt was dismissed or the network profile is "Public").Add an inbound rule for the CoreEngine executable (UDP, the local port) or allow it for the network profile in use.
Linux: nothing receivedThe firewall (ufw / firewalld / nftables) drops the port, or the machine has several interfaces and the reverse-path filter drops the packets.Open the UDP port; check rp_filter if the sender is on a different subnet.
Source sends to a broadcast address and nothing arrivesThe receiving PC is on another subnet or the source (EFB app) sends only to a configured unicast address.Put the PC and the source on the same subnet, or configure the source to send to the PC's unicast IP.
The source device needs to receive from the PC (Send direction) and does notThe remoteIP / remotePort point to the wrong device, or the device accepts only datagrams coming from a known source port.Use remoteIPBind / remotePortBind to bind the sending socket to a fixed local address and port when the device filters by source. If localIP and localPort equal remoteIPBind and remotePortBind, the same socket is used for both directions.
Wi-Fi link: bursts and gapsUDP has no retransmission; wireless links lose and bunch datagrams.Use a wired link for hardware-in-the-loop work; read every minor frame ("framePerMS": -1).
Two instances of the engine on one PCBoth bind the same local port.Use different ports; the second reports Bind failed ... Address in use.

4. GDL90 message content: IDs, CRC and framing

A GDL90 message is a byte sequence delimited by 0x7E flag bytes, with a message ID byte first, then the payload, then a CRC-16 (polynomial 0x1021, low byte first) before the end flag. The bytes 0x7E and 0x7D inside the message are escaped (0x7D followed by the byte XOR 0x20). The CRC is computed over the message without the flags and without the CRC itself.

ProblemHow to recognize itFix
CRC mismatch: the decoder rejects a message whose CRC does not match the one computed. The decoder just returns "false" for it (the engine does not print a message), so the message is silently dropped. Only if the decoder is configured with abort_on_error would it print ERROR: ... and exit.Datagrams arrive (capture shows them) but the expected data (heartbeat, ownship, traffic) never appears. Typical cause: the source does not append the CRC, uses another polynomial, or the data was altered by a gateway.Check one message by hand with the CRC rule above. Verify the source is a GDL90 sender and not a plain text or other binary (for example NMEA or ForeFlight AHRS) stream.
Several messages in one datagramMessage sizes in the capture do not match one block. Many EFB-oriented senders pack a heartbeat, ownship report and others into one datagram.Size the input block to the largest datagram that is sent, and check with headerMarker/block size that the framing agrees with the capture.
Unexpected message IDThe message library defines the IDs Heartbeat 0x00, Uplink Data 0x07, Ownship Report 0x0A, Ownship Geometric Altitude 0x0B, Traffic Report 0x14, Basic Report 0x1E, Long Report 0x1F, ForeFlight status/ID 0x65, Stratux heartbeat 0xCC (old 0x53) and Stratux AHRS 0x4C. Other IDs are not decoded.Check which IDs the source sends (capture). Messages that are not needed can be ignored.
Escape bytes (0x7D) wrongly handled by a relayMessages that contain 0x7D or 0x7E in the payload (for example some coordinates) fail the CRC while other messages are accepted.Make sure that any gateway between the source and the engine forwards the bytes unchanged.
Data arrives, but position, altitude or speed look wrongUnits and encoding according to the GDL90 interface control document: latitude/longitude as 24-bit two's-complement semicircles, altitude in 25 ft units with a 1000 ft offset, velocity in knots.Check the ICD of your block against the GDL90 specification; the engine does no unit conversion for you.

5. Other problems

SymptomCauseFix
The driver "does nothing" and no GDL90-specific message is ever printedThe GDL90 stream does not publish data into blocks in the current source (empty read function). This is a feature limitation, not a configuration error.Use the UDPSocketDriver stream with your own block definition and a model that decodes the datagrams, until the GDL90 stream is completed in your build. Confirm with the vendor/source maintainer which build you have.
Wrong driver loaded or name not foundThe driver name in streams.json must be exactly "GDL90Driver".Correct the spelling and case. Note that the Streams manual summary reads "GDP90"; the driver name is GDL90.
"active": false set, no start-up lineThe driver is disabled in the configuration.Set "active": true.
localIP / remoteIP set to "?" and the stream does nothingThis is the discovery mode: the adapter report is printed and the driver is not loaded.Put the real address back after reading the list.
Data stops after the network cable is unplugged and does not come backThe UDP socket is created once at OnInit; it is not recreated when the link returns.Reset the engine after the link is back. Prefer a fixed IP address on the PC so the bind address does not change.
Input counters rise, but the model sees old dataInput block framePerMS is a number longer than the datagram period, so some datagrams are read late or overwritten.Use -1 (check every minor frame). 0 disables the block. A numeric value may lose data and prints a warning.
Message counters and error counters of every block are visible live in System Layout. Use the receive hooks to validate datagrams (for example a CRC check) without losing data.