Smart Gas Monitoring Devices: Verify That an NB-IoT Meter Report Was Parsed and Acknowledged

Published on Today

Smart Gas Monitoring Devices: Verify That an NB-IoT Meter Report Was Parsed and Acknowledged

Abstract

A radio transmission, a parsed meter record and an application acknowledgement are different outcomes. Song, Wang and Yang describe an NB-IoT gas meter prototype with a fixed-length message, send and receive checks, and a server test interface. This article uses the published 68-byte layout and the reported program flow to explain how a buyer can distinguish those outcomes. The field-length table retains the authors' values without reproducing device identifiers or network addresses. A successful prototype exchange demonstrates the functions shown in that example. Field acceptance still requires failure cases, repeatability and a clear definition of the expected reply.

Background and research question

Remote gas monitoring depends on what happens after a meter sends data. The modem may report that a send command completed. The server may then receive the frame but reject its length or version. A server may accept a reading while a reply is delayed or lost. Each outcome can produce a different observation at the device and at the application. A buyer needs to know which event a supplier means by successful communication.
Song, Wang and Yang describe a prototype with an embedded controller, a BC95 communications module and a server-side test interface [1]. This review follows the architecture, message definition, program flow and test result in that order. The review asks what evidence the paper provides for a complete transaction and what an acceptance test would need to show when one part of the exchange fails.

System architecture and responsibilities

Figure 1. Perception, network and application layers of the authors’ prototype. Song, Wang and Yang [1], original Figure 1 (print p. 114). Independent English functional redraw of the published diagram.
Groups of gas meters and collectors send readings through an NB-IoT base station and server for computer or phone access.
Figure 2. Block-level organization of the authors’ meter hardware. Song, Wang and Yang [1], original Figure 2 (print p. 114). Independent English functional redraw of the published diagram.
KL36 controller and connected metering, leak, touch, alarm, power, BC95, valve-drive and display modules.
Figure 3. Two regulator paths, decoupling values and the 3.9 V enable signal. Song, Wang and Yang [1], original Figure 3 (print p. 114). English functional redraw. Component values are from the published schematic. This is not a pin-by-pin wiring drawing.
P5V feeds TPS70933 and TPS70939 regulators for the 3.3 V controller rail and enabled 3.9 V BC95 rail.
Figure 4. DC motor drive, switching states and sampled valve feedback. Song, Wang and Yang [1], original Figure 4 (print p. 114). English functional redraw of the published control circuit and the three operating states in Section 2.3. Component wiring is not shown.
The drive commands select forward or reverse current through motor P201. AD1 and AD2 are used for valve-state feedback.
Figure 5. BC95 power, radio, SIM and UART circuits. Song, Wang and Yang [1], original Figure 5 (print p. 115). English functional redraw with signal names and values transcribed from the source. It omits physical wiring details.
BC95 functional circuit with VBAT, antenna, SIM signals and their protection network, and transmit and receive lines.
The source separates data acquisition, networking and application functions. In the prototype, the meter controller collects and packages the readings. The NB-IoT module transmits and receives messages. The server stores and exposes meter data for display. The architecture helps locate the evidence for different events. A network log can show that a frame reached the server. A parser log can identify whether the message was interpreted. An application record can show the meter and time to which a reading was assigned.
The paper describes setting up the module, checking for a SIM and checking signal conditions before sending. Its flow chart distinguishes whether sending succeeded from whether a receive operation succeeded. It includes limited retry paths and return to a low-power mode. These behaviors make it useful to record which stage caused a failure, instead of collapsing every retry into a single connection error.

Message format and checking method

