A method for collecting data and generating flow from liquid crystal screen of fuel dispenser
Through the embedded data acquisition equipment, data collection and processing of the gas machine LCD screen is generated, and transaction flow numbers are transmitted to the network through the serial port, which solves the problems of inefficient information processing and difficulty in updating and maintaining in the information management of gas stations, and achieves high efficiency data collection and processing reduces work error rate and maintenance costs.
Patent Information
- Application Number
- CN201910936248.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-29
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2039-09-29
AI Technical Summary
The existing gas station information management technology has problems such as inefficient information processing and difficulty in updating and maintaining, especially the data connection lines of traditional manual records and traditional gas station management systems are buried underground, resulting in difficulties in updating and maintaining.
The embedded data acquisition device is used to collect the data of the refueling machine LCD screen. By judging the start and end of the data signal, decode and convert it into a recognizable number, generate a transaction flow number, and transmit it to the network through the serial port to realize the data. real-time collection and processing.
It improves information processing efficiency, simplifies business operations, reduces work error rates, avoids losses caused by human factors, and makes updates and maintenance more convenient and flexible.
Smart Images

Figure CN110865567B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a refueling data processing technology, and in particular to a method for collecting and generating data from a liquid crystal screen of a refueling machine. Background Art
[0002] With the development of society, cars have become people's daily means of transportation, and refueling cars has become an indispensable part. Therefore, the gas station industry maintains the lifeline of the national economy. In order to compete for this position in the increasingly open market environment, it is necessary not only to have advanced management level but also to provide fast and high-quality services. A gas station with an advanced information management platform not only indicates the advanced management level of the petrochemical industry but also effectively guarantees the service of the station. Therefore, the collection of real-time information of gas stations has become an important means to master the purchase, sales and storage of refined oil. In the prior art, the information management of gas stations mainly adopts two methods:
[0003] 1. Traditional manual recording: Information management is done by employees manually recording when they complete a transaction.
[0004] 2. By building a line connection between the traditional gas station management system and the refueling equipment, the management system relies on the physical link with the refueling machine to transmit information.
[0005] These two types of technical solutions have the following defects:
[0006] 1. The traditional manual recording method increases the labor intensity of staff, the information processing efficiency is low, and the accuracy of the data cannot be guaranteed.
[0007] 2. When using the traditional gas station information management system, the data connection lines are pre-buried underground when the site is built, making it difficult to update and maintain.
[0008] For example, "A data collection device for a gas station", with publication number CN207799719U and publication date August 31, 2018, includes a host, a card slot, a card, a cable A, a data collector, a connector, a power cord, a cable B and a gas station. A groove A is provided on the outer surface of the host, the card slot is fixedly installed in the groove A, the card is movably arranged in the card slot, one side of the host is connected to one end of the cable A, one side of the data collector is provided with a small hole A and a small hole B, the connector is fixedly installed in the small hole A, the other end of the cable A is movably connected to the connector, the power cord is connected to the small hole B, the other end of the data collector is connected to one end of the cable B, and the other end of the cable B is connected to one side of the gas station. This technical solution requires the deployment of cables underground, which is difficult to update and maintain.
[0009] In summary, the existing technology needs to be further improved. Summary of the invention
[0010] The present invention mainly solves the shortcomings of low information processing efficiency and difficult updating and maintenance in the prior art, and provides a method for collecting data and generating flow of liquid crystal screen of a fuel dispenser. The present invention has the advantages of high information processing efficiency and convenient and flexible updating and maintenance.
[0011] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0012] A method for collecting data and generating transaction serial numbers on a liquid crystal display screen of a gas station comprises the following steps: completing data collection on a liquid crystal display screen of a gas station by means of an embedded data collection device; determining the start and end of a data signal in the collected data and completing reading of the data signal; decoding the data signal and converting it into a number displayed on a recognizable display screen; generating a transaction serial number; and packaging the converted data signal and transaction serial number information and transmitting them to a network via a serial port.
[0013] Preferably, the collected data also includes a chip select signal and a clock pulse signal; the method of determining the start and end of the data signal in the collected data and completing the reading of the data signal includes the following steps: determining the start and end of the data signal in the collected data: when the chip select signal read by the embedded data acquisition device is at a high level, the data signal is invalid. At this time, the data signal has not started to be input or has ended input, and the data is not read; when the chip select signal read by the embedded data acquisition device is at a low level, the data signal is valid. At this time, the data signal starts to be input, and the data signal is read bit by bit in sequence according to the clock pulse signal in the collected data until a complete frame of data signal is read.
[0014] Preferably, the decoding and converting of the data signal into numbers displayed on a recognizable display screen includes the following steps: analyzing and judging the data signal header, and when the data signal header is a command frame, not processing it; when the data signal header is a data frame, extracting the segment code data value therein; and converting the segment code data value into numbers displayed on a recognizable display screen through table lookup processing.
[0015] Preferably, the process of converting the segment code data value into a recognizable number displayed on the display screen through table lookup includes the following steps: obtaining the correspondence between the segment code table and the displayed number of the gas station LCD screen through an embedded data acquisition device; traversing and matching the collected segment code value information with the segment code table; if the match is successful, returning the information corresponding to the segment code value information in the segment code table; if the match fails, returning failure information.
[0016] Preferably, the data on the liquid crystal screen of the gas station includes amount data, number of liters data and unit price data.
[0017] Preferably, the generation of the transaction serial number includes the following steps: acquiring and converting the amount data, number of liters data and unit price data on the liquid crystal screen of the gas pump through an embedded data acquisition device; if the amount data, number of liters data and unit price data are all 0, returning to the previous step; if the number of liters data is greater than and / or equal to 1, the transaction serial number is increased once, and the converted amount data, unit price data and number of liters data are assigned to the transaction serial number.
[0018] Preferably, the process of packaging the converted data signal and transaction serial number information and transmitting them to the network through the serial port includes the following steps: packaging the converted data signal and transaction serial number information; sending the packaged data signal and transaction serial number information to the network module through the serial port; and the network module sending the packaged data signal and transaction serial number information to the terminal.
[0019] Preferably, the packaging of the converted data signal and transaction serial number information is packaging the converted data signal and transaction serial number into JSON format.
[0020] Preferably, the transaction serial number information also includes oil gun number information.
[0021] Preferably, the network module uses the MQTT protocol to send the packaged data signal and transaction serial number information to the terminal.
[0022] The present invention adopts the above technical solution and has the following beneficial effects:
[0023] 1. The present invention accesses the liquid crystal screen data interface of the fuel dispenser through an embedded data acquisition device, and does not require modification of the original equipment and lines, making update and maintenance convenient.
[0024] 2. The present invention can more conveniently count transaction information and distinguish transaction sources by adding transaction serial numbers and fuel gun numbers.
[0025] 3. Compared with the traditional manual recording method, the present invention simplifies business operations, improves work efficiency, reduces the error rate, and avoids serious losses to oil companies due to human factors. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0027] Figure 1It is a flow chart of the data collection and flow generation method of the liquid crystal screen of the fuel dispenser.
[0028] Figure 2 It is a flowchart of data decoding.
[0029] Figure 3 It is a flowchart of generating transaction serial number.
[0030] Figure 4 It is a flowchart of network data transmission. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical scheme and advantages of the present invention more clear, the present invention is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.
[0032] Embodiment 1:
[0033] Figure 1 It is a flow chart of the data collection and flow generation method of the liquid crystal screen of the fuel dispenser.
[0034] Figure 2 It is a flowchart of data decoding.
[0035] Figure 3 It is a flowchart of generating transaction serial number.
[0036] Figure 4 It is a flowchart of network data transmission.
[0037] like Figure 1 To solve the above problems, an embodiment of the present invention provides a method for collecting data and generating flow of liquid crystal screen of a fuel dispenser, comprising the following steps:
[0038] The data collection of the liquid crystal screen of the gas station is completed through the embedded data acquisition device; the start and end of the data signal in the collected data are determined and the data signal is read; the data signal is decoded and converted into a recognizable number displayed on the display screen; a transaction serial number is generated; the converted data signal and transaction serial number information are packaged and transmitted to the network through the serial port.
[0039] The collected data also includes a chip selection signal and a clock pulse signal; judging the start and end of a data signal in the collected data and completing the reading of the data signal includes the following steps:
[0040] When the chip select signal read by the embedded data acquisition device is at a high level, the data signal is invalid. At this time, the data signal has not started to be input or has ended input, and the data signal is not read; when the chip select signal read by the embedded data acquisition device is at a low level, the data signal is valid. At this time, the data signal starts to be input, and the data signal is read bit by bit in sequence according to the clock pulse signal in the data in the collected data until a complete frame of data signal is read.
[0041] In this embodiment, by judging the start and end of the data signal, the start and end of the transaction can be further judged, which facilitates the statistical collection of transaction information.
[0042] Further:
[0043] like Figure 2 As shown, decoding the data signal and converting it into a recognizable number displayed on the display screen includes the following steps:
[0044] The data signal header is analyzed and judged. When the data signal header is a command frame, no processing is performed; when the data signal header is a data frame, the segment code data value is extracted; through table lookup processing, the segment code data value is converted into a recognizable number displayed on the display screen: the correspondence between the segment code table and the displayed number of the gas station LCD screen is obtained through the embedded data acquisition device; the collected segment code value information is traversed and matched with the segment code table; if the match is successful, the information corresponding to the segment code value information in the segment code table is returned; if the match fails, the failure information is returned.
[0045] In this embodiment, after reading a complete frame of data signal, the header of the data signal is analyzed to determine whether it is a data frame or a command frame. When it is a command frame, the command corresponding to the message can be parsed according to the technical specifications. Because it does not protect specific display data, it does not need to be further processed. When it is a data frame, the segment code data table is extracted, and through table lookup processing, all segment code values can be converted into recognizable numbers displayed on the display screen.
[0046] Generally, the segment code table corresponds to a fixed LCD screen. For example, 0XBC, 0X7C, 0X00, 0X44, and 0XB7 correspond to 1, 2, 3, 4, and 5 respectively. When the segment code value is 0XBC, it matches 0XBC and returns the value 1. The query speed can meet actual needs.
[0047] In this embodiment, the data displayed on the liquid crystal screen of the gas station includes but is not limited to amount data, number of liters data and unit price data. Through data decoding, the display data such as amount data, number of liters data and unit price data can be obtained.
[0048] Further:
[0049] like Figure 3 As shown, generating a transaction serial number includes the following steps:
[0050] The amount data, number of liters data and unit price data on the liquid crystal display screen of the gas station are acquired and converted through the embedded data acquisition device; if the amount data, number of liters data and unit price data are all 0, return to the previous step; if the number of liters data is greater than and / or equal to 1, the transaction serial number is increased once, and the converted amount data, unit price data and number of liters data are assigned to the transaction serial number.
[0051] In this embodiment, the transaction serial number is counted using the following rules: when the amount data, liter data, and unit price data are all 0, it is determined that it starts counting from the initial value 0, and when it is determined that a complete transaction is completed, its value is increased. When the device is powered on, if the storage area for the amount data, liter data, and unit price data is not empty, the value stored in the storage area is directly assigned to the transaction serial number, ensuring that the transaction serial number can also achieve information data without loss after the device is abnormally powered off and restarted. The transaction serial number also includes the oil gun number, which can better count the source of the transaction.
[0052] Further:
[0053] like Figure 4 As shown, packaging the converted data signal and transaction serial number information and transmitting them to the network through the serial port includes the following steps:
[0054] The converted data signal and transaction serial number information are packaged into JSON format; the data signal and transaction serial number information packaged into JSON format are sent to the network module through the serial port; the network module uses the MQTT protocol to send the data signal and transaction serial number information packaged into JSON format to the terminal.
[0055] The JSON data format is a lightweight data exchange format. It is based on a subset of ECMAScript (JS specification developed by the European Computer Society) and uses a text format that is completely independent of the programming language to store and represent data, making it easy for the receiving end to parse and process it. The MQTT protocol is a client-server based message publishing / subscription transmission protocol. It can easily forward data to other systems in real time and is a mature network transmission method.
[0056] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0057] It should be noted that:
[0058] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0059] In addition, it should be noted that the shapes and names of the parts and components of the specific embodiments described in this specification may be different. Any equivalent or simple changes made based on the structure, features and principles described in the patent concept of the present invention are included in the protection scope of the patent of the present invention. The technicians in the technical field of the present invention can make various modifications or supplements to the specific embodiments described or replace them in a similar manner, as long as they do not deviate from the structure of the present invention or exceed the scope defined by the claims, they should all fall within the protection scope of the present invention.
Claims
1. A method for collecting data and generating flow from a liquid crystal screen of a fuel dispenser, characterized in that: The steps include: Complete data collection on the liquid crystal screen of the fuel dispenser through embedded data acquisition equipment; Determine the start and end of the data signal in the collected data and complete the reading of the data signal; Decode the data signal and convert it into identifiable numbers displayed on the display screen; Generate transaction serial number; Pack the converted data signal and transaction serial number information and transmit them to the network through the serial port; The collected data also includes a chip selection signal and a clock pulse signal; The step of determining the start and end of a data signal in the collected data and completing the reading of the data signal comprises the following steps: Determine the start and end of the data signal in the collected data: When the chip select signal read by the embedded data acquisition device is at a high level, the data signal is invalid. At this time, the data signal has not started to be input or has ended input, and the data signal is not read; when the chip select signal read by the embedded data acquisition device is at a low level, the data signal is valid. At this time, the data signal starts to be input, and the data signal is read bit by bit in sequence according to the clock pulse signal in the collected data until a complete frame of data signal is read; The data on the liquid crystal screen of the gas station includes amount data, liters data and unit price data; The generating of the transaction serial number comprises the following steps: Acquire and convert the amount data, liter data and unit price data on the liquid crystal screen of the gas station through the embedded data acquisition device; If the amount data, liters data and unit price data are all 0, return to the previous step; If the data of the number of liters is greater than and / or equal to 1, the transaction serial number will be increased once, and the converted amount data, unit price data and number of liters data will be assigned to the transaction serial number.
2. A method for collecting data and generating flow of liquid crystal screen of a fuel dispenser according to claim 1, characterized in that: The decoding process of the data signal and converting it into a recognizable number displayed on the display screen comprises the following steps: Analyze and judge the data signal header, and do not process it when the data signal header is a command frame; When the data signal header is a data frame, extracting the segment code data value therein; Through table lookup processing, the segment code data value is converted into a recognizable number displayed on the display screen.
3. A method for collecting data and generating flow of liquid crystal screen of a fuel dispenser according to claim 2, characterized in that: The process of converting the segment code data value into a recognizable number displayed on the display screen through table lookup includes the following steps: The corresponding relationship between the segment code table and the displayed numbers on the liquid crystal screen of the fuel dispenser is obtained through the embedded data acquisition device; Traverse and match the collected segment code value information with the segment code table; If the match is successful, the corresponding information of the segment code value in the segment code table is returned; If the match fails, a failure message is returned.
4. A method for collecting data and generating flow of liquid crystal screen of a fuel dispenser according to claim 1, characterized in that: The steps of packaging the converted data signal and transaction serial number information and transmitting them to the network via the serial port include: Pack the converted data signal and transaction serial number information; Send the packaged data signal and transaction serial number information to the network module through the serial port; The network module sends the packaged data signal and transaction serial number information to the terminal.
5. A method for collecting data and generating flow of liquid crystal screen of a fuel dispenser according to claim 4, characterized in that: The packaged converted data signal and transaction serial number information is packaged into JSON format.
6. A method for collecting data and generating flow of liquid crystal screen of a fuel dispenser according to claim 4, characterized in that: The transaction serial number information also includes oil gun number information.
7. A method for collecting data and generating flow of liquid crystal screen of a fuel dispenser according to claim 4, characterized in that: The network module uses the MQTT protocol to send the packaged data signal and transaction serial number information to the terminal.
Citation Information
Patent Citations
Tanker aircraft data acquisition device
CN207799719U
Oiling machine liquid crystal screen data acquisition device
CN211207120U
Cited By
Remote intelligent refueling management control method and system based on closed-loop control
CN122771317A
