tschak909 / platoterm64

PLATOTerm for the Commodore 64
GNU General Public License v3.0
35 stars 11 forks source link

Does not connect on Apple II emulator. #13

Closed TedThompson closed 5 years ago

TedThompson commented 5 years ago

I brought this up on reddit, and was advised to obtain a virtual modem (tcpser) and cable (com0com) in order to connect using platoterm.

I started tcpser with -d /dev/ttyS8 -s 2400 -p 8005 -l 4 and configured com0com to make a null cable between COM8 and COM9.

If I use PuTTY to make a serial connection to COM8 and enter ATDTirata.online:8005 I can connect.

irata

If I start AppleWin and direct it to connect it's virtual port to COM8 (note: I can use ProTerm on COM3 which is my real USB modem with no problems) and then boot Platoterm, I get nothing beyond the graphical PLATOTERM for APPLE ][ spash screen.

applewin_screenshot_000000000

tschak909 commented 5 years ago

Very strange, as I am using AppleWin for this very setup, and have tcpser configured thusly: tcpser -d /dev/ttyS6 -s 1200 -i "&K3" & # Apple II

I can then connect to irata online by typing into PLATOTerm:

ATDTIRATA.ONLINE:8005

Please let me know if you are still having issues.

-Thom

TedThompson commented 5 years ago

What's the & # Apple II bit about? Windows complains if I put that in the command line.

I tried your arguments, and it didn't change anything. I also tried //e and ][+ (I usually use //e) and it makes no difference, I get as far as the screen I posted above and it just sits there. I never get a chance to issue any AT commands. Here's the L6 log from tcpser:

2018-09-14 15:11:34:536969248:DEBUG:Read configuration for 1 serial port(s)
2018-09-14 15:11:34:536969248:ENTER_EXIT:Exitting init function
2018-09-14 15:11:34:536969248:ENTER_EXIT:Entering ip_init_server_conn function
2018-09-14 15:11:34:536969248:DEBUG:Creating server socket
2018-09-14 15:11:34:536969248:DEBUG:Binding server socket to port 6400
2018-09-14 15:11:34:536969248:INFO:Server socket bound to port
2018-09-14 15:11:34:536969248:INFO:Server socket listening for connections
2018-09-14 15:11:34:536969248:ENTER_EXIT:Exitting ip_init_server_conn function
2018-09-14 15:11:34:536969248:ENTER_EXIT:Entering dce_init_conn function
2018-09-14 15:11:34:536969248:ENTER_EXIT:Entering ser_init_conn function
2018-09-14 15:11:34:536969248:ENTER_EXIT:Entering ser_get_bps_const function
2018-09-14 15:11:34:536969248:DEBUG:Checking speed: 1200
2018-09-14 15:11:34:536969248:ENTER_EXIT:Exitting ser_get_bps_const function
2018-09-14 15:11:34:536969248:INFO:Opening serial device
2018-09-14 15:11:34:536969248:INFO:Opened serial device /dev/ttyS8 at speed 1200 as fd 8
2018-09-14 15:11:34:536969248:INFO:serial device configured
2018-09-14 15:11:34:536969248:ENTER_EXIT:Exitting ser_init_conn function
2018-09-14 15:11:34:536969248:ENTER_EXIT:Exitting dce_init_conn function
2018-09-14 15:11:34:537216760:ENTER_EXIT:Entering run_bridge function
2018-09-14 15:11:34:537283112:ENTER_EXIT:Entering ctrl_thread function
2018-09-14 15:11:34:537283112:ENTER_EXIT:Entering dce_check_control_lines function
2018-09-14 15:11:34:537216760:INFO:Control Lines: DSR:1 DCD:0 CTS:1
2018-09-14 15:11:34:537283264:ENTER_EXIT:Entering ip_thread function
2018-09-14 15:11:34:537216760:ENTER_EXIT:Entering dce_set_control_lines function
2018-09-14 15:11:34:537216760:WARN:Could not set serial port status, CYGWIN bug? (Invalid argument)

2018-09-14 15:11:34:537216760:ENTER_EXIT:Exitting dce_set_control_lines function
2018-09-14 15:11:34:537216760:ENTER_EXIT:Entering mdm_disconnect function
2018-09-14 15:11:34:537216760:INFO:Disconnecting modem
2018-09-14 15:11:34:537216760:INFO:Disconnecting
2018-09-14 15:11:34:537216760:INFO:Control Lines: DSR:1 DCD:0 CTS:1
2018-09-14 15:11:34:537216760:ENTER_EXIT:Entering dce_set_control_lines function
2018-09-14 15:11:34:537216760:WARN:Could not set serial port status, CYGWIN bug? (Invalid argument)

