Jump to content

Photo

sio2bsd, pc-link, file2pc.obj, raspberry pi, Bad Status from PC problem

sio2bsd pc-link file2pc.obj Raspberry Pi

12 replies to this topic

#1 E474 OFFLINE  

E474

    Chopper Commander

  • 190 posts

Posted Thu Dec 13, 2018 10:50 AM

Hi,

 

   I am trying to get file2pc.obj to work - as I understand it I can use it to transfer files to the PC-Link folder on my Raspberry Pi (or any server that supports PC-Link). I have installed sio2bsd, and can boot the ATARI.ATR that has file2pc.obj from the Rasberry Pi fine (see attached ATARI.ATR). However, when I try to use file2pc.obj on the (real) 8-bit, I get "BAD STATUS from PC. Restarting" when I try and give the path to the PC-Link directory. In the log for sio2bsd (displayed in the terminal) I get:

 

24 -> 'S': $31, $53, $0001 ($85)
25 -> 'R': $31, $52, $0169 ($ed)
26 -> 'R': $31, $52, $0033 ($b6)
27 -> 'S': $3a, $53, $0033 ($c0)
28 -> 'S': $3a, $53, $0033 ($c0)
29 -> 'S': $3a, $53, $0033 ($c0)
30 -> 'S': $3a, $53, $0033 ($c0)
31 -> 'S': $3a, $53, $0033 ($c0)
32 -> 'S': $3a, $53, $0033 ($c0)
33 -> 'S': $3a, $53, $0033 ($c0)
34 -> 'S': $3a, $53, $0033 ($c0)
35 -> 'S': $3a, $53, $0033 ($c0)
36 -> 'S': $3a, $53, $0033 ($c0)
37 -> 'S': $3a, $53, $0033 ($c0)
38 -> 'S': $3a, $53, $0033 ($c0)
39 -> 'S': $3a, $53, $0033 ($c0)
40 -> 'S': $3a, $53, $0033 ($c0)
41 -> 'S': $3a, $53, $0033 ($c0)
42 -> 'S': $3a, $53, $0033 ($c0)
43 -> 'S': $3a, $53, $0033 ($c0)
44 -> 'S': $3a, $53, $0033 ($c0)
45 -> 'S': $3a, $53, $0033 ($c0)
46 -> 'S': $3a, $53, $0033 ($c0)
47 -> 'S': $3a, $53, $0033 ($c0)
48 -> 'S': $3a, $53, $0033 ($c0)
49 -> 'S': $3a, $53, $0033 ($c0)
50 -> 'S': $3a, $53, $0033 ($c0)
51 -> 'S': $3a, $53, $0033 ($c0)
52 -> 'S': $3a, $53, $0033 ($c0)
53 -> 'S': $3a, $53, $0033 ($c0)
54 -> 'S': $3a, $53, $0033 ($c0)

 

I'm starting sio2bsd on the Raspberry Pi with:

 

$ sio2bsd ATARI.ATR /tmp/
D1: 720 sectors, 92160 bytes total, mounted on ATARI.ATR 

PERCOM: trk 40, step 3, spt 18, heads 1, bps 128, flags 00 (SMALL-FM-5.25INCH)
PCL1: mounted on /tmp
PCLink directory filter allows lower case names
Serial port: /dev/ttyAMA0
POKEY quartz 1781618.500000 Hz and HS Index 0 constant 7.186100 is assumed
Default speed: HSINDEX=40 (19200 bits/sec.)
Default turbo: HSINDEX=0 (123963 bits/sec.)
User selected: HSINDEX=0 (123963 bits/sec.)

 

And giving a variety of PC pathnames when prompted by the file2pc.obj program, but am getting nowhere.

 

I built sio2bsd using "make -f Makefile.linux", and set the serial device as /dev/ttyAMA0 in Makefile.linux.

 

Anyone have any ideas on how to get this to work? I would like to hack the file2pc sources so I can write files to the PC-Link folder, but I need to be able to test this is possible, e.g. that file2pc.obj works OK in the first place.

 

Also, I don't have SpartaDos X, so can't test sio2bsd with the PC-Link.sys driver for that DOS. 

 

If anyone knows how to get file2pc.obj to work with another server than sio2bsd, that would also be a good to know.

 

Thanks!

 

Attached Files



#2 _The Doctor__ OFFLINE  

_The Doctor__

    Flux Capacitor Master Craftsman

  • 6,537 posts
  • Location:10-0-11-00:02