Figure 6. KL36 low-level driver organization. Song, Wang and Yang [1], original Figure 6 (print p. 115). Independent English functional redraw of the published diagram.
KL36 main firmware, communication data and modules for SPI, GPIO, timer, touch, ADC, valve drive and display linked to interrupts.
Figure 7. BC95 communications flow, retaining separate retry decisions for connection checks and message transfer. Song, Wang and Yang [1], original Figure 7 (print p. 115). Independent English functional redraw of the published diagram.
Flowchart for BC95 initialization, network connection, SIM and signal checks, transmission, reception and retry decisions.
Figure 8. Main program decisions, event triggers and output. Song, Wang and Yang [1], original Figure 8 (print p. 115). Independent English functional redraw of the published diagram.
Main program flow from valve eligibility and alarm branch through timer or touch triggers, BC95 transfer checks and LCD display.
Figure. Proportional field-length illustration based on Song, Wang and Yang [1], Section 3.2. Field values are not reproduced.
A 68-byte prototype frame showing published field sizes of 2, 15, 32, 15, 2 and 2 bytes.
The prototype specifies 68 bytes in one frame. The source lists the fields in the order shown below. The field lengths add to 68 bytes. This simple check is reproducible from the paper without recording any example device identifier, address or other screen value.
Prototype field
Length (bytes)
Frame header
2
Subscriber identifier field
15
Transmitted data
32
Destination address field
15
Verification-code field
2
Frame trailer
2
Total
68
Table. English transcription of the fixed frame layout in Song, Wang and Yang [1], Section 3.2. Only field labels and lengths are shown.
The paper calls the two-byte item a verification code. The listed field width does not define how the code was calculated or demonstrate that it provides authentication. A procurement specification should therefore distinguish message integrity checks, device identification and any required security controls. It should also define how different firmware versions are identified if the field layout changes.

What the prototype result shows

Figure 9. Prototype verification interface. Song, Wang and Yang [1], original Figure 9 (print p. 116). De-identified English wireframe based on the publication. Original screen values, identifiers and message bytes are omitted.
English reconstruction of the prototype test screen with areas for received messages, device and meter fields, and test controls.
The article's example interface displays a parsed result and an opportunity to reply. That supports the authors' description of a prototype capable of sending data and presenting parsed fields. The interface does not establish that every accepted record was written once, that acknowledgements were matched to each reading, or that the exchange met a service-level target. The paper gives no field sample size or long-run distribution of success rates. It cannot provide a carrier coverage figure or battery-life prediction.
A useful acceptance test can give each attempted report a traceable identity within the test record. The log can then show send, receive, parse, storage and acknowledgement separately. A valid frame tests the ordinary path. A frame of the wrong length tests rejection at the parser. A repeated valid frame tests whether the application can identify duplicates. Withholding a reply tests what the device records and how it returns to its intended operating state. These are proposed test cases, not experiments reported by the authors.
The difference becomes clearer if the acceptance record distinguishes three clocks. The device can record when a measurement was sampled, the server can record when a frame arrived, and the application can record when the message was accepted or acknowledged. A delayed reply does not change the original sample time. An acceptance reviewer can ask whether each time is reported on the same basis and whether the message key survives a retry. The paper does not specify those clock or key conventions. They are examples of implementation details to agree before comparing suppliers.
The intended response also needs a definition. An acknowledgement can mean receipt, parser acceptance, durable storage or completion of a business rule. If the requirement is durable storage, the demonstration should check the stored record as well as the returned reply. If only parser acceptance is required, the evidence should state that narrower scope.

Conclusion and outlook

Ask suppliers to define successful delivery at the application boundary and to provide matching device and server records. The prototype's frame and receive logic show why modem success alone is insufficient. A production evaluation can specify the expected record, reply and duplicate policy, then exercise the same criteria over representative operating conditions. Follow-on tests should measure application-level outcomes and record the conditions, rather than extrapolate performance from a successful example screen.

Notes

The field names and byte counts come from the cited prototype. The word verification refers to the source's field name. No example identifiers, personal details or network addresses from the interface are reproduced.

References and Image Sources

[1] Song, H., Wang, Y., and Yang, F. (2019). "Design and implementation of an intelligent gas meter system based on NB-IoT." Sensors and Microsystems, 38(3), pp. 113–116. Sections 1–4 and Figures 1–9. Circuit figures show the relevant functional paths. The test interface was redrawn with identifiers and payload data omitted. https://doi.org/10.13873/J.1000-9787(2019)03-0113-04
Image credit: Song, Wang and Yang (2019), Section 3.2, print p.115. Original visualization of field sizes only. https://doi.org/10.13873/J.1000-9787(2019)03-0113-04
Cover photo: U.S. Department of Energy, Oak Ridge archive. Atomic Energy Commission photographer Ed Westcott with his motion-picture equipment at Oak Ridge. U.S. Government work, public domain per the source record. Editorial photo crop and title layout. https://commons.wikimedia.org/wiki/File:Ed_Westcott_with_film_making_Equipment_Oak_Ridge_1960.jpg