Simulink Real Time 的串口测试无响应。

出现的问题参考:https://www.ilovematlab.cn/thread-528134-1-1.html

Simulink Real Time 在2020b后已经采用 speedgoat了,更改内容请查阅官网。

主要问题:

A UART at adress 0x3e8 is not responding.

 Simulink 官网说明(传统串口驱动):

Send/Receive 模块支持的串口主要有以下几种组合,

  • Com1/none

  • Com2/none

  • Com1/Com3

  • Com2/Com4

  • none/Com3

  • none/Com4

  • Custom

If you select either the Com1/Com3 or Com2/Com4 pair, check that the port pair shares an interrupt. If the port pair does not share an interrupt, you cannot use the two ports as a pair.

这个很重要!

默认设置对应于:

  • COM1 — 0x3F8, IRQ 4

  • COM2 — 0x2F8, IRQ 3

  • COM3 — 0x3E8 (if present), IRQ 4

  • COM4 — 0x2E8 (if present), IRQ 3

当0x3e8无响应的时候,说明你的COM3没有连接、没有这个设备等等,所以你最好检查一下你的串口COM3是不是正常。

Linux上:

# cat /dev/ttyS2      % 监听串口 COM3

==================ctrl + alt + t ====================
% 打开新的终端,以测试串口3是否正常

# echo string>/dev/ttyS2     % 把string这个字符串发送给COM3

注意你的系统权限,以及硬件连接。

Windows上就在设备管理器里面看COM3是否存在。

如果你像我一样穷,只有个电脑主板上的串口,那么:

 双击send、receive,选Board Setup。然后自发自收。

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

天狭鬼

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值