Summary of the invention
The main purpose of the application is to provide a kind of charging method, server, mobile terminal and cradle, to solve phase
The problem of pass technology.
To achieve the goals above, according to the one aspect of the application, a kind of charging method is provided, is applied to service
Device, comprising:
Receive the charge request information that mobile terminal is sent;
Charging instruction is generated according to the charge request information;
The charging instruction is issued to corresponding cradle;Wherein, the cradle is to be electrically connected with the fixation of city's electrical outlet
The cradle connect, the cradle start to charge for external equipment after receiving the charging instruction;
Judge whether to have arrived the charging end time;And
When between at the end of charging, generates and terminate charging instruction, and be issued to the cradle for charging instruction is terminated;Its
In, the cradle stops charging for external equipment after receiving the termination charging instruction.
Further, charging method as the aforementioned determines charging duration information according to the charge request information;
Determine time when issuing charging instruction;
At the end of the charging that time when according to the charging duration information and issuing charging instruction is calculated
Between.
Further, the charging instruction is issued to corresponding cradle by charging method as the aforementioned, including
The address of corresponding cradle is determined according to the charge request information;Wherein, each charging seat tool
There is unique corresponding address;
The charging instruction is issued to corresponding cradle according to the address.
To achieve the goals above, according to further aspect of the application, a kind of charging method is provided, is applied to movement
Terminal;Include:
Charge request information is generated according to the information of user's input;
The charge request information is sent to server;The charge request information is sent to server;The server
Charging instruction is issued to corresponding cradle according to the charge request information, starts the cradle for external equipment progress
Charging;Also, it determines that charging terminates in the server, and will terminate after charging instruction is issued to the cradle, it is described to fill
Electric seat stops being that external equipment charges.
Further, charging method as the aforementioned, before sending the charge request information to server, further includes:
Receive the charge mode information of user's input;Wherein, the corresponding charge mode packet of the charge mode information
It includes: wireless charging and wired charging;
Charge request information is written into the charge mode information.
To achieve the goals above, according to the another aspect of the application, a kind of charging method is provided, is applied to charging
Seat;Include:
Receive the charging instruction that server issues;Wherein, the charging instruction is that the server is sent out according to mobile terminal
The charge request information sent generates;The charge request information includes: charging duration information;
Start to charge to mobile terminal according to the charging instruction;And
After receiving the termination charging instruction that the server issues, stopping charges to the mobile terminal;Wherein,
The termination charging instruction is that the server generates after having arrived the charging end time according to charging duration information judgement.
Further, charging method as the aforementioned, before starting to charge to cradle according to the charging instruction,
Further include:
Charge mode information is determined according to the charging instruction;Wherein, the corresponding charge mode of the charge mode information
It include: wireless charging and wired charging;
Start corresponding charging module according to the charge mode information;Wherein, the charging module includes: wireless charging
Module and wired charging module.
To achieve the goals above, according to the another aspect of the application, a kind of server is provided.
Include: according to the server of the application
Request reception unit, for receiving the charge request information of mobile terminal transmission;
Instruction generation unit, for generating charging instruction according to the charge request information;
Issuance unit is instructed, for the charging instruction to be issued to corresponding cradle;Wherein, the cradle is being received
Start to charge for external equipment after to the charging instruction;
Judging unit has arrived the charging end time for judging whether;And
Terminate charhing unit, when between at the end of charging, generates and terminate charging instruction, and will terminate under charging instruction
It is sent to the cradle;Wherein, the cradle stops charging for external equipment after receiving the termination charging instruction.
To achieve the goals above, according to the another aspect of the application, a kind of mobile terminal is provided.
Include: according to the mobile terminal of the application
Charge request information generating unit generates charge request information for inputting information according to user;
Charge request information transmitting unit, for sending the charge request information to server;Institute is sent to server
State charge request information;The server issues charging instruction to corresponding cradle according to the charge request information, makes institute
Cradle is stated to start to charge for external equipment;Also, it determines that charging terminates in the server, and charging instruction will be terminated
After being issued to the cradle, the cradle stops being that external equipment charges.
To achieve the goals above, according to the another aspect of the application, a kind of cradle is provided.
Include: according to the cradle of the application
Charging instruction receiving unit, the charging instruction issued for receiving server;Wherein, the charging instruction is described
Server is generated according to the charge request information that mobile terminal is sent;The charge request information includes: charging duration information;
Power supply unit, for starting to charge to mobile terminal according to the charging instruction;And
Stop power supply unit, for stopping to the movement after receiving the termination charging instruction that the server issues
Terminal charges;Wherein, the termination charging instruction is that the server has been arrived according to charging duration information judgement
It is generated after the charging end time.
In the embodiment of the present application, by the way of improving to cradle and then realizing shared charging, pass through reception
The charge request information that mobile terminal is sent;Charging instruction is generated according to the charge request information;According to the charge request
Information determines charging duration;The charging instruction is issued to corresponding cradle;Wherein, the cradle is receiving described fill
Start to charge for external equipment after electricity instruction;Judged whether to have arrived the charging end time according to the charging duration;And
When between at the end of charging, generates and terminate charging instruction, and be issued to the cradle for charging instruction is terminated;Wherein, described
Cradle stops charging for external equipment after receiving the termination charging instruction.Reach easy to use, will not encounter
Not the case where not being available by the shared charging unit of mobile power source formula because of not enough power supply, and can shifting be provided for user at any time
The purpose that dynamic terminal is powered has a wide range of application to realize using simple, be particularly suitable for promoting in public places and
The technical effect of the shared charging used.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units
Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear
Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
In this application, term " on ", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outside",
" in ", "vertical", "horizontal", " transverse direction ", the orientation or positional relationship of the instructions such as " longitudinal direction " be orientation based on the figure or
Positional relationship.These terms are not intended to limit indicated dress primarily to better describe the application and embodiment
Set, element or component must have particular orientation, or constructed and operated with particular orientation.
Also, above-mentioned part term is other than it can be used to indicate that orientation or positional relationship, it is also possible to for indicating it
His meaning, such as term " on " also are likely used for indicating certain relations of dependence or connection relationship in some cases.For ability
For the those of ordinary skill of domain, the concrete meaning of these terms in this application can be understood as the case may be.
In addition, term " installation ", " setting ", " being equipped with ", " connection ", " connected ", " socket " shall be understood in a broad sense.For example,
It may be a fixed connection, be detachably connected or monolithic construction;It can be mechanical connection, or electrical connection;It can be direct phase
It even, or indirectly connected through an intermediary, or is two connections internal between device, element or component.
For those of ordinary skills, the concrete meaning of above-mentioned term in this application can be understood as the case may be.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
To achieve the goals above, according to the one aspect of the application, a kind of charging method is provided, is applied to service
Device;
As shown in Figure 1, this method includes the following steps, namely S1 to step S6:
S1. the charge request information that mobile terminal is sent is received;The charge request information is that user passes through mobile terminal
Initiate the information that charge request is carried out for a certain cradle;
S2. charging instruction is generated according to the charge request information;In general, the charging instruction is makes cradle to institute
State the instruction that the power supply circuit of mobile terminal is opened;
S3. the charging instruction is issued to corresponding cradle;Wherein, the cradle is and the fixed electricity of city's electrical outlet
The cradle of connection, the cradle start to charge for external equipment after receiving the charging instruction;
S4. judge whether to have arrived the charging end time;Wherein, judge whether that judgement can be passed through by having arrived the charging end time
Whether cradle is also powered to mobile terminal, or the time whether powered has reached for paying purchase in advance
Charging duration is judged;
S5. at the end of charging between when, generate terminate charging instruction, and by terminate charging instruction be issued to the charging
Seat;Wherein, the cradle stops charging for external equipment after receiving the termination charging instruction.
Preferably, it can also be withholdd, and then completed to the corresponding account of charging equipment by corresponding payment platform
The commercial operation of complete shared power supply.
Specifically, this method realizes shared charging and then to fixing and using in cradle and improve to cradle
Mode.Reach easy to use, the feelings that shared mobile power source in the prior art is not available by not enough power supply will not be encountered
Condition, and the purpose that mobile terminal is powered can be provided for user at any time, to realize using simply, have a wide range of application,
Conducive to the technical effect promoted and used in public places.
In some embodiments, charging method as the aforementioned, it is described that charging instruction is generated according to the charge request information,
Include:
Charge mode is determined according to the charge request information;Wherein, the charge mode includes: wireless charging and wired
Charging;Specifically, applying charging when on the cradle that can be charged by wired and wireless mode in the application
It may include user in solicited message in the charge mode for input when charge mode selection by mobile terminal, and then can be with
The charging modes needed for it are selected, the use of user is easily facilitated;
The corresponding charging instruction is generated according to the charge mode;Specifically, user selection be wireless charging
When, wireless charging module is started into information and cradle is opened and is written in the charging instruction jointly for power information;In user
When what is selected is wired charging, wired charging module starting information and cradle are opened and filled described in being written jointly for power information
In electricity instruction.
In some embodiments, charging method as the aforementioned determines charging duration information according to the charge request information;
Determine time when issuing charging instruction;
At the end of the charging that time when according to the charging duration information and issuing charging instruction is calculated
Between.
Specifically, be subject to server time, the time when issuing charging instruction is 18:00, and user's purchase is filled
When electric duration (the duration data i.e. in charging duration information) is 1 hour, then the end time is denoted as 19:00 on the same day, due to one
As, it is carried out between server and cradle using private network, and each operator is used between mobile terminal and server
Mobile radio communication, the case where often will appear delay or poor signal, therefore the high communication quality between server and cradle
Communication between intelligent terminal and server;It is subject to server time, can maximumlly reduce data communication delays etc.
Situation causes the generation for stopping electric power thus supplied in advance to user.
In some embodiments, charging method as the aforementioned by the charging instruction or terminates charging instruction and is issued to pair
The cradle answered, comprising:
The address of corresponding cradle is determined according to the charge request information;Wherein, each charging seat tool
There is unique corresponding address;
The charging instruction is issued to corresponding cradle according to the address.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
According to embodiments of the present invention, additionally provide it is a kind of for implementing the server of above-mentioned charging method as shown in Figure 1,
As shown in Fig. 2, the device includes:
To achieve the goals above, according to the another aspect of the application, a kind of server is provided.
Include: according to the server of the application
Request reception unit 11, for receiving the charge request information of mobile terminal transmission;
Instruction generation unit 12, for generating charging instruction according to the charge request information;
Issuance unit 13 is instructed, for the charging instruction to be issued to corresponding cradle;Wherein, the cradle exists
Start to charge for external equipment after receiving the charging instruction;
Judging unit 14 has arrived the charging end time for judging whether;And
Terminate charhing unit 15, when between at the end of charging, generates and terminate charging instruction, and charging instruction will be terminated
It is issued to the cradle;Wherein, the cradle stops being filled for external equipment after receiving the termination charging instruction
Electricity.
Specifically, each module realizes that the detailed process of its function can be found in side shown in Fig. 1 in the device of the embodiment of the present invention
Associated description in method embodiment, details are not described herein again.
To achieve the goals above, according to further aspect of the application, a kind of charging method is provided, is applied to movement
Terminal;As shown in Figure 1, this method includes the following steps, namely Y1 to step Y4:
Y1. charge request information is generated according to the information of user's input;Specifically, the information of user's input can wrap
Include charging duration information and request charge information;
Y2. the charge request information is sent to server;Specifically, can be by wifi or carrier network to service
Device sends the solicited message;The server issues charging instruction to corresponding cradle according to the charge request information, makes
The cradle starts to charge for external equipment;Also, it determines that charging terminates in the server, and refers to charging is terminated
After order is issued to the cradle, the cradle stops being that external equipment charges.Specifically, in this step, service
Device can be by judging whether cradle is also supplied to mobile terminal by judging whether to have arrived the charging end time
Electricity, or the charging duration that time for whether powering has reached for paying purchase in advance are judged.
Preferably, the mobile terminal for sending charge request information and the mobile terminal to charge can not be same
A mobile terminal generates charge request information specifically, can be mobile terminal A and input information according to user, and to server
Send the charge request information;Then the power supply of the cradle is received by the charhing unit 23 of mobile terminal B.
In some embodiments, charging method as the aforementioned, before sending the charge request information to server, also
Include:
Receive the charge mode information of user's input;Wherein, the corresponding charge mode packet of the charge mode information
It includes: wireless charging and wired charging;
Charge request information is written into the charge mode information.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
According to embodiments of the present invention, it additionally provides a kind of for implementing the above-mentioned mobile end applied to method as shown in Figure 4
End, as shown in figure 4, the device includes:
To achieve the goals above, according to the another aspect of the application, a kind of mobile terminal is provided.
Include: according to the mobile terminal of the application
Charge request information generating unit 21 generates charge request information for inputting information according to user;
Charge request information transmitting unit 22, for sending the charge request information to server;The server root
Charging instruction is issued to corresponding cradle according to the charge request information, the cradle is made to start to be filled for external equipment
Electricity;Also, it determines that charging terminates in the server, and the charging after charging instruction is issued to the cradle will be terminated
Seat stops being that external equipment charges.
To achieve the goals above, according to the another aspect of the application, a kind of charging method is provided, is applied to charging
Seat;As shown in figure 5, this method includes the following steps, namely C1 to step C3:
C1. the charging instruction that server issues is received;Wherein, the charging instruction is the server according to mobile terminal
The charge request information of transmission generates;The charge request information includes: charging duration information;
C2. start to charge to mobile terminal according to the charging instruction;And
C3. after receiving the termination charging instruction that the server issues, stopping charges to the mobile terminal;Its
In, the termination charging instruction is that the server is raw after having arrived the charging end time according to charging duration information judgement
At.
In some embodiments, charging method as the aforementioned starts to fill cradle according to the charging instruction
Before electricity, further includes:
Charge mode information is determined according to the charging instruction;Wherein, the corresponding charge mode of the charge mode information
It include: wireless charging and wired charging;
Start corresponding charging module according to the charge mode information;Wherein, the charging module includes: wireless charging
Module and wired charging module.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
According to embodiments of the present invention, additionally provide it is a kind of for implementing the above-mentioned cradle applied to method as shown in Figure 5,
As shown in fig. 6, the device includes:
To achieve the goals above, according to the another aspect of the application, a kind of cradle is provided.
Include: according to the cradle of the application
Charging instruction receiving unit 31, the charging instruction issued for receiving server;Wherein, the charging instruction is institute
Server is stated to be generated according to the charge request information that mobile terminal is sent;The charge request information includes: charging duration information;
In general, the charging instruction receiving unit 31 can be received by WiFi chip, 3G, 4G or 5G communication chip;
Power supply unit 32, for starting to charge to mobile terminal according to the charging instruction;And
Stop power supply unit 33, for stopping to the shifting after receiving the termination charging instruction that the server issues
Dynamic terminal charges;Wherein, the termination charging instruction is that the server judges according to the charging duration information
It is generated after to the charging end time.
In the present invention, mobile terminal can be by including that the modes such as wired and wireless network send or receive signal.Often
A mobile terminal can be the combined electronics including hardware, software, embedded logic module or this two or more class component
Device, and it is able to carry out the suitable function of being implemented by mobile terminal or supported.For example, mobile communication equipment can be intelligent hand
Machine, tablet computer, portable email device, e-book, handheld game machine and/or game console, laptop, on
Net sheet, hand-hold electronic device, intelligent object wearing device, etc..The present invention covers any suitable mobile communication equipment.Mobile communication
Equipment can use the customer access network of this mobile communication equipment.
According to some embodiments of the present invention, it respectively may include comprising using processing unit and radio frequency/number that mobile communication, which is set,
The processing unit of signal processor;Display screen;It may include secondary or physical bond, covering membrane keyboard on a display screen or their combination
Keypad;Subscriber identification module card;It may include the memory device of ROM, RAM, flash memory or their any combination;Wi-
Fi and/or blue tooth interface;Wireless phone interface;Electric power management circuit with relevant battery;USB interface and connector;It has
It is associated with the audio management system of microphone, loudspeaker and earphone jack;And various such as digital cameras, global positioning system
The selectable appurtenances of system, accelerator etc., in addition, various client applications can be installed on a mobile communications device, visitor
Family end application, which can be used for allowing setting using mobile communication, each transmits the order for being suitable for that each operation is set with other.This kind of application
It can download from a server and be installed in the memory of mobile communication equipment, it can also be installed in mobile communication in advance
In equipment.
In the present invention, so-called server should be understood offer processing, database, the service point of communications service, act
Example for, server can refer to related communication and data storage and database facility single physical processor or it
It can refer to networking or the processor gathered, network of relation and the aggregate for storing equipment, and to software and one or more numbers
According to library system and support that the application software of service provided by the server is operated.Server can be poor in configuration or performance
It is different very big, but server generally may include one or more central processing unit and memory.Server further includes one
Or multiple mass-memory units, one or more power supplys, one or more wired or wireless network interfaces, one or more are defeated
Enter/output interface or one or more operating system, such as, Windows Server, Mac OS X, Unix, Linux,
FreeBSD, etc..
According to some embodiments of the present invention, server can be monolithic servers or across multicomputer or computer
The decentralized service device of data center.Server can be it is various types of, such as, but not limited to, network server, news clothes
Business device, mail server, message server, Advertisement Server, file server, application server, interactive server, database
Server or proxy server.In some embodiments, each server may include hardware, software or for execute server
The embedded logic module for the proper function that lock is supported or realized or the combination of this two or more class component.In the present invention, service
Device is for providing repertoire necessary to service terminal.
The mobile terminal 1 is to initiate to request to the application server 3 by WEB service end, client.
Application examples:
Step 1: the two dimensional code in wechat or Alipay scanning device can be used in user, into application interface, click
Wired charging or wireless charging both of which, and the time of selection charging, such as 30 points may be selected in charge button, user
Clock/1 hour, mobile terminal is by sending information to cloud platform.
Step 2: after cloud platform receives information, the charge mode of verification user's selection, and timing mode is opened, lead to
Wifi module in overcharge seat conveys charging instruction to power module, and after power module receives charging instruction, distribution power is extremely
When the corresponding interface, i.e. selection wireless charging mode, power module provides electric energy to wireless charging mould group, when selecting wired charging,
Power module provides electric energy to USB interface, and user can be carried out charging.
Step 3: cloud platform, which issues, terminates charging instruction when user selects the charging time to terminate, passed by wifi module
Up to power module, power module stops powering to port, and cloud platform is deducted fees according to the charging time that user selects.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific
Hardware and software combines.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.