中文 | English
Welcome to the QuecPython Meter-Box Solution repository!
meter-box/
├──fw #QuecPython firmware
├──media #Project related images
├── src/
│ ├── _main.py #Program entry point, create application, wait for network, start application
│ ├── config.json #Configuration file (product key, server address, etc.)
│ ├── Qth/ #Quectel Cloud platform related APIs
│ ├── extensions/ #Extension modules
│ │ ├── __init__.py #Export qth_client and meter_service instances
│ │ ├── qth_client.py #QTH client module (MQTT communication, data reporting, etc.)
│ │ └── meter_service.py #Meter service module (simulated data generation)
│ └── libs/ #Basic libraries
│ ├── __init__.py #Export common utility classes
│ ├── collections.py #Singleton pattern implementation
│ ├── common.py #Configuration storage class (based on JSON file)
│ ├── logging.py #Logging utility class
│ └── threading.py #Thread result processing utility
├── LICENSE
├── README.md
├── README_ZH.md
QuecPython has launched a one-stop meter-box solution for the intelligent measurement field, combined with Quectel Cloud platform, enabling mobile terminals to remotely acquire measurement data and control devices.
This solution takes the currently widely used smart electricity meter as an example to implement remote meter reading functionality.
Before you begin, ensure you have met the following prerequisites:
-
Hardware:
-
Software:
-
USB driver for QuecPython module (select according to the module model)
-
QPYcom debugging tool
-
QuecPython firmware and related software resources (select according to the module model)
-
Clone the repository:
git clone https://github.com/QuecPython/meter-box.git
cd meter-boxFlash firmware:
Flash the firmware to the development board according to the instructions.
Connect hardware:
- Use a USB data cable to connect the meter-box to your computer's USB port.
Download code to device:
-
Launch the QPYcom debugging tool.
-
Connect the data cable to your computer.
-
Press the switch button on the product to start the device.
-
Import all files from the
srcfolder into the module's file system while preserving the directory structure, following the instructions.
Run the application:
-
Select the
Filetab. -
Select the
_main.pyscript. -
Right-click and select
Runor use the run shortcut button to execute the script.
Click here to view the detailed implementation of the Meter-Box solution.
We welcome contributions to improve this project! Please follow these steps to contribute:
-
Fork this 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. For detailed information, please refer to the LICENSE file.
If you have any questions or need support, please refer to the QuecPython Documentation or open an issue in this repository.



