CN111986387A - Method and device for acquiring gas quantity, storage medium and electronic device - Google Patents

Method and device for acquiring gas quantity, storage medium and electronic device Download PDF

Info

Publication number
CN111986387A
CN111986387A CN202010784850.0A CN202010784850A CN111986387A CN 111986387 A CN111986387 A CN 111986387A CN 202010784850 A CN202010784850 A CN 202010784850A CN 111986387 A CN111986387 A CN 111986387A
Authority
CN
China
Prior art keywords
gas
target
platform
terminal
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010784850.0A
Other languages
Chinese (zh)
Inventor
古滔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202010784850.0A priority Critical patent/CN111986387A/en
Publication of CN111986387A publication Critical patent/CN111986387A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • G07F15/001Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for gas
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Measuring Volume Flow (AREA)

Abstract

The embodiment of the invention provides a method and a device for acquiring gas quantity, a storage medium and an electronic device, wherein the method comprises the following steps: the method comprises the steps that a terminal receives a trigger signal sent by gas equipment under the condition that the gas equipment detects that the current residual gas quantity meets a preset condition, wherein the trigger signal is at least used for indicating that the current residual gas quantity meets the preset condition; and the terminal responds to the trigger signal and acquires a target gas quantity so as to increase the current residual gas quantity of the gas equipment to the sum of the current residual gas quantity and the target gas quantity. The trigger signal of gas equipment is responded through the terminal promptly, and then obtains the target gas volume, supplements the gas volume in the gas equipment, consequently, can solve prior art, can only adopt the value card to go places such as bank and acquire the gas volume for gas equipment, and then the inconvenient scheduling problem of operation that leads to, improved the convenience of gas acquisition mode.

Description