Posted Sat Dec 15, 2018 3:03 PM

bump,

says zero(0) views and no one said they've seen the thread even though 4 downloads registered. (weird!)

If you can see the thread and have some insight, interest or help to give chime in.

 

*edit* since the bump it says 99 views and is in the forum list.

 

I think we have a few people who can handle this with E474 quite readily :)


Edited by _The Doctor__, Sat Dec 15, 2018 3:06 PM.


#3 E474 OFFLINE  

E474

    Chopper Commander

  • Topic Starter
  • 190 posts

Posted Sun Dec 16, 2018 7:27 AM

Thanks!

 

   Though it seems to be stuck at 99 views, so there may be some forum weirdness going on. 



#4 flashjazzcat ONLINE  

flashjazzcat

    Quadrunner

  • 14,435 posts
  • Location:United Kingdom

Posted Sun Dec 16, 2018 8:22 AM

Says 129 views here. Try page refresh (you may be looking at a cached version of the forum index).

 

High number of views and downloads of files with no response after 2-3 days suggests anyone who looked has nothing to offer yet. User Drac030 wrote SIO2BSD AFAIK, so that may be a potential lead if you get further offers.



#5 a8isa1 ONLINE  

a8isa1

    Stargunner

  • 1,559 posts

Posted Sun Dec 16, 2018 10:37 AM

Hi E474!

 

It's not clear to me what you are trying to do.

 

I may be interpretting Nick Kennedy's notes wrong but it sounds like file2pc merely converts ATASCII files to ASCII files.  

 

from Nick's FAQ

 

"Can I convert my Atari files to PC files instead of disk images?

Yes. Using the supplied SIO2PC utility FILE2PC, you can convert Atari files to native PC files, ready to be picked up by your PC's word processor (or whatever ...). SIO2PC will not directly (without an Atari computer connected) extract files from an existing disk image and convert them to PC files. However, there are utilities by others that will do this. Follow the Atari Web Ring links to find a number of programs that will display the directories of .ATR disk images, extract files from them, etc. Another way to do this is to use the PRINT-THRU option of SIO2PC..  You will print the file on the Atari and have the printer's output captured to a file on the PC.  An advantage of this method is that you can have the system do conversions of Atari specific ATASCII codes to plain ASCII codes."

 

If you are trying to extract files from ATRs (Atari DOS or MyDOS formats) try ATR2UNIX.  It will compile under Raspbian.

 

To do ATASCII/ASCII conversion (end of lines conversion only) you can try these commands

 

linux text to ATASCII:

tr "\n" $'\x9B' <infile >outfile

 

ATASCII to linux:

tr $'\x9B' "\n" <infile >outfile

 

for Windows text files substitute \r for \n

 

The syntax is hard to remember (at least for me) with the $, single quotes, and double quotes.   I put the commands into bash shell scripts

 

These work on my RPi but it's not quite a Raspbian build. 

 

Regards,

a8isa1



#6 E474 OFFLINE  

E474

    Chopper Commander

  • Topic Starter
  • 190 posts

Posted Sun Dec 16, 2018 12:24 PM

Hi a8isa1,

 

   Thanks very much for the reply - I read it as file2pc was a program to copy files from the 8-bit to a PC directory, but I agree it is a bit ambiguous. If you have RespeQt (version 4(?) or similar), is there any chance you could test out file2pc.obj (it is on the ATARI.ATR image) with your Pi as a PC-Link server? File2pc.obj is sending (SIO) status requests to device $3A, which is supposed to be reserved for PC-Link. I think this can be done, but I haven't installed RespeQt on my Pi, and don't want to start hacking the file2pc.obj sources until I am sure I have an environment that I know it works in.

 

   Thanks!



#7 a8isa1 ONLINE  

a8isa1

    Stargunner

  • 1,559 posts

Posted Sun Dec 16, 2018 12:33 PM

Hi a8isa1,

 

   Thanks very much for the reply - I read it as file2pc was a program to copy files from the 8-bit to a PC directory, but I agree it is a bit ambiguous. If you have RespeQt (version 4(?) or similar), is there any chance you could test out file2pc.obj (it is on the ATARI.ATR image) with your Pi as a PC-Link server? File2pc.obj is sending (SIO) status requests to device $3A, which is supposed to be reserved for PC-Link. I think this can be done, but I haven't installed RespeQt on my Pi, and don't want to start hacking the file2pc.obj sources until I am sure I have an environment that I know it works in.

 

   Thanks!

