Difference between revisions of "HANcoder/STM32/Blocks/UDP Server Receive"

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Jump to: navigation, search
(Created page with "{{HANcoder/block| info= With this block you can access the data of the data packet that was most recently received by the UDP server. |blockImage= UDPServerReceive.png |mas...")
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{HANcoder/block|
+
{{HANcoder/Block/UDP
  
info=
+
|info =  
 
With this block you can access the data of the data packet that was most recently received by the UDP server.
 
With this block you can access the data of the data packet that was most recently received by the UDP server.
  
|blockImage=
+
|blockImage = UDPServerReceive.png
UDPServerReceive.png
+
|maskImage = UDPServerReceiveMask.png
  
|maskImage=
+
}}
UDPServerReceiveMask.png
+
== Outputs (outports) ==
 +
The last received data will be available on these outports.
  
 +
== Block parameters ==
 +
{| class="wikitable"
 +
|-
 +
! style="width:150px" | Parameter
 +
! Description
 +
|-
 +
| Output ports
 +
| Select the number of output ports
 +
|-
 +
| Output data type
 +
| Select the output data type
 +
|-
 +
| Byte order
 +
| Set the appropriate byte ordering for your CAN message: Checkbox checked = Most Significant Bit (MSB) is send first (Motorola format). Checkbox unchecked = Least Significant Bit (LSB) is send first (Intel format).
 +
|-
 +
| Start index
 +
| The UDP server's receive buffer can be seen as an array of bytes. This parameter enables you to select the index of the byte where the read operation will start at.
 +
|-
 +
| Sample time
 +
| The block execution time, the amount of time between consecutive executions of the block. 0.1 means the the block will be executed at 10 Hz.
 +
|}
 +
 +
{{HANcoder/BlockFooter|
 +
|SeeAlso = [[HANcoder/STM32/Blocks/UDP_Client_Send|UDP client send]] {{!}} [[HANcoder/STM32/Blocks/UDP_Server_Init|UDP Server init]] {{!}} [[HANcoder/STM32/Blocks/UDP_Server_New_Data_Available|UDP Server new data available]] {{!}} [[HANcoder/STM32/Blocks/UDP_Server_Receive_Size|UDP Server receive size]]
 
}}
 
}}

Latest revision as of 10:36, 5 May 2017

Supported Targets: E407

General information about UDP Server Receive

With this block you can access the data of the data packet that was most recently received by the UDP server.

Block

UDPServerReceive.png

Mask

UDPServerReceiveMask.png

Outputs (outports)

The last received data will be available on these outports.

Block parameters

Parameter Description
Output ports Select the number of output ports
Output data type Select the output data type
Byte order Set the appropriate byte ordering for your CAN message: Checkbox checked = Most Significant Bit (MSB) is send first (Motorola format). Checkbox unchecked = Least Significant Bit (LSB) is send first (Intel format).
Start index The UDP server's receive buffer can be seen as an array of bytes. This parameter enables you to select the index of the byte where the read operation will start at.
Sample time The block execution time, the amount of time between consecutive executions of the block. 0.1 means the the block will be executed at 10 Hz.

See Also

UDP client send | UDP Server init | UDP Server new data available | UDP Server receive size