Skip to main content

Serial Nodes

These nodes could be used to interface with peripherals using the UART protocol and also for debugging purposes.

Config Nodes

serial port

Handles serial connection and its settings for serial communication.

Inputs

  • Port no. : Select the UART port for communication. Options include:<br>UART0<br>UART1<br>UART2
  • Speed (bits/s) : Enter the communication speed in bits per second (bps). Common values: 9600, 115200, etc.
  • TX pin : Refer the Datasheet and specify the GPIO pin used for transmitting (TX) data.
  • RX pin : Refer the Datasheet and specify the GPIO pin used for receiving (RX) data.
  • Clock source : Select the clock source for the UART module. Options:<br>1.SCLK_APB – Uses APB clock source.<br>2.SCLK_DEFAULT – Uses the default system clock.<br>3.SCLK_REF_TICK – Uses a reference tick clock.
  • Max receive size : Define the maximum size of data the UART can receive in bytes.
  • Word size : Select the number of bits per word (5, 6, 7, or 8 bits).
  • Parity : Parity: Choose the parity mode:<br>Disabled No parity bit.<br>Even Ensures the total number of 1s in the data is even.<br>Odd Ensures the total number of 1s in the data is odd.
  • Stop Bits : Stop Bits: Choose the stop bit configuration:<br>1 Stop Bit<br>1.5 Stop Bits<br>2 Stop Bits
  • Flow control : Select the flow control mechanism for handling data transmission:<br>1.None – No flow control.<br>2.CTS (Clear to Send) – The device waits for permission before sending data.<br>3.RTS (Request to Send) – The device signals when it is ready to receive data.<br>4.Both – Enables both CTS and RTS for full hardware flow control.

Proc Nodes

serial write

<b>Transmit serial data over the specified UART port to enable communication with external devices such as microcontrollers, sensors, displays, or computers.</b> This node allows customization of baud rate, parity, stop bits, and word size, making it adaptable for different serial communication needs.Configure the TX and RX pins appropriately to establish a stable connection. Once set up, data will be sent in real-time through the TX pin while the RX pin remains available for receiving data.

Inputs

  • Serial port : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Text : Enter the message or data to be transmitted over the UART.

display

Prints text on the serial display window.

Inputs

  • Text : Enter the message or data to be transmitted over the UART.

serial read

<b>Receive serial data from the specified UART port,</b> enabling communication with external devices such as microcontrollers, sensors, displays, or computers. This node supports two reading modes:<br>•Read Length Reads a specified number of bytes from the UART buffer.<br>•Read Line Reads data until a predefined line-ending character is encountered.<br>Configure RX and TX pins appropriately for a stable connection. The received data is stored in a user-defined variable, which can be used in the flow for further processing.

Inputs

  • Serial port : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Mode : Mode: Select the reading mode for receiving data:<br>Read Length – Reads a specific number of bytes.<br>Read Line – Reads data until a specific line-ending character is detected.
  • Data length : Data Length: Define the number of bytes to read.
  • Line ending char : Line Ending Character: Specify the character that indicates the end of a line (e.g., for newline, for carriage return).
  • Clip ending : Enable this feature by checking the box. This ensures that the received data is clipped when the specified line-ending character is detected.
  • Set timeout : Enable this feature by checking the box. If enabled, a timeout option appears:
  • Timeout (s) : Define the time in seconds to wait for the data before stopping the read operation.

Outputs

  • data : Enter a variable name that will store the received data for further processing.

serial set word length

<b>Set the word length (number of data bits) for UART communication. <b>The selected word size determines how many bits are used per transmitted or received character. This setting must match the configuration of the connected device to ensure proper communication.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Word size : Select the number of bits per word (5, 6, 7, or 8 bits).

serial get word length

<b>Retrieve the current word length configuration of the selected UART port.</b> The word length represents the number of data bits used per frame in serial communication. This node fetches the existing configuration and stores it in the specified output variable.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

Outputs

  • Word length : Enter the variable name to store the retrieved word length value.

serial set stop bits

