Abnormal refueling processing method

文档序号:1355414 发布日期:2020-07-24 浏览:15次 中文

阅读说明:本技术 异常加油的处理方法 (Abnormal refueling processing method ) 是由 马万龙 牛立 王石峰 罗赛 于 2020-04-20 设计创作,主要内容包括:本发明提供了一种异常加油的处理方法,包括:接收加油请求消息;根据加油站ID,确定加油站ID的第一位置信息根据标签ID,查询预设的对照表,确定车辆ID和目标用户账户信息;根据车辆ID,向车载终端发送位置请求消息;位置请求消息包括车辆ID;接收车载终端发送的第二位置信息;第二位置信息为车辆位置信息;根据目标用户账户信息,确定目标账户信息对应的用户终端的第三位置信息;当第一位置信息、第二位置信息和/或第三位置信息的差值有一个不在预设的范围内时,确定加油请求消息为异常加油请求消息,并生成异常通知消息;将异常通知消息发送给用户终端。由此,可以判定是否为异常加油,并在异常加油时,通知用户终端,用户账户信息的安全。(The invention provides a method for processing abnormal oiling, which comprises the following steps: receiving a refueling request message; according to the gas station ID, determining first position information of the gas station ID, inquiring a preset comparison table according to the tag ID, and determining a vehicle ID and target user account information; according to the vehicle ID, sending a position request message to the vehicle-mounted terminal; the location request message includes a vehicle ID; receiving second position information sent by the vehicle-mounted terminal; the second position information is vehicle position information; determining third position information of the user terminal corresponding to the target account information according to the target user account information; when the difference value of the first position information, the second position information and/or the third position information is not in a preset range, determining the refueling request message as an abnormal refueling request message, and generating an abnormal notification message; and sending the abnormity notification message to the user terminal. Therefore, whether the refueling is abnormal or not can be judged, and the user terminal is informed when the refueling is abnormal, so that the safety of the user account information can be realized.)

1. A method of handling abnormal refueling, the method comprising:

receiving a refueling request message; the refueling request message comprises a tag ID and a gas station ID;

determining first position information of the gas station ID according to the gas station ID;

inquiring a preset comparison table according to the tag ID, and determining the vehicle ID and the target user account information;

according to the vehicle ID, sending a position request message to a vehicle-mounted terminal; the location request message includes a vehicle ID;

receiving second position information sent by the vehicle-mounted terminal; the second position information is vehicle position information;

determining third position information of the user terminal corresponding to the target account information according to the target user account information;

when the difference value of the first position information, the second position information and/or the third position information is not in a preset range, determining the refueling request message as an abnormal refueling request message, and generating an abnormal notification message;

and sending the abnormal notification message to a user terminal.

2. The method according to claim 1, wherein said receiving a fueling request message specifically comprises:

receiving a refueling request message after refueling equipment receives a tag ID sent by a card reader on a fuel gun; alternatively, the first and second electrodes may be,

and receiving a refueling request message sent by a communication module on the oil gun after the card reader on the oil gun reads the ID of the tag.

3. The method according to claim 1, wherein the determining that the fueling request message is an abnormal fueling request message when the difference between the first location information and the second location information, and/or the third location information is not within a preset range comprises:

when the difference value between the first position information and the second position information is not within a preset range, determining that the refueling request message is an abnormal refueling request message; alternatively, the first and second electrodes may be,

when the difference value between the first position information and the third position information is not within a preset range, determining that the refueling request message is an abnormal refueling request message; alternatively, the first and second electrodes may be,

and when the difference value of the first position information, the second position information and the third position information is not in a preset range, determining that the refueling request message is an abnormal refueling request message.

4. The method according to claim 1, wherein the sending the exception notification message to the ue specifically includes:

when the comparison table comprises a fleet ID, the abnormal notification message is sent to a user terminal of a leader of the fleet ID according to the fleet ID corresponding to the vehicle ID; the exception notification message comprises second position information and/or third position information;

and when the comparison table does not comprise the fleet ID, the abnormal notification message is sent to the user terminal corresponding to the vehicle ID according to the vehicle ID.

5. The method of claim 1, further comprising:

and marking the user account information as an abnormal user account.

6. The method of claim 1, further comprising:

generating an refueling refusal message according to the abnormal notification message; the refueling refusal information includes a gas station ID;

and sending the refueling refusal message to the refueling equipment.

