Skip to content

DCS‐BIOS in a nutshell

Jerker Dahlblom edited this page Sep 19, 2023 · 15 revisions

Sending

DCS-BIOS exports (sends) cockpit data from Digital Combat Simulator (DCS) over a UDP socket.

  • uint data, stating the position for a switch, dial, knob
  • string data, can be frequencies 127.000 or other information from a cockpit display Waypoint : 1

Receiving

DCS-BIOS listens for commands from the user on a TCP socket. Depending on what command the syntax differs.

  • FLAPS_SWITCH INC\n This is a command to increase the position/value of FLAPS_SWITCH
  • COMPASS_BRIGHTNESS 30000\n Set the position of COMPASS_BRIGHTNESS to 30000.
  • COMPASS_BRIGHTNESS -3000\n Decrease COMPASS_BRIGHTNESS by 3000.
  • and so on, an aircraft has many different controls.

Encoding

uint data, the data is encoded so that as many controls as possible are included in the same byte.

Therefore each control has an :

  • address
  • shiftby
  • mask

so that it can be read from the byte stream in the receiving end.