Jump to content

Photo

PCLINK.SYS support?


178 replies to this topic

#1 gozar OFFLINE  

gozar

    Dragonstomper

  • 983 posts
  • Location:Ohio

Posted Thu Jan 28, 2016 6:33 AM

I was reading through the SDX manual last night and learned about PCLINK.SYS. It's a driver which installs a PCL: device to allow R/W access directly to files and directories on an SIO2PC host. Looks like it's only supported under SIO2BSD, but this is a feature I would use a lot!

 

Any chance of it being added?



#2 DrVenkman OFFLINE  

DrVenkman

    River Patroller

  • 3,984 posts
  • Back off, man! I'm a scientist.
  • Location:KMBT

Posted Thu Jan 28, 2016 7:48 AM

I was reading through the SDX manual last night and learned about PCLINK.SYS. It's a driver which installs a PCL: device to allow R/W access directly to files and directories on an SIO2PC host. Looks like it's only supported under SIO2BSD, but this is a feature I would use a lot!
 
Any chance of it being added?


Maybe I'm missing something, but RespeQt already allows mounting an arbitrary folder on the host system as a "drive" for file loading and booting. I do it all the time when I update the BIOS on my U1MB. I just mount my Desktop folder as D3: or something. Works great.


Sent from my iPhone using Tapatalk

#3 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 14,503 posts
  • Location:United Kingdom

Posted Thu Jan 28, 2016 8:11 AM

PCLINK is much more versatile than that. It's a full bi-directional protocol which allows writing to the server's file system in a reliable manner. It requires a driver on the A8 which sends IO commands to the server. The current Respeqt mirroring does indeed work well but lacks any kind of write support and still won't emulate the SDFS disk format, which has been on the to-do list for years.

#4 Joey Z OFFLINE  

Joey Z

    Dragonstomper

  • 876 posts
  • Location:Hoffman Estates, IL

Posted Fri Jan 29, 2016 1:18 AM

PCLINK support has been put on the ever growing todo list. No clue if/when I'll get around to it.



#5 TheMontezuma ONLINE  

TheMontezuma

    Dragonstomper

  • 676 posts
  • Location:Hildesheim, D / Kraków, PL

Posted Sat Jan 30, 2016 1:29 PM

I can take a look at the PCLINK (I anyway wanted to get more familiar with sio2bsd code).



#6 morelenmir OFFLINE  

morelenmir

    Stargunner

  • 1,544 posts
  • Location:West Yorkshire, Great Britain

Posted Sat Jan 30, 2016 8:11 PM

Just for clarity - when you mount a folder via RespeQT is that feature currently Read-Only?



#7 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 14,503 posts
  • Location:United Kingdom

Posted Sun Jan 31, 2016 3:34 AM

Yes: read-only.

#8 morelenmir OFFLINE  

morelenmir

    Stargunner

  • 1,544 posts
  • Location:West Yorkshire, Great Britain

Posted Sun Jan 31, 2016 9:51 AM

I can take a look at the PCLINK (I anyway wanted to get more familiar with sio2bsd code).

 

Excellent, it would certainly be a cool feature - but then they are all cool features!!!

 

Is there a debian APT repository for PCLink or is it BSD only?



#9 lemiel OFFLINE  

lemiel

    Moonsweeper

  • 279 posts
  • Location:Tychy, Poland

Posted Sun Jan 31, 2016 11:47 AM

Only tar.gz source here http://drac030.krap....-inne-pliki.php

#10 TheMontezuma ONLINE  

TheMontezuma

    Dragonstomper

  • 676 posts
  • Location:Hildesheim, D / Kraków, PL

Posted Sun Jan 31, 2016 11:51 AM

And here: https://github.com/T...ntezuma/SIO2BSD

I setup (with KMK permission) the Github repository, so the tool can be developed by the community.



#11 morelenmir OFFLINE  

morelenmir

    Stargunner

  • 1,544 posts
  • Location:West Yorkshire, Great Britain

Posted Sun Jan 31, 2016 1:06 PM

Only tar.gz source here http://drac030.krap....-inne-pliki.php

 

And here: https://github.com/T...ntezuma/SIO2BSD

I setup (with KMK permission) the Github repository, so the tool can be developed by the community.

 

Many thanks for those pointers guys!

 

I built the 'SIO2BSD' executable from those sources and all appears to work well.  Sadly my Debian server - logically enough! - is in my server room and now physically distant from my A8 so I cannot test it directly.  It would be nice to have something similar running under windows, but I have never had any luck at all with the CygWin package, it seems to choke on my complicated usernames.



#12 TheMontezuma ONLINE  

TheMontezuma

    Dragonstomper

  • 676 posts
  • Location:Hildesheim, D / Kraków, PL

Posted Sun Jan 31, 2016 1:55 PM

SIO2BSD works fine under CygWin. You may need to do small modifications in the makefile.



#13 morelenmir OFFLINE  

morelenmir

    Stargunner

  • 1,544 posts
  • Location:West Yorkshire, Great Britain

Posted Sun Jan 31, 2016 4:54 PM

SIO2BSD works fine under CygWin. You may need to do small modifications in the makefile.

 

I may give that a try then TheMontezuma.  Is SIO2BSD via CygWin the only PCLink server available or is there something that will run natively under windows?



#14 TheMontezuma ONLINE  

TheMontezuma

    Dragonstomper

  • 676 posts
  • Location:Hildesheim, D / Kraków, PL

Posted Mon Mar 28, 2016 3:07 PM

I have ported the SIO2BSD code (PCLINK) to the Linux version of the RespeQt :)

Successfully tested with Raspberry Pi. It works really nice with Sparta Dos and PCLINK driver.

Now I'm struggling with adaptations for Windows.

If anybody is interested in testing I can provide the RPI binaries (and source code of course).



#15 DrVenkman OFFLINE  

DrVenkman

    River Patroller

  • 3,984 posts
  • Back off, man! I'm a scientist.
  • Location:KMBT

Posted Mon Mar 28, 2016 3:55 PM

I have ported the SIO2BSD code (PCLINK) to the Linux version of the RespeQt :)

Successfully tested with Raspberry Pi. It works really nice with Sparta Dos and PCLINK driver.

Now I'm struggling with adaptations for Windows.

If anybody is interested in testing I can provide the RPI binaries (and source code of course).

 

 

What functionality does the PCLINK code provide? Or rather, why is this particularly useful? :)


Edited by DrVenkman, Mon Mar 28, 2016 3:57 PM.


#16 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 14,503 posts
  • Location:United Kingdom

Posted Mon Mar 28, 2016 4:30 PM

What functionality does the PCLINK code provide? Or rather, why is this particularly useful? :)


It provides a proper bi-directional protocol for data transfer between the PC and the A8 using virtual folders. The Atari tells the PC: "open a file" and "write this data", etc.

#17 DrVenkman OFFLINE  

DrVenkman

    River Patroller

  • 3,984 posts
  • Back off, man! I'm a scientist.
  • Location:KMBT

Posted Mon Mar 28, 2016 4:34 PM

It provides a proper bi-directional protocol for data transfer between the PC and the A8 using virtual folders. The Atari tells the PC: "open a file" and "write this data", etc.

 

 

I guess then the question is, what software on the Atari can take advantage of this, and how does one work this functionality into the workflow of using the Atari? I hope this question makes sense. 



#18 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 14,503 posts
  • Location:United Kingdom

Posted Mon Mar 28, 2016 4:40 PM

You need a driver, and SDX provides one. Any software which can run under SDX and which allows the use of the kernel device names will work.

#19 drac030 OFFLINE  

drac030

    Stargunner

  • 1,836 posts
  • Location:Warszawa, Poland

Posted Mon Mar 28, 2016 4:48 PM

With PCLink the Atari side sees and can read/write files stored on the PC disk. Example:

Attached Thumbnails

  • pclink.png
  • pclink_pcside.png
  • pclink_2.png

Edited by drac030, Mon Mar 28, 2016 5:07 PM.


#20 GoodByteXL OFFLINE  

GoodByteXL

    Moonsweeper

  • 339 posts
  • Location:XL heaven

Posted Wed Mar 30, 2016 11:59 PM