7. An apparatus, comprising a memory for storing a program and a processor for performing the method of any one of claims 1-7.

8. A computer program product comprising instructions for causing a computer to perform the method according to any one of claims 1 to 7 when the computer program product is run on the computer.

9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method according to any one of claims 1-7.

Technical Field

The invention relates to the technical field of data processing, in particular to a processing method for abnormal refueling.

Background

People can see the warning words of 'strictly forbidden fireworks' and often see the related slogan of 'forbidden mobile phone' at a gas station, and the gas station is a special place and is easy to cause the leakage of explosive gases such as gasoline, natural gas and the like.

Disclosure of Invention

The embodiment of the invention aims to provide a method for processing abnormal refueling, so as to avoid refueling operation under abnormal conditions.

In order to solve the above problem, in a first aspect, the present invention provides a method for processing abnormal refueling, including:

receiving a refueling request message; the refueling request message comprises a tag ID and a gas station ID;

determining first position information of the gas station ID according to the gas station ID;

inquiring a preset comparison table according to the tag ID, and determining the vehicle ID and the target user account information;

according to the vehicle ID, sending a position request message to a vehicle-mounted terminal; the location request message includes a vehicle ID;

receiving second position information sent by the vehicle-mounted terminal; the second position information is vehicle position information;

determining third position information of the user terminal corresponding to the target account information according to the target user account information;

when the difference value of the first position information, the second position information and/or the third position information is not in a preset range, determining the refueling request message as an abnormal refueling request message, and generating an abnormal notification message;

and sending the abnormal notification message to a user terminal.

In a possible implementation manner, the receiving the fueling request message specifically includes:

receiving a refueling request message after refueling equipment receives a tag ID sent by a card reader on a fuel gun; alternatively, the first and second electrodes may be,

and receiving a refueling request message sent by a communication module on the oil gun after the card reader on the oil gun reads the ID of the tag.

In a possible implementation manner, when a difference between the first location information and the second location information, and/or the third location information is not within a preset range, the determining that the fueling request message is an abnormal fueling request message specifically includes:

when the difference value between the first position information and the second position information is not within a preset range, determining that the refueling request message is an abnormal refueling request message; alternatively, the first and second electrodes may be,

when the difference value between the first position information and the third position information is not within a preset range, determining that the refueling request message is an abnormal refueling request message; alternatively, the first and second electrodes may be,

and when the difference value of the first position information, the second position information and the third position information is not in a preset range, determining that the refueling request message is an abnormal refueling request message.

In a possible implementation manner, the sending the exception notification message to the user terminal specifically includes:

when the comparison table comprises a fleet ID, the abnormal notification message is sent to a user terminal of a leader of the fleet ID according to the fleet ID corresponding to the vehicle ID; the exception notification message comprises second position information and/or third position information;

and when the comparison table does not comprise the fleet ID, the abnormal notification message is sent to the user terminal corresponding to the vehicle ID according to the vehicle ID.

In one possible implementation, the method further includes:

and marking the user account information as an abnormal user account.

In one possible implementation, the method further includes:

generating an refueling refusal message according to the abnormal notification message; the refueling refusal information includes a gas station ID;

and sending the refueling refusal message to the refueling equipment.

In a second aspect, the invention provides an apparatus comprising a memory for storing a program and a processor for performing the method of any of the first aspects.

In a third aspect, the present invention provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method according to any one of the first aspect.

In a fourth aspect, the invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method of any of the first aspects.

By applying the processing method for abnormal refueling provided by the embodiment of the invention, the position information of the label, the vehicle and/or the user terminal during refueling is judged, so that whether the refueling is abnormal or not is judged, the user terminal is informed during abnormal refueling to avoid refueling operation during abnormal refueling, and the user account information is locked under the abnormal condition, so that the safety of the user account information is ensured.

Drawings

Fig. 1 is a schematic flow chart of a method for processing abnormal fueling according to an embodiment of the present invention.

Detailed Description

The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be further noted that, for the convenience of description, only the portions related to the related invention are shown in the drawings.

It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.

The first, second, etc. numbering is used only for distinguishing and has no other meaning.

Fig. 1 is a schematic flow chart of a method for processing abnormal fueling according to an embodiment of the present invention. The method is applied to the scene of refueling at a gas station. The execution subject of the method is a first server, and the first server may be a Point of sale (POS) server having a calculation processing function. As shown in fig. 1, the method comprises the steps of:

