WO2023241745A1 - 加油机数据处理方法、装置、存储介质、电子设备和系统 - Google Patents

加油机数据处理方法、装置、存储介质、电子设备和系统 Download PDF

Info

Publication number
WO2023241745A1
WO2023241745A1 PCT/CN2023/121017 CN2023121017W WO2023241745A1 WO 2023241745 A1 WO2023241745 A1 WO 2023241745A1 CN 2023121017 W CN2023121017 W CN 2023121017W WO 2023241745 A1 WO2023241745 A1 WO 2023241745A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
information
hub
tanker
channel
Prior art date
Application number
PCT/CN2023/121017
Other languages
English (en)
French (fr)
Inventor
张剑云
张国峰
Original Assignee
能链能科(青岛)控股有限公司
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 能链能科(青岛)控股有限公司 filed Critical 能链能科(青岛)控股有限公司
Publication of WO2023241745A1 publication Critical patent/WO2023241745A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • the present application relates to the technical field of tankers, and in particular to a tanker data processing method, device, storage medium, electronic equipment and system.
  • this application provides a tanker data processing method, device, storage medium, electronic equipment and system.
  • the main purpose is to solve the technical problem of a single tanker model and complex circuit layout when connected to a hub.
  • a tanker data processing method is provided.
  • the tanker data processing method is applied to a hub.
  • the hub includes at least one first data collection channel, and each of the first data collection channels The channel is used to connect to the communication module of a tanker.
  • the method includes:
  • the original data sent by each tanker is analyzed to obtain the operating data and oil gun status data of each tanker.
  • a data processing device for a tanker which device includes:
  • a data collection module configured to collect original data sent by at least one of the tankers through the first data collection channel
  • a protocol determination module configured to determine the data parsing protocol corresponding to each of the first data collection channels according to the preconfigured hub channel information
  • a data analysis module configured to analyze the original data sent by each tanker based on the data analysis protocol corresponding to each first data collection channel, and obtain the operating data and oil gun status of each tanker. data.
  • a storage medium on which a computer program is stored, and when the program is executed by a processor, the above fuel dispenser data processing method is implemented.
  • a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the program, the above-mentioned refueling machine is implemented. Data processing methods.
  • a tanker data processing system includes at least one tanker, a hub and a zero-pipe system, wherein the hub includes at least one first data acquisition channel, and each The first data collection channel is connected to a communication module of the tanker, the hub is also connected to the zero pipe system through network communication, and the hub executes the above tanker data processing method.
  • a computer program including computer-readable code.
  • the computer-readable code When the computer-readable code is run on a server, it causes the server to execute any of the foregoing gas dispenser data processing methods.
  • a computer-readable medium in which a computer program such as the foregoing tanker data processing method is stored.
  • This application provides a method, device, storage medium, electronic equipment and system for processing tanker data, by connecting multiple first data collection channels of the hub to the communication module of each tanker, and through each preconfigured
  • the data analysis protocol corresponding to the data collection channel analyzes the original data sent by each tanker in turn, and obtains the operating data and oil gun status data of each tanker.
  • This allows the hub to connect to multiple models and types of tankers at the same time. This effectively improves the efficiency of tanker data collection.
  • the connection method between the above-mentioned hub and the tanker is simple, and the complexity of the line layout is relatively low, which can effectively reduce the cost of digital transformation of the tanker.
  • FIG. 1 shows a schematic flowchart of a tanker data processing method provided by an embodiment of the present application
  • FIG. 2 shows a schematic flow chart of another tanker data processing method provided by an embodiment of the present application
  • Figure 3 shows a schematic structural diagram of a gas tanker data processing device provided by an embodiment of the present application
  • Figure 4 shows a schematic structural diagram of another data processing device for a gas tanker provided by an embodiment of the present application
  • Figure 5 shows a schematic structural diagram of a gas tanker data processing system provided by an embodiment of the present application
  • FIG. 6 shows a schematic structural diagram of another fuel dispenser data processing system provided by an embodiment of the present application.
  • Figure 7 schematically shows a block diagram of a server for executing a method according to the present application
  • Figure 8 schematically shows a storage unit for holding or carrying program code for implementing the method according to the present application.
  • a fuel dispenser data processing method is provided.
  • the application of this method to a hub is used as an example to illustrate, including the following steps:
  • the first data collection channel refers to the data collection module reserved by the hub.
  • the hub is provided with multiple data collection modules, and each data collection module reserves a data collection interface for external use. By connecting the data collection interface with the data collection interface of the tanker, the data collection interface of the tanker can be collected. The raw data sent. Further, the hub is pre-configured with hub channel information.
  • the hub channel information includes channel information of each first data collection channel, for example, the channel number, protocol number, communication parameters (baud rate, data bit, check bit, stop bit, etc.), automatic authorization mark, oil engine log mark, oil gun quantity, oil gun number and oil product code, etc.
  • the controller of the hub is encapsulated with data analysis protocols of multiple signals and types of gas pumps.
  • the data analysis protocol corresponding to each first data collection channel can be determined.
  • the original data sent by each tanker can be analyzed to obtain the operating data and oil gun status data of each tanker.
  • the operating data of the refueling machine includes transactional data and real-time data
  • the transaction data refers to the data generated by the refueling machine during the vehicle refueling process, including transaction price, refueling liters, refueling time, etc.
  • Real-time data refers to information that may change during the transaction process of the oil tanker, such as the unit price of oil and liters of oil, etc.
  • the status data of the oil gun refers to It is the usage status information of each oil gun in the tanker (including the gun lifting state and the gun release state) and its corresponding oil gun number and other information.
  • the hub can save the data in the internal memory, or send the data to a third-party data platform through the communication module to achieve data processing. Upload in time.
  • the third-party data platform may refer to a preset SAAS (Software-as-a-Service) platform.
  • SAAS Software-as-a-Service
  • the operating data of the tanker and the status data of the oil gun can be sent to the third-party data platform in a scheduled manner or in a real-time manner.
  • the method for processing data of a tanker connects multiple first data collection channels of the hub to the communication module of each tanker, and sequentially processes the data through the pre-configured data analysis protocol corresponding to each data collection channel.
  • the raw data sent by each tanker is analyzed to obtain the operating data and oil gun status data of each tanker.
  • This allows the hub to connect to multiple models and types of tankers at the same time, thus effectively improving the efficiency of tanker data collection.
  • the connection method between the above-mentioned hub and the tanker is simple, and the complexity of the line layout is relatively low, which can effectively reduce the cost of digital transformation of the tanker.
  • a tanker data processing method As shown in Figure 2, the method includes the following steps:
  • the computer device with the configuration tool installed can connect to the hub through the hub's IP address and port number.
  • the configuration tool the channel information of each data collection channel of the hub (including the first data collection channel and the second data collection channel) can be configured.
  • the channel information of the first data collection channel may include the channel number, protocol number, communication parameters, automatic authorization mark, oil machine log mark, oil gun number, oil gun number, oil product code and other information of the first data collection channel
  • the channel information of the second data collection channel may include the channel number, protocol number, communication parameters and other information of the second data collection channel.
  • the hub can collect the original data sent by the tanker, wherein each first data collection interface on the hub
  • the data acquisition channel is connected to the communication module of a tanker and is used to collect raw data sent by a tanker.
  • the controller of the hub is encapsulated with data analysis protocols for various models and types of gas pumps.
  • the data analysis protocol corresponding to each first data collection channel can be determined.
  • the original data sent by each tanker can be analyzed to obtain the operating data and oil gun status data of each tanker.
  • transaction data refers to the data generated by the tanker during the vehicle refueling process, including transaction price, refueling liters, refueling time, etc.
  • Real-time data refers to information that may change during the transaction process of the tanker, such as Unit price of oil and liters of oil, etc.
  • the hub can automatically adapt to multiple models of oil machines, including active or passive oil machines.
  • An active oil machine refers to a oil machine that actively sends data
  • a passive oil machine refers to a oil machine that actively sends data. The machine only sends response data after receiving the correct command.
  • the hub can also actively query or set relevant information in the tanker. For example, the hub can query the cumulative output oil volume of the tanker, set or cancel quantitative refueling, set or query the unit price of the tanker, set or query Oil engine working mode, etc. It should be noted that different refueling machines have different working modes. The two common modes are online and offline.
  • the online mode refers to the need to send an authorization command to the refueling machine after the refueling machine lifts the gun.
  • the offline mode means that the refueling machine can refuel without any authorization command after lifting the gun. It is understandable that different brands and models of fuel dispensers have different modes, and each mode works differently. I will not give examples one by one here.
  • the hub can query the data in the gas pump through the following method: in response to the first information query request, send the first information query request to the gas tank through the first data collection channel.
  • the first information query request carries at least one of the information of the cumulative oil output of the tanker, the unit price of oil products and the working mode of the tanker, receives the first query response information sent by the tanker, and based on The data parsing protocol corresponding to the first data collection channel parses the first query response information to obtain a first information query result, and saves the first information query result in the memory of the hub.
  • the hub can simultaneously query one or more types of data in the tanker through the first information query request, and the hub can also query the data in the tanker in a scheduled manner, and actively query the data in the tanker. Data can effectively improve the efficiency of data collection of tankers.
  • the hub setting the data in the tanker can be achieved by the following method: in response to the first information setting request, sending the first information setting request to the tanker through the first data collection channel.
  • the first information setting request carries at least one of a quantitative refueling opening instruction, a quantitative refueling closing instruction, an oil product unit price, and a tanker operating mode
  • receives the setting response information of the tanker and passes The data parsing protocol corresponding to the first data collection channel parses the setting response information to obtain the information setting result.
  • the hub can simultaneously set one or more data in the tanker through the first information setting request.
  • the hub may not accept the setting response information sent by the tanker. This embodiment can effectively improve the processing efficiency of the tanker data by actively setting the data in the tanker.
  • the hub can collect the original data sent by the liquid level meter, where each data acquisition interface on the hub
  • the second data acquisition channel is connected to the communication module of a liquid level meter and is used to collect raw data sent by a liquid level meter.
  • the hub's controller is encapsulated with data analysis protocols for multiple models and types of liquid level gauges. Through the pre-configured channel information of the second data acquisition channel, the data analysis corresponding to each second data acquisition channel can be determined.
  • the original data sent by each liquid level meter can be analyzed to obtain the oil tank data of each liquid level meter, where the oil tank data can include oil volume , water volume, oil height, water height, temperature, pressure, density, oil intake, side leakage and other data.
  • the hub can also actively query relevant information in the liquid level gauge.
  • the specific implementation method is: in response to the second information query request, send the second information query request to In the liquid level meter, the second information query request carries at least one information of oil volume, water volume, oil height, water height, temperature, pressure, density, oil intake volume, and side leakage volume. ; Receive the second query response information sent by the liquid level meter, and analyze the second query response information based on the data analysis protocol corresponding to the second data collection channel to obtain the second information query result; The second information query result is stored in the memory of the hub.
  • the hub can simultaneously query one or more data in the liquid level meter through the second information query request, and the hub can also query the data in the liquid level meter in a timed manner, and actively query the liquid level.
  • the data in the instrument can effectively improve the collection efficiency of liquid level instrument data.
  • the hub can store data through MRAM to prevent data loss due to power failure.
  • the data in the hub mainly includes two parts, namely fixed data content and cached engine data.
  • the fixed data content mainly includes system information, oil gun information, channel information and other information.
  • System information includes data version, system IP address, system time, last startup time, cumulative number of startups, system running status, program startup error count, etc.
  • Oil gun information includes gun number, gun status, and the latest refueling amount/liters , pump code, status flag, gun pickup time, oil machine transaction serial number, fuel card card type and card number, etc.
  • Channel information includes channel number, transaction quantity, transaction data list, etc.
  • the cached oil machine data mainly includes real-time information and transaction data of the oil machine. After the transaction data is cached to a certain amount, it can be written to the local transaction file, thereby reducing the number of flash writes and increasing the life of the flash. .
  • the hub can save the collected operating data and oil gun status data of each tanker and the oil tank data of each liquid level gauge in a cache space, and determine whether the cache Whether the amount of data in the space reaches the preset value, if the amount of data in the cache space reaches the preset value, the transaction data and oil tank data in the cache space are saved in the memory of the hub.
  • the hub can also implement the function of preventing data loss during power outage, that is, when the hub is powered off, the most recently collected operating data and oil gun status data of each of the oil dispensers, as well as the most recently collected Tank data for each of the level gauges is stored in the hub's memory.
  • the hub can communicate with the zero management system through the wired network, and the zero management system can query or set relevant information in the hub through the network, including: querying or setting the hub configuration information, querying the oil machine transaction data saved by the hub, querying or Set the hub time, query the maximum transaction serial number for transactions saved by the hub, authorize or cancel authorization for refueling, query the cumulative oil output of the oil gun, set or query the unit price of the oil machine, obtain oil tank data, etc.
  • the hub configuration information can be configured manually through the configuration tool or remotely through the zero management system.
  • the zero management system can actively query the data of the hub, and the hub can also actively report data to the zero management system.
  • the data in the zero management system query hub can be realized by the following method: receiving the third information query request sent by the zero management system, and determining the information to be processed based on the information carried in the third information query request.
  • Query information wherein the third information query request carries at least one of the hub channel information, transaction data, oil tank data, hub time, cumulative output oil volume of the tanker, and oil product unit price.
  • the query result corresponding to the information to be queried is read from the memory of the hub, and the query result is sent to the zero management system.
  • the zero-management system can simultaneously query one or more types of data in the hub through a third information query request, and the zero-management system can also query the data in the hub in a scheduled manner. By actively querying the data in the hub, It can effectively improve the processing efficiency of tanker data.
  • the data in the zero management system setting hub can be realized by the following method: receiving the second information setting request sent by the zero management system, and determining the information to be set based on the information carried in the second information setting request.
  • Setting information wherein the second information setting request carries at least one of the hub channel information, hub time, authorized refueling opening instruction, authorized refueling closing instruction and oil product unit price, according to the second information Set the value corresponding to the information carried in the request, set the information to be set, and save the setting result in the memory of the hub.
  • the zero management system can simultaneously set one or more data in the hub through the second information setting request. This embodiment can effectively improve the processing efficiency of the tanker data by actively setting the data in the hub.
  • the hub in terms of hardware, can support the access of hardware devices with multiple protocols and interfaces.
  • each channel of the hub can support hardware of different protocols.
  • it can support Any new serial port hardware access, including various models of oil dispensers, liquid level gauges and other equipment. Based on this, the above-mentioned hub can ensure the efficiency of data collection and oil machine control from both hardware and software aspects, thereby reducing the complexity of wiring between the hub and various equipment in the oil station, and at the same time reducing the cost of digital transformation of the oil tanker.
  • the data processing method of the tanker connects the first data collection channel of the hub to the communication module of each tanker, and connects the second data collection channel of the hub to the communication module of each liquid level meter, and Through the pre-configured hub channel information, the raw data sent by each tanker and liquid level gauge are analyzed in turn to obtain the operating data and oil gun status data of each tanker, as well as the oil tank data of each liquid level gauge.
  • the hub can be connected to multiple models and types of tankers and liquid level gauges at the same time, effectively improving the data collection efficiency of tankers and liquid level gauges.
  • the above method supports a variety of data query methods and data setting methods, which can effectively improve the data processing efficiency of the tanker and the liquid level gauge.
  • the connection method between the above hub and the tanker and the liquid level gauge is simple, and the wiring layout is complicated. It is relatively low, which can effectively reduce the cost of digital transformation of tankers and liquid level gauges.
  • this embodiment provides a fuel dispenser data processing device, as shown in Figure 3.
  • the device includes: a data acquisition module 31, a protocol determination module 32 and a data processing device. Parsing module 33, where,
  • the data collection module 31 can be used to collect the original data sent by at least one of the tankers through the first data collection channel;
  • the protocol determination module 32 can be used to determine the data parsing protocol corresponding to each of the first data collection channels according to the preconfigured hub channel information;
  • the data analysis module 33 can be used to analyze the original data sent by each of the oil dispensers based on the data analysis protocol corresponding to each of the first data collection channels, and obtain the operating data and oil nozzle of each of the oil dispensers. status data.
  • the data collection module 31 can also be used to collect the original data sent by at least one of the liquid level meters through the second data collection channel; the protocol determination module 32 can also be used to collect according to the The hub channel information determines the data parsing protocol corresponding to each second data collection channel; the data parsing module 33 can also be used to analyze each liquid based on the data parsing protocol corresponding to each second data collection channel. The raw data sent by the level meter is analyzed to obtain the oil tank data of each liquid level meter.
  • the device also includes a channel configuration module 34.
  • the channel configuration module 34 can be used to receive the hub channel information sent by a configuration tool connected to the hub network, where , the hub channel information includes the channel number, protocol number, communication parameters, automatic authorization flag, oil machine log flag, oil gun number, oil gun number and oil product code of the first data collection channel, and the second The channel number, protocol number and communication parameters of the data acquisition channel; the hub channel information is stored in the memory of the hub.
  • the device also includes a data query module 35.
  • the data query module 35 can be configured to respond to the first information query request and pass the first information query request through the The first data collection channel is sent to the tanker, wherein the first information query request carries at least one of the cumulative output oil volume of the tanker, the unit price of oil products, and the working mode of the tanker; receiving the The first query response information sent by the tanker is parsed based on the data parsing protocol corresponding to the first data collection channel to obtain the first information query result; the first information query The results are saved in the hub's memory.
  • the data query module 35 may also be configured to respond to a second information query request and send the second information query request to the liquid level meter through the second data collection channel, wherein , the second information query request carries at least one of the following information: oil volume, water volume, oil height, water height, temperature, pressure, density, oil intake volume, and side leakage volume; receive the information sent by the liquid level meter second query response information, and based on the data parsing protocol corresponding to the second data collection channel, parse the second query response information to obtain the second information query result; save the second information query result in in the hub's memory.
  • the device also includes a data setting module 36.
  • the data setting module 36 can be configured to respond to a first information setting request, set the first information setting to The setting request is sent to the tanker through the first data collection channel, wherein the first information setting request carries a quantitative refueling opening instruction, a quantitative refueling closing instruction, the unit price of oil products, and the operating mode of the tanker. At least one kind of information; receiving the setting response information of the gas pump, and parsing the setting response information through the data analysis protocol corresponding to the first data collection channel to obtain the information setting result.
  • the data query module 35 may be configured to receive a third information query request sent by the zero management system, and determine the information to be queried based on the information carried in the third information query request, wherein, the third information query request carries at least one of the hub channel information, transaction data, oil tank data, hub time, cumulative output oil volume of the tanker and unit price of oil products; in the hub The query result corresponding to the information to be queried is read from the memory, and the query result is sent to the zero management system.
  • the data setting module 36 may be configured to receive a second information setting request sent by the zero management system, and determine the information to be set based on the information carried in the second information setting request, wherein, the second information setting request carries at least one of the hub channel information, hub time, authorized refueling opening instruction, authorized refueling closing instruction and oil product unit price; according to the second information setting request, The value corresponding to the carried information is used to set the information to be set, and the setting result is saved in the memory of the hub.
  • the device also includes a data storage module 37.
  • the data storage module 37 can be used to store the operating data and oil gun status data of each tanker, and each The oil tank data of the liquid level meter is stored in the cache space, and it is judged whether the amount of data in the cache space reaches the preset value; if the amount of data in the cache space reaches the preset value, all the data will be stored in the cache space.
  • the transaction data and oil tank data in the cache space are saved in the memory of the hub; and/or when the hub is powered off, the most recently collected operating data and oil nozzle status of each tanker are stored.
  • the data, as well as the most recently collected tank data for each of the liquid level gauges, are stored in the memory of the hub.
  • this embodiment also provides a storage medium on which a computer program is stored.
  • the program is executed by the processor, the above is implemented as shown in Figures 1 and 2.
  • Oil tanker data processing method oil tanker data processing method.
  • the technical solution of this application can be embodied in the form of a software product.
  • the software product to be identified can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.). It includes several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method described in each implementation scenario of this application.
  • this embodiment also provides a physical device for tanker data processing , specifically it can be a personal computer, server, smart phone, tablet computer, smart watch, or other network device.
  • the physical device includes a storage medium and a processor; the storage medium is used to store computer programs; the processor is used to execute the computer program. Program to implement the above method as shown in Figure 1 and Figure 2.
  • the physical device may also include a user interface, a network interface, a camera, a radio frequency (Radio Frequency, RF) circuit, a sensor, an audio circuit, a WI-FI module, and so on.
  • the user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), etc.
  • the optional user interface may also include a USB interface, a card reader interface, etc.
  • the network interface may include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
  • an entity device for data processing of a tanker does not constitute a limitation on the entity device. It may include more or less components, or combine certain components, or different components. component layout.
  • the storage medium may also include an operating system and a network communication module.
  • the operating system is a program that manages the above-mentioned physical device hardware and software resources to be identified, and supports the operation of information processing programs and other software and/or programs to be identified.
  • the network communication module is used to realize communication between components within the storage medium, as well as communication with other hardware and software in the information processing physical device.
  • a tanker data processing system includes at least one tanker 10, a hub 20 and a zero pipe system 30, wherein the hub 20 includes at least one first Data collection channels, each of the first data collection channels is connected to a communication module of the tanker 10, and the hub 20 is also connected to the zero pipe system 30 through the network.
  • the hub 20 can collect data from the tanker. 10, and through the pre-configured data analysis protocol corresponding to each data collection channel, the original data sent by each tanker 10 is sequentially analyzed to obtain the operating data and oil gun status data of each tanker 10 , so that the hub 20 can be connected to multiple models and types of gas pumps 10 at the same time, thereby improving the efficiency of gas tank data collection.
  • the tanker data processing system further includes at least one liquid level gauge 40
  • the hub 20 further includes at least one second data acquisition channel, wherein each of the second The data acquisition channel can be connected to a communication module of the liquid level meter 40 .
  • the hub 20 can collect the original data sent by the liquid level meter 40, and use the pre-configured data analysis protocol corresponding to each second data collection channel to sequentially analyze the original data sent by each liquid level meter 40. The data is analyzed to obtain the oil tank data of each liquid level meter 40, so that the hub 20 can simultaneously connect to multiple models and types of liquid level meters 40, thereby improving the efficiency of liquid level meter data collection.
  • the tanker data processing system further includes at least one communication relay device 50
  • the hub 20 further includes at least one third data collection channel, wherein each of the third data collection channels
  • the data collection is connected to the first communication module of the communication relay device 50
  • the second communication module of the communication relay device 50 is connected to the communication module of the gas pump 20 .
  • the data in the tankers can be read through the communication relay device, and the data can be parsed into real-time data and transaction data and then sent to the hub.
  • the hub can save the received data. and upload.
  • the hub can also set an authorization flag in the communication relay device to control the refueling nozzle through the communication relay device.
  • the tanker data processing system also includes a cloud platform 60, wherein the zero management system 30 is communicatively connected to the cloud platform 60 through a network, wherein the cloud platform 60 is used to collect and/or set data in the zero pipe system 30 .
  • the hub can be connected to various hardware devices in the gas station through hardware interfaces, including various types of gas pumps and liquid level gauges. Then, the hub can collect data from the gas pumps and liquid level gauges, and analyze The data is parsed and saved, and then the data is uploaded to the zero management system in response to the query request of the zero management system. Furthermore, the zero management system can save the data in the database or upload it to the cloud platform.
  • the present application can be implemented by means of software plus a necessary general hardware platform, or can also be implemented by hardware.
  • the original data sent by each tanker is sequentially analyzed. Get the operating data and oil gun status data of each tanker.
  • the above method can enable the hub to connect to multiple models and types of tankers at the same time, thereby effectively improving the efficiency of data collection of the tankers.
  • the connection method between the above-mentioned hub and the tanker is simple, and the complexity of the line layout is relatively low, which can effectively reduce the cost of digital transformation of the tanker.
  • the accompanying drawing is only a schematic diagram of a preferred implementation scenario, and the modules or processes in the accompanying drawing are not necessarily necessary for implementing the present application.
  • the modules in the devices in the implementation scenario can be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or can be correspondingly changed and located in one or more devices different from the implementation scenario.
  • the modules of the above implementation scenarios can be combined into one module or further split into multiple sub-modules.
  • Various component embodiments of the present disclosure may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof.
  • a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the message processing device of the live broadcast platform according to embodiments of the present invention.
  • the invention may also be implemented as an apparatus or apparatus program (eg, computer program and computer program product) for performing part or all of the methods described herein.
  • Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, or provided on a carrier signal, or in any other form.
  • Figure 7 shows a server that can implement message processing of the platform according to the present invention.
  • the server conventionally includes a processor 510 and a computer program product or computer-readable medium in the form of memory 520 .
  • Memory 520 may be electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the memory 520 has a storage space 530 for program code 531 for executing any method steps in the above-described methods.
  • the storage space 530 for program codes may include individual program codes 531 respectively used to implement various steps in the above method. These program codes can be read from or written into one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG. 8 .
  • the storage unit may have storage segments, storage spaces, etc. arranged similarly to the memory 520 in the server of FIG. 7 .
  • the program code may, for example, be compressed in a suitable form.
  • the storage unit includes computer readable code 531', that is, code that can be read by, for example, a processor such as 510, which code, when run by a server, causes the server to perform the various steps in the method described above.

