Communications#

Comms

Used to interact with CommNet for a given vessel. Obtained by calling GET /space-center/vessel/(id)/comms.

A Comms object is passed and returned as its identifier, a number. A path that acts on an object takes it as (id).

GET /space-center/comms/(id)/can-communicate#

Whether the vessel can communicate with KSC.

Parameters:
  • id – The identifier of the Comms object.

Response JSON Object:
  • value (bool)

GET /space-center/comms/(id)/can-transmit-science#

Whether the vessel can transmit science data to KSC.

Parameters:
  • id – The identifier of the Comms object.

Response JSON Object:
  • value (bool)

GET /space-center/comms/(id)/signal-strength#

Signal strength to KSC.

Parameters:
  • id – The identifier of the Comms object.

Response JSON Object:
  • value (double)

GET /space-center/comms/(id)/signal-delay#

Signal delay to KSC in seconds.

Parameters:
  • id – The identifier of the Comms object.

Response JSON Object:
  • value (double)

GET /space-center/comms/(id)/power#

The combined power of all active antennae on the vessel.

Note

Not used by RealAntennas, which replaces the stock range model.

Parameters:
  • id – The identifier of the Comms object.

Response JSON Object:
  • value (double)

GET /space-center/comms/(id)/control-path#

The communication path used to control the vessel.

Parameters:
  • id – The identifier of the Comms object.

Response JSON Object:
  • value (list<SpaceCenter.CommLink>)

Represents a communication link between two nodes in the network.

A CommLink object is passed and returned as its identifier, a number. A path that acts on an object takes it as (id).

The type of link.

Parameters:
  • id – The identifier of the CommLink object.

Response JSON Object:
  • value (SpaceCenter.CommLinkType)

Signal strength of the link.

Parameters:
  • id – The identifier of the CommLink object.

Response JSON Object:
  • value (double)

Start point of the link.

Parameters:
  • id – The identifier of the CommLink object.

Response JSON Object:
  • value (SpaceCenter.CommNode)

End point of the link.

Parameters:
  • id – The identifier of the CommLink object.

Response JSON Object:
  • value (SpaceCenter.CommNode)

The data rate from GET /space-center/comm-link/(id)/start to GET /space-center/comm-link/(id)/end, in bits per second.

Note

Requires RealAntennas.

Parameters:
  • id – The identifier of the CommLink object.

Response JSON Object:
  • value (double)

The data rate from GET /space-center/comm-link/(id)/end to GET /space-center/comm-link/(id)/start, in bits per second.

Note

Requires RealAntennas.

Parameters:
  • id – The identifier of the CommLink object.

Response JSON Object:
  • value (double)

The antenna at GET /space-center/comm-link/(id)/start that transmits over the link, or null if GET /space-center/comm-link/(id)/start is a ground station or an unloaded vessel.

Note

Requires RealAntennas.

Parameters:
  • id – The identifier of the CommLink object.

Response JSON Object:
  • value (SpaceCenter.Antenna?)

The antenna at GET /space-center/comm-link/(id)/end that receives over the link, or null if GET /space-center/comm-link/(id)/end is a ground station or an unloaded vessel.

Note

Requires RealAntennas.

Parameters:
  • id – The identifier of the CommLink object.

Response JSON Object:
  • value (SpaceCenter.Antenna?)

CommLinkType

The type of a communication link. See GET /space-center/comm-link/(id)/type.

Passed and returned as the name of one of its values:

"home"

Link is to a base station on Kerbin.

"control"

Link is to a control source, for example a manned spacecraft.

"relay"

Link is to a relay satellite.

CommNode

Represents a communication node in the network. For example, a vessel or the KSC.

Passed and returned as an object with these fields:

name (string)

Name of the communication node.

is_home (bool)

Whether the communication node is on Kerbin.

is_control_point (bool)

Whether the communication node is a control point, for example a manned vessel.

is_vessel (bool)

Whether the communication node is a vessel.

vessel (SpaceCenter.Vessel?)

The vessel for this communication node, or null if the node is not a vessel.