中文 | English
Welcome to the Payment Voice Box Solution repository for QuecPython! This repository provides a comprehensive solution for developing payment voice box applications using QuecPython.
The QuecPython Payment Voice Box Solution is primarily designed for the mobile payment industry, including payment collection, real-time broadcast functions, customizable voice playback (advertisements, special voices, etc.), support for historical order playback, and segmented display support. Users can perform secondary development based on this solution.
- Voice Broadcast: Supports various formats of voice files.
- Screen Display: Supports segmented display of transaction amounts, time, status, etc.
- Order Management: Supports historical order review and playback.
- Multi-Protocol Support: MQTT, TCP, HTTP.
- Long Standby Time: Supports ultra-low power mode.
- Remote Upgrade: Supports OTA remote updates of voice files.
Before you begin, ensure you have the following prerequisites:
-
Hardware:
- A QuecPython EC600U development board and a speaker.
- USB Data Cable (USB-A to USB-C).
- PC (Windows 7, Windows 10, or Windows 11).
-
Software:
-
Clone the Repository:
git clone https://github.com/QuecPython/solution-payment-voice-box.git cd solution-payment-voice-box
-
Flash the Firmware: Follow the instructions to flash the firmware to the development board. Ensure you select the appropriate firmware for your development board type.
-
Connect the Hardware:
- Use a USB data cable to connect the development board to the computer's USB port.
-
Download Code to the Device:
- Launch the QPYcom debugging tool.
- Connect the data cable to the computer.
- Press the PWRKEY button on the development board to start the device.
- Follow the instructions to import all files within the
code
folder into the module's file system, preserving the directory structure.
-
Run the Application:
- Select the
File
tab. - Select the
_main.py
script. - Right-click and select
Run
or use the run shortcut button to execute the script.
- Select the
solution-payment-voice-box/
├── code/
│ ├── _main.py # Application entry script
│ ├── audio_control.py # Audio playback related code
│ ├── audio_file/ # Audio files
│ │ ├── anjianyin.mp3
│ │ ├── audio.bin
│ │ ├── chongdianyiwancheng.mp3
│ │ ├── chongdianyiyichu.mp3
│ │ ├── ...mp3
│ │ └── zhengzaiguanji.mp3
│ ├── button_control.py # Button control related code
│ ├── cloud.py # Cloud platform connection related code (MQTT, HTTP, etc.)
│ ├── common.py # Logging, configuration file reading and saving related code
│ ├── conf_store.json # Static configuration for necessary parameters of the program
│ ├── const.py # Necessary parameter configurations for the program
│ ├── EventMesh.py # Event management related code
│ ├── lcd_control.py # Segment display/LCD screen control code
│ ├── led_control.py # LED control code
│ ├── mgr.py # Charging management, device information management, historical orders, remote control, etc.
│ ├── ota_control.py # OTA upgrade related code
│ └── utils/ # Encryption related code
│ ├── hashlib.py
│ └── hmac.py
├── doc/
│ ├── en/ # User guide documentation in English
│ │ ├── media/
│ │ │ ├── cloudspeaker_1.png
│ │ │ ├── cloudspeaker_10.png
│ │ │ ├── ...png
│ │ │ └── cloudspeaker_9.png
│ │ └── User-Guide.md
│ └── zh/ # User guide documentation in Chinese
│ ├── media/
│ │ ├── cloudspeaker_1.png
│ │ ├── cloudspeaker_10.png
│ │ ├── ...png
│ │ └── cloudspeaker_9.png
│ └── 应用指导.md
├── LICENSE
├── readme.md
└── readme_zh.md
Click here to view the User Guide.
We welcome contributions to improve this project! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -m 'Add your feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a Pull Request.
This project is licensed under the Apache License. See the LICENSE file for details.
If you have any questions or need support, please refer to the QuecPython documentation or open an issue in this repository.