I have ported the SIO2BSD code (PCLINK) to the Linux version of the RespeQt icon_smile.gif

Successfully tested with Raspberry Pi. It works really nice with Sparta Dos and PCLINK driver.

Now I'm struggling with adaptations for Windows.

If anybody is interested in testing I can provide the RPI binaries (and source code of course).

Progress :-).

What are the stable read/write speeds?



#21 TheMontezuma ONLINE  

TheMontezuma

    Dragonstomper

  • 676 posts
  • Location:Hildesheim, D / Kraków, PL

Posted Thu Mar 31, 2016 3:00 PM

19200

 

Just kidding. I know that you are the speed demon :)

I could transfer data without problems with HSINDEX=3.



#22 GoodByteXL OFFLINE  

GoodByteXL

    Moonsweeper

  • 339 posts
  • Location:XL heaven

Posted Sat Apr 2, 2016 12:22 AM

19200

 

Just kidding. I know that you are the speed demon icon_smile.gif

I could transfer data without problems with HSINDEX=3.

Hey, that's great :-).

So I estimate a stable transfer at PD 0 at least with the Win version.



#23 TheMontezuma ONLINE  

TheMontezuma

    Dragonstomper

  • 676 posts
  • Location:Hildesheim, D / Kraków, PL

Posted Sun May 8, 2016 4:27 AM

Finally I found time to finish the PCLINK port.

 

Joe has already merged the "pull request", so the source code is available in the git repository.

It is the source code from the Drac030's SIO2BSD project, with small adaptations to work with RespeQt (under Linux and under Windows).

It would be great, if somebody could test it with a MAC.

 

I uploaded the Windows binaries here:

Attached File  RespeQt-PCLINK.zip   9.08MB   260 downloads

 

Drac030 has already explained what PCLINK is.

 

I will try to explain how to use it.

 

You need a Sparta DOS X with a PCLINK.SYS driver in order to get advantage from the new functionality.

Since the PCLINK driver is not a part of the standard Sparta DOS X image, you need to download the Toolkit and extract the driver (with ARC command).

Once it is extracted, you can let it be loaded automatically by modifing the CONFIG.SYS file. Just add a new line, like this one (assuming that you extracted the driver into C:\TKIT\DRV):
 

DEVICE C:\TKIT\DRV\PCLINK.SYS

or you can load it manually by typing:
 

C:\TKIT\DRV\PCLINK.SYS

When the driver is loaded you can access devices: PCL1, PCL2, ..., PCL15 in the same way as you access D1, D2, ..., D15.

A PCL device represents a virtual disk mapped to a folder on the PC side.

The PCLINK functionality is very similar (from the user point of view) to mounted folders.

This is why I decided to use the same GUI for that.

In order to enable a PCL device, you just mount a folder.

 

Now you can access the same PC folder mounted as DX in two ways: as DX and as PCLX.

Actually when you type just PCL it will default to PCL1 (like D defaults to D1).

 

So you can type following:

dir PCL:

or

x PCL:game.xex

but you can also copy files to PCL devices, which was I think the main reason for Drac030 to develop the protocol and the software: easy and comfortable way to backup data from the ATARI harddrive.

 

Per default PCLINK accepts only file names with lower case characters (and the ATARI files copied to the mounted folder will have lower case names).

SIO2BSD has a command line parameter to accept file names with upper case characters instead, so you can choose what you like more.

If you find it usefull, we can add a checkbox in the RespeQt settings for that.

 

@Drac030

Thank you for this nice feature. I hope it will reach now even more users :)


Edited by TheMontezuma, Sun May 8, 2016 4:29 AM.


#24 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 14,503 posts
  • Location:United Kingdom

Posted Sun May 8, 2016 4:54 AM

Excellent: waited for this for a long time. :D Look forward to testing.

#25 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 14,503 posts
  • Location:United Kingdom

Posted Sun May 8, 2016 7:50 AM

Is there any chance of putting a toggle for printer emulation in the settings dialogue so it can be turned off by default? I asked about this years ago re: AspeQt when I found that printer emulation messed up output to a real printer, but the idea was rejected.



Reply to this topic



  


0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users