Hi fellow builders/programmers,
The issue:
There is no response to imports (A-10c sim, unpaused, DCS v1.5.8.12667). My test involves switching the battery switch on or off by sedning a UDP message. Exports work fine.
My setup:
I'm sending/receiving to DCS-BIOS v0.7.1 using UDP from a VisualBasic-6 program (don't laugh) running on another computer.
The DCS-BIOS export works well, the VB6 program reads and parses the data, and displays a few switch states and the CDU text correctly as a test. The VB6 program listens on port 7777, and sends to 192.168.1.77:7778. (IP of the PC running DCS)
The VB6 program sends a UDP message when I click a control button, but there is no response in the simulator. The message sent is "EPP_BATTERY_PWR 1\n".
Here is what I've tried:
A simple UDP test program, running on the same PC as DCS, receives and displays incoming data on port 7778. The UDP test program receives the battery message correctly. So I'm assuming the ports and programs are not blocked by firewalls, and IP addresses are correct.
Using Resource Monitor, I've confirmed DCS.exe is receiving the messages, and VB6 and DCS are fully unblocked.
I've run the VB6 program on the same PC as DCS, set IP to 127.0.0.1 (and changed the IP in BIOSConfig.lua to match). VB6 will still receive the exports fine, but imports still don't work.
The dcs-bios.log is empty. The dcs.log shows no related errors.
This is my BIOSConfig.lua file:
BIOS.protocol_io.connections = {
-- BIOS.protocol_io.DefaultMulticastSender:create(),
-- BIOS.protocol_io.TCPServer:create(),
BIOS.protocol_io.UDPSender:create({ port = 7777, host = "127.0.0.1" }),
BIOS.protocol_io.UDPListener:create({ port = 7778 })
}
Have I made a mistake with the syntax of the message?