Skip to content

SerialPort BreakState support #1647

@DragonXYZ

Description

@DragonXYZ

Description

I try to convert a windows SerialPort code to nanoframework,and i noticed nanoframework SerialPort class no not have BreakState,it is old but some protocols are still in use, for example DMX512

How to solve the problem

I searched in google have a solusion https://stackoverflow.com/questions/1279478/rs-232-break-signal
but it is using DllImport

Describe alternatives you've considered

No response

Aditional context

Open source third-party implementation of serial port
https://github.com/jcurl/RJCP.DLL.SerialPortStream/blob/21f60c99621f8d1a6d83a51a9ca2fde6cc22f65e/code/SerialPortStream.cs#L2241
https://github.com/jcurl/RJCP.DLL.SerialPortStream/blob/21f60c99621f8d1a6d83a51a9ca2fde6cc22f65e/dll/serialunix/libnserial/break.c#L27

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions