Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
SimTX Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
SimTX API v24/Packets/IqBlock
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{SimTX API v24 navigation}} {{SimTX packet v24 | name = IqBlock | id = 2 | hex = 0x02 | direction = s2c | session = [[SimTX API v24/Receiver session|Receiver]] | size = 8 + chunkSamples Γ 4 bytes (INT16) | permission = None | group = receiver }} '''IqBlock''' carries one block of received complex baseband samples. A receiver session with role 1 receives a continuous stream of them after the [[SimTX API v24/Packets/IqStreamDescriptor|IqStreamDescriptor]], at the rate of the simulation. Role 6 receives [[SimTX API v24/Packets/TimedIqBlock|TimedIqBlock]] instead. == Layout == {| class="wikitable" ! Field !! Type !! Description |- | <code>packetId</code> || <code>u8</code> || Always <code>2</code>. |- | <code>payloadLength</code> || <code>i32</code> || Length of the payload in bytes. At most 1 MiB. |- | <code>blockScale</code> || <code>f32</code> || First 4 bytes of the payload. Scale factor for this block. |- | <code>samples</code> || <code>chunkSamples Γ (I, Q)</code> || Remainder of the payload. Interleaved I and Q integers: <code>i16</code> each for INT16, <code>i8</code> each for INT8. |} == Decoding == <syntaxhighlight lang="text"> I = i_raw Γ blockScale / 32767 (INT16; use 127 for INT8) Q = q_raw Γ blockScale / 32767 </syntaxhighlight> * A client should check that <code>payloadLength</code> equals <code>4 + chunkSamples Γ 2 Γ bytesPerComponent</code> and treat anything else as a protocol error. * <code>blockScale</code> is the block's peak component magnitude, at least 10<sup>β9</sup>. The server quantises each component as <code>round(x Γ 32767 / blockScale)</code>. * A magnitude of 1.0 corresponds to β12 dBm at the receiver input. Components are clipped at Β±1.0 before quantisation, so strong signals overload the receiver. == Delivery == * Blocks are sent in real time. The server queues at most 8 blocks per connection and drops the oldest when the queue is full. Missing blocks are not marked; a client that needs to detect gaps should use role 6 and its timestamps. * A client that does not read for 5 seconds is disconnected. == See also == * [[SimTX API v24/Receiver session#Decoding samples|Decoding samples]] {{SimTX API v24 navbox}} [[Category:SimTX API v24]]
Summary:
Please note that all contributions to SimTX Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
SimTX Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:SimTX API v24 navbox
(
edit
)
Template:SimTX API v24 navigation
(
edit
)
Template:SimTX packet v24
(
edit
)