1. First checks
- Ping the rack from the engine machine:
ping 192.168.100.102(your rack's address). No reply = a network problem, not a driver problem (section 3). - The engine PC needs an address in the rack's subnet. Windows (PowerShell, administrator):
Get-NetAdapterfor theifIndex, thenNew-NetIPAddress -InterfaceIndex <n> -IPAddress 192.168.100.2 -PrefixLength 24; check withGet-NetIPAddress -InterfaceIndex <n>. - Run the setup check:
pwsh CoreEng/core/interfaces/Drivers/UEI/setup/setup_uei_rack.ps1 -AppFolder <application folder>: PowerDNA software (64-bit), PC address, ping, rack listing (procedure:Drivers/UEI/install.txt). - Not sure of the address or the slot? Start once with
"ip": "192.168.100.?"(scans the subnet) or"slot": "?"(lists the layers of the rack atip): every rack found is printed with its layers (slot, model, serial number, subsystems, channels). Nothing is opened in this mode. - Watch the report at start: each opened device prints one line (
UEI rack ... serial slot 3 ch 0: RS-232, 115200 baud ...,UEI rack ... AI slot 2: 8 inputs ...). - Live status: the stream status line shows the rack cycles, refresh time (avg / max us), errors and late cycles; serial streams also bytes received / sent, dropped messages and receive stalls.
2. Message reference
| Message | Cause | What to do |
|---|---|---|
<driver>: <stream>: failed to load UEIPowerDNAAPI ... (PDNALib.dll: install UEI PowerDNA software, x64) | The API library or its dependency PDNALib.dll is missing. | Install UEI's PowerDNA software (it puts the 64-bit PDNALib.dll in C:\Windows\System32). Do not copy PowerDNA/Shared/PDNALib.dll from the source tree: it is the 32-bit one (error "Wrong architecture"). |
... has UEI API version n, the application needs m: rebuild the library | UEIPowerDNAAPI.dll is from another build than the application. | Build the application again (it rebuilds the library) and use the DLL of the same build. |
"ip" missing, "slot" missing, "channel" missing, "... must be ..." | A key is missing or has a wrong value. The stream is not opened (not opened, fix the keys reported above). | Fix the key, see rack keys, serial keys, AI / AO / DIO keys. |
cannot open the UEI rack at <ip>: -4 Timeout error | The rack did not answer within rackTimeoutMs. | Section 3; scan with "ip": "a.b.c.?". |
UEI: no rack answers on a.b.c.* | The scan found no rack. | The PC has no address in that subnet, the rack is off or on another subnet, or a firewall blocks UDP port 6334. |
slot n (model 0x...) is not an SL-501 / SL-508 serial layer | UEISerialDriver on a layer that is not a 501 / 508. | Use "slot": "?" and take the slot of the serial layer. |
channel n out of range | SL-508 has channels 0..7, SL-501 0..3. | Fix channel. |
baudRate n: the layer can only make m (x% off) | A custom rate the layer clock cannot make within 2 %. | Use a table rate (300 ... 1000000) or a rate the layer can make. |
serial slot 3 ch 4: no room in the rack's VMap packet for 288 bytes per cycle | All serial channels of a rack share one data packet per rack cycle (about 1.4 KB); each channel reserves 3 x what its baud rate delivers in one cycle. | Fewer channels on this rack, a lower baudRate or ioPeriodUs, or a smaller "maxBytesPerCycle" per channel (e.g. 160 for 8 channels at 921600). The start message of each channel shows its bytes per cycle and the room left. |
flowcontrol software not supported, flowcontrol hardware (RTS / CTS) needs lineMode rs232 | The SL-501 / 508 has RTS/CTS flow control on RS-232 only. | Use none, or RS-232 with hardware. |
"comPort" does not apply to a UEI serial channel (ignored) (also file, overlapping, latency, buffer sizes) | Keys of the PC serial driver. | Remove them; the channel is slot + channel. |
rack <ip> is already open with ioPeriodUs ..., (the first stream sets them) (warning) | Two streams of one rack ask for different rack keys. | Use the same ioPeriodUs / ioPriority / ioAffinity / transport in every stream of that rack. |
AI slot n: slot n (model 0x...) is not a 2xx layer, trying anyway (warning) | The layer family differs from the driver (2xx AI, 3xx AO, 4xx DIO). Some layers have more subsystems (448 / 432 have AI). | If the next message is a DqRtDmapAddChannel error, the layer does not have that subsystem or channel: check "slot": "?". |
... DqRtDmapAddChannel(in, 0x...) failed, DqRtVmapAddChannel ... failed, DqAdv501SetChannelCfg(...) failed, DqRtDmapInit / Program / Start failed | The rack refused the configuration: wrong channel or gain for the layer, the map packet is full, or firmware without DMap / VMap for that layer. | Check channels and gain against the layer manual. Serial on old firmware: "transport": "fifo". The device is not opened; the other devices of the rack keep running. |
Streams: Could not find LRU 'UEI' for stream '<stream>' | The blocks of the stream are not in the project's coredb yet (CAMRnD: ICD files in ICD/CAMRnD/UEI). | Generate the LRUs with DBSimGenerator and rebuild. The driver still opens (the rack is used), the stream has no blocks until then. |
AI slot 0: slot 0 (model 0x448) is not a 2xx layer, trying anyway (warning) | UEIAIDriver on a DIO layer with analog values (448, 432). | Expected; use the layer's DMap channel numbers (448: 64 + line, 432: 32 + line). See UEI keys. |
| The rack does not show in PowerDNA Explorer, but ping works | Explorer finds racks by broadcast (a second adapter on another subnet, firewall). | Use ueirack list <ip> or "slot": "?"; the drivers open the rack by IP. |
UEI rack <ip>: DqRtDmapRefresh failed / DqRtVmapRefresh failed (counted) | A rack cycle got no answer (cable, rack reset, network load). | The thread keeps trying; refresh works again after n failed cycles follows when it recovers. Many errors: section 3. |
SerialDriver: <stream>: send Failed uei://... (counted) | The send buffer (txRingKB) is full: the model sends faster than the baud rate, or the rack does not answer. | Larger txRingKB, a higher baud rate, or send less. The dropped messages are counted in the status line. |
Serial status shows rx stalls | The receive buffer is full: the stream reads slower than the data arrives (data waits in the layer FIFO, then the FIFO overflows). | "framePerMS": -1 on the in-block, maxMessagesPerRead, larger rxRingKB. |
Status shows many late cycles, refresh max close to ioPeriodUs | The network round trip takes longer than the rack cycle. | Larger ioPeriodUs, a dedicated network adapter, ioPriority / ioAffinity. |
3. Rack unreachable: network problems
| Cause | How to recognize it | Fix |
|---|---|---|
| Wrong IP | "cannot open the UEI rack", the scan finds the rack at another address. | Use the address the scan prints. |
| PC and rack in different subnets | Ping fails; the scan finds nothing. | Give the PC adapter an address in the rack's subnet (First checks). |
| Wrong network adapter (Wi-Fi / VPN, rack on a second Ethernet port) | Ping works from one adapter only. | Connect the rack to the adapter with the subnet address; disable VPN while testing. |
| Firewall blocks UDP | Ping works, the driver cannot open the rack. PowerDNA uses UDP port 6334. | Allow the engine executable (private profile) and UDP 6334. |
| Another program holds the rack (PowerDNA Explorer, a second engine) | Works from one program only. | Close the other program. |
| Rack still booting | First start after power-on fails, the second works. | Wait for the boot to finish. |
4. Layers, slots and channels
slotis the layer number (devn) as PowerDNA Explorer and the"?"listing show it, starting at 0.- A serial port of the rack is a channel of a layer (0-7 on an SL-508), not a Windows COM port.
lineModesets RS-232, RS-422 (RS-485 full duplex) or RS-485 half duplex; a device on the wrong line mode receives nothing. - Several streams can use one rack and one layer (e.g. 8 streams, one per SL-508 channel). One AI / AO / DIO layer belongs to one stream.
- Firmware: the PowerDNA library on the PC and the rack firmware must be compatible; power-cycle the rack after an update.
5. framePerMS for input blocks
-1: read every minor frame. Recommended (serial and AI / DI).0: the block is disabled, no messages, no error.- AI / DI blocks change at most once per rack cycle (
ioPeriodUs): reading faster gives no new values (and no counter change).
6. MuxBus streams on a 553 layer (UEIMuxBusAPI)
| Message | Cause | What to do |
|---|---|---|
Unable to load excalibur muxbus api dll. UEIPowerDNAAPI.dll not found ... | The UEI MuxBus library uses the rack of UEIPowerDNAAPI, which is not next to the program. | Build with INCLUDE_UEI_MUXBUS (both libraries land in the executable directory) and keep them together. |
UEIPowerDNAAPI.dll found but a dependency is missing (PDNALib.dll ...) | UEI's PowerDNA software is not installed. | Install it (64-bit PDNALib.dll). |
UEIPowerDNAAPI has UEI API version n, UEIMuxBusAPI needs m | The two libraries come from different builds. | Use both from the same build. |
UEIMuxBusAPI card c module m: cannot open the UEI rack at <ip>, then Card Not Initialized. | The rack of that card does not answer (the stream keeps running without the bus). | Check ip in UEIMuxBusAPI.json (the start report names the file used; no file = 192.168.100.2) and section 3. |
card c is not in UEIMuxBusAPI.json | CardNumber of the stream has no entry. | Add {"card": c, "ip": "..."} to "cards". |
module m: rack ... has no such 1553 channel (553 layers in slots: ...), slot s ... holds model 0x..., not a 553 layer | ModuleNumber beyond the 1553 channels of the rack, or a wrong slot in modules. | Module n = n-th channel (2 per 553 layer, slot order), or set modules. |
cannot run the BC: the bus list needs n different minor frames and k message groups ... | The bus list needs more minor frame types than the layer holds (16), even grouped by rate. | Fewer different rates / phases, or split the messages over the two channels (two streams). |
cannot run the BC: minor frame time n us ..., ... messages per minor frame, ... major frame entries | Layer limits: 2000 minor frames per second, 127 messages per minor frame, 255 major entries. | A slower fastest block, fewer messages per minor frame. |
programming the 553 BC failed: DqAdv553... failed | The layer refused the tables (firmware, wrong layer). | Note the function and the error and report it (this part has not run on a real layer yet). |
async frame n was not executed by the BC | An async block (framePerMS 0) was not sent within 3 major frames. | Check that the BC runs (status line, other messages). Not verified on hardware yet. |
... is not supported by the UEI 553 layer (ignored) | An Excalibur function without a UEI equivalent (monitor, error injection, time tag sync, ...). | See the list; the rest of the stream works. |
RT_Activity 0x... ignored: a 553 channel in BC mode does not simulate RTs (warning) | The Excalibur card simulates RTs next to the BC; a 553 channel is either BC or RT. | Use the layer's other channel as an RT stream. |
The UEI MuxBus library is built and tested without a rack (simulated 553 layer). Not run on a real 553 layer yet: control block layout and byte order over VMap, the minor / major clocks, async frames, skip / restore while running, RT receive headers. Report anything that behaves differently from the Excalibur card.
7. Problems shared with the serial driver
Header markers, message framing, maxMessagesPerRead and messageTimeoutMs work as in the regular serial driver:
see Troubleshoot: Serial Driver.
Message counters and error counters of every block are visible live in System Layout.
Use the receive hooks to validate messages without losing data. For setting up streams see
How to Set Up Streams.