Jump to content

SimTX API v24/Packets/ReceiverSessionRequest: Difference between revisions

From SimTX Wiki
Clanker (talk | contribs)
SimTX API documentation
 
Clanker (talk | contribs)
Archive the v24 protocol reference: use the v24 templates, links and categories
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{SimTX API navigation}}
{{SimTX API v24 navigation}}
{{SimTX packet
{{SimTX packet v24
| name = ReceiverSessionRequest
| name = ReceiverSessionRequest
| id = 1
| id = 1
| hex = 0x01
| hex = 0x01
| direction = c2s
| direction = c2s
| session = [[SimTX API/Receiver session|Receiver]]
| session = [[SimTX API v24/Receiver session|Receiver]]
| size = Variable, at least 70 bytes
| size = Variable, at least 70 bytes
| permission = None
| permission = None
| reply = [[SimTX API/Packets/IqStreamDescriptor|IqStreamDescriptor]]
| reply = [[SimTX API v24/Packets/IqStreamDescriptor|IqStreamDescriptor]]
| group = receiver
| group = receiver
}}
}}
'''ReceiverSessionRequest''' starts a [[SimTX API/Receiver session|receiver session]]. It describes the receiving station (callsign, position and antenna), the receiver's noise figure, and the frequency, bandwidth, sample rate and block size the client would like. The client sends it once, immediately after an accepted [[SimTX API/Packets/HandshakeResult|HandshakeResult]] on a connection with role 1 or 6.
'''ReceiverSessionRequest''' starts a [[SimTX API v24/Receiver session|receiver session]]. It describes the receiving station (callsign, position and antenna), the receiver's noise figure, and the frequency, bandwidth, sample rate and block size the client would like. The client sends it once, immediately after an accepted [[SimTX API v24/Packets/HandshakeResult|HandshakeResult]] on a connection with role 1 or 6.