My Pi is stripped back.  It's running headless on 2GB SD card.  no Qtlibs, so no AspeQt/RespeQt.   I don't remember if Atariserver can be built for Pi

 

-a8isa1



#8 HiassofT OFFLINE  

HiassofT

    Stargunner

  • 1,122 posts
  • Location:Salzburg, Austria

Posted Sun Dec 16, 2018 3:51 PM

I don't remember if Atariserver can be built for Pi


I've recently added support for that, see this thread: http://atariage.com/...d-serial-ports/

Haven't done an official release for it yet (I'm waiting for some more feedback from testers) and also haven't implemented pclink support - this might follow some time later (a bit undecided yet and personally I don't use SpartaDos/SDX at all).

The latest testing version currently is 181113, you can grab it from here: http://www.horus.com...arisio/testing/

so long,

Hias

#9 TheMontezuma OFFLINE  

TheMontezuma

    Dragonstomper

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

Posted Mon Dec 17, 2018 7:23 AM

Also, I don't have SpartaDos X, so can't test sio2bsd with the PC-Link.sys driver for that DOS. 

 

If anyone knows how to get file2pc.obj to work with another server than sio2bsd, that would also be a good to know.

 

Thanks!

 

 

Hi,

"PCLINK" has nothing to do with "file2pc". As far as Google knows, the second one is compatible with SIO2PC PC DOS software (http://www.umich.edu...ew_and_emu.html).

PCLINK is a file transfer protocol, which requires a PCLINK device handler on the ATARI side and the only implementation is available for Sparta Dos at this time.

On the PC side, you can use sio2bsd or RespeQt.

 

The other option is to use AspeQt fork from atari8warez. He implemented "writeable" mounted folders.

However his code is closed and I don't know if he offers Raspberry Pi binaries.

 

Regards


Edited by TheMontezuma, Mon Dec 17, 2018 7:26 AM.


#10 E474 OFFLINE  

E474

    Chopper Commander

  • Topic Starter
  • 190 posts

Posted Mon Dec 17, 2018 11:23 AM

Hi Hias and TheMontezuma,

 

  I am guessing then, that file2pc only works with SIO2PC DOS software, and isn't supported by Atariserver or sio2bsd?

 

  So, as I don't use SpartaDos X, I can't transfer files to the PC programatically?



#11 TheMontezuma OFFLINE  

TheMontezuma

    Dragonstomper

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

Posted Mon Dec 17, 2018 1:22 PM

Hi Hias and TheMontezuma,

 

  I am guessing then, that file2pc only works with SIO2PC DOS software, and isn't supported by Atariserver or sio2bsd?

 

  So, as I don't use SpartaDos X, I can't transfer files to the PC programatically?

 

In some other place (http://abbuc.de/~bun...lDOS_Manual.pdf) I read that file2pc is also supported by APE Software.

Hias may tell something about Atariserver.

 

I mentioned in my last post, that you can use atari8warez fork of AspeQt (at least on a Windows PC).

He implemented writable folders. This nice feature is a Atari Dos disk emulation (mapping Atari Disks to the PC file system).

You just mount a directory on a PC (for example) as DISK2 and copy files to it using Atari Dos from (for example) DISK1.

This way you can transfer Atari files to a PC file system.



#12 HiassofT OFFLINE  

HiassofT

    Stargunner

  • 1,122 posts
  • Location:Salzburg, Austria

Posted Mon Dec 17, 2018 3:28 PM

So, as I don't use SpartaDos X, I can't transfer files to the PC programatically?

If you don't use SpartaDos then you can give AtariSIO / atariserver a try.

It supports "virtual drives" which bascially mirror a directory and also allow writing to the PC.

This only works with DOS2.x and MyDOS (plus sufficiently compatible DOSes like Turbo Dos), but not with SDX because it doesn't open a directory entry for writing at the beginning and closing it after writing is finished. The latter is important because the file open -> file closed status transition of the directory entry is what will trigger writing the file to the PC directory in atariserver.

so long,

Hias

#13 E474 OFFLINE  

E474

    Chopper Commander

  • Topic Starter
  • 190 posts

Posted Mon Dec 17, 2018 5:32 PM

Thanks, I am making the cables/connectors at the moment, so should be able to test it out today/tomorrow.





Also tagged with one or more of these keywords: sio2bsd, pc-link, file2pc.obj, Raspberry Pi

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users