tarm / serial

BSD 3-Clause "New" or "Revised" License
1.61k stars 452 forks source link

windows FlowControl #45

Closed gertcuykens closed 8 years ago

gertcuykens commented 8 years ago

https://github.com/tarm/serial/blob/master/serial.go#L111-L115

Can you add more information about

// RTSFlowControl bool // DTRFlowControl bool // XONFlowControl bool // CRLFTranslate bool

Thanks

tarm commented 8 years ago

Those lines are commented out because they are not implemented.

A lot of serial port hardware can operate with those, but no one has added functionality to the library to be able to use that capability. If it gets added, then it should be a complete cross-platform implementation.

One reason it has not been added is because that functionality is rarely used by the other end of the devices these days. If you want to talk to an arduino or a robot or a modbus device or a development board, then you probably will not need or use that functionality. It would be most useful for something like an RS232 modem for example.

Do you have a specific need or use for one of those features?

gertcuykens commented 8 years ago

This are the working serial putty settings on windows

COM1
speed: 1200
data bits: 7
stop bits: 1
parity: even
flow control: DSR/DTR
gertcuykens commented 8 years ago

never mind, you are right, seem to be working regardless the DSR/DTR stuff :)