CN110865567A - Oiling machine liquid crystal screen data acquisition and flow generation method - Google Patents

Oiling machine liquid crystal screen data acquisition and flow generation method Download PDF

Info

Publication number
CN110865567A
CN110865567A CN201910936248.1A CN201910936248A CN110865567A CN 110865567 A CN110865567 A CN 110865567A CN 201910936248 A CN201910936248 A CN 201910936248A CN 110865567 A CN110865567 A CN 110865567A
Authority
CN
China
Prior art keywords
data
data signal
liquid crystal
serial number
transaction serial
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
CN201910936248.1A
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.)
Zhejiang Gongshang University
Original Assignee
Zhejiang Gongshang University
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 Zhejiang Gongshang University filed Critical Zhejiang Gongshang University
Priority to CN201910936248.1A priority Critical patent/CN110865567A/en
Publication of CN110865567A publication Critical patent/CN110865567A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Loading And Unloading Of Fuel Tanks Or Ships (AREA)

Abstract

The invention discloses a method for acquiring liquid crystal display data and generating running water of an oiling machine, which comprises the following steps: data acquisition of a liquid crystal screen of the oiling machine is completed through embedded data acquisition equipment; judging the start and the end of a data signal in the acquired data and finishing reading the data signal; carrying out decoding processing on the data signals and converting the data signals into numbers displayed by an identifiable display screen; generating a transaction serial number; and packaging the converted data signals and the transaction serial number information and transmitting the data signals and the transaction serial number information to a network through a serial port. The invention has the advantages of high information processing efficiency and convenient and flexible updating and maintenance.

Description

