The content of the invention
The technical problem to be solved in the present invention is, there is provided a kind of charger charging method based on low-power consumption bluetooth and is
System, it is intended to which optimal charging can not be provided for single mode charging terminal and bimodulus charging terminal automatically by solving charger in the prior art
The problem of scheme.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of charger charging method based on low-power consumption bluetooth, wherein, comprise the following steps:
A, at least one equipped with low-power consumption bluetooth charger by low-power consumption mode to surrounding in a manner of it can connect non-directional
Broadcast each self-corresponding charger title and the charge mode information supported;
B, each charger that terminal scanning is being broadcasted, according to charger title corresponding to each charger and the charging supported
Charger list corresponding to pattern information generation;
C, the terminal sends connection request to each charger, establishes low-power consumption bluetooth with each charger successively and is connected, time
Go through the charger found out with the terminal coupling;
D, the terminal is established low-power consumption bluetooth with the charger matched and is connected, and notice charger starts fast charge pattern, fills
Electrical equipment exports charging quickly by power line and flow to the terminal, opens fast charge pattern.
The described charger charging method based on low-power consumption bluetooth, wherein, the step C is specifically included:
C1, terminal are established low-power consumption bluetooth with first charger in the charger list and are connected;
C2, by low-power consumption bluetooth to first charger send message, after first charger receives message
Pass through power line making alive;
C3, terminal detection voltage change waveform simultaneously record, and then disconnecting low-power consumption bluetooth with first charger is connected;
C4, terminal are established low-power consumption bluetooth with the remaining charger in the charger list successively and are connected, and record terminal
The voltage change waveform number detected, low-power consumption bluetooth connection is disconnected, is searched and the terminal until by ergodic algorithm
The charger of matching.
The described charger charging method based on low-power consumption bluetooth, wherein, after the step D, in addition to:
E1, during charger quick charge, terminal detects whether abnormal conditions, if any exception, by low
Power consumption bluetooth connection feeds back to bimodulus charger and notified extremely;
E2, when charger quick charge terminates, after terminal power is full of, terminal is connected to charger by low-power consumption bluetooth
Send message informing electricity to be full of, after charger receives above-mentioned message, stop power supply, and disconnect low-power consumption bluetooth connection, return
To idle condition, broadcasted again with low-power consumption mode.
The described charger charging method based on low-power consumption bluetooth, wherein, the abnormal conditions include:
The power cord of terminal and charger from and terminal is not completely filled with electricity, terminal is because quick charge causes temperature
Too high or terminal quick-charge function can not normal work.
The described charger charging method based on low-power consumption bluetooth, wherein, the charger is bimodulus charger, described
Terminal is bimodulus charging terminal.
The described charger charging method based on low-power consumption bluetooth, wherein, the charger is bimodulus charger, works as institute
When to state terminal be single mode charging terminal, single mode charging terminal will not actively go to scan and travel through bimodulus charger, not be notified that double
Mould charger starts fast charge.
A kind of charger charging system based on low-power consumption bluetooth, wherein, including:
Broadcast module, at least one equipped with low-power consumption bluetooth charger with low-power consumption mode to surrounding can connect
Non-directional mode broadcasts each self-corresponding charger title and the charge mode information supported;
Charger List Generating Module, for each charger broadcasted by terminal scanning, according to each charger pair
Charger list corresponding to the charger title answered and the charge mode information generation supported;
Matching module, for sending connection request to each charger by the terminal, established successively with each charger low
Power consumption bluetooth connection, traversal find out the charger with the terminal coupling;
Fast charge module, it is connected for establishing low-power consumption bluetooth with the charger matched by the terminal, notifies charger
Start fast charge pattern, charger exports charging quickly by power line and flow to the terminal, opens fast charge pattern.
The described charger charging system based on low-power consumption bluetooth, wherein, the matching module includes:
Connection establishment unit, for establishing low-power consumption indigo plant by first charger in terminal and the charger list
Tooth connects;
Presser unit, for sending message to first charger by low-power consumption bluetooth, first charger connects
Receive after message by power line making alive;
Switching units are connected, for detecting voltage change waveform by terminal and recording, are then broken with first charger
Open low-power consumption bluetooth connection;
Traversal Unit, for establishing low-power consumption bluetooth with the remaining charger in the charger list successively by terminal
Connection, the voltage change waveform number that record terminal detects, low-power consumption bluetooth connection is disconnected, is searched for until by ergodic algorithm
To the charger with the terminal coupling.
The described charger charging system based on low-power consumption bluetooth, wherein, in addition to:
Abnormality detection module, for during charger quick charge, terminal to detect whether abnormal conditions, such as
There is exception, feed back to bimodulus charger by low-power consumption bluetooth connection notifies extremely;
Fast charge terminate module, for terminating when charger quick charge, after terminal power is full of, terminal is blue by low-power consumption
Tooth connects to be full of to charger transmission message informing electricity, after charger receives above-mentioned message, is stopped power supply, and disconnect low work(
Bluetooth connection is consumed, idle condition is returned to, is broadcasted again with low-power consumption mode.
The described charger charging system based on low-power consumption bluetooth, wherein, the charger is bimodulus charger, described
Terminal is bimodulus charging terminal.
A kind of charger charging method and system based on low-power consumption bluetooth provided by the present invention, efficiently solve existing
There is the problem of charger can not provide optimal charging scheme for single mode charging terminal and bimodulus charging terminal automatically in technology, make
It is that the terminal with common charging and quick-charge function is quickly filled with the charger with common charging and quick-charge function
Electricity, common charging is provided for terminal under other charging scenarios.I.e. terminal only need to be connected upper charger by user with power line, just
It can be that terminal selects optimal charging scheme automatically according to charger and the charge type of terminal, very big side is brought to user
Just.
Embodiment
The present invention provides a kind of charger charging method and system based on low-power consumption bluetooth, for make the purpose of the present invention,
Technical scheme and advantage are clearer, clear and definite, and the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.Should
Understand, the specific embodiments described herein are merely illustrative of the present invention, is not intended to limit the present invention.
Low-power consumption bluetooth agreement is described in detail first as follows.
Compared with conventional Bluetooth and High Speed Bluetooth, low-power consumption bluetooth(Bluetooth Low Energy, BLE)It is maximum excellent
Point is province's power consumption, and the data volume of simultaneous transmission is also smaller, suitable for wireless between mobile intelligent terminal and intelligent charger
Service connection.The exploitation of BLE agreements is mainly in link layer(Link Layer, LL), general-purpose accessing protocol layer(Generic
Access Profile, GAP)With general-purpose attribute protocol layer(Generic Attribute Profile, GATT).
The agreement of bluetooth 4.0 issued according to bluetooth alliance, link layer define the signaling of BLE channels, under notconnect state
Broadcaster(Advertiser), scanning side(Scanner)And initiator(Initiator), the main frame under connection status
(Master)And slave(Slave).The signaling format of BLE broadcast channels and data channel is as shown in table 1, to broadcast channel sum
It is believed that road is all suitable for.Wherein, guidance code Preamble and access address Access Address is fixed for BLE channels
Data, signaling(PDU)Information can be carried in BLE channels, CRC is 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 broadcast channel
Signaling format.
4 bit PDU Type in Header determine the type of signaling, can such as connect non-directional broadcast signaling(ADV_
IND), directional broadcasting signaling can be connected(ADV_DIRECT_IND), non-directional broadcast signaling can not be connected(ADV_NONCONN_
IND), scan request signaling(SCAN_REQ), scanning reply signaling(SCAN_RSP), connection request signaling(CONNECT_REQ),
Non-directional broadcast signaling can be scanned(ADV_SCAN_IND), it is specific as shown in table 2.Table 2 is the signaling type of broadcast channel
Table 2
The Payload forms that non-directional broadcast signaling can be connected are as shown in table 3.Wherein, AdvA represents the bluetooth of broadcaster
Address, AdvData represent broadcast data packet, can at most carry the information of 31 bytes.
Table 3
The form of broadcast data packet is as shown in Figure 2.Wherein, AD Structure represent message section, a broadcast data packet
Multiple message sections can be accommodated;AD Type represent the type of message section, such as bluetooth title, bluetooth manufacturer, UUID etc.;AD Data
Represent the content of message section;Length value represents AD Type and AD Data total amount of byte.
The AD the type fields defined by bluetooth alliance are as shown in table 4, and what is be not defined is exactly reserved field.
Table 4
The Payload forms of connection request signaling are as shown in table 5.Wherein, InitA is the Bluetooth address of scanning side, AdvA
It is the Bluetooth address of broadcaster, link layer data LL Data are the contents of connection request.
Table 5
LL Data form is as shown in table 6, wherein, channel matched ChM is used for selecting the channel for transmitting data.Table 6 is company
Connect the LL Data forms of request PDU.
Table 6
37 bits represent data channel in ChM(0~36), 3 bits represent broadcast channel(37~39), as shown in table 7.
3 bit broadcast channels are to use reserved bit in the future..
Table 7
Link layer broadcast state defined in broadcast channel(Advertising State), scanning mode(Scanning
State)With the state of initiation(Initiating State).Signaling relation corresponding to broadcast channel three state is as shown in table 8.Table 8
For signaling relation corresponding to broadcast state in broadcast channel, scanning mode and initiation state.
Table 8
Wherein, broadcast state includes:
Non-directional broadcast event can be connected(Connectable undirected event):Broadcast all around direction
Scanning side broadcasts ADV_IND signalings, and states that lay oneself open to can connection mode.Broadcaster monitors the SCAN_REQ that scanning side is sent
Signaling, then send SCAN_RSP signalings to scanning side.Broadcaster also monitors the CONNECT_REQ signalings that initiator sends;
Directional broadcasting event can be connected(Connectable directed event):Broadcast specifically scans around direction
Side's broadcast ADV_DIRECT_IND signalings, and state that lay oneself open to can connection mode.Broadcaster is only monitored specific initiator and sent
CONNECT_REQ signalings;
Non-directional broadcast event can not be connected(Non-connectable undirected event):Broadcast around direction
All scanning side's broadcast ADV_NONCONN_IND signalings, and state to lay oneself open to can not connection mode.Broadcaster is not listening to sweep
The signaling that the side of retouching is sent;
Non-directional broadcast event can be scanned(Scannable undirected event):It is all around broadcast direction to sweep
Broadcast ADV_SCAN_IND signalings in the side of retouching.Broadcaster only monitors the SCAN_REQ signalings sent scanning side, is then sent out to scanning side
Send SCAN_RSP signalings.
Scanning mode includes:Drive sweep(Passive scanning):Can only in the scanning side of drive sweep pattern
The signaling of listening broadcast side's broadcast, it is impossible to externally send data;Active scan(Active scanning):Have the initiative scanning
The signaling of listening broadcast side of the scanning side broadcast of pattern, only to the broadcast of broadcast ADV_IND signalings and ADV_SCAN_IND signalings
Side sends SCAN_REQ signalings, continues the SCAN_RSP signalings sent listening broadcast side after being sent.
And the initiator in initiation state can be to the broadcast of broadcast ADV_IND signalings and ADV_DIRECT_IND signalings
Side sends CONNECT_REQ signalings.
The signaling of data channel is made up of head Header and payload Payload, may also include the message of 32 bits
Integrity checking(Message Integrity Check, MIC), as shown in Figure 3.
Link layer mark in Header(LLID)Determine the signaling type of data channel, such as link layer data signaling
(LL Data PDU), link layer control signaling(LL Control PDU), as shown in table 9, wherein, LLID is the expression of " 01 "
Continue for sending(Continuation)It is or empty(Empty)Data, LLID be " 10 " expression be used for send starting
(Start)It is or complete(Complete)Data.More data(More Data, MD)Decide whether to send more data, if
The MD positions of main frame and slave are all " 0 ", are just disconnected, and main frame stops sending data, and data are no longer monitored and received to slave;It is no
Person's main frame continues to send data, and slave continues to monitor and receive data.Length(Length)Represent Payload and MIC byte
Sum, if MIC is also included within inside data channel signaling, wherein, Payload of length no more than 27 byte, MIC occupies solid
4 fixed bytes.
Table 9
LL Data PDU are used for carrying the data transfer task of GATT layers, and its content is the data transmitted, and is not surpassed every time
Cross 27 bytes.If data content can be sent, untill data are all sent several times more than 27 bytes.
In GAP layers, 4 kinds of roles are defined:Broadcast role(Broadcaster Role), observation role(Observer
Role), peripheral role(Peripheral Role)With center role(Central Role).Specifically, broadcast role:It is in
The equipment of role is broadcasted with low-power consumption mode to surrounding broadcast, but not responds the connection request that other equipment is sent, that is, is in
The equipment of broadcast role is in can not connection mode;Observe role:Equipment in observation role can be scanned in broadcast angle
The equipment of color, but connection request can not be initiated, i.e., the equipment in observation role is in can not connection mode;Peripheral role:Place
In the connection request that the equipment of peripheral role is sent with low-power consumption mode to surrounding broadcast, response other equipment, i.e., in periphery
The equipment of role is in can connection mode;Center role:Equipment in center role can scan setting in peripheral role
It is standby, connection request can be initiated, i.e., the equipment in center role is in can connection mode.
The corresponding relation of LL layers and GAP layers is as shown in table 10, wherein, " E " represents not support, " M " represents to support,
" O " represents that selection is supported, " O/E " is represented if center role supports drive sweep, then center role selecting is supported actively to sweep
Retouch, no person center role must support active scan.
Table 10
Four kinds of bimodulus charging terminal, single mode charging terminal, bimodulus charger and single mode charger things defined in the present invention
Manage device type.Bimodulus charging terminal is with the terminal that can carry out two kinds of charge modes of fast charge and common charging, bimodulus charging
Device is the charger with two kinds of charge modes of fast charge and common charging, and on fast charge and common charging, this is prior art, this
Excessive description is not done in place.
When bimodulus charger is in peripheral role, during with low-power consumption mode to surrounding broadcast ADV_IND signalings, while bimodulus
Charging terminal is in center role, carries out active scan, and its communication mechanism is as shown in table 11.Bimodulus charging terminal charges to bimodulus
Device initiates connection request, establishes connection.
Table 11
GATT layers define server(Server)And client(Client).Server can send number to client
According to otherwise client can not send data to server, as shown in table 12.
Table 12
After bimodulus charging terminal and bimodulus charger successful connection, it is meant that GATT layers are entered from GAP layers, originally
Center role and peripheral role are changed into server and client side.In on server and client side and GAP layers on GATT layers
Heart role and peripheral role are two independent concepts, i.e., original bimodulus charging terminal or bimodulus charger both can be services
Device can be client again, can also concurrently act as server and client side.
Referring to Fig. 4, Fig. 4 is the charger charging method preferred embodiment provided by the invention based on low-power consumption bluetooth
Flow chart, as illustrated, the described method comprises the following steps:
Step S100, at least one equipped with low-power consumption bluetooth charger it is non-fixed that can connect to surrounding with low-power consumption mode
Each self-corresponding charger title and the charge mode information supported are broadcasted to mode;
Step S200, each charger that terminal scanning is being broadcasted, according to charger title and branch corresponding to each charger
Charger list corresponding to the charge mode information generation held;
Step S300, described terminal sends connection request to each charger, establishes low-power consumption bluetooth with each charger successively
Connection, traversal find out the charger with the terminal coupling;
Step S400, described terminal is established low-power consumption bluetooth with the charger matched and is connected, and notice charger starts fast charge
Pattern, charger export charging quickly by power line and flow to the terminal, open fast charge pattern.
Above-mentioned steps are described in detail with reference to specific embodiment.
In the step s 100, at least one equipped with low-power consumption bluetooth charger with low-power consumption mode to surrounding can connect
Non-directional mode broadcasts each self-corresponding charger title and the charge mode information supported.Specifically, at least one charging
Device is broadcasted with low-power consumption mode.In actual use, the charger is bimodulus charger, i.e., with fast charge and general fills two kinds
The charger of charge mode, and equipped with low-power consumption bluetooth on bimodulus charger(BLE)Module.Under idle condition, bimodulus charging
Device is broadcasted with low-power consumption mode.
In an idle state, bimodulus charger is broadcasted in a manner of " can connect non-directional " by low-power consumption mode to surrounding, extensively
Unicast packets form can be defined as shown in table 13, but be not limited to this, as long as can show the bluetooth by broadcast data packet
Equipment is bimodulus charger.Table 13 is the broadcast data packet of bimodulus charger.
Table 13
Wherein, Length value represents AD Type and Data total amount of byte;AD Type value " 09 " represents message section
Type be bluetooth equipment complete name;Data represents the title of bimodulus charger, such as " Charger1 ";Broadcast data packet
Remainder bytes zero padding.
Step S200 the bimodulus charger that terminal scanning is being broadcasted, obtains bimodulus charger row to prepare the fast charge stage
Table.If the terminal is single mode charging terminal, the single mode charging terminal bimodulus charger that active scan is not being broadcasted, also not
Bimodulus charger can be traveled through, is less notified that bimodulus charger starts fast charge.This is illustrated exemplified by sentencing bimodulus charging terminal
It is as follows.
The bluetooth equipment broadcasted around bimodulus charging terminal active scan with low-power consumption mode, is arrived by parsing scanning
Bluetooth equipment broadcast data packet content, filter out characterize bimodulus charger bluetooth equipment, as bluetooth device name is
" Charger0 " arrives the bluetooth equipment of " Charger9 ", obtains bimodulus charger list, as shown in table 14
Table 14
In step S300, the terminal sends connection request to each charger, establishes low-power consumption with each charger successively
Bluetooth connection, traversal find out the charger with the terminal coupling.Specifically, terminal and first in the charger list
Individual charger establishes low-power consumption bluetooth connection;Message is sent to first charger by low-power consumption bluetooth, first is filled
Electrical equipment is received after message by power line making alive;Terminal detects voltage change waveform and recorded, and is then charged with first
Device disconnects low-power consumption bluetooth connection;Terminal establishes low-power consumption bluetooth company with the remaining charger in the charger list successively
Connect, the voltage change waveform number that record terminal detects, disconnect low-power consumption bluetooth connection, searched until by ergodic algorithm
With the charger of the terminal coupling.
In ergodic process, bimodulus charging terminal first establishes BLE with first bimodulus charger in bimodulus charger list
Connection, after successful connection, bimodulus charging terminal sends message by BLE to bimodulus charger, and bimodulus charger receives message
Simultaneously recorded by power line making alive, bimodulus charging terminal detection voltage change waveform afterwards, then disconnect BLE with bimodulus charger
Connection;Then bimodulus charging terminal is established BLE with the remaining bimodulus charger in bimodulus charger list successively and is connected, interaction letter
Breath, the voltage change waveform number detected is recorded, BLE connections are disconnected, until searching only one by ergodic algorithm
The bimodulus charger matched somebody with somebody.
In practical application, after bimodulus charger list is obtained, bimodulus charging terminal is first in bimodulus charger list
First bimodulus charger send connection request signaling, the 37th in the ChM shown in table 15 is customized for 39
" 001 " so that bimodulus charger can recognize that bimodulus charging terminal, while not had an impact to normal BLE communications.
Table 15
After successful connection, bimodulus charging terminal sends Notification by BLE to bimodulus charger(Notice)Message,
Such as " Who is my fast charger", it is therefore an objective to allow the bimodulus charger to pass through electricity after receiving Notification
Source line making alive.
The Payload forms of customized link layer data signaling are as shown in figure 5, wherein, Length value represents
The type of Notification message(Type)And content(Content)Total amount of byte;Payload remainder bytes zero padding.
Fig. 5 is the Payload forms of customized link layer data signaling.
When bimodulus charging terminal starts to send data, the Header forms of data channel signaling are as shown in table 16, now,
Bimodulus charger is monitored and receives data.Wherein, the LLID being worth for " 10 ", which is represented, sends partial data, is worth the MD expressions for " 1 "
Also more data etc. is to be sent, and the Length being worth for " 11111 " represents Payload and MIC total amount of byte, if MIC
It is included in inside the signaling of data channel, wherein, Payload length is 27 bytes, and MIC occupies 4 fixed bytes.Table 16 is
The Header forms of data channel signaling when also more data needs to send.
Table 16
When bimodulus charging terminal is sent, the Header forms of data channel signaling are as shown in table 17, are worth for " 0 "
MD represents that total data has been sent.Now, bimodulus charging terminal and bimodulus charger disconnect, bimodulus charging terminal
Business datum is not retransmited, while bimodulus charger also ceases listening for and received data.When table 17 is that data are all sent
Data channel PDU Header forms.
Table 17
After bimodulus charger receives the Notification message in Fig. 5, a voltage change is sent by power line
Waveform, bimodulus charging terminal have detected whether voltage change waveform and recorded that then disconnecting BLE with bimodulus charger is connected.Connect
Bimodulus charging terminal and establish BLE with the remaining bimodulus charger in bimodulus charger list successively and be connected, interactive information, record
The voltage change waveform number detected, BLE connections are disconnected, the bimodulus until searching only one matching by ergodic algorithm
Charger.
In the step S400, after the match is successful, bimodulus charging terminal first establishes BLE companies with the bimodulus charger matched
Connect.After successful connection, bimodulus charging terminal sends Notification by BLE to bimodulus charger(Notice)Message, such as
“Please start fast charge!", the Payload forms of customized link layer data signaling are as shown in Figure 5.When double
When mould charging terminal starts to send data, the Header forms of data channel signaling are as shown in table 16, when bimodulus charging terminal is sent out
Send when finishing, the Header forms of data channel signaling are as shown in table 17.
Then bimodulus charger sends Notification message to bimodulus charging terminal by BLE and shown to start successfully,
Such as " Fast charge start successfully!”.The Payload forms of customized link layer data signaling are as schemed
Shown in 5.When bimodulus charger starts to send data, the Header forms of data channel signaling are as shown in table 16, when bimodulus fills
When electrical equipment is sent, the Header forms of data channel signaling are as shown in table 17.At the same time, bimodulus charger passes through power supply
Line exports fast charge electric current, opens fast charge pattern.
Further, after the step S400, in addition to:During charger quick charge, terminal detection is
It is no to have abnormal conditions, if any exception, bimodulus charger is fed back to by low-power consumption bluetooth connection and notified extremely;
When charger quick charge terminates, after terminal power is full of, terminal is connected to charger by low-power consumption bluetooth and sent out
Send message informing electricity to be full of, after charger receives above-mentioned message, stop power supply, and disconnect low-power consumption bluetooth connection, return to
Idle condition, broadcasted again with low-power consumption mode.
Specifically, the abnormal conditions include:The power cord of terminal and charger from and terminal be not completely filled with
Electricity, terminal cause temperature too high or the quick-charge function of terminal can not normal work due to quick charge.Quick charge process
In, bimodulus charging terminal detects whether abnormal conditions.Abnormal conditions 1:User's imprudence has encountered bimodulus charging terminal,
Cause bimodulus charging terminal and power cord from while bimodulus charging terminal is not completely filled with electricity;Abnormal conditions 2:In user
Way needs to use bimodulus charging terminal, causes bimodulus charging terminal and power cord from while bimodulus charging terminal is not complete
It is fully charged;Abnormal conditions 3:Bimodulus charging terminal due to quick charge it is possible that it is hot, overheat phenomena such as, now if after
It is continuous to carry out quick charge, it may occur that the spontaneous combustion even peril such as blast;Abnormal conditions 4:Bimodulus charging terminal is due to making
With year it is longer may cause quick-charge function can not normal work again, now if continuing quick charge, it may occur that
The spontaneous combustion even peril such as blast.
Bimodulus charging terminal detects these above-mentioned abnormal conditions, is sent by BLE to bimodulus charger
Notification message, notice have abnormal conditions, such as " An unexpected case occurs!”.It is customized
The Payload forms of link layer data signaling are as shown in Figure 5.When bimodulus charging terminal starts to send data, data channel letter
The Header forms of order are as shown in table 16, and when bimodulus charging terminal is sent, the Header forms of data channel signaling are such as
Shown in table 17.At the same time, bimodulus charging terminal notifies user to have abnormal conditions in a manner of sound or vibration.Bimodulus fills
After electrical equipment receives above-mentioned message, stop output fast charge electric current, and disconnect BLE connections, idle condition is returned to, again with low-power consumption
Mode broadcast.
And when quick charge terminates, after bimodulus charging terminal electricity is full of, bimodulus charging terminal is filled by BLE to bimodulus
Electrical equipment sends Notification message, and notice electricity is full of, such as " Fast charge completes!”.Customized chain
The Payload forms of road layer data signaling are as shown in Figure 5.When bimodulus charging terminal starts to send data, data channel signaling
Header forms it is as shown in table 16, when bimodulus charging terminal is sent, the Header forms such as table of data channel signaling
Shown in 17.After bimodulus charger receives above-mentioned message, stop output fast charge electric current, and disconnect BLE connections, return to idle shape
State, broadcasted again with low-power consumption mode.
Further, single mode charging terminal will not actively go to scan and travel through bimodulus charger, less be notified that bimodulus fills
Appliance starting fast charge.There may be the bimodulus charger that other bimodulus charging terminals have traversed connection single mode charging terminal so that
The bimodulus charger output voltage changes waveform, but because bimodulus charging terminal is by traveling through the bimodulus for finding only one and matching
Notification message informing bimodulus charger is just sent by BLE after charger and starts fast charge, other bimodulus will not be filled
Electrical equipment produces erroneous judgement, therefore the bimodulus charger that can ensure to connect single mode charging terminal can only be carried out to the single mode charging terminal
Common charging.In practical application, single mode charging terminal will not actively go to scan and travel through bimodulus charger, less it is notified that double
Mould charger starts fast charge;Meanwhile single mode charger can only provide common charge function.Therefore, single mode charger can only be to double
Mould charging terminal and single mode charging terminal provide common charging.
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 provided by the invention based on low-power consumption bluetooth, for single mode charger and bimodulus charger
Two kinds of different chargers, two kinds of different terminals of single mode charging terminal and bimodulus charging terminal, can be divided into four kinds it is different should
Use scene.Only in bimodulus charger under the application scenarios of bimodulus charging terminal, bimodulus charging terminal passes through wireless BLE duplexs
Communication and cable power line one-way communication two ways travel through all bimodulus chargers, until finding the bimodulus charger of matching
Quick charge is carried out for bimodulus charging terminal, under other application scene, single mode charging terminal and bimodulus charging terminal can only enter
The common charging of row., can be under four kinds of different application scenarios, automatically for single mode charging eventually according to scheme described in the invention
End and bimodulus charging terminal provide optimal charging scheme.In whole process, user is easy to operate, meanwhile, charger and terminal
Usually there is ultralow stand-by power consumption.
Charger charging method provided by the invention based on low-power consumption bluetooth, using with common charging and quick charge
The charger of function is with common charging and the terminal quick charge of quick-charge function, is terminal under other charging scenarios
Common charging is provided.I.e. terminal only need to be connected upper charger by user with power line, automatically according to the charging of charger and terminal
Type is that terminal selects optimal charging scheme.At the same time, charger can be during quick charge to fully charged and abnormal
Situation makes corresponding operation and processing.Charger and terminal usually keep relatively low stand-by power consumption, while easy to use, operation
Simply, it is time saving and energy saving, demand of the user for the quick continuation of the journey of terminal power is met well.
Charger charging method based on above-mentioned low-power consumption bluetooth, the embodiment of the present invention additionally provide one kind and are based on low-power consumption
The charger charging system of bluetooth, as shown in fig. 6, the system includes:
Broadcast module 10, at least one equipped with low-power consumption bluetooth charger with low-power consumption mode to surrounding can connect
Connect non-directional mode and broadcast each self-corresponding charger title and the charge mode information supported;Specifically as described in step S100;
Charger List Generating Module 20, for each charger broadcasted by terminal scanning, according to each charger
Charger list corresponding to corresponding charger title and the charge mode information generation supported, specifically as described in step S200;
Matching module 30, for sending connection request to each charger by the terminal, established successively with each charger
Low-power consumption bluetooth connects, and traversal finds out the charger with the terminal coupling, specifically as described in step S300;
Fast charge module 40, it is connected for establishing low-power consumption bluetooth with the charger matched by the terminal, notice charging
Device starts fast charge pattern, and charger exports charging quickly by power line and flow to the terminal, opens fast charge pattern;Specific such as step
Described in S400.
Further, the matching module 30 includes:
Connection establishment unit, for establishing low-power consumption indigo plant by first charger in terminal and the charger list
Tooth connects;
Presser unit, for sending message to first charger by low-power consumption bluetooth, first charger connects
Receive after message by power line making alive;
Switching units are connected, for detecting voltage change waveform by terminal and recording, are then broken with first charger
Open low-power consumption bluetooth connection;
Traversal Unit, for establishing low-power consumption bluetooth with the remaining charger in the charger list successively by terminal
Connection, the voltage change waveform number that record terminal detects, low-power consumption bluetooth connection is disconnected, is searched for until by ergodic algorithm
To the charger with the terminal coupling.
Further, the charger charging system based on low-power consumption bluetooth also includes:
Abnormality detection module, for during charger quick charge, terminal to detect whether abnormal conditions, such as
There is exception, feed back to bimodulus charger by low-power consumption bluetooth connection notifies extremely;
Fast charge terminate module, for terminating when charger quick charge, after terminal power is full of, terminal is blue by low-power consumption
Tooth connects to be full of to charger transmission message informing electricity, after charger receives above-mentioned message, is stopped power supply, and disconnect low work(
Bluetooth connection is consumed, idle condition is returned to, is broadcasted again with low-power consumption mode.
Further, the charger is bimodulus charger, and the terminal is bimodulus charging terminal.
In summary, a kind of charger charging method and system based on low-power consumption bluetooth provided by the invention, by extremely
Few one broadcasts respective correspondence to surrounding by low-power consumption mode equipped with the charger of low-power consumption bluetooth in a manner of it can connect non-directional
Charger title and support charge mode information;Each charger that terminal scanning is being broadcasted, it is corresponding according to each charger
Charger title and support charge mode information generation corresponding to charger list;Each charging of the terminal into list
Device sends connection request, establishes low-power consumption bluetooth with each charger successively and is connected, and traversal finds out the charging with the terminal coupling
Device;The terminal is established low-power consumption bluetooth with the charger matched and is connected, and notice charger starts fast charge pattern, and charger passes through
Power line output charging quickly flow to the terminal, opens fast charge pattern;Use filling with common charging and quick-charge function
Electrical equipment is with common charging and the terminal quick charge of quick-charge function, is provided commonly for terminal under other charging scenarios
Charging.I.e. terminal only need to be connected upper charger by user with power line, automatically according to charger and the charge type of terminal for eventually
End selects optimal charging scheme.At the same time, charger can be made during quick charge to fully charged and abnormal conditions
Corresponding operation and processing.Charger and terminal usually keep relatively low stand-by power consumption, while easy to use, simple to operate, save
Shi Shengli, demand of the user for the quick continuation of the journey of terminal power is met well, bring to user and greatly facilitate.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect scope.