GithubHelp home page GithubHelp logo

bkw777 / pdd.sh Goto Github PK

View Code? Open in Web Editor NEW
23.0 5.0 1.0 1.5 MB

TPDD client implemented in bash

License: GNU General Public License v3.0

Shell 99.68% Makefile 0.32%
trs-80 tandy model-100 tandy-portable-disk-drive 26-3808 tpdd bash nec pc-8201 kc-85

pdd.sh's People

Contributors

bkw777 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

mccabet

pdd.sh's Issues

TPDD1: `ls` leaves the drive in an unexpected state, requires `smack` to recover

Probably only affects TPDD1

Somehow I borked it up in the last few updates without noticing that if you do an ls, the ls works fine, but leaves the drive in an unexpected state, probably in fdc-mode left over from the condition command to get the write-protect status, when we expect it to be in operation-mode, and with bytes from the drive still un-collected by a read or a drain.

End result is most commands work, and ls works, but if you do a an ls then almost no commands work after that.

WORK-AROUND until I fix it:
Any time you do ls, then do a smack after that and verify that status responds "ready" instead of some error.

probably timing problems on mac

Bash 5.2 from macports, Monterey 12.7.3, Early 2015 macbook air, FTDI usb-serial adapter

fdc-mode read operations fail, ie rh/read_header rl/read_logical hang on trying to read after sending the command.

opr-mode commands mostly work but they're not 100% either. loading a small file works but larger files hang around 3.8k

ls mostly works, the dirent() commands work to display all the files, but the end of ls() does an fdc-mode command to get the disk write-protect status at the end and that fails.

glitches & annoyances on freebsd

  • help() makes a blank screen in any terminal, regardless if white or black background, and blindly typing q enter doesn't exit either, requires ctrl-c to exit, and after ctrl-c the terminal is fine, so it's not the terminal codes but some kind of hang.
  • the tty can get locked and unusable until reboot if you for instance unplug and re-plug the usb-serial adapter

not working well on freebsd

Don't know what the issue is yet but it basically only starts to work then gets stuck on freebsd.
Maybe timing.

Does not work in MacOS stock bash. Requires macports or brew.

I have reproduced this issue on both

  • Intel Macbook Pro + USB Serial Prolific
  • M1 Macbook Pro + USB Serial FTDI
    Connected to a TPDD1, with factory cable

The script starts, asks which port to use (btw auto detect also does not work), then nothing happens.
The behaviour is the same even if you don't connect anything on the serial side ( eg no : TDPP at all)

Debug 1 or 2 says nothing either.

If your CTRL-C to exit the script, the script says it was at line 524 (if that info helps maybe...)

Cable setup is OK , serial adapters work & are supported, TPDD works, and not the cause of the problems. I can talk to my TPDD with the same cables and setup using Windows 11 virtual machin under Parallels and a Windows TPDD Client.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.