<b>Configure the number of stop bits for the selected UART port.</b>Stop bits define the end of a data packet in serial communication, ensuring proper synchronization between sender and receiver.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Stop Bits : Select the number of stop bits used for serial communication. Options include:<br>1 Stop Bit<br>1.5 Stop Bits<br>2 Stop Bits

serial get stop bits

<b>Retrieve the current stop bit configuration for a specified UART port.</b> This helps in verifying communication settings dynamically in a flow.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

Outputs

  • Stop bits : The output will return values corresponding to the selected stop bit option:<b> 1, 1.5, or 2 stop bits</b>.

serial set parity bits

<b>Configure the parity bit setting for a specified UART port.</b> This ensures error detection in serial communication by adding an extra bit to transmitted data.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Parity : Select the type of parity check to be applied:<br>Disabled – No parity bit.<br>Even – Ensures an even number of 1s in transmitted data.<br>Odd – Ensures an odd number of 1s in transmitted data.

serial get parity bits

<b>Retrieve the current parity bit setting of a specified UART port and store the result in the output variable.</b>

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

Outputs

  • Parity bits : Enter a variable name where the retrieved parity bit setting will be stored.Expected Output (uint8 values):<br>0 → No parity (None)<br>1 → Odd parity<br>2 → Even parity

serial set baudrate

<b>Set the baud rate for a specified UART port, determining the speed of serial communication.</b>

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Baud rate : Enter the desired baud rate value for UART communication. Accepts standard baud rates such as 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600, etc.

serial get baudrate

<b>Retrieve the current baud rate of the selected UART port and store it in the specified output variable.</b>

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

Outputs

  • Baud rate : Enter a variable name that will store the retrieved baud rate value. The output is in uint32 format.

serial set line inverse

<b>Configures the selected UART port to invert specific signal lines, </b>modifying how data is transmitted or received. This operation is useful for adapting to devices that require an inverted logic level on TX, RX, RTS (Ready To Send), or CTS (Clear To Send) lines.When a signal is inverted, logical HIGH (1) becomes LOW (0) and vice versa. The Inverse Mask property lets you select which signals are affected..

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Inverse mask : Enter a bitwise mask to define which signals should be inverted. The default value is (0x1 << 0) | (0x1 << 1), which inverts TX and RX signals.

serial set sw flow control

<b>Set UART set sw flow control.</b>Configures software-based flow control for the selected UART port, enabling or disabling XON/XOFF control. Software flow control is particularly useful in scenarios where hardware flow control (RTS/CTS) is unavailable, allowing the receiving device to signal the sender when it can handle more data.<br>When software flow control is enabled, the UART communication relies on special control characters:<br>XON (ASCII 0x11): Sent by the receiver to signal the sender to resume transmission.<br>XOFF (ASCII 0x13): Sent by the receiver to signal the sender to pause transmission.<br>The RX Threshold XON and RX Threshold XOFF values define when these signals are sent based on the number of bytes in the receive buffer.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Enable : Select whether software flow control should be enabled. For now, the only available option is True.
  • Rx threshold xon : Set the byte threshold at which the receiver sends an XON (resume transmission) signal.
  • Rx threshold xoff : Set the byte threshold at which the receiver sends an XOFF (pause transmission) signal.

serial set hw flow control

<b>Configures the UART hardware flow control by setting the RX threshold for the selected UART port.</b> This threshold determines the number of bytes that must be received before RTS (Request to Send) is asserted, controlling the flow of incoming data to prevent buffer overflow.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Rx threshold : Define the receiver threshold value, which determines when the hardware flow control signals (RTS/CTS) should be triggered.

serial get hw flow control

<b>Retrieves the current hardware flow control mode of the selected UART port.</b> Hardware flow control manages data transmission using RTS (Request to Send) and CTS (Clear to Send) signals, preventing data loss by ensuring that the receiver is ready before data is sent.The retrieved flow control mode (uint16 value) indicates whether RTS, CTS, both, or no hardware flow control is enabled.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

