Skip to content

unredbox/HW-Emu-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HAL-Emulator-Python

A tool for emulating the hardware that the Hardware Abstraction Layer (HAL) talks to.

  • pcb.py - This emulates the PCB, AUX, SER and QR boards, which runs on COM1
  • arcus.py - This emulates the Arcus stepper motion controller, which runs on COM3

Usage

The easiest way is to run this in the Virtual Machine (if you are using one), however you could also use serial port forwarding to run it on the host instead

  • Install Python
    • If you are using Windows 7, use this fork
    • Otherwise you can use the latest version from python.org
  • Install the requirements: pip install -r requirements.txt
  • Setup the required virtual COM ports with something like com0com
    • Setup pairs of COM1 -> COM10, and COM3 -> COM13
  • Start the scripts in 2 different command prompts:
    • python pcb.py
    • python arcus.py
  • Start or restart the HAL service using services.msc or cmd

You may also be interested in looking at V2 which is better designed.

About

Python based kiosk hardware emulator

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages