Sending “ENTER” key through serial port

后端 未结 8 1949
独厮守ぢ
独厮守ぢ 2020-12-17 00:11

Hi I want to send some command to my device which is connected via serial port. How to send it?

For example i found this on google search but for me it\'s useless.

8条回答
  •  悲&欢浪女
    2020-12-17 01:04

    It depends on what is ENTER for your device. In Windows it is CRLF (13 and then 10), Linux is LF (only 10.) It's just a matter of what your device expects, because it can't see ENTER, just "byte 10, byte 13, byte whatever..."

提交回复
热议问题