主要内容

本页采用了机器翻译。点击此处可查看最新英文版本。

RS-232

R2025b
采用 RS-232 协议的串行通信

RS-232 是一种成熟的点对点串行通信协议。使用 RS-232 模块通过目标计算机内置的串行端口与其他设备进行通信。有关目标计算机串行端口的详细信息,请参阅制造商文档。

请参阅RS-232 串行通信。

模块

全部展开

ASCII Encode blockASCII Encode将 Simulink 值转换为 uint8 字符向量
ASCII Decode blockASCII Decode将 ASCII 字符向量解析为 Simulink 值
ASCII Decode V2 blockASCII Decode V2将 ASCII 字符向量解析为 Simulink 值
FIFO Read blockFIFO ReadRead simple data streams
FIFO Write blockFIFO Write编写简单的数据流
FIFO Read HDRS blockFIFO Read HDRSRead multiple ASCII data streams according to header information
FIFO Read Binary blockFIFO Read BinaryRead multiple binary data streams according to header information
Modem Control blockModem ControlControl state of RTS and DTR output lines on serial port
Modem Status blockModem StatusReturn state of modem control lines
Legacy Serial Read blockLegacy Serial ReadRead input data for baseboard serial communications
Legacy Serial Setup blockLegacy Serial Setup设置基座串行通信
Legacy Serial Write blockLegacy Serial WriteWrite output data for baseboard serial communications
Legacy Serial Port blockLegacy Serial PortSend and receive data over mainboard baseboard serial port
Legacy Serial Port F blockLegacy Serial Port FSend and receive data over mainboard baseboard serial port with FIFO
Byte Packing blockByte Packing构建数据帧
Byte Unpacking blockByte Unpacking分解数据帧
Byte Reversal/Change Endianess blockByte Reversal/Change Endianess将小端数据转换为大端格式以供大端处理器使用
Protocol Decoder blockProtocol DecoderDecode a uint8 byte stream by specifying the packet structure (自 R2023b 起)
Protoco Encoder blockProtocol EncoderEncode input data into a uint8 byte stream by specifying the packet structure (自 R2023b 起)
Shared Memory Pack blockShared Memory Pack共享内存包
Shared Memory Unpack blockShared Memory Unpack共享内存解包

主题

  • RS-232 串行通信

    了解用于目标计算机与串行设备之间串行通信的 Simulink® Real-Time™ 库。

  • RS-232 Legacy Drivers

    To represent multiple serial devices, use composite Simulink Real-Time RS-232 mainboard driver blocks.

精选示例