Oiling machine liquid crystal screen data acquisition and flow generation method
Technical Field
The invention relates to a refueling data processing technology, in particular to a liquid crystal screen data acquisition and flow generation method for a refueling machine.
Background
With the development of society, automobiles become daily transportation tools of people, and the refueling of automobiles also becomes an indispensable part, so that the industry of gas stations maintains national economic fate, in order to compete for the place in the increasingly open large market environment, not only must have advanced management level, but also must provide quick and high-quality service, and a refueling station has an advanced information management platform which marks the advanced management level of the petrochemical industry and effectively ensures the service of the station, so that the acquisition of real-time information of the gas stations becomes an important means for mastering the advance, sale and storage of finished oil. In the prior art, the information management of a gas station mainly adopts two modes:
1. traditionally, manual records are made by employees at the end of a transaction.
2. By building a traditional service station management system in wired connection with the fueling equipment, the management system relies on the physical link with the fuel dispensers to transmit information.
The two technical schemes have the following defects:
1. the traditional manual recording mode increases the labor intensity of workers, the information processing efficiency is low, and the accuracy of data cannot be guaranteed.
2. When a traditional gas station information management system station is adopted to build a station, a data connecting line is pre-buried at a low position, and updating and maintenance are difficult.
For example, a data acquisition device of an oiling machine, which is disclosed as CN207799719U and published as 2018, 8 and 31.s.a technical scheme includes a host, a card slot, a card, a cable a, a data acquisition unit, a connector, a power line, a cable B and an oiling machine, wherein the surface of the outer side of the host is provided with a groove a, the card slot is fixedly arranged in the groove a, the card is movably arranged in the card slot, one side of the host is connected with one end of the cable a, one side of the data acquisition unit is provided with a small hole a and a small hole B, the connector is fixedly arranged in the small hole a, the other end of the cable a is movably connected with the connector, the power line is connected with the small hole B, the other end of the data acquisition unit is connected; the technical scheme needs to deploy cables underground, and is difficult to update and maintain.
In summary, further improvements to the prior art are needed.
Disclosure of Invention
The invention mainly solves the defects of low information processing efficiency and difficult updating and maintenance in the prior art, and provides a method for acquiring and generating the liquid crystal screen data of the oiling machine in a flow mode.
In order to solve the technical problems, the invention adopts the following technical scheme:
a method for acquiring liquid crystal display data and generating running water of an oiling machine comprises the following steps: data acquisition of a liquid crystal screen of the oiling machine is completed through embedded data acquisition equipment; judging the start and the end of a data signal in the acquired data and finishing reading the data signal; carrying out decoding processing on the data signals and converting the data signals into numbers displayed by an identifiable display screen; generating a transaction serial number; and packaging the converted data signals and the transaction serial number information and transmitting the data signals and the transaction serial number information to a network through a serial port.
Preferably, the collected data further comprises a chip selection signal and a clock pulse signal; the method for judging the start and the end of the data signal in the acquired data and finishing the reading of the data signal comprises the following steps: judging the start and the end of a data signal in the collected data: when the chip selection signal read by the embedded data acquisition equipment is at a high level, the data signal is invalid, and at the moment, the data signal does not start to be input or finishes being input, and the data is not read; when the chip selection signal read by the embedded data acquisition equipment is in a low level, the data signal is valid, at the moment, the data signal starts to be input, and the data signal is sequentially read according to the clock pulse signal in the acquired data in a bit mode until a frame of complete data signal is read.
Preferably, the decoding the data signal and converting the data signal into a recognizable number displayed on a display screen includes the following steps: analyzing and judging the data signal header, and not processing the data signal header when the data signal header is a command frame; when the data signal header is a data frame, extracting a segment code data value in the data signal header; and converting the segment code data value into a number displayed on an identifiable display screen through table look-up processing.
Preferably, the converting the segment code data value into a number displayed on a recognizable display screen through table look-up processing comprises the following steps: acquiring the corresponding relation between a segment code table of a liquid crystal screen of the oiling machine and display numbers through embedded data acquisition equipment; traversing and matching the acquired segment code value information with a segment code table; if the matching is successful, returning the information corresponding to the segment code value information in the segment code table; and if the matching fails, returning failure information.
Preferably, the data of the liquid crystal screen of the fuel dispenser comprises money amount data, liter number data and unit price data.
Preferably, the generating of the transaction serial number comprises the following steps: acquiring and converting money data, upgrade data and unit price data on a liquid crystal screen of the oiling machine through embedded data acquisition equipment; if the amount data, the upgrade data and the 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 money amount data, unit price data and number of liters data are assigned to the transaction serial number.
Preferably, the step of packaging the converted data signal and the transaction serial number information and transmitting the packaged data signal and the transaction serial number information to the network through the serial port comprises the following steps: packaging the converted data signal and the transaction serial number information; sending the packed data signal and the transaction serial number information to a network module through a serial port; and the network module sends the packed data signal and the transaction serial number information to the terminal.
Preferably, the converted data signal and the transaction serial number information are packaged into a JSON format.
Preferably, the transaction serial number information further comprises oil gun number information.
Preferably, the network module sends the packed data signal and the transaction serial number information to the terminal by adopting an MQTT protocol.
The invention adopts the technical scheme, and has the following beneficial effects:
1. the invention accesses the liquid crystal screen data interface of the oiling machine through the embedded data acquisition equipment, does not need to reform the original equipment and lines, and is convenient to update and maintain.
2. The invention can more conveniently count the transaction information and distinguish the transaction source by adding the transaction serial number and the oil gun number.
3. Compared with the traditional manual recording mode, the invention simplifies the business operation, improves the working efficiency, reduces the working error rate and avoids the serious loss of an oil company caused by human factors.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flow chart diagram of a method for acquiring data of a liquid crystal screen of an oiling machine and generating a flow.
Fig. 2 is a flow chart of data decoding.
Fig. 3 is a schematic flow chart of generating a transaction serial number.
Fig. 4 is a flow chart of data transmission in the network.
Detailed Description
To make the objects, aspects and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the following detailed description and the accompanying drawings, it being understood that the description is illustrative only and is not intended to limit the scope of the present invention. Moreover, in the following description, second speed for well-known structures and techniques are omitted to avoid unnecessarily obscuring the concepts of the present invention.
The first embodiment is as follows:
fig. 1 is a flow chart diagram of a method for acquiring data of a liquid crystal screen of an oiling machine and generating a flow.
Fig. 2 is a flow chart of data decoding.
Fig. 3 is a schematic flow chart of generating a transaction serial number.
Fig. 4 is a flow chart of data transmission in the network.
As shown in fig. 1, to solve the above problem, an embodiment of the present invention provides a method for acquiring liquid crystal display data and generating running water of an oiling machine, including the following steps:
data acquisition of a liquid crystal screen of the oiling machine is completed through embedded data acquisition equipment; judging the start and the end of a data signal in the acquired data and finishing reading the data signal; carrying out decoding processing on the data signals and converting the data signals into numbers displayed by an identifiable display screen; generating a transaction serial number; and packaging the converted data signals and the transaction serial number information and transmitting the data signals and the transaction serial number information to a network through a serial port.
The data acquisition device also comprises a chip selection signal and a clock pulse signal; the steps of judging the start and the end of the data signal in the collected data and finishing the reading of the data signal comprise the following steps:
when the chip selection signal read by the embedded data acquisition equipment is at a high level, the data signal is invalid, and at the moment, the data signal does not start to be input or is input after being input, and the data signal is not read; when the chip selection signal read by the embedded data acquisition equipment is at a low level, the data signal is valid, at the moment, the data signal starts to be input, and the data signal is sequentially read according to the clock pulse signal in the data in the acquired data in a bit-by-bit manner until a frame of complete data signal is read.
In this embodiment, the start and the end of the transaction can be further determined by determining the start and the end of the data signal, which facilitates the statistics of the transaction information.
Further:
as shown in fig. 2, decoding the data signal and converting the data signal into a recognizable number displayed on a display screen includes the following steps:
analyzing and judging the data signal header, and not processing the data signal header when the data signal header is a command frame; when the data signal header is a data frame, extracting a segment code data value in the data signal header; converting the segment code data value into a figure displayed by a recognizable display screen through table look-up processing: acquiring the corresponding relation between a segment code table of a liquid crystal screen of the oiling machine and display numbers through embedded data acquisition equipment; traversing and matching the acquired segment code value information with a segment code table; if the matching is successful, returning the information corresponding to the segment code value information in the segment code table; and if the matching fails, returning failure information.
In this embodiment, after a frame of complete data signal is read, the header of the data signal is analyzed to determine whether the data signal is a data frame or a command frame, and when the data signal is a command frame, a command corresponding to the message can be analyzed according to the technical specification, and since the specific display data is not protected, the command may not be further processed; when the data frame is a data frame, the segment code data table is extracted, and all the segment code values can be converted into the numbers displayed by the recognizable display screen through table look-up processing.
Generally, the segment code table is fixed to correspond to a liquid crystal 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, 0XBC is matched, at the moment, the value of 1 is returned, and the query speed can meet the actual requirement.
In this embodiment, the display data of the liquid crystal screen of the fuel dispenser includes, but is not limited to, money amount data, liter number data and unit price data, and the display data such as the money amount data, the liter number data and the unit price data can be obtained through data decoding.
Further:
as shown in fig. 3, generating a transaction serial number includes the following steps:
acquiring and converting money data, upgrade data and unit price data on a liquid crystal screen of the oiling machine through embedded data acquisition equipment; if the amount data, the upgrade data and the 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 money amount data, unit price data and number of liters data are assigned to the transaction serial number.
In this embodiment, the transaction serial number is counted by using the following rules: when the amount data, the number-increasing data and the unit price data are all 0, the counting is judged to be started from the initial value of 0, when a complete transaction is judged, the value of the data is increased, when the equipment is powered on, if the storage area for the amount data, the number-increasing data and the unit price data is not empty, the value in the storage area is directly assigned to the transaction serial number, and the information data can be prevented from being lost after the equipment is restarted due to abnormal power failure. The transaction serial number also includes the number of the gun, which can better account for the source of the transaction.
Further:
as shown in fig. 4, the step of packaging the converted data signal and the transaction serial number information and transmitting the packaged data signal and transaction serial number information to the network through the serial port includes the following steps:
packaging the converted data signal and the transaction serial number information into a JSON format; sending a data signal and transaction serial number information packaged into a JSON format to a network module through a serial port; and the network module transmits the data signal and the transaction serial number information packaged into the JSON format to the terminal by adopting an MQTT protocol.
The JSON data format is a lightweight data exchange format, which is based on a subset of ECMAScript (JS specification established by European computer Association), and adopts a text format completely independent of a programming language to store and represent data, so that a receiving end can conveniently analyze and process; the MQTT protocol is a client-server based message publish/subscribe transmission protocol, can conveniently forward data to other systems in real time, and is a mature network transmission method.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
It should be noted that:
while preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
In addition, it should be noted that the specific embodiments described in the present specification may differ in the shape of the components, the names of the components, and the like. All equivalent or simple changes of the structure, the characteristics and the principle of the invention which are described in the patent conception of the invention are included in the protection scope of the patent of the invention. Various modifications, additions and substitutions for the specific embodiments described may be made by those skilled in the art without departing from the scope of the invention as defined in the accompanying claims.