Outputs

  • Flow ctrl mode : Specify a variable name to store the retrieved flow control mode

change serial intr mask status

<b>Modifies the interrupt mask status for the selected UART port,</b> allowing specific UART interrupts to be enabled or disabled as required. This is useful for managing UART event handling and optimizing system performance based on required communication events.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Mask : Specify the interrupt mask that needs to be modified. The mask determines which UART interrupts are affected.<br><b>Use Cases:</b><br>1.Enable or disable specific UART interrupts dynamically based on application needs.<br>2.Improve system efficiency by reducing unnecessary interrupt handling.<br>3.Control UART behavior for advanced serial communication management.
  • Status : Choose between:<br>Enable Activates the specified interrupt mask.<br>Disable – Deactivates the specified interrupt mask.

serial clear intr mask

<b>Clears the specified interrupt mask for the selected UART port.</b> This allows users to reset or disable certain UART interrupts manually by specifying the mask value, ensuring proper management of UART communication events.<br><b>Use Cases:</b><br>1.Reset specific UART interrupts to prevent repeated triggers.<br>2.Clear unwanted or pending UART events that are no longer needed.<br>3.Optimize system performance by ensuring only relevant interrupts remain active.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Clear mask : Enter the specific interrupt mask value that needs to be cleared.

change serial rx intr status

<b>Manages the receive (RX) interrupt for a specified UART port.</b> This node allows users to dynamically enable or disable UART interrupts to control how the system handles incoming data.<br>When enabled, the UART generates an interrupt whenever it receives data, which can be useful in real-time applications where immediate processing of serial input is required.<br>When disabled, the system will not automatically trigger an interrupt upon data reception, requiring data to be manually polled instead.<br><b>Use Cases:<b><br>1.Enable RX interrupt for applications that require immediate processing of incoming serial data, such as real-time monitoring systems or communication protocols that depend on fast response times.<br>2.Disable RX interrupt in cases where data reception can be handled manually via polling to optimize CPU resource usage.<br>3.Reduce unnecessary CPU load by disabling the RX interrupt when it is not required.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Status : Defines whether the RX interrupt should be active or inactive:<br>1.Enable Turns on the RX interrupt, allowing the UART peripheral to trigger an interrupt when data is received.<br>2.Disable Turns off the RX interrupt, preventing the UART from generating an interrupt upon data reception.

change serial tx intr status

<b>Manages the transmit (TX) interrupt for a specified UART port.</b> This node enables or disables UART TX interrupts, controlling how the system handles data transmission.<br>When enabled, the UART generates an interrupt when data reaches the configured threshold and is ready for transmission.<br>When disabled, transmission will need to be handled manually or using polling.<br><b>Use Cases:</b><br>1.Enable TX interrupt for applications requiring immediate transmission handling, such as buffered serial communication, logging, or streaming data.<br>2.Disable TX interrupt in applications where data can be sent manually or when interrupt-driven transmission is not necessary.<br>3.Optimize system performance by adjusting the TX threshold to reduce unnecessary interrupts.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Status : Defines whether the TX interrupt should be active or inactive:<br>1.Enable – Turns on the TX interrupt, allowing the UART peripheral to trigger an interrupt when data is ready to be transmitted.<br>2.Disable – Turns off the TX interrupt, preventing the UART from generating an interrupt upon data transmission.
  • Threshold : Specify the number of bytes that must be transmitted before the interrupt is triggered. This allows finer control over when the UART generates an interrupt signal.

serial set pin

<b>Configures the UART pin mappings for serial communication.</b> This node allows users to manually assign GPIO pins for RX, TX, RTS, and CTS, ensuring compatibility with different hardware setups.<br>When using hardware flow control, the RTS and CTS pins must be assigned to enable proper handshaking. If flow control is not needed, these can be left unassigned.<br><b>Use Cases:</b><br>1.Remap UART pins to different GPIOs based on hardware design requirements.<br>2.Enable hardware flow control by specifying RTS and CTS pins to prevent data loss in high-speed communication.<br>3.Customize UART communication for specific applications where default pin mappings are not

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • RX pin : Specify the GPIO pin to be used as the Receive (RX) pin for receiving serial data
  • TX pin : Specify the GPIO pin to be used as the Transmit (TX) pin for sending serial data.
  • Rts Pin : Define the GPIO pin to be used as the Request to Send (RTS) control signal, if required for hardware flow control.
  • Cts Pin : Define the GPIO pin to be used as the Clear to Send (CTS) control signal, if required for hardware flow control.