2018-09-14 15:11:34:537216760:ENTER_EXIT:Exitting dce_set_control_lines function
2018-09-14 15:11:34:537216760:ENTER_EXIT:Exitting mdm_disconnect function
2018-09-14 15:11:34:537216760:ENTER_EXIT:Entering mdm_parse_cmd function
2018-09-14 15:11:34:537216760:DEBUG:Evaluating AT&K3
2018-09-14 15:11:34:537216760:DEBUG:Command: K (331), Flags: 1, index=3, num=3, data=0-0
2018-09-14 15:11:34:537216760:ENTER_EXIT:Entering dce_set_flow_control function
2018-09-14 15:11:34:537216760:ENTER_EXIT:Exitting dce_set_flow_control function
2018-09-14 15:11:34:537216760:DEBUG:Command:   (-1), Flags: -1, index=3, num=0, data=0-0
2018-09-14 15:11:34:537216760:DEBUG:Sending OK response to modem
2018-09-14 15:12:06:537283112:ENTER_EXIT:Exitting dce_check_control_lines function
2018-09-14 15:12:06:537283112:INFO:DTR has gone high
2018-09-14 15:12:06:537283112:ENTER_EXIT:Entering dce_check_control_lines function
2018-09-14 15:12:06:537216760:DEBUG:Received D from Control line watch task
2018-09-14 15:13:52:537283112:ENTER_EXIT:Exitting dce_check_control_lines function
2018-09-14 15:13:52:537283112:INFO:DTR has gone low
2018-09-14 15:13:52:537283112:ENTER_EXIT:Entering dce_check_control_lines function
2018-09-14 15:13:52:537216760:DEBUG:Received d from Control line watch task
2018-09-14 15:13:52:537216760:ENTER_EXIT:Entering mdm_disconnect function
2018-09-14 15:13:52:537216760:INFO:Disconnecting modem
2018-09-14 15:13:52:537216760:INFO:Disconnecting
2018-09-14 15:13:52:537216760:INFO:Control Lines: DSR:1 DCD:0 CTS:1
2018-09-14 15:13:52:537216760:ENTER_EXIT:Entering dce_set_control_lines function
2018-09-14 15:13:52:537216760:WARN:Could not set serial port status, CYGWIN bug? (Invalid argument)

2018-09-14 15:13:52:537216760:ENTER_EXIT:Exitting dce_set_control_lines function
2018-09-14 15:13:52:537216760:ENTER_EXIT:Exitting mdm_disconnect function
2018-09-14 15:14:01:537283112:ENTER_EXIT:Exitting dce_check_control_lines function
2018-09-14 15:14:01:537283112:INFO:DTR has gone high
2018-09-14 15:14:01:537283112:ENTER_EXIT:Entering dce_check_control_lines function
2018-09-14 15:14:01:537216760:DEBUG:Received D from Control line watch task
2018-09-14 15:15:13:537283112:ENTER_EXIT:Exitting dce_check_control_lines function
2018-09-14 15:15:13:537283112:INFO:DTR has gone low
2018-09-14 15:15:13:537283112:ENTER_EXIT:Entering dce_check_control_lines function
2018-09-14 15:15:13:537216760:DEBUG:Received d from Control line watch task
2018-09-14 15:15:13:537216760:ENTER_EXIT:Entering mdm_disconnect function
2018-09-14 15:15:13:537216760:INFO:Disconnecting modem
2018-09-14 15:15:13:537216760:INFO:Disconnecting
2018-09-14 15:15:13:537216760:INFO:Control Lines: DSR:1 DCD:0 CTS:1
2018-09-14 15:15:13:537216760:ENTER_EXIT:Entering dce_set_control_lines function
2018-09-14 15:15:13:537216760:WARN:Could not set serial port status, CYGWIN bug? (Invalid argument)

2018-09-14 15:15:13:537216760:ENTER_EXIT:Exitting dce_set_control_lines function
2018-09-14 15:15:13:537216760:ENTER_EXIT:Exitting mdm_disconnect function
tschak909 commented 5 years ago

& is used in unix (or cygwin) to make a program run in the background. # is a shell comment. I copied this out of my script that I am using to do my demonstration, this weekend.

That's very odd. and yes, it has been tested all the way down to the ][+ (the ESC key is used as the special PLATO key modifier, specifically for ][+ users.

-Thom

On Fri, Sep 14, 2018 at 5:15 PM Ted Thompson notifications@github.com wrote:

What's the & # Apple II bit about? Windows complains if I put that in the command line.