step 110, receiving a refueling request message; wherein the refueling request message comprises a tag ID, a gas station ID and a gun ID.

Wherein the fueling request message may further include the first time information.

The gas station ID can be a number of gas stations, each having a unique number. For example, the gas station number may be "1110".

The oil gun ID can include the serial number of oil gun, and the oil gun can be different according to the petrol model that corresponds, divide into the oil gun of different serial numbers, for example 001 can correspond No. 92 petrol, 002 can correspond No. 95 petrol, on each filling equipment, can have one or more oil gun, when a plurality of oil guns, these oil guns can correspond the petrol of the same model, also can correspond the petrol of different models. The configuration of the gun ID may be station ID + fueling apparatus ID + gun number, such as "1110012001" may mean: the gas station number "1110", the fueling equipment number "012", and the gun number "001" make it possible to obtain which gun is under which fueling equipment under the gas station where the gun ID is located.

In the present application, the received fueling request message may be sent by a card reading device on the fuel gun, or may be sent by the fueling equipment. The refueling device is provided with a communication module and a processing module. And a communication module in the refueling device can respectively transmit data with the POS system server and the oil gun.

When the refueling request message is sent by a card reading device on the fuel gun, the fuel gun of the refueling station is provided with the card reading device, the card reading device comprises a card reader, a communication module and a memory, and the memory can store the ID of the refueling station and the ID of the fuel gun. The card reader can read and decode the label on the fuel tank cover of the vehicle to obtain the label ID, and the communication module in the fuel gun can package the label ID, the ID of the gas station in the memory and the ID of the fuel gun to generate a fuel filling request message and send the fuel filling request message to the POS system server.

When the refueling request message is sent by a card reading device on the refueling gun, the refueling gun of the refueling station is provided with the card reading device, the card reading device comprises a card reader and a communication module, the card reader can read and decode a label on a fuel tank cover of a vehicle to obtain a label ID, the communication module in the refueling gun can send the label ID to the communication module in the refueling device, and a processing module on the refueling device packages the refueling request message generated after the refueling station ID, the refueling gun ID and the label ID and sends the refueling request message to a POS system server.

The tag may be a Radio Frequency Identification (RFID) tag, and the tag ID may be obtained by decoding the tag. The first time information may be a time when the card reader scans a code.

Step 120, determining first location information of the gas station ID according to the gas station ID.

Specifically, the first location information may be longitude and latitude information of the gas stations, each gas station has a unique number, and the number can be searched through a gas station ID, so that the longitude and latitude of the gas station can be determined according to the gas station ID.

And step 130, inquiring a preset comparison table according to the tag ID, and determining the vehicle ID and the target user account information.

Specifically, one tag ID may correspond to one piece of vehicle information, and the vehicle information includes a vehicle Identifier (ID) and vehicle type information. The vehicle ID is a unique identification of the vehicle, and may be a license plate number or a globally unique number of the vehicle.

One tag ID corresponds to one piece of vehicle information, one user can have one or more vehicles, namely one user can have one tag ID or a plurality of tag IDs, but one user only corresponds to one piece of user account information, and the corresponding relations are stored in a preset tag ID and user account information comparison table. Therefore, after the POS system server receives the refueling request message, the refueling request message is unpacked, the user account information and the vehicle ID corresponding to the tag ID are determined according to the tag ID, and the user account information corresponding to the current tag ID is used as the target user account information.

The user account information may be an account number of the user stored in the POS system server, and under the account number, the vehicle ID, the vehicle type, the user terminal ID, the user ID to which the vehicle belongs, the fleet ID to which the vehicle belongs, and the user contact information may be provided, for example, a mobile phone number of the user.

Step 140, sending a position request message to the vehicle-mounted terminal according to the vehicle ID; the location request message includes a vehicle ID.

Step 150, receiving second position information sent by the vehicle-mounted terminal; the second position information is vehicle position information.

Specifically, a vehicle-mounted terminal is arranged on the vehicle, a positioning module can be arranged in the vehicle-mounted terminal, or the vehicle-mounted terminal communicates with a vehicle-mounted sensor arranged on the vehicle, such as a GPS, so that the POS system server can communicate with the vehicle-mounted terminal, and can acquire a second position where the vehicle is currently located. And the second position information is the longitude and latitude where the vehicle is located currently.

