fasteddy516 / SimplySerial

A windows console application for serial communications.
MIT License
208 stars 24 forks source link

Feature request: Local Echo #38

Open sk-jame opened 4 months ago

sk-jame commented 4 months ago

Hello, I think that very important feature is missing - local echo. I don't think it should be explained, it is well known interface. So just wanna mention that it would be great to have it here.

lefebvresam commented 2 months ago

I have the same question

salvathor79 commented 1 month ago

@sk-jame @lefebvresam Please see my pull request, I've just added this feature: #42

lefebvresam commented 1 month ago

When it's available in the installer?

salvathor79 commented 1 month ago

@lefebvresam I've uploaded a new version here v0.9.0

lefebvresam commented 1 month ago

What also should be a nice to have is that you can add an arbitrary sequence when pressing enter. Because some command interpreters expect that you end a command sentence with for instance 0xFF0xFF0xFF.

salvathor79 commented 1 week ago

@lefebvresam v0.9.1 In this version you can specify a custom string, the string is sent as-is. So no escape character or 0x... format value.

lefebvresam commented 1 week ago

Can you escape them, or use hex values? I want to send 0xFF0xFF0xFF for each string termination.

salvathor79 commented 1 week ago

v0.9.2

@lefebvresam now it's possible to specify a custom sequence of bytes to be sent on carriage return

lefebvresam commented 1 week ago

But how do you enter 0xFF0xFF0xFF? As ÿÿÿ?

salvathor79 commented 1 week ago

In the new version (v0.9.2) you can simply add the option --tx:bytes="0xFF0xFF0xFF" or --tx:bytes="FFFFFF" or --tx:bytes="FF FF FF" or --tx:bytes="0xFF 0xFF 0xFF" as you prefer.

note: --tx is the short form of --tx_newline option

lefebvresam commented 1 week ago

I use this which is working:

ss -com:COM4 -echo:ON -tx:bytes="FFFFFF" -encoding:RAW -baud:120000

But with the sniffer I see that every character is sent immedately after entering it. When you have one char wrong you need te retype the whole line. There is also a wait time between characters in my application before getting a timeout. Should it be possible to send the whole line + termination only after pressing enter? In that case it will be possible to edit the line before sending long strings. Then it's more like a real terminal.

Thanks in advance.