Abstract

本申请公开了一种加油机数据处理方法、装置、存储介质、电子设备和系统,涉及加油机技术领域。其中,所述方法应用于集线器,该集线器包括至少一个第一数据采集通道,每个第一数据采集通道用于与一个加油机的通信模块连接,所述方法包括:通过第一数据采集通道,采集至少一个加油机发送的原始数据;根据预先配置的集线器通道信息,确定每个第一数据采集通道对应的数据解析协议;基于每个第一数据采集通道对应的数据解析协议,对每个加油机发送的原始数据进行解析,得到每个加油机的运行数据和油枪状态数据。上述方法可以同时对接多种型号和类型的加油机,可以提高加油机数据采集的效率,此外,上述连接方式简单,可以降低加油机数字化改造成本。

Description

加油机数据处理方法、装置、存储介质、电子设备和系统
本申请要求于2022年12月23日提交中国专利局、申请号为202211660740.9、申请名称为“加油机数据处理方法、装置、存储介质、电子设备和系统”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及加油机技术领域,尤其是涉及一种加油机数据处理方法、装置、存储介质、电子设备和系统。
背景技术
随着加油站数字化建设的不断推进,加油机数据采集和油枪控制等数字化改造工作也在不断增加。在现有技术中,主要通过集线器对接加油机,并通过集线器对采集到的数据进行解析以及对油枪进行控制。
然而,目前很多加油站中的加油机的厂家和型号各异,而现有的集线器通常只能对接单一型号的加油机,从而导致加油机的数字化改造成本非常高昂,线路布置也非常复杂。
申请内容
有鉴于此,本申请提供了一种加油机数据处理方法、装置、存储介质、电子设备和系统,主要目的在于解决集线器对接加油机型号单一、线路布置复杂的技术问题。
根据本申请的第一个方面,提供了一种加油机数据处理方法,所述加油机数据处理方法应用于集线器,所述集线器包括至少一个第一数据采集通道,每个所述第一数据采集通道用于与一个加油机的通信模块连接,该方法包括:
通过所述第一数据采集通道,采集至少一个所述加油机发送的原始数据;
根据预先配置的集线器通道信息,确定每个所述第一数据采集通道对应的数据解析协议;
基于每个所述第一数据采集通道对应的数据解析协议,对每个所述加油机发送的原始数据进行解析,得到每个所述加油机的运行数据和油枪状态数据。
根据本申请的第二个方面,提供了一种加油机数据处理装置,该装置包括:
数据采集模块,用于通过所述第一数据采集通道,采集至少一个所述加油机发送的原始数据;
协议确定模块,用于根据预先配置的集线器通道信息,确定每个所述第一数据采集通道对应的数据解析协议;
数据解析模块,用于基于每个所述第一数据采集通道对应的数据解析协议,对每个所述加油机发送的原始数据进行解析,得到每个所述加油机的运行数据和油枪状态数据。
根据本申请的第三个方面,提供了一种存储介质,其上存储有计算机程序,所述程序被处理器执行时实现上述加油机数据处理方法。
根据本申请的第四个方面,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述加油机数据处理方法。
根据本申请的第五个方面,提供了一种加油机数据处理系统,该系统包括至少一个加油机、集线器和零管系统,其中,所述集线器包括至少一个第一数据采集通道,每个所述第一数据采集通道与一个所述加油机的通信模块连接,所述集线器还通过网络与所述零管系统通信连接,所述集线器执行上述加油机数据处理方法。
根据本申请的另一方面,提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在服务器上运行时,导致所述服务器执行前述任一个所述加油机数据处理方法。
根据本申请的另一方面,提供了一种计算机可读介质,其中存储了如前述加油机数据处理方法的计算机程序。
本申请提供的一种加油机数据处理方法、装置、存储介质、电子设备和系统,通过将集线器的多个第一数据采集通道与每个加油机的通信模块连接,并通过预先配置的每一个数据采集通道对应的数据解析协议,依次对每个加油机发送的原始数据进行解析,得到每个加油机的运行数据和油枪状态数据,可以使集线器同时对接多种型号和类型的加油机,从而有效的提高了加油机数据采集的效率。此外,上述集线器与加油机的连接方式简单,线路布置复杂度比较低,可以有效的降低加油机的数字化改造成本。
上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1示出了本申请实施例提供的一种加油机数据处理方法的流程示意图;
图2示出了本申请实施例提供的另一种加油机数据处理方法的流程示意图;
图3示出了本申请实施例提供的一种加油机数据处理装置的结构示意图;
图4示出了本申请实施例提供的另一种加油机数据处理装置的结构示意图;
图5示出了本申请实施例提供的一种加油机数据处理系统的结构示意图;
图6示出了本申请实施例提供的另一种加油机数据处理系统的结构示意图;
图7示意性地示出了用于执行根据本申请的方法的服务器的框图;
图8示意性地示出了用于保持或者携带实现根据本申请的方法的程序代码的存储单元。
具体实施方式
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在一个实施例中,如图1所示,提供了一种加油机数据处理方法,以该方法应用于集线器为例进行说明,包括以下步骤:
101、通过第一数据采集通道,采集至少一个加油机发送的原始数据。
102、根据预先配置的集线器通道信息,确定每个第一数据采集通道对应的数据解析协议。
103、基于每个第一数据采集通道对应的数据解析协议,对每个加油机发送的原始数据进行解析,得到每个加油机的运行数据和油枪状态数据。
具体的,第一数据采集通道指的是集线器预留的数据采集模块。在本实施例中,集线器上设置有多个数据采集模块,每个数据采集模块对外预留一个数据采集接口,通过将该数据采集接口与加油机的数据采集接口进行连接,即可采集加油机发送的原始数据。进一步的,集线器中预先配置有集线器通道信息,集线器通道信息中包括每个第一数据采集通道的通道信息,例如,第一数据采集通道的通道编号、协议编号、通信参数(波特率、数据位、校验位、停止位等等)、自动授权标志、油机日志标志、油枪数量、油枪编号和油品代码等等。
进一步的,集线器的控制器中封装有多种信号和类型的加油机的数据解析协议,通过每个第一数据采集通道的通道信息,可以确定每个第一数据采集通道对应的数据解析协议,基于每个第一数据采集通道对应的数据解析协议,可以对每个加油机发送的原始数据进行解析,得到每个加油机的运行数据和油枪状态数据。在本实施例中,加油机的运行数据包括可以交易数据和实时数据,其中,交易数据指的是加油机在车辆加油过程中产生的数据,包括交易价格、加油升数和加油时间等等,实时数据指的是加油机在交易过程中可能会发生变动的信息,如油品单价和油品升数等等,油枪状态数据指的 是加油机中每个油枪的使用状态信息(包括提枪状态和放枪状态)及其对应的油枪编号等信息。
进一步的,在解析出加油机的运行数据和油枪状态数据之后,加集线器可以将数据保存在内部的存储器中,也可以通过通信模块将数据发送到第三方数据平台中,以此实现数据的及时上传。在本实施例中,第三方数据平台可以指预先设定的SAAS(Software-as-a-Service,软件即服务)平台。进一步的,加油机的运行数据和油枪状态数据可以通过定时的方式发送到第三方数据平台中,也可以通过实时的方式发送到第三方数据平台中。在实时上传数据的过程中,如果运行数据和油枪状态数据没有发生变化时,则可以先不上传,等待数据发生变化时,再将变化后的运行数据和油枪状态数据发送到第三方数据平台中,以此减少通信次数,避免数据冗余。
本实施例提供的加油机数据处理方法,通过将集线器的多个第一数据采集通道与每个加油机的通信模块连接,并通过预先配置的每一个数据采集通道对应的数据解析协议,依次对每个加油机发送的原始数据进行解析,得到每个加油机的运行数据和油枪状态数据,可以使集线器同时对接多种型号和类型的加油机,从而有效的提高了加油机数据采集的效率。此外,上述集线器与加油机的连接方式简单,线路布置复杂度比较低,可以有效的降低加油机的数字化改造成本。
进一步的,作为上述实施例具体实施方式的细化和扩展,为了完整说明本实施例的实施过程,提供了加油机数据处理方法,如图2所示,该方法包括以下步骤:
201、接收与集线器网络连接的配置工具发送的集线器通道信息,并将集线器通道信息保存在集线器的存储器中。
具体的,安装了配置工具的计算机设备可以通过集线器的IP地址和端口号与集线器进行网络连接。通过配置工具,可以对集线器的各个数据采集通道(包括第一数据采集通道和第二数据采集通道)的通道信息进行配置。其中,第一数据采集通道的通道信息可以包括第一数据采集通道的通道编号、协议编号、通信参数、自动授权标志、油机日志标志、油枪数量、油枪编号和油品代码等信息,第二数据采集通道的通道信息可以包括第二数据采集通道的通道编号、协议编号和通信参数等信息。配置工具配置完成后,可以通过网络将各个数据采集通道的通道信息下发到集线器中,以使集线器将各个数据采集通道的通道信息保存在集线器的存储器中。
202、通过第一数据采集通道,采集至少一个加油机发送的原始数据。
203、根据预先配置的集线器通道信息,确定每个第一数据采集通道对应的数据解析协议。
204、基于每个第一数据采集通道对应的数据解析协议,对每个加油机发送的原始数据进行解析,得到每个加油机的运行数据和油枪状态数据。
具体的,通过将集线器上预留的第一数据采集通道的数据采集接口与加油机的数据采集接口进行连接,集线器可以对加油机发送的原始数据进行采集,其中,集线器上的每个第一数据采集通道与一个加油机的通信模块连接,并用于采集一个加油机发送的原始数据。进一步的,集线器的控制器中封装有多种型号和类型的加油机的数据解析协议,通过预先配置的第一数据采集通道的通道信息,可以确定每个第一数据采集通道对应的数据解析协议,基于每个第一数据采集通道对应的数据解析协议,可以对每个加油机发送的原始数据进行解析,得到每个加油机的运行数据和油枪状态数据。其中,交易数据指的是加油机在车辆加油过程中产生的数据,包括交易价格、加油升数和加油时间等等,实时数据指的是加油机在交易过程中可能会发生变动的信息,如油品单价和油品升数等等。
在一个实施例中,集线器可以自动适配多种型号的油机,包括主动或被动的加油机,其中,主动的加油机指的是主动发送数据的加油机,被动的加油机指的是加油机在接收到正确的命令后,才发送应答数据。此外,集线器也可以主动查询加油机中的相关信息或设置加油机中的相关信息,例如,集线器可以查询油机累积输出油量、设置或取消定量加油、设置或查询油机单价、设置或查询油机工作模式等等。需要说明的是,不同的加油机设定的工作模式不同,常见的有联机、脱机这两种模式,其中,联机模式指的是加油机提枪后需要给加油机发送授权命令,油枪才能加油,脱机模式指的是加油机提枪后不需要授权命令即可以加油。可以理解的是,不同品牌和型号的加油机模式各不相同,每种模式的工作方式也不尽相同,这里不再一一举例。
在本实施例中,集线器查询加油机中的数据可以通过以下方法实现:响应于第一信息查询请求,将所述第一信息查询请求通过所述第一数据采集通道发送至所述加油机中,其中,所述第一信息查询请求中携带有加油机累计输出油量、油品单价和加油机工作模式中的至少一种信息,接收所述加油机发送的第一查询应答信息,并基于所述第一数据采集通道对应的数据解析协议,对所述第一查询应答信息进行解析,得到第一信息查询结果,将所述第一信息查询结果保存在所述集线器的存储器中。在本实施例中,集线器可以通过第一信息查询请求同时查询加油机中的一种或多种数据,并且,集线器也可以通过定时的方式查询加油机中的数据,通过主动查询加油机中的数据,可以有效的提高加油机数据的采集效率。
在本实施例中,集线器设置加油机中的数据可以通过以下方法实现:响应于第一信息设置请求,将所述第一信息设置请求通过所述第一数据采集通道发送至所述加油机中,其中,所述第一信息设置请求中携带有定量加油开启指令、定量加油关闭指令、油品单价和加油机工作模式中的至少一种信息,接收所述加油机的设置应答信息,并通过所述第一数据采集通道对应的数据解析协议,对所述设置应答信息进行解析,得到信息设置结果。在本实施例中,集线器可以通过第一信息设置请求同时设置加油机中的一种或多种数据,在其他实施例中,集线器也可以不接受加油机发送的设置应答信息。本实施例通过主动设置加油机中的数据,可以有效的提高加油机数据的处理效率。
205、通过第二数据采集通道,采集至少一个液位仪发送的原始数据。
206、根据集线器通道信息,确定每个第二数据采集通道对应的数据解析协议。
207、基于每个第二数据采集通道对应的数据解析协议,对每个液位仪发送的原始数据进行解析,得到每个液位仪的油罐数据。
具体的,通过将集线器上预留的第二数据采集通道的数据采集接口与液位仪的数据采集接口进行连接,集线器可以对液位仪发送的原始数据进行采集,其中,集线器上的每个第二数据采集通道与一个液位仪的通信模块连接,并用于采集一个液位仪发送的原始数据。进一步的,集线器的控制器中封装有多种型号和类型的液位仪的数据解析协议,通过预先配置的第二数据采集通道的通道信息,可以确定每个第二数据采集通道对应的数据解析协议,基于每个第二数据采集通道对应的数据解析协议,可以对每个液位仪发送的原始数据进行解析,得到每个液位仪的油罐数据,其中,油罐数据可以包括油体积、水体积、油高、水高、温度、压力、密度、进油量、侧漏量等数据。
在一个实施例中,集线器也可以主动查询液位仪中的相关信息,具体实现方式为:响应于第二信息查询请求,将所述第二信息查询请求通过所述第二数据采集通道发送至所述液位仪中,其中,所述第二信息查询请求中携带有油体积、水体积、油高、水高、温度、压力、密度、进油量、侧漏量中的至少一种信息;接收所述液位仪发送的第二查询应答信息,并基于所述第二数据采集通道对应的数据解析协议,对所述第二查询应答信息进行解析,得到第二信息查询结果;将所述第二信息查询结果保存在所述集线器的存储器中。在本实施例中,集线器可以通过第二信息查询请求同时查询液位仪中的一种或多种数据,并且,集线器也可以通过定时的方式查询液位仪中的数据,通过主动查询液位仪中的数据,可以有效的提高液位仪数据的采集效率。
208、将加油机的运行数据和油枪状态数据以及液位仪的油罐数据保存在集线器的存储器中。
具体的,集线器可以通过MRAM存储数据,以防止数据掉电丢失。在本实施例中,集线器中的数据主要包括两部分,分别为固定的数据内容和缓存的油机数据。其中,固定的数据内容主要包括系统信息、油枪信息和通道信息等信等等。系统信息包括数据版本、系统IP地址、系统时间、最后一次启动时间、累积启动次数、系统运行状态、程序启动错误计数等等,油枪信息包括枪号、枪状态、最近一次加油金额/升数、泵码、状态标志、提枪时间、油机交易流水号、加油卡的卡类别和卡号等等,通道信息包括通道编号、交易数量和交易数据列表等等。进一步的,缓存的油机数据主要包括加油机的实时信息和交易数据,其中,交易数据缓存至一定数量后,可以写入本地交易文件中,以此减少写flash的次数,并增加flash的寿命。
在一个实施例中,集线器可以将采集到的每个所述加油机的运行数据和油枪状态数据、以及每个所述液位仪的油罐数据保存在缓存空间中,并判断所述缓存空间中的数据量是否达到预设值,若所述缓存空间中的数据量达到所述预设值,则将所述缓存空间中的交易数据和油罐数据保存在所述集线器的存储器中。此外,集线器也可以实现掉电数据防丢失的功能,即当所述集线器掉电时,将最近一次采集到的每个所述加油机的运行数据和油枪状态数据、以及最近一次采集到的每个所述液位仪的油罐数据保存在所述集线器的存储器中。
209、将集线器中存储的加油机的运行数据和油枪状态数据以及液位仪的油罐数据发送至零管系统中。
具体的,集线器可以通过有线网络与零管系统进行通信,零管系统可以通过网络查询或设置集线器中的相关信息,包括:查询或设置集线器配置信息,查询集线器保存的油机交易数据,查询或设置集线器时间,查询集线器保存交易的最大交易流水号,授权或取消授权加油,查询油枪累积输出油量,设置或查询油机单价,获取油罐数据等等。在本实施例中,集线器配置信息可以通过配置工具手动配置,也可通过零管系统远程配置,零管系统可以主动查询集线的数据,集线器也可以主动上报数据给零管系统。
在一个实施例中,零管系统查询集线器中的数据可以通过以下方法实现:接收所述零管系统发送的第三信息查询请求,并根据所述第三信息查询请求中携带的信息,确定待查询信息,其中,所述第三信息查询请求中携带有所述集线器通道信息、交易数据、油罐数据、集线器时间、加油机累计输出油量和油品单价中的至少一种信息,在所述集线器的存储器中读取出与所述待查询信息对应的查询结果,并将所述查询结果发送至所述零管系统。本实施 例中,零管系统可以通过第三信息查询请求同时查询集线器中的一种或多种数据,并且,零管系统也可以通过定时的方式查询集线器中的数据,通过主动查询集线器中的数据,可以有效的提高加油机数据的处理效率。
在一个实施例中,零管系统设置集线器中的数据可以通过以下方法实现:接收所述零管系统发送的第二信息设置请求,并根据所述第二信息设置请求中携带的信息,确定待设置信息,其中,所述第二信息设置请求中携带有所述集线器通道信息、集线器时间、授权加油开启指令、授权加油关闭指令和油品单价中的至少一种信息,根据所述第二信息设置请求中携带的信息所对应的数值,对所述待设置信息进行设置,并将设置结果保存在所述集线器的存储器中。在本实施例中,零管系统可以通过第二信息设置请求同时设置集线器中的一种或多种数据。本实施例通过主动设置集线器中的数据,可以有效的提高加油机数据的处理效率。
在上述实施例中,从硬件上,集线器可支持多种协议和接口的硬件设备接入,从软件上,集线器每通道可支持不同协议的硬件,通过在配置工具中添加协议的方式,可支持任何新的串口硬件接入,包括各型号的加油机和液位仪等设备。基于此,上述集线器可以从硬件和软件两方面保障数据采集和油机控制的高效性,从而减少集线器与油站中各设备连接布线复杂度,同时降低加油机的数字化改造成本。
本实施例提供的加油机数据处理方法,通过将集线器的第一数据采集通道与每个加油机的通信模块连接,将集线器的第二数据采集通道与每个液位仪的通信模块连接,并通过预先配置的集线器通道信息,依次对每个加油机和液位仪发送的原始数据进行解析,得到每个加油机的运行数据和油枪状态数据,以及每个液位仪的油罐数据,可以使集线器同时对接多种型号和类型的加油机和液位仪,有效的提高了加油机和液位仪的数据采集效率。并且,上述方法支持多种数据查询方式和数据设置方式,可以有效的提高加油机和液位仪的数据处理效率,此外,上述集线器与加油机和液位仪的连接方式简单,线路布置复杂度比较低,可以有效的降低加油机和液位仪的数字化改造成本。
进一步的,作为图1、图2所示方法的具体实现,本实施例提供了一种加油机数据处理装置,如图3所示,该装置包括:数据采集模块31、协议确定模块32和数据解析模块33,其中,
数据采集模块31,可用于通过所述第一数据采集通道,采集至少一个所述加油机发送的原始数据;
协议确定模块32,可用于根据预先配置的集线器通道信息,确定每个所述第一数据采集通道对应的数据解析协议;
数据解析模块33,可用于基于每个所述第一数据采集通道对应的数据解析协议,对每个所述加油机发送的原始数据进行解析,得到每个所述加油机的运行数据和油枪状态数据。
在具体的应用场景中,所述数据采集模块31,还可用于通过所述第二数据采集通道,采集至少一个所述液位仪发送的原始数据;协议确定模块32,还可用于根据所述集线器通道信息,确定每个所述第二数据采集通道对应的数据解析协议;数据解析模块33,还可用于基于每个所述第二数据采集通道对应的数据解析协议,对每个所述液位仪发送的原始数据进行解析,得到每个所述液位仪的油罐数据。
在具体的应用场景中,如图4所示,本装置还包括通道配置模块34,所述通道配置模块34具体可用于接收与所述集线器网络连接的配置工具发送的所述集线器通道信息,其中,所述集线器通道信息包括所述第一数据采集通道的通道编号、协议编号、通信参数、自动授权标志、油机日志标志、油枪数量、油枪编号和油品代码,以及所述第二数据采集通道的通道编号、协议编号和通信参数;将所述集线器通道信息保存在所述集线器的存储器中。
在具体的应用场景中,如图4所示,本装置还包括数据查询模块35,所述数据查询模块35具体可用于响应于第一信息查询请求,将所述第一信息查询请求通过所述第一数据采集通道发送至所述加油机中,其中,所述第一信息查询请求中携带有加油机累计输出油量、油品单价和加油机工作模式中的至少一种信息;接收所述加油机发送的第一查询应答信息,并基于所述第一数据采集通道对应的数据解析协议,对所述第一查询应答信息进行解析,得到第一信息查询结果;将所述第一信息查询结果保存在所述集线器的存储器中。
在具体的应用场景中,所述数据查询模块35还可用于响应于第二信息查询请求,将所述第二信息查询请求通过所述第二数据采集通道发送至所述液位仪中,其中,所述第二信息查询请求中携带有油体积、水体积、油高、水高、温度、压力、密度、进油量、侧漏量中的至少一种信息;接收所述液位仪发送的第二查询应答信息,并基于所述第二数据采集通道对应的数据解析协议,对所述第二查询应答信息进行解析,得到第二信息查询结果;将所述第二信息查询结果保存在所述集线器的存储器中。
在具体的应用场景中,如图4所示,本装置还包括数据设置模块36,所述数据设置模块36具体可用于响应于第一信息设置请求,将所述第一信息设 置请求通过所述第一数据采集通道发送至所述加油机中,其中,所述第一信息设置请求中携带有定量加油开启指令、定量加油关闭指令、油品单价和加油机工作模式中的至少一种信息;接收所述加油机的设置应答信息,并通过所述第一数据采集通道对应的数据解析协议,对所述设置应答信息进行解析,得到信息设置结果。
在具体的应用场景中,所述数据查询模块35,具体可用于接收所述零管系统发送的第三信息查询请求,并根据所述第三信息查询请求中携带的信息,确定待查询信息,其中,所述第三信息查询请求中携带有所述集线器通道信息、交易数据、油罐数据、集线器时间、加油机累计输出油量和油品单价中的至少一种信息;在所述集线器的存储器中读取出与所述待查询信息对应的查询结果,并将所述查询结果发送至所述零管系统。
在具体的应用场景中,所述数据设置模块36,具体可用于接收所述零管系统发送的第二信息设置请求,并根据所述第二信息设置请求中携带的信息,确定待设置信息,其中,所述第二信息设置请求中携带有所述集线器通道信息、集线器时间、授权加油开启指令、授权加油关闭指令和油品单价中的至少一种信息;根据所述第二信息设置请求中携带的信息所对应的数值,对所述待设置信息进行设置,并将设置结果保存在所述集线器的存储器中。
在具体的应用场景中,如图4所示,本装置还包括数据存储模块37,所述数据存储模块37具体可用于将每个所述加油机的运行数据和油枪状态数据、以及每个所述液位仪的油罐数据保存在缓存空间中,并判断所述缓存空间中的数据量是否达到预设值;若所述缓存空间中的数据量达到所述预设值,则将所述缓存空间中的交易数据和油罐数据保存在所述集线器的存储器中;和/或当所述集线器掉电时,将最近一次采集到的每个所述加油机的运行数据和油枪状态数据、以及最近一次采集到的每个所述液位仪的油罐数据保存在所述集线器的存储器中。
需要说明的是,本实施例提供的一种加油机数据处理装置所涉及各功能单元的其它相应描述,可以参考图1、图2中的对应描述,在此不再赘述。
基于上述如图1、图2所示方法,相应的,本实施例还提供了一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述如图1、图2所示的加油机数据处理方法。
基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该待识别软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施场景所述的方法。
基于上述如图1、图2所示的方法,以及图3和图4所示的加油机数据处理装置实施例,为了实现上述目的,本实施例还提供了一种加油机数据处理的实体设备,具体可以为个人计算机、服务器、智能手机、平板电脑、智能手表、或者其它网络设备等,该实体设备包括存储介质和处理器;存储介质,用于存储计算机程序;处理器,用于执行计算机程序以实现上述如图1、图2所示的方法。
在一个实施例中,该实体设备还可以包括用户接口、网络接口、摄像头、射频(RadioFrequency,RF)电路,传感器、音频电路、WI-FI模块等等。用户接口可以包括显示屏(Display)、输入单元比如键盘(Keyboard)等,可选用户接口还可以包括USB接口、读卡器接口等。网络接口在本实施例中可以包括标准的有线接口、无线接口(如WI-FI接口)等。
本领域技术人员可以理解,本实施例提供的一种加油机数据处理的实体设备结构并不构成对该实体设备的限定,可以包括更多或更少的部件,或者组合某些部件,或者不同的部件布置。
存储介质中还可以包括操作系统、网络通信模块。操作系统是管理上述实体设备硬件和待识别软件资源的程序,支持信息处理程序以及其它待识别软件和/或程序的运行。网络通信模块用于实现存储介质内部各组件之间的通信,以及与信息处理实体设备中其它硬件和软件之间通信。
在一个实施例中,如图5所示,提供了一种加油机数据处理系统,该系统包括至少一个加油机10、集线器20和零管系统30,其中,所述集线器20包括至少一个第一数据采集通道,每个所述第一数据采集通道与一个所述加油机10的通信模块连接,所述集线器20还通过网络与所述零管系统30通信连接,所述集线器20可以采集加油机10发送的原始数据,并通过预先配置的每一个数据采集通道对应的数据解析协议,依次对每个加油机10发送的原始数据进行解析,得到每个加油机10的运行数据和油枪状态数据,以使集线器20可以同时对接多种型号和类型的加油机10,从而提高加油机数据采集的效率。
在一个实施例中,如图6所示,所述加油机数据处理系统还包括至少一个液位仪40,所述集线器20还包括至少一个第二数据采集通道,其中,每个所述第二数据采集通道可以与一个所述液位仪40的通信模块连接。在本实施例中,所述集线器20可以采集液位仪40发送的原始数据,并通过预先配置的每一个第二数据采集通道对应的数据解析协议,依次对每个液位仪40发送的原始数据进行解析,得到每个液位仪40的油罐数据,以使集线器20可以同时对接多种型号和类型的液位仪40,从而提高液位仪数据采集的效率。
在一个实施例中,如图6所示,所述加油机数据处理系统还包括至少一个通信中转装置50,所述集线器20还包括至少一个第三数据采集通道,其中,每个所述第三数据采集与一个所述通信中转装置50的第一通信模块连接,所述通信中转装置50的第二通信模块与所述加油机20的通信模块连接。在本实施中,对于型号各异的加油机,可以通过通信中转装置读取加油机中的数据,并将数据解析为实时数据和交易数据后发送至集线器,集线器可以对接收到的数据进行保存和上传。此外,集线器还可以在通信中转装置中设置授权标志,以通过通信中转装置实现加油枪的控制。
在一个实施例中,如图6所示,所述加油机数据处理系统还包括云平台60,其中,所述零管系统30通过网络与所述云平台60通信连接,其中,所述云平台60用于对所述零管系统30中的数据进行采集和/或设置。在本实施例中,集线器可以通过硬件接口与加油站中的各个硬件设备连接,包括各型号的加油机和液位仪等,然后,集线器可以采集加油机和液位仪中的数据,并对数据进行解析和保存,进而响应于零管系统的查询请求,将数据上传至零管系统中,进一步的,零管系统可以将数据保存在数据库中,或上传至云平台中。
需要说明的是,上述各个实施例所述加油机数据处理系统中涉及到加油机数据处理方法部分的相应描述,可以参考各个加油机数据处理方法实施例的对应描述,在此不再赘述。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可以借助软件加必要的通用硬件平台的方式来实现,也可以通过硬件实现。通过将集线器的多个第一数据采集通道与每个加油机的通信模块连接,并通过预先配置的每一个数据采集通道对应的数据解析协议,依次对每个加油机发送的原始数据进行解析,得到每个加油机的运行数据和油枪状态数据。与现有技术相比,上述方法可以使集线器同时对接多种型号和类型的加油机,从而有效的提高加油机数据采集的效率。此外,上述集线器与加油机的连接方式简单,线路布置复杂度比较低,可以有效的降低加油机的数字化改造成本。
本领域技术人员可以理解附图只是一个优选实施场景的示意图,附图中的模块或流程并不一定是实施本申请所必须的。本领域技术人员可以理解实施场景中的装置中的模块可以按照实施场景描述进行分布于实施场景的装置中,也可以进行相应变化位于不同于本实施场景的一个或多个装置中。上述实施场景的模块可以合并为一个模块,也可以进一步拆分成多个子模块。
上述本申请序号仅仅为了描述,不代表实施场景的优劣。以上公开的仅为本申请的几个具体实施场景,但是,本申请并非局限于此,任何本领域的技术人员能思之的变化都应落入本申请的保护范围。
本公开的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的直播平台的消息处理设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图7示出了可以实现根据本发明的平台的消息处理的服务器。该服务器传统上包括处理器510和以存储器520形式的计算机程序产品或者计算机可读介质。存储器520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器520具有用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,用于程序代码的存储空间530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图8所述的便携式或者固定存储单元。该存储单元可以具有与图7的服务器中的存储器520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码531’,即可以由例如诸如510之类的处理器读取的代码,这些代码当由服务器运行时,导致该服务器执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实 施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。

