主要内容

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

RS-232

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

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

请参阅RS-232 串行通信

模块

全部展开

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

精选示例