serial get pin

<b>Retrieves and outputs the currently assigned UART pin mappings,</b> providing insight into the RX, TX, RTS, and CTS pin configurations. This node is useful for debugging, verification, or dynamically fetching serial pin assignments in your flow.<br><b>Use Cases:</b><br>Check UART pin configurations dynamically for debugging.<br>Monitor active pin assignments when using different serial ports.<br>Verify hardware flow control settings by ensuring correct RTS and CTS pin mappings.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

Outputs

  • Rx pin : (Receive Pin GPIO Number): Store the GPIO number of the RX (Receive) pin in a variable. This pin is used for receiving data.
  • Tx pin : (Transmit Pin GPIO Number): Store the GPIO number of the TX (Transmit) pin in a variable. This pin is used for sending data.
  • Rts io num : (Request to Send GPIO Number): Store the GPIO number of the RTS (Request to Send) pin in a variable. This pin is used for hardware flow control.
  • Cts io num : (Clear to Send GPIO Number): Store the GPIO number of the CTS (Clear to Send) pin in a variable. This pin is used for hardware flow control.

set dtr rts pin level

<b>Controls the RTS (Request to Send) and DTR (Data Terminal Ready) pin levels for serial communication.</b> This node allows you to configure and toggle the RTS and DTR signals, which are commonly used for hardware flow control and modem signaling.<br><b>How to Use:<b><br>1.Select RTS/DTR Enable or Disable to control their operation.<br>2.Set RTS Level (0 or 1) to define whether RTS should be high or low.<br>3.Set DTR Level (0 or 1) to define whether DTR should be high or low.<br>4.Use this node in serial communication flows where RTS/DTR signaling is required.<br><b>Use Cases:</b><br>1.Manage hardware flow control for UART communication.<br>2.Control modem handshaking signals like RTS and DTR.<br>3.Enable/disable RTS and DTR dynamically based on specific conditions.<br>4.Set RTS/DTR levels for devices that require specific voltage signaling..

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Set rts : (Request to Send): Select whether to true or false the RTS (Request to Send) signal.<br>true – Activates RTS control.<br>false– Deactivates RTS control.
  • Rts level : Set the logic level for the RTS pin<br>0 – Set RTS to low.<br>1 – Set RTS to high.
  • Set dtr : (Data Terminal Ready): Select whether to true or false the DTR (Data Terminal Ready) signal.<br>true – Activates DTR control.<br>false – Deactivates DTR control.
  • Dtr level : Set the logic level for the DTR pin.<br>0 – Set DTR to low.<br>1 – Set DTR to high.

set tx idle number

<b>Configures the idle time before UART transmission begins by setting the number of idle bits.</b> This is useful when ensuring proper synchronization in serial communication, preventing transmission errors due to unexpected line activity.<br><b>How to Use:</b><br>Select the UART port under the Config property.<br>Set the Idle Num value to define the idle period before transmission starts.<br>Use this node to adjust timing in UART-based communication flows where idle timing is critical.<br><b>Use Cases:</b><br>1.Improve UART synchronization by ensuring the line is idle before transmission.<br>2.Adjust transmission delays based on system timing requirements.<br>3.Prevent collisions or noise interference in serial communication by introducing controlled idle periods.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Idle num : Enter the idle duration (in UART bit periods) before transmission starts. This value determines the number of idle bits sent before new data transmission begins.

serial wait for tramsmit done

