Open oliverschmidt opened 1 year ago
I understand the idea, but I have never used it. Do you have some example application i could run to test and develop it?
To avoid a misunderstanding: I don't know of any real "use case". However, for testing purposes you can connect to AW with a Telnet client. There are two scenarios worth testing:
SSC Firmware
IN#2
and PR#2
.Ctrl-A
. This brings up a prompt saying APPLE SSC:
. Now enter 1D
. This changes the transmission from 8 bit to 7 bit. See: https://github.com/AppleWin/AppleWin/blob/master/source/SerialComms.cpp#L745ProTERM
Null Modem Driver
and Apple Super Serial Card
in slot 2.Online | Parameters
. Set Line Status
to Online
.Got it.
It does not seem to hard, but I think this will require some care.
These events seem to be sent to the app's message handler
I need to convert it to a non blocking setup like I did for the uthernet2, or some select
.
At which point, the Windows code could be changed too, but would anyone agree with this?
You are right. I wasn't aware that AppleWin still uses the 16bit-Windows WSAAsyncSelect() approach.
https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsaasyncselect states: It may be altered or unavailable in subsequent versions.
This should be enough to have everybody agree with a change getting rid of that approach ;-)
It was easier than expected (I've tested your method 1).
https://github.com/audetto/AppleWin/tree/ssc
But I have to check everything and see if I find a way to avoid ifdef
s.
I will have to debug why in telnet, there are only CRs but not LFs.
It was easier than expected (I've tested your method 1).
:-)
I will have to debug why in telnet, there are only CRs but not LFs.
That's to be expected:
Hi,
As far as I understand there's currently basically no SSC support.
I understand very well there's no desire to implement some Linux serial port code that "emulates" the Windows serial API good enough to not require the AppleWin SSC code to be modified. The only way to go for real serial port support would be from my POV to use something like http://sigrok.org/wiki/Libserialport in the shared SSC code.
Anyhow, my feature request is rather to "only" support the SSC TCP mode. At least conceptually that should be possible with little effort. It would be great if you could comment if you see this coming soon.
Thanks in advance, Oliver