And step 160, determining third position information of the user terminal corresponding to the target account information according to the target user account information.

Specifically, the user account information includes a user terminal ID, the terminal may be a mobile phone, an IPAD, or other device, and when the terminal is a mobile phone, the terminal ID may be a unique identification code of the mobile phone. When the account information of the target user is logged in at the terminal, the user terminal ID can be stored in the account information of the target user.

The POS system server may send an inquiry request message to the user terminal according to the terminal ID, and the user terminal may obtain third location information of the terminal corresponding to the terminal ID through the base station, where the third location information is also latitude and longitude information. The user terminal may then transmit the third location information to the POS system server as response information.

And step 170, when the difference value between the first position information and the second position information, and/or the difference value between the third position information is not within the preset range, determining that the refueling request message is an abnormal refueling request message, and generating an abnormal notification message.

Specifically, when the difference value between the first position information and the second position information is not within a preset range, determining that the refueling request message is an abnormal refueling request message; alternatively, the first and second electrodes may be,

when the difference value of the first position information and the third position information is not in a preset range, determining that the refueling request message is an abnormal refueling request message; alternatively, the first and second electrodes may be,

and when the difference value of the first position information, the second position information and the third position information is not in a preset range, determining that the refueling request message is an abnormal refueling request message.

Therefore, whether the refueling request message is a normal refueling request message can be determined through the position determination, so that the refueling operation is avoided when the vehicle is abnormal.

Step 180, the exception notification message is sent to the user terminal.

Specifically, when the comparison table includes a fleet ID, the abnormality notification message is sent to the user terminal of the leader of the fleet ID according to the fleet ID corresponding to the vehicle ID;

and when the fleet ID is not included in the comparison table, sending the abnormal notification message to a user terminal corresponding to the vehicle ID according to the vehicle ID.

In one example, if the tag is stolen, the third location information may be sent to the user terminal through the processing method of abnormal refueling of the present application, so that the user terminal can locate the location of the tag.

In another example, if both the tag and the vehicle are stolen, the second location information can be sent to the user terminal through the abnormal refueling processing method of the application, so that the user terminal can locate the location of the vehicle.

In another example, if both the tag and the vehicle are stolen, the second location information and the third location information can be both sent to the user terminal through the abnormal refueling processing method of the application, so that the user terminal can locate the positions of the vehicle and the tag.

Therefore, the method and the device can judge whether the abnormal refueling request message is matched through the position information, so that the abnormal refueling condition can be judged, and the user terminal is informed when the abnormal refueling request message is abnormal, and meanwhile, the refueling operation is refused, so that the refueling operation under the abnormal condition is avoided.

Further, the present application may further include:

and marking the user account information as an abnormal user account.

Specifically, for abnormal refueling, the user account information can be locked, so that the safety of the user account information is ensured during abnormal refueling.

Further, the present application may further include:

generating a refueling refusal message according to the abnormal notification message; the refueling refusal information includes a gas station ID;

and sending the refueling refusing message to the refueling equipment.

In the application, if abnormal refueling is determined, the refueling refusal message can be sent to the refueling equipment, so that the refueling equipment is controlled not to refuel the vehicle.

By applying the processing method for abnormal refueling provided by the embodiment of the invention, the position information of the label, the vehicle and/or the user terminal during refueling is judged, so that whether the refueling is abnormal or not is judged, the user terminal is informed during abnormal refueling to avoid refueling operation during abnormal refueling, and the user account information is locked under the abnormal condition, so that the safety of the user account information is ensured.

The second embodiment of the invention provides equipment which comprises a memory and a processor, wherein the memory is used for storing programs, and the memory can be connected with the processor through a bus. The memory may be a non-volatile memory such as a hard disk drive and a flash memory, in which a software program and a device driver are stored. The software program is capable of performing various functions of the above-described methods provided by embodiments of the present invention; the device drivers may be network and interface drivers. The processor is used for executing a software program, and the software program can realize the method provided by the first embodiment of the invention when being executed.

A third embodiment of the present invention provides a computer program product including instructions, which, when the computer program product runs on a computer, causes the computer to execute the method provided in the first embodiment of the present invention.

The fourth embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method provided in the first embodiment of the present invention is implemented.

Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

The above embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, it should be understood that the above embodiments are merely exemplary embodiments of the present invention and are not intended to limit the scope of the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种用于用户门口的拉杆箱式智能物流终端

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!