<b>Ensures that UART transmission is fully completed before proceeding with the next operation.</b> This node is useful for scenarios where you need to synchronize processes and avoid data loss caused by premature execution of subsequent commands.<br><b>How to Use:<b><br>1.Select the UART port under the Config property.<br>2.Set the Ticks to Wait value based on how long the system should wait for transmission completion.<br>3.Use this node to avoid sending new data before the previous transmission finishes.<br><b>Use Cases:</b><br>1.Prevent premature execution of commands before transmission completes.<br>2.Ensure synchronization in serial communication to avoid data corruption.<br>3.Control UART timing by setting a timeout for the transmission process.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Ticks to wait : Enter the timeout value (in system ticks) to wait for the UART transmission to complete. A value of 0 means no waiting, while a higher value ensures the system waits until the transmission is finished or the timeout occurs.

serial write bytes

<b>Transmits a specified number of bytes over the selected UART serial port.</b> This node allows precise control over how much data is sent and whether a break signal is included before transmission.<br><b>How to Use:</b><br>Select the UART port under the Config property.<br>Enter the text data in the Data Source field.<br>Specify the size of the data to be sent (if required).<br>Choose whether to send a Break signal before transmission.<br>Store the number of bytes written in the output variable for further processing.<br><b>Use Cases:<b><br>1.Send specific-sized data over a UART connection.<br>2.Control break signaling before transmission.<br>3.Monitor the exact number of bytes sent in real-time applications.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Data Source : Enter the text data that needs to be transmitted over the serial port.Size: Specify the number of bytes to be sent. If left empty, the system automatically determines the data size.
  • Size : Specify size
  • Break length : Choose between:Break:<br>1. Sends a break signal before transmission.<br>2.No Break: Sends data without an initial break signal.

Outputs

  • Bytes written : Assign a variable to store the number of bytes successfully transmitted over the UART port.

serial get buffered data length

<b>Retrieves the amount of data stored in the UART receive buffer that is yet to be processed.</b> This node helps in checking the available buffered data before performing a read operation.<br><b>How to Use:</b><br>Select the UART port under the Config property.<br>Assign a variable in the Buffered Data Length field to store the retrieved value.<br>Use this value to decide when to read data from the buffer.<br><b>Use Cases:</b><br>Monitor available data before executing a read operation.<br>Prevent data loss by reading buffered data in time.<br>Ensure smooth data flow in applications requiring serial communication.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

Outputs

  • Buffered data length : Buffered Data Length: Assign a variable to store the number of bytes currently stored in the receive buffer but not yet read.

serial get tx buffer free size

<b>Retrieves the available free space in the UART TX buffer.</b> This helps in managing data transmission by ensuring that there is enough space before sending new data.<br><b>How to Use:</b><br>1.Select the UART port under the Config property.<br>2.Assign a variable in the Free Size field to store the retrieved value.<br>3.Use this value to determine when to write data to the TX buffer without overflow.<br><b>Use Cases:</b><br>1.Check buffer availability before sending large amounts of data.<br>2.Prevent data loss due to buffer overflow.<br>3.Optimize serial communication by ensuring smooth transmission.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

Outputs

  • Free size : Assign a variable to store the number of bytes available in the UART transmit buffer for writing new data.

serial pattern pop get position

<b>Retrieves or removes the position of a detected pattern in the UART buffer.</b> This is useful for handling incoming serial data where specific patterns need to be identified and processed.<br><b>How to Use:</b><br>1.Select the UART port under the Config property.<br>2.Choose between Get Position and Pop Position based on whether you want to retrieve the position or remove it.<br>3.Assign variables to store the retrieved Pattern Pos and Current Pattern Pos.<br>4.Use the retrieved positions for further processing, such as extracting relevant data.<br><b>Use Cases:</b><br>1.Detecting specific patterns in received UART data, such as end-of-message indicators.<br>2.Processing data efficiently by extracting content based on detected pattern positions.<br>3.Managing buffer content dynamically by removing processed patterns.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Select : Choose between:<br>Get Position: Retrieve the position of the detected pattern in the buffer.<br>Pop Position: Retrieve and remove the detected pattern position from the buffer.