Claims (18)

  1. 一种加油机数据处理方法,其中,所述加油机数据处理方法应用于集线器,所述集线器包括至少一个第一数据采集通道,每个所述第一数据采集通道用于与一个加油机的通信模块连接,所述方法包括:
    通过所述第一数据采集通道,采集至少一个所述加油机发送的原始数据;
    根据预先配置的集线器通道信息,确定每个所述第一数据采集通道对应的数据解析协议;
    基于每个所述第一数据采集通道对应的数据解析协议,对每个所述加油机发送的原始数据进行解析,得到每个所述加油机的运行数据和油枪状态数据。
  2. 根据权利要求1所述的方法,其中,所述集线器还包括至少一个第二数据采集通道,每个所述第二数据采集通道用于与一个液位仪的通信模块连接,所述方法还包括:
    通过所述第二数据采集通道,采集至少一个所述液位仪发送的原始数据;
    根据所述集线器通道信息,确定每个所述第二数据采集通道对应的数据解析协议;
    基于每个所述第二数据采集通道对应的数据解析协议,对每个所述液位仪发送的原始数据进行解析,得到每个所述液位仪的油罐数据。
  3. 根据权利要求2所述的方法,其中,在所述通过所述第一数据采集通道,采集至少一个所述加油机发送的原始数据之前,所述方法还包括:
    接收与所述集线器网络连接的配置工具发送的所述集线器通道信息,其中,所述集线器通道信息包括所述第一数据采集通道的通道编号、协议编号、通信参数、自动授权标志、油机日志标志、油枪数量、油枪编号和油品代码,以及所述第二数据采集通道的通道编号、协议编号和通信参数;
    将所述集线器通道信息保存在所述集线器的存储器中。
  4. 根据权利要求1所述的方法,其中,所述方法还包括:
    响应于第一信息查询请求,将所述第一信息查询请求通过所述第一数据采集通道发送至所述加油机中,其中,所述第一信息查询请求中携带有加油机累计输出油量、油品单价和加油机工作模式中的至少一种信息;
    接收所述加油机发送的第一查询应答信息,并基于所述第一数据采集通道对应的数据解析协议,对所述第一查询应答信息进行解析,得到第一信息查询结果;
    将所述第一信息查询结果保存在所述集线器的存储器中。
  5. 根据权利要求2所述的方法,其中,所述方法还包括:
    响应于第二信息查询请求,将所述第二信息查询请求通过所述第二数据采集通道发送至所述液位仪中,其中,所述第二信息查询请求中携带有油体积、水体积、油高、水高、温度、压力、密度、进油量、侧漏量中的至少一 种信息;
    接收所述液位仪发送的第二查询应答信息,并基于所述第二数据采集通道对应的数据解析协议,对所述第二查询应答信息进行解析,得到第二信息查询结果;
    将所述第二信息查询结果保存在所述集线器的存储器中。
  6. 根据权利要求1所述的方法,其中,所述方法还包括:
    响应于第一信息设置请求,将所述第一信息设置请求通过所述第一数据采集通道发送至所述加油机中,其中,所述第一信息设置请求中携带有定量加油开启指令、定量加油关闭指令、油品单价和加油机工作模式中的至少一种信息;
    接收所述加油机的设置应答信息,并通过所述第一数据采集通道对应的数据解析协议,对所述设置应答信息进行解析,得到信息设置结果。
  7. 根据权利要求1-6任一项所述的方法,其中,所述集线器还通过网络与零管系统通信连接,所述方法还包括:
    接收所述零管系统发送的第三信息查询请求,并根据所述第三信息查询请求中携带的信息,确定待查询信息,其中,所述第三信息查询请求中携带有所述集线器通道信息、交易数据、油罐数据、集线器时间、加油机累计输出油量和油品单价中的至少一种信息;
    在所述集线器的存储器中读取出与所述待查询信息对应的查询结果,并将所述查询结果发送至所述零管系统。
  8. 根据权利要求7所述的方法,其中,所述方法还包括:
    接收所述零管系统发送的第二信息设置请求,并根据所述第二信息设置请求中携带的信息,确定待设置信息,其中,所述第二信息设置请求中携带有所述集线器通道信息、集线器时间、授权加油开启指令、授权加油关闭指令和油品单价中的至少一种信息;
    根据所述第二信息设置请求中携带的信息所对应的数值,对所述待设置信息进行设置,并将设置结果保存在所述集线器的存储器中。
  9. 根据权利要求1-6任一项所述的方法,其中,所述方法还包括:
    将每个所述加油机的运行数据和油枪状态数据、以及每个所述液位仪的油罐数据保存在缓存空间中,并判断所述缓存空间中的数据量是否达到预设值;
    若所述缓存空间中的数据量达到所述预设值,则将所述缓存空间中的交易数据和油罐数据保存在所述集线器的存储器中;
    和/或当所述集线器掉电时,将最近一次采集到的每个所述加油机的运行数据和油枪状态数据、以及最近一次采集到的每个所述液位仪的油罐数据保存在所述集线器的存储器中。
  10. 一种加油机数据处理装置,其中,所述装置包括:
    数据采集模块,用于通过所述第一数据采集通道,采集至少一个所述加油机发送的原始数据;
    协议确定模块,用于根据预先配置的集线器通道信息,确定每个所述第一数据采集通道对应的数据解析协议;
    数据解析模块,用于基于每个所述第一数据采集通道对应的数据解析协议,对每个所述加油机发送的原始数据进行解析,得到每个所述加油机的运行数据和油枪状态数据。
  11. 一种存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至9中任一项所述的方法的步骤。
  12. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至9中任一项所述的方法的步骤。
  13. 一种加油机数据处理系统,其中,所述系统包括至少一个加油机、集线器和零管系统,其中,所述集线器包括至少一个第一数据采集通道,每个所述第一数据采集通道与一个所述加油机的通信模块连接,所述集线器还通过网络与所述零管系统通信连接,所述集线器执行如权利要求1至9中任一项所述的方法。
  14. 根据权利要求13所述的系统,其中,所述系统还包括至少一个液位仪,所述集线器还包括至少一个第二数据采集通道,其中,每个所述第二数据采集通道与一个所述液位仪的通信模块连接。
  15. 根据权利要求13所述的系统,其中,所述系统还包括至少一个通信中转装置,所述集线器还包括至少一个第三数据采集通道,其中,每个所述第三数据采集与一个所述通信中转装置的第一通信模块连接,所述通信中转装置的第二通信模块与所述加油机的通信模块连接。
  16. 根据权利要求13所述的系统,其中,所述系统还包括云平台,其中,所述零管系统通过网络与所述云平台通信连接,其中,所述云平台用于对所述零管系统中的数据进行采集和/或设置。
  17. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在服务器上运行时,导致所述服务器执行根据权利要求1至9中任一项所述的方法的步骤。
  18. 一种计算机可读介质,其中存储了如权利要求17所述的计算机程序。
