it should give you a *nix login where you should be able to log into the box just like ssh etc.
once mgetty is installed you can just use "mgetty -x7 <device line> -s 115200"
eg mgetty -x7 ttyS0 -s 115200
see what happens. be interesting... the -x7 is debug and that will appear in /var/log/mgetty/<logfile>
I've tested this just now using mgetty and the modem initializes without incident and happily answers.
Okay - I found something else.
in modem_send() https://gitlab.synchro.net/main/sbbs/-/blob/master/src/sexpots/sexpots.c#L619, if I comment out the call to comPurgeInput(com_handle) - the modem initializes successfully
and this is repeatable.
This happens right after the modem command is sent but before reading. tcflush(handle, TCIFLUSH) purges the input buffer, but why would strace slow the process down (or maybe i/o in the
kernel?) enough so that this purge wouldn't have an affect?
I also tried putting my modem into no echo mode (ATE0) - no affect when comPurgeInput was still present in code.not sure that would work if that's what SP is expecting
I also saw the mgetty is doing an fcntl FD_NOFL - but adding the same call to sexpots made no difference.
I hope I didn't miss anything else :)
I didn't see any results from experiments with increasing the SLEEP() duration (e.g. to 500, 1000, etc.).
Sysop: | Coz |
---|---|
Location: | Anoka, MN |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 09:05:11 |
Calls: | 340 |
Calls today: | 3 |
Files: | 5,979 |
Messages: | 231,265 |