Page 1 of 1

Issues when OPEN RS232 serial port

Posted: Tue Feb 09, 2021 6:28 pm
by Tasp
The following errors when opening in LBB but works in LB.

Code: Select all

OPEN "com7:9600,n,8,1,ds0,cs0,rs" for random as #com
#com, CHR$(31);
CLOSE #com
end
This appears to be an issue with issuing the DS, CS and RS switches, they don't seem to be supported in LBB.

I'm unsure whether LBB ignores the RTS and CTS as I don't have the test equipment.
When testing with Hercules Serial monitor LBB seemingly ignores the DTR and RTS and transmits either way.

Re: Issues when OPEN RS232 serial port

Posted: Tue Feb 09, 2021 6:49 pm
by guest
Tasp wrote: Tue Feb 09, 2021 6:28 pmThis appears to be an issue with issuing the DS, CS and RS switches, they don't seem to be supported in LBB.
This is documented in the Compatibility section of the LBB Help manual (item 9: "The syntax for serial port parameters is slightly different...").
I'm unsure whether LBB ignores the RTS and CTS as I don't have the test equipment.
LBB simply uses the built-in serial drivers in Windows (it has always puzzled me why LB4 doesn't, it may be that in the very early LB1 days Windows didn't come with serial drivers as standard). So how it behaves with the 'handshaking' signals will be whatever Windows does; there is some control available with the parameters listed here.