CN104460923A - Intelligent battery managing method, upper computer and portable mobile device - Google Patents
Intelligent battery managing method, upper computer and portable mobile device Download PDFInfo
- Publication number
- CN104460923A CN104460923A CN201410714581.5A CN201410714581A CN104460923A CN 104460923 A CN104460923 A CN 104460923A CN 201410714581 A CN201410714581 A CN 201410714581A CN 104460923 A CN104460923 A CN 104460923A
- Authority
- CN
- China
- Prior art keywords
- intelligent battery
- host computer
- smbus
- address
- instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/266—Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The embodiment of the invention provides an intelligent battery managing method, an upper computer and a portable mobile device, and belongs to the field of battery control. The size of the mobile device can be reduced, the portable device is convenient to carry, the communication procedures can be reduced, and the communication efficiency can be improved. The intelligent battery managing method is applied to the upper computer and comprises the steps that the address of an intelligent battery is obtained, an input/output interface of the intelligent battery is connected with one end of an SMBus, and the other end of the SMBus is connected with an input/output interface of the upper computer; according to the address of the intelligent battery, an instruction is sent to the intelligent battery. The intelligent battery managing method is used for controlling the intelligent battery.
Description
Technical field
The present invention relates to battery control field, particularly relate to a kind of intelligent battery management method and host computer, portable mobile apparatus.
Background technology
Along with the development of battery technology, existing mobile device, when not having external power supply, provides electric power by intelligent battery usually.Because mobile device needs to use when not having external power supply for a long time, the therefore acquisition of mobile device to information such as the capacity of battery and flying powers and the power consumption to mobile device and seem particularly important with the control of the character such as power mode.
Existing mobile device realizes the control to battery and the acquisition to feedback information by means of embedded control unit usually, described embedded control unit is generally MCU (MicroControl Unit, micro-control unit) or embedded microprocessor etc.General, the intelligent battery control system of mobile device comprises intelligent battery embedded control unit and host computer, instruction is sent to embedded control unit by host computer, then intelligent battery generates feedback information according to the instruction of host computer, then feedback information is sent to embedded control unit, this feedback information is transmitted to host computer by embedded control unit, makes host computer obtain information needed.
But due in prior art, need for intelligent battery arranges the independent embedded control unit of carrying out transfer process, and the price of the embedded control unit such as conventional MCU or embedded microprocessor is higher, this makes the cost of PC control intelligent battery larger, the volume of MCU or embedded microprocessor is also larger simultaneously, add the volume of the mobile device adopting this intelligent battery, limit the portability development of mobile device.And because host computer needs to be controlled intelligent battery by the transfer process of embedded control unit, make the flow process of the communication of intelligent battery and host computer longer, efficiency is lower.
Summary of the invention
Embodiments of the invention provide a kind of intelligent battery management method and host computer, portable mobile apparatus, can reduce the volume of mobile device, and mobile device is easy to carry, and can reduce communication process simultaneously, improve the efficiency of communication.
For achieving the above object, embodiments of the invention adopt following technical scheme:
On the one hand, the embodiment of the present invention provides a kind of intelligent battery management method, and for host computer, described method comprises:
Obtain the address of intelligent battery, the input/output interface of described intelligent battery is connected with one end of System Management Bus SMBus, and the other end of described SMBus is connected with the input/output interface of described host computer;
According to the address of described intelligent battery, send instruction to described intelligent battery.
On the other hand, the embodiment of the present invention provides a kind of host computer, and described host computer comprises:
Acquiring unit, for obtaining the address of intelligent battery, the input/output interface of described intelligent battery is connected with one end of System Management Bus SMBus, and the other end of described SMBus is connected with the input/output interface of described host computer;
Transmitting element, for the address according to described intelligent battery, sends instruction to described intelligent battery.
Again on the one hand, the embodiment of the present invention provides a kind of portable mobile apparatus, comprises the above any one host computer and intelligent battery;
The input/output interface of described intelligent battery is connected with one end of System Management Bus SMBus, and the other end of described SMBus is connected with the input/output interface of described host computer.
Compared to prior art, the intelligent battery management method that the embodiment of the present invention provides and host computer, portable mobile apparatus comprise following advantage:
(1) because the input/output interface of intelligent battery is connected with one end of System Management Bus SMBus, the other end of described SMBus is connected with the input/output interface of host computer.So, communication between host computer and intelligent battery does not need to carry out transfer process through embedded control unit, but the direct communication of host computer and intelligent battery is achieved by SMBus, save the cost of PC control intelligent battery, especially owing to not comprising the embedded control unit for carrying out transfer process between host computer and intelligent battery in mobile device, building of embedded control unit and peripheral circuit can be omitted, be beneficial to the volume reducing mobile device, mobile device is easy to carry.
(2) when host computer needs to control intelligent battery, first can obtain the address of intelligent battery, then by the instruction that SMBus needs described intelligent battery to perform to intelligent battery transmission host computer, this instruction meets SMBus agreement.So, host computer can directly be completed by SMBus the control of intelligent battery, and namely intelligent battery directly can receive the instruction that host computer sends, and decreases the flow process of communication, save the time of being carried out transfer process by embedded control unit, thus improve the efficiency of communication.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of a kind of intelligent battery management method that Fig. 1 provides for the embodiment of the present invention;
The process flow diagram of the another kind of intelligent battery management method that Fig. 2 provides for the embodiment of the present invention;
The structural representation of a kind of host computer that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the another kind of host computer that Fig. 4 provides for the embodiment of the present invention;
The structural representation of another host computer that Fig. 5 provides for the embodiment of the present invention;
The structural representation of a kind of portable mobile apparatus that Fig. 6 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of intelligent battery management method, and for host computer, as shown in Figure 1, described method comprises:
The address of step 101, acquisition intelligent battery, the input/output interface of described intelligent battery is connected with one end of SMBus, and the other end of described SMBus is connected with the input/output interface of described host computer.
Because intelligent battery is by SMBus (System Management Bus, System Management Bus) be connected with host computer, such intelligent battery can as SMBus from equipment, make host computer can by controls SMBus from the mode of equipment, control intelligent battery.In practical application, host computer, when by the communicating from equipment of SMBus and SMBus, first needs to obtain the address from equipment, then using the address from equipment as the unique ID from equipment, by this ID with from devices communicating.Therefore, when host computer communicates with intelligent battery, first need the address obtaining intelligent battery as unique ID of intelligent battery, then communicated with intelligent battery by this ID.
Step 102, address according to described intelligent battery, send instruction to described intelligent battery.
Described instruction is write according to SMBus agreement, meets the transmission requirement of SMBus agreement, therefore can directly be transmitted by SMBus.This instruction is that host computer runs needs generation according to user's request or host computer, such as when user needs the manufacturer's title learning intelligent battery, this instruction is manufacturer's instruction, and intelligent battery can according to this manufacturer's instruction to host computer feedback manufacturer title; Or when host computer needs the dump energy determining intelligent battery, this instruction is dump energy instruction, intelligent battery can according to the dump energy of this dump energy instruction to host computer feedback intelligent battery.In practical application, this instruction can be the stereotyped command between host computer and intelligent battery, and can be also the extended instruction that user arranges as required between host computer and intelligent battery, the embodiment of the present invention limit this.
So, because the input/output interface of intelligent battery is connected with one end of System Management Bus SMBus, the other end of described SMBus is connected with the input/output interface of host computer.The communication between host computer and intelligent battery is made not need to carry out transfer process through embedded control unit, but directly communicated by SMBus, save the cost of PC control intelligent battery, reduced the volume of mobile device simultaneously, mobile device is easy to carry.Decrease the flow process of communication simultaneously, saved the time of being carried out transfer process by embedded control unit, thus improve the efficiency of communication.
It should be noted that, in order to when host computer sends instruction by SMBus to intelligent battery, realize the SMBus interface directly controlling described host computer, need to design special interface function.Example, during the interface function of SMBus interface described in position machine direct control in design, need the order set according to intelligent battery, the verification scheme of data correctness, the mechanism such as communication protocol carry out function design, the function of main realization is initialization built-in function, port initialization, specifically port data arrange function, the multibyte buffer zone process function etc. that particular port Data Read Function and port accept.Above-mentioned each class function design can design with reference to existing system function, and the embodiment of the present invention does not repeat at this.
Further, in the address according to described intelligent battery, after described intelligent battery sends instruction, described method also comprises: receive the feedback information that described intelligent battery sends; According to described feedback information, control described intelligent battery.
The instruction that host computer needs intelligent battery to perform has polytype, wherein a part of instruction needs intelligent battery to the information of host computer feedback host computer needs, when performing this part instructs, the feedback information that the described host computer needs that first intelligent battery can generate described instruction instruction obtain, described feedback information meets SMBus agreement, then described feedback information is sent to described host computer by described SMBus, so that described host computer is according to described feedback information, control described intelligent battery.Owing to being connected by SMBus between intelligent battery with host computer, the feedback information therefore meeting SMBus agreement directly can send to host computer by SMBus by intelligent battery.
Example, when host computer needs the capacity knowing intelligent battery, capacity instruction can be sent to intelligent battery, intelligent battery can generate feedback information according to this capacity instruction, this feedback information comprises the capacity of intelligent battery, and this feedback information meets SMBus agreement, then this feedback information is directly sent to host computer by SMBus, so that host computer obtains the capacity of intelligent battery, and can further according to the mode of operation that the Capacity Selection mobile device of intelligent battery is suitable.
In practical application, the instruction also having another part not need to generate feedback information is sent in the instruction of intelligent battery at host computer, example, when determining that the cruising time of intelligent battery is not enough, host computer can select the mode of operation changing mobile device to extend the cruising time of intelligent battery, such as, be battery saving mode by the working mode transition of mobile device, under battery saving mode, intelligent battery can reduce the output electricity in the unit interval, namely the mode of operation of intelligent battery also changes into battery saving mode, now host computer can send battery operated mode instruction to intelligent battery.After intelligent battery receives this battery operated mode instruction, feedback information can not be sent to host computer, directly normal mode of operation be changed into battery saving mode.
Further, before the address of described acquisition intelligent battery, described method comprises: the base address obtaining described SMBus controller; According to described base address, enable described SMBus controller; The address of described acquisition intelligent battery comprises: by described SMBus controller, obtains the address of intelligent battery.
Example, when host computer needs to send instruction to intelligent battery, the SMBus controller that can first make host computer comprise is in enabled state, it is in running order that described enabled state is described SMBus controller, then the address of intelligent battery is obtained, this address is unique ID of intelligent battery, and the equipment then indicated to this address sends instruction, namely sends instruction to intelligent battery.Such as, when host computer is processor, this processor is connected with South Bridge chip, South Bridge chip comprises pci controller, because SMBus controller belongs to PCI (Peripheral Component Interconnect, peripheral assembly connects) equipment, so processor can obtain the base address of SMBus controller in pci controller.When host computer needs to send instruction to intelligent battery, first from pci controller list of devices, find the base address of SMBus controller, then the offset address sum of this base address and the corresponding register of SMBus controller is utilized to obtain SMBUS register mappings address, according to the enable bit of SMBUS register mappings address enable SMBus, make now that SMBus controller is in running order, then intelligent battery ID is obtained, this ID is set to SMBus mailing address, after host computer sends instruction by SMBus to this ID, host computer arranges SMBus and enters waiting status, wait for that intelligent battery returns feedback information, now can the data of cycle criterion SMBus status register normal bit, determine whether intelligent battery have sent feedback information.After have received feedback information, according to the type of feedback information, read the numerical value in corresponding register, described numerical value is the data that host computer needs, host computer can carry out different disposal according to the difference of read data, obtains these data or sends next instruction to intelligent battery.
It should be noted that, the integrated register of SMBUS controller itself comprise status register, command register, control register, from device address register, data register.Status register effect comprises replacement, enable, and pattern is arranged, the effects such as command execution results feedback.Command register is responsible for receiving instruction, or is sent to from equipment by SMBUS by the input/output interface of instruction from host computer.The address of SMBus from equipment of storage needs communication is responsible for from device address register.Data register is responsible for storing the feedback information sent from equipment, and comprise the information from reading from equipment, data register is often multiple, is divided into byte data register and data block Parasites Fauna etc., for storing the data of the different length returned.
Further, the input/output interface of described host computer is connected with one end of SMBus by high speed peripheral component interlinkage PCIE interface.
Wherein, PCIE interface is the interface meeting PCIE agreement, PCIE is a kind of interface and bus standard, feature to realize the point-to-point binary channels high bandwidth transmission of high speed serialization, independent channel bandwidth can be distributed for the equipment be connected with PCIE interface, not shared bus bandwidth, makes the traffic rate between equipment greatly improve.Current PCIE interface has been applied on most of host computer, PCIE is that SMBus has reserved pin interfaces simultaneously, so, intelligent battery can be connected by SMBus and PCIE interface, and then be connected with host computer by PCIE interface, realizing, on the basis that intelligent battery and host computer directly communicate, improve the communication reliability between intelligent battery and host computer, improve the traffic rate between intelligent battery and host computer simultaneously.
The embodiment of the present invention provides a kind of intelligent battery management method, first host computer obtains the address of intelligent battery, the input/output interface of described intelligent battery is connected with one end of SMBus, the other end of described SMBus is connected with the input/output interface of described host computer, then according to the address of described intelligent battery, instruction is sent to described intelligent battery.Compared to prior art, because the input/output interface of intelligent battery is connected with one end of SMBus, the other end of SMBus is connected with the input/output interface of host computer, make the transfer process that the communication between host computer and intelligent battery does not need through embedded control unit, achieve the direct communication of host computer and intelligent battery, save the cost of PC control intelligent battery, especially owing to not comprising the embedded control unit for carrying out transfer process between host computer and intelligent battery in mobile device, building of embedded control unit and peripheral circuit can be omitted, be beneficial to the volume reducing mobile device, mobile device is easy to carry, and host computer can directly be completed by SMBus the control of intelligent battery, namely intelligent battery directly can receive the instruction that host computer sends, decrease the flow process of communication, saved the time of being carried out transfer process by embedded control unit, thus improve the efficiency of communication.
The embodiment of the present invention provides a kind of intelligent battery management method, as shown in Figure 2, it should be noted that, the input/output interface of described host computer is connected with one end of System Management Bus SMBus by PCIE interface, the other end of described SMBus is connected with the input/output interface of intelligent battery, and the invention process example assumes host computer is processor.Described intelligent battery management method comprises:
Step 201, host computer obtain the base address of SMBus controller.
Example, suppose that host computer is processor, this processor is connected with South Bridge chip, PCI (Peripheral Component Interconnect is integrated with in South Bridge chip, periphery component interconnection) controller, because SMBus controller belongs to PCI equipment, so SMBus controller is a part for pci controller.During system initialization, in processor, be configured with the address information of pci controller, in pci controller, be configured with the base address of SMBus controller.When processor needs the base address obtaining SMBus controller, processor can by the address information of pci controller, control to send address acquisition instruction to pci controller, after pci controller is subject to this instruction, the base address of SMBus controller is fed back to processor.
Step 202, base address according to SMBus controller, the enable SMBus controller of host computer.
In practical application, after processor gets the base address of SMBus controller, the enable bit of the status register of SMBus controller is set to 1, namely SMBus controller is enable, SMBus controller is in running order, so that processor is by SMBus controller control SMBus, and then control intelligent battery according to SMBus.
Need illustrate, the integrated register of SMBUS controller itself comprise status register, command register, control register, from device address register, data register.Status register effect comprises replacement, enable, and pattern is arranged, the effects such as command execution results feedback.Command register is responsible for receiving instruction, or is sent to from equipment by SMBus by the input/output interface of instruction from host computer.The address of SMBus from equipment of storage needs communication is responsible for from device address register.Data register is responsible for storing the feedback information sent from equipment, and comprise the information from reading from equipment, data register is often multiple, is divided into byte data register and data block Parasites Fauna etc., for storing the data of the different length returned.
Step 203, host computer obtain the address of intelligent battery.
During initialization, each SMBus sets as the case may be from the address of equipment, and each have unique address from equipment.After having set, each address from equipment is kept at SMBus controller, and each from equipment preservation Self address.After SMBus controller is enable, pci controller is first by obtaining the address of intelligent battery in described SMBus controller, then according to the address of intelligent battery, scanning SMBus from equipment, confirm SMBus whether exist from equipment address identical with the address of the intelligent battery preserved in SMBus controller from equipment, namely confirm that whether intelligent battery is online, when confirming that intelligent battery is online, by the function that arranges battery mailing address, the address of described intelligent battery is set to the mailing address of SMBus, by this address write SMBus controller comprise from device address register.
Step 204, address according to intelligent battery, host computer sends the first instruction to intelligent battery.
After processor gets the address of intelligent battery, the address of intelligent battery is set to SMbus from devices communicating address, by this address write SMBus controller comprise from device address register, then send instruction according to this address to intelligent battery.Example, suppose that processor needs to obtain the dump energy of intelligent battery, processor sends the first instruction to intelligent battery, and confirms instruction, and this first instruction is for obtaining battery capacity instruction.Concrete, this battery capacity instruction to be write into by command set function the command register that SMBus controller comprises by processor, when the status register that SMBus controller comprises can be set to effectively by confirmation command function by the complete preprocessor of instruction write, when status register is effective, intelligent battery confirms to write new instruction in command register, by the data in PCIE interface reading order register, and then obtain the first instruction of processor transmission.Adopt PCIE interface to communicate, when position machine directly communicates with intelligent battery in realization, further increase communication efficiency.
Step 205, intelligent battery perform instruction, and generate feedback information according to execution result.
Intelligent battery is resolved after getting the first instruction, learn that this first instruction is capacity instruction, then perform this capacity instruction, generate feedback information, this feedback information is the dump energy of the intelligent battery that processor needs, and supposes that the dump energy of battery is 20%.In practical application, first the data register that this feedback information can comprise according to the data layout write SMBus controller of battery protocol by intelligent battery, be namely written as 20% the data meeting battery protocol, then by these data write data register.
In practical application, the instruction also having another part not need to generate feedback information is sent in the instruction of intelligent battery at host computer, example, when determining that the cruising time of intelligent battery is not enough, host computer can select the mode of operation changing mobile device to extend the cruising time of intelligent battery, such as, be battery saving mode by the working mode transition of mobile device, under battery saving mode, intelligent battery can reduce the output electricity in the unit interval, namely the mode of operation of intelligent battery also changes into battery saving mode, now host computer can send battery operated mode instruction to intelligent battery.After intelligent battery receives the first instruction comprising battery operated mode instruction, feedback information can not be sent to host computer, directly normal mode of operation be changed into battery saving mode.
Feedback information is sent to host computer by step 206, intelligent battery.
After the first instruction is sent to intelligent battery by command register, SMBus controller is set to waiting status by processor, and the data of timing read status register acceptance of the bid level, according to the data of normal bit, processor can learn whether intelligent battery is written with data register by feedback information.When supposing that the data of this normal bit are effective, represent that feedback information is written with data register by intelligent battery.Processor can cycle detection status register acceptance of the bid level data, when processor detects that the normal bit data of status register are effective, data in read data register, namely the data meeting battery protocol stored in read data register, then resolve according to battery protocol, and then the dump energy of intelligent battery can be learnt, in the embodiment of the present invention, the dump energy of intelligent battery is 20%.
Step 207, host computer, according to feedback information, send the second instruction to intelligent battery.
In practical application, processor can also send next step instruction according to this feedback information to intelligent battery, i.e. the second instruction after getting the feedback information of intelligent battery transmission.Example, if processor setting is when battery dump energy is less than or equal to 20%, judge the duty of current mobile device, if mobile device is in holding state, the output current of restriction intelligent battery.
Concrete, the dump energy getting intelligent battery when processor is 20%, and mobile device is current when being in standby mode, second instruction can be write into the command register that SMBus controller comprises by processor, this second instruction is current limliting instruction, then the acknowledgement bit of status register is set to effectively, described current limliting instruction indicating intelligent battery limitation output current, then intelligent battery is by the second instruction in PCIE interface reading order register, and then intelligent battery can according to the second instruction adjustment duty, the process that concrete process and processor send the first instruction is identical, the embodiment of the present invention does not repeat at this.
Needs illustrate, the instruction type between host computer and intelligent battery has a lot, such as, and version command, indicating intelligent battery feedback current version number; Manufacturer's instruction, indicating intelligent battery feedback manufacturer title; Dump energy is warned, and indicating intelligent battery sends alerting signal when electricity is less than predetermined threshold value; Design instruction, indicating intelligent battery Feedback Design index; Current-order, the feedback operation electric current of indicating intelligent battery; Reset indication, indicating intelligent battery resets configuration data etc., and the intelligent battery management method that above-mentioned instruction all can be provided by the embodiment of the present invention processes.
In practical application, described intelligent battery, described SMBus and described host computer can be arranged in same mobile device, also can be provided separately, the embodiment of the present invention is not restricted this, and the embodiment of the present invention is with intelligent battery, SMBus and host computer are arranged in same mobile device as example is described.
The embodiment of the present invention provides a kind of intelligent battery management method, for host computer, compared to prior art, because the input/output interface of intelligent battery is connected with one end of SMBus, the other end of SMBus is connected with the input/output interface of host computer, make the transfer process that the communication between host computer and intelligent battery does not need through embedded control unit, achieve the direct communication of host computer and intelligent battery, save the cost of PC control intelligent battery, especially owing to not comprising the embedded control unit for carrying out transfer process between host computer and intelligent battery in mobile device, building of embedded control unit and peripheral circuit can be omitted, be beneficial to the volume reducing mobile device, mobile device is easy to carry, and host computer can directly be completed by SMBus the control of intelligent battery, namely intelligent battery directly can receive the instruction that host computer sends, decrease the flow process of communication, saved the time of being carried out transfer process by embedded control unit, thus improve the efficiency of communication.
The embodiment of the present invention provides a kind of host computer 30, and as shown in Figure 3, described host computer 30 comprises:
Acquiring unit 301, for obtaining the address of intelligent battery, the input/output interface of described intelligent battery is connected with one end of SMBus, and the other end of described SMBus is connected with the input/output interface of described host computer 30.
Because intelligent battery is by SMBus (System Management Bus, System Management Bus) be connected with host computer 30, such intelligent battery can as SMBus from equipment, make host computer 30 can by controls SMBus from the mode of equipment, control intelligent battery.When such host computer 30 communicates with intelligent battery, first need the address obtaining intelligent battery, then using the unique ID of the address of intelligent battery as intelligent battery, host computer 30 is communicated with intelligent battery by this ID.
Transmitting element 302, for the address according to described intelligent battery, sends instruction to described intelligent battery.
Described instruction is the information of writing according to SMBus agreement, meets the transmission requirement of SMBus agreement, therefore can directly be transmitted by SMBus.This instruction is that host computer 30 runs needs generation according to user's request or host computer 30, such as when user needs the manufacturer's title learning intelligent battery, instruction is manufacturer's instruction, and intelligent battery can feed back manufacturer's title according to this manufacturer's instruction to host computer 30.
So, because the input/output interface of intelligent battery is connected with one end of System Management Bus SMBus, the other end of described SMBus is connected with the input/output interface of host computer 30.The communication between host computer 30 and intelligent battery is made not need to carry out transfer process through embedded control unit, but directly communicated by SMBus, save the cost that host computer 30 controls intelligent battery, reduced the volume of mobile device simultaneously, mobile device is easy to carry.Decrease the flow process of communication simultaneously, saved the time of being carried out transfer process by embedded control unit, thus improve the efficiency of communication.
Further, as shown in Figure 4, described host computer 30 also comprises: receiving element 303, for receiving the feedback information that described intelligent battery sends; Control module 304, for according to described feedback information, controls described intelligent battery.
Further, described acquiring unit is also for obtaining the base address of described SMBus controller; As shown in Figure 5, described host computer 30 also comprises: enable unit 305, for according to described base address, and enable described SMBus controller; Described acquiring unit specifically for: by described SMBus controller, obtain the address of intelligent battery.
Optionally, the input/output interface of described host computer 30 is connected with one end of SMBus by high speed peripheral component interlinkage PCIE interface.
The embodiment of the present invention provides a kind of host computer, first the address of intelligent battery is obtained by acquiring unit, the input/output interface of described intelligent battery is connected with one end of SMBus, the other end of described SMBus is connected with the input/output interface of described host computer, then by the address of transmitting element according to described intelligent battery, instruction is sent to described intelligent battery.Compared to prior art, because the input/output interface of intelligent battery is connected with one end of SMBus, the other end of SMBus is connected with the input/output interface of host computer, make the transfer process that the communication between host computer and intelligent battery does not need through embedded control unit, achieve the direct communication of host computer and intelligent battery, save the cost of PC control intelligent battery, especially owing to not comprising the embedded control unit for carrying out transfer process between host computer and intelligent battery in mobile device, building of embedded control unit and peripheral circuit can be omitted, be beneficial to the volume reducing mobile device, mobile device is easy to carry, and host computer can directly be completed by SMBus the control of intelligent battery, namely intelligent battery directly can receive the instruction that host computer sends, decrease the flow process of communication, saved the time of being carried out transfer process by embedded control unit, thus improve the efficiency of communication.
The embodiment of the present invention provides a kind of portable mobile apparatus 60, as shown in Figure 6, comprises the host computer 30 described in any one embodiment above-mentioned and intelligent battery 601; The described input/output interface of intelligent battery 601 is connected with one end of SMBus, and the other end of described SMBus is connected with the input/output interface of described host computer 30.
Because described intelligent battery 601 is connected with described host computer 30 by SMBus, therefore smart machine can as SMBus from equipment, host computer 30 controls described intelligent battery 601 by SMBus controller.
Example, host computer 30 can obtain the address of intelligent battery 601, then according to the address of described intelligent battery 601, sends instruction to described intelligent battery 601.Described host computer 30 can also receive the feedback information that described intelligent battery 601 sends, and then according to described feedback information, controls described intelligent battery 601.
Concrete, first host computer 30 can obtain the base address of SMBus controller, then according to described base address, and enable described SMBus controller, and then by described SMBus controller, obtain the address of intelligent battery 601.
Optionally, the input/output interface of described host computer 30 can also be connected with one end of SMBus by PCIE interface.
Needs illustrate, the concrete control procedure of host computer 30 pairs of intelligent batteries 601 is shown in that, described in above-described embodiment, the embodiment of the present invention does not repeat at this.
The embodiment of the present invention provides a kind of portable mobile apparatus, comprise host computer and intelligent battery, the input/output interface of wherein said intelligent battery is connected with one end of SMBus, the other end of described SMBus is connected with the input/output interface of described host computer, compared to prior art, because the input/output interface of intelligent battery is connected with one end of SMBus, the other end of SMBus is connected with the input/output interface of host computer, make the transfer process that the communication between host computer and intelligent battery does not need through embedded control unit, achieve the direct communication of host computer and intelligent battery, save the cost of PC control intelligent battery, especially owing to not comprising the embedded control unit for carrying out transfer process between host computer and intelligent battery in mobile device, building of embedded control unit and peripheral circuit can be omitted, be beneficial to the volume reducing mobile device, mobile device is easy to carry.And host computer can directly be completed by SMBus the control of intelligent battery, decreases the flow process of communication, has saved the time of being carried out transfer process by embedded control unit, thus improves the efficiency of communication.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the device of foregoing description and the specific works process of unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another device can be integrated into, or some features can be ignored, or do not perform.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit comprises, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.
Claims (9)
1. an intelligent battery management method, for host computer, is characterized in that, described method comprises:
Obtain the address of intelligent battery, the input/output interface of described intelligent battery is connected with one end of System Management Bus SMBus, and the other end of described SMBus is connected with the input/output interface of described host computer;
According to the address of described intelligent battery, send instruction to described intelligent battery.
2. method according to claim 1, is characterized in that, in the described address according to described intelligent battery, after described intelligent battery sends instruction, described method also comprises:
Receive the feedback information that described intelligent battery sends;
According to described feedback information, control described intelligent battery.
3. method according to claim 1 and 2, is characterized in that, before the address of described acquisition intelligent battery, described method comprises:
Obtain the base address of described SMBus controller;
According to described base address, enable described SMBus controller;
The address of described acquisition intelligent battery comprises:
By described SMBus controller, obtain the address of intelligent battery.
4. method according to claim 1 and 2, is characterized in that, the input/output interface of described host computer is connected with one end of SMBus by high speed peripheral component interlinkage PCIE interface.
5. a host computer, is characterized in that, described host computer comprises:
Acquiring unit, for obtaining the address of intelligent battery, the input/output interface of described intelligent battery is connected with one end of System Management Bus SMBus, and the other end of described SMBus is connected with the input/output interface of described host computer;
Transmitting element, for the address according to described intelligent battery, sends instruction to described intelligent battery.
6. host computer according to claim 5, is characterized in that, described host computer also comprises:
Receiving element, for receiving the feedback information that described intelligent battery sends;
Control module, for according to described feedback information, controls described intelligent battery.
7. the host computer according to claim 5 or 6, is characterized in that,
Described acquiring unit is also for obtaining the base address of described SMBus controller;
Described host computer also comprises:
Enable unit, for according to described base address, enable described SMBus controller;
Described acquiring unit specifically for:
By described SMBus controller, obtain the address of intelligent battery.
8. the host computer according to claim 5 or 6, is characterized in that, the input/output interface of described host computer is connected with one end of SMBus by high speed peripheral component interlinkage PCIE interface.
9. a portable mobile apparatus, is characterized in that, comprises the host computer described in claim 5 to 8 any one claim and intelligent battery;
The input/output interface of described intelligent battery is connected with one end of System Management Bus SMBus, and the other end of described SMBus is connected with the input/output interface of described host computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410714581.5A CN104460923A (en) | 2014-11-28 | 2014-11-28 | Intelligent battery managing method, upper computer and portable mobile device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410714581.5A CN104460923A (en) | 2014-11-28 | 2014-11-28 | Intelligent battery managing method, upper computer and portable mobile device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104460923A true CN104460923A (en) | 2015-03-25 |
Family
ID=52907130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410714581.5A Pending CN104460923A (en) | 2014-11-28 | 2014-11-28 | Intelligent battery managing method, upper computer and portable mobile device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104460923A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776427A (en) * | 2016-12-05 | 2017-05-31 | 硅谷数模半导体(北京)有限公司 | Communication means and device |
CN112650099A (en) * | 2020-11-27 | 2021-04-13 | 苏州精控能源科技有限公司 | Control method and control system of battery monitoring platform |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102882248A (en) * | 2011-07-15 | 2013-01-16 | 凹凸电子(武汉)有限公司 | Battery management systems with vertical bus circuits |
-
2014
- 2014-11-28 CN CN201410714581.5A patent/CN104460923A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102882248A (en) * | 2011-07-15 | 2013-01-16 | 凹凸电子(武汉)有限公司 | Battery management systems with vertical bus circuits |
US20130019037A1 (en) * | 2011-07-15 | 2013-01-17 | Allan Flippin | Battery management systems with vertical bus circuits |
Non-Patent Citations (1)
Title |
---|
庄建华等: "基于SMBus的便携式设备智能电池系统的实现", 《计算机工程》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776427A (en) * | 2016-12-05 | 2017-05-31 | 硅谷数模半导体(北京)有限公司 | Communication means and device |
CN112650099A (en) * | 2020-11-27 | 2021-04-13 | 苏州精控能源科技有限公司 | Control method and control system of battery monitoring platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108228492B (en) | Multi-channel DDR interleaving control method and device | |
CN105051706A (en) | Device, method and system for operation of a low power PHY with a PCIe protocol stack | |
KR20120096858A (en) | Remote wakeup of application processor of mobile device | |
US20170280385A1 (en) | Link speed control systems for power optimization | |
CN107908589B (en) | I3C communication verification system and method for verifying slave device and master-slave device | |
KR102151178B1 (en) | Serial communication apparatus and method thereof | |
CN105702300A (en) | NAND Flash fault tolerant system based on FPGA (Field Programmable Gate Array) | |
CN107632951B (en) | Apparatus for controlling indirect serial connection storage device and application and operation method thereof | |
CN104834620A (en) | SPI (serial peripheral interface) bus circuit, realization method and electronic equipment | |
CN102073611B (en) | I2C bus control system and method | |
CN102043933A (en) | SD (Secure Digital) card reader module with controllable operating state | |
CN104380274B (en) | Apparatus and method for optimized link training and management | |
CN100478935C (en) | PCIE channel expansion device, system and its collocation method | |
CN101561790B (en) | Method, system and device for communication between main control computer and slave computers | |
US11947481B2 (en) | Terminal and type C interface anti-corrosion method | |
CN104460923A (en) | Intelligent battery managing method, upper computer and portable mobile device | |
CN110401586A (en) | A kind of bus communication, device, equipment and readable storage medium storing program for executing | |
CN103914427A (en) | On-chip communication method and on-chip communication device on basis of three physical interconnection lines for integrated circuits | |
US8086876B2 (en) | Static and dynamic power management for a memory subsystem | |
CN103678056A (en) | Method for testing control function of PCIE bus equipment | |
KR20170073266A (en) | Method for operating of storage device using serial interface and method for operating data processing system including same | |
CN102142093A (en) | Operation method and device for memory card | |
CN204706031U (en) | Serial peripheral equipment interface SPI bus circuit and electronic equipment | |
CN115033172A (en) | Storage module control method, device, equipment and storage medium | |
CN113708820A (en) | Infrared sensor relay system based on Lora |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150325 |