Atari directly talking to the Pi

SCSI2Pi, SCSI2Pi tools, SCSI Control app/SCSI2Pi, SCSI2Pi-Tools, SCSI-Control-App
uweseimet
Site Admin
Posts: 408
Joined: 10 Jan 2010, 15:39

Atari directly talking to the Pi

Post by uweseimet »

Currently I am working on a SCSI remote interface for directly communicating with the PiSCSI/RaSCSI board. This interface adds two vendor-specific SCSI commands to the host services device. With these commands the computer the board is connected to can use most of the operations also used by the SCSI Control app. The board can send a list of available image files, creates a new image files or attaches new devices and much more. No network connection is required.
Input and output data for the respective SCSI commands are the JSON, text format or binary representation of a protobuf message. Input and output format do not have to be identical.

For the Atari there is already a beta version of a command line tool called PI_EXEC. The input and output format used by this tool is JSON. The default JSON data sent to piscsi are hard-coded:

Code: Select all

{"operation":"NETWORK_INTERFACES_INFO"}
The result returned for this piscsi interface operation is the list of available network interfaces on the Pi, e.g.:

Code: Select all

{"status":true,"networkInterfacesInfo":{"name":["eth0","wlan0"]}}
Instead of sending the default data _EXEC accepts a JSON string on the command line. Note that PI_EXEC does not validate the JSON. piscsi accepts any JSON that is compatible with the operations documented in the protobuf interface.

Launch s2p with the -i ID services option to attach the host services device required for this feature. In case of errors the s2p log provides details when logging on trace level.
uweseimet
Site Admin
Posts: 408
Joined: 10 Jan 2010, 15:39

Re: Atari directly talking to the Pi

Post by uweseimet »

PI_EXEC now also includes a simple JSON parser, which helps to analyze the JSON returned by piscsi.
There is also a new test mode, which bypasses calling piscsi but uses the specified input file as data for any JSON processing. When using this mode it is not required to connect a RaSCSI/PiSCSI board to the Atari when testing.
Further there is a library PI_LIB.LIB now that provides convenience methods for sending commands to piscsi and parse JSON results.
uweseimet
Site Admin
Posts: 408
Joined: 10 Jan 2010, 15:39

Re: Atari directly talking to the Pi

Post by uweseimet »

The latest release 3.00 of the SCSI2Pi client tools for the Atari is available now. The release archive includes two additional tools that show how the Atari can directly talk to SCSI2PI via the SCSI/ACSI bus.
Note that this new feature is only available with the SCSI2Pi SCSI emulation software, but not with the PiSCSI software.