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>)
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).
- GET /space-center/comm-link/(id)/type#
The type of link.
- Parameters:
id – The identifier of the CommLink object.
- Response JSON Object:
value (SpaceCenter.CommLinkType)
- GET /space-center/comm-link/(id)/signal-strength#
Signal strength of the link.
- Parameters:
id – The identifier of the CommLink object.
- Response JSON Object:
value (double)
- GET /space-center/comm-link/(id)/start#
Start point of the link.
- Parameters:
id – The identifier of the CommLink object.
- Response JSON Object:
value (SpaceCenter.CommNode)
- GET /space-center/comm-link/(id)/end#
End point of the link.
- Parameters:
id – The identifier of the CommLink object.
- Response JSON Object:
value (SpaceCenter.CommNode)
- GET /space-center/comm-link/(id)/forward-data-rate#
The data rate from
GET /space-center/comm-link/(id)/starttoGET /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)
- GET /space-center/comm-link/(id)/reverse-data-rate#
The data rate from
GET /space-center/comm-link/(id)/endtoGET /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)
- GET /space-center/comm-link/(id)/start-antenna#
The antenna at
GET /space-center/comm-link/(id)/startthat transmits over the link, ornullifGET /space-center/comm-link/(id)/startis a ground station or an unloaded vessel.Note
Requires RealAntennas.
- Parameters:
id – The identifier of the CommLink object.
- Response JSON Object:
value (SpaceCenter.Antenna?)
- GET /space-center/comm-link/(id)/end-antenna#
The antenna at
GET /space-center/comm-link/(id)/endthat receives over the link, ornullifGET /space-center/comm-link/(id)/endis 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.