CN109887112B - Data processing method and device and electronic equipment - Google Patents

Data processing method and device and electronic equipment Download PDF

Info

Publication number
CN109887112B
CN109887112B CN201910244720.5A CN201910244720A CN109887112B CN 109887112 B CN109887112 B CN 109887112B CN 201910244720 A CN201910244720 A CN 201910244720A CN 109887112 B CN109887112 B CN 109887112B
Authority
CN
China
Prior art keywords
information
deduction
resource deduction
request
resource
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.)
Active
Application number
CN201910244720.5A
Other languages
Chinese (zh)
Other versions
CN109887112A (en
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.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Shenzhen Tencent Computer Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tencent Computer Systems Co Ltd filed Critical Shenzhen Tencent Computer Systems Co Ltd
Priority to CN201910244720.5A priority Critical patent/CN109887112B/en
Publication of CN109887112A publication Critical patent/CN109887112A/en
Application granted granted Critical
Publication of CN109887112B publication Critical patent/CN109887112B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a data processing method and device and electronic equipment. The method comprises the following steps: receiving a first data packet sent by a resource deduction terminal, wherein the first data packet comprises request link information and request main body information; analyzing the first data packet to acquire the request link information and the request main body information; packaging the request link information and the request main body information to form a resource deduction request; and sending the resource deduction request to a server through a mobile network, receiving a deduction result returned by the server in response to the resource deduction request, and sending the deduction result to the resource deduction terminal. The invention reduces the purchase cost and the maintenance cost of the charging equipment, realizes the access of the charging system to the specific network service through the information transmission terminal, realizes the automatic fee deduction of the fee deduction platform, avoids the complexity of cash payment, improves the payment efficiency and further improves the user experience.

Description

Data processing method and device and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method, a data processing apparatus, and an electronic device.
Background
With the development of computer technology and the acceleration of life rhythm, people are pursuing more and more efficient and higher-quality life, for example, with the increase of automobile purchase quantity, the congestion condition of roads is more and more serious, and for some checkpoints needing to pay vehicle toll, due to the reasons of low recognition rate of information acquisition equipment, low efficiency of manual toll collection and the like, congestion is particularly easy to form at the checkpoints.
The existing vehicle charging mode mainly adopts manual charging, and for high-speed charging, although an Electronic Toll Collection System (ETC for short) is arranged at a charging station to reduce the problem of vehicle jam, the manufacturing cost of the ETC is high, and the later maintenance cost is also high.
In view of the above, there is a need in the art to develop a new data processing method for a vehicle.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present application and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device and electronic equipment, so that the cost and labor cost for configuring charging equipment can be reduced at least to a certain extent, the payment efficiency is improved, and the user experience is further improved.
Additional features and advantages of the invention will be set forth in the detailed description which follows, or may be learned by practice of the invention.
According to an aspect of an embodiment of the present invention, there is provided a data processing method including: receiving a first data packet sent by a resource deduction terminal, wherein the first data packet comprises request link information and request main body information; analyzing the first data packet to acquire the request link information and the request main body information; packaging the request link information and the request main body information to form a resource deduction request; and sending the resource deduction request to a server through a mobile network, receiving a deduction result returned by the server in response to the resource deduction request, and sending the deduction result to the resource deduction terminal.
According to an aspect of an embodiment of the present invention, there is provided a data processing apparatus including: the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a first data packet sent by a resource deduction terminal, and the first data packet comprises request link information and request main body information; the analysis module is used for analyzing the first data packet to acquire the request link information and the request main body information; the packaging module is used for packaging the request link information and the request main body information to form a resource deduction request; and the sending module is used for sending the resource deduction request to a server through a mobile network, receiving a deduction result returned by the server in response to the resource deduction request, and sending the deduction result to the resource deduction terminal.
In some embodiments of the present invention, the first data packet further includes authentication information, and the authentication information includes encryption information and feature information; based on the foregoing solution, the data processing apparatus is configured to: analyzing the first data packet to acquire the encryption information and the characteristic information; carrying out Hash processing on the encrypted information to obtain characteristic information to be matched; comparing the characteristic information with the characteristic information to be matched to judge the legality of the first data packet; and if the characteristic information is the same as the characteristic information to be matched, the first data packet is legal.
In some embodiments of the present invention, based on the foregoing scheme, the sending module includes: the sending unit is used for sending the resource deduction request to the server through a mobile network, extracting a resource deduction parameter in the resource deduction request through the server according to a preset protocol, and calling a resource deduction interface of a target application platform so as to enable the target application platform to transfer resources according to the resource deduction parameter; the receiving unit is used for receiving a deduction result which is sent by the server and formed according to the feedback information of the target application platform; and the processing unit is used for processing the deduction result according to a communication protocol between the resource deduction terminal and the deduction result and sending the processed deduction result to the resource deduction terminal.
In some embodiments of the present invention, based on the foregoing solution, the processing unit is configured to: and processing the deduction result according to a serial port communication protocol between the resource deduction terminal and the deduction result to obtain a second data packet, and sending the second data packet to the resource deduction terminal.
According to an aspect of an embodiment of the present invention, there is provided a data processing method including: acquiring identification information, and determining resource deduction information according to the identification information; responding to a triggering operation carried out by a user according to the resource deduction information, and encrypting the resource deduction information and target information according to a first preset protocol to form request main body information; the method comprises the steps of obtaining request link information, processing the request link information and request main body information according to a second preset protocol to form a first data packet, and sending the first data packet to an information transmission terminal.
In some embodiments of the present invention, based on the foregoing scheme, the data information in the second data packet includes a second preset beginning identifier and a second preset end identifier.
According to an aspect of an embodiment of the present invention, there is provided a data processing apparatus including: the information generation module is used for acquiring identification information and determining resource deduction information according to the identification information; the information encryption module is used for responding to the triggering operation of the user according to the resource deduction information and encrypting the resource deduction information and the target information according to a first preset protocol to form request main body information; and the data packet generating module is used for acquiring request link information, processing the request link information and the request main body information according to a second preset protocol to form a first data packet, and sending the first data packet to an information transmission terminal.
In some embodiments of the present invention, based on the foregoing scheme, the information encryption module is configured to: calling a resource deduction interface of a target function library through a resource deduction front end, and sending the resource deduction information to the target function library through the resource deduction interface; and detecting the resource deduction information through the target function library, and encrypting the detected resource deduction information and the target information according to the first preset protocol to form the request main body information.
In some embodiments of the present invention, based on the foregoing scheme, the first preset protocol is a protocol between the objective function library and a server; the second preset protocol is a communication protocol between the target function library and the information transmission terminal.
In some embodiments of the invention, the data processing apparatus further comprises: the encryption module is used for encrypting the resource deduction information, the target information and the version number of the target function library to obtain encryption information; the characteristic information generating module is used for carrying out Hash processing on the encrypted information to obtain characteristic information; the verification information generation module is used for forming verification information according to the characteristic information and the encryption information; and the first data packet generating module is used for processing the verification information, the request link information and the request main body information according to a communication protocol with the information transmission terminal so as to acquire the first data packet.
In some embodiments of the present invention, based on the foregoing solution, the data processing apparatus further includes: a number sending module, configured to send a resource deduction number corresponding to the resource deduction information to the target function library through the resource deduction front end when the resource deduction information is sent to the target function library through the resource deduction front end; and the anti-duplication module is used for performing anti-duplication operation according to the resource deduction information and the resource deduction number.
In some embodiments of the present invention, based on the foregoing solution, the anti-duplication module is configured to: acquiring first resource deduction information and a first resource deduction number corresponding to a last resource deduction service adjacent to the current resource deduction service; comparing second resource deduction information corresponding to the current resource deduction service with the first resource deduction information through the target function library; when the first resource deduction information is the same as the second resource deduction information, replacing a resource deduction number corresponding to the second resource deduction information with the first resource deduction number; forming a second data packet according to the first resource deduction number, the second resource deduction information and the target information through the target function library, and sending the second data packet to the information transmission terminal; and receiving a third data packet sent by the information transmission terminal through the target function library, wherein the third data packet is generated by the information transmission terminal according to a target deduction result returned by the server.
In some embodiments of the present invention, based on the foregoing solution, the data processing apparatus further includes: and the calling module is used for calling the initialization interface of the target function library through the resource deduction front end when the target function library is started, and sending the target information to the target function library through the initialization interface.
In some embodiments of the present invention, based on the foregoing scheme, the data information in the first data packet includes a first preset beginning identifier and a first preset end identifier.
In some embodiments of the present invention, based on the foregoing scheme, the data information in the second data packet includes a second preset beginning identifier and a second preset end identifier.
According to an aspect of an embodiment of the present invention, there is provided an electronic apparatus including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the data processing method as described in the above embodiments.
In the technical solutions provided in some embodiments of the present invention, the resource deduction terminal generates a first data packet including request link information and request subject information according to the identification information, and sends the first data packet to the information transmission terminal; the information transmission terminal analyzes the first data packet to obtain request link information and request main body information, packages the request link information and the request main body information to form a resource deduction request, then sends the resource deduction request to the server through the mobile network, and receives a deduction result returned by the server in response to the resource deduction request; and finally, the information transmission terminal sends the deduction result to the resource deduction terminal. According to the technical scheme, on one hand, the installation of a special charging device and an additional identification device can be avoided, meanwhile, the connection of a special line with an external network is avoided, and the purchase cost and the maintenance cost are reduced; on the other hand, the access of the charging system to the specific network service can be realized through the information transmission terminal, the automatic fee deduction of the fee deduction platform is realized, the complexity of cash payment is avoided, the payment efficiency is improved, and the user experience is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 shows a schematic diagram of an exemplary system architecture to which aspects of embodiments of the invention may be applied;
FIG. 2 schematically shows a flow diagram of a data processing method according to an embodiment of the invention;
fig. 3 schematically shows a structural diagram of an information transmission terminal according to an embodiment of the present invention;
fig. 4 schematically shows a flowchart of an information transmission terminal verifying authentication information according to an embodiment of the present invention;
FIG. 5 schematically shows a flow diagram of a data processing method according to an embodiment of the invention;
fig. 6 schematically shows a structural diagram of a resource deduction terminal according to an embodiment of the present invention;
FIG. 7 schematically illustrates a flow diagram for forming request body information according to one embodiment of the invention;
FIG. 8 schematically illustrates a flow diagram of anti-replay operation according to an embodiment of the present invention;
FIG. 9 schematically illustrates an interaction flow diagram of data processing according to one embodiment of the invention;
FIG. 10 schematically shows a block diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 11 schematically shows a block diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 12 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present invention can be applied.
As shown in fig. 1, the system architecture 100 may include a resource deduction terminal 101, an information transmission terminal 102, a network 103, a server 104, a server 105, and a resource transfer terminal 106. The resource deduction terminal 101 may be a terminal device having a display screen such as a portable computer, a desktop computer, or the like; the information transmission terminal 102 may be an intelligent terminal, such as an intelligent device with an android operating system; the resource transfer terminal 106 may be a terminal device such as a smartphone, a portable computer, or the like; the network 103 is used to provide a medium for communication links between the resource deduction terminal 101 and the information transmission terminal 102, between the resource deduction terminal 101 and the server 105, between the information transmission terminal 102 and the server 104, and between the server 104 and the resource transfer terminal 106. The network 103 may include various connection types, such as a wired communication link, a wireless communication link, and the like, and in the embodiment of the present invention, the network 103 between the resource deduction terminal 101 and the information transmission terminal 102 may be a wired communication link, for example, a communication link may be provided by a serial connection line, or a wireless communication link, and a communication link may be provided by a wireless network; the network 103 between the resource deduction terminal 101 and the server 105, the network 103 between the information transmission terminal 102 and the server 104, and the network 103 between the server 104 and the resource transfer terminal 106 may be wireless communication links, and particularly may be a mobile network.
It should be understood that the number of terminals, networks, and servers in fig. 1 are merely illustrative. There may be any number of terminals, networks, and servers, as desired for an implementation. For example, the server 104 may be a server cluster composed of a plurality of servers, and the like, and is used for managing the resource deduction order; the server 105 may be a server cluster formed by a plurality of servers, and the like, and may be configured to process the received identification information and store information related to resource deduction.
In an embodiment of the present invention, after the resource deduction terminal 101 obtains the identification information, the identification information is sent to the server 105 connected to the resource deduction terminal 101, and the server 105 determines the resource deduction information according to the identification information and returns the resource deduction information to the resource deduction terminal 101; after receiving a trigger operation for executing resource deduction, the resource deduction terminal 101 encrypts resource deduction information and target information according to a first preset protocol to form request main body information, then acquires the request link information, processes the request link information and the request main body information according to a second preset protocol to form a first data packet, and sends the first data packet to the information transmission terminal 102; after receiving the first data packet, the information transmission terminal 102 analyzes the first data packet to obtain request link information and request main body information, encapsulates the request link information and the request main body information to form a resource deduction request, and then sends the resource deduction request to the server 104 through the mobile network; after receiving the resource deduction request sent by the information transmission terminal 102, the server 104 extracts the resource deduction parameter in the resource deduction request according to a first preset protocol, calls a resource deduction interface of a target application platform in the resource transfer terminal 106, sends the resource deduction parameter to a resource transfer server corresponding to the target application platform through the resource deduction interface, performs resource transfer according to the resource deduction parameter through the resource transfer server, and sends a deduction result to the server 104, wherein the deduction result is sent to the information transmission terminal 102 through the server 104 through a mobile network, and then is sent to the resource deduction terminal 101 through the information transmission terminal 102, so that a worker can perform subsequent operation according to the deduction result. According to the technical scheme of the embodiment of the invention, on one hand, a special charging device can be prevented from being installed, and meanwhile, a special line is prevented from being used for connecting an external network, so that the purchase cost and the maintenance cost are reduced; on the other hand, the access of the resource deduction terminal (charging system) to the specific network service can be realized through the information transmission terminal, the automatic fee deduction of the fee deduction platform is realized, the complexity of cash payment is avoided, the payment efficiency is improved, and the user experience is further improved.
It should be noted that the data processing method provided by the embodiment of the present invention is generally executed by the server 104, and accordingly, the data processing apparatus is generally disposed in the server 104. However, in other embodiments of the present invention, the terminal may also have a similar function as the server, so as to execute the data processing scheme provided by the embodiments of the present invention.
In the related art in this field, in some charging scenarios, manual charging is mainly performed, and cash payment is mainly performed, for example, payment is required when a vehicle passes through a parking lot toll station, an expressway toll station, and the like, and in a scenario where a vehicle passes through a parking lot toll station, for example, when a vehicle enters a parking lot, an image acquisition device acquires vehicle identification information, such as a license plate number, and then uploads the vehicle identification information to a server, so that the server stores the vehicle identification information and an entrance time corresponding to the vehicle identification information; when a vehicle leaves a field, the image acquisition equipment acquires vehicle identification information and uploads the vehicle identification information to the server, the server acquires the entrance time of the vehicle according to the vehicle identification information, determines the parking fee to be paid by a vehicle owner according to the difference value between the current time and the entrance time, and collects the parking fee in a manual charging mode; taking the scene of paying fees at a highway Toll station as an example, the mode of manual charging is the same as the mode of paying fees at a parking lot Toll station, in order to improve the passing speed of vehicles, a special channel of an Electronic Toll Collection System (ETC) is also arranged on the highway, when the vehicles enter a highway section, vehicle information in the vehicle-mounted Electronic tags is obtained through the special microwave short-range communication between the vehicle-mounted Electronic tags installed on vehicle windshields and microwave antennas on ETC lanes of the Toll station, the vehicle information is sent to a server, the server stores the vehicle information and the corresponding entry time, when the vehicles exit the highway section, the special microwave short-range communication between the microwave antennas on the lanes of the Toll station and the vehicle-mounted Electronic tags is realized through the server according to the entry time and the exit time of the vehicles, the computer networking technology and the bank are used for carrying out background settlement processing, so that the aim of paying the road and bridge fees of vehicles passing through the road and bridge toll station without stopping the vehicles is fulfilled.
The manual charging efficiency is low, road congestion is easily caused, and the user needs to carry cash, so that the user experience is reduced; although the ETC special lane relieves the traffic pressure of the vehicle to a certain extent, the use of the ETC special lane requires additional installation of an electronic identification card in the vehicle for microwave communication with a microwave antenna of the ETC special lane, and the cost for changing the common lane of the toll station into the ETC special lane is high, devices such as a transceiver special for the ETC need to be added for the lane, in addition, the ETC special lane needs to be connected with an external network through a special line, and the time cost and the capital cost for the construction and maintenance of the special line are very high.
In view of the problems in the related art, the embodiments of the present invention first provide a data processing method, which may be used in any payment scenario, such as a supermarket, a mall, a parking lot toll station, a highway toll station, and the like, and details of implementation of the technical solution of the embodiments of the present invention are described in detail below with a highway toll station scenario as an example:
fig. 2 schematically shows a flowchart of a data processing method according to an embodiment of the present invention, which may be performed by a terminal device, which may be the information transmission terminal shown in fig. 1. Referring to fig. 2, the data processing method at least includes steps S210 to S240, which are described in detail as follows:
in step S210, a first data packet sent by the resource deduction terminal is received, where the first data packet includes request link information and request body information.
In an embodiment of the present invention, the vehicle identification information may be obtained through the resource deduction terminal 101, and specifically, the target object may be photographed through a photographing unit built in the resource deduction terminal 101 or a photographing device connected to the outside of the resource deduction terminal 101 to obtain a license plate image, and then characters in the license plate image are recognized to obtain the vehicle identification information, that is, a license plate number. After obtaining the vehicle identification information, the resource deduction terminal 101 may send the vehicle identification information to the server 105, and the server 105 may determine the resource deduction information according to the vehicle identification information and the related data, and then return the resource deduction information to the resource deduction terminal 101; the resource deduction terminal 101 can then perform encryption processing on the resource deduction information and the target information according to a protocol with the server 103 to form request body information, then acquire the request link information, and process the request link information and the request body information according to a communication protocol with the information transmission terminal 102 to form a first data packet.
The resource deduction terminal 101 may be a terminal device having a display screen, such as a portable computer or a desktop computer, and configured to install toll collection software to enable a worker to perform toll collection operation on a passing vehicle; the information transmission terminal 102 may be an intelligent terminal, such as an intelligent device with an android operating system, and the intelligent terminal may be wirelessly connected or wired to the resource deduction terminal 101, for example, a wireless network card may be installed in the resource deduction terminal 101, and the wireless connection between the resource deduction terminal 101 and the information transmission terminal 102 is realized through the wireless network card, or serial ports of the same type may be provided in the resource deduction terminal 101 and the information transmission terminal 102, and the wired communication link between the resource deduction terminal 101 and the information transmission terminal 102 is realized through a serial port connection line. The serial port is an extension interface adopting a serial communication mode, the data transmission mode is that data is transmitted in sequence one bit by one bit, the serial port can be a synchronous serial port or an asynchronous serial port, and specifically, the serial port can be RS-232, RS-422, RS485, USB and the like. If the resource deduction terminal 101 and the information transmission terminal 102 are connected through a wireless network, data processing can be performed between the resource deduction terminal 101 and the information transmission terminal through a bluetooth communication protocol; if the resource deduction terminal 101 and the information transmission terminal 102 are connected by a serial port, data processing may be performed between the two terminals according to a serial communication protocol. Further, the smart terminal may be connected to the mobile network by inserting a SIM card, so that the resource deduction terminal 101 accesses the external network through the information transmission terminal 102.
In an embodiment of the present invention, after the resource deduction terminal 101 forms the first data packet, the first data packet may be sent to the information transmission terminal 102 through a wireless network or a preset serial port, in consideration of an actual usage scenario and reliability problems, data transmission may be mainly performed by serial port transmission, and the preset serial port may be any type of serial port, but in consideration of that computer systems commonly used at present are windows systems, an RS-232 serial port may be used as the preset serial port. In order to facilitate understanding of the technical solution of the embodiment of the present invention, the following description will take an example of performing output transmission between the resource deduction terminal 101 and the information transmission terminal 102 through a serial port as an example.
In step S220, the first data packet is parsed to obtain the request link information and the request body information.
In an embodiment of the present invention, after receiving the first data packet, the information transmission terminal 102 may analyze the first data packet according to a serial communication protocol between the information transmission terminal 102 and the resource deduction terminal 101 to obtain request link information and request subject information, where the request link information is a preset link address, and specifically may be a uniform resource locator URL, such as https:// dev.api.unipay.qq.com, and the request subject information is information formed by encrypting the resource deduction information and target information, where the resource deduction information may include information such as a license plate number, toll information, access time, and the target information may include information such as a station, a lane, a serial number and the like. The communication protocol is also called communication protocol, which refers to a convention for data transmission control by both communication parties, and the convention includes making unified provisions for problems such as data format, synchronization mode, transmission speed, transmission step, error detection and correction mode, control character definition, etc., and both communication parties must comply with the convention. The resource deduction terminal 101 processes the request link information and the request main body information in a well-agreed format, parameters and the like according to a serial communication protocol corresponding to a preset serial port to form a first data packet, and after the information transmission terminal 102 receives the first data packet, in order to acquire the data information therein, the first data packet must be analyzed according to the well-agreed serial communication protocol with the resource deduction terminal 101 to acquire the request link information and the request main body information.
Fig. 3 shows a schematic structural diagram of the information transmission terminal, and as shown in fig. 3, the information transmission terminal 102 includes a serial port 301, a data analysis program 302, and a SIM card 303, where the serial port 301 is connected to the serial port of the resource deduction terminal 101 through a serial port connection line, and is configured to obtain a first data packet output by the resource deduction terminal 101, and send a deduction result returned by the server 104 to the resource deduction terminal 101; the data analysis program 302 analyzes the first data packet from the serial port 301 to obtain request link information and request main body information, processes the deduction result according to a serial port communication protocol to generate a second data packet, and sends the second data packet to the resource deduction terminal 101 through the serial port 301; the SIM card can connect the information transmission terminal 102 with the mobile network, and further can send a resource deduction request generated according to the request link information and the request subject information to the server 104 through the mobile network, and can also receive a deduction result returned by the server 104.
In step S230, the request link information and the request body information are encapsulated to form a resource deduction request.
In an embodiment of the present invention, since the network 103 between the information transmission terminal 102 and the server 104 is a wireless communication network, and may specifically be a mobile network, the information transmission terminal 102 may encapsulate the request link information and the request body information to form an http network request, where the http network request is a resource deduction request. The http network request may be composed of four parts, specifically, a request line, a request header, a null line and a message body, where the request line is composed of a request method, a URL path and an http version number, the request method may be any one of GET and POST, and the content of the corresponding URL path is different for different request methods, for example, when the request method is GET, the URL path may be formed according to request link information and request body information; when the request method is POST, a URL path can be formed according to the request link information; the request header caches related information, and the message body is request data sent by the information transmission terminal 102 to the server 104, and may specifically be request body information.
In step S240, the resource deduction request is sent to a server through a mobile network, a deduction result returned by the server in response to the resource deduction request is received, and the deduction result is sent to the resource deduction terminal.
In an embodiment of the present invention, after a resource deduction request is formed by packaging through the information transmission terminal 102, the resource deduction request may be sent to the server 104 through the mobile network, the server 104 may extract a resource deduction parameter from the request body information according to a protocol with the resource deduction terminal 101, then call a resource deduction interface of a target application platform in the resource transfer terminal 106, send the resource deduction parameter to a resource deduction server corresponding to the target application platform through the resource deduction interface, implement automatic deduction through the resource deduction server, and return a deduction result to the server 104; the server 104 then transmits the result of the deduction to the information transmission terminal 102, and the information transmission terminal 102 transmits the result of the deduction to the resource deduction terminal 101.
In an embodiment of the present invention, the first data packet sent by the resource deduction terminal 101 to the information transmission terminal 102 may further include an application ID, and the application ID may be mapped to different settlement systems, and when a bank card corresponding to a certain settlement system is bound in the target application platform, deduction may be performed by the resource deduction server, and settlement may be performed by the settlement system, so that a resource of a corresponding amount is transferred to a target account.
Further, if the resource deduction terminal 101 is connected to the information transmission terminal 102 through a preset serial port, after the information transmission terminal 102 receives the deduction result sent by the server 104 through the mobile network, the information transmission terminal 102 may process the deduction result according to a serial port communication protocol with the resource deduction terminal 101 to form a second data packet, and send the second data packet to the resource deduction terminal 101 through the preset serial port; after receiving the second data packet, the resource deduction terminal 101 may analyze the second data packet according to the serial communication protocol to obtain the deduction result.
In an embodiment of the present invention, in the data transmission process, in order to ensure the security and integrity of the data, the first data packet sent from the resource deduction terminal 101 to the information transmission terminal 102 may further include verification information, where the verification information includes encryption information and feature information, and after receiving the first data packet, the information transmission terminal 102 may check the verification information, and then extract and encapsulate the request link information and the request body information. Fig. 4 is a schematic flow chart illustrating the process of verifying the authentication information by the information transmission terminal, as shown in fig. 4, in step S401, the first data packet is parsed to obtain the encryption information and the feature information; the resource deduction information and the target information are encrypted to form request main body information, meanwhile, the resource deduction information, the target information and the version number of the target function library can be encrypted to form encrypted information, then the encrypted information is subjected to Hash processing to form characteristic information, and verification information is formed according to the encrypted information and the characteristic information; finally, processing the verification information, the request link information and the request main body information according to a serial port communication protocol to form a first data packet, and when the first data packet is analyzed, analyzing according to the serial port communication protocol; in step S402, performing hash processing on the encrypted information to obtain feature information to be matched; in step S403, comparing the feature information with the feature information to be matched to determine the validity of the first data packet; in step S404, if the feature information is the same as the feature information to be matched, the first data packet is legal; in step S405, if the feature information is different from the feature information to be matched, the first data packet is illegal.
Fig. 5 schematically shows a flow chart of a data processing method according to an embodiment of the present invention, which may be performed by a terminal device, which may be the resource deduction terminal shown in fig. 1. Similarly, the technical solution of the embodiment of the present invention is described by taking a scenario of a highway toll station as an example, and as shown in fig. 5, the data processing method at least includes steps S510 to S530, which are described in detail as follows:
in step S510, identification information is obtained, and resource deduction information is determined according to the identification information.
In an embodiment of the present invention, in order to complete automatic charging for a vehicle and reduce human cost, when the vehicle exits from a high-speed charging road section, a charging system needs to determine information such as an entrance time, an exit time, an entrance stop name, an exit stop name, a vehicle type, and the like of the vehicle according to identification information of the vehicle, and then determine a fee to be paid by the vehicle according to the information through a server connected with the charging system, where the identification information of the vehicle may be a unique identification of the vehicle, such as a license plate number, and the charging system may determine related information of the vehicle according to the license plate number. When the vehicle enters a charging area, the charging system can acquire identification information of the vehicle acquired and identified by the image acquisition device, the charging system can acquire registration information of the vehicle on a vehicle management platform according to the identification information, such as whether the vehicle is a car, a passenger car, a trailer or the like, and record the entering time and the entering station name of the vehicle, when the vehicle exits the charging road section, the charging system can acquire the identification information of the vehicle acquired and identified by the image acquisition device again, acquire the vehicle information, the entering time and the entering station name stored in the system according to the identification information, and send related information to the server, so that the server determines the resource deduction information of the vehicle according to one or more of the vehicle information, the entering time, the entering station name, the current time and the current station name. Taking a highway toll station as an example, the resource deduction information can be determined according to vehicle information and a highway toll standard, for example, a vehicle is a type of vehicle which enters the highway from the A toll station and exits the highway from the B toll station, the distance between the A toll station and the B toll station is 100Km, and according to the toll standard: one type of vehicle, one unit is charged per kilometer, and then the resource deduction information can be determined, wherein the resource deduction information specifically comprises the following steps: license plate number: chuan a 12345, drive-in station: a toll station, entrance time: PM1:00, outbound: b toll station, exit time: PM2:10, passage amount: 100 yuan.
In an embodiment of the present invention, after the image capturing device captures the license plate image of the vehicle, the characters and the characters in the license plate image may be recognized by an OCR (Optical Character Recognition) method, or the characters and the characters in the license plate image may be recognized by a trained deep learning network model. Before the license plate image is identified by adopting the trained deep learning network model, a large number of sample license plate images and detection samples can be used for training the deep learning network model to be trained, and the loss function of the model tends to be converged by continuously adjusting model parameters, namely the training of the deep learning network model is completed. The deep learning network model may be a convolutional neural network model, a deep residual error network model, a cyclic neural network model, and the like, which is not specifically limited in the embodiment of the present invention.
In an embodiment of the present invention, fig. 6 shows a schematic structural diagram of a resource deduction terminal, as shown in fig. 6, the resource deduction terminal 101 includes a resource deduction front end 601, an objective function library 602 and a serial port 603, where the resource deduction front end 601 is connected to an image acquisition device, a server 105 and the objective function library 602, and is configured to receive a license plate image acquired by the image acquisition device and identify the license plate image to obtain identification information of a vehicle, send the identification information to the server 105, determine resource deduction information according to the identification information by the server 105, then send the resource deduction information to the resource deduction front end 601, and further, send the resource deduction information to a display device of the resource deduction front end 601; resource deduction front end 601 may call a resource deduction interface of target function library 602 to send the resource deduction information to target function library 602; the object function library 602 may be a dynamic link library, in which an object file required for running the program is stored, and when the resource deduction front end 601 runs the program, the object file corresponding to the program in the object function library 602 may be called to ensure normal running of the program, and of course, the object function library 602 may also be a static link library or other third party library as long as the object file required for running the program by the resource deduction front end 601 may be stored; the serial port 603 is configured to receive a first data packet generated by the objective function library 602 according to the resource deduction information and the objective information, and send the first data packet to the information transmission terminal 102.
In step S520, a response is made to a trigger operation performed by the user according to the resource deduction information, and the resource deduction information and the target information are encrypted according to a first preset protocol to form request subject information.
In an embodiment of the present invention, after determining the resource deduction information, the server 105 connected to the resource deduction front end 601 may send the resource deduction information to the resource deduction front end 601, and present the resource deduction information, such as license plate number, vehicle type, lane, station name, station time, and amount of money, to the staff through the display screen, and after the staff confirms that the information is correct, the staff may perform a corresponding trigger operation, for example, click a "confirm" button in a page, and after receiving the trigger operation of the staff, the resource deduction terminal 101 responds to the trigger operation, and encrypts the resource deduction information and the target information according to a first preset protocol to form the request main body information. The first preset protocol is a protocol preset between the resource deduction terminal 101 and the server 104, and the protocol includes appointments for problems of a data format, an encryption mode, a decryption mode, a data structure, an information extraction mode and the like of the request main body information; the target information may include current station information and lane information, such as: the jinghu highway lanling toll station-the third lane, and so on, although the target information may be other information according to different application scenarios, which is not specifically limited in the embodiment of the present invention.
In an embodiment of the present invention, fig. 7 shows a schematic flowchart of a process of forming request body information, as shown in fig. 7, in step S701, a resource deduction interface of a target function library 602 is called through a resource deduction front end 601, and resource deduction information is sent to the target function library 602 through the resource deduction interface; in step S702, the resource deduction information is detected by the target function library 602, and the detected resource deduction information and the target information are encrypted according to the first preset protocol to form request body information. The detection of the resource deduction information is mainly to detect whether the resource deduction information contains identification information of a vehicle and necessary information such as charging information, station name of entering and exiting, and station time of entering and exiting corresponding to the identification information, so as to ensure that the resource transfer of a target account is smoothly completed. During detection, the information can be confirmed by judging whether the value corresponding to the field of each necessary information is null, and if not, the necessary parameters are correct and can be used for constructing the request main body information.
In an embodiment of the present invention, the target information may be that when the resource deduction front end 601 is started, the resource deduction front end 601 calls an initialization interface of the target function library 602, and the target information is transmitted into the target function library 602 through the initialization interface, and the target information may further include information such as a serial port number, so that the target function library 602 sends the first data packet to the information transmission terminal 102 through the serial port marked with the serial port number.
In step S530, request link information is obtained, the request link information and the request subject information are processed according to a second preset protocol to form a first data packet, and the first data packet is sent to an information transmission terminal.
In an embodiment of the present invention, the information transmission terminal 102 may access the mobile network through the SIM card and transmit data to the server 104 in a http network request manner, so that request link information needs to be obtained before forming the first data packet, where the request link information may specifically be a predetermined uniform resource locator URL, such as https:// dev. The objective function library 602 is connected to the information transmission terminal 102 through a serial port, so that the second preset protocol may be a serial port communication protocol preset between the objective function library 602 and the information transmission terminal 102. Specifically, after the target function library 602 encrypts the resource deduction information and the target information according to a first preset protocol with the server 104 to form request subject information, the request linkage information and the request subject information may be processed according to a serial communication protocol with the information transmission terminal 102 to form a first data packet, and the first data packet may be sent to the information transmission terminal 102 through a preset serial port.
In an embodiment of the present invention, in order to ensure the security and integrity of data transmission between the objective function library 602 and the information transmission terminal 102, an authentication message may be sent to the information transmission terminal 102 at the same time as the first data packet is sent, so that the information transmission terminal 102 determines whether the received data is legal according to the authentication message. The verification information includes feature information and encryption information, the target function library 602 may encrypt the resource deduction information, the target information, and a version number of the target function library to obtain encryption information, and then the target function library 602 may hash the encryption information to obtain the feature information; then, verification information is formed according to the encrypted information and the characteristic information; finally, the target function library 602 processes the verification information, the request link information and the request body information according to a second preset protocol (i.e. a serial communication protocol with the information transmission terminal 102) to form a first data packet, and sends the first data packet to the information transmission terminal 102 through a preset serial port, after receiving the second data packet, the information transmission terminal 102 can parse the first data packet to obtain the verification information, hash the encrypted information in the verification information to obtain the feature information to be matched, then match the feature information with the feature information to be matched, and judge the validity of the received data according to the matching result.
In one embodiment of the invention, in order to avoid the influence of dirty data or illegal requests in the serial port on the first data packet and the second data packet, while the request link information and the request body information or the deduction result can be processed according to the serial port communication protocol, adding a preset beginning identifier and a preset ending identifier in a data structure, for example, a first preset beginning identifier and a first preset ending identifier are set in the data structure of a first data packet, a second preset beginning identifier and a second preset ending identifier are set in the data structure of a second data packet, and after the information transmission terminal 102 receives the first data packet, analyzing the data, when a first preset beginning identifier is identified, determining that the data after the first preset beginning identifier is the request link information and the request main body information, and when a first preset ending identifier is identified, indicating that the data acquisition is finished; similarly, after the resource deduction terminal 101 receives the second data packet, the deduction result in the second data packet can be extracted according to the second preset beginning identifier and the second preset ending identifier, without being affected by dirty data or illegal requests.
In an embodiment of the present invention, there may be a situation that the resource deduction terminal 101 receives a deduction result returned by the server 104 and is overtime, which causes a worker to initiate multiple resource deduction operations on the same identification information, in order to prevent repeated deduction, the resource deduction terminal 101 may obtain a resource deduction number while obtaining resource deduction information, that is, one resource deduction number corresponds to one resource deduction information, and send the resource deduction information to the target function library 602 through the resource deduction front end 601 while sending the resource deduction information to the target function library 602 through the resource deduction front end 601, so that the target function library 602 and the server 104 perform anti-replay operations according to the resource deduction information and the resource deduction number.
Fig. 8 is a flowchart illustrating the anti-replay operation, and as shown in fig. 8, in step S801, first resource deduction information and a first resource deduction number corresponding to a last resource deduction service adjacent to a current resource deduction service are obtained; in step S802, the second resource deduction information and the first resource deduction information corresponding to the current resource deduction service are compared through the objective function library 602; in step S803, when the first resource deduction information is the same as the second resource deduction information, replacing the resource deduction number corresponding to the second resource deduction information with the first resource deduction number; when the first resource deduction information is the same as the second resource deduction information, the current resource deduction service and the last resource deduction service are considered to be the same service, and the resource deduction number of the current resource deduction service can be replaced by the resource deduction number of the last resource deduction service; in step S804, a second data packet is formed according to the first resource deduction number, the second resource deduction information and the target information through the target function library 602, and the second data packet is sent to the information transmission terminal 102; in step S805, the third packet returned by the information transmission terminal 102, which is generated by the information transmission terminal 102 according to the target deduction result returned by the server 104, is received by the target function library 602. In step S804, forming the second data packet according to the first resource deduction number, the second resource deduction information and the target information may specifically be: encrypting the first resource deduction number, the second resource deduction information and the target information according to a protocol between the target function library 602 and the server 104 to form request main body information; then, the request link information is obtained, and the request link information and the request body information are processed according to the serial communication protocol between the target function library 602 and the information transmission terminal 102 to form the second data packet.
In an embodiment of the present invention, the information transmission terminal 102 parses the second data packet, obtains the first resource deduction information number, and sends the first resource deduction information number to the server 104 through the mobile network, where the server 104 may compare the first resource deduction number with all resource deduction numbers successfully deducted, and if there is a target resource deduction number that is the same as the first resource deduction number, obtains a target deduction result corresponding to the target resource deduction number through the server 104, and sends the target deduction result to the information transmission terminal 102, so that the information transmission terminal 102 processes the target deduction result according to a serial communication protocol with the target function library 602 to form a third data packet. And if the target resource deduction number identical to the first resource deduction number does not exist, carrying out deduction operation on the resource deduction service with the first resource deduction number according to the second resource deduction information.
In one embodiment of the invention, the user can perform resource deduction through a target application platform, so as to avoid the complexity of cash payment and improve the payment efficiency and the passing speed, wherein the target application platform can be a WeChat, Paibao or other network platforms which can be used for payment. The user only needs to register through the target application platform in advance, the identification information of the vehicle is associated with the payment account, the server 104 receives the resource deduction information determined by the server 105 connected with the resource deduction terminal 101, then the resource deduction parameter in the resource deduction information is extracted, the resource deduction interface of the target application platform is called, the resource deduction parameter is sent to the resource transfer server corresponding to the target application platform through the resource deduction interface, so that the resource transfer server can transfer resources according to the resource deduction parameter, after the resource transfer is completed, the resource transfer server can return a deduction result to the server 104, then the server 104 sends the deduction result to the information transmission terminal 102, and the deduction result is sent to the resource deduction terminal 101 through the information transmission terminal 102. After the server 104 sends the resource deduction parameter to the resource deduction server corresponding to the target application platform, the resource transfer terminal 106, that is, the terminal of the vehicle owner, can receive the resource deduction notification, and complete the resource transfer after the vehicle owner inputs the payment password in the deduction interface of the display screen, and after completing the resource transfer, the resource transfer terminal 106 can receive the notification information that the resource transfer is successful. Furthermore, the user can set a small amount of password-free password in the target application platform, and the password can be directly deducted after the target application platform receives the resource deduction parameter without manually inputting a payment password by the user, so that the user experience is further improved.
In an embodiment of the present invention, taking toll payment at a highway toll station as an example, fig. 9 shows an interactive flow diagram of data processing, as shown in fig. 9, in step S901, a resource deduction front end receives a charging request, and determines resource deduction information and a resource deduction number according to identification information of a vehicle through a server connected with the resource deduction front end; in step S902, in response to a trigger operation performed by the user according to the resource deduction information, the resource deduction front end sends the resource deduction information and the resource deduction number to the target function library; in step S903, the target function library encrypts the resource deduction information and the target information according to a first preset protocol to form request subject information, and obtains the request link information at the same time, and processes the request link information and the request subject information according to a second preset protocol to form a first data packet; in step S904, the target function library sends the first data packet to the information transmission terminal through a preset serial port; in step S905, the data parser in the information transmission terminal parses the first data packet to obtain the verification information, the request link information, and the request body information; in step S906, the information transmission terminal determines the validity of the data based on the verification information; in step S907, after the data is determined to be legitimate, the request link information and the request body information are encapsulated into a resource deduction request; in step S908, the information transmission terminal sends the resource deduction request to the server through the mobile network; in step S909, the server extracts the resource deduction parameter according to the first preset protocol, and invokes a resource deduction interface of the target application platform in the resource transfer terminal, and sends the resource deduction parameter to the resource deduction server corresponding to the target application platform through the resource deduction interface; in step S910, the resource deduction server performs resource transfer according to the resource deduction parameter, and returns a deduction result to the server; in step S911, the server sends the deduction result to the information transmission terminal; in step S912, the information transmission terminal processes the subtraction result according to the serial port communication protocol with the target function library to generate a second data packet, and sends the second data packet to the target function library through a preset serial port; in step S913, the objective function library parses the second data packet to obtain a subtraction result; in step S914, the objective function library returns the deduction result to the resource deduction front end, so as to present the deduction result to the staff through the display screen of the resource deduction front end, thereby facilitating the staff to release the vehicle according to the deduction result; in step S915, the resource deduction server corresponding to the target application platform sends a prompt message indicating that the resource transfer is successful to the resource transfer terminal.
In an embodiment of the present invention, the embodiment of the present invention is described by taking payment from a parking lot toll station as an example, when a vehicle is driven out of a parking lot, an image collecting device can collect image information of the vehicle, and identify and acquire vehicle identification information, such as a license plate number, from the image information; then the image acquisition device can send the vehicle identification information to a charging terminal, namely the resource deduction terminal 101, a server 105 connected with the charging terminal determines parking fee according to the vehicle identification information and information such as entrance time and the like stored in the vehicle identification information and corresponding to the vehicle identification information, and sends the parking fee to the charging terminal, and the charging terminal encrypts the information such as the parking fee, an exit number and an order number according to a protocol set between the charging terminal and the server 104 to form request main body information and verification information and obtain request link information; then the charging terminal processes the request main body information, the request link information and the verification information according to a protocol with the information transmission terminal 102 to form a first data packet, and sends the first data packet to the information transmission terminal 102; the information transmission terminal 102 analyzes the first data packet to obtain request main body information, request link information and verification information, after the information transmission terminal 102 judges the integrity and safety of the information according to the verification information, the request subject information and the request link information are packaged into an http network request, the http network request is sent to the server 104 through a mobile network, a deduction interface of a target application platform in the resource transfer terminal 106 is called through the server 104, resource transfer parameters are sent to a resource transfer server corresponding to the target application platform through the deduction interface to realize fee deduction, after the fee deduction is successful, the server 104 sends the deduction result to the information transmission terminal 102 and sends the deduction result to the charging terminal through the information transmission terminal 102, a display screen of the charging terminal can present the deduction result to a worker or a gear lever control system, so that the worker controls the gear lever release vehicle or the gear lever control system to automatically lift the gear lever to release the vehicle, meanwhile, the resource transfer server can also send the notification information of successful fee deduction to the resource transfer terminal 106 of the vehicle owner after successful fee deduction.
Of course, the data processing method in the embodiment of the present invention may also be applied to other charging scenarios, such as gas stations, supermarkets, and the like, and the resource deduction information may be determined according to the acquired identification information by the data processing method in the embodiment of the present invention, so as to complete automatic fee deduction according to the resource deduction information, thereby avoiding cash transaction, improving payment efficiency, and further improving user experience.
The technical scheme of the embodiment of the invention avoids installing a special charging device and an additional identification device, simultaneously avoids using a special line to connect an external network, and reduces the cost of purchasing the device and the maintenance cost; in addition, the embodiment of the invention can realize the access of the charging system to the specific network service only through the information transmission terminal, realize the automatic fee deduction of the fee deduction platform, avoid the complexity of cash payment, improve the payment efficiency, further improve the user experience, and improve the vehicle passing speed and reduce the congestion for scenes such as a parking lot toll station, a highway toll station and the like.
Embodiments of the apparatus of the present invention are described below, which may be used to perform the data processing method in the above-described embodiments of the present invention. For details that are not disclosed in the embodiments of the apparatus of the present invention, refer to the embodiments of the data processing method of the present invention.
Fig. 10 schematically shows a block diagram of a data processing device according to an embodiment of the present invention.
Referring to fig. 10, a data processing apparatus 1000 according to an embodiment of the present invention includes: a receiving module 1001, a parsing module 1002, a packaging module 1003 and a sending module 1004.
The receiving module 1001 is configured to receive a first data packet sent by a resource deduction terminal, where the first data packet includes request link information and request body information; the analyzing module 1002 is configured to analyze the first data packet to obtain the request link information and the request body information; a packaging module 1003, configured to package the request link information and the request body information to form a resource deduction request; a sending module 1004, configured to send the resource deduction request to a server through a mobile network, receive a deduction result returned by the server in response to the resource deduction request, and send the deduction result to the resource deduction terminal.
In an embodiment of the present invention, the first data packet further includes an authentication information, where the authentication information includes encryption information and feature information; the data processing apparatus 1000 is configured to: analyzing the first data packet to acquire the encryption information and the characteristic information; carrying out Hash processing on the encrypted information to obtain characteristic information to be matched; comparing the characteristic information with the characteristic information to be matched to judge the legality of the first data packet; and if the characteristic information is the same as the characteristic information to be matched, the first data packet is legal.
In one embodiment of the present invention, the sending module 1004 includes: the sending unit is used for sending the resource deduction request to the server through a mobile network, extracting a resource deduction parameter in the resource deduction request through the server according to a preset protocol, and calling a resource deduction interface of a target application platform so as to enable the target application platform to transfer resources according to the resource deduction parameter; the receiving unit is used for receiving a deduction result which is sent by the server and formed according to the feedback information of the target application platform; and the processing unit is used for processing the deduction result according to a communication protocol between the resource deduction terminal and the deduction result and sending the processed deduction result to the resource deduction terminal.
In one embodiment of the invention, the processing unit is configured to: and processing the deduction result according to a serial port communication protocol between the resource deduction terminal and the deduction result to obtain a second data packet, and sending the second data packet to the resource deduction terminal.
Fig. 11 schematically shows a block diagram of a data processing device according to an embodiment of the present invention.
Referring to fig. 11, a data processing apparatus 1100 according to an embodiment of the present invention includes: an information generation module 1101, an information encryption module 1102, and a packet generation module 1103.
The information generating module 1101 is configured to obtain identification information, and determine resource deduction information according to the identification information; the information encryption module 1102 is configured to respond to a trigger operation performed by a user according to the resource deduction information, and encrypt the resource deduction information and target information according to a first preset protocol to form request link information and request main body information; the data packet generating module 1103 is configured to acquire request link information, process the request link information and the request body information according to a second preset protocol to form a first data packet, and send the first data packet to an information transmission terminal.
In an embodiment of the present invention, the information encryption module 1102 is configured to: calling a resource deduction interface of a target function library through a resource deduction front end, and sending the resource deduction information to the target function library through the resource deduction interface; and detecting the resource deduction information through the target function library, and encrypting the detected resource deduction information and the target information according to the first preset protocol to form the request main body information.
In an embodiment of the present invention, the first preset protocol is a protocol between the objective function library and a server; the second preset protocol is a communication protocol between the target function library and the information transmission terminal.
In one embodiment of the present invention, the data processing apparatus 1100 further comprises: the encryption module is used for encrypting the resource deduction information, the target information and the version number of the target function library to obtain encryption information; the characteristic information generating module is used for carrying out Hash processing on the encrypted information to obtain characteristic information; the verification information generation module is used for forming verification information according to the characteristic information and the encryption information; and the first data packet generating module is used for processing the verification information, the request link information and the request main body information according to a communication protocol between the first data packet generating module and the information transmission terminal so as to acquire the first data packet.
In one embodiment of the present invention, the data processing apparatus 1100 further comprises: a number sending module, configured to send a resource deduction number corresponding to the resource deduction information to the target function library through the resource deduction front end when the resource deduction information is sent to the target function library through the resource deduction front end; and the anti-duplication module is used for performing anti-duplication operation according to the resource deduction information and the resource deduction number.
In one embodiment of the invention, the anti-duplication module is configured to: acquiring first resource deduction information and a first resource deduction number corresponding to a last resource deduction service adjacent to the current resource deduction service; comparing second resource deduction information corresponding to the current resource deduction service with the first resource deduction information through the target function library; when the first resource deduction information is the same as the second resource deduction information, replacing a resource deduction number corresponding to the second resource deduction information with the first resource deduction number; forming a second data packet according to the first resource deduction number, the second resource deduction information and the target information through the target function library, and sending the second data packet to the information transmission terminal; and receiving a third data packet sent by the information transmission terminal through the target function library, wherein the third data packet is generated by the information transmission terminal according to a target deduction result returned by the server.
In one embodiment of the present invention, the data processing apparatus 1100 further comprises: and the calling module is used for calling the initialization interface of the target function library through the resource deduction front end when the target function library is started, and sending the target information to the target function library through the initialization interface.
In some embodiments of the present invention, the data information in the first data packet includes a first preset beginning identifier and a first preset end identifier.
In some embodiments of the present invention, the data information in the second data packet includes a second preset beginning identifier and a second preset end identifier.
FIG. 12 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
It should be noted that the computer system 1200 of the electronic device shown in fig. 12 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiment of the present invention.
As shown in fig. 12, the computer system 1200 includes a Central Processing Unit (CPU)1201, which can perform various appropriate actions and processes in accordance with a program stored in a Read-Only Memory (ROM) 1202 or a program loaded from a storage section 1208 into a Random Access Memory (RAM) 1203. In the RAM 1203, various programs and data necessary for system operation are also stored. The CPU 1201, ROM 1202, and RAM 1203 are connected to each other by a bus 1204. An Input/Output (I/O) interface 1205 is also connected to bus 1204.
The following components are connected to the I/O interface 1205: an input section 1206 including a keyboard, a mouse, and the like; an output section 1207 including a Display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 1208 including a hard disk and the like; and a communication section 1209 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 1209 performs communication processing via a network such as the internet. A driver 1210 is also connected to the I/O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is mounted on the drive 1210 as necessary, so that a computer program read out therefrom is mounted into the storage section 1208 as necessary.
In particular, according to an embodiment of the present invention, the processes described below with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 1209, and/or installed from the removable medium 1211. The computer program executes various functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 1201.
It should be noted that the computer readable medium shown in the embodiment of the present invention may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (15)

1. A data processing method is applied to an information transmission terminal and comprises the following steps:
receiving a first data packet sent by a resource deduction terminal, wherein the first data packet comprises request link information and request main body information, and the request main body information is formed by encrypting the resource deduction information and target information according to a first preset protocol after the resource deduction terminal responds to a triggering operation performed by a user according to the resource deduction information, and the target information comprises current station information and lane information;
analyzing the first data packet to acquire the request link information and the request main body information;
packaging the request link information and the request main body information to form a resource deduction request;
and sending the resource deduction request to a server through a mobile network, receiving a deduction result returned by the server in response to the resource deduction request, and sending the deduction result to the resource deduction terminal.
2. The data processing method according to claim 1, wherein the first data packet further includes authentication information, the authentication information including encryption information and feature information;
the method further comprises the following steps:
analyzing the first data packet to acquire the encryption information and the characteristic information;
carrying out Hash processing on the encrypted information to obtain characteristic information to be matched;
comparing the characteristic information with the characteristic information to be matched to judge the legality of the first data packet;
and if the characteristic information is the same as the characteristic information to be matched, the first data packet is legal.
3. The data processing method of claim 1, wherein sending the resource deduction request to a server through a mobile network, receiving a deduction result returned by the server in response to the resource deduction request, and sending the deduction result to the resource deduction terminal comprises:
sending the resource deduction request to the server through a mobile network, extracting resource deduction parameters in the resource deduction request through the server according to a preset protocol, and calling a resource deduction interface of a target application platform to enable the target application platform to transfer resources according to the resource deduction parameters;
receiving a deduction result which is sent by the server and formed according to the feedback information of the target application platform;
and processing the deduction result according to a communication protocol between the deduction terminal and the resource deduction terminal, and sending the processed deduction result to the resource deduction terminal.
4. The data processing method according to claim 3, wherein processing the deduction result according to a communication protocol with the resource deduction terminal, and sending the processed deduction result to the resource deduction terminal comprises:
and processing the deduction result according to a serial port communication protocol between the resource deduction terminal and the deduction result to obtain a second data packet, and sending the second data packet to the resource deduction terminal.
5. A data processing method is characterized in that the method is applied to a resource deduction terminal for charging operation of a user, and comprises the following steps:
acquiring identification information, and determining resource deduction information according to the identification information;
responding to a triggering operation carried out by a user according to the resource deduction information, and encrypting the resource deduction information and target information according to a first preset protocol to form request main body information;
acquiring request link information, processing the request link information and the request body information according to a second preset protocol to form a first data packet, and sending the first data packet to an information transmission terminal, so that the information transmission terminal executes the data processing method according to any one of claims 1 to 4 based on the first data packet.
6. The data processing method of claim 5, wherein encrypting the resource deduction information and the target information according to a first predetermined protocol to form request body information in response to a trigger operation comprises:
calling a resource deduction interface of a target function library through a resource deduction front end, and sending the resource deduction information to the target function library through the resource deduction interface;
and detecting the resource deduction information through the target function library, and encrypting the detected resource deduction information and the target information according to the first preset protocol to form the request main body information.
7. The data processing method according to claim 6, wherein the first preset protocol is a protocol between the objective function library and a server; the second preset protocol is a communication protocol between the target function library and the information transmission terminal.
8. The data processing method of claim 6, wherein the method further comprises:
encrypting the resource deduction information, the target information and the version number of the target function library to obtain encrypted information;
carrying out Hash processing on the encrypted information to obtain characteristic information;
forming verification information according to the characteristic information and the encryption information;
and processing the verification information, the request link information and the request main body information according to a communication protocol between the information transmission terminal and the information transmission terminal to acquire the first data packet.
9. The data processing method of claim 6, wherein the method further comprises:
when the resource deduction information is sent to the target function library through the resource deduction front end, sending a resource deduction number corresponding to the resource deduction information to the target function library through the resource deduction front end;
and performing anti-replay operation according to the resource deduction information and the resource deduction number.
10. The data processing method of claim 9, wherein performing a duplication prevention operation according to the resource deduction information and the resource deduction number comprises:
acquiring first resource deduction information and a first resource deduction number corresponding to a last resource deduction service adjacent to the current resource deduction service;
comparing second resource deduction information corresponding to the current resource deduction service with the first resource deduction information through the target function library;
when the first resource deduction information is the same as the second resource deduction information, replacing a resource deduction number corresponding to the second resource deduction information with the first resource deduction number;
forming a second data packet according to the first resource deduction number, the second resource deduction information and the target information through the target function library, and sending the second data packet to the information transmission terminal;
and receiving a third data packet returned by the information transmission terminal through the target function library, wherein the third data packet is generated by the information transmission terminal according to a target deduction result returned by the server.
11. The data processing method of claim 6, wherein the method further comprises:
and calling an initialization interface of the target function library through the resource deduction front end when the target function library is started, and sending the target information to the target function library through the initialization interface.
12. The data processing method according to claim 5, wherein the data information in the first data packet includes a first preset beginning identifier and a first preset end identifier.
13. A data processing apparatus, provided in an information transmission terminal, comprising:
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving a first data packet sent by a resource deduction terminal, the first data packet comprises request link information and request main body information, the request main body information is formed by encrypting the resource deduction information and target information according to a first preset protocol after the resource deduction terminal responds to a triggering operation performed by a user according to the resource deduction information, and the target information comprises current station information and lane information;
the analysis module is used for analyzing the first data packet to acquire the request link information and the request main body information;
the packaging module is used for packaging the request link information and the request main body information to form a resource deduction request;
and the sending module is used for sending the resource deduction request to a server through a mobile network, receiving a deduction result returned by the server in response to the resource deduction request, and sending the deduction result to the resource deduction terminal.
14. A data processing apparatus, which is arranged at a resource deduction terminal for a user to perform a charging operation, includes:
the information generation module is used for acquiring identification information and determining resource deduction information according to the identification information;
the information encryption module is used for responding to the triggering operation of the user according to the resource deduction information and encrypting the resource deduction information and the target information according to a first preset protocol to form request main body information;
a data packet generating module, configured to obtain request link information, process the request link information and the request subject information according to a second preset protocol to form a first data packet, and send the first data packet to an information transmission terminal, so that the information transmission terminal performs the data processing method according to any one of claims 1 to 4 based on the first data packet.
15. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out a data processing method as claimed in any one of claims 1 to 12.
CN201910244720.5A 2019-03-28 2019-03-28 Data processing method and device and electronic equipment Active CN109887112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910244720.5A CN109887112B (en) 2019-03-28 2019-03-28 Data processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910244720.5A CN109887112B (en) 2019-03-28 2019-03-28 Data processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109887112A CN109887112A (en) 2019-06-14
CN109887112B true CN109887112B (en) 2021-05-07

Family

ID=66934961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910244720.5A Active CN109887112B (en) 2019-03-28 2019-03-28 Data processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109887112B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351028B (en) * 2019-07-15 2020-11-20 联想(北京)有限公司 Data processing method and device and electronic equipment
CN110598704B (en) * 2019-09-26 2023-04-07 中电万维信息技术有限责任公司 License plate recognition non-inductive payment system based on deep learning
CN111694861B (en) * 2020-06-16 2023-10-24 天津白泽技术有限公司 License plate data extraction method based on network data code stream feature analysis
CN111866214A (en) * 2020-07-28 2020-10-30 万商云集(成都)科技股份有限公司 Method and system for dynamically binding website domain name
CN114553583B (en) * 2022-03-01 2024-01-30 恒安嘉新(北京)科技股份公司 Network security analysis system, method, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203759756U (en) * 2014-02-18 2014-08-06 深圳市中翔恒威科技有限公司 Mobile type parking lot charging system
CN105844960A (en) * 2016-06-14 2016-08-10 河海大学 Interactive intelligent parking service system and operation method thereof
CN106504348A (en) * 2016-09-30 2017-03-15 北京悦畅科技有限公司 A kind of method that Parking Fee clearing are provided, server and system
CN206363404U (en) * 2016-12-29 2017-07-28 北京悦畅科技有限公司 A kind of intelligent parking lot realizes device and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DK2082605T3 (en) * 2006-10-05 2018-01-02 Eureka S A SYSTEMS AND PROCEDURES TO GIVE AUTOMATIC WIRELESS PERMISSION TO ACCESS TO A GEOGRAPHICAL AREA
ES2751980T3 (en) * 2009-12-11 2020-04-02 Stationnement Urbain Dev Et Etudes Provision of municipal services using mobile devices and a sensor network
CN106097463A (en) * 2016-06-24 2016-11-09 深圳市金溢科技股份有限公司 A kind of method preventing parking lot from repeating payment, control device and parking system
CN108989365B (en) * 2017-05-31 2022-02-25 腾讯科技(深圳)有限公司 Information processing method, server, terminal equipment and storage medium
CN108198257A (en) * 2018-01-22 2018-06-22 四川精工伟达智能技术股份有限公司 Non-stop charging method and toll collection system
CN108830579A (en) * 2018-06-04 2018-11-16 腾讯科技(深圳)有限公司 Data processing method, system, device and the computer equipment of vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203759756U (en) * 2014-02-18 2014-08-06 深圳市中翔恒威科技有限公司 Mobile type parking lot charging system
CN105844960A (en) * 2016-06-14 2016-08-10 河海大学 Interactive intelligent parking service system and operation method thereof
CN106504348A (en) * 2016-09-30 2017-03-15 北京悦畅科技有限公司 A kind of method that Parking Fee clearing are provided, server and system
CN206363404U (en) * 2016-12-29 2017-07-28 北京悦畅科技有限公司 A kind of intelligent parking lot realizes device and system

Also Published As

Publication number Publication date
CN109887112A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109887112B (en) Data processing method and device and electronic equipment
CN106997621A (en) A kind of intelligent gate system and control method
CN113256887B (en) Non-inductive charging payment method, device and system for electric vehicle
CN108335371B (en) Parking charging method and device
CN107909410B (en) Electronic settlement method, device, storage medium and computer equipment
KR102131441B1 (en) System and method for passage payment
CN107301750A (en) A kind of parking lot electronic invoice acquisition methods and device
US10805285B2 (en) Apparatus and method for authentication based on cognitive information
CN108447137B (en) ETC transaction information acquisition method and device
CN111199461B (en) Unmanned vehicle passenger carrying method based on blockchain and unmanned vehicle
CN109583906B (en) Safety payment method and system based on license plate recognition
CN113628352B (en) Subway ticket business system based on secondary selling and subway ticket secondary selling method
CN112907761A (en) Method, electronic device, and computer storage medium for parking management
CN106780798A (en) The not parking mobile payment client in highway internet and the method for client
KR20190134900A (en) System and method for payment of car service using car number recognition
KR101555993B1 (en) System for calculating parking fee using on-board unit
CN109598803B (en) Highway toll collection method, server, system and storage medium
CN114495302A (en) Vehicle fee deduction method and device, computer equipment and storage medium
CN114220235A (en) Vehicle-mounted payment method, terminal, server, system and medium
CN109215148B (en) Automatic vehicle payment system and method
CN113095818A (en) License plate payment, license plate payment authentication method and license plate payment enhanced authentication system
KR101912302B1 (en) Hi-pass apparatus for printing receipt and receipt printing apparatus for the Hi-pass apparatus and control method thereof
CN107077761A (en) A kind of method that utilization mobile terminal realizes non-parking charge function
EP4109371A1 (en) Vehicle-driving-related payment system, and method therefor
CN115147102A (en) Payment method, device and system for digital currency wallet and storage medium

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
GR01 Patent grant
GR01 Patent grant