CN103490913A - Pre-boot execution environment testing device, method and system - Google Patents

Pre-boot execution environment testing device, method and system Download PDF

Info

Publication number
CN103490913A
CN103490913A CN201210189841.2A CN201210189841A CN103490913A CN 103490913 A CN103490913 A CN 103490913A CN 201210189841 A CN201210189841 A CN 201210189841A CN 103490913 A CN103490913 A CN 103490913A
Authority
CN
China
Prior art keywords
execution environment
boot execution
testing apparatus
computer
environment testing
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
Application number
CN201210189841.2A
Other languages
Chinese (zh)
Inventor
高峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201210189841.2A priority Critical patent/CN103490913A/en
Priority to TW101121046A priority patent/TW201351128A/en
Publication of CN103490913A publication Critical patent/CN103490913A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

A pre-boot execution environment testing device comprises a main control chip, a firmware, a flash memory and a universal serial bus (USB) interface. The pre-boot execution environment testing device further comprises a network card interface used for being connected with a network card interface of a computer, a dynamic host configuration protocol (DHCP) module used for responding to a DHCP request sent by the computer and distributing an IP address to the computer, and a trivial file transfer protocol (TFTP) module used for downloading an image file stored in the flash memory to the computer. The invention further provides a pre-boot execution environment testing method and a pre-boot execution environment testing system. A pre-boot execution environment of the computer can be booted by using the pre-boot execution environment testing device of the invention.

Description

