Charging method, device, terminal device and computer readable storage medium
Technical field
The application belongs to charging pile technical field more particularly to a kind of charging method, device, terminal device and computer can
Read storage medium.
Background technique
With the continuous development of science and technology, the application of electric vehicle is also more and more extensive.
The charging of electric vehicle is completed generally by the charging pile of charging station, when car owner needs to charge, can use
Mobile phone scans the two dimensional code on charging pile, selects corresponding socket and completes order payment, then connects the corresponding of charging pile and inserts
Seat charges.
Currently, charging two dimensional code is usually the pile body for being set to charging pile, charging socket is not provided with corresponding two dimensional code,
When user needs that one of charging socket is selected to charge, need to scan the two dimensional code of pile body, then fill from shown
One of them is selected in electric all charging sockets of stake.But this charging method needs user to select from multiple charging sockets
Required socket, convenience is lower, and user's charging experience is poor.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of charging method, device, terminal device and computer-readable storage medium
Matter, lower with the convenience for solving existing charging method, user, which charges, experiences poor problem.
The first aspect of the embodiment of the present application provides a kind of charging method, comprising:
The two dimensional code of charging pile is obtained, the charging pile includes at least one charging socket, and charging pile body is one corresponding
Pile body two dimensional code, each corresponding charging socket two dimensional code of the charging socket;
Judge whether the two dimensional code is the pile body two dimensional code;
When the two dimensional code is the pile body two dimensional code, the first interface is presented to user, first interface is to include
The interface of the operation information of at least one charging socket;
When the two dimensional code is the charging socket two dimensional code, second contact surface, second boundary is presented in Xiang Suoshu user
Face be include the corresponding charging socket of the charging socket two dimensional code operation information interface;
Receive the charge information that the user is inputted by first interface or the second contact surface;
Charging operations are completed according to the charge information.
With reference to first aspect, in a kind of feasible implementation, pass through first boundary in the reception user
After the charge information of face or second contact surface input, further includes:
Judge whether the target charging socket of user's selection is in occupied state;
When the target charging socket is in the occupied state, display occupies prompt information;
When the target charging socket is not in the occupied state, execution is subsequent to be completed to charge according to the charge information
The step of operation.
With reference to first aspect, it in a kind of feasible implementation, after the display occupies prompt information, also wraps
It includes:
Screen the idle charging socket that the charging pile is not in the occupied state;
Calculate the difference of the number of the target charging socket and the number of the idle charging socket;
Using the smallest idle charging socket of the difference as charging socket to be recommended;
According to the information of the charging socket to be recommended, the first recommendation information is generated;
First recommendation information is presented to the user.
With reference to first aspect, in a kind of feasible implementation, described account for is not in the screening charging pile
After the idle charging socket of state, further includes:
Judge the charging pile with the presence or absence of the idle charging socket;
When there are the idle charging socket, the subsequent number for calculating the target charging socket and the free time are executed
The step of difference of the number of charging socket;
When there is no the idle charging socket, target charging pile to be recommended, the target charging pile to be recommended are determined
For charging pile that is nearest from the charging pile and there is idle charging socket;
According to the information of the target charging pile to be recommended, the second recommendation information is generated;
The second recommendation information is presented to the user.
It is with reference to first aspect, described that charging operations are completed according to the charge information in a kind of feasible implementation,
Include:
According to the charge information, charging order is generated;
The charging order is uploaded to background server, so that the background server returns to branch according to the charging order
Pay request;
Receive the payment instruction of the user;
Order payment is completed according to the payment instruction, and payment information is uploaded to the background server, so that institute
Background server is stated to be powered according to the respective socket that the payment information controls corresponding charging pile.
With reference to first aspect, it in a kind of feasible implementation, before the two dimensional code for obtaining charging pile, also wraps
It includes:
Receive the charging reserve requests of the user;
According to the charging reserve requests, Xiang Suoshu user is presented can reservation charging stake information;
Receive the charging pile selection instruction of the user;
According to the charging pile selection instruction, the charging socket of corresponding charging pile is labeled as subscription state.
With reference to first aspect, it in a kind of feasible implementation, after the two dimensional code for obtaining charging pile, also wraps
It includes:
Judge the user with the presence or absence of charging reservation;
When there is no the charging reservation when, execution it is subsequent judge the two dimensional code whether be the pile body two dimensional code step
Suddenly;
When there are charging reservation, judge that the corresponding charging pile of the two dimensional code or charging socket and reservation charging are inserted
Whether seat corresponds to;
When the corresponding charging pile of the two dimensional code or charging socket and reservation charging socket to it is corresponding when upload charging instruction extremely
Background server, so that the background server controls the reservation charging socket and is powered;
When the corresponding charging pile of the two dimensional code or charging socket and reservation charging socket not to it is corresponding when parse the two dimension
Code, obtains the relevant information of current charging pile or current charging socket;
According to the relevant information and the reservation charging socket, charge prompting information is generated;
The charge prompting information is presented to the user.
The second aspect of the embodiment of the present application provides a kind of charging unit, comprising:
Two-dimensional code acquisition module, for obtaining the two dimensional code of charging pile, the charging pile includes at least one charging socket,
Charging pile body corresponds to a pile body two dimensional code, each corresponding charging socket two dimensional code of the charging socket;
First judgment module, for judging whether the two dimensional code is the pile body two dimensional code;
First is presented module, for the first interface, institute to be presented to user when the two dimensional code is the pile body two dimensional code
State the first interface and be include at least one charging socket operation information interface;
Second is presented module, for when the two dimensional code is the charging socket two dimensional code, Xiang Suoshu user to be presented the
Second interface, the second contact surface be include the corresponding charging socket of the charging socket two dimensional code operation information interface;
Charge information receiving module is inputted by first interface or the second contact surface for receiving the user
Charge information;
Charging module, for completing charging operations according to the charge information.
In conjunction with second aspect, in a kind of feasible implementation, further includes:
Second judgment module, for judging whether the target charging socket of user's selection is in occupied state;
Occupied information display module, for being in the occupied state when the target charging socket, display occupies prompt
Information;
First execution module executes subsequent according to institute for being not in the occupied state when the target charging socket
State the step of charge information completes charging operations.
In conjunction with second aspect, in a kind of feasible implementation, further includes:
Screening module, the idle charging socket for being not in the occupied state for screening the charging pile;
Difference calculating module, for calculating the number and the number of the idle charging socket of the target charging socket
Difference;
As module, for using the smallest idle charging socket of the difference as charging socket to be recommended;
First recommendation information generation module generates the first recommendation for the information according to the charging socket to be recommended
Breath;
Module is presented in third, for first recommendation information to be presented to the user.
In conjunction with second aspect, in a kind of feasible implementation, further includes:
Third judgment module, for judging the charging pile with the presence or absence of the idle charging socket;
Second execution module is inserted for when there are the idle charging socket, executing the subsequent calculating target charging
The step of difference of the number of seat and the number of the idle charging socket;
Determining module, it is described wait push away for determining target charging pile to be recommended when there is no the idle charging socket
Recommending target charging pile is from the charging pile recently and in the presence of the charging pile of idle charging socket;
Second recommendation information generation module generates second and recommends for the information according to the target charging pile to be recommended
Information;
4th is presented module, for the second recommendation information to be presented to the user.
In conjunction with second aspect, in a kind of feasible implementation, the charging module includes:
Order generation unit, for generating charging order according to the charge information;
Order uploading unit, for uploading the charging order to background server so that the background server according to
The charging order returns to payment request;
Instruction receiving unit is supported, for receiving the payment instruction of the user;
Payment information for completing order payment according to the payment instruction, and is uploaded to the backstage by payment unit
Server, so that the background server is powered according to the respective socket that the payment information controls corresponding charging pile.
In conjunction with second aspect, in a kind of feasible implementation, further includes:
Charge reserve requests receiving module, for receiving the charging reserve requests of the user;
Module is presented in information of charging pile, for according to the charging reserve requests, Xiang Suoshu user is presented can reservation charging
Stake information;
Selection instruction receiving module, for receiving the charging pile selection instruction of the user;
Mark module, for according to the charging pile selection instruction, the charging socket of corresponding charging pile to be labeled as reservation
State.
In conjunction with second aspect, in a kind of feasible implementation, further includes:
4th judgment module, for judging the user with the presence or absence of charging reservation;
Third execution module, for when there is no the charging reservation when, execution it is subsequent judge the two dimensional code whether be
The step of pile body two dimensional code;
5th judgment module, for judging the corresponding charging pile of the two dimensional code or filling when there are charging reservation
Whether electrical socket is corresponding with reservation charging socket;
Charging instruction uploading module, for when the corresponding charging pile of the two dimensional code or charging socket and reservation charging socket
To upload charging instruction when corresponding to background server, so that the background server controls the reservation charging socket and is powered;
Parsing module, it is not corresponding for working as the corresponding charging pile of the two dimensional code or charging socket and reservation charging socket
When, the two dimensional code is parsed, the relevant information of current charging pile or current charging socket is obtained;
Charge prompting information generating module, for generating charging according to the relevant information and the reservation charging socket
Prompt information;
5th is presented module, for the charge prompting information to be presented to the user.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in institute
The computer program that can be run in memory and on the processor is stated, the processor executes real when the computer program
Now such as the step of any one of above-mentioned first aspect the method.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage medium
Matter is stored with computer program, and the side as described in above-mentioned any one of first aspect is realized when the computer program is executed by processor
The step of method.
Existing beneficial effect is the embodiment of the present application compared with prior art:
Pile body and each charging socket are respectively provided with corresponding two dimensional code to the embodiment of the present application by being in advance, and by pile body two
Dimension code and charging socket two dimensional code are bound, when scanning input pile body two dimensional code, then show all charging sockets to user,
User is allowed to operate all charging sockets, and when scanning input charging socket two dimensional code, then show the charging socket
Operation interface, allow user to operate specific charging socket.In this way, when user need to select one of charging socket into
When row charging, the two dimensional code of respective socket can be directly scanned, respective socket is operated, convenience is higher, user experience
Preferably;In addition, user can according to need selection one way in which charging, meet the charge requirement of different user, user's body
It tests preferably.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is charging scenarios schematic diagram provided by the embodiments of the present application;
Fig. 2 is the schematic process flow diagram of charging method provided by the embodiments of the present application;
Fig. 3 is another schematic process flow diagram of charging method provided by the embodiments of the present application;
Fig. 4 is a kind of schematic process flow diagram of charging reservation provided by the embodiments of the present application;
Fig. 5 is another schematic process flow diagram of charging reservation provided by the embodiments of the present application;
Fig. 6 is the structural schematic block diagram of charging unit provided by the embodiments of the present application;
Fig. 7 is the schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
Before introducing the specific technical solution of the embodiment of the present application, the embodiment of the present application may relate to first application
Explanation is introduced in scene.
Referring to charging scenarios schematic diagram shown in fig. 1, under the charging scenarios include charging station 1, electric vehicle to be charged 2,
Server 3, user terminal 4, interior charging station 1 includes at least one charging pile 11.User terminal can by carrier network with
Background server communication, charging station and charging pile can be communicated by the place network in charging station with background server, be used
Family terminal can be communicated by internet with charging pile.There is at least one socket on charging pile, charging car owner can be by electronic
Vehicle adapter, charging cable are connected on the socket of charging pile.It is paid when charging car owner completes charging order by user terminal
Afterwards, background server can control the corresponding socket of charging pile and be powered, and can treat charging electric motor-car and charge.
Wherein, corresponding APP is installed, to realize and the corresponding industry such as backstage interaction, calculating, human-computer interaction in user terminal
Business function, which can be specially the intelligent terminals such as mobile phone, plate.Electric vehicle to be charged can be specially electrical salf-walking
Vehicle, battery-operated motor cycle or electric car etc..
Car owner charge by user terminal barcode scanning charging two dimensional code, user terminal jumps after getting two-dimensional barcode information
To corresponding interface;On the surface, charging car owner can carry out the operations such as charge mode selection, charging amount of money input;It determines
After the order information that charges, which can be uploaded to server, server by carrying out data interaction with user terminal,
After completing order payment, server is notified that charging pile, charging pile can then control respective socket energization, and then, charge car owner
It can then start to charge.
It is to be appreciated that above-mentioned mentioned application scenarios are only exemplary scene, do not cause to the embodiment of the present application
The restriction of concrete scene.
It, below will be to skill provided by the embodiments of the present application after having introduced the application scenarios that the embodiment of the present application may relate to
Art scheme describes in detail explanation.In order to illustrate technical solution described herein, carried out below by specific embodiment
Explanation.
Embodiment one
Fig. 2 is referred to, is a kind of schematic process flow diagram of charging method provided by the embodiments of the present application, this method can wrap
Include following steps:
Step S201, the two dimensional code of charging pile is obtained, charging pile includes at least one charging socket, and charging pile body is corresponding
One pile body two dimensional code, the corresponding charging socket two dimensional code of each charging socket.
It is to be appreciated that the pile body of each charging pile corresponds to a two dimensional code, which can be attached to pile body surface
Any position is also possible to independently of except pile body.Each charging pile carries at least one charging socket, and each charging
Socket corresponds to a two dimensional code, which can be attached to the corresponding position of receptacle face, is also possible to insert independently of charging
Except seat.Pile body two dimensional code and each charging socket are associated in advance.One charging pile generally has a pile body two dimension
Code, a pile body two dimensional code generally correspond to N number of charging socket two dimensional code, that is, pile body two dimensional code: charging socket two dimensional code=1:N,
N is the positive integer greater than 1.
The two dimensional code of above-mentioned charging pile can be pile body two dimensional code, be also possible at least one charging entrained by the pile body
The charging socket two dimensional code of socket.
Step S202, judge whether two dimensional code is pile body two dimensional code.When two dimensional code is pile body two dimensional code, enter step
S203 enters step S204 when two dimensional code is charging socket two dimensional code.
Specifically, charging car owner obtains corresponding charging two dimension by mobile terminal (for example, mobile phone, plate etc.) scanning
Code, mobile terminal is according to the difference of two-dimentional code type, to execute different processes.
Step S203, the first interface is presented to user, the first interface is the operation information for including at least one charging socket
Interface.
It is to be appreciated that when scanning input be pile body two dimensional code when, then can to user present the first interface, first boundary
It may include the operation information of all charging sockets of charging pile in face, which can include but is not limited to charging socket
Number, charge mode select, the charging amount of money inputs, starts to charge button etc..User can select to fill accordingly by the interface
Electrical socket inputs corresponding charging amount of money etc..
Step S204, to user present second contact surface, second contact surface be include charging socket two dimensional code it is corresponding charging insert
The interface of the operation information of seat.
It is to be appreciated that when scanning input be the two dimensional code of one of charging socket when, then to user present the second boundary
Face, the second contact surface may include charge mode selection, the input of the charging amount of money, start to charge the operation informations such as button.
It is appreciated that can be carried out to multiple charging sockets entrained by charging pile when scanning input pile body two dimensional code
Operation, and when scanning input charging socket two dimensional code, which can be grasped
Make, to meet the charge requirement of different user, and convenience is higher, better user experience.
Step S205, the charge information that user is inputted by the first interface or second contact surface is received.
After the first interface or second contact surface is presented by boundary's user oriented of mobile terminal, user passes through man-machine friendship
Mutually, to input corresponding charge information.The charge information can include but is not limited to charging duration, the charging amount of money, charging socket
And charge mode etc..
Step S206, charging operations are completed according to charge information.
After mobile terminal receives the charge information of user's input, charging order can be further generated, by the charging
Order is uploaded to background server, and background server initiates payment flow according to the charging order, after being completed to order payment,
Server can send control instruction to corresponding charging pile, and charging pile controls corresponding socket according to the control instruction and is powered, so
Afterwards, car owner then can use adapter, charging cable charges the respective socket that electric vehicle is connected to charging pile for charging.
In other words, it is above-mentioned according to charge information complete charging operations detailed process may include: according to charge information,
Generate charging order;Charging order is uploaded to background server, so that background server returns to payment request according to charging order;
Receive the payment instruction of user;Order payment is completed according to payment instruction, and payment information is uploaded to background server, so that
Background server is powered according to the respective socket that payment information controls corresponding charging pile.
Charging convenience can be improved in the present embodiment and user charges and experiences.
Embodiment two
Another schematic process flow diagram of charging method is shown referring to Fig. 3, based on the above embodiment one, it is used in above-mentioned reception
After the charge information that family is inputted by the first interface or second contact surface, the above method can with the following steps are included:
Step S301, judge whether the target charging socket of user's selection is in occupied state;At target charging socket
In occupied state, S302 is entered step, conversely, entering step S312 when target charging socket is not in occupied state.
It is appreciated that being then occupied state by the status indication of the charging socket when charging socket is occupied, wherein
Charging socket is occupied can to refer to that the charging socket is currently being used, and may also mean that the charging socket has been subscribed to.
Conversely, being then idle state by the status indication of the charging socket when charging socket is in idle condition.By judging user
The state of selected target charging socket can determine that whether the socket is occupied.
Step S302, display occupies prompt information.
If the selected socket of user is occupied, can be shown when user clicks the numbered button of the charging socket
Show corresponding occupancy prompt information, it is occupied with the socket for prompting user currently selected, other chargings please be select to insert
Seat.
Step S303, screening charging pile is not in the idle charging socket of occupied state.
It is to be appreciated that in order to further increase the charging of user experience and charging convenience, it is selected in prompt user
After charging socket is occupied, corresponding charging socket can also be recommended to user.Therefore it can be with the further screening charging
Stake all recommends user's selection without occupied charging socket, by these free time charging sockets, or from these free time chargings
User is recommended for further screening one in socket.
After the idle charging socket of screening charging pile, step S308 can be directly entered.But, it is understood that there may be it is current
The case where all charging sockets of charging pile occupy, no free time charging socket, therefore in order to further increase the charging of user
Experience, can further judge the whether available free charging socket of charging pile, if so, S308 is then entered step, if it is not,
A charging socket, which is filtered out, in the charging pile that there can be idle charging socket from other recommends user.
Step S304, judge that charging pile whether there is idle charging socket;When there is idle charging socket, enter step
S308, conversely, entering step S305 when there is no idle charging socket.
Specifically, when the quantity of the idle charging socket filtered out is zero, then there is no idle chargings to insert for the charging pile
Seat, whereas if the quantity of the idle charging socket filtered out is not zero, then there is idle charging socket in the charging pile.
Step S305, determine that target charging pile to be recommended, target charging pile to be recommended are from charging pile recently and in the presence of empty
The charging pile of not busy charging socket.
It is to be appreciated that above-mentioned target charging pile to be recommended is the charging pile filtered out from multiple charging piles, by this
One of idle charging socket on charging pile or the charging pile recommends user.For convenience and the charge bulk of charging
Test, if current charging pile without idle socket, in order to reduce the distance of user's walking, can according to each charging pile with deserve
The linear distance of preceding charging pile is screened.
, can be with the geographical location information of pre-recorded each charging pile in charging station construction, and it is stored in background service
Device.When needing to calculate the linear distance of each charging pile and current charging pile, stored geographical location information can be called,
Corresponding distance is calculated, will with a distance from current charging pile recently, and the charging pile of available free charging socket as it is above-mentioned to
Recommend target charging pile.
Step S306, according to the information of target charging pile to be recommended, the second recommendation information is generated.
Step S307, the second recommendation information is presented to user.
Specifically, according to the number of the target charging pile to be recommended, unique ID, geographical location information and the sky having
Not busy charging socket information etc. generates the second recommendation information.Then, the second recommendation information is shown to by use by customer mobile terminal
Family.
Second recommendation information can include but is not limited to the number of charging pile, the number of idle charging socket, geographical position
Confidence breath etc., can also include the navigation information etc. by current location to target charging pile to be recommended position further.
Step S308, the difference of the number of target charging socket and the number of idle charging socket is calculated.
Step S309, using the smallest idle charging socket of difference as charging socket to be recommended.
It is to be appreciated that when current charging pile has idle charging socket one can be filtered out from these idle sockets
Charging socket recommends user.Under normal circumstances, multiple charging piles entrained by charging pile number in order, for example, from
Charging socket number from left to right is followed successively by 1,2,3 ... 9.When the selected charging socket of user is occupied, in order into
One step improves user's charging experience and charging convenience, can filter out one from selected by user from multiple idle charging sockets
The nearest charging socket of charging socket, which is recommended into user.
Wherein, the distance between charging socket length can be indicated by the size of the difference of charging socket number, number
Difference is bigger, and distance is remoter, conversely, difference is smaller, distance is closer.For example, when the selected charging socket of user is 4, and mesh
The number of preceding idle charging socket is 5,7,2, at this point, being filled according to number size of the difference according to the free time for determining that number is 5
Electrical socket is as charging socket to be recommended.
Step S310, according to the information of charging socket to be recommended, the first recommendation information is generated.
Specifically, according to information such as the numbers of the charging socket to be recommended, the first recommendation information, first recommendation are generated
Breath may include the relevant informations such as socket coding.And the first recommendation information is shown to by user by customer mobile terminal.
Step S311, the first recommendation information is presented to user.
Step S312, subsequent the step of charging operations are completed according to charge information is executed.
It is appreciated that can then execute subsequent charging operations when the selected charging socket of user does not have occupied.When
So, when the selected charging socket of user is occupied, filter out certain charging pile or idle charging pile recommend user it
Afterwards, user can also correspondingly select required charging socket, then, execute subsequent charging according to corresponding operation information and grasp
Make.
As can be seen that can suitably be charged and be inserted with further screening when the selected charging socket of user is occupied
Seat recommends user, the user's charging experience further increased and charging convenience.
Embodiment three
The schematic process flow diagram of the charging reservation shown referring to fig. 4, is based on above-mentioned each embodiment, is obtaining charging pile
Before two dimensional code, above-mentioned charging method can with the following steps are included:
Step S401, the charging reserve requests of user are received.
Step S402, according to charging reserve requests, presenting to user can reservation charging stake information.
It specifically, then can be by customer mobile terminal by all filling for reservation when user needs to charge reservation
The relevant information of electric stake is shown to user, wherein can specifically be shown by way of map it is each can reservation charging stake institute
Locate position, the information of some charging pile, further displays the relevant information of the charging pile when the user clicks, for example, charging socket
Number, charging socket use state etc..User can according to need the one of charging socket of reservation.
Step S403, the charging pile selection instruction of user is received.
Step S404, according to charging pile selection instruction, the charging socket of corresponding charging pile is labeled as subscription state.
It is appreciated that background server can be by the corresponding charging socket on corresponding charging pile labeled as pre- after reserving successfully
About state, the subscription state show that the charging socket has been in occupied state, others is not available the charging socket.User
It can reach corresponding charging socket within the period of reservation and charge.
After user reserves successfully, when subscriber is needed using corresponding charging socket, it can be charged by barcode scanning
Socket, verifying user identity can then charge later.
In some embodiments, it referring to another schematic process flow diagram of the charging reservation shown in Fig. 5, is filled in above-mentioned acquisition
After the two dimensional code of electric stake, above-mentioned charging method can with the following steps are included:
Step S501, judge user with the presence or absence of charging reservation.When there is no charging reservation, S502 is entered step.When
When in the presence of charging reservation, S503 is entered step.
Specifically, by judge the user for user account whether have charging reservation order, if the account of the user
Number there is charging reservation order, then shows that the user has charging to reserve, conversely, not having then.It, can be into if not charging reservation
Enter the subsequent type according to two dimensional code, corresponding interface is presented to user, to complete charging flow.
Step S502, execution is subsequent judges the step of whether two dimensional code is pile body two dimensional code.
Step S503, judge whether the corresponding charging pile of two dimensional code or charging socket are corresponding with reservation charging socket.When two
The corresponding charging pile of dimension code or charging socket and reservation charging socket to it is corresponding when enter step S504, filled when two dimensional code is corresponding
Electric stake or charging socket and reservation charging socket not to it is corresponding when enter step S505.
It is to be appreciated that can further judge the charging that user is scanned after determining that the user has charging reservation
Whether the corresponding charging pile of two dimensional code or charging socket and the socket reserved are corresponding.Wherein, what is scanned as user is stake
When body two dimensional code, if the charging pile of the pile body two dimensional code and the charging pile of reservation charging socket are consistent, then it is assumed that be pair
It answers, conversely, not corresponding to then;When user scanned be charging socket two dimensional code when, if two charging sockets be it is same,
It then corresponds to, conversely, not corresponding to then.
Step S504, charging instruction is uploaded to background server, so that background server control reservation charging socket is powered.
Specifically, if it does correspond, then showing that reserved charging socket has been found in user, then backstage can be notified to take
Business device, according to the charging instruction, the charging socket reserved for controlling corresponding charging pile is powered background server, then, uses
Family can then charge.
Step S505, two dimensional code is parsed, the relevant information of current charging pile or current charging socket is obtained.
Step S506, according to relevant information and reservation charging socket, charge prompting information is generated;
Step S507, charge prompting information is presented to user.
Specifically, if do not corresponded to, show that the current charging socket of user and the charging socket reserved in advance are inconsistent,
The relevant informations such as geographical location, the number of the current charging pile of user or charging socket can be then obtained, determine that user is current
Relative position between position and the charging socket reserved, and generate the charging including relative position information, number information etc. and mention
Show information, to prompt the position of user institute reservation charging socket, searches out reservation charging socket convenient for user, improve user's charging
Experience and charging convenience.
As can be seen that reservation charging can be further improved charging convenience and user charges and experiences.Further, when
When user can not find reservation charging socket, prompt information is generated, further raising user charging convenience and user's charging
Experience.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Example IV
Fig. 6 is referred to, is a kind of structural schematic block diagram of charging unit provided by the embodiments of the present application, which can wrap
It includes:
Two-dimensional code acquisition module 61, for obtaining the two dimensional code of charging pile, charging pile includes at least one charging socket, is filled
The corresponding pile body two dimensional code of electric stake pile body, the corresponding charging socket two dimensional code of each charging socket;
First judgment module 62, for judging whether two dimensional code is pile body two dimensional code;
First is presented module 63, for the first interface, the first interface to be presented to user when two dimensional code is pile body two dimensional code
Be include at least one charging socket operation information interface;
Second present module 64, for when two dimensional code be charging socket two dimensional code when, to user present second contact surface, second
Interface be include the corresponding charging socket of charging socket two dimensional code operation information interface;
Charge information receiving module 65, the charge information inputted for receiving user by the first interface or second contact surface;
Charging module 66, for completing charging operations according to charge information.
In a kind of feasible implementation, above-mentioned apparatus further include:
Second judgment module, for judging whether the target charging socket of user's selection is in occupied state;
Occupied information display module, for being in occupied state when target charging socket, display occupies prompt information;
First execution module executes subsequent complete according to charge information for being not in occupied state when target charging socket
The step of at charging operations.
In a kind of feasible implementation, above-mentioned apparatus further include:
Screening module, the idle charging socket for being not in occupied state for screening charging pile;
Difference calculating module, for calculating the difference of the number of target charging socket and the number of idle charging socket;
As module, for using the smallest idle charging socket of difference as charging socket to be recommended;
First recommendation information generation module generates the first recommendation information for the information according to charging socket to be recommended;
Module is presented in third, for the first recommendation information to be presented to user.
In a kind of feasible implementation, above-mentioned apparatus further include:
Third judgment module, for judging that charging pile whether there is idle charging socket;
Second execution module, for when there is idle charging socket, executing the subsequent number for calculating target charging socket
The step of with the difference of the number of idle charging socket;
Determining module, for determining target charging pile to be recommended, target to be recommended is filled when there is no idle charging socket
Electric stake is from charging pile recently and in the presence of the charging pile of idle charging socket;
Second recommendation information generation module generates the second recommendation information for the information according to target charging pile to be recommended;
4th is presented module, for the second recommendation information to be presented to user.
In a kind of feasible implementation, above-mentioned charging module includes:
Order generation unit, for generating charging order according to charge information;
Order uploading unit, for uploading charging order to background server, so that background server is according to charging order
Return to payment request;
Instruction receiving unit is supported, for receiving the payment instruction of user;
Payment information for completing order payment according to payment instruction, and is uploaded to background server by payment unit, with
Background server is set to be powered according to the respective socket that payment information controls corresponding charging pile.
In a kind of feasible implementation, above-mentioned apparatus further include:
Charge reserve requests receiving module, for receiving the charging reserve requests of user;
Module is presented in information of charging pile, for according to charging reserve requests, presenting to user can reservation charging stake information;
Selection instruction receiving module, for receiving the charging pile selection instruction of user;
Mark module, for according to charging pile selection instruction, the charging socket of corresponding charging pile to be labeled as subscription state.
In a kind of feasible implementation, above-mentioned apparatus further include:
4th judgment module, for judging user with the presence or absence of charging reservation;
Third execution module is used for when there is no charging reservation, and execution is subsequent to judge whether two dimensional code is that pile body is two-dimentional
The step of code;
5th judgment module, for when there is charging reservation, judge the corresponding charging pile of two dimensional code or charging socket with
Whether reservation charging socket corresponds to;
Charging instruction uploading module, it is corresponding with reservation charging socket for working as the corresponding charging pile of two dimensional code or charging socket
When, charging instruction is uploaded to background server, so that background server control reservation charging socket is powered;
Parsing module, for when the corresponding charging pile of two dimensional code or charging socket and reservation charging socket not to it is corresponding when solve
Two dimensional code is analysed, the relevant information of current charging pile or current charging socket is obtained;
Charge prompting information generating module, for generating charge prompting information according to relevant information and reservation charging socket;
5th is presented module, for charge prompting information to be presented to user.
It is to be appreciated that the charging method in the charging unit of the present embodiment and above-mentioned each embodiment corresponds, it is related
Introduction refers to corresponding contents above, and details are not described herein.
As can be seen that user's charging convenience can be improved for embodiment and user charges and experiences.
Embodiment five
Fig. 7 is the schematic diagram for the terminal device that one embodiment of the application provides.As shown in fig. 7, the terminal of the embodiment is set
Standby 7 include: processor 70, memory 71 and are stored in the meter that can be run in the memory 71 and on the processor 70
Calculation machine program 72,.The processor 70 is realized when executing the computer program 72 in above-mentioned each charging method embodiment
Step, such as step S201 to S206 shown in Fig. 2.Alternatively, realization when the processor 70 executes the computer program 72
Each module or the function of unit in above-mentioned each Installation practice, such as the function of module 61 to 66 shown in Fig. 6.
Illustratively, the computer program 72 can be divided into one or more modules or unit, it is one or
The multiple modules of person or unit are stored in the memory 71, and are executed by the processor 70, to complete the application.It is described
One or more modules or unit can be the series of computation machine program instruction section that can complete specific function, which uses
In implementation procedure of the description computer program 72 in the terminal device 7.For example, the computer program 72 can be by
It is divided into two-dimensional code acquisition module, first judgment module, first that module, the second presentation module, charge information receiving module is presented
And charging module, each module concrete function are as follows:
Two-dimensional code acquisition module, for obtaining the two dimensional code of charging pile, charging pile includes at least one charging socket, charging
The corresponding pile body two dimensional code of stake pile body, the corresponding charging socket two dimensional code of each charging socket;First judgment module is used for
Judge whether two dimensional code is pile body two dimensional code;First is presented module, for being presented to user when two dimensional code is pile body two dimensional code
First interface, the first interface be include at least one charging socket operation information interface;Second is presented module, for when two
Tie up code be charging socket two dimensional code when, to user present second contact surface, second contact surface be include that charging socket two dimensional code is corresponding
The interface of the operation information of charging socket;Charge information receiving module passes through the first interface or second contact surface for receiving user
The charge information of input;Charging module, for completing charging operations according to charge information.
The terminal device 7 can be the intelligent movables equipment such as mobile phone, plate.The terminal device may include, but not only
It is limited to, processor 70, memory 71.It will be understood by those skilled in the art that Fig. 7 is only the example of terminal device 7, not structure
The restriction of paired terminal equipment 7 may include perhaps combining certain components or difference than illustrating more or fewer components
Component, such as the terminal device can also include input-output equipment, network access equipment, bus etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 71 can be the internal storage unit of the terminal device 7, such as the hard disk or interior of terminal device 7
It deposits.The memory 71 is also possible to the External memory equipment of the terminal device 7, such as be equipped on the terminal device 7
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the terminal device 7
Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device, terminal device and method, it can be with
It realizes by another way.For example, device described above, terminal device embodiment are only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module or unit are realized in the form of SFU software functional unit and sell as independent product
Or it in use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned reality
The all or part of the process in a method is applied, relevant hardware can also be instructed to complete by computer program, it is described
Computer program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that
The step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, the computer program
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie
Matter may include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk,
Magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.