Giter VIP home page Giter VIP logo

advantech's Introduction

MSDOS watchdog TSRs for Advantech CPU boards

Backstory and description:

I recently came into possession of an Advantech industrial computer running MSDOS. One unfortunate feature of the system is that it does not have a convenient-to-press reset button (it has a pinhole reset button on the front of the chassis). If the CPU hangs, the only reasonable way to recover is to power off the entire chassis and power it back on. The watchdog timer on some Advantech CPU boards have the ability to reset the CPU if it stops receiving ticks from software. This software runs in the background providing those ticks.

Build and installation notes:

Software is written in x86 assembly, assembled with Borland Turbo Assembler.

  • Copy the directory for your particular watchdog to your device, along with a copy of Borland Turbo Assembler (Don't forget to add the bin directory to your PATH environment variable).
  • Change directory to the source directory and run BUILD.BAT.
  • Edit C:\AUTOEXEC.BAT to add the watchdog TSR, eg: LH C:\PCA6155V\WDTSR.COM
  • Optional: Add the controller to run the watchdog, eg: C:\PCA6155V\WDCTRL.COM 5
  • Reboot.

advantech's People

Contributors

bunder2015 avatar

Watchers

 avatar  avatar

advantech's Issues

Windows 9x support

Windows 9x has a variable timer rate.

  • 18hz at boot
  • 1000hz at login screen
  • 200hz at desktop
  • 18hz at shutdown

TSKIP of 86 might be sufficient to provide the same level of updates as on DOS (which uses 18hz) for the 200hz case. The documentation doesn't say how fast we can send updates to the watchdog. At 1000hz with a TSKIP of 86, the watchdog would be updated 10 times a second rather than twice. Another problem is at shutdown, if we are updating based on a 200 or 1000hz timer, when the system returns to 18hz the watchdog will reboot the system unless the timeout is set really high.

Win3.1x UI

Might be nice to have, rather than opening a DOS prompt or exiting Windows to change watchdog settings.

support other CPU boards

I am willing to write support for other boards I currently do not own, but I will need a PDF manual indicating how the watchdog works on that particular board since they all seem to be different.

Possible candidates for future 486 CPU boards:

  • PCA-6149 (2 ports, reads only, timer only adjustable by jumper)
  • PCA-6148 (2 ports, write port enables, read port disables)

The 6149 supports pentium overdrive, which may be desirable.

286/386 CPU boards do exist, but unsure if there are any with socketable CPUs.

single instance only

don't run if there is an existing instance, may need to use a lock file to accomplish this

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.