PCT/CN2023/121017 2022-12-23 2023-09-25 加油机数据处理方法、装置、存储介质、电子设备和系统 WO2023241745A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211660740.9A CN116248712A (zh) 2022-12-23 2022-12-23 加油机数据处理方法、装置、存储介质、电子设备和系统
CN202211660740.9 2022-12-23

Publications (1)

Publication Number Publication Date
WO2023241745A1 true WO2023241745A1 (zh) 2023-12-21

Family

ID=86630427

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/121017 WO2023241745A1 (zh) 2022-12-23 2023-09-25 加油机数据处理方法、装置、存储介质、电子设备和系统

Country Status (2)

Country Link
CN (1) CN116248712A (zh)
WO (1) WO2023241745A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116248712A (zh) * 2022-12-23 2023-06-09 能链能科(青岛)控股有限公司 加油机数据处理方法、装置、存储介质、电子设备和系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090129403A1 (en) * 2007-11-20 2009-05-21 Harrell Daniel C Fueling Facility Communication
CN108416929A (zh) * 2018-02-24 2018-08-17 深圳市喂车科技有限公司 加油方法、装置、系统、计算机装置及计算机可读存储介质
CN108483386A (zh) * 2018-02-24 2018-09-04 深圳市喂车科技有限公司 加油方法、装置、系统、计算机装置及计算机可读存储介质
CN113178037A (zh) * 2021-03-11 2021-07-27 深圳市喂车科技有限公司 加油方法、装置、系统、计算机装置及计算机可读存储介质
CN115242894A (zh) * 2022-06-08 2022-10-25 三一智矿科技有限公司 数据处理方法、装置、存储介质和计算机设备
CN116248712A (zh) * 2022-12-23 2023-06-09 能链能科(青岛)控股有限公司 加油机数据处理方法、装置、存储介质、电子设备和系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090129403A1 (en) * 2007-11-20 2009-05-21 Harrell Daniel C Fueling Facility Communication
CN108416929A (zh) * 2018-02-24 2018-08-17 深圳市喂车科技有限公司 加油方法、装置、系统、计算机装置及计算机可读存储介质
CN108483386A (zh) * 2018-02-24 2018-09-04 深圳市喂车科技有限公司 加油方法、装置、系统、计算机装置及计算机可读存储介质
CN113178037A (zh) * 2021-03-11 2021-07-27 深圳市喂车科技有限公司 加油方法、装置、系统、计算机装置及计算机可读存储介质
CN115242894A (zh) * 2022-06-08 2022-10-25 三一智矿科技有限公司 数据处理方法、装置、存储介质和计算机设备
CN116248712A (zh) * 2022-12-23 2023-06-09 能链能科(青岛)控股有限公司 加油机数据处理方法、装置、存储介质、电子设备和系统