I tried your arguments, and it didn't change anything. I also tried //e and ][+ (I usually use //e) and it makes no difference, I get as far as the screen I posted above and it just sits there. I never get a chance to issue any AT commands.

— You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub https://github.com/tschak909/platoterm64/issues/13#issuecomment-421498221, or mute the thread https://github.com/notifications/unsubscribe-auth/ACocZqniDsGh4n4MgIlysbg-hp0S4NAPks5ubCpsgaJpZM4Wo0pW .

tschak909 commented 5 years ago

Can I see your AppleWin settings screenshot for the serial port?

-Thom

TedThompson commented 5 years ago

applewinsettings

com0com (just for good measure)

The tcpser I am using is not running under Cygwin (which I assume is this) - It came with a cygwin1.dll and cyggcc_s-1.dll - I couldn't use the one posted over on reddit because it was only the exe and I had no idea how to make it work. The tcpser I am using came from https://www.geneb.org/tcpser/tcpser_bin.zip

tschak909 commented 5 years ago

and you have a real RS232 wifi modem?

On Fri, Sep 14, 2018 at 7:54 PM Ted Thompson notifications@github.com wrote:

[image: applewinsettings] https://user-images.githubusercontent.com/9302806/45580495-7c740580-b846-11e8-912a-3b43a4fdfb3a.PNG

[image: com0com] https://user-images.githubusercontent.com/9302806/45580502-96ade380-b846-11e8-9f8b-d785b02cab87.PNG (just for good measure)

The tcpser I am using is not running under Cygnus - It came with a cygwin1.dll and cyggcc_s-1.dll - I couldn't use the one posted over on reddit because it was only the exe and I had no idea how to make it work. The tcpser I am using came from https://www.geneb.org/tcpser/tcpser_bin.zip

— You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub https://github.com/tschak909/platoterm64/issues/13#issuecomment-421518650, or mute the thread https://github.com/notifications/unsubscribe-auth/ACocZs3Cd3tySS15jVhSYMnqQyOdefr6ks5ubE_ggaJpZM4Wo0pW .

TedThompson commented 5 years ago

No. Isn't that what tcpser is for? A virtual modem? I have a real usb modem on com 3 which I have used with Applewin and proterm to dial up bbses

tschak909 commented 5 years ago

That's what I thought you had mentioned, my bad.

If you add -t sSiI to tcpser's command line, do you see anything come to the modem when you type in PLATOTerm?

On Fri, Sep 14, 2018 at 10:12 PM Ted Thompson notifications@github.com wrote:

No. Isn't that what tcpser is for? A virtual modem?

— You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub https://github.com/tschak909/platoterm64/issues/13#issuecomment-421526519, or mute the thread https://github.com/notifications/unsubscribe-auth/ACocZlGPaxwrlg92AnDxwt8ZpipPrQoOks5ubHAPgaJpZM4Wo0pW .

TedThompson commented 5 years ago

With -t sSil added I now see my typing echoed back, and once I typed atdtirata.online:8005 I got this:

platoterm2

Seems like I'm in...

TedThompson commented 5 years ago

Spoke too soon, attempts to login result in over typing the words "guest login:"

plato3

tschak909 commented 5 years ago

that's very odd. What baud rate are you connecting @ ?

-Thom

On Fri, Sep 14, 2018 at 10:23 PM Ted Thompson notifications@github.com wrote:

Spoke too soon, attempts to login result in over typing the words "guest login:"

[image: plato3] https://user-images.githubusercontent.com/9302806/45581928-18f4d280-b85c-11e8-9b49-75de4a4a22a9.PNG

— You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub https://github.com/tschak909/platoterm64/issues/13#issuecomment-421527046, or mute the thread https://github.com/notifications/unsubscribe-auth/ACocZn3qrVA5CEVWsdEulu2Bw9ftj_ctks5ubHLMgaJpZM4Wo0pW .

TedThompson commented 5 years ago

2400bps

TedThompson commented 5 years ago

If I just wait, the screen clears and gives me the

"Welcome to everybody at VCF Midwest" "Press NEXT to begin" "Press BACK to exit"

If I hit return, platofail2

If I wait again, again I go to the Welcome screen, if I hit return again, I get that mess again...

tschak909 commented 5 years ago

if you set to 1200, do you fare any better?

On Fri, Sep 14, 2018 at 10:53 PM Ted Thompson notifications@github.com wrote:

If I just wait, the screen clears and gives me the "Welcome to everybody at VCF Midwest" "Press NEXT to begin" "Press BACK to exit"

