fix build chain
This commit is contained in:
85
build/blocks/ccsds_ldpc_decoder.xml
Normal file
85
build/blocks/ccsds_ldpc_decoder.xml
Normal file
@ -0,0 +1,85 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>LDPC Decoder (CCSDS)</name>
|
||||
<key>ccsds_ldpc_decoder</key>
|
||||
<category>CCSDS/Channelcoding</category>
|
||||
<import>import ccsds</import>
|
||||
<make>ccsds.ldpc_decoder($par_file, $systype.fcn, $puncttype.fcn, $num_punct, tuple($punct_pos))</make>
|
||||
|
||||
<param>
|
||||
<name>Paritycheck matrix</name>
|
||||
<key>par_file</key>
|
||||
<type>file_open</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Systematic</name>
|
||||
<key>systype</key>
|
||||
<value>ccsds.LDPC_SYS_FRONT</value>
|
||||
<type>enum</type>
|
||||
<option>
|
||||
<name>None</name>
|
||||
<key>sys_none</key>
|
||||
<opt>fcn:ccsds.LDPC_SYS_NONE</opt>
|
||||
</option>
|
||||
<option>
|
||||
<name>Front</name>
|
||||
<key>sys_front</key>
|
||||
<opt>fcn:ccsds.LDPC_SYS_FRONT</opt>
|
||||
</option>
|
||||
<option>
|
||||
<name>Back</name>
|
||||
<key>sys_back</key>
|
||||
<opt>fcn:ccsds.LDPC_SYS_BACK</opt>
|
||||
</option>
|
||||
</param>
|
||||
<param>
|
||||
<name>Puncturing position</name>
|
||||
<key>puncttype</key>
|
||||
<value>ccsds.LDPC_PUNCT_NONE</value>
|
||||
<type>enum</type>
|
||||
<option>
|
||||
<name>None</name>
|
||||
<key>punct_none</key>
|
||||
<opt>fcn:ccsds.LDPC_PUNCT_NONE</opt>
|
||||
</option>
|
||||
<option>
|
||||
<name>Front</name>
|
||||
<key>punct_front</key>
|
||||
<opt>fcn:ccsds.LDPC_PUNCT_FRONT</opt>
|
||||
</option>
|
||||
<option>
|
||||
<name>Back</name>
|
||||
<key>punct_back</key>
|
||||
<opt>fcn:ccsds.LDPC_PUNCT_BACK</opt>
|
||||
</option>
|
||||
<option>
|
||||
<name>Custom</name>
|
||||
<key>punct_custom</key>
|
||||
<opt>fcn:ccsds.LDPC_PUNCT_CUSTOM</opt>
|
||||
</option>
|
||||
</param>
|
||||
<param>
|
||||
<name>Number of punctures</name>
|
||||
<key>num_punct</key>
|
||||
<value>0</value>
|
||||
<type>int</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Custom puncturing positions</name>
|
||||
<key>punct_pos</key>
|
||||
<value>[]</value>
|
||||
<type>int_vector</type>
|
||||
</param>
|
||||
|
||||
<check>$num_punct >= 0</check>
|
||||
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>message</type>
|
||||
</sink>
|
||||
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>message</type>
|
||||
</source>
|
||||
</block>
|
85
build/blocks/ccsds_ldpc_encoder.xml
Normal file
85
build/blocks/ccsds_ldpc_encoder.xml
Normal file
@ -0,0 +1,85 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>LDPC Encoder (CCSDS)</name>
|
||||
<key>ccsds_ldpc_encoder</key>
|
||||
<category>CCSDS/Channelcoding</category>
|
||||
<import>import ccsds</import>
|
||||
<make>ccsds.ldpc_encoder($gen_file, $systype.fcn, $puncttype.fcn, $num_punct, tuple($punct_pos))</make>
|
||||
|
||||
<param>
|
||||
<name>Generator matrix</name>
|
||||
<key>gen_file</key>
|
||||
<type>file_open</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Systematic</name>
|
||||
<key>systype</key>
|
||||
<value>ccsds.LDPC_SYS_FRONT</value>
|
||||
<type>enum</type>
|
||||
<option>
|
||||
<name>None</name>
|
||||
<key>sys_none</key>
|
||||
<opt>fcn:ccsds.LDPC_SYS_NONE</opt>
|
||||
</option>
|
||||
<option>
|
||||
<name>Front</name>
|
||||
<key>sys_front</key>
|
||||
<opt>fcn:ccsds.LDPC_SYS_FRONT</opt>
|
||||
</option>
|
||||
<option>
|
||||
<name>Back</name>
|
||||
<key>sys_back</key>
|
||||
<opt>fcn:ccsds.LDPC_SYS_BACK</opt>
|
||||
</option>
|
||||
</param>
|
||||
<param>
|
||||
<name>Puncturing position</name>
|
||||
<key>puncttype</key>
|
||||
<value>ccsds.LDPC_PUNCT_NONE</value>
|
||||
<type>enum</type>
|
||||
<option>
|
||||
<name>None</name>
|
||||
<key>punct_none</key>
|
||||
<opt>fcn:ccsds.LDPC_PUNCT_NONE</opt>
|
||||
</option>
|
||||
<option>
|
||||
<name>Front</name>
|
||||
<key>punct_front</key>
|
||||
<opt>fcn:ccsds.LDPC_PUNCT_FRONT</opt>
|
||||
</option>
|
||||
<option>
|
||||
<name>Back</name>
|
||||
<key>punct_back</key>
|
||||
<opt>fcn:ccsds.LDPC_PUNCT_BACK</opt>
|
||||
</option>
|
||||
<option>
|
||||
<name>Custom</name>
|
||||
<key>punct_custom</key>
|
||||
<opt>fcn:ccsds.LDPC_PUNCT_CUSTOM</opt>
|
||||
</option>
|
||||
</param>
|
||||
<param>
|
||||
<name>Number of punctures</name>
|
||||
<key>num_punct</key>
|
||||
<value>0</value>
|
||||
<type>int</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Custom puncturing positions</name>
|
||||
<key>punct_pos</key>
|
||||
<value>[]</value>
|
||||
<type>int_vector</type>
|
||||
</param>
|
||||
|
||||
<check>$num_punct >= 0</check>
|
||||
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>message</type>
|
||||
</sink>
|
||||
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>message</type>
|
||||
</source>
|
||||
</block>
|
48
build/blocks/ccsds_message_info.xml
Normal file
48
build/blocks/ccsds_message_info.xml
Normal file
@ -0,0 +1,48 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>message_info</name>
|
||||
<key>ccsds_message_info</key>
|
||||
<category>[ccsds]</category>
|
||||
<import>import ccsds</import>
|
||||
<make>ccsds.message_info($prefix, $mode)</make>
|
||||
<param>
|
||||
<name>Prefix</name>
|
||||
<key>prefix</key>
|
||||
<value>"Message info: "</value>
|
||||
</param>
|
||||
<param>
|
||||
<name>Mode</name>
|
||||
<key>mode</key>
|
||||
<value>10</value>
|
||||
<type>enum</type>
|
||||
<option>
|
||||
<name>Silent</name>
|
||||
<key>0</key>
|
||||
<opt>fcn:0</opt>
|
||||
</option>
|
||||
<option>
|
||||
<name>Compact</name>
|
||||
<key>10</key>
|
||||
<opt>fcn:10</opt>
|
||||
</option>
|
||||
<option>
|
||||
<name>Full</name>
|
||||
<key>20</key>
|
||||
<opt>fcn:20</opt>
|
||||
</option>
|
||||
</param>
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>message</type>
|
||||
</sink>
|
||||
<doc>
|
||||
Print out messages with a timestamp.
|
||||
|
||||
Prefix: String that will be written before the data line(s)
|
||||
|
||||
Modes:
|
||||
- Silent: Do not write anything
|
||||
- Compact: Write one line summary of the message
|
||||
- Full: Write full content of the message
|
||||
</doc>
|
||||
</block>
|
35
build/blocks/ccsds_output_counter_cc.xml
Normal file
35
build/blocks/ccsds_output_counter_cc.xml
Normal file
@ -0,0 +1,35 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>Output rate counter</name>
|
||||
<key>ccsds_output_counter_cc</key>
|
||||
<category>[ccsds]</category>
|
||||
<import>import ccsds</import>
|
||||
<make>ccsds.output_counter_cc($block_length)</make>
|
||||
<param>
|
||||
<name>Block size</name>
|
||||
<key>block_length</key>
|
||||
<value>1024</value>
|
||||
<type>int</type>
|
||||
</param>
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>complex</type>
|
||||
</sink>
|
||||
<source>
|
||||
<name>in_cpy</name>
|
||||
<type>complex</type>
|
||||
<optional>1</optional>
|
||||
</source>
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>message</type>
|
||||
<optional>1</optional>
|
||||
</source>
|
||||
<doc>
|
||||
Copies the input complex intput to the (optional) output.
|
||||
|
||||
Counts the number of copied samples and emits a "block_out" message everytime 'Block size' samples have been copied.
|
||||
|
||||
This block is intendet to enable limiting the number of samples queueing up before a transmitter. So far the only block capable of using this messages is the udp_source_rate_idle block.
|
||||
</doc>
|
||||
</block>
|
56
build/blocks/ccsds_randomiser_softbits.xml
Normal file
56
build/blocks/ccsds_randomiser_softbits.xml
Normal file
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>Pseudo (De)randomiser with Softbits (CCSDS)</name>
|
||||
<key>ccsds_randomiser_softbits</key>
|
||||
<category>CCSDS/Telemetry</category>
|
||||
<import>import ccsds</import>
|
||||
<make>ccsds.randomiser_softbits($poly,$seed)</make>
|
||||
<param>
|
||||
<name>Generating Polynimoal</name>
|
||||
<key>poly</key>
|
||||
<value>0x95</value>
|
||||
<type>int</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Seed</name>
|
||||
<key>seed</key>
|
||||
<value>0xFF</value>
|
||||
<type>int</type>
|
||||
</param>
|
||||
<check>$poly >= 0</check>
|
||||
<check>$poly < 256</check>
|
||||
<check>$seed >= 0</check>
|
||||
<check>$seed < 256</check>
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>message</type>
|
||||
</sink>
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>message</type>
|
||||
</source>
|
||||
<doc>
|
||||
Pseudo (De)randomiser
|
||||
Combines the input frame with a pseudo random sequence by XOR operation. A one
|
||||
in the PRN sequence will invert the softbit, a zero will copy it untouched. The
|
||||
pseudo random sequence is generated by an 8-bit linear feedback shift register
|
||||
(LFSR) as defined in ECSS.
|
||||
|
||||
The pseudo random sequence can be modified by the generating polygon as well as
|
||||
shifted by choosing a different initial seed state.
|
||||
|
||||
poly: Polynomial that defines the network of the 8 shift registers. The MSB
|
||||
encodes whether the last shift register (which is used for the output) should be
|
||||
used to generate the new input while the LSB encodes whether the first shift
|
||||
register (that holds the input bit of the last step should be used to generate
|
||||
the output. Or in ECSS definition: The MSB holds the coefficient for x^0 up to
|
||||
the LSB which holds coefficient x^7. x^8 is not encoded as it is always set (due
|
||||
to the fact that this is a maximum length 8 bit shift register). The default
|
||||
value is 0x95 which corresponds to the randomiser defined in ECSS with the
|
||||
polynomial representation x^8+x^7+x^5+x^3+x^0.
|
||||
|
||||
seed: Initial state of the shift registers. MSB corresponds to the last register
|
||||
(which will be the output on the next step). Default to all ones as defined in
|
||||
ECSS.
|
||||
</doc>
|
||||
</block>
|
17
build/blocks/ccsds_send_nanolink.xml
Normal file
17
build/blocks/ccsds_send_nanolink.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>Send Nanolink Frames to REST</name>
|
||||
<key>ccsds_send_nanolink</key>
|
||||
<category>[ccsds]</category>
|
||||
<import>import ccsds</import>
|
||||
<make>ccsds.send_nanolink($url)</make>
|
||||
<param>
|
||||
<name>Url</name>
|
||||
<key>url</key>
|
||||
<value>"localhost:8082"</value>
|
||||
</param>
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>message</type>
|
||||
</sink>
|
||||
</block>
|
17
build/blocks/ccsds_soft_to_hard_message.xml
Normal file
17
build/blocks/ccsds_soft_to_hard_message.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>Softbit PDU to Hardbyte PDU</name>
|
||||
<key>ccsds_soft_to_hard_message</key>
|
||||
<category>[ccsds]/Conversion</category>
|
||||
<import>import ccsds</import>
|
||||
<make>ccsds.soft_to_hard_message()</make>
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>message</type>
|
||||
</sink>
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>message</type>
|
||||
</source>
|
||||
<doc>Convert PDU with softbit payload to PDU with hardbits (compacted to bytes) payload.</doc>
|
||||
</block>
|
29
build/blocks/ccsds_softbit_msg_sink_f.xml
Normal file
29
build/blocks/ccsds_softbit_msg_sink_f.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>Softbit Message Sink</name>
|
||||
<key>ccsds_softbit_msg_sink_f</key>
|
||||
<category>CCSDS/Conversion</category>
|
||||
<import>import ccsds</import>
|
||||
<make>ccsds.softbit_msg_sink_f($frame_len)</make>
|
||||
<param>
|
||||
<name>Frame length</name>
|
||||
<key>frame_len</key>
|
||||
<value>40</value>
|
||||
<type>int</type>
|
||||
</param>
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>float</type>
|
||||
</sink>
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>message</type>
|
||||
</source>
|
||||
<doc>
|
||||
Softbit message sink
|
||||
|
||||
Copies portions of Frame length softbits from the input stream to a softbit message.
|
||||
|
||||
Frame length: Length of a frame in (soft)bits.
|
||||
</doc>
|
||||
</block>
|
29
build/blocks/ccsds_softbit_msg_source_f.xml
Normal file
29
build/blocks/ccsds_softbit_msg_source_f.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>Softbit Message Source</name>
|
||||
<key>ccsds_softbit_msg_source_f</key>
|
||||
<category>CCSDS/Conversion</category>
|
||||
<import>import ccsds</import>
|
||||
<make>ccsds.softbit_msg_source_f($frame_len)</make>
|
||||
<param>
|
||||
<name>Frame length</name>
|
||||
<key>frame_len</key>
|
||||
<value>40</value>
|
||||
<type>int</type>
|
||||
</param>
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>message</type>
|
||||
</sink>
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>float</type>
|
||||
</source>
|
||||
<doc>
|
||||
Softbit message source
|
||||
|
||||
Copies the floats contained in the incomming Softbit messages to the output stream.
|
||||
|
||||
Frame length: Length of a frame in (soft)bits.
|
||||
</doc>
|
||||
</block>
|
100
build/blocks/ccsds_udp_source_rate_idle_b.xml
Normal file
100
build/blocks/ccsds_udp_source_rate_idle_b.xml
Normal file
@ -0,0 +1,100 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>Rate controled UDP source with idle frames</name>
|
||||
<key>ccsds_udp_source_rate_idle_b</key>
|
||||
<category>[ccsds]</category>
|
||||
<throttle>1</throttle>
|
||||
<import>import ccsds</import>
|
||||
<make>ccsds.udp_source_rate_idle_b($host_recv, $port_recv, $host_ctl, $port_ctl, $max_frame_length, $block_len, $num_blocks_floating, $idle_pattern)</make>
|
||||
<param>
|
||||
<name>Hostname (data)</name>
|
||||
<key>host_recv</key>
|
||||
<value>'localhost'</value>
|
||||
<type>string</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Port (data)</name>
|
||||
<key>port_recv</key>
|
||||
<type>int</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Hostname (control)</name>
|
||||
<key>host_ctl</key>
|
||||
<value>'localhost'</value>
|
||||
<type>string</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Port (control)</name>
|
||||
<key>port_ctl</key>
|
||||
<type>int</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Max Frame length (Bytes)</name>
|
||||
<key>max_frame_length</key>
|
||||
<value>1024</value>
|
||||
<type>int</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Block size (Bytes)</name>
|
||||
<key>block_len</key>
|
||||
<value>1024</value>
|
||||
<type>int</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Num. blocks floating</name>
|
||||
<key>num_blocks_floating</key>
|
||||
<value>10</value>
|
||||
<type>int</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Idle pattern</name>
|
||||
<key>idle_pattern</key>
|
||||
<value>[0x00, 0xFF,]*12</value>
|
||||
<type>raw</type>
|
||||
</param>
|
||||
<check>$port_recv > 0</check>
|
||||
<check>$port_ctl > 0</check>
|
||||
<check>$max_frame_length > 0</check>
|
||||
<check>$block_len > 0</check>
|
||||
<check>$num_blocks_floating > 0</check>
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>message</type>
|
||||
</sink>
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>byte</type>
|
||||
</source>
|
||||
<doc>
|
||||
UDP source with rate control and idle pattern insertion
|
||||
|
||||
This block will keep 'Num. blocks floating' blocks of 'Block size' bytes in the downstream processing. It receives "block_out" messages from a downstream block to be notified once a block has left the processing chain at that block and a new one should be inserted by the source.
|
||||
|
||||
It receives datagrams of a maximum size of 'Max Frame length' Bytes over the UDP socket listening to the data hostname and port and buffers them internally. If the internal buffer holds more data than what could be send out in 1 block, it sends a control datagram with the 's' Byte (encoded in ASCII) to the control hostname and port. Once the buffer contains less data than required to fill a complete block, it will send a 'g' Byte (encoded in ASCII) to the control hostname and port.
|
||||
|
||||
If a new block has to be send out and there is not enough data in the internal buffer to complete the block, (multiple) copies of the idle patterns are inserted at the back of the buffer.
|
||||
|
||||
If an element in the buffer does not completely fit into the current block to be send it is split, such that the rest of the element is send as first item of the next block.
|
||||
|
||||
The only block so far that provides the "block_out" message is the output_counter block.
|
||||
|
||||
|
||||
'Hostname (data)' and 'Port (data)':
|
||||
Hostname and port for the UDP socket on which the data arrives and is stored in the internal buffer. The block will bind to this socket (UDP Server).
|
||||
|
||||
'Hostname (control)' and 'Port (control)':
|
||||
Target hostname and port for the control datagrams 's' and 'g'. The block will only send to this socket, but not bind to it (UDP Client).
|
||||
|
||||
'Max Frame length':
|
||||
Maximum frame (datagram) length in Bytes that can be received over the data socket. This value is only used for buffer allocation.
|
||||
|
||||
'Block size':
|
||||
Number of bytes that constitute one data block. The value entered here must correspond to the block size parameter of the downstream block that provides the "block_out" messages or the flowgrapg between the two blocks will fill up, or run empty over time.
|
||||
|
||||
'Num. blocks floating':
|
||||
Number of data blocks that should be in the flowgraph at the same time.
|
||||
|
||||
'Idle pattern':
|
||||
Python vector of Bytes that form the idle pattern. Everytime a new data block has to be send out and there is not enough data in the internal buffer to fill this data block, one or multiple copies of the idle pattern are added to the end of the internal buffer in order to be able to complete the data block transmission. If transmitted, the idle pattern is always transmitted completely.
|
||||
</doc>
|
||||
</block>
|
Reference in New Issue
Block a user