本文介绍了SerialDevice.IsDataTerminalReadyEnabled是否适用于RPi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在尝试使用Raspberry Pi 3,Windows IoT Core和串行端口从设备捕获数据。如果我在Windows PC上使用像RealTerm这样的程序,我可以从设备接收数据流,没问题,但我在Pi上什么都没有。

I'm attempting to capture data from a device using a Raspberry Pi 3, Windows IoT Core and a serial port. If I use a program like RealTerm on a Windows PC, I can receive a stream of data from the device, no problem, but I get nothing on a Pi.

我是设备连接到串口配置似乎非常繁琐,在我的情况下,RTS必须关闭,DTR必须打开。我在Windows.Devices.SerialCommunication.SerialPort类中看到这些配置的属性...

The device I'm connecting to seems very fussy about the serial port configuration, in my case, RTS must be off and DTR must be on. I see properties for those configurations in the Windows.Devices.SerialCommunication.SerialPort class...

SerialPort.IsRequestToSendEnabled

SerialPort.IsRequestToSendEnabled

SerialPort.IsDataTerminalReadyEnabled

SerialPort.IsDataTerminalReadyEnabled

但是,当我将serialPort.IsDataTerminalReadyEnabled设置为true然后立即将其值查找到调试控制台时,它仍显示为false。 Pi的串口是否支持DTR(或RTS)并且在IoT Core中有效吗?

However, when I set serialPort.IsDataTerminalReadyEnabled to true and then immediately lookup its value to the debug console, it still shows as false. Does the Pi's serial port support DTR (or RTS) and does that work in IoT Core?

干杯

Jason。

Jason Timmins - MBM Ltd - 业务IT支持

Jason Timmins - MBM Ltd - Business IT Support

推荐答案


这篇关于SerialDevice.IsDataTerminalReadyEnabled是否适用于RPi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 09:46