Pre-boot Execution Environment testing apparatus, method and system
Technical field
The present invention relates to a kind of Pre-boot Execution Environment testing apparatus, method and system.
Background technology
Pre-boot Execution Environment (Pre-boot Execute Environment, PXE) is one and can supports computer to download image file by network from remote server, and supports thus the technology of start-up course of the operating system of automatic network.Current various server master board all has the function that PXE starts, also more and more to the testing requirement of this function.Need to configure the storage DynamicHost at the PXE server during test agreement (Dynamic Host Configuration Protocol is set, DHCP), TFTP (Trivial File Transfer Protocol, TFTP) and Test Image (test images, be image file) etc. module, user end computer is connected to server by the network interface card with the PXE start-up performance, downloads image file and starts the operating system.
But this kind of method of testing has distinct disadvantage.While being tested as when a plurality of user end computer, be connected to server, if now server occurs when the abnormal conditions such as machine, outage, middle virus or network have problem, all user end computer all can be affected, therefore very high to the stability requirement of server; And if while only having a user end computer to test, server also must be worked, and can not reduce costs simultaneously.When needs are set to different factory building to server rack, must all set up in addition and configure a station server at each factory building, seem very inconvenient, limited the scope of application of PXE technology.
Summary of the invention
In view of above content, be necessary to provide a kind of Pre-boot Execution Environment testing apparatus, can directly with computer, be connected by this Pre-boot Execution Environment testing apparatus, realize the direct use of PXE technology.
Also be necessary to provide a kind of Pre-boot Execution Environment method of testing, can directly be connected with computer by described Pre-boot Execution Environment testing apparatus, realize the direct use of PXE technology.
Also be necessary to provide a kind of Pre-boot Execution Environment test macro, can directly be connected with computer by described Pre-boot Execution Environment testing apparatus, realize the direct use of PXE technology.
A kind of Pre-boot Execution Environment testing apparatus, comprise main control chip, firmware, flash memory and general-purpose serial bus USB interface, and wherein, this Pre-boot Execution Environment testing apparatus also comprises: the network interface card interface, for connecting the network interface card interface of computer; DynamicHost arranges the protocol DHCP module, the DHCP request sended over for responding computer, and the distributing IP address is to computer; And TFTP TFTP module, be downloaded to described computer for the image file that will be stored in flash memory.
A kind of Pre-boot Execution Environment method of testing, whether the method comprises: determining step: according to the network interface card interface of Pre-boot Execution Environment testing apparatus, with the network interface card interface of computer, be connected, and whether the USB interface of this Pre-boot Execution Environment testing apparatus is connected with the USB interface of computer, the mode of operation that judges this Pre-boot Execution Environment testing apparatus is flash disk pattern or PXE pattern, when mode of operation is the flash disk pattern, the data that receiving computer transmits, and these data are stored in flash memory, when mode of operation is the PXE pattern, carry out receiving step, receiving step: the DHCP request that receiving computer sends, allocation step: call the DHCP module, and the DHCP function of carrying out this DHCP module distributes an Internet communications protocol IP address to described computer, forwarding step: call the TFTP module, and the tftp functionality of carrying out this TFTP module is sent to described computer by the image file in flash memory.
A kind of Pre-boot Execution Environment test macro, this system comprises: judge module, for whether being connected with the network interface card interface of computer according to the network interface card interface of Pre-boot Execution Environment testing apparatus, whether the USB interface that reaches this Pre-boot Execution Environment testing apparatus is connected with the USB interface of computer, and the mode of operation that judges the Pre-boot Execution Environment testing apparatus is flash disk pattern or PXE pattern; Receiver module, while for the mode of operation when the Pre-boot Execution Environment testing apparatus, being the flash disk pattern, the data that receiving computer transmits, and these data are stored in flash memory; Described receiver module, while also for the mode of operation when the Pre-boot Execution Environment testing apparatus, being the PXE pattern, the DHCP request that receiving computer sends; Distribution module, for calling the DHCP module, and the DHCP function of carrying out this DHCP module distributes an IP address to described computer; Sending module, for calling the TFTP module, the tftp functionality of carrying out this TFTP module is sent to described computer by the image file in flash memory.
Compared to prior art, Pre-boot Execution Environment testing apparatus of the present invention, method and system, can directly with computer, be connected by this Pre-boot Execution Environment testing apparatus, realize the direct use of PXE technology, without described computer is connected with remote server by network, increased the convenience of PXE utilization.
The accompanying drawing explanation
Fig. 1 is the hardware structure figure of Pre-boot Execution Environment testing apparatus of the present invention.
Fig. 2 is the Organization Chart of Pre-boot Execution Environment test macro of the present invention preferred embodiment.
Fig. 3 is the functional block diagram of Pre-boot Execution Environment test macro of the present invention preferred embodiment.
Fig. 4 is the flow chart of Pre-boot Execution Environment method of testing of the present invention preferred embodiment.
The main element symbol description
The Pre-boot Execution Environment testing apparatus 1
Main control chip 10
Firmware 20
The Pre-boot Execution Environment test macro 21
The DHCP module 22
The TFTP module 23
Flash memory 30
Image file 31
The first USB interface 40
The first network interface card interface 50
Netting twine 2
Computer 3
Secondary USB interface 60
The second network interface card interface 70
Judge module 210
Receiver module 211
Distribution module 212
Sending module 213
Following embodiment further illustrates the present invention in connection with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be the hardware structure figure of Pre-boot Execution Environment testing apparatus of the present invention.
Pre-boot Execution Environment testing apparatus 1 is improved to form on the basis of USB (Universal Serial Bus, USB) flash disk.This Pre-boot Execution Environment testing apparatus 1 comprises main control chip 10, firmware (Firmware) 20, flash memory (Flash Memory) the 30, first USB interface 40 and the first network interface card interface 50 etc., and this first network interface card interface 50 can be the network interface card interfaces such as RJ45 interface.Described main control chip 10 is connected with firmware 20, flash memory 30, the first USB interface 40 and the first network interface card interface 50 respectively.This Pre-boot Execution Environment testing apparatus 1 comprises all devices that comprise in USB flash drive, as indicator light circuit, write-protect circuit, clock circuit and power supply circuits etc., in Fig. 1, does not mark fully.Described firmware 20 comprises Pre-boot Execution Environment test macro 21, DHCP (Dynamic Host Configuration Protocol, the storage DynamicHost arranges agreement) module 22 and TFTP (TFTP, Trivial File Transfer Protocol) module 23.Described flash memory 30, for storing data, such as memory map file 31, in this preferred embodiment, is the image file of operating system.
Described main control chip 10 is control centres of Pre-boot Execution Environment testing apparatus 1, and each device in Pre-boot Execution Environment testing apparatus 1 is coordinated and controlled.Described DHCP module 22 is for realizing the DHCP function, and distributing IP (Internet Protocol, Internet communications protocol) address is to user end computer automatically.Described TFTP module 23, for realizing tftp functionality, can be used for transmitting data.
As shown in Figure 2, be the Organization Chart of Pre-boot Execution Environment test macro of the present invention preferred embodiment.
Described Pre-boot Execution Environment testing apparatus 1 is connected with computer 3, and this computer 3 comprises secondary USB interface 60 and the second network interface card interface 70.This second network interface card interface 70 can be the network interface card interfaces such as RJ45 interface.
Described Pre-boot Execution Environment testing apparatus 1 has two kinds of mode of operations, is respectively flash disk pattern and PXE pattern.When the first USB interface 40 of described Pre-boot Execution Environment testing apparatus 1 is connected to the secondary USB interface 60 of computer 3, but, when described Pre-boot Execution Environment testing apparatus 1 is not connected to the second network interface card interface 70 of computer 3 by netting twine 2 by the first network interface card interface 50, described Pre-boot Execution Environment testing apparatus 1 works in the flash disk pattern.When the flash disk pattern, Pre-boot Execution Environment testing apparatus 1 is as a common USB flash drive, for carrying out the storage of data, now the image file of computer 3 31 can be copied in this Pre-boot Execution Environment testing apparatus 1, this image file 31 is image files of computer 3 operating systems.
When the first USB interface 40 of described Pre-boot Execution Environment testing apparatus 1 is connected to the secondary USB interface 60 of computer 3, and, when described Pre-boot Execution Environment testing apparatus 1 is connected to the second network interface card interface 70 of computer 3 by netting twine 2 by the first network interface card interface 50, described Pre-boot Execution Environment testing apparatus 1 works in the PXE pattern.When the PXE pattern, data-signal in the first USB interface 40 lost efficacy, 40 effects of playing a power supply of this first USB interface, computer 3 also can't be by the content in the first USB interface 40 access Pre-boot Execution Environment testing apparatuss 1, and this Pre-boot Execution Environment testing apparatus 1 uses as server.Now, Pre-boot Execution Environment testing apparatus 1 is by the DHCP request of the first network interface card interface 50 receiving computers 3, utilize DHCP module 22 distributing IP addresses to computer 3, and utilize TFTP module 23 that image file 31 is sent in computer 3 through the first network interface card interface 50 and the second network interface card interface 70.
As shown in Figure 3, be the functional block diagram of Pre-boot Execution Environment test macro of the present invention preferred embodiment.
Described Pre-boot Execution Environment test macro 21 comprises judge module 210, receiver module 211, distribution module 212 and sending module 213.The function of each module describes in detail in connection with the flow chart of Fig. 4.
As shown in Figure 4, be the flow chart of Pre-boot Execution Environment method of testing of the present invention preferred embodiment.
Step S10, whether described judge module 210 is connected with the second network interface card interface 70 of computer 3 according to the first network interface card interface 50 of Pre-boot Execution Environment testing apparatus 1, and whether the first USB interface 40 is connected with the secondary USB interface 60 of computer 3, the mode of operation that judges Pre-boot Execution Environment testing apparatus 1 is flash disk pattern or PXE pattern, when the mode of operation of Pre-boot Execution Environment testing apparatus 1 is the flash disk pattern, execution step S14, otherwise, execution step S12.
In this step S10, when the first USB interface 40 is connected to secondary USB interface 60 and the first network interface card interface 50 and is connected to the second network interface card interface 70, judge module 210 judges that the mode of operation of Pre-boot Execution Environment testing apparatus 1 is the PXE pattern; When the first USB interface 40 is connected to secondary USB interface 60 and the first network interface card interface 50 and is not connected to the second network interface card interface 70, judge module 210 judges that the mode of operation of Pre-boot Execution Environment testing apparatus 1 is the flash disk pattern.
Step S12, the data that described receiver module 211 receiving computers 3 transmit, and these data are stored in flash memory 30, and process ends.Now, Pre-boot Execution Environment testing apparatus 1 uses as a common USB flash drive, for carrying out the storage of data.
Step S14, the DHCP request that described receiver module 211 receiving computers 3 send, the IP lease request message that this DHCP request is sent for computer 3.
Step S16, described distribution module 212 is called DHCP module 22, and the DHCP function of carrying out this DHCP module 22 distributes an IP address to computer 3.This IP address is for position computer 3, and Pre-boot Execution Environment testing apparatus 1 is by the addressable computer 3 in this IP address.
Step S18, described sending module 213 calls TFTP module 23, and the tftp functionality of carrying out this TFTP module 23 is sent to computer 3 by the image file 31 in flash memory 30.When computer 3 receives this image file 31, this computer 3 gets final product the start-up course of complete operation system.
The invention solves the shortcoming of the serious reliance server of general test method, its portable and movably characteristics brought the convenience of using to the user, as when needs are demonstrated the PXE start-up performance, can carry this Pre-boot Execution Environment testing apparatus 1, and not need to set up a real PXE server.Therefore the present invention can be applicable to the occasion of the portable PXE server of various needs.In the reality test, also can directly substitute common PXE server, be widely used in the factory testing environment.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can modify or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.