Method and device for acquiring gas quantity, storage medium and electronic device
Technical Field
The invention relates to the field of communication, in particular to a method and a device for acquiring gas quantity, a storage medium and an electronic device.
Background
At present, in the prior art, a prepaid gas meter is recharged by using a contact IC card and a radio frequency card, a user needs to transfer money to the card after paying in a related business hall, and then the user contacts or approaches the card to the gas meter before the user arrives at the meter, so as to complete recharging of the prepaid gas meter, and the technology has the following problems: when recharging the prepaid gas meter, the contact of the IC card and the radio frequency card requires the user to go to the relevant business network, which can not solve the problem of timely and fast paying the prepaid gas meter, and causes the waste of the user's manpower and time and the inconvenience of life; moreover, the arrangement of a large number of business points increases the operation cost.
Aiming at the problems that in the related technology, a stored value card can only be used for banks and other places to obtain the gas quantity for gas equipment, so that the operation is inconvenient and the like, an effective technical scheme is not provided.
Disclosure of Invention
The embodiment of the invention provides a method and a device for acquiring gas quantity, a storage medium and an electronic device, which are used for at least solving the problems that in the related technology, the gas quantity can only be acquired for gas equipment by a place such as a bank and the like by a value-stored card, so that the operation is inconvenient and the like.
According to an embodiment of the present invention, there is provided a gas amount acquisition method including: the method comprises the steps that a terminal receives a trigger signal sent by gas equipment under the condition that the gas equipment detects that the current residual gas quantity meets a preset condition, wherein the trigger signal is at least used for indicating that the current residual gas quantity meets the preset condition; and the terminal responds to the trigger signal and acquires a target gas quantity so as to increase the current residual gas quantity of the gas equipment to the sum of the current residual gas quantity and the target gas quantity.
In an exemplary embodiment, the acquiring, by the terminal, the target gas amount in response to the trigger signal includes: acquiring a numerical value corresponding to the target gas quantity through a client of the terminal, and executing a first event identification of a target event for the numerical value corresponding to the target gas quantity; sending the numerical value corresponding to the target gas quantity and the first event identification to a gas platform; and receiving confirmation information fed back by the gas platform, wherein the confirmation information is used for indicating whether the target gas quantity is successfully obtained.
In an exemplary embodiment, receiving confirmation information of the gas platform feedback comprises:
receiving confirmation information fed back after the gas platform verifies the first event identifier, wherein the confirmation information sent by the gas platform is used for indicating that the target gas amount is successfully obtained under the condition that the gas platform verifies the first event identifier, and the confirmation information sent by the gas platform is used for indicating that the target gas amount is failed to be obtained under the condition that the gas platform does not verify the first event identifier.
In an exemplary embodiment, the acquiring, by the terminal, the target gas amount in response to the trigger signal includes: acquiring a target resource corresponding to the target gas quantity through a client of the terminal, and executing a second event identifier of a target event for the target resource; sending the target resource corresponding to the target gas quantity and the second event identifier to a gas platform; and receiving confirmation information fed back by the gas platform, wherein the confirmation information is used for indicating whether the target gas quantity is successfully obtained.
In an exemplary embodiment, receiving confirmation information of the gas platform feedback comprises: receiving confirmation information fed back after the second event identifier is verified by the gas platform, wherein the confirmation information sent by the gas platform is used for indicating that the target gas amount is successfully obtained under the condition that the second event identifier is verified by the gas platform, and the confirmation information sent by the gas platform is used for indicating that the target gas amount is failed to be obtained under the condition that the second event identifier is not verified by the gas platform.
In an exemplary embodiment, the terminal obtains a target gas amount in response to the trigger signal, so that the current remaining gas amount of the gas appliance is increased to be later than the sum of the current remaining gas amount and the target gas amount, and the method further includes: the terminal synchronizes the notification information that the target gas amount has been successfully acquired to at least one of: the client side on the terminal and the target object corresponding to the terminal.
In an exemplary embodiment, the gas appliance detects that the current remaining gas amount satisfies a preset condition, and the preset condition includes at least one of the following: the current residual gas quantity is lower than a first preset value, and the difference value between the current residual gas quantity and the initial gas quantity is higher than a second preset value.
According to another embodiment of the present invention, there is provided a gas amount acquisition apparatus including: the receiving module is used for receiving a trigger signal sent by the gas equipment under the condition that the gas equipment detects that the current residual gas amount meets a preset condition, wherein the trigger signal is at least used for indicating that the current residual gas amount meets the preset condition; and the processing module is used for executing the terminal to respond to the trigger signal and acquiring the target gas quantity so as to increase the current residual gas quantity of the gas equipment to the sum of the current residual gas quantity and the target gas quantity.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, under the condition that the gas equipment detects that the current residual gas quantity meets the preset condition, the terminal receives the trigger signal sent by the gas equipment, wherein the trigger signal is at least used for indicating that the current residual gas quantity meets the preset condition; the terminal responds to the trigger signal, acquires the target gas quantity, so that the current residual gas quantity of the gas equipment is increased to the sum of the current residual gas quantity and the target gas quantity, namely the trigger signal of the gas equipment is responded through the terminal, the target gas quantity is acquired, and the gas quantity in the gas equipment is supplemented.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a terminal of a gas amount acquisition method according to an embodiment of the present invention;
fig. 2 is a flowchart of a gas amount acquisition method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart (one) of the terminal responding to the trigger signal and obtaining the target gas amount according to the alternative embodiment of the invention;
FIG. 4 is a schematic flow chart of the terminal responding to the trigger signal and obtaining the target gas amount according to the alternative embodiment of the invention (II);
fig. 5 is a block diagram showing a configuration of a gas amount acquisition device according to an embodiment of the present invention;
FIG. 6 is a schematic diagram (one) of a gas quantity acquisition process according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a gas appliance according to an embodiment of the present invention;
fig. 8 is a schematic diagram (two) of a gas amount acquisition process according to an embodiment of the present invention;
fig. 9 is a schematic diagram (iii) of a gas amount acquisition process according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a terminal or a similar operation device. Taking the operation on the terminal as an example, fig. 1 is a hardware structure block diagram of the terminal of the gas quantity acquisition method according to the embodiment of the present invention. As shown in fig. 1, the terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the terminal. For example, the terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the gas quantity acquiring method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, a method for acquiring a gas amount is provided, which is applied to the terminal described above, and fig. 2 is a flowchart of a method for acquiring a gas amount according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, a terminal receives a trigger signal sent by gas equipment under the condition that the gas equipment detects that the current residual gas quantity meets a preset condition, wherein the trigger signal is at least used for indicating that the current residual gas quantity meets the preset condition;
and step S204, the terminal responds to the trigger signal and acquires a target gas quantity so as to increase the current residual gas quantity of the gas equipment to the sum of the current residual gas quantity and the target gas quantity.
Through the steps, under the condition that the current residual gas quantity of the gas equipment meets the preset condition, the trigger signal of the gas equipment is responded through the terminal, the target gas quantity is obtained, and the gas quantity in the gas equipment is supplemented.
There are various implementations of the step S204, in an alternative embodiment, fig. 3 is a schematic flow chart (a) of the terminal responding to the trigger signal and acquiring the target gas quantity according to the alternative embodiment of the present invention, as shown in fig. 3, including the following steps:
step S302: acquiring a numerical value corresponding to the target gas quantity through a client of the terminal, and executing a first event identification of a target event for the numerical value corresponding to the target gas quantity;
step S304: sending the numerical value corresponding to the target gas quantity and the first event identification to a gas platform;
step S306: and receiving confirmation information fed back by the gas platform, wherein the confirmation information is used for indicating whether the target gas quantity is successfully obtained.
In short, a client of the terminal acquires a numerical value of a target gas quantity, and acquires a numerical value corresponding to the target gas quantity to execute a first event identifier of a target event; and sending the value corresponding to the target gas quantity and the first event identifier to a gas platform, and receiving feedback confirmation information of the gas platform to determine whether the target gas quantity is successfully obtained, optionally, the target event is the value of the target gas quantity to be obtained, the first event identifier is a display voucher indicating whether the recharging is successful, and optionally, the display voucher may include the recharged amount of money, the value of the target gas quantity and the like.
For example, a value of a target gas amount to be acquired may be input on a client display interface of the terminal, or an input value may be selected from a plurality of selectable items, and then the value of the target gas amount is purchased to obtain a display voucher, where the display voucher may be used to represent that the target gas amount has been purchased successfully, and then the value of the target gas amount and the display voucher are sent to a gas platform, and the gas platform determines whether the target gas amount is acquired successfully.
Optionally, in order to make the acquisition process of the gas amount safer, the above process of receiving the confirmation information fed back by the gas platform may be implemented by the following technical solutions:
receiving confirmation information fed back after the gas platform verifies the first event identifier, wherein the confirmation information sent by the gas platform is used for indicating that the target gas amount is successfully obtained under the condition that the gas platform verifies the first event identifier, and the confirmation information sent by the gas platform is used for indicating that the target gas amount is failed to be obtained under the condition that the gas platform does not verify the first event identifier.
That is, by setting a first event identifier, when the first event identifier is verified, the gas platform indicates that the target gas amount is successfully obtained through the transmitted confirmation information; when the first event identifier is not verified by the gas platform, the confirmation information sent by the gas platform is used for indicating that the target gas amount acquisition fails, and it can be understood that the gas platform can verify the authenticity of the first event identifier.
For example, when the received first event identifier (for example, the display voucher introduced in the above embodiment) confirms that the recharging is successful, and the value of the gas amount in the display voucher is the same as the value of the target gas amount, the gas platform feeds back confirmation information of successful recharging (equivalent to successful acquisition of the target gas amount) to the client of the terminal; when the first event identifier (for example, the display voucher described in the above embodiment) confirms that the recharging is unsuccessful, and/or the value of the gas amount in the display voucher is not the same as the value of the target gas amount, the gas platform feeds back confirmation information of the failure of the recharging (equivalent to the failure of obtaining the target gas amount) to the client of the terminal.
In an exemplary embodiment, fig. 4 is a schematic flowchart (ii) of a process of the terminal responding to the trigger signal and acquiring the target gas amount according to an alternative embodiment of the present invention, and as shown in fig. 4, the process of the terminal responding to the trigger signal and acquiring the target gas amount includes the following steps:
step S402: acquiring a target resource corresponding to the target gas quantity through a client of the terminal, and executing a second event identifier of a target event for the target resource;
step S404: sending the target resource corresponding to the target gas quantity and the second event identifier to a gas platform;
step S406: and receiving confirmation information fed back by the gas platform, wherein the confirmation information is used for indicating whether the target gas quantity is successfully obtained.
That is to say, a client of the terminal acquires a target resource of a target gas quantity, and acquires a second event identifier of a target resource execution target event corresponding to the target gas quantity; and sending the target resource corresponding to the target gas quantity and the second event identifier to a gas platform, and receiving feedback confirmation information of the gas platform to determine whether the target gas quantity is successfully obtained.
For example, a target resource corresponding to a target gas amount to be acquired may be input through a display interface of a client of the terminal, where the target resource may be money corresponding to the target gas amount, may be a score corresponding to the target gas amount, and may also be a coupon corresponding to the target gas amount, and the like, which may be used to exchange the target gas amount.
Receiving confirmation information fed back by the gas platform, including: receiving confirmation information fed back after the second event identifier is verified by the gas platform, wherein the confirmation information sent by the gas platform is used for indicating that the target gas amount is successfully obtained under the condition that the second event identifier is verified by the gas platform, and the confirmation information sent by the gas platform is used for indicating that the target gas amount is failed to be obtained under the condition that the second event identifier is not verified by the gas platform.
That is, by setting a second event identifier, when the second event identifier is verified, the gas platform indicates that the target gas amount is successfully obtained through the transmitted confirmation information; when the second event identifier is not verified by the gas platform, the confirmation information sent by the gas platform is used for indicating that the target gas amount acquisition fails, and it can be understood that the gas platform can verify the authenticity of the second event identifier.
For example, when the received second event identifier (for example, the display voucher described in the above embodiment) confirms that the recharging is successful, and the amount of the gas amount in the display voucher is the same as the target resource of the target gas amount, the gas platform feeds back confirmation information of successful recharging (which is equivalent to successful acquisition of the target gas amount) to the client of the terminal; when the second event identifier (for example, the display voucher described in the above embodiment) confirms that the recharging is unsuccessful, and/or the amount of the gas amount in the display voucher is not the same as the target resource of the target gas amount, the gas platform feeds back confirmation information of the recharging failure (which is equivalent to the target gas amount acquisition failure) to the client of the terminal.
After the terminal responds to the trigger signal and obtains the target gas quantity so as to increase the current residual gas quantity of the gas equipment to the sum of the current residual gas quantity and the target gas quantity, the method further comprises the following steps: the terminal synchronizes the notification information that the target gas amount has been successfully acquired to at least one of: the client side on the terminal and the target object corresponding to the terminal.
That is to say, the notification information that the target gas amount is successfully acquired is synchronized to the client on the terminal or the target object corresponding to the terminal, so that multiple ways for acquiring the notification information are provided for the target object.
In the embodiment of the invention, after a user (equivalent to a target object) receives a prompt of insufficient gas at a client of a mobile phone (equivalent to a terminal), 100 cubic meters of gas is obtained by inputting a value of 100 cubic meters through the client of the mobile phone (equivalent to the client of the terminal), or a gas device receives a gas demand (equivalent to a target event) paid for 50 yuan of RMB (equivalent to a first event identifier) and one cubic meter through the client of the mobile phone (equivalent to the client of the terminal), after a certificate of whether the gas platform pays for the current gas amount successfully passes verification, the gas end supplements gas (equivalent to increase the current residual gas amount of the gas device to the sum of the current residual gas amount and the target gas amount), and transmits information that the gas supplementation succeeds (equivalent to notification information that the target gas amount has been successfully obtained) to the client of the mobile phone (equivalent to the client of the terminal) or to the mobile phone of the user Short message or mailbox (corresponding to the target object corresponding to the terminal).
The gas appliance in the step S202 detects that the current remaining gas amount satisfies a preset condition, and includes at least one of the following: the current residual gas quantity is lower than a first preset value, and the difference value between the current residual gas quantity and the initial gas quantity is higher than a second preset value.
That is to say, whether the current remaining gas amount is lower than a first preset value or not is detected to judge whether the gas is insufficient to be used or not, or a staged gas usage amount is obtained through a difference value between the current remaining amount and the initial gas amount, when the difference value is higher than a second preset value, the gas usage amount is indicated to be excessive, and the two situations can be understood that the current remaining gas amount meets a preset condition.
In order to better understand the above embodiments, in an alternative embodiment of the present invention, fig. 7 is a schematic structural diagram of a gas appliance provided in an embodiment of the present invention, as shown in fig. 7, the gas appliance includes a communication module and a gas module, and a trigger condition (corresponding to a first preset value) is set at any one of a client of a terminal, the communication module and the gas module, and includes:
1) setting a triggering condition that the residual gas quantity (equivalent to the current residual gas quantity) is lower than 10 (equivalent to a first preset value) at a client of the terminal;
2) the mobile phone end synchronizes the information (equivalent to a first preset value) to the gas equipment, and the equipment synchronizes the information to the gas module;
3) triggering a flow (corresponding to the gas amount acquisition method provided in the above embodiment) when the remaining amount is less than 10; or
1) A user manually sets a trigger condition that the residual gas quantity is less than 10 at the gas equipment end;
2) the gas equipment synchronizes the information to the gas module, and then the delay equipment synchronizes the information to the mobile phone;
3) triggering the flow when the residual quantity is lower than 10;
or
1) A user manually sets a trigger condition that the residual gas quantity is less than 10 in a gas module;
2) the gas module synchronizes the information to the equipment, and then the equipment synchronizes the information to the mobile phone;
3) when the remaining amount is less than 10, the flow is triggered.
It should be noted that the first preset value 10 in the three setting processes may also be other selectable numbers, which is not limited in the embodiment of the present invention.
In another optional embodiment, when the usage amount of gas is 100, the mobile phone end, or the gas device, or the gas module built in the gas device sets that the set usage amount of gas is 100 as the trigger condition, and synchronizes the set usage amount of gas 100 to the mobile phone end, the gas device, and the gas module built in the gas device, so that the usage amount of gas 100 is used as the trigger condition by the mobile phone end, the gas device, and the gas module.
Fig. 6 is a schematic diagram (one) of a gas quantity obtaining process according to an embodiment of the invention, as shown in fig. 6:
step S602, signal triggering, the process including: firstly, gas detection equipment (equivalent to the gas equipment of the embodiment) detects the current residual gas quantity, sends a residual quantity shortage signal when the current residual gas quantity meets a preset condition and transmits the residual quantity shortage signal to a terminal through a communication module of the gas detection equipment, and the terminal responds to the trigger signal, sets a target gas quantity and generates a first event identifier.
In step S604, an event is executed, and the process includes: and the gas platform receives the target gas quantity and the first target event identification, verifies the first target event identification, executes a target event after the verification is passed, and updates data (which is equivalent to increasing the current residual gas quantity of the gas equipment to the sum of the current residual gas quantity and the target gas quantity).
Step S604, information feedback, the process includes: and after verifying the first target event identifier, the gas platform sends the updated data and/or verification result to the terminal.
Fig. 8 is a schematic diagram (ii) of a gas quantity acquiring process according to an embodiment of the present invention, as shown in fig. 8, after a gas device terminal is turned on, a built-in gas module detects that a remaining quantity of gas (equivalent to a current remaining gas quantity) is less than 10, and then sends a remaining quantity shortage signal to the gas device, the gas device is transmitted to a mobile phone terminal (equivalent to a client of a terminal) through a communication module, the mobile phone terminal operates to acquire and issue acquisition information (equivalent to a target event) and an acquisition certificate (equivalent to a first/second target event identifier) to a stored value platform, the stored value platform returns the acquisition certificate to the mobile phone terminal after verification is completed, the mobile phone terminal sends the certificate to a device (equivalent to the gas device), the gas device sends the certificate to the (built-in gas) module, the built-in gas module updates data (equivalent to a sum of the current remaining gas quantity and the target quantity added to the gas device after verification is correct), and the updated data is sent to the (gas) equipment, and the gas equipment sends the updated data to the mobile phone (equivalent to a terminal).
Fig. 9 is a schematic diagram (three) of a gas quantity obtaining process according to an embodiment of the present invention, as shown in fig. 9, after an automatic ordering condition (equivalent to a preset condition) is satisfied, an automatic ordering (equivalent to a target event) is automatically issued, a gas company confirms an order, and a terminal receives an ordering success confirmation (equivalent to confirmation information fed back by a gas platform), pushes (a pushing manner may be short message or email push) a message to a user (equivalent to a target object), sends notification information to a user APP (equivalent to a client of the terminal) after the gas company confirms the order, then a built-in gas meter confirms an account (equivalent to verification of first/second event identifiers), and a gas device receives the notification information (equivalent to the confirmation information), and uploads the latest gas residual quantity to the APP (equivalent to the client of the device).
In summary, according to the optional embodiment of the invention, the terminal responds to the trigger signal of the gas equipment to obtain the target gas amount and supplement the gas amount in the gas equipment, so that the problem that the gas used by the existing gas equipment can only go to a bank for storing value by using a value storage card in the prior art can be solved, and the convenience of a gas obtaining mode is improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a gas quantity obtaining device is further provided, and the device is used for implementing the above embodiments and preferred embodiments, and the description of the device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram showing a configuration of an apparatus for acquiring an amount of gas according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes:
(1) the receiving module 52 is configured to receive a trigger signal sent by the gas equipment when the gas equipment detects that the current remaining gas amount meets a preset condition, where the trigger signal is at least used to indicate that the current remaining gas amount meets the preset condition;
(2) and the processing module 54 is configured to execute the terminal to respond to the trigger signal and obtain a target gas amount, so that the current remaining gas amount of the gas appliance is increased to the sum of the current remaining gas amount and the target gas amount.
Through the device, the target gas quantity is acquired by responding the trigger signal of the gas equipment at the terminal, and the gas quantity in the gas equipment is supplemented, so that the problems that in the prior art, the gas quantity can only be acquired for the gas equipment by adopting places such as a bank and a value card, and further the operation is inconvenient and the like can be solved. The card can only go to a bank for value storage without cost, and the convenience of a fuel gas acquisition mode is improved.
In an exemplary embodiment, the processing module is further configured to obtain, by a client of the terminal, a value corresponding to the target gas amount, and execute a first event identifier of a target event for the value corresponding to the target gas amount; sending the numerical value corresponding to the target gas quantity and the first event identification to a gas platform; and receiving confirmation information fed back by the gas platform, wherein the confirmation information is used for indicating whether the target gas quantity is successfully obtained.
In short, a client of the terminal acquires a numerical value of a target gas quantity, and acquires a numerical value corresponding to the target gas quantity to execute a first event identifier of a target event; and sending the value corresponding to the target gas quantity and the first event identifier to a gas platform, and receiving feedback confirmation information of the gas platform to determine whether the target gas quantity is successfully obtained, optionally, the target event is the value of the target gas quantity to be obtained, the first event identifier is a display voucher indicating whether the recharging is successful, and optionally, the display voucher may include the recharged amount of money, the value of the target gas quantity and the like.
For example, a value of a target gas amount to be acquired may be input on a client display interface of the terminal, or an input value may be selected from a plurality of selectable items, and then the value of the target gas amount is purchased to obtain a display voucher, where the display voucher may be used to represent that the target gas amount has been purchased successfully, and then the value of the target gas amount and the display voucher are sent to a gas platform, and the gas platform determines whether the target gas amount is acquired successfully.
In an exemplary embodiment, the processing module is further configured to receive confirmation information fed back by the gas platform after the verification of the first event identifier, where the confirmation information sent by the gas platform is used to indicate that the target gas amount is successfully obtained when the verification of the first event identifier by the gas platform passes, and the confirmation information sent by the gas platform is used to indicate that the target gas amount is failed to be obtained when the verification of the first event identifier by the gas platform fails.
That is, by setting a first event identifier, when the first event identifier is verified, the gas platform indicates that the target gas amount is successfully obtained through the transmitted confirmation information; when the first event identifier is not verified by the gas platform, the confirmation information sent by the gas platform is used for indicating that the target gas amount acquisition fails, and it can be understood that the gas platform can verify the authenticity of the first event identifier.
For example, when the received first event identifier (for example, the display voucher introduced in the above embodiment) confirms that the recharging is successful, and the value of the gas amount in the display voucher is the same as the value of the target gas amount, the gas platform feeds back confirmation information of successful recharging (equivalent to successful acquisition of the target gas amount) to the client of the terminal; when the first event identifier (for example, the display voucher described in the above embodiment) confirms that the recharging is unsuccessful, and/or the value of the gas amount in the display voucher is not the same as the value of the target gas amount, the gas platform feeds back confirmation information of the failure of the recharging (equivalent to the failure of obtaining the target gas amount) to the client of the terminal.
In an exemplary embodiment, the processing module is further configured to obtain, by a client of the terminal, a target resource corresponding to the target gas quantity, and execute a second event identifier of a target event for the target resource; sending the target resource corresponding to the target gas quantity and the second event identifier to a gas platform; and receiving confirmation information fed back by the gas platform, wherein the confirmation information is used for indicating whether the target gas quantity is successfully obtained.
For example, a target resource corresponding to a target gas amount to be acquired may be input through a display interface of a client of the terminal, where the target resource may be money corresponding to the target gas amount, may be a score corresponding to the target gas amount, and may also be a coupon corresponding to the target gas amount, and the like, which may be used to exchange the target gas amount.
In an exemplary embodiment, the processing module is further configured to receive confirmation information fed back by the gas platform after the verification of the second event identifier, where the confirmation information sent by the gas platform is used to indicate that the target gas amount is successfully obtained when the verification of the second event identifier by the gas platform passes, and the confirmation information sent by the gas platform is used to indicate that the target gas amount is failed to be obtained when the verification of the second event identifier by the gas platform fails.
That is, by setting a second event identifier, when the second event identifier is verified, the gas platform indicates that the target gas amount is successfully obtained through the transmitted confirmation information; when the second event identifier is not verified by the gas platform, the confirmation information sent by the gas platform is used for indicating that the target gas amount acquisition fails, and it can be understood that the gas platform can verify the authenticity of the second event identifier.
For example, when the received second event identifier (for example, the display voucher described in the above embodiment) confirms that the recharging is successful, and the amount of the gas amount in the display voucher is the same as the target resource of the target gas amount, the gas platform feeds back confirmation information of successful recharging (which is equivalent to successful acquisition of the target gas amount) to the client of the terminal; when the second event identifier (for example, the display voucher described in the above embodiment) confirms that the recharging is unsuccessful, and/or the amount of the gas amount in the display voucher is not the same as the target resource of the target gas amount, the gas platform feeds back confirmation information of the recharging failure (which is equivalent to the target gas amount acquisition failure) to the client of the terminal.
In an exemplary embodiment, the processing module is further configured to synchronize the notification that the target gas amount has been successfully obtained to at least one of: the client side on the terminal and the target object corresponding to the terminal.
That is to say, the notification information that the target gas amount is successfully acquired is synchronized to the client on the terminal or the target object corresponding to the terminal, so as to avoid the terminal from being unaware of the operation process.
In one exemplary embodiment, the current remaining gas amount satisfies a preset condition, including at least one of: the current residual gas quantity is lower than a first preset value, and the difference value between the current residual gas quantity and the initial gas quantity is higher than a second preset value.
That is to say, whether the current remaining gas quantity is lower than a first preset value or not is detected to judge whether the gas is insufficient to be used or not, or the staged gas use quantity is obtained through the difference value of the current remaining quantity and the initial gas quantity, and when the difference value is higher than a second preset value, the gas use excess quantity is indicated.
In the embodiment of the invention, after a user (equivalent to a target object) receives a prompt of insufficient gas at a client of a mobile phone (equivalent to a terminal), 100 cubic meters of gas is obtained by inputting a value of 100 cubic meters through the client of the mobile phone (equivalent to the client of the terminal), or a gas device receives a gas demand (equivalent to a target event) paid for 50 yuan of RMB (equivalent to a first event identifier) and one cubic meter through the client of the mobile phone (equivalent to the client of the terminal), after a certificate of whether the gas platform pays for the current gas amount successfully passes verification, the gas end supplements gas (equivalent to increase the current residual gas amount of the gas device to the sum of the current residual gas amount and the target gas amount), and transmits information that the gas supplementation succeeds (equivalent to notification information that the target gas amount has been successfully obtained) to the client of the mobile phone (equivalent to the client of the terminal) or to the mobile phone of the user Short message or mailbox (corresponding to the target object corresponding to the terminal).
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
In an exemplary embodiment, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving a trigger signal sent by the gas equipment by a terminal under the condition that the gas equipment detects that the current residual gas quantity meets a preset condition, wherein the trigger signal is at least used for indicating that the current residual gas quantity meets the preset condition;
and S2, the terminal responds to the trigger signal and obtains a target gas quantity so as to increase the current residual gas quantity of the gas equipment to the sum of the current residual gas quantity and the target gas quantity. In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, in the present embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving a trigger signal sent by the gas equipment by a terminal under the condition that the gas equipment detects that the current residual gas quantity meets a preset condition, wherein the trigger signal is at least used for indicating that the current residual gas quantity meets the preset condition;
and S2, the terminal responds to the trigger signal and obtains a target gas quantity so as to increase the current residual gas quantity of the gas equipment to the sum of the current residual gas quantity and the target gas quantity. In an exemplary embodiment, for specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation manners, and details of this embodiment are not described herein again.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, which may be centralized on a single computing device or distributed across a network of computing devices, and in one exemplary embodiment may be implemented using program code executable by a computing device, such that the steps shown and described may be executed by a computing device stored in a memory device and, in some cases, executed in a sequence different from that shown and described herein, or separately fabricated into individual integrated circuit modules, or multiple ones of them fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of acquiring a gas amount, characterized by comprising:
the method comprises the steps that a terminal receives a trigger signal sent by gas equipment under the condition that the gas equipment detects that the current residual gas quantity meets a preset condition, wherein the trigger signal is at least used for indicating that the current residual gas quantity meets the preset condition;
and the terminal responds to the trigger signal and acquires a target gas quantity so as to increase the current residual gas quantity of the gas equipment to the sum of the current residual gas quantity and the target gas quantity.
2. The method of claim 1, wherein the terminal acquires the target gas amount in response to the trigger signal, and comprises:
acquiring a numerical value corresponding to the target gas quantity through a client of the terminal, and executing a first event identification of a target event for the numerical value corresponding to the target gas quantity;
sending the numerical value corresponding to the target gas quantity and the first event identification to a gas platform;
and receiving confirmation information fed back by the gas platform, wherein the confirmation information is used for indicating whether the target gas quantity is successfully obtained.
3. The method of claim 2, wherein receiving confirmation of the gas platform feedback comprises:
receiving confirmation information fed back after the gas platform verifies the first event identifier, wherein the confirmation information sent by the gas platform is used for indicating that the target gas amount is successfully obtained under the condition that the gas platform verifies the first event identifier, and the confirmation information sent by the gas platform is used for indicating that the target gas amount is failed to be obtained under the condition that the gas platform does not verify the first event identifier.
4. The method of claim 1, wherein the terminal acquires the target gas amount in response to the trigger signal, and comprises:
acquiring a target resource corresponding to the target gas quantity through a client of the terminal, and executing a second event identifier of a target event for the target resource;
sending the target resource corresponding to the target gas quantity and the second event identifier to a gas platform;
and receiving confirmation information fed back by the gas platform, wherein the confirmation information is used for indicating whether the target gas quantity is successfully obtained.
5. The method of claim 4, wherein receiving confirmation of the gas platform feedback comprises:
receiving confirmation information fed back after the second event identifier is verified by the gas platform, wherein the confirmation information sent by the gas platform is used for indicating that the target gas amount is successfully obtained under the condition that the second event identifier is verified by the gas platform, and the confirmation information sent by the gas platform is used for indicating that the target gas amount is failed to be obtained under the condition that the second event identifier is not verified by the gas platform.
6. The method according to claim 1, wherein the terminal acquires a target gas amount in response to the trigger signal so that the current remaining gas amount of the gas appliance is increased to be after the sum of the current remaining gas amount and the target gas amount, the method further comprising:
the terminal synchronizes the notification information that the target gas amount has been successfully acquired to at least one of: the client side on the terminal and the target object corresponding to the terminal.
7. The method according to claim 1, wherein the gas appliance detects that the current remaining gas amount satisfies a preset condition, including at least one of: the current residual gas quantity is lower than a first preset value, and the difference value between the current residual gas quantity and the initial gas quantity is higher than a second preset value.
8. An acquisition device of gas volume is applied to the terminal, its characterized in that includes:
the receiving module is used for receiving a trigger signal sent by the gas equipment under the condition that the gas equipment detects that the current residual gas amount meets a preset condition, wherein the trigger signal is at least used for indicating that the current residual gas amount meets the preset condition;
and the processing module is used for responding to the trigger signal and acquiring a target gas quantity so as to increase the current residual gas quantity of the gas equipment to the sum of the current residual gas quantity and the target gas quantity.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN202010784850.0A 2020-08-06 2020-08-06 Method and device for acquiring gas quantity, storage medium and electronic device Pending CN111986387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010784850.0A CN111986387A (en) 2020-08-06 2020-08-06 Method and device for acquiring gas quantity, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010784850.0A CN111986387A (en) 2020-08-06 2020-08-06 Method and device for acquiring gas quantity, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN111986387A true CN111986387A (en) 2020-11-24