Claims (10)

1. A method for acquiring liquid crystal display data and generating running water of an oiling machine is characterized by comprising the following steps:
data acquisition of a liquid crystal screen of the oiling machine is completed through embedded data acquisition equipment;
judging the start and the end of a data signal in the acquired data and finishing reading the data signal;
carrying out decoding processing on the data signals and converting the data signals into numbers displayed by an identifiable display screen;
generating a transaction serial number;
and packaging the converted data signals and the transaction serial number information and transmitting the data signals and the transaction serial number information to a network through a serial port.
2. The method for collecting data and generating running water of the liquid crystal screen of the fuel dispenser according to claim 1,
the collected data also comprises a chip selection signal and a clock pulse signal;
the method for judging the start and the end of the data signal in the acquired data and finishing the reading of the data signal comprises the following steps:
judging the start and the end of a data signal in the collected data:
when the chip selection signal read by the embedded data acquisition equipment is at a high level, the data signal is invalid, and at the moment, the data signal does not start to be input or is input after being input, and the data signal is not read; when the chip selection signal read by the embedded data acquisition equipment is in a low level, the data signal is valid, at the moment, the data signal starts to be input, and the data signal is sequentially read according to the clock pulse signal in the acquired data in a bit mode until a frame of complete data signal is read.
3. The method for collecting data and generating running water of the liquid crystal screen of the fuel dispenser according to claim 1,
the decoding processing of the data signal and the conversion of the data signal into the number displayed by the recognizable display screen comprise the following steps:
analyzing and judging the data signal header, and not processing the data signal header when the data signal header is a command frame;
when the data signal header is a data frame, extracting a segment code data value in the data signal header;
and converting the segment code data value into a number displayed on an identifiable display screen through table look-up processing.
4. The method as set forth in claim 3, wherein said liquid crystal display data acquisition and flow generation method for fuel dispenser,
the step of converting the segment code data value into a figure displayed by a recognizable display screen through table look-up processing comprises the following steps:
acquiring the corresponding relation between a segment code table of a liquid crystal screen of the oiling machine and display numbers through embedded data acquisition equipment;
traversing and matching the acquired segment code value information with a segment code table;
if the matching is successful, returning the information corresponding to the segment code value information in the segment code table;
and if the matching fails, returning failure information.
5. The method for collecting data and generating running water of the liquid crystal screen of the fuel dispenser according to claim 1,
the data of the liquid crystal screen of the oiling machine comprises money data, upgrade data and unit price data.
6. The method as set forth in claim 5, wherein said liquid crystal display data acquisition and flow generation method for fuel dispenser,
the method for generating the transaction serial number comprises the following steps:
acquiring and converting money data, upgrade data and unit price data on a liquid crystal screen of the oiling machine through embedded data acquisition equipment;
if the amount data, the upgrade data and the 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 money amount data, unit price data and number of liters data are assigned to the transaction serial number.
7. The method for collecting data and generating running water of the liquid crystal screen of the fuel dispenser according to claim 1,
the step of packaging the converted data signal and the transaction serial number information and transmitting the packaged data signal and the transaction serial number information to a network through a serial port comprises the following steps:
packaging the converted data signal and the transaction serial number information;
sending the packed data signal and the transaction serial number information to a network module through a serial port;
and the network module sends the packed data signal and the transaction serial number information to the terminal.
8. The method as set forth in claim 7, wherein said liquid crystal display data acquisition and flow generation method for fuel dispenser,
and packaging the converted data signal and the transaction serial number into a JSON format.
9. The method as set forth in claim 7, wherein said liquid crystal display data acquisition and flow generation method for fuel dispenser,
the transaction serial number information also comprises oil gun number information.
10. The method as set forth in claim 7, wherein said liquid crystal display data acquisition and flow generation method for fuel dispenser,
and the network module transmits the packed data signals and the transaction serial number information to the terminal by adopting an MQTT protocol.
CN201910936248.1A 2019-09-29 2019-09-29 Oiling machine liquid crystal screen data acquisition and flow generation method Pending CN110865567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910936248.1A CN110865567A (en) 2019-09-29 2019-09-29 Oiling machine liquid crystal screen data acquisition and flow generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910936248.1A CN110865567A (en) 2019-09-29 2019-09-29 Oiling machine liquid crystal screen data acquisition and flow generation method

