open https://gitlab.synchro.net/main/sbbs/-/issues/662
root@wibble:~# systemctl start sexpots
AT&F1s0=0m0l1s48=root@wibble:~#
As you can see, only part of the init string is sent.
Init = AT&F1s0=0m0l1s48=7s36=5&W
Re: sexpots: Entire modem init string not being sent
By: Nigel Reed to GitLab issue in main/sbbs on Mon Oct 16 2023 11:13:10
open https://gitlab.synchro.net/main/sbbs/-/issues/662
root@wibble:~# systemctl start sexpots
AT&F1s0=0m0l1s48=root@wibble:~#
i would be concerned about the catting of the device, that is well known way back in the day for losing characters
the logfile has the actual init commands logged etc in there
10/17 07:27:00 Opening Communications Device (COM Port): /dev/ttyS0
10/17 07:27:00 COM Port device handle: 3
10/17 07:27:00 COM Port DTE rate: 115200 bps
10/17 07:27:00 Initializing modem:
10/17 07:27:00 Modem Command: AT&F+VCID=1+ipr=115200$sb115200%C1\N3+DCS=1,1+DR=1
10/17 07:27:00 Ident server thread started
As you can see, only part of the init string is sent.
Init = AT&F1s0=0m0l1s48=7s36=5&W
i have found that if you have a space in your init command, that it stops at the whitespace. no big deal but
took me a couple of minutes to figure that one out lol
Re: sexpots: Entire modem init string not being sent
By: Charles Blackburn to Nigel Reed on Tue Oct 17 2023 07:30 am
Re: sexpots: Entire modem init string not being sent
By: Nigel Reed to GitLab issue in main/sbbs on Mon Oct 16 2023 11:13:10
i have found that if you have a space in your init command, that it stops at the whitespace. no big deal but
took me a couple of minutes to figure that one out lol
That shouldn't be the case. Are you sure about that?
Init = AT&F+VCID=1 +ipr=115200 $sb115200%C1\N3+DCS=1,1+DR=1 ; Modem initialization string
Re: sexpots: Entire modem init string not being sent
By: Digital Man to Charles Blackburn on Tue Oct 17 2023 10:56:18
Re: sexpots: Entire modem init string not being sent
By: Charles Blackburn to Nigel Reed on Tue Oct 17 2023 07:30 am
Re: sexpots: Entire modem init string not being sent
By: Nigel Reed to GitLab issue in main/sbbs on Mon Oct 16 2023 11:13:10
<CUT>
i have found that if you have a space in your init command, that it stops at the whitespace. no big deal but
took me a couple of minutes to figure that one out lol
That shouldn't be the case. Are you sure about that?
yup.... for sure
for example
sbbs@wwiv:~/ctrl$ diff sexpots.ini sexpots_tst.ini
18c18
< Init = AT&F+VCID=1+ipr=115200$sb115200%C1\N3+DCS=1,1+DR=1 ; Modem initialization string
-+-
Init = AT&F+VCID=1 +ipr=115200 $sb115200%C1\N3+DCS=1,1+DR=1 ; Modem initialization string
first one is the working one, second is the one that stops. AGAIN, NOT a big deal, just a personal bugbear that I prefer spaces between the parameters LOL
this is the log from the second one:
10/17 16:41:08 Opening Communications Device (COM Port): /dev/ttyS0
10/17 16:41:08 COM Port device handle: 3
10/17 16:41:08 COM Port DTE rate: 115200 bps
10/17 16:41:08 Initializing modem:
10/17 16:41:08 Modem Command: AT&F+VCID=1
10/17 16:41:08 Ident server thread started
i have found that if you have a space in your init command, that it at the whitespace. no big deal but
took me a couple of minutes to figure that one out lol
That shouldn't be the case. Are you sure about that?
sbbs@wwiv:~/ctrl$ diff sexpots.ini sexpots_tst.ini
18c18
< Init = AT&F+VCID=1+ipr=115200$sb115200%C1\N3+DCS=1,1+DR=1 ; Modem initialization string
-+-
Init = AT&F+VCID=1 +ipr=115200 $sb115200%C1\N3+DCS=1,1+DR=1 ; Mo initialization string
Ah, indeed that does appear to be intentional: https://gitlab.synchro.net/main/sbbs/-/commit/af86e3d56b8d163abced1223c881
On 17 Oct 2023, Charles Blackburn said the following...<CUT>
i have found that if you have a space in your init command, that it at the whitespace. no big deal but
took me a couple of minutes to figure that one out lol
sexpots.c:
iniGetExistingWord() -> iniGetExistingString -> FIND_WHITESPACE(value) -> first space replaced with 0
Re: Re: sexpots: Entire modem init string not being sent
By: fusion to Charles Blackburn on Wed Oct 18 2023 09:52:00
On 17 Oct 2023, Charles Blackburn said the following...
<CUT>i have found that if you have a space in your init command, that it at the whitespace. no big deal but
took me a couple of minutes to figure that one out lol
sexpots.c:
iniGetExistingWord() -> iniGetExistingString -> FIND_WHITESPACE(value) -> first space replaced with 0
or you could just "split the string between the '=' and the ';' or EOL and send that :D
Sysop: | Gate Keeper |
---|---|
Location: | Shelby, NC |
Users: | 719 |
Nodes: | 20 (0 / 20) |
Uptime: | 190:32:25 |
Calls: | 9,288 |
Files: | 5,288 |
D/L today: |
10 files (411M bytes) |
Messages: | 467,692 |