Family

ID=73445331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010784850.0A Pending CN111986387A (en) 2020-08-06 2020-08-06 Method and device for acquiring gas quantity, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111986387A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117592770A (en) * 2024-01-19 2024-02-23 成都秦川物联网科技股份有限公司 Intelligent gas industry and commercial tenant flowmeter regulation and control method, internet of things system and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014164338A (en) * 2013-02-21 2014-09-08 Tokyo Gas Co Ltd Charge settlement meter, communication terminal, control program thereof, control method thereof, and charge settlement meter system
CN104866910A (en) * 2015-06-08 2015-08-26 刘国栋 APP online refueling method
CN106022176A (en) * 2016-05-11 2016-10-12 新智数字科技有限公司 Card recharging method, terminal, intelligent card, and card recharging system
CN107491962A (en) * 2017-09-26 2017-12-19 上海爱浚可环保科技有限公司 It is a kind of based on terminal device without network recharge method and device
CN108197921A (en) * 2018-01-11 2018-06-22 青岛海尔智能家电科技有限公司 The method and gas meter, flow meter supplemented with money for gas meter, flow meter, terminal, server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014164338A (en) * 2013-02-21 2014-09-08 Tokyo Gas Co Ltd Charge settlement meter, communication terminal, control program thereof, control method thereof, and charge settlement meter system
CN104866910A (en) * 2015-06-08 2015-08-26 刘国栋 APP online refueling method
CN106022176A (en) * 2016-05-11 2016-10-12 新智数字科技有限公司 Card recharging method, terminal, intelligent card, and card recharging system
CN107491962A (en) * 2017-09-26 2017-12-19 上海爱浚可环保科技有限公司 It is a kind of based on terminal device without network recharge method and device
CN108197921A (en) * 2018-01-11 2018-06-22 青岛海尔智能家电科技有限公司 The method and gas meter, flow meter supplemented with money for gas meter, flow meter, terminal, server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117592770A (en) * 2024-01-19 2024-02-23 成都秦川物联网科技股份有限公司 Intelligent gas industry and commercial tenant flowmeter regulation and control method, internet of things system and medium
CN117592770B (en) * 2024-01-19 2024-04-12 成都秦川物联网科技股份有限公司 Intelligent gas industry and commercial tenant flowmeter regulation and control method, internet of things system and medium