If I hit return, [image: platofail2] https://user-images.githubusercontent.com/9302806/45582178-362ba000-b860-11e8-8042-5c708c54a3b9.PNG

— You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub https://github.com/tschak909/platoterm64/issues/13#issuecomment-421528338, or mute the thread https://github.com/notifications/unsubscribe-auth/ACocZoLMmmJi5y9LozyP8os-8yyZDTNEks5ubHm0gaJpZM4Wo0pW .

TedThompson commented 5 years ago

Just get something different platofail3

tschak909 commented 5 years ago

Can you try this build of tcpser? replace the tcpser.exe in your existing install, with this one.

tcpser-fozztexx.zip -Thom

TedThompson commented 5 years ago

tcpser-err

TedThompson commented 5 years ago

If I stash the dlls from the other version and just run the exe by it's self, I get:

tcpser-err1

tschak909 commented 5 years ago

tcp-fozztexx.zip

Ok, I've uploaded a new zip, with cygwin1.dll inside it. Try copying that dll into the same place as tcpser. :)

-Thom

TedThompson commented 5 years ago

tcpser-err

tschak909 commented 5 years ago

hm ok. I will have to figure out a build of tcpser that doesn't require cygwin. The tcpser I am using has a set of fixes that haven't been accepted upstream, yet.

-Thom

On Fri, Sep 14, 2018 at 11:32 PM Ted Thompson notifications@github.com wrote:

[image: tcpser-err] https://user-images.githubusercontent.com/9302806/45582411-36c63580-b864-11e8-9290-a8a489cfd871.PNG

— You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub https://github.com/tschak909/platoterm64/issues/13#issuecomment-421530036, or mute the thread https://github.com/notifications/unsubscribe-auth/ACocZpWaNNlL2GVEKY7Y8tSum1eo4sPLks5ubILugaJpZM4Wo0pW .

TedThompson commented 5 years ago

And your Cygwin.dll does not work with my "old" tcpser either.

tschak909 commented 5 years ago

In the mean time, you can either try:

(a) installing a copy of cygwin and running tcpser (b) installing a copy of tcpser on a raspberry pi with a usb to serial cable (I do this for my real Apple II and Atari and Commodore 64 hardware)

I have a presentation to get ready for VCFMW tomorrow, but after the presentation, I am going to try grafting on support for the Uthernet card (which Applewin supports)

-Thom

TedThompson commented 5 years ago

Ok.

Couple of thoughts. One is I'm going to attempt to build the source for tcpser myself, though simple console applications is more my wheel house and I don't really understand the code.

I'd also ask you to have a look at my com0com config above. The docs for tcpser mention having to use an oddball cable. I took a stab at reconfiguring com9com to match but it didn't seem to help. Still id like to know verbosely that mine matches yours.

TedThompson commented 5 years ago

EUREKA! The answer was... "Emulate baud rate" checked in com0com - I checked it on both sides, I did not try it any other way. With a standard null modem cable setting AND "emulate baud rate" checked on both sides, I'm getting the whole screen properly drawn.

I have to log in as guest because I forgot my password (like a dunce) but I get in. I can't seem to open anything on the main menu, but I can hit "ctrl-d" (DATA) and get it to redraw. Seems my menu issues were due to the "automatic caps lock" of AppleWin. Once I hit caps lock twice to get actual LOWER CASE letters the main menu started responding.

BTW - Do you know anything about lost passwords? There's no contact info on the website that I can find, and no options in Plato...

Anyway. It seems to be working. Huzzah!

tschak909 commented 5 years ago

Oh boy, yes, you're right. :)

I can clear the password, from my end. What is your sign-on and group?

-Thom

On Sat, Sep 15, 2018 at 3:54 AM Ted Thompson notifications@github.com wrote:

Closed #13 https://github.com/tschak909/platoterm64/issues/13.

— You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub https://github.com/tschak909/platoterm64/issues/13#event-1847398853, or mute the thread https://github.com/notifications/unsubscribe-auth/ACocZpnorpvefJY1QU53eQAc9qXKmhUJks5ubMBTgaJpZM4Wo0pW .

TedThompson commented 5 years ago

Tg626, apple2

Thanks

tschak909 commented 5 years ago

done. It will ask you for a password, when you log in. -Thom

On Sat, Sep 15, 2018 at 9:50 AM Ted Thompson notifications@github.com wrote:

Tg626, apple2

Thanks

— You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub https://github.com/tschak909/platoterm64/issues/13#issuecomment-421581756, or mute the thread https://github.com/notifications/unsubscribe-auth/ACocZqelJyA8-30lbxvfGSEm-7xxSS6dks5ubRPPgaJpZM4Wo0pW .