Outputs

  • Pattern pos : Assign a variable to store the position of the last detected pattern in the buffer.
  • Current pattern pos : Assign a variable to store the current position of the pattern in the buffer without removing it.

serial flush

<b>Clears all data in the UART transmission and reception buffers.</b> This ensures that no old or unwanted data remains in the buffer before starting a new transmission or reception.<br><b>How to Use:</b><br>1.Select the UART port under the Config property.<br>2.Trigger the node when you need to clear the serial buffers.<br>3.Proceed with fresh data transmission or reception without interference from previously stored data.<br><b>Use Cases:</b><br>1.Prevent data corruption by ensuring a clean buffer before reading new data.<br>2.Clear outdated messages when switching between different data sources.<br>3.Avoid interference in serial communication by removing residual data.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

serial set mode

<b>Configures the operating mode of the selected UART port.</b> This node allows you to switch between standard UART, RS485, or IRDA modes based on your application requirements.<br><b>How to Use:</b><br>1.Select the serial port under the Config property.<br>2.Choose the required mode from the available options.<br>3.The mode is applied immediately when the node is executed.<br><b>Use Cases:</b><br>1.Switching between standard UART and RS485 for different communication protocols.<br>2.Enabling RS485 collision detection in noisy environments.<br>3.Using IrDA mode for infrared-based communication between devices.<br>4.Ensuring proper half-duplex communication in RS485 networks.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Mode : Choose from the following options:<br>1.UART – Standard serial communication mode.<br>2.RS485 Collision – Enables RS485 mode with collision detection.<br>3.RS485 Half Duplex – Enables RS485 mode in half-duplex mode.<br>4.RS485 Application Control – Enables RS485 with application control for communication.<br>5.IRDA – Enables Infrared Data Association (IrDA) mode for wireless communication.

change pattern detect status

<b>Enables or disables the detection of a specific pattern in serial communication.</b> This node allows users to configure how a UART port identifies a predefined sequence of characters in the incoming data stream.<br><b>How to Use:</b><br>1.Select the serial port under the Config property.<br>2.Choose Enable to activate pattern detection or Disable to deactivate it.<br>3.Define the pattern character and specify the number of times it should appear for detection.<br>4.Adjust the timeout, pre-idle, and post-idle values based on communication timing needs.<br>5.Pattern detection will trigger an event when the defined conditions are met.<br><b>Use Cases:</b><br>1.Detecting a specific sequence of characters (e.g., a command keyword in a serial stream).<br>2.Handling special characters as markers for data segmentation.<br>3.Implementing a timeout mechanism to avoid incomplete pattern detections.<br>4.Filtering noisy data by using idle character settings.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Select : Choose one of the following options to enable or disable pattern detection:<br>Enable – Activates pattern detection for incoming serial data.<br>Disable – Deactivates pattern detection.
  • Pattern char : Define the specific character that will be used as a pattern trigger for detection.
  • Char num : Specify the number of consecutive pattern characters required to trigger detection.
  • Char tout : Set the timeout value (in milliseconds) for detecting a pattern before considering the detection incomplete.
  • Post idle : Define the number of idle characters required after the pattern detection.
  • Pre idle : Define the number of idle characters required before the pattern detection.

pattern queue reset

<b>Resets the pattern detection queue and sets a new queue length for storing detected pattern positions.</b> This ensures that the queue does not overflow and maintains a controlled buffer for pattern detection events.<br><b>How to Use:<b><br>Select the serial port under the Config property.<br>Set the queue length to define how many pattern positions should be stored before being cleared.<br>The queue will reset, ensuring new patterns are stored within the specified limit.<br><b>Use Cases:<b><br>Clearing the pattern queue after processing detected patterns.<br>Preventing buffer overflow in continuous pattern detection scenarios.<br>Managing memory efficiently by limiting the number of stored pattern positions.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Queue length : Set the maximum number of pattern positions that the queue should hold before it resets.

set receiver timeout