== Layout ==
== Layout ==
Line 21: Line 21:
| <code>callsign</code> || <code>UTF</code> || Station name shown in station lists. 1–64 characters, no control characters.
| <code>callsign</code> || <code>UTF</code> || Station name shown in station lists. 1–64 characters, no control characters.
|-
|-
| <code>location</code> || [[SimTX API/Data types#GeoPoint|GeoPoint]] || Receiver position.
| <code>location</code> || [[SimTX API v24/Data types#GeoPoint|GeoPoint]] || Receiver position.
|-
|-
| <code>antenna</code> || [[SimTX API/Data types#AntennaConfig|AntennaConfig]] || Receiving antenna. A NEC deck may be supplied.
| <code>antenna</code> || [[SimTX API v24/Data types#AntennaConfig|AntennaConfig]] || Receiving antenna. A NEC deck may be supplied.
|-
|-
| <code>noiseFigureDb</code> || <code>f32</code> || Receiver front-end noise figure in dB, ≥ 0. Real HF receivers are typically 3–8 dB; HF reception is usually limited by external noise anyway.
| <code>noiseFigureDb</code> || <code>f32</code> || Receiver front-end noise figure in dB, ≥ 0. Real HF receivers are typically 3–8 dB; HF reception is usually limited by external noise anyway.
Line 39: Line 39:


== Negotiation ==
== Negotiation ==
The server adjusts the request and reports the result in [[SimTX API/Packets/IqStreamDescriptor|IqStreamDescriptor]]:
The server adjusts the request and reports the result in [[SimTX API v24/Packets/IqStreamDescriptor|IqStreamDescriptor]]:


{| class="wikitable"
{| class="wikitable"
Line 76: Line 76:


== See also ==
== See also ==
* [[SimTX API/Receiver session]]
* [[SimTX API v24/Receiver session]]
* [[SimTX API/Quick start]]
* [[SimTX API v24/Quick start]]


{{SimTX API navbox}}
{{SimTX API v24 navbox}}
[[Category:SimTX API]]
[[Category:SimTX API v24]]

Latest revision as of 16:17, 24 October 2026

This page documents protocol v24, which current servers no longer accept. See SimTX API for v25.
ReceiverSessionRequest
Packet ID 1(0x01)
Direction Client → server
Session Receiver
Body size Variable, at least 70 bytes
Permission None
Answered by IqStreamDescriptor
Answers

ReceiverSessionRequest starts a receiver session. It describes the receiving station (callsign, position and antenna), the receiver's noise figure, and the frequency, bandwidth, sample rate and block size the client would like. The client sends it once, immediately after an accepted HandshakeResult on a connection with role 1 or 6.

Layout[edit | edit source]

Field Type Description
packetId u8 Always 1.
callsign UTF Station name shown in station lists. 1–64 characters, no control characters.
location GeoPoint Receiver position.
antenna AntennaConfig Receiving antenna. A NEC deck may be supplied.
noiseFigureDb f32 Receiver front-end noise figure in dB, ≥ 0. Real HF receivers are typically 3–8 dB; HF reception is usually limited by external noise anyway.
centerFreqHz f32 Centre frequency in hertz, ≥ 0.
bandwidthHz f32 Requested filter bandwidth in hertz.
sampleRate i32 Requested sample rate in complex samples per second, > 0.
chunkSamples i32 Requested complex samples per block, > 0.
soloTransmitterUuid UTF Must be empty. A non-empty value isolates one transmitter and requires the monitor.any permission; without it the connection is closed.

Negotiation[edit | edit source]

The server adjusts the request and reports the result in IqStreamDescriptor:

Value Rule
Sample rate Requests up to 2,400,000 are clamped to 24,000–2,400,000 (narrowband). Requests above are wideband: min(request, 32,000,000).
Block size Narrowband: clamped to 1,024 … min(1,200,000, rate × T), where T is 40 ms on the public clustered servers and 0.5 s on a stand-alone server. Wideband: always 16,384.
Bandwidth max(50, min(request, max(24,000, rate))). A non-finite or non-positive request selects the maximum.

Validation[edit | edit source]

Invalid values close the connection without a message. Typical mistakes are a latitude outside ±90°, a longitude outside ±180°, a negative noise figure or frequency, a non-finite float, an empty callsign, and an unknown antenna type. Server and per-IP receiver limits, and the wideband budget, are also enforced by closing the connection.

Example[edit | edit source]

A receiver called N0CALL in Budapest at 120 m, with a 10 m high dipole, 5 dB noise figure, tuned to 7.1 MHz at 48 kS/s:

01                                packetId 1
00 06 4E 30 43 41 4C 4C           callsign "N0CALL"
40 47 BF BB 2F EC 56 D6           latitudeDeg   47.4979
40 33 0A 4A 8C 15 4C 98           longitudeDeg  19.0402
40 5E 00 00 00 00 00 00           altitudeMeters 120.0
00 06 44 49 50 4F 4C 45           antenna type "DIPOLE"
41 20 00 00 00 00 00 00           heightMeters 10.0, azimuthDeg 0.0
00 00 00 00 00 00 00 00           feedlineLossDb 0.0, wireLengthMeters 0.0
00 00 00 00                       necDeckLength 0
40 A0 00 00                       noiseFigureDb 5.0
4A D8 AC C0                       centerFreqHz  7100000.0
47 3B 80 00                       bandwidthHz   48000.0
00 00 BB 80                       sampleRate    48000
00 00 07 80                       chunkSamples  1920
00 00                             soloTransmitterUuid ""

See also[edit | edit source]

SimTX API v24 reference (protocol v24, archived)
Start OverviewQuick startData typesLimits and errorsPacket list
Account service OverviewDevice loginServer directoryGame ticketsPermissionsPublic endpoints
Game protocol Connection and handshakeReceiver sessionTransmitter sessionControl sessionCatalogModeration
Handshake HandshakeHandshakeResult
Receiver ReceiverSessionRequestReceiverRetuneForwardedClientAddressIqStreamDescriptorIqBlockTimedIqBlock
Transmitter TransmitterSessionRequestSampleBlockTxModeInfoTxUpdateTxQueueTxAcceptTxRejectTxKickTxTelemetryTxUpdateAck
Control ControlAckBannerListStationsStationListServerHealthRequestServerHealthReportCoverageMapRequestCoverageMapResponseWeatherMapRequestWeatherMapResponseStartMonitorStopMonitorMonitorBlockMonitorEnd
Catalog CatalogListRequestCatalogListCatalogFetchCatalogEntryCatalogUploadCatalogUploadResultCatalogDeleteCatalogDeleteResult
Moderation KickRequestKickResultIpModerationRequestIpModerationResultBroadcastBannerModerationErrorStationImpactList
Current Protocol v25 reference