dotnet/runtime

System.IO.Ports Flow Control?

开放

#28,639 创建于 2019年2月7日

 (4 条评论) (0 个反应) (0 位负责人)C# (5,445 个派生)batch import
area-System.IO.Portshelp wanted

仓库指标

星标
 (17,886 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

I've got a device that uses XON/XOFF Flow control..

I've knocked up some sample code to send data to it... please excuse the hacked together nature of it but it is here: https://github.com/davidwallis3101/SerialGateway/blob/master/SerialGateway/SerialHelper.cs

Im using the latest nuget pre-release in .net core 3 with visual studio 2019 preview 2..

If I run the code on windows 10 - works fine the, the device gets the 'on' and 'off' toggled correctly.

if I then try it on Ubuntu 16.04 - it doesnt work and appears like its ignoring the XON/XOFF values, which the device uses to block comms when it cannot process them, so there is a window when they are permitted..

I'm using the same USB-RS232 adapter between the machines, I've tried different chipsets CH vs PL and no difference..

Is there something that needs doing on the host, outside of dotnet for the this to work on linux, is it supported / tested?

贡献者指南