Summary of the invention
The technical problem to be solved in the present invention is, provides a kind of charger charging method based on low-power consumption bluetooth and system, and being intended to solve charger in prior art cannot automatically for single mode charging terminal and bimodulus charging terminal provides the problem of best charging scheme.
The technical scheme that technical solution problem of the present invention adopts is as follows:
Based on a charger charging method for low-power consumption bluetooth, wherein, comprise the following steps:
The charger of low-power consumption bluetooth is equipped with A, at least onely with low-power consumption mode towards periphery so that the charge mode information that non-directional mode broadcasts each self-corresponding charger title and support can be connected;
Each charger that B, terminal scanning are being broadcasted, the charge mode information of the charger title corresponding according to each charger and support generates corresponding charger list;
C, described terminal send connection request to each charger, set up low-power consumption bluetooth be successively connected with each charger, and traversal finds out the charger mated with described terminal;
D, described terminal and the charger of coupling are set up low-power consumption bluetooth and are connected, and notice charger starts fast mold filling formula, and charger exports charging quickly by power line and flow to described terminal, opens fast mold filling formula.
The described charger charging method based on low-power consumption bluetooth, wherein, described step C specifically comprises:
C1, terminal are set up low-power consumption bluetooth with first charger in described charger list and are connected;
C2, send message by low-power consumption bluetooth to described first charger, first charger receives after message by power line making alive;
C3, terminal detect change in voltage waveform and record, then disconnect low-power consumption bluetooth with first charger and are connected;
C4, terminal are set up low-power consumption bluetooth with the residue charger in described charger list successively and are connected, the change in voltage waveform number that record terminal detects, disconnect low-power consumption bluetooth and connect, until searched the charger mated with described terminal by ergodic algorithm.
The described charger charging method based on low-power consumption bluetooth, wherein, after described step D, also comprises:
E1, in charger quick charge process, whether terminal detects has abnormal conditions to occur, if any exception, is connected feed back to that bimodulus charger is abnormal to be notified by low-power consumption bluetooth;
E2, terminate when charger quick charge, after terminal power is full of, terminal is connected by low-power consumption bluetooth and sends message informing electricity to charger and be full of, charger is stopped power supply after receiving above-mentioned message, and disconnects the connection of low-power consumption bluetooth, get back to idle condition, again broadcast with low-power consumption mode.
The described charger charging method based on low-power consumption bluetooth, wherein, described abnormal conditions comprise:
The power cord of terminal and charger from and terminal is not full of electricity, terminal completely causes temperature quick-charge function that is too high or terminal normally to work due to quick charge.
The described charger charging method based on low-power consumption bluetooth, wherein, described charger is bimodulus charger, and described terminal is bimodulus charging terminal.
The described charger charging method based on low-power consumption bluetooth, wherein, described charger is bimodulus charger, when described terminal is single mode charging terminal, single mode charging terminal initiatively can not remove scanning and traversal bimodulus charger, can not notify that bimodulus charger starts and fill soon.
Based on a charger charging system for low-power consumption bluetooth, wherein, comprising:
Broadcast module, is equipped with the charger of low-power consumption bluetooth with low-power consumption mode towards periphery can connect the charge mode information that non-directional mode broadcasts each self-corresponding charger title and support at least one;
Charger List Generating Module, for each charger of being broadcasted by terminal scanning, the charge mode information of the charger title corresponding according to each charger and support generates corresponding charger list;
Matching module, for sending connection request by described terminal to each charger, setting up low-power consumption bluetooth with each charger successively and being connected, and traversal finds out the charger mated with described terminal;
Fast mold filling block, is connected for setting up low-power consumption bluetooth by described terminal and the charger of coupling, and notice charger starts fast mold filling formula, and charger exports charging quickly by power line and flow to described terminal, opens fast mold filling formula.
The described charger charging system based on low-power consumption bluetooth, wherein, described matching module comprises:
Connection establishment unit, is connected for setting up low-power consumption bluetooth by terminal with first charger in described charger list;
Presser unit, for sending message by low-power consumption bluetooth to described first charger, first charger receives after message by power line making alive;
Connect switching units, for detecting change in voltage waveform and record by terminal, then disconnecting low-power consumption bluetooth with first charger and being connected;
Traversal Unit, be connected for setting up low-power consumption bluetooth with the residue charger in described charger list successively by terminal, the change in voltage waveform number that record terminal detects, is disconnected low-power consumption bluetooth and connects, until searched the charger mated with described terminal by ergodic algorithm.
The described charger charging system based on low-power consumption bluetooth, wherein, also comprises:
Abnormality detection module, in charger quick charge process, whether terminal detects has abnormal conditions to occur, and if any exception, is connected feed back to the abnormal notice of bimodulus charger by low-power consumption bluetooth;
Fill end module soon, for terminating when charger quick charge, after terminal power is full of, terminal sends message informing electricity by the connection of low-power consumption bluetooth to charger and is full of, charger is stopped power supply after receiving above-mentioned message, and disconnects the connection of low-power consumption bluetooth, get back to idle condition, again broadcast with low-power consumption mode.
The described charger charging system based on low-power consumption bluetooth, wherein, described charger is bimodulus charger, and described terminal is bimodulus charging terminal.
A kind of charger charging method based on low-power consumption bluetooth provided by the present invention and system, efficiently solving charger in prior art cannot automatically for single mode charging terminal and bimodulus charging terminal provides the problem of best charging scheme, the charger with common charging and quick-charge function is used to be the terminal quick charge with common charging and quick-charge function, for terminal provides common charging under other charging scenarios.Namely terminal only need be connected charger with power line by user, can be just that terminal selects best charging scheme according to the charge type of charger and terminal automatically, bring very large convenience to user.
Embodiment
The invention provides a kind of charger charging method based on low-power consumption bluetooth and system, for making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
First be described in detail as follows to low-power consumption Bluetooth protocol.
Compare with High Speed Bluetooth with conventional Bluetooth, the great advantage of low-power consumption bluetooth (Bluetooth Low Energy, BLE) is province's power consumption, and the data volume simultaneously transmitted is also smaller, and the wireless traffic be applicable between mobile intelligent terminal with intelligent charger is connected.The exploitation of BLE agreement mainly at link layer (Link Layer, LL), general-purpose accessing protocol layer (Generic Access Profile, GAP) and general-purpose attribute protocol layer (Generic Attribute Profile, GATT).
According to bluetooth 4.0 agreement that bluetooth alliance issues, link layer defines the signaling of BLE channel, broadcaster (Advertiser) under notconnect state, scanning side (Scanner) and initiator (Initiator), the main frame (Master) under connection status and from machine (Slave).The signaling format of BLE broadcast channel and data channel is as shown in table 1, to broadcast channel and data channel all applicable.Wherein, guidance code Preamble and access address Access Address is fixing data for BLE channel, signaling (PDU) can in BLE channel carry information, CRC be used as cyclic check.
Table 1
The signaling of broadcast channel is made up of head Header and payload Payload, as shown in Figure 1.Fig. 1 is the signaling format of broadcast channel.
4 bit PDU Type in Header determine the type of signaling, as non-directional broadcast signaling (ADV_IND) can be connected, directional broadcasting signaling (ADV_DIRECT_IND) can be connected, non-directional broadcast signaling (ADV_NONCONN_IND) can not be connected, scan request signaling (SCAN_REQ), signaling (SCAN_RSP) is replied in scanning, connection request signaling (CONNECT_REQ), non-directional broadcast signaling (ADV_SCAN_IND) can be scanned, specifically as shown in table 2.Table 2 is the signaling type of broadcast channel
Table 2
The Payload form that can connect non-directional broadcast signaling is as shown in table 3.Wherein, AdvA represents the Bluetooth address of broadcaster, and AdvData represents broadcast data packet, can carry at most the information of 31 bytes.
Table 3
The form of broadcast data packet as shown in Figure 2.Wherein, AD Structure represents message section, and a broadcast data packet can hold multiple message section; AD Type represents the type of message section, as bluetooth title, and bluetooth manufacturer, UUID etc.; AD Data represents the content of message section; The value of Length represents the total amount of byte of AD Type and AD Data.
The AD the type field defined by bluetooth alliance is as shown in table 4, and what be not defined is exactly reserved field.
Table 4
The Payload form of connection request signaling is as shown in table 5.Wherein, InitA is the Bluetooth address of scanning side, and AdvA is the Bluetooth address of broadcaster, and link layer data LL Data is the content of connection request.
Table 5
The form of LL Data is as shown in table 6, wherein, channel matched ChM be used for select transmission data channel.Table 6 is the LL Data form of connection request PDU.
Table 6
37 bit representative data channels (0 ~ 36) in ChM, 3 bits represent broadcast channel (37 ~ 39), as shown in table 7.3 bit broadcast channels use in the future to retain position.。
Table 7
Link layer defines broadcast state (Advertising State) in broadcast channel, scanning mode (Scanning State) and the state of initiation (Initiating State).The signaling relation that broadcast channel three state is corresponding is as shown in table 8.Table 8 is signaling relation corresponding to broadcast state in broadcast channel, scanning mode and initiation state.
Table 8
Wherein, broadcast state comprises:
Non-directional broadcast event (Connectable undirected event) can be connected: scanning side's broadcast ADV_IND signaling that broadcaster is all towards periphery, and statement lay oneself open to can connection mode.Broadcaster monitors the SCAN_REQ signaling that scanning side sends, and then sends SCAN_RSP signaling to scanning side.Broadcaster also monitors the CONNECT_REQ signaling that initiator sends;
Directional broadcasting event (Connectable directed event) can be connected: broadcaster specific scanning side's broadcast ADV_DIRECT_IND signaling towards periphery, and statement lay oneself open to can connection mode.Broadcaster only monitors the CONNECT_REQ signaling that specific initiator is sent;
Non-directional broadcast event (Non-connectable undirected event) can not be connected: scanning side's broadcast ADV_NONCONN_IND signaling that broadcaster is all towards periphery, and statement lay oneself open to can not connection mode.Broadcaster does not monitor the signaling that scanning side sends;
Non-directional broadcast event (Scannable undirected event) can be scanned: scanning side's broadcast ADV_SCAN_IND signaling that broadcaster is all towards periphery.Broadcaster only monitors the SCAN_REQ signaling sent scanning side, then sends SCAN_RSP signaling to scanning side.
Scanning mode comprises: drive sweep (Passive scanning): be in drive sweep pattern scanning side can only listening broadcast side broadcast signaling, externally can not send data; Active scan (Active scanning): the signaling of listening broadcast side of the scanning side broadcast of the scan pattern that has the initiative, only SCAN_REQ signaling is sent to the broadcaster of broadcast ADV_IND signaling and ADV_SCAN_IND signaling, be sent the SCAN_RSP signaling that rear continuation listening broadcast side sends.
And the initiator being in initiation state can send CONNECT_REQ signaling to the broadcaster of broadcast ADV_IND signaling and ADV_DIRECT_IND signaling.
The signaling of data channel is made up of head Header and payload Payload, also may comprise the message integrity check (Message Integrity Check, MIC) of 32 bits, as shown in Figure 3.
Link layer mark (LLID) in Header determines the signaling type of data channel, such as link layer data signaling (LL Data PDU), link layer control signal (LL Control PDU), as shown in table 9, wherein, the expression that LLID is " 01 " is used for sending the data continuing (Continuation) or empty (Empty), and LLID is that the expression of " 10 " is used for sending initial (Start) or complete (Complete) data.More data (More Data, MD) determines whether send more data, if main frame and the MD position from machine are all " 0 ", just disconnects, and main frame stops sending data, no longer monitors and receive data from machine; No person's main frame continues to send data, continues monitor and receive data from machine.Length (Length) represents the total amount of byte of Payload and MIC, if MIC is also included within inside data channel signaling, wherein, the length of Payload is no more than 27 bytes, and MIC occupies 4 fixing bytes.
Table 9
LL Data PDU is used for carrying the data transfer task of GATT layer, and its content is the data of transmission, is no more than 27 bytes at every turn.If data content is more than 27 bytes, can send several times, until data are all sent.
In GAP layer, define 4 kinds of roles: broadcast role (Broadcaster Role), observation role (Observer Role), peripheral role (Peripheral Role) and center role (Central Role).Be specially, broadcast role: the equipment being in broadcast role is broadcasted towards periphery with low-power consumption mode, but can not respond the connection request that other equipment send, the equipment being namely in broadcast role is in can not connection mode; Observe role: be in and observe the equipment of role and can scan the equipment being in broadcast role, but can not initiate connection request, being namely in that the equipment observing role is in can not connection mode; Peripheral role: the equipment being in peripheral role is broadcasted towards periphery with low-power consumption mode, responds the connection request that other equipment are sent, the equipment being namely in peripheral role is in can connection mode; Center role: the equipment being in center role can scan the equipment being in peripheral role, can initiate connection request, the equipment being namely in center role is in can connection mode.
The corresponding relation of LL layer and GAP layer is as shown in table 10, wherein, " E " expression is not supported, " M " represents and must support, " O " represents selection support, " O/E ", if represent that center role supports drive sweep, so center role selecting supports active scan, and Fou Zhe center role must support active scan.
Table 10
Bimodulus charging terminal, single mode charging terminal, bimodulus charger and single mode charger four kinds of physical device type are defined in the present invention.Bimodulus charging terminal is have the terminal can filled soon with common charging two kinds of charge modes, and bimodulus charger is have the charger filled soon with common charging two kinds of charge modes, and about filling soon and common charging, this is prior art, does not do too much description herein.
When bimodulus charger is in peripheral role, when broadcasting ADV_IND signaling towards periphery with low-power consumption mode, bimodulus charging terminal is in center role simultaneously, and carry out active scan, its communication mechanism is as shown in table 11.Bimodulus charging terminal initiates connection request to bimodulus charger, connects.
Table 11
GATT layer defines server (Server) and client (Client).Server can send data to client, otherwise client can not send data to server, as shown in table 12.
Table 12
When after bimodulus charging terminal and the successful connection of bimodulus charger, mean from GAP layer and enter into GATT layer, center role originally and peripheral role change server and client side into.Center role on server and client side on GATT layer and GAP layer and peripheral role are two independently concepts, namely original bimodulus charging terminal or bimodulus charger not only can be server but also can be client, also can serve as server and client side simultaneously.
Refer to Fig. 4, Fig. 4 is the flow chart of the charger charging method preferred embodiment based on low-power consumption bluetooth provided by the invention, as shown in the figure, said method comprising the steps of:
The charger of low-power consumption bluetooth is equipped with step S100, at least onely with low-power consumption mode towards periphery so that the charge mode information that non-directional mode broadcasts each self-corresponding charger title and support can be connected;
Each charger that step S200, terminal scanning are being broadcasted, the charge mode information of the charger title corresponding according to each charger and support generates corresponding charger list;
Step S300, described terminal send connection request to each charger, set up low-power consumption bluetooth be successively connected with each charger, and traversal finds out the charger mated with described terminal;
Step S400, described terminal and the charger of coupling are set up low-power consumption bluetooth and are connected, and notice charger starts fast mold filling formula, and charger exports charging quickly by power line and flow to described terminal, opens fast mold filling formula.
Below in conjunction with specific embodiment, above-mentioned steps is described in detail.
In the step s 100, at least onely the charger of low-power consumption bluetooth is equipped with low-power consumption mode towards periphery so that the charge mode information that non-directional mode broadcasts each self-corresponding charger title and support can be connected.Specifically, at least one charger is being broadcasted with low-power consumption mode.When reality uses, described charger is bimodulus charger, namely has and fills soon and the general charger filling two kinds of charge modes, and bimodulus charger is equipped with low-power consumption bluetooth (BLE) module.Under idle condition, bimodulus charger is broadcasted with low-power consumption mode.
In an idle state, bimodulus charger is broadcasted in " can connect non-directional " mode towards periphery with low-power consumption mode, broadcast packet format can be defined as shown in table 13, but is not limited to this, as long as show that this bluetooth equipment is bimodulus charger by broadcast data packet.Table 13 is the broadcast data packet of bimodulus charger.
Table 13
Wherein, the value of Length represents the total amount of byte of AD Type and Data; The value " 09 " of AD Type represents that the type of message section is the complete name of bluetooth equipment; Data represents the title of bimodulus charger, as " Charger1 "; The remainder bytes zero padding of broadcast data packet.
Step S200 fills the stage, the bimodulus charger that terminal scanning is being broadcasted soon for preparing, and obtains the list of bimodulus charger.If described terminal is single mode charging terminal, then the single mode charging terminal not active scan bimodulus charger of broadcasting, also can not travel through bimodulus charger, more can not notify that bimodulus charger starts and fill soon.This sentences bimodulus charging terminal is that example is described as follows.
With the bluetooth equipment of low-power consumption mode broadcast around bimodulus charging terminal active scan, by resolving the broadcast data packet content of the bluetooth equipment scanned, filter out the bluetooth equipment characterizing bimodulus charger, if bluetooth device name is the bluetooth equipment that " Charger0 " arrives " Charger9 ", obtain the list of bimodulus charger, as shown in table 14
Table 14
In step S300, described terminal sends connection request to each charger, sets up low-power consumption bluetooth be successively connected with each charger, and traversal finds out the charger mated with described terminal.Specifically, terminal is set up low-power consumption bluetooth with first charger in described charger list and is connected; Send message by low-power consumption bluetooth to described first charger, first charger receives after message by power line making alive; Terminal detects change in voltage waveform and record, then disconnects low-power consumption bluetooth with first charger and is connected; Terminal is set up low-power consumption bluetooth with the residue charger in described charger list successively and is connected, the change in voltage waveform number that record terminal detects, disconnects low-power consumption bluetooth and connects, until searched the charger mated with described terminal by ergodic algorithm.
In ergodic process, bimodulus charging terminal is first set up BLE with first bimodulus charger in the list of bimodulus charger and is connected, after successful connection, bimodulus charging terminal sends message by BLE to bimodulus charger, bimodulus charger receives after message by power line making alive, bimodulus charging terminal detects change in voltage waveform and record, then disconnects BLE with bimodulus charger and is connected; Then bimodulus charging terminal is set up BLE with the residue bimodulus charger in the list of bimodulus charger successively and is connected, interactive information, record the change in voltage waveform number detected, disconnect BLE and connect, until searched the bimodulus charger only having to mate by ergodic algorithm.
When practical application, after obtaining the list of bimodulus charger, bimodulus charging terminal first sends connection request signaling to first bimodulus charger in the list of bimodulus charger, the 37th in ChM shown in table 15 is customized for " 001 " to 39, make bimodulus charger can identify bimodulus charging terminal, normal BLE communication is not had an impact simultaneously.
Table 15
After successful connection, bimodulus charging terminal sends Notification(notice by BLE to bimodulus charger) message, such as " Who is my fast charger ", object allows this bimodulus charger receive after Notification by power line making alive.
As shown in Figure 5, wherein, the value of Length represents the type (Type) of Notification message and the total amount of byte of content (Content) to the Payload form of self-defining link layer data signaling; The remainder bytes zero padding of Payload.Fig. 5 is the Payload form of self-defining link layer data signaling.
When bimodulus charging terminal starts to send data, the Header form of data channel signaling is shown in table 16, and now, bimodulus charger is monitored and received data.Wherein, the LLID representative that value is " 10 " sends entire data, value represents that more data etc. is to be sent in addition for the MD of " 1 ", the Length that value is " 11111 " represents the total amount of byte of Payload and MIC, if MIC is also included within inside the signaling of data channel, wherein, the length of Payload is 27 bytes, and MIC occupies 4 fixing bytes.The Header form of table 16 for also having more data to need data channel signaling when sending.
Table 16
When bimodulus charging terminal is sent, the Header form of data channel signaling is shown in table 17, and the MD be worth for " 0 " represents that total data is sent.Now, bimodulus charging terminal and bimodulus charger disconnect, and bimodulus charging terminal no longer sends business datum, and bimodulus charger also stops monitoring and receiving data simultaneously.Table 17 is the Header form of the PDU of data channel when data are all sent.
Table 17
Receive the Notification message in Fig. 5 when bimodulus charger after, send a change in voltage waveform by power line, bimodulus charging terminal detects whether there is change in voltage waveform and record, then disconnects BLE with bimodulus charger and is connected.Then bimodulus charging terminal is set up BLE with the residue bimodulus charger in the list of bimodulus charger successively and is connected, interactive information, record the change in voltage waveform number detected, disconnect BLE and connect, until searched the bimodulus charger only having to mate by ergodic algorithm.
In described step S400, after the match is successful, bimodulus charging terminal is first set up BLE with the bimodulus charger of coupling and is connected.", the Payload form of self-defining link layer data signaling is as shown in Figure 5.When bimodulus charging terminal starts to send data, the Header form of data channel signaling is shown in table 16, and when bimodulus charging terminal is sent, the Header form of data channel signaling is shown in table 17.
".The Payload form of self-defining link layer data signaling as shown in Figure 5.When bimodulus charger starts to send data, the Header form of data channel signaling is shown in table 16, and when bimodulus charger is sent, the Header form of data channel signaling is shown in table 17.Meanwhile, bimodulus charger exports charging quickly stream by power line, opens fast mold filling formula.
Further, after described step S400, also comprise: in charger quick charge process, whether terminal detects has abnormal conditions to occur, and if any exception, is connected feed back to the abnormal notice of bimodulus charger by low-power consumption bluetooth;
When charger quick charge terminates, after terminal power is full of, terminal sends message informing electricity by the connection of low-power consumption bluetooth to charger and is full of, charger is stopped power supply after receiving above-mentioned message, and disconnects the connection of low-power consumption bluetooth, get back to idle condition, again broadcast with low-power consumption mode.
Specifically, described abnormal conditions comprise: the power cord of terminal and charger from and terminal is not full of electricity, terminal completely causes temperature quick-charge function that is too high or terminal normally to work due to quick charge.In quick charge process, whether bimodulus charging terminal detects has abnormal conditions to occur.Abnormal conditions 1: user has encountered bimodulus charging terminal because of carelessness, cause bimodulus charging terminal and power cord from, bimodulus charging terminal is not full of electricity completely simultaneously; Abnormal conditions 2: user midway needs to use bimodulus charging terminal, cause bimodulus charging terminal and power cord from, while bimodulus charging terminal be not full of electricity completely; , if now proceed quick charge, spontaneous combustion may be there is and the peril such as even to explode in abnormal conditions 3: bimodulus charging terminal may occur the phenomenons such as hot, overheated due to quick charge; , if now continue quick charge, spontaneous combustion may be there is and the peril such as even to explode in abnormal conditions 4: bimodulus charging terminal may cause quick-charge function normally to work because lifespan is longer again.
".The Payload form of self-defining link layer data signaling as shown in Figure 5.When bimodulus charging terminal starts to send data, the Header form of data channel signaling is shown in table 16, and when bimodulus charging terminal is sent, the Header form of data channel signaling is shown in table 17.Meanwhile, in the mode of sound or vibration, bimodulus charging terminal notifies that user has abnormal conditions to occur.After bimodulus charger receives above-mentioned message, stop exporting charging quickly stream, and disconnect BLE connection, get back to idle condition, again broadcast with low-power consumption mode.
".The Payload form of self-defining link layer data signaling as shown in Figure 5.When bimodulus charging terminal starts to send data, the Header form of data channel signaling is shown in table 16, and when bimodulus charging terminal is sent, the Header form of data channel signaling is shown in table 17.After bimodulus charger receives above-mentioned message, stop exporting charging quickly stream, and disconnect BLE connection, get back to idle condition, again broadcast with low-power consumption mode.
Further, single mode charging terminal initiatively can not remove scanning and traversal bimodulus charger, more can not notify that bimodulus charger starts and fill soon.Other bimodulus charging terminals may there be is to traverse connect the bimodulus charger of single mode charging terminal, this bimodulus charger output voltage is made to change waveform, but fill soon because bimodulus charging terminal passes through just to send the startup of Notification message informing bimodulus charger by BLE after traversal finds the bimodulus charger of a unique coupling, erroneous judgement can not be produced to other bimodulus chargers, therefore can ensure that the bimodulus charger connecting single mode charging terminal only can carry out common charging to this single mode charging terminal.When practical application, single mode charging terminal initiatively can not remove scanning and traversal bimodulus charger, more can not notify that bimodulus charger starts and fill soon; Meanwhile, single mode charger can only provide common charge function.Therefore, single mode charger can only provide common charging to bimodulus charging terminal and single mode charging terminal.
Further, find there is no bimodulus charger after the bimodulus charging terminal active scan stipulated time, then directly carry out common charging.
Charger charging method based on low-power consumption bluetooth provided by the invention, for the charger that single mode charger is different with bimodulus charger two kinds, the terminal that single mode charging terminal is different with bimodulus charging terminal two kinds, can be divided into the application scenarios that four kinds different.Only at bimodulus charger under the application scenarios of bimodulus charging terminal, bimodulus charging terminal travels through all bimodulus chargers by wireless BLE duplex communication and cable power line one-way communication two kinds of modes, until find the bimodulus charger of coupling to be that bimodulus charging terminal carries out quick charge, under other application scenarioss, single mode charging terminal and bimodulus charging terminal can only carry out common charging.According to scheme described in the invention, can under four kinds of different application scenarioss, automatically for single mode charging terminal and bimodulus charging terminal provide best charging scheme.In whole process, simple and convenient user operation, meanwhile, charger and terminal have ultralow stand-by power consumption at ordinary times.
Charger charging method based on low-power consumption bluetooth provided by the invention, the charger with common charging and quick-charge function is used to be the terminal quick charge with common charging and quick-charge function, for terminal provides common charging under other charging scenarios.Namely terminal only need be connected charger with power line by user, is that terminal selects best charging scheme automatically according to the charge type of charger and terminal.Meanwhile, charger can make corresponding operation and process to being full of electricity and abnormal conditions in quick charge process.Charger and terminal keep lower stand-by power consumption at ordinary times, simultaneously easy to use, simple to operate, time saving and energy saving, meet the demand that user continues a journey fast for terminal power well.
Based on the charger charging method of above-mentioned low-power consumption bluetooth, the embodiment of the present invention additionally provides a kind of charger charging system based on low-power consumption bluetooth, and as shown in Figure 6, described system comprises:
Broadcast module 10, is equipped with the charger of low-power consumption bluetooth with low-power consumption mode towards periphery can connect the charge mode information that non-directional mode broadcasts each self-corresponding charger title and support at least one; Specifically as described in step S100;
Charger List Generating Module 20, for each charger of being broadcasted by terminal scanning, the charge mode information of the charger title corresponding according to each charger and support generates corresponding charger list, specifically as described in step S200;
Matching module 30, for sending connection request by described terminal to each charger, setting up low-power consumption bluetooth with each charger successively and being connected, and traversal finds out the charger mated with described terminal, specifically as described in step S300;
Fast mold filling block 40, is connected for setting up low-power consumption bluetooth by described terminal and the charger of coupling, and notice charger starts fast mold filling formula, and charger exports charging quickly by power line and flow to described terminal, opens fast mold filling formula; Specifically as described in step S400.
Further, described matching module 30 comprises:
Connection establishment unit, is connected for setting up low-power consumption bluetooth by terminal with first charger in described charger list;
Presser unit, for sending message by low-power consumption bluetooth to described first charger, first charger receives after message by power line making alive;
Connect switching units, for detecting change in voltage waveform and record by terminal, then disconnecting low-power consumption bluetooth with first charger and being connected;
Traversal Unit, be connected for setting up low-power consumption bluetooth with the residue charger in described charger list successively by terminal, the change in voltage waveform number that record terminal detects, is disconnected low-power consumption bluetooth and connects, until searched the charger mated with described terminal by ergodic algorithm.
Further, the described charger charging system based on low-power consumption bluetooth also comprises:
Abnormality detection module, in charger quick charge process, whether terminal detects has abnormal conditions to occur, and if any exception, is connected feed back to the abnormal notice of bimodulus charger by low-power consumption bluetooth;
Fill end module soon, for terminating when charger quick charge, after terminal power is full of, terminal sends message informing electricity by the connection of low-power consumption bluetooth to charger and is full of, charger is stopped power supply after receiving above-mentioned message, and disconnects the connection of low-power consumption bluetooth, get back to idle condition, again broadcast with low-power consumption mode.
Further, described charger is bimodulus charger, and described terminal is bimodulus charging terminal.
In sum, a kind of charger charging method based on low-power consumption bluetooth provided by the invention and system, be equipped with the charger of low-power consumption bluetooth with low-power consumption mode towards periphery can connect the charge mode information that non-directional mode broadcasts each self-corresponding charger title and support by least one; Each charger that terminal scanning is being broadcasted, the charge mode information of the charger title corresponding according to each charger and support generates corresponding charger list; Described terminal sends connection request to each charger in list, sets up low-power consumption bluetooth be successively connected with each charger, and traversal finds out the charger mated with described terminal; Described terminal and the charger of coupling are set up low-power consumption bluetooth and are connected, and notice charger starts fast mold filling formula, and charger exports charging quickly by power line and flow to described terminal, opens fast mold filling formula; The charger with common charging and quick-charge function is used to be the terminal quick charge with common charging and quick-charge function, for terminal provides common charging under other charging scenarios.Namely terminal only need be connected charger with power line by user, is that terminal selects best charging scheme automatically according to the charge type of charger and terminal.Meanwhile, charger can make corresponding operation and process to being full of electricity and abnormal conditions in quick charge process.Charger and terminal keep lower stand-by power consumption at ordinary times, simultaneously easy to use, simple to operate, time saving and energy saving, meet the demand that user continues a journey fast for terminal power well, bring facilitate greatly to user.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection range that all should belong to claims of the present invention.