Also Published As

Publication number Publication date
CN116248712A (zh) 2023-06-09

Similar Documents

Publication Publication Date Title
CN107979493B (zh) 平台即服务paas容器平台的构建方法、服务器及存储介质
CN108427705B (zh) 电子装置、分布式系统日志查询方法及存储介质
WO2023241745A1 (zh) 加油机数据处理方法、装置、存储介质、电子设备和系统
CN105611330B (zh) 智能电视维护方法、系统及一种服务器、一种移动终端
CN101840234B (zh) 嵌入式汽车故障诊断设备及其升级方法
EP2799995A1 (en) Information interaction test device and method based on automatic generation of associated test cases
CN109656807A (zh) 基于信息安全的接口mock测试方法、装置、设备及存储介质
CN110086658B (zh) 接口切换方法、装置及计算机可读存储介质
WO2020000720A1 (zh) 服务器、报文处理方法、程序和计算机可读存储介质
CN104899274B (zh) 一种内存数据库高效远程访问方法
EP3907631B1 (en) Applet processing method and apparatus, device and storage medium
US10963888B2 (en) Payment complaint method, device, server and readable storage medium
CN110928561B (zh) 车辆控制器软件版本管理方法、装置、车辆和存储介质
EP3594766A1 (en) Data collection system and data collection method
CN105320553A (zh) 一种基于国产处理器平台更新网卡固件的方法及系统
WO2023241744A2 (zh) 加油机数据处理装置、方法、存储介质、电子设备和系统
CN111611207A (zh) 状态数据处理方法、装置及计算机设备
CN106775818B (zh) 基于can总线的ecu升级方法及ecu升级设备
CN104516736A (zh) 一种售后诊断系统开发平台
CN114358326A (zh) 一种家电的故障处理方法、终端及可读存储介质
CN108959952B (zh) 数据平台权限控制方法、装置和设备
CN111125168A (zh) 一种数据处理方法、装置、电子设备及存储介质
CN110597685A (zh) 一种服务器系统日志Log文件收集工具及方法
CN110704486A (zh) 数据处理方法、装置、系统、存储介质和服务器
CN112231118B (zh) 一种聚合支付平台、系统及方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23823311

Country of ref document: EP

Kind code of ref document: A1