Martin Lund
ae76f8f58d
Clean up timestamp enum definition
2024-04-20 15:02:43 +02:00
Martin Lund
b05f38abd0
Add missing options to show configuration
2024-04-20 14:51:45 +02:00
Martin Lund
51bfa68bdd
Text cleanup
2024-04-20 14:03:38 +02:00
Martin Lund
fa4207ddfd
Update description of mute option
2024-04-19 20:14:22 +02:00
Martin Lund
3ca6a66d9b
Add lua read_string() function
2024-04-19 17:10:36 +02:00
Martin Lund
f1c5394570
Don't forget to log output in lua expect()
2024-04-19 16:57:27 +02:00
Martin Lund
0105346a11
Cleanup
2024-04-19 16:56:30 +02:00
Martin Lund
96fafc5fb4
Generalize automatic login example for Linux
2024-04-19 14:44:54 +02:00
Davis C
29546bb13a
Updated login example with new expect logic
2024-04-19 14:41:30 +02:00
Martin Lund
b0e9fa02e8
Fix log output in hex output mode
2024-04-18 18:55:08 +02:00
Martin Lund
f257b7fba5
Update README
2024-04-18 16:23:41 +02:00
Martin Lund
6fff4939e4
Add timeout based timestamps in hex output mode
...
This change reintroduces timestamping in hex output mode but based on
timeout instead of new lines which made no sense. This means that
timestamps will only be printed when timeout time has elapsed with no
output activity from serial device.
Adds option --timestamp-timeout <ms> for setting the timeout value in
milliseconds.
Defaults to 200 ms.
2024-04-18 15:52:45 +02:00
Martin Lund
a8e0d2693d
Do not echo CR in line input and hex output mode
2024-04-18 14:44:39 +02:00
Martin Lund
c440da2ea8
Improve switched messages
2024-04-18 13:35:09 +02:00
Martin Lund
f1144ca5cc
Cleanup
2024-04-18 13:29:06 +02:00
Martin Lund
3cc2d90fda
Extend lua expect() to also return matched string
2024-04-17 23:38:21 +02:00
Martin Lund
48c9e8a9a9
Update AUTHORS
2024-04-17 18:30:53 +02:00
Martin Lund
f4c4387e05
Add automatic login script example
2024-04-17 18:27:46 +02:00
Martin Lund
a1987b61b4
Organize examples directory
2024-04-17 18:24:33 +02:00
Martin Lund
f8924182d3
Update TODO
2024-04-17 18:15:51 +02:00
Davis C
d0e95c5fba
Reset buffer size at start of expect
2024-04-17 18:13:00 +02:00
Davis C
1cefb7b6bc
Revert "Added reset_buffer()"
...
This reverts commit ee56d1280d .
2024-04-17 18:13:00 +02:00
Davis C
794c5202f4
Added reset_buffer()
2024-04-17 18:13:00 +02:00
Davis C
98653566a8
Return 1 when expect matches
2024-04-17 18:13:00 +02:00
Martin Lund
a605533213
Fix local echo in line mode
2024-04-17 16:17:20 +02:00
Martin Lund
1e20948d83
Fix line input mode
...
Do not forward input characters to tty device before a line is input via
carriage return.
2024-04-16 19:38:45 +02:00
Martin Lund
4801816357
Introduce basic line input mode
2024-04-16 17:42:34 +02:00
Martin Lund
d60363a64c
Cleanup global variable name shadowing
2024-04-15 11:21:36 +02:00
Martin Lund
5c45150f58
Bump version
2024-04-14 18:43:58 +02:00
Martin Lund
d3993da6d4
Update AUTHORS
2024-04-14 18:05:01 +02:00
Martin Lund
00f3ea9b7f
Update NEWS
2024-04-14 18:04:51 +02:00
Martin Lund
e8114ca0a4
Update version date
2024-04-14 18:04:31 +02:00
Martin Lund
de0a7c547f
Rework resolve_config_file()
2024-04-14 12:52:28 +02:00
Martin Lund
76a7a56e85
Rework line_pulse_duration_option_parse()
...
Introduce proper sscanf() checks.
2024-04-14 11:43:23 +02:00
Martin Lund
9744fcafcf
Rework rs485_parse_config()
...
Introduce proper sscanf() checks.
2024-04-14 11:30:39 +02:00
Martin Lund
c4878a90d7
Clean up file descriptor name shadowing
2024-04-14 10:42:22 +02:00
Martin Lund
ae461dc296
Add missing header guard
2024-04-14 10:23:43 +02:00
Martin Lund
10eedd4ad2
Update README
2024-04-14 02:32:25 +02:00
Martin Lund
fa41771e65
Update README
2024-04-14 01:50:50 +02:00
Martin Lund
a1a4dc4642
Update plain text man page
2024-04-14 01:42:43 +02:00
Martin Lund
7dbb806311
Upgrade inih subproject
2024-04-14 01:08:37 +02:00
Martin Lund
97537853a8
Remove options --response-wait, --response-timeout
...
Remove options and rework input handling so it is possible to do the
same thing but via script which is much more flexible.
These options were always a bit of a hardcoded solution. With the new
script expect feature we can wait for any type of response.
For example, pipe command to serial device and wait for line response within 1 second:
$ echo "*IDN?" | tio /dev/ttyACM0 --script "expect('\r\n', 1000)" --mute
2024-04-13 23:18:25 +02:00
Martin Lund
e1e3e298bf
Add lua exit(code)
2024-04-13 16:46:00 +02:00
Martin Lund
c5dac4fd33
pdate README
2024-04-13 15:48:32 +02:00
Martin Lund
51300cc4f0
Add timeout feature to expect()
2024-04-13 15:30:14 +02:00
Martin Lund
3ad090caf7
Update README
2024-04-13 00:56:41 +02:00
Martin Lund
fba73f98db
Update README
2024-04-13 00:11:44 +02:00
Martin Lund
2db87ede53
Update README
2024-04-12 22:21:35 +02:00
Martin Lund
fca76a017d
Fix text alignment
2024-04-12 21:15:36 +02:00
Martin Lund
7915c1a445
Update README
2024-04-12 18:51:17 +02:00