Claims (7)

1. a Pre-boot Execution Environment testing apparatus, comprise main control chip, firmware, flash memory and general-purpose serial bus USB interface, it is characterized in that, this Pre-boot Execution Environment testing apparatus also comprises:
The network interface card interface, for connecting the network interface card interface of computer;
DynamicHost arranges the protocol DHCP module, the DHCP request sended over for responding computer, and the distributing IP address is to computer; And
TFTP TFTP module, be downloaded to described computer for the image file that will be stored in flash memory.
2. Pre-boot Execution Environment testing apparatus as claimed in claim 1, is characterized in that, the mode of operation of this Pre-boot Execution Environment testing apparatus comprises flash disk pattern and Pre-boot Execution Environment PXE pattern:
When the USB interface of Pre-boot Execution Environment testing apparatus is connected to the USB interface of computer, and, when the network interface card interface of this Pre-boot Execution Environment testing apparatus is not connected to the network interface card interface of computer, this Pre-boot Execution Environment testing apparatus works in the flash disk pattern;
When the USB interface of Pre-boot Execution Environment testing apparatus is connected to the USB interface of computer, and the network interface card interface of this Pre-boot Execution Environment testing apparatus is while being connected to the network interface card interface of computer, and this Pre-boot Execution Environment testing apparatus works in the PXE pattern.
3. Pre-boot Execution Environment testing apparatus as claimed in claim 2, it is characterized in that, the image file that the image file of storing in described flash memory is computer operating system, when this image file works in the flash disk pattern at the Pre-boot Execution Environment testing apparatus, be copied to this Pre-boot Execution Environment testing apparatus from computer.
4. a Pre-boot Execution Environment method of testing, is characterized in that, the method comprising the steps of:
Determining step: whether be connected with the network interface card interface of computer according to the network interface card interface of Pre-boot Execution Environment testing apparatus, and whether the USB interface of this Pre-boot Execution Environment testing apparatus is connected with the USB interface of computer, the mode of operation that judges this Pre-boot Execution Environment testing apparatus is flash disk pattern or PXE pattern, when mode of operation is the flash disk pattern, the data that receiving computer transmits, and these data are stored in flash memory, when mode of operation is the PXE pattern, carry out receiving step;
Receiving step: the DHCP request that receiving computer sends;
Allocation step: call the DHCP module, and the DHCP function of carrying out this DHCP module distributes an Internet communications protocol IP address to described computer;
Forwarding step: call the TFTP module, and the tftp functionality of carrying out this TFTP module is sent to described computer by the image file in flash memory.
5. Pre-boot Execution Environment method of testing as claimed in claim 4, is characterized in that, the mode of operation of described determining step judgement Pre-boot Execution Environment testing apparatus is that flash disk pattern or PXE pattern comprise:
When the USB interface of Pre-boot Execution Environment testing apparatus is connected to the USB interface of computer, and, when the network interface card interface of this Pre-boot Execution Environment testing apparatus is not connected to the network interface card interface of computer, the mode of operation of judging this Pre-boot Execution Environment testing apparatus is the flash disk pattern;
When the USB interface of Pre-boot Execution Environment testing apparatus is connected to the USB interface of computer, and, when the network interface card interface of this Pre-boot Execution Environment testing apparatus is connected to the network interface card interface of computer, the mode of operation of judging this Pre-boot Execution Environment testing apparatus is the PXE pattern.
6. a Pre-boot Execution Environment test macro, is characterized in that, this system comprises:
Judge module, for whether being connected with the network interface card interface of computer according to the network interface card interface of Pre-boot Execution Environment testing apparatus, whether the USB interface that reaches this Pre-boot Execution Environment testing apparatus is connected with the USB interface of computer, and the mode of operation that judges the Pre-boot Execution Environment testing apparatus is flash disk pattern or PXE pattern;
Receiver module, while for the mode of operation when the Pre-boot Execution Environment testing apparatus, being the flash disk pattern, the data that receiving computer transmits, and these data are stored in flash memory;
Described receiver module, while also for the mode of operation when the Pre-boot Execution Environment testing apparatus, being the PXE pattern, the DHCP request that receiving computer sends;
Distribution module, for calling the DHCP module, and the DHCP function of carrying out this DHCP module distributes an IP address to described computer;
Sending module, for calling the TFTP module, the tftp functionality of carrying out this TFTP module is sent to described computer by the image file in flash memory.
7. Pre-boot Execution Environment test macro as claimed in claim 6, is characterized in that, described judge module judges the mode of operation of Pre-boot Execution Environment testing apparatus by following steps:
When the USB interface of Pre-boot Execution Environment testing apparatus is connected to the USB interface of computer, and, when the network interface card interface of this Pre-boot Execution Environment testing apparatus is not connected to the network interface card interface of computer, the mode of operation of judging this Pre-boot Execution Environment testing apparatus is the flash disk pattern;
When the USB interface of Pre-boot Execution Environment testing apparatus is connected to the USB interface of computer, and, when the network interface card interface of this Pre-boot Execution Environment testing apparatus is connected to the network interface card interface of computer, the mode of operation of judging this Pre-boot Execution Environment testing apparatus is the PXE pattern.
CN201210189841.2A 2012-06-11 2012-06-11 Pre-boot execution environment testing device, method and system Pending CN103490913A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210189841.2A CN103490913A (en) 2012-06-11 2012-06-11 Pre-boot execution environment testing device, method and system
TW101121046A TW201351128A (en) 2012-06-11 2012-06-13 A pre-boot execute environment device and method and system for testing pre-boot execute environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210189841.2A CN103490913A (en) 2012-06-11 2012-06-11 Pre-boot execution environment testing device, method and system

