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).
| Message | Cause | What 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() failed | Other 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() failed | Send 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 initialized | A 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. |
| Symptom | Cause | Fix |
| Nothing is received, no error, counters stay at 0 | localPort 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 arriving | The 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 received | The 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 arrives | The 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 not | The 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 gaps | UDP 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 PC | Both bind the same local port. | Use different ports; the second reports Bind failed ... Address in use. |
| Problem | How to recognize it | Fix |
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 datagram | Message 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 ID | The 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 relay | Messages 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 wrong | Units 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. |
| Symptom | Cause | Fix |
| The driver "does nothing" and no GDL90-specific message is ever printed | The 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 found | The 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 line | The driver is disabled in the configuration. | Set "active": true. |
localIP / remoteIP set to "?" and the stream does nothing | This 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 back | The 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 data | Input 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. |