A method for registering a gas meter on a gas IOT platform
By automatically acquiring the gas meter number and registering it to the gas IoT platform using a camera device and infrared communication components, the problem of low efficiency in manual operation in existing technologies is solved, enabling efficient registration of multiple gas meters and saving labor costs.
Patent Information
- Application Number
- CN202311631976.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2043-11-30
AI Technical Summary
The current method of registering gas meters on the gas IoT platform requires manual operation, and only one gas meter can be registered at a time, resulting in low work efficiency and increased labor costs.
A registration system is adopted, which uses a camera device and an infrared communication component to automatically obtain the device number and module number of multiple gas meters, and automatically registers them to the gas IoT platform through a server. The system includes a camera device for image acquisition and processing, an infrared communication component for signal transmission, and a WiFi module for network connection.
It enables automatic registration of multiple gas meters, improving work efficiency, saving labor costs, and saving energy consumption through infrared communication.
Smart Images

Figure CN117636612B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to a gas meter registration method, in particular to a gas meter registration method in a gas IOT platform. BACKGROUND
[0002] The gas IOT (Internet of Things) platform uses technologies such as sensors, communication devices, and cloud computing to centralize data from multiple gas meters in a central system, thereby achieving real-time monitoring, remote management, and data analysis.
[0003] Registering a gas meter on a gas IOT platform usually requires the following steps: assigning a unique device number to each gas meter during its production process; writing this device number into the gas meter's storage device or internal memory; manually connecting the gas meter to a host computer through a suitable interface; and writing the gas meter's device number and module number into the gas IOT platform through the host computer and registering it. Since this process requires manual operation and can only register one gas meter at a time, it is inefficient and increases labor costs. SUMMARY
[0004] The purpose of the present application is to solve the problem of the existing gas meter registration method on the gas IOT platform, which requires manual operation throughout the process and can only register one gas meter at a time, resulting in low efficiency and increased labor costs. The present application provides a gas meter registration method on the gas IOT platform.
[0005] To solve the above-mentioned problems of the prior art, the present application provides the following technical solutions:
[0006] A gas meter registration method on a gas IOT platform, characterized in that a registration system is used, which includes a host computer, a base, and a collection module. The host computer is provided with a server. The base is provided with a detection and recognition area. The collection module includes a module housing above the base, and a control unit, a camera device, an infrared communication component, and a WiFi module inside the module housing. The control unit is provided with embedded software, which is provided with a camera device control program, an infrared communication control program, and a WiFi communication control program. The camera area of the camera device corresponds to the detection and recognition area.
[0007] The registration method includes the following steps:
[0008] Step 1: Place multiple gas meters to be registered in the detection and identification area of the registration device, control the infrared communication component to send infrared signals to the multiple gas meters to be registered through the infrared communication control program to turn on the corresponding gas meters to be registered, and demodulate the return signals of the multiple gas meters to be registered to obtain the module number of the multiple gas meters to be registered.
[0009] Simultaneously, the camera device control program controls the camera device to acquire images. After obtaining images of multiple gas meters to be registered, image acquisition stops. Then, the camera device control program controls the camera device to execute image processing algorithms on the images of the multiple gas meters to be registered to obtain the device numbers of the multiple gas meters to be registered.
[0010] Step 2: Connect the WiFi module to the host computer's network via the WiFi communication control program. The WiFi module will then transmit the module number and device number of the multiple gas meters to be registered obtained in Step 1 to the server.
[0011] At the same time, the infrared communication control program controls the infrared communication component to send the device numbers of multiple gas meters to be registered to the corresponding gas meters to be registered;
[0012] Step 3: The server registers the module number and device number of multiple gas meters to be registered to the gas IoT platform via API call. Then, the server sends a termination command to the infrared communication component via the WiFi module, and the infrared communication component sends it to the gas meter to complete the registration.
[0013] Furthermore, in step 2, the step of transmitting the module number and device number of the multiple gas meters to be registered obtained in step 1 to the server by the WiFi module specifically involves controlling the WiFi communication control program to encapsulate the module number and device number of the multiple gas meters to be registered obtained in step 1 into a data packet, and then transmitting the data packet to the server by the WiFi module.
[0014] Furthermore, in step 3, the process of the server registering the module number and device number of multiple gas meters to be registered to the gas IoT platform via API calls specifically involves:
[0015] Step 3.1: Verify the integrity and security of the data packet from Step 2 through the server, and store the module number and device number of the multiple gas meters to be registered in the data packet into the database. Then, design all the module number and device number of the gas meters to be registered in the database as a database table.
[0016] Step 3.2: The server registers the database table from Step 3 to the gas IoT platform via API call, and determines whether the registration is successful based on the registration result returned by the gas IoT platform. If successful, proceed to the next step; otherwise, repeat Step 3.2.
[0017] Further, step 3.2 specifically includes:
[0018] Step 3.2.1: Send a request to the API endpoint of the gas IoT platform;
[0019] Step 3.2.2: Verify the API key of the API endpoint in Step 3.2.1;
[0020] Step 3.2.3: Construct the API request header and API request data, wherein the API request data is a database table;
[0021] Step 3.2.4: Initiate a POST request. Determine whether the request was successful based on the status code in the API response returned by the IoT platform. If it is, the API call is successful, and the gas IoT platform returns the registration result to the server. The server then determines whether the registration was successful based on the registration result. If it is, the server sends a termination command to the infrared communication component via the WiFi module, and the infrared communication component then sends it to the gas meter to complete the registration. Otherwise, return to step 3.2.1.
[0022] Furthermore, the camera device is one of a USB camera, a CSI camera, a MIPI camera, or a smart camera.
[0023] Furthermore, the infrared communication component employs one of the following: an infrared emitting diode and a receiving diode, an infrared sensor module, or an infrared array sensor.
[0024] Furthermore, the acquisition module also includes a USB interface disposed on the module housing and connected to the control unit, which is used to connect to the server through the host computer interface when the WiFi module cannot connect to the server.
[0025] Compared with the prior art, the beneficial effects of the present invention are:
[0026] (1) The present invention provides a method for registering gas meters on a gas IoT platform. The method employs a registration system, which obtains the device number and module number of multiple gas meters to be registered through a camera device and an infrared communication component, and automatically registers them to the gas IoT platform through a server. After registration is completed, the registered gas meters are deactivated. The present invention can automatically complete the registration of multiple gas meters on the gas IoT platform at the same time, which can greatly improve work efficiency and save labor costs.
[0027] (2) In the gas meter registration method of the present invention on the gas IoT platform, the infrared communication component can not only obtain the module number of multiple gas meters to be registered through infrared communication and transmit it to the host computer server, but also transmit the device number of multiple gas meters to be registered back to the corresponding gas meter to be registered (the device number of the gas meter to be registered is assigned to the surface / shell of the gas meter to be registered during the production process), and turn off the registered gas meter after successful registration to save energy. Attached Figure Description
[0028] Figure 1 This is a schematic diagram of the base and data acquisition module in an embodiment of a gas meter registration method on a gas IoT platform according to the present invention (control unit and WiFi module are not shown).
[0029] The reference numerals in the attached diagram are explained as follows: 1-base; 2-support plate; 3-module housing; 4-camera device; 5-infrared communication component; 6-USB interface; 7-circuit board. Detailed Implementation
[0030] The present invention will be further described below with reference to the accompanying drawings and exemplary embodiments.
[0031] A method for registering a gas meter on a gas IoT platform includes the following steps:
[0032] A registration system is adopted, which includes a host computer, a base 1, and a data acquisition module; the host computer is equipped with a server; see [link to relevant documentation]. Figure 1 The base 1 has a detection and identification area; the acquisition module includes a module housing 3, and a control unit, a camera device 4, an infrared communication component 5, and a WiFi module, all housed within the module housing 3 and integrated on a circuit board 7. The module housing 3 is mounted above the base 1 via a support plate 2, and a USB interface 6 is provided on the module housing 3. The control unit contains embedded software, which includes a camera device 4 control program, an infrared communication control program, and a WiFi communication control program. The camera area of the camera device 4 corresponds to the detection and identification area.
[0033] The camera device 4 uses a USB camera, which has the advantages of low cost and easy integration. In other embodiments, a CSI camera (Camera Serial Interface), a MIPI (Mobile Industry Processor Interface) camera, or a smart camera can also be used.
[0034] Infrared communication component 5 uses an infrared emitting diode and a receiving diode. In other embodiments, an infrared sensor module or an infrared array sensor may also be used.
[0035] USB interface 6 is used to connect to the server via the host computer's interface when the WiFi module cannot connect to the server.
[0036] The registration process includes the following steps:
[0037] Step 1: Place multiple gas meters to be registered in the detection and identification area of the registration device. Control the infrared communication component 5 to send infrared signals to the multiple gas meters to be registered through the infrared communication control program to activate the corresponding gas meters. Demodulate the return signals from the multiple gas meters to be registered to obtain the module number of the multiple gas meters to be registered. The infrared communication component 5 can control multiple gas meters to be registered simultaneously by using different infrared light wavelengths. In other embodiments, it can also be achieved by modulating the infrared light intensity or using different encoding methods for different channels.
[0038] At the same time, the camera device 4 is controlled by the camera device 4 control program to acquire images. After obtaining images of multiple gas meters to be registered, the image acquisition stops.
[0039] Then, the camera device 4 is controlled by a control program to perform image processing algorithms on the images of multiple gas meters to be registered, specifically as follows:
[0040] Images of multiple gas meters to be registered are preprocessed, including grayscale conversion, noise reduction, and contrast enhancement, to improve the accuracy of subsequent processing.
[0041] Image processing algorithms are used to extract features of the device numbers of multiple gas meters to be registered from images of multiple gas meters to be registered. These features include edges, shape, and color.
[0042] The extracted features are used to identify the device numbers of multiple gas meters to be registered through pattern matching, thus obtaining the device numbers of multiple gas meters to be registered;
[0043] Step 2: The WiFi module is controlled by the WiFi communication control program to encapsulate the module number and device number of the multiple gas meters to be registered obtained in Step 1 into a data packet. The WiFi module is then connected to the host computer's network via the WiFi communication control program, and the WiFi module transmits the data packet to the server.
[0044] At the same time, the infrared communication component 5 is controlled by the infrared communication control program to send the device numbers of multiple gas meters to be registered to the corresponding gas meters to be registered;
[0045] Step 3.1: Verify the integrity and security of the data packet from Step 2 through the server, and store the module number and device number of the multiple gas meters to be registered in the data packet into the database of the server. Then, design all the module number and device number of the gas meters to be registered in the database as a database table.
[0046] Step 3.2: The server registers the database table from Step 3 to the gas IoT platform via API (Application Programming Interface).
[0047] Step 3.2.1: Send a request to the API endpoint of the gas IoT platform;
[0048] Step 3.2.2: Verify the API key of the API endpoint in Step 3.2.1;
[0049] Step 3.2.3: Construct the API request header and API request data, wherein the API request data is a database table;
[0050] Step 3.2.4: Initiate a POST request and determine whether it was successful based on the status code in the API response returned by the IoT platform. If it is, the API call is successful and the gas IoT platform returns the registration result to the server; otherwise, return to step 3.2.1.
[0051] Step 3.3: The server determines whether the registration was successful based on the registration result. If it was, proceed to step 3.4; otherwise, repeat step 3.2.
[0052] Step 3.4: The server sends a termination command to the infrared communication component 5 via the WiFi module, and then the infrared communication component 5 sends it to the gas meter to complete the registration.
Claims
1. A method for registering a gas meter on a gas IOT platform, characterized in that, The application discloses a registration system and a registration method thereof.The registration system comprises an upper computer, a base (1) and a collection module.A server is arranged in the upper computer.A detection and identification area is arranged on the base (1).The collection module comprises a module shell (3) arranged above the base (1), and a control unit, a camera (4), an infrared communication assembly (5) and a WiFi module arranged in the module shell (3).The control unit is provided with embedded software, and the embedded software is provided with a camera (4) control program, an infrared communication control program and a WiFi communication control program.The camera area of the camera (4) corresponds to the detection and identification area. The registration method comprises the following steps: Step 1: placing a plurality of gas meters to be registered in the detection and identification area of the registration device, controlling the infrared communication assembly (5) to send infrared signals to the plurality of gas meters to be registered to turn on the corresponding gas meters to be registered, and demodulating the return signals of the plurality of gas meters to be registered to obtain the module numbers of the plurality of gas meters to be registered. Meanwhile, the camera (4) control program controls the camera (4) to collect images, and the image collection is stopped after the images of the plurality of gas meters to be registered are obtained. Then, the camera (4) control program controls the camera (4) to execute an image processing algorithm on the images of the plurality of gas meters to be registered to obtain the equipment numbers of the plurality of gas meters to be registered. Step 2: connecting the WiFi module and the upper computer through the WiFi communication control program, and transmitting the module numbers and the equipment numbers of the plurality of gas meters to be registered obtained in step 1 to the server through the WiFi module. Meanwhile, the infrared communication control program controls the infrared communication assembly (5) to send the equipment numbers of the plurality of gas meters to be registered to the corresponding gas meters to be registered. Step 3: registering the module numbers and the equipment numbers of the plurality of gas meters to be registered to a gas IOT platform through API calling of the server, and then sending an end command to the infrared communication assembly (5) through the WiFi module of the server, and then sending the end command to the gas meters through the infrared communication assembly (5) to complete the registration.
2. The method for registering a gas meter on a gas IOT platform according to claim 1, wherein: In step 2, the transmission of the module numbers and the equipment numbers of the plurality of gas meters to be registered obtained in step 1 to the server through the WiFi module is specifically: controlling the WiFi module to encapsulate the module numbers and the equipment numbers of the plurality of gas meters to be registered obtained in step 1 into a data packet through the WiFi communication control program, and transmitting the data packet to the server through the WiFi module.
3. The method for registering a gas meter on a gas IOT platform according to claim 2, wherein: In step 3, the registration of the module numbers and the equipment numbers of the plurality of gas meters to be registered to the gas IOT platform through API calling of the server is specifically: Step 3.1: verifying the integrity and security of the data packet in step 2 through the server, storing the module numbers and the equipment numbers of the plurality of gas meters to be registered in the data packet into a database, and then designing the module numbers and the equipment numbers of all the gas meters to be registered in the database into a database table. Step 3.2, register the database table of step 3 to the gas IOT platform by API call, and judge whether the registration is successful according to the registration result returned by the gas IOT platform, if yes, execute the next step, otherwise, re-execute step 3.
2.
4. The method for registering a gas meter on a gas IOT platform according to claim 3, wherein: The step 3.2 is specifically: Step 3.2.1, send a request to the API endpoint of the gas IOT platform; Step 3.2.2, verify the API key of the API endpoint of step 3.2.1; Step 3.2.3, build API request header and API request data, the API request data is the database table; Step 3.2.4, initiate a POST request, judge whether it is successful according to the status code in the API response returned by the IOT platform, if yes, the API call is successful, the gas IOT platform returns the registration result to the server, and the server judges whether the registration is successful according to the registration result, if yes, the server sends an end command to the infrared communication component (5) through the WiFi module, and then the infrared communication component (5) sends it to the gas meter, completes the registration; otherwise, return to step 3.2.
1.
5. The method for registering a gas meter on a gas IOT platform according to any one of claims 1 to 4, characterized in that: The camera (4) adopts one of USB camera, CSI camera, MIPI camera and smart camera.
6. The method for registering a gas meter on a gas IOT platform according to any one of claims 1 to 4, characterized in that: The infrared communication component (5) adopts one of infrared transmitting diode and receiving diode, infrared sensor module and infrared array sensor.
7. The method for registering a gas meter on a gas IOT platform according to any one of claims 1 to 4, characterized in that: The acquisition module further comprises a USB interface (6) provided on the module shell (3) and connected with the control unit, for connecting the server through the interface of the upper computer when the WiFi module cannot connect with the server.
Citation Information
Patent Citations
Registration method of electricity meter
CN115174664A
Discharging module and photoelectric direct-reading water meter identity information writing system
CN218585336U