Publications (1)

Publication Number Publication Date
CN103490913A true CN103490913A (en) 2014-01-01

Family

ID=49830885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210189841.2A Pending CN103490913A (en) 2012-06-11 2012-06-11 Pre-boot execution environment testing device, method and system

Country Status (2)

Country Link
CN (1) CN103490913A (en)
TW (1) TW201351128A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104237699A (en) * 2014-09-28 2014-12-24 上海斐讯数据通信技术有限公司 USB (universal serial bus) interface communication test system and method
CN106526447A (en) * 2016-09-27 2017-03-22 曙光信息产业股份有限公司 Mainboard detection device and method
CN106598773A (en) * 2015-10-20 2017-04-26 深圳市中电智慧信息安全技术有限公司 Trusted system restoring device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104237699A (en) * 2014-09-28 2014-12-24 上海斐讯数据通信技术有限公司 USB (universal serial bus) interface communication test system and method
CN104237699B (en) * 2014-09-28 2018-01-02 上海斐讯数据通信技术有限公司 A kind of USB interface communication test system and method
CN106598773A (en) * 2015-10-20 2017-04-26 深圳市中电智慧信息安全技术有限公司 Trusted system restoring device
CN106598773B (en) * 2015-10-20 2019-09-24 深圳市中电智慧信息安全技术有限公司 Trusted system reduction apparatus
CN106526447A (en) * 2016-09-27 2017-03-22 曙光信息产业股份有限公司 Mainboard detection device and method

