ADTPro / adtpro

Apple Disk Transfer ProDOS (ADTPro)
http://adtpro.com
GNU General Public License v2.0
131 stars 19 forks source link

Communication with Apple IIc hangs on files request - times out. V2.1.0 #157

Closed TheRealAnubiss closed 2 years ago

TheRealAnubiss commented 2 years ago

Old version I had installed forever (2.0.2) works. Updated to newest version 2.1.0. Wrote 2.1.0 boot floppy using 2.0.2.

Boot 2.1.0 on Apple IIc, start ADTPro 2.1.0 on Win7 computer with Java build 1.8.0_341-b10.

Serial connection shows connected. Using Apple IIc to (R)ecieve files. Hit Enter at Filename: prompt. Request shows up on the Win7 PC, but it times out. Settings checked - same as the old version. Using Imagewriter cable, and have that option checked.

david-schmidt commented 2 years ago

Are there any messages in the command window (the black DOS prompt that is usually hidden but starts with Java)?

TheRealAnubiss commented 2 years ago

Hi,

The Java window is empty except for the message at the top: ADTPro Server version 2.1.0 The GUI reads a Directory contents request, and there's a path under the progress bar. I hit 'Disconnect' and it said there was a transfer in progress - cancel Y/N I clicked Yes, and then the window reads: java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at org.adtpro.CommsThread.sendPacketWide(Unknown Source) at org.adtpro.CommsThread.sendDirectoryWide(Unknown Source) at org.adtpro.CommsThread.dispatchCommand(Unknown Source) at org.adtpro.CommsThread.commandLoop(Unknown Source) at org.adtpro.CommsThread.run(Unknown Source)

Update - I changed the serial port speed to 19200, and unchecked and checked the Imagewriter cable option. It still didn't work, and didn't even show the request info on the GUI, so I switched it back to 115200 and now it will get the directory contents! The Apple II has stayed on the whole time. I'm going to reboot the Apple II and then see if it works right off, or if doing the steps above gets it working.

I'll post back later today with my results! Thank you!

OK, I just tried it out - I hit (R) on the Apple IIc and it timed out. I shutdown the GUI, restarted it, changed the serial speed to 19200 and hit OK, then I changed it back to 115200 then unchecked and then checked the Imagewriter option. Then it got the disk directory and successfully wrote an ADTPro 2.1.0 disk. I'll see if it will do that only when unchecking then checking the Imagewriter cable option.

Ok, next update:

It looks like the unchecking and checking the imagewriter cable option isn't the issue. I tried that separately and it still wouldn't pull up a directory. If I change the serial port speed to 19200 select OK, then change it back to 115200 and select OK it will read a directory after that.

david-schmidt commented 2 years ago

So it sounds like jostling the adapter's speed is helping it get started. What kind of serial adapter do you have?

TheRealAnubiss commented 2 years ago

Hi,

I have an Imagewriter cable with a db25 to db9 adapter. This works without fault on the 2.0.2 version, which is what I've been using at this point. I'm using an older Win7 PC with a 9 pin serial port on it.

TheRealAnubiss commented 2 years ago

I've tried this on a different IIc just to check, and I have the same problem. My IIc+ with homemade cable has no problem with the newest version. Same Windows PC for all tests..

david-schmidt commented 2 years ago

Ok, so the common point of failure seems to be the native serial port on the PC?

TheRealAnubiss commented 2 years ago

Hmmm - no? Something seems to be up with the IIc and the Imagewriter cable on ADTPro 2.1.0

Both Apple IIc's work with the Imagewriter cable and ADTPro version 2.0.2 Neither of the IIc's work with the Imagewriter cable and ADTPro version 2.1.0 The Apple IIc+ works with home made cable and ADTPro version 2.0.2 and 2.1.0

All tests on the same Win 7 PC.

david-schmidt commented 2 years ago

Ah, so the common failing components are the real Imagewriter cable and the new serial library in 2.1.0. And the symptom of having to toggle the speed makes this otherwise failing combination work, correct?

TheRealAnubiss commented 2 years ago

Yes. The same cable works fine on the older version. I didn't have a problem until I got the latest release of ADTPro.

david-schmidt commented 2 years ago

Do you have a USB RS232 adapter you can test in that same windows box?

TheRealAnubiss commented 2 years ago

I think I have an old Belkin one handy. I may have to find drivers if Win7 doesn't like it. I'll let you know for sure tomorrow. Thanks!

TheRealAnubiss commented 2 years ago

Hi,

Ok, I luckily have the Belkin F5U109, which I can get the Win7 64 bit drivers for. It's configured for COM3 by default.

Ok - using the Imagewriter cable and the USB adapter, running 2.1.0 on Win7PC and IIc - wouldn't get directory, but it still shows up on the PC as a request then just hangs - this is the same thing that happens with just the Imagewriter cable and no serial to USB adapter.

Just for kicks, I unchecked the Imagewriter cable option - restarted ADTPro on Windows and rebooted ADTPro floppy on the IIc - It worked! This is with the Imagewriter cable and the serial to USB adapter.

So I shut down the IIc and ADTPro on the PC, connected the Imagewriter cable the original way (DB25 to DB9 to serial port on PC - no serial to USB adapter). Unchecked the Imagewriter cable option - and it worked too! It's an official Apple Imagewriter cable, so that's why I had the option checked originally. Maybe something is up with that option now that wasn't a problem in 2.0.2?

Imagewriter cable number is 590-0191-A

david-schmidt commented 2 years ago

Oooh, back now - so, what changed between then and now is the entire underlying hardware communications layer. The old one (rxtx) seemed to require that flag, but tickling the same bits in the new library (jssc) seems to not require it. So I'd say keep on keepin' on with the box unchecked for now...

TheRealAnubiss commented 2 years ago

Thank you for your time, and for such a useful program!