Publications (1)

Publication Number Publication Date
CN110865567A true CN110865567A (en) 2020-03-06

Family

ID=69652592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910936248.1A Pending CN110865567A (en) 2019-09-29 2019-09-29 Oiling machine liquid crystal screen data acquisition and flow generation method

Country Status (1)

Country Link
CN (1) CN110865567A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111639936A (en) * 2020-05-24 2020-09-08 中信银行股份有限公司 Transaction information acquisition method and device, electronic equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111639936A (en) * 2020-05-24 2020-09-08 中信银行股份有限公司 Transaction information acquisition method and device, electronic equipment and readable storage medium
CN111639936B (en) * 2020-05-24 2023-08-25 中信银行股份有限公司 Transaction information acquisition method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN112653636B (en) Network data intelligent distribution service system
CN103149855A (en) Remote monitoring system for offshore piling
CN110865567A (en) Oiling machine liquid crystal screen data acquisition and flow generation method
CN110569988A (en) system and method for processing faults of payment machine
CN112433759A (en) Standardized maintenance terminal for train control center system and implementation method thereof
CN109490816B (en) Split type metering automation terminal fault detection equipment and detection method thereof
CN114414255A (en) Automatic driving test method and system based on CAN message period monitoring
CN104516953B (en) A kind of black box subsystem for power dispatching automation magnanimity message
CN106291159B (en) Intelligent acceptance device and acceptance method for main station side power distribution automatic signals
CN112946394A (en) Transformation detection test data unified communication standard interface conversion method
CN110406570B (en) Automatic CTCS-3 timeout analysis method based on AMS monitoring data
CN116248712A (en) Method, device, storage medium, electronic equipment and system for processing data of oiling machine
CN115378976A (en) Real-time acquisition system for test data of communication instrument
CN101980277A (en) Account checking method of self-aid service terminal
CN112738443A (en) Intelligent field recording interaction system based on AR glasses
CN109407064B (en) Radar equipment image transmission fault diagnosis method
CN211207120U (en) Oiling machine liquid crystal display data acquisition device
CN1741059B (en) Data acquisition with clearing separating treatment method, device and settle accounts integral system
CN110763947A (en) Statistical device for synchronous line loss and using method thereof
CN103560896A (en) Exchanger charging method
CN116737483B (en) Assembly test interaction method, device, equipment and storage medium
CN110995312B (en) Power grid four-remote joint debugging data transmission method and system
CN113553531B (en) Display system for enterprise planning based on digital information transmission
CN112217802B (en) IEC103 message analysis method and device based on multistage classification mode
CN202257624U (en) Oil and gas field source data acquisition system based on wireless transmission module

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