Also Published As

Publication number Publication date
TW201351128A (en) 2013-12-16

Similar Documents

Publication Publication Date Title
WO2016037503A1 (en) Configuration method and device of pcie topology
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN109951325B (en) Network cable connection checking method and device
TWI448127B (en) Method for obtaining external ip addresses and ip system using the same
CN110011877B (en) Switch testing method and device
CN108243407B (en) Method for managing network interfaces of multiple wireless module devices and terminal device
CN102273179A (en) Method and device for terminal batch upgrading
CN103516547A (en) Network parameter distribution method and device
CN104735176A (en) PXE booting method and device and server single board
CN110704350A (en) Resource management method and device, electronic equipment and storage medium
JP2023051930A (en) Terminal application activation method, apparatus and system
CN111294416A (en) Method for obtaining IP address and related product
CN114401250A (en) Address allocation method and device
US9779037B2 (en) Establishing connectivity of modular nodes in a pre-boot environment
CN103490913A (en) Pre-boot execution environment testing device, method and system
CN104158709A (en) Optical module identification method and port extender
CN105981416B (en) The method for managing several profiles in safety element
CN114003528A (en) OCP switching card, switching system and switching method
CN102185881A (en) Household digital equipment wireless multi-protocol space sharing storage manager and method
CN110784510A (en) Method for accessing target service node to bus and information interaction method of service node
CN113886153B (en) Network card pressure testing method and device based on container
CN115858440A (en) PCIe device management method, device and server
TW201735581A (en) Network communication apparatus and electronic apparatus
CN108141480B (en) Method and apparatus for addressing in a system of interconnected cells
CN111124445B (en) Home gateway upgrading method and home gateway

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140101