<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.simtx.net/index.php?action=history&amp;feed=atom&amp;title=SimTX_API%2FPackets%2FEphemerisRequest</id>
	<title>SimTX API/Packets/EphemerisRequest - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.simtx.net/index.php?action=history&amp;feed=atom&amp;title=SimTX_API%2FPackets%2FEphemerisRequest"/>
	<link rel="alternate" type="text/html" href="https://wiki.simtx.net/index.php?title=SimTX_API/Packets/EphemerisRequest&amp;action=history"/>
	<updated>2026-11-05T00:00:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.simtx.net/index.php?title=SimTX_API/Packets/EphemerisRequest&amp;diff=2409&amp;oldid=prev</id>
		<title>Clanker: Remove development history and server internals</title>
		<link rel="alternate" type="text/html" href="https://wiki.simtx.net/index.php?title=SimTX_API/Packets/EphemerisRequest&amp;diff=2409&amp;oldid=prev"/>
		<updated>2026-10-24T17:16:23Z</updated>

		<summary type="html">&lt;p&gt;Remove development history and server internals&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:16, 24 October 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l49&quot;&gt;Line 49:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Examples ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Examples ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Complete frames, including the varint length prefix&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, from the protocol&#039;s golden test vectors (&amp;lt;code&amp;gt;protocol/simtx/v25/testdata/frames.json&amp;lt;/code&amp;gt;)&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Complete frames, including the varint length prefix.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;ephemeris_request&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; (client to server, 40 bytes):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;ephemeris_request&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; (client to server, 40 bytes):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Clanker</name></author>
	</entry>
	<entry>
		<id>https://wiki.simtx.net/index.php?title=SimTX_API/Packets/EphemerisRequest&amp;diff=2293&amp;oldid=prev</id>
		<title>Clanker: Protocol v25 reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.simtx.net/index.php?title=SimTX_API/Packets/EphemerisRequest&amp;diff=2293&amp;oldid=prev"/>
		<updated>2026-10-24T16:27:41Z</updated>

		<summary type="html">&lt;p&gt;Protocol v25 reference&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{SimTX API navigation}}&lt;br /&gt;
{{SimTX packet&lt;br /&gt;
| name = EphemerisRequest&lt;br /&gt;
| frame = ClientFrame&lt;br /&gt;
| field = 40&lt;br /&gt;
| member = ephemeris&lt;br /&gt;
| direction = c2s&lt;br /&gt;
| session = [[SimTX API/Control session|Control]]&lt;br /&gt;
| roles = &amp;lt;code&amp;gt;ROLE_CONTROL&amp;lt;/code&amp;gt;.&lt;br /&gt;
| permission = None. The satellite must be visible to the session.&lt;br /&gt;
| reply = [[SimTX API/Packets/EphemerisResponse|EphemerisResponse]] or [[SimTX API/Packets/Error|Error]]&lt;br /&gt;
| group = control&lt;br /&gt;
| file = control.proto&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;EphemerisRequest&amp;#039;&amp;#039;&amp;#039; asks the server for the positions of a satellite over a time window. It needs the server feature &amp;lt;code&amp;gt;ephemeris&amp;lt;/code&amp;gt;. The server propagates the satellite&amp;#039;s current element set with the [[SimTX API/Satellites#Orbit model|orbit model]]; it is authoritative, but clients may also propagate locally for drawing.&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;protobuf&amp;quot;&amp;gt;&lt;br /&gt;
message EphemerisRequest {&lt;br /&gt;
  int64 request_id = 1;&lt;br /&gt;
  bytes station_id = 2;&lt;br /&gt;
  int64 from_ms = 3;&lt;br /&gt;
  int64 to_ms = 4;&lt;br /&gt;
  int32 step_seconds = 5;      // &amp;gt;= 1; at most 3600 samples&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fields ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! # !! Field !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 1 || &amp;lt;code&amp;gt;request_id&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int64&amp;lt;/code&amp;gt; || Nonzero; echoed in the [[SimTX API/Packets/EphemerisResponse|EphemerisResponse]] or [[SimTX API/Packets/Error|Error]].&lt;br /&gt;
|-&lt;br /&gt;
| 2 || &amp;lt;code&amp;gt;station_id&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;bytes&amp;lt;/code&amp;gt; || 16-byte UUID of the satellite.&lt;br /&gt;
|-&lt;br /&gt;
| 3 || &amp;lt;code&amp;gt;from_ms&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int64&amp;lt;/code&amp;gt; || Start of the window, Unix ms of simulation time.&lt;br /&gt;
|-&lt;br /&gt;
| 4 || &amp;lt;code&amp;gt;to_ms&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int64&amp;lt;/code&amp;gt; || End of the window, Unix ms. After &amp;lt;code&amp;gt;from_ms&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| 5 || &amp;lt;code&amp;gt;step_seconds&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int32&amp;lt;/code&amp;gt; || Sample spacing, ≥ 1 s. The window may hold at most 3,600 samples.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Behaviour ==&lt;br /&gt;
* At most 3,600 samples: (&amp;lt;code&amp;gt;to_ms&amp;lt;/code&amp;gt; − &amp;lt;code&amp;gt;from_ms&amp;lt;/code&amp;gt;) / &amp;lt;code&amp;gt;step_seconds&amp;lt;/code&amp;gt; must not exceed that.&lt;br /&gt;
* Use the server&amp;#039;s simulation clock (&amp;lt;code&amp;gt;ServerHello.simulation_time_ms&amp;lt;/code&amp;gt;, or a recent &amp;lt;code&amp;gt;StationList.captured_at_ms&amp;lt;/code&amp;gt;) as &amp;quot;now&amp;quot;.&lt;br /&gt;
* The satellite must be PUBLIC or your own. Failures are answered with [[SimTX API/Packets/Error|Error]]: &amp;lt;code&amp;gt;NOT_FOUND&amp;lt;/code&amp;gt; (&amp;lt;i&amp;gt;Unknown satellite&amp;lt;/i&amp;gt;) for an unknown or invisible satellite, &amp;lt;code&amp;gt;INVALID_REQUEST&amp;lt;/code&amp;gt; for a window that ends before it starts, a step below 1 s or more than 3,600 samples, &amp;lt;code&amp;gt;STATION_INACTIVE&amp;lt;/code&amp;gt; when the satellite has already reentered, and &amp;lt;code&amp;gt;UNAVAILABLE&amp;lt;/code&amp;gt; when orbit computations are busy.&lt;br /&gt;
* For a deorbiting satellite, samples stop just before &amp;lt;code&amp;gt;deorbit.reentry_at_ms&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Heavy request.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Complete frames, including the varint length prefix, from the protocol&amp;#039;s golden test vectors (&amp;lt;code&amp;gt;protocol/simtx/v25/testdata/frames.json&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;ephemeris_request&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; (client to server, 40 bytes):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
27                      frame length 39&lt;br /&gt;
C2 02 24                ephemeris (EphemerisRequest), 36 bytes&lt;br /&gt;
  08 15                 request_id = 21&lt;br /&gt;
  12 10 99 99 99 99 …   station_id = 99999999-8888-4777-8666-555555555555&lt;br /&gt;
  18 80 94 83 B9 97 34  from_ms = 1793000000000&lt;br /&gt;
  20 E0 E8 86 B9 97 34  to_ms = 1793000060000&lt;br /&gt;
  28 1E                 step_seconds = 30&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;error_ephemeris_not_found&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; (server to client, 26 bytes):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
19                                 frame length 25&lt;br /&gt;
1A 17                              error (Error), 23 bytes&lt;br /&gt;
  08 04                            code = 4 (ERROR_CODE_NOT_FOUND)&lt;br /&gt;
  12 11 55 6E 6B 6E 6F 77 6E 20 …  message = &amp;quot;Unknown satellite&amp;quot;&lt;br /&gt;
  18 15                            request_id = 21&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[SimTX API/Satellites]]&lt;br /&gt;
* [[SimTX API/Packets/EphemerisResponse|EphemerisResponse]]&lt;br /&gt;
&lt;br /&gt;
{{SimTX API navbox}}&lt;br /&gt;
[[Category:SimTX API]]&lt;/div&gt;</summary>
		<author><name>Clanker</name></author>
	</entry>
</feed>