[technical background]
In the early development process of notebook computer, need often BIOS to be write with a brush dipped in Chinese ink, and prior art all adopts cd-rom recorder or emulator to the instrument that BIOS writes with a brush dipped in Chinese ink.Higher because of the cost of cd-rom recorder or emulator, so notebook computer exploitation producer can not buy many for each Developmental Engineer is equipped with, thereby the PHP will copy the file of need burning, be copied to cd-rom recorder or emulator.The Developmental Engineer can run into problem undoubtedly like this: xcopy repeatedly, brushing BIOS repeatedly, sometimes even plug BIOS chip, programming repeatedly that will be repeatedly, the efficient and the cost of influence exploitation so greatly.In addition, the cost of cd-rom recorder is also very high, and the more higher higher and less stable of emulator price of efficient can't really improve development efficiency effectively and reduce cost of development.
And in above-mentioned writing with a brush dipped in Chinese ink in the method, if the BIOS chip has been welded on the circuit board and has been assembled into machine, if machine broke down and can not normally move this moment, certainly will following problem can occur again: the slip-stick artist need open cabinet, pull down the BIOS chip from circuit board, and BIOS is write with a brush dipped in Chinese ink again.So, waste time and energy, and in unloading process, will certainly the stitch of BIOS chip be exerted an influence.
[summary of the invention]
The technical matters that institute of the present invention desire solves provides a kind of serial ports of EC in the notebook computer (embedded controller) that utilizes and carries out the device and method that BIOS writes with a brush dipped in Chinese ink, and it is simple in structure, easy to use, save cost, raise the efficiency, stable performance and easy-to-use.
The technical solution adopted in the present invention is: a kind of device of brushing BIOS, comprise first data terminal equipment, second data terminal equipment, and the switching device that voltage is changed, be connected in by data line between the serial ports on the EC of the serial ports of first data terminal equipment and second data terminal equipment.
A kind of method of brushing BIOS may further comprise the steps:
Step 1, putting the GPIO mouth that of EC is used to write with a brush dipped in Chinese ink control is low level;
Step 2 is sent operational order by upper layer software (applications) on first data terminal equipment;
Step 3, card extender is changed voltage;
Step 4 is controlled by bottom software on second data terminal equipment, and operation is write with a brush dipped in Chinese ink in the instruction that upper layer software (applications) sends over.
The technique effect that the present invention reached is: the present invention utilizes the existing resource of notebook computer--and the last serial ports of-EC carries out the signal transmission, the device and method that only increases by a voltage conversion device and BIOS is write with a brush dipped in Chinese ink, simple in structure, easy to use, write with a brush dipped in Chinese ink efficient and improve.
[embodiment]
Brushing BIOS device of the present invention mainly comprises a card extender 12, is the switching device that voltage is changed, and it is connected between the serial ports of target machine and terminating machine, utilizes serial ports to carry out communication and connects, and realizes writing with a brush dipped in Chinese ink BIOS.Concrete connection side's block diagram as shown in Figure 1, serial ports (COM) termination from data terminal equipment 10 (terminating machine) goes out the data communication line, be connected in then on the card extender 12, card extender 12 is connected on the serial ports controller of data terminal equipment 14 (target machine) again, also promptly links to each other with the serial ports of EC (embedded controller).The present invention also need utilize software to realize, on data terminal equipment 10 upper procedure is installed, and installs the control program of writing with a brush dipped in Chinese ink of the present invention on EC, communication between EC and the BIOS chip utilizes the control of EC, thereby realizes writing with a brush dipped in Chinese ink of BIOS.
The present invention is in order to realize utilizing the function of serial ports brushing BIOS, a little special designs on software and hardware, have all been done, promptly be to have increased a voltage card extender 12 on the hardware, hardware is responsible for making that rs 232 serial interface signal can efficient communication on the rs 232 serial interface signal on the EC chip and terminating machine on the target machine notebook computer.Design on software promptly is to treat that the bottom software of the target machine of brushing BIOS is used for control hardware and writes with a brush dipped in Chinese ink with being responsible for and communicate by letter with terminating machine, and hardware is specifically implemented, and both complement each other.The terminating machine upper layer software (applications) provides a close friend's interface for users operation and finishes and the communicating by letter of target machine bottom, and it is quick to be easy to use, and this function is finished in triplicity jointly.Software section, terminating machine upper layer software (applications) adopt message mechanism to receive user's request, comprise Read, Write, Erase, Fast flash; Handshake, Load File, COM Setting; Make every effort to realize close friend user's action pane flexibly, and stability and high efficiency ground and bottom communication.The target machine bottom software will switch to the EC chip CRISIS MODE, and under this pattern, the MPU of EC chip is write with a brush dipped in Chinese ink module and monopolizes, and can improve the efficient and the reliability of running software so greatly.Write with a brush dipped in Chinese ink module and be responsible for the demand on receiving terminal machine upper strata, realize correlation function is specifically finished in the reading and writing of BIOS chip, the control of wiping.
The present invention also connects two GPIO mouths from the EC chip, and an interface is realized writing with a brush dipped in Chinese ink gauge tap, and an interface is the RESET of EC chip.
During concrete operations, the GPIO mouth that is used to write with a brush dipped in Chinese ink control that needs to deploy at first outside EC is a low level, then bottom software can switch to EC recovery pattern (CRISIS MODE), so that receive the order of upper layer software (applications), and hardware controlled, after being positioned at upper layer software (applications) on the data terminal equipment and sending operational order, the transmission by communication channel, and the voltage transitions of card extender, EC promptly utilizes the control of bottom software, can write with a brush dipped in Chinese ink operation by the instruction that upper layer software (applications) sends over.
In software operation, system judges earlier whether the input block is full, and after the playback buffer district was full, system received designator, different according to different command execution again functions;
The terminating machine upper layer software (applications) adopts message mechanism to receive user's request, comprises Handshake, Read, Write, Erase etc.
At first, upper layer software (applications) can send (Handshake) order of shaking hands, and then postbacks a character after EC receives to the display device of data terminal equipment, shows and shake hands successfully that next two machine communications success can carry out following each operation:
Read (Read) when order when upper layer software (applications) sends, process flow diagram as shown in Figure 2 as can be known, EC postbacks and reads to receive orders, EC judges whether receiver address is successful, up to reading receiver address success, EC postbacks a character, shows successfully to receive and read instruction, at this moment, begin from the BIOS chip reading of data and pass to terminal by serial ports, EC also judges whether to have passed, if passed, then postback one and transmit successful order, do not continue to transmit if passed to return;
, wipes upper layer software (applications) (Erase) order when sending, then postbacking one after EC receives wipes and receives orders, and judge further whether receiver address is successful, up to judging the receiver address success, just begin to wipe, and by default for once wiping the size of 4K, next continue to carry out and wipe;
Write (Write) order when upper layer software (applications) sends, then postback one after EC receives and write and receive orders, and further judge whether success of receiver address, up to judging the receiver address success, postback a character, show successfully and receive, begin data are write in the BIOS chip this moment, write fashionable, EC can carry out a judgement of whether having write, and writes if do not write then continued, and writes successfully order if write then postbacked one, next, carry out other command operation or stop to write with a brush dipped in Chinese ink.