Details
The AYABInterface
library provides a robust, layered architecture for controlling the AYAB knitting machine. At its highest level, the AYAB Application Interface serves as the primary entry point for external applications, translating user intentions into machine-executable commands. These commands are then processed by the AYAB Command & Action Handler, which encapsulates the specific logic for various knitting operations. All interactions with the physical AYAB shield are managed by the comprehensive AYAB Communication Stack, which handles everything from low-level serial communication and message protocol encoding/decoding to state-machine driven message sequencing. Complementing these core operational components, the AYAB Data & Configuration module provides essential services for managing machine model specifications, transforming knitting pattern data, and handling needle positions, ensuring the system can adapt to different machine types and knitting requirements. This clear separation of concerns facilitates maintainability, extensibility, and a well-defined data flow for controlling the AYAB hardware.
AYAB Application Interface
The primary entry point for external applications to interact with the AYAB knitting machine, orchestrating high-level operations and user commands.
AYAB Command & Action Handler
Translates abstract user commands into concrete, machine-executable actions, encapsulating the logic for various machine operations.
AYAB Communication Stack
Manages the entire lifecycle of communication with the AYAB shield, including connection, message queuing, protocol handling (encoding/decoding), and state management.
AYAB Data & Configuration
Stores and provides detailed specifications for AYAB machine models, offers utility functions for data transformation, and manages knitting pattern and needle position data.