Page tree
Skip to end of metadata
Go to start of metadata

Applicable Devices

Maya PAX L920

Maya PAX A920

Maya Sunmi P2


Downloads / Files

PAX Drivers and installation guide (Windows and Linux)

https://nextcloud.ehors.com:9880/s/iDyWjmm3Rzt4XWZ

Sunmi P2 Driver Installation files and guide document

https://nextcloud.ehors.com:9880/s/QiM6ozzC4Tt6F9N


Maya ECR ↔ WINX Integration agent

https://nextcloud.ehors.com:9880/s/JWdQ85k5QKqTbBP

Integrations / Installation

  1. Install USB driver base on device model's driver 
  2. Verify the COM port is available when USB is connected with the Maya Device with Maya's ERC apps running

  3. Install Python and require package for python:
    • Install Python:

      • Download and install Python from Python Downloads.
      • Ensure you check the box to add Python to your system's PATH.
    • Install pip (if not installed by default):

    • Install Required Dependencies for remote-serial-pay.py:

      a. PyCRC:

      • PyCRC is used for CRC calculations.
      • Install it using the following command:

        pip install pythoncrc

      b. PySerial:

      • PySerial is required for serial communication with devices.
      • Install it using the following command:

        pip install pyserial

    • Install Dependencies for stub-ecr-pay.py:

      a. PyCRC (already installed in the previous step):

      • The script also uses PyCRC for CRC calculations.

      b. PySerial (already installed in the previous step):

      • This script relies on serialio which interacts with PySerial.
    • Install Dependencies for tray_icon.py:

      a. pystray:

      • This is used for creating system tray icons.
      • Install it with the following command:

        pip install pystray

      b. Pillow:

      • Used for handling images (PIL).
      • Install it with the following command:

        pip install Pillow

    • Install Dependencies for winx-maya-agent.py:

      a. websockets:

      • This is used for WebSocket communication.
      • Install it with:

        pip install websockets


  4. Install Python on Windows 7 x86

    Yes, you can download and install Python using PowerShell on Windows 7 x86. Here's a step-by-step guide to do this:

    1. **Open PowerShell**:
       - Press `Win + R`, type `powershell`, and press Enter.

    2. **Download Python Installer**:
       Use the `Invoke-WebRequest` command to download the Python installer directly. Make sure to download the Python 3.8.10 x86 executable installer for 32-bit systems:
       ```powershell
       Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe" -OutFile "$env:USERPROFILE\Downloads\python-3.8.10.exe"
       ```

    3. **Run the Installer Silently**:
       You can run the installer with the `/quiet` option to install it without user interaction. The `/quiet InstallAllUsers=1 PrependPath=1` parameters will install Python for all users and add Python to the system PATH:

       ```powershell
       Start-Process -FilePath "$env:USERPROFILE\Downloads\python-3.8.10.exe" -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1" -Wait
       ```

    4. **Verify Installation**:
       After the installation is complete, you can verify it by opening a new PowerShell window and typing:

       ```powershell
       python --version
       ```

       You should see `Python 3.8.10` as the output.

    5. **Remove the Installer (Optional)**:
       If you want to remove the installer after installation, you can do so with:

       ```powershell
       Remove-Item "$env:USERPROFILE\Downloads\python-3.8.10.exe"
       ```

    This method automates the download and installation of Python using PowerShell on Windows 7 x86.

  5. Unzip MayaWINX.zip downloaded from https://nextcloud.ehors.com:9880/s/JWdQ85k5QKqTbBP
    Windows, directly under C: driver or system drive


  6. Under folder C:\MayaWINX, use "start_server.bat" and can create a shortcut and assign to Taskbar or Start Menu (Righ click on the file "start_server.bat")

    Then the shortcut can be rename and move to Desktop or pin to start or taskbar

  7. Create another copy of the file and assign to the start menu

    For Windows:

    1. Create a Shortcut of the Batch File:

      • Navigate to C:\MayaWINX\.
      • Right-click on the start_server.bat file.
      • Select "Create shortcut."
    2. Move the Shortcut to the Startup Folder:

      • Press Win + R, type shell:startup, and press Enter. This will open the Windows Startup folder.
      • Move the shortcut you created in Step 1 into this folder.
    3. Test the Setup:

      • Restart your computer to ensure that the batch file runs automatically upon boot.

    This method ensures that the batch file will run when the user logs in.

    For Linux:

    On Linux, you can create a systemd service that will run your batch file (start_server.bat or start_server.sh) when the system boots up.

    1. Create a Systemd Service:

      • Open a terminal and create a new service file using a text editor:

        sudo nano /etc/systemd/system/start_server.service

    2. Add the Following Configuration: Replace /root/MayaWINX/start_server.sh with the path to your batch file.

      [Unit]
      Description=Start Server Script

      [Service]
      ExecStart=/root/MayaWINX/start_server.sh
      Restart=always

      [Install]
      WantedBy=multi-user.target
    3. Reload the Systemd Daemon:

      sudo systemctl daemon-reload

    4. Enable the Service: This command will enable the service to run on boot:

      sudo systemctl enable start_server.service

    5. Start the Service Immediately (Optional): If you want to start the service right away, run:

      sudo systemctl start start_server.service


    These steps will ensure that your batch file runs on system boot for both Windows and Linux. Let me know if you need more customization or help with specific errors.

  8. Double click on the short cut or the direct file "start_server.bat" and it should have a tray icon


  9. You may also right click on the try icon to exit if any problem

Debugging Or Checking Information

Can copy the log file from C:\MayaWINX\logs
















  • No labels