<b>Configures the timeout threshold for UART reception,</b> defining how long the receiver will wait for incoming data before timing out. This setting helps manage data reception efficiently, ensuring that incomplete data packets do not cause unexpected delays.<br><b>How to Use:</b><br>1.Select the serial port under the Config property.<br>2.Set the Threshold Timeout value based on expected data reception timing.<br>3.The UART receiver will wait for the specified duration before triggering a timeout if no further data is received.<br><b>Use Cases:</b><br>1.Ensuring proper frame reception in serial communication.<br>2.Preventing unnecessary waiting when data transmission is incomplete.<br>3.Optimizing response time for real-time serial applications.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Tout threshold : Set the timeout value (in UART ticks) that determines how long the receiver waits before considering the reception of a frame as complete.

set wakeup threshold

<b>Sets the wakeup threshold for the UART interface,</b> defining the number of bytes required to trigger a wake-up event from a low-power state. This helps optimize power consumption in applications where continuous UART monitoring is unnecessary.<br><b>How to Use:</b><br>1.Select the serial port in the Config property.<br>2.Specify the Wakeup Threshold value based on the required number of bytes before triggering a wake-up event.<br>3.Once the specified amount of data is received, the UART module will exit low-power mode and resume normal operation.<br><b>Use Cases:</b><br>1.Optimizing power consumption in battery-operated devices.<br>2.Reducing CPU load by preventing unnecessary wake-ups.<br>3.Ensuring timely response when receiving critical data.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Wakeup threshold : Set the threshold value (in bytes) that determines when the UART should wake up from a low-power state upon receiving data.

get wakeup threshold

<b>Retrieves the current wakeup threshold value set for the UART interface,</b> indicating the number of bytes required to trigger a wake-up event from a low-power state.<br><b>How to Use:</b><br>1.Select the serial port in the Config property.<br>2.Define a variable in the output property to store the retrieved wakeup threshold value.<br>3.Use this output value in the flow to monitor or adjust the UART wakeup behavior.<br><b>Use Cases:</b><br>1.Monitoring power-saving settings to check if the wakeup threshold is correctly configured.<br>2.Debugging UART low-power wakeup issues by verifying threshold values.<br>3.Adjusting system behavior dynamically based on real-time wakeup threshold values.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

Outputs

  • Wakeup threshold : Enter a variable name to store the retrieved wakeup threshold value. This represents the number of bytes required to trigger a wake-up event from a low-power state.

get clock source frequency

<b>Retrieves the clock source frequency of the selected UART port,</b> providing the actual clock rate used for serial communication timing.<br><b>How to Use:</b><br>1.Select the serial port in the Config property.<br>2.Define a variable in the output property to store the retrieved clock frequency value.<br>3.Use this output value in the flow to verify or adjust the UART settings accordingly.<br><b>Use Cases:</b><br>1.Checking the UART clock configuration to ensure correct baud rate calculations.<br>2.Debugging UART communication issues caused by incorrect clock settings.<br>3.Verifying hardware constraints when working with different clock sources.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

Outputs

  • Freq in hz : Enter a variable name to store the retrieved clock source frequency in Hertz (Hz).

get collision flag

<b>Retrieves the collision flag status from the selected UART port,</b> indicating whether a data collision has occurred during transmission.<br><b>How to Use:</b><br>1.Select the serial port in the Config property.<br>2.Define a variable in the output property to store the retrieved collision flag status.<br>3.Use this output value in the flow to detect and handle UART transmission collisions.<br><b>Use Cases:</b><br>1.Detecting transmission collisions in RS485 or multi-device communication setups.<br>2.Implementing error-handling mechanisms based on collision detection.<br>3.Monitoring UART traffic to diagnose data corruption issues..

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

Outputs

  • Collision flag : Enter a variable name to store the retrieved collision flag status.

wait transmit idle polling

<b>Waits until the UART transmission is completely idle before proceeding with the next operation.</b> This node ensures that all data in the transmission buffer has been sent before continuing execution.<br><b>How to Use:</b><br>1.Select the serial port in the Config property.<br>2.Place this node in the flow after a transmission operation to ensure that the UART is completely idle before performing further actions.<br><b>Use Cases:</b><br>1.Ensuring data integrity before switching communication modes.<br>2.Avoiding data loss or corruption in time-sensitive applications.<br>3.Synchronizing processes that depend on complete data transmission.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.

set transmit empty threshold

<b>Sets the threshold for the TX buffer empty event.</b> When the number of bytes in the transmit buffer falls below the defined threshold, an event is triggered.<br><b>How to Use:</b><br>1.Select the UART port in the Config property.<br>2.Set the desired threshold value for the TX buffer empty event.<br><b>Use Cases:</b><br>1.Optimizing UART performance by triggering an event when the buffer reaches a critical level.<br>2.Reducing latency in applications that require real-time UART communication.<br>3.Managing data flow efficiently to prevent unnecessary processing delays.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Threshold : Define the number of bytes remaining in the TX buffer that will trigger the empty event.

set receiver full threshold

<b>Sets the threshold for the RX buffer full event.</b> When the number of bytes in the receive buffer reaches or exceeds the defined threshold, an event is triggered.<br><b>How to Use:</b><br>1.Select the UART port in the Config property.<br>2.Set the desired threshold value for the RX buffer full event.<br><b>Use Cases:</b><br>1.Efficient buffer management by triggering an event before the RX buffer overflows.<br>2.Reducing data loss in high-speed serial communication by reading data before overflow.<br>3.Improving system responsiveness by notifying when enough data is available for processing.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Threshold : Define the number of bytes in the RX buffer that will trigger the full event.

set always receiver timeout

<b>Configures whether the receiver should always apply a timeout mechanism.</b> When enabled, the UART receiver will automatically process the received data if no new data arrives within the timeout period.<br><b>How to Use:</b><br>1.Select the UART port under the Config property.<br>2.Choose whether to enable or disable RX Timeout:<br>3.Select True to enable the timeout mechanism.<br>4.Select False to disable it.<br><b>Use Cases:</b><br>1.Prevents waiting indefinitely for data when incomplete transmissions occur.<br>2.Useful in low-latency applications where data should be processed even if transmission is incomplete.<br>4.Ensures real-time responsiveness when handling variable-length messages.

Inputs

  • Config : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Rx timeout : 1.Select True to enable the timeout mechanism.<br>2.Select False to disable it.

Event Nodes

on receive

<b>Receives and processes incoming serial data based on the selected reading mode.</b> This node allows flexible data handling by providing different modes to read incoming data efficiently.<br><b>How to Use:</b><br>1.Select the UART port under Config where data should be received.<br>2.Choose a reading mode under Mode:<br>3.Normal: Reads all available data.<br>4.Read Length: Reads a fixed number of bytes.<br>5.Read Line: Reads data until the defined Line Ending Character is found.<br>6.(Optional) Enable Clip Ending On to remove the line-ending character when using Read Line mode.<br>7.Use the Data output property to store and process the received data.<br><b>Use Cases:</b><br>1.Capturing sensor data from a UART-connected device.<br>2.Reading messages from serial communication with microcontrollers.<br>3.Processing structured data (e.g., JSON, CSV) where line-based reading is necessary.<br>4.Handling real-time data streams from serial sources.

Inputs

  • Serial port : Choose between the default UART configuration or manually add a new serial port:<br>1.UART0 (Default) – Preconfigured with baud rate 115200.<br>2.Add New Serial Port – Allows manual selection of UART port, baud rate, and other parameters.
  • Mode : Choose how the incoming data should be read. Options:<br>1.Normal: Reads all available data in the buffer.<br>2.Read Length: Reads a specific number of bytes from the buffer.<br>3.Read Line: Reads data until a specific line-ending character is encountered.
  • Length (Bytes) : Specify the length in bytes for received data
  • Line ending char : (Only available when Read Line mode is selected) Specify the character that marks the end of a line (e.g., for newline).
  • Clip ending : Whether to clip ending

Outputs

  • data : Stores the received serial data. Assign a variable to hold this data for further processing.