Similar Documents

Publication Publication Date Title
CN105933888B (en) A kind of eSIM card method for burn-recording and device based on NFC
CN103491270B (en) There is the billing system of the wireless device transaction event data of certification
CN104753894A (en) Data processing method, device and system
CN108848163A (en) The upgrade method and TWS earphone of TWS earphone
CN103826155A (en) Multi-screen interaction method, server, terminal and system
CN101917706A (en) Processing method and device for upgrading FOTA (Firmware Over the Air)
CN104616142B (en) Data transfer method, server, mobile terminal and system
CN106464519A (en) Adapter and adapter upgrade method
CN108649635A (en) The acquisition methods and system of battery information
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN106469077A (en) A kind of OTA upgrade control method and device
CN111986387A (en) Method and device for acquiring gas quantity, storage medium and electronic device
CN104951256A (en) Printing method, printer and server
CN112734415B (en) Digital money collection method, terminal, device and computer readable storage medium
CN101800985B (en) Authentication method and system, terminal, server and data downloading method and device
CN104462934A (en) Information processing method and electronic equipment
CN114125052A (en) Target operation execution method and device, storage medium and electronic device
CN108038643A (en) Intelligent goods dispatch management method and system
CN102098329A (en) Soya-bean milk machine and remote control method thereof
CN106303124B (en) A kind of method of recharging for mobile phone, apparatus and system
KR102072176B1 (en) Service providing device for transferring push/target message, push/target message transfer system comprising the same, control method thereof and computer readable medium having computer program recorded therefor
CN111726411B (en) Equipment binding method, device, system, storage medium and electronic device
CN109963260A (en) A kind of method and device that determining business terminates
CN113485735A (en) Equipment upgrading method and device, storage medium and electronic device
JP3879333B2 (en) DATA TRANSMISSION SYSTEM HAVING ROUTE INFORMATION DISTRIBUTION FUNCTION, TERMINAL RADIO UNIT, AND ROUTE INFORMATION DISTRIBUTION METHOD

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201124

RJ01 Rejection of invention patent application after publication