CN102073524B - A kind of method of wireless communication terminal and self-starting thereof - Google Patents

A kind of method of wireless communication terminal and self-starting thereof Download PDF

Info

Publication number
CN102073524B
CN102073524B CN201110021985.2A CN201110021985A CN102073524B CN 102073524 B CN102073524 B CN 102073524B CN 201110021985 A CN201110021985 A CN 201110021985A CN 102073524 B CN102073524 B CN 102073524B
Authority
CN
China
Prior art keywords
operating system
wireless communication
communication terminal
module
grub
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.)
Active
Application number
CN201110021985.2A
Other languages
Chinese (zh)
Other versions
CN102073524A (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201110021985.2A priority Critical patent/CN102073524B/en
Publication of CN102073524A publication Critical patent/CN102073524A/en
Priority to PCT/CN2011/076887 priority patent/WO2012097574A1/en
Application granted granted Critical
Publication of CN102073524B publication Critical patent/CN102073524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention discloses a kind of method of wireless communication terminal and self-starting thereof, comprising: the BIOS run search of PC to USB device in GRUB boot; GRUB boot guides the embedded OS in wireless communication terminal to bring into operation, and embedded OS runs changeover program and wireless communication terminal is switched to normal mode of operation, and runs data card driver and/or the UI software of prepackage.According to technical scheme of the present invention, thoroughly avoid wireless communication terminal install that occur in UI software and data card driver process with compatibility issue that the is operating system of PC.

Description

Wireless communication terminal and self-starting method thereof
Technical Field
The invention relates to the field of embedded software development, in particular to a wireless communication terminal and a self-starting method thereof.
Background
The Universal Serial Bus (USB) data card is a portable internet access tool using USB interface along with the extension and maturity of wireless network technology, and simultaneously along with the development of 3G technology, the USB data card provides a more portable, faster and easier-to-use external extension internet access mode cooperating with a computer (PC).
The USB data card provides a good PC external expansion means for users, realizes high-quality and high-speed network connection, and has the following advantages and characteristics: (1) the USB device has the common characteristics of plug and play and hot plug; (2) the volume is small, the carrying is convenient, and the portable electric heating water heater is suitable for being used when people go out; (3) the USB data card based on the 3G network can also provide high-speed and high-quality network connection for users; (4) besides network connection, functions such as short messages, voice calls, video calls, card readers of T-Flash cards and the like can be realized.
Fig. 1 is a flow of a working mode of a USB data card in the prior art, and as shown in fig. 1, the USB data card is first enumerated as a cd rom (compact disc-read-only memory) device, which is used for providing a user with a User Interface (UI) software and a data card driver; if the UI software and the data card driver of the device are installed in the PC at this time, the resident detection program in the operating system directly runs the UI software and the data card driver, and issues a switching instruction to switch the USB data card to a normal working mode (the resident program can also be used for direct switching, or the MassStorage device is used for filtering and driving for switching, and the switching mode is determined according to the used switching mode of the data card), and the USB data card works in cooperation with the UI software; if the UI software and the data card driving program of the equipment are not installed in the PC at the moment, the installation of the UI software and the data card driving program is started to be carried out by running the installation program from the CDROM, the time is consumed for several minutes in the installation process, then the filter driver issues a switching instruction to switch the USB data card to a normal working mode, the UI software automatically runs, and the USB data card cooperates with the UI software to work; therefore, whether the data card can work normally or not has a very large relationship with an operating system in the user PC; firstly, the operating system of the PC must be able to normally recognize the CDROM device (on the PC with some problematic virtual optical drive software, this premise cannot be guaranteed), secondly, UI software and driver must be able to be normally and smoothly installed (installation failure may be caused by limitation of antivirus software or conflict of other software), and then, the USB data card can be normally used in the operating system of the PC; the disadvantages of the USB data card are: (1) in order to concurrently transmit multiple services, the USB data card needs to simultaneously virtualize and enumerate multiple functional devices, also called interfaces, such as vousbipolar interface for voice call, atainterface for sending and receiving short messages, nidsinterinterface for implementing microsoft internet access specification, and the like, which are all dedicated and need to install a driver provided by a third party for use, so that a user needs to install multiple device drivers for the first use; meanwhile, in order to realize the automation of installing the driver, the driver is integrated in User Interface (UI) software on the PC side, so that the whole UI software needs to be installed in the first use, and relevant information is left in the hard disk and the registry and the like after installation, thereby increasing the complexity of use and system garbage; (2) a certain waiting time is needed for installing a driver for the equipment, and the installation time consumed is different under different operating systems; in some systems with slower driver installation speed, such as a windows vista system, the driver of each device needs installation time of about 20-30 seconds, and if a USB data card product used by a user can virtualize a plurality of devices, installation time of several minutes is needed, which seriously affects user experience; (3) in the Windows operating system, in the installation process, as the driver on the PC side is influenced by factors such as the current system environment, installed software, the driver and the like, occasionally compatibility problems occur, and the external expression form is that yellow sigh errors occur in a Windows equipment manager, so that the equipment cannot be used; although this is a problem of driver installation with small probability, if the USB data card virtualizes a plurality of devices, the probability of such compatibility problem will inevitably increase, thereby affecting the normal use of the user; (4) in the Windows operating system, users are divided into different security levels, various software and drivers can be normally installed without limit only under the level of an administrator, and users without administrator authority are limited by different degrees; due to the limitation, if the USB data card is temporarily inserted into the PC of another person for temporary use, the UI software on the PC side cannot be normally installed because the USB data card is not the authority of an administrator, and the driver cannot be normally installed, so that the normal use of the user is influenced.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a wireless communication terminal and a method for self-booting the same, which completely avoid the problem of compatibility with the operating system of the PC during the process of installing UI software and data card driver in the wireless communication terminal.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the present invention provides a wireless communication terminal, comprising: a GRUB bootstrap module and an embedded operating system module; wherein,
the GRUB bootstrap module is used for guiding the embedded operating system module to start running after the GRUB bootstrap module starts running;
and the embedded operating system module is used for operating a switching program to switch the wireless communication terminal to a normal working mode after the operation is started, and operating a pre-installed data card driving program and/or UI software.
In the above wireless communication terminal, the wireless communication terminal further includes: the device comprises a USB interface module, an SCSI instruction processing module, an SCSI-Flash interface conversion module and a Flash read-write module; wherein,
the USB interface module is used for enumerating USB equipment when the BIOS of the PC performs self-test; receiving an SCSI instruction issued by the BIOS of the PC, and forwarding the SCSI instruction to an SCSI instruction processing module;
the SCSI instruction processing module is used for receiving the SCSI instruction transmitted by the USB interface module and sending the initial number of the data block and the quantity information of the data block in the SCSI instruction to the SCSI-Flash interface conversion module;
the SCSI-Flash interface conversion module is used for converting the initial number of the data blocks and the quantity information of the data blocks into actual storage addresses of a GRUB bootstrap program and an embedded operating system in a Flash storage area and sending the actual storage addresses to the Flash read-write module;
and the Flash read-write module is used for reading out the GRUB bootstrap program and the embedded operating system from the actual storage address and reporting the GRUB bootstrap program and the embedded operating system to the BIOS of the PC.
In the above wireless communication terminal, the SCSI-Flash interface conversion module converts the data block start number and the data block quantity information into a GRUB bootstrap program and an actual storage address of the embedded operating system in the Flash storage area as follows:
the SCSI-Flash interface conversion module calculates the initial address deviant of the data needing to be read from the Flash storage area according to the unit that 1 data block is 512 bytes and the initial number of the data block and the quantity information of the data block, and then calculates the initial address of the data needing to be read by the BIOS of the PC by utilizing the pre-stored GRUB bootstrap program and the initial address of the Flash storage area of the embedded operating system.
In the above wireless communication terminal, the GRUB bootstrap module may bootstrap the embedded operating system module to start operating:
after the GRUB bootstrap module starts working, the GRUB bootstrap module guides the embedded operating system module to start running; after the embedded operating system module starts to run under the guidance of the GRUB bootstrap module, a virtual ramdisk is established in the memory, and the embedded operating system module is copied and then stored in the virtual ramdisk.
In the above wireless communication terminal, the embedded operating system module operates the switching program to switch the wireless communication terminal to the normal operating mode, and operates the pre-installed data card driver and/or the UI software as follows:
and after the embedded operating system module starts to operate on the basis of the virtual ramdisk, operating a switching program of a memory, switching the wireless communication terminal enumerated as the USB equipment to a normal multi-port working mode, and operating a pre-installed data card driving program and/or UI software.
The invention also provides a method for self-starting the wireless communication terminal, which comprises the following steps:
running a GRUB bootstrap program in the searched USB equipment by the BIOS of the PC;
the GRUB bootstrap program guides an embedded operating system in the wireless communication terminal to start running, the embedded operating system runs a switching program to switch the wireless communication terminal to a normal working mode, and runs a pre-installed data card driving program and/or UI software.
In the above method, before the BIOS of the PC runs the GRUB boot program in the searched USB device, the method further includes:
when the BIOS of the PC is subjected to self-test, the wireless communication terminal inserted into the PC enumerates the USB equipment, and the BIOS of the PC searches for a GRUB bootstrap program in the USB equipment.
In the above method, when the BIOS of the PC performs self-test, the wireless communication terminal that has been inserted into the PC enumerates the USB devices as follows:
before the PC is started, the wireless communication terminal is inserted, or the PC is restarted after the wireless communication terminal is inserted into the PC, and when the BIOS of the PC performs self-test, the USB interface module of the wireless communication terminal enumerates USB equipment.
In the above method, the step of searching for the GRUB boot program in the USB device by the BIOS of the PC is:
the BIOS of the PC issues an SCSI instruction to the USB equipment, a USB interface module of the wireless communication terminal enumerated as the USB equipment receives the SCSI instruction, and forwards the received SCSI instruction to a SCSI instruction processing module of the wireless communication terminal;
the SCSI instruction processing module receives the SCSI instruction and sends the data block initial number and the data block quantity information in the SCSI instruction to a SCSI-Flash interface conversion module of the wireless communication terminal;
the SCSI-Flash interface conversion module converts the initial number of the data blocks and the quantity information of the data blocks into a GRUB bootstrap program and an actual storage address of the embedded operating system in a Flash storage area, and sends the actual storage address to a Flash read-write module of the wireless communication terminal;
and the Flash read-write module reads out the GRUB bootstrap program and the embedded operating system from the actual storage address and reports the GRUB bootstrap program and the embedded operating system to the BIOS of the PC.
In the method, the SCSI-Flash interface conversion module converts the data block initial number and the data block quantity information into a GRUB bootstrap program and the actual storage address of the embedded operating system in the Flash storage area as follows:
the SCSI-Flash interface conversion module calculates the initial address deviant of the data needing to be read from the Flash storage area according to the unit that 1 data block is 512 bytes and the initial number of the data block and the quantity information of the data block, and then calculates the initial address of the data needing to be read by the BIOS of the PC by utilizing the pre-stored GRUB bootstrap program and the initial address of the Flash storage area of the embedded operating system.
In the above method, the step of running the GRUB bootstrap program in the searched USB device by the BIOS of the PC is as follows:
after the BIOS of the PC determines to search the GRUB bootstrap program in the USB equipment according to the GRUB bootstrap program reported by the Flash read-write module of the wireless communication terminal and the embedded operating system, the BIOS of the PC operates the GRUB bootstrap program, and the GRUB bootstrap program starts to boot.
In the above method, the GRUB bootstrap program boots an embedded operating system in the USB data card to start operating:
after the GRUB bootstrap program starts to work, the GRUB bootstrap program guides an embedded operating system of the wireless communication terminal to start to operate; after the embedded operating system starts to operate under the guidance of the GRUB bootstrap program, a virtual ramdisk is established in the memory of the wireless communication terminal, and the embedded operating system is copied and then stored in the virtual ramdisk.
In the method, the step of the embedded operating system running the switching program to switch the wireless communication terminal to the normal working mode and running the pre-installed data card driving program and/or the UI software comprises the following steps:
after the embedded operating system starts to operate on the basis of the virtual ramdisk, operating a switching program of a memory of the wireless communication terminal, and switching the wireless communication terminal enumerated as USB equipment to a multi-port normal working mode; and operating the pre-installed data card driving program and/or UI software, and enabling the wireless communication terminal to enter a normal working state and start working in cooperation with the UI software.
The invention provides a wireless communication terminal and a self-starting method thereof.A BIOS of a PC runs a GRUB bootstrap program in searched USB equipment; the GRUB bootstrap program guides an embedded operating system in the wireless communication terminal to start running, the embedded operating system runs the switching program to switch the wireless communication terminal to a normal working mode, runs a pre-installed data card driving program and/or UI software and guides the PC to the embedded operating system of the wireless communication terminal, and because the UI software and the data card driving program are pre-installed in the embedded operating system, the functions of the data card can be directly used without installing any software; meanwhile, the embedded operating system is characterized in that the wireless communication terminal is provided with an operating system specially used for connecting a network by using the wireless communication terminal, so that the embedded operating system not only has higher running speed in running, but also can be automatically cleared when being restarted next time when being infected by virus.
When the PC is started, an embedded operating system built in the wireless communication terminal is operated through the guide function of the wireless communication terminal, and in the operating system, a use interface which is the same as the professional version of the operating system is arranged and the hard disk of the PC can be normally accessed, so that the user is not influenced to surf the internet and browse and upload/download data; however, since the embedded operating system is not operated in the PC operating system, only the embedded operating system of the wireless communication terminal is damaged after being attacked by virus, and the embedded operating system can be automatically recovered when being restarted next time.
Because the embedded operating system of the wireless communication terminal is used, the interface, the pre-installed software, the UI software used for the wireless communication terminal, the data card driving program and the like of the operating system can be customized in advance and can be directly used without installing the UI software or the data card driving program, so that the real drive-free installation function is realized; and neither the driver nor the UI software leaves any installation traces and system garbage in the PC's operating system.
If the operating system of the PC is Linux and the like, the PC is an operating system which is not very complete in support of the wireless communication terminal, and the PC can be guided to the embedded operating system of the wireless communication terminal, so that the wireless communication terminal can be directly used in the operating system, all functions of the wireless communication terminal can be exerted, and better user experience can be brought.
Since the PCs of many companies and the PCs of other people do not have an open administrator right, the UI software and the driver of the wireless communication terminal cannot be installed at this time, that is, the wireless communication terminal product cannot be used at all; however, the wireless communication terminal and the method for the compatibility of the wireless communication terminal and the operating system of the computer provided by the invention can directly guide the operating system of the PC into the embedded operating system of the wireless communication terminal when the computer is started, have no limit of authority at all and can normally use all functions of the wireless communication terminal.
Because the built-in operating system of the wireless communication terminal is used, the operating system is customized and tested by a manufacturer, UI software and a data card driving program are installed in advance, and the problems of compatibility and software conflict caused by the diversification of system environment and installation software in the process of matching the wireless communication terminal with the operating system of a PC (personal computer) are solved to the greatest extent.
Drawings
FIG. 1 is a flow chart of a prior art USB data card operating mode;
FIG. 2 is a schematic diagram of a wireless communication terminal according to the present invention;
fig. 3 is a flowchart illustrating a method for implementing self-booting of a wireless communication terminal according to the present invention.
Detailed Description
The system boot manager (GRUB) is a multiple operating system boot loader from the GNU project. GRUB is an implementation of a multi-boot specification that allows a user to have multiple operating systems simultaneously within a computer and select the operating system that he wishes to run at computer boot. GRUB may be used to select different kernels on the operating system partition and may also be used to pass boot parameters to these kernels.
The embedded operating system is based on an embedded operating system which takes components as components, the embedded operating system comprises an embedded Windows operating system, an embedded Linux operating system, an embedded Mac operating system, an embedded Android operating system and the like, and the embedded Windows operating system can be an embedded Windows XP operating system, an embedded Windows7 operating system and the like; the embedded operating system can also run in the PC smoothly; the embedded operating system divides the professional version into about 12000 components based on the professional version of the operating system, equipment manufacturers can freely select the components to be loaded according to own needs and hardware configuration, and the operating system can be conveniently changed and cut; the embedded operating system can realize almost all functions of the professional version of the operating system according to different selected components, can also support various application programs under the operating system, and has strong practicability and flexibility.
Based on the GRUB and the embedded operating system, the invention provides a wireless communication terminal and a self-starting method thereof, and the basic idea is as follows: running a GRUB bootstrap program in the searched USB equipment by the BIOS of the PC; the GRUB bootstrap program guides an embedded operating system in the wireless communication terminal to start running, the embedded operating system runs a switching program to switch the wireless communication terminal to a normal working mode, and runs a pre-installed data card driving program and/or UI software.
The invention is further described in detail below with reference to the drawings and the specific embodiments.
Fig. 2 is a schematic structural diagram of a wireless communication terminal according to the present invention, and as shown in fig. 2, the wireless communication terminal includes: a GRUB bootstrap module 21 and an embedded operating system module 22; wherein,
a GRUB bootstrap module 21, configured to bootstrap the embedded operating system module 22 to start running after starting running;
and the embedded operating system module 22 is used for operating a switching program to switch the USB data card to a normal working mode after the operation is started, and operating a pre-installed data card driving program and/or UI software.
The wireless communication terminal further includes: a USB interface module 23, an SCSI instruction processing module 24, an SCSI-Flash interface conversion module 25 and a Flash read-write module 26; wherein,
the USB interface module 23 is configured to enumerate a USB device when the BIOS of the PC performs self-test; receiving an SCSI command issued by the BIOS of the PC, and forwarding the SCSI command to the SCSI command processing module 24;
the SCSI command processing module 24 is configured to receive the SCSI command forwarded by the USB interface module 23, and send the initial number of the data block and the number information of the data block in the SCSI command to the SCSI-Flash interface conversion module 25;
an SCSI-Flash interface conversion module 25, which is used for converting the data block initial number and the data block quantity information into the actual storage address of the GRUB bootstrap program and the embedded operating system in the Flash storage area, and sending the actual storage address to a Flash read-write module 26;
and the Flash read-write module 26 is used for reading out the GRUB bootstrap program and the embedded operating system from the actual storage address and reporting the GRUB bootstrap program and the embedded operating system to the BIOS of the PC.
The SCSI-Flash interface conversion module 25 converts the data block start number and the data block quantity information into the actual storage addresses of the GRUB bootstrap program and the embedded operating system in the Flash storage area as follows:
the SCSI-Flash interface conversion module 25 calculates the initial address offset value of the data to be read from the Flash storage area according to the unit that 1 data block is 512 bytes and according to the initial number of the data block and the number information of the data block, and then calculates the initial address of the data to be read by the BIOS of the PC by using the pre-stored GRUB bootstrap program and the initial address of the Flash storage area of the embedded operating system.
The GRUB bootstrap module 21 boots the embedded operating system module 22 to start operating:
after the GRUB bootstrap module 21 starts working, the GRUB bootstrap module 21 boots the embedded operating system module 22 to start running; when the embedded operating system module 22 starts to run under the guidance of the GRUB bootstrap module 21, a virtual ramdisk is established in the memory, and the embedded operating system module copies itself and stores the copied virtual ramdisk to the virtual ramdisk.
The embedded operating system module 22 operates a switching program to switch the wireless communication terminal to a normal working mode, and operates a pre-installed data card driver and/or UI software as follows:
after the embedded operating system module 22 starts operating based on the virtual ramdisk, a memory switch program is executed, the wireless communication terminal enumerated as a USB device is switched to a normal multi-port operating mode, and a pre-installed data card driver and/or UI software is executed.
The wireless communication terminal in the invention refers to wireless communication equipment taking a USB interface as an external interface, such as an intelligent mobile terminal, a tablet computer, a USB data card and the like; the following describes a method for self-starting a wireless communication terminal, taking an example in which the wireless communication terminal is a USB data card and an embedded operating system is an embedded Windows operating system.
Based on the above device, the present invention further provides a method for self-starting a wireless communication terminal, fig. 3 is a schematic flow chart of the method for realizing self-starting of a wireless communication terminal according to the present invention, as shown in fig. 3, the method includes the following steps:
step 301, when the BIOS of the PC performs self-checking, the USB data card inserted into the PC enumerates the USB device;
specifically, the USB data card is inserted before the PC is turned on, or the PC is restarted after the USB data card is inserted into the PC, so that it can be ensured that the USB data card is already inserted into the PC when a Basic Input Output System (BIOS) of the PC performs self-test;
when the BIOS of the PC performs self-test, the USB interface module of the USB data card enumerates USB equipment for realizing the guide interaction with the computer; the USB device may be a mass storage device, such as a USB disk, a CDROM, or the like, and may be a communication device, such as an ethernet card, a modem, or the like; the USB interface module in the USB data card can be realized by realizing a USB protocol stack in a slave mode in firmware of the USB data card; according to the USB protocol, after the USB data card is linked to the operating system of the PC, the USB interface module makes a corresponding reply according to a USB standard instruction issued by the operating system of the PC, so that the enumeration of the USB equipment conforming to the USB protocol is realized; in this embodiment, the USB interface module needs to enumerate a MassStorage type USB device first.
Step 302, the BIOS of the PC searches for a GRUB bootstrap program in the USB device;
specifically, the large-capacity disk device such as the USB data card is regarded as one of the boot partitions by the BIOS of the PC, and the GRUB boot programs are sequentially searched in the boot partitions according to the sequence preset in the BIOS, so that the BIOS of the PC can perform data interaction with the enumerated USB device to search the GRUB boot program in the USB device;
when the BIOS searches for a GRUB bootstrap program in the USB device, the BIOS issues a series of Small Computer System Interface (SCSI) commands to the USB device to acquire the capacity of the USB device or read a boot area of the USB device; the USB interface module of the USB data card enumerated as the USB equipment receives the SCSI instruction and forwards the received SCSI instruction to the SCSI instruction processing module of the USB data card, the SCSI instruction processing module receives the SCSI instruction issued by the BIOS of the PC and sends the initial number of the data block and the quantity information of the data block in the SCSI instruction to the SCSI-Flash interface conversion module of the USB data card; the SCSI-Flash interface conversion module calculates the initial address offset value of data needing to be read from a Flash storage area according to the fact that 1 data block is a unit of 512 bytes and according to the initial number of the data block and the number information of the data block, and then calculates the initial address of the data needing to be read by the BIOS of the PC by utilizing a pre-stored GRUB bootstrap program and the initial address of the Flash storage area of the embedded Windows operating system, wherein the initial address of the data needing to be read is the GRUB bootstrap program and the actual storage address of the embedded Windows operating system, so that the SCSI-Flash interface conversion module realizes the purpose of converting the initial number of the data block and the number information of the data block into the actual storage address of the GRUB bootstrap program and the embedded Windows operating system in the Flash storage area; the SCSI-Flash interface conversion module sends the calculated GRUB bootstrap program and the actual storage address of the embedded Windows operating system in the Flash storage area to a Flash read-write module of the USB data card; and the Flash read-write module reads out the GRUB bootstrap program and the embedded Windows operating system from the Flash storage area of the USB data card by utilizing the API function according to the received actual storage address, and reports the read GRUB bootstrap program and the embedded Windows operating system to the BIOS of the PC.
Step 303, running a GRUB bootstrap program in the searched USB equipment by the BIOS of the PC;
specifically, after the BIOS of the PC determines that the BIOS of the PC searches for the GRUB boot loader in the USB device according to the GRUB boot loader and the embedded Windows operating system reported by the Flash read-write module of the USB data card, and runs the GRUB boot loader, the GRUB boot loader starts boot operation.
304, the GRUB bootstrap program guides an embedded Windows operating system in the USB data card to start running, the embedded Windows operating system runs a switching program to switch the USB data card to a normal working mode, and runs a pre-installed data card driving program and UI software;
specifically, after the GRUB bootstrap program starts to work, the GRUB bootstrap program guides an embedded Windows operating system of the USB data card to start running; after the embedded Windows operating system starts to run under the guidance of the GRUB bootstrap program, firstly running a self entry file setup drive.bin, wherein the entry file can read a self configuration file winnt.xpe to obtain a self running mode;
the embedded Windows operating system starts to run on the basis of the virtual ramdisk, and can automatically run a memory switching program of a resident USB data card specified by a manufacturer after the embedded Windows operating system starts to run; the switching program switches the USB data card enumerated as the USB equipment to a normal working mode of a multiport; the embedded Windows operating system can automatically run the pre-installed data card driving program and run the UI software, so that the USB data card enters a normal working state and starts to work in cooperation with the UI software.
In order to provide more use choices for users and deal with various conditions in the use process of the users, the invention also provides a method for combining the working mode of the traditional USB data card with the method, the method can execute corresponding processing flows according to the selection of the users, and concretely, in the embodiment, when the USB data card enumerates the USB equipment, the enumerated USB equipment is a mode that two large-capacity equipment, namely a CDROM (compact disc read Only memory) and a virtual USB equipment coexist; the virtual USB equipment loads a GRUB bootstrap program of an embedded Windows operating system in a Flash storage area of a USB data card; thus, when a user wants to install UI software and a data card driver in the traditional USB data card working mode and uses the USB data card in the operating system of the PC, the user only needs to install the data card driver and the UI software in the CDROM after inserting the USB data card and then waits for the data card to be automatically switched to the normal working mode for use; if the user wants to use the USB data card with the method shown in fig. 3, the user only needs to restart the PC after inserting the USB data card, or insert the USB data card before starting up, and then guide the PC to the embedded Windows operating system of the USB data card through the virtual USB device of the USB data card in the BIOS self-checking stage, and wait for the automatic installation of the driver, the UI software is used after running. The seamless combination of the two modes can provide more use options for users, and the users can deal with various problems encountered in use, thereby not only improving the usability of the USB data card, but also greatly improving the user experience.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (10)

1. A wireless communication terminal, comprising: USB interface module, SCSI order processing module, SCSI-Flash interface conversion module, Flash read-write module, GRUB bootstrap module, embedded operating system module; wherein,
the USB interface module is used for enumerating USB equipment when the BIOS of the PC performs self-test; receiving an SCSI instruction issued by the BIOS of the PC, and forwarding the SCSI instruction to an SCSI instruction processing module;
the SCSI instruction processing module is used for receiving the SCSI instruction transmitted by the USB interface module and sending the initial number of the data block and the quantity information of the data block in the SCSI instruction to the SCSI-Flash interface conversion module;
the SCSI-Flash interface conversion module is used for converting the initial number of the data blocks and the quantity information of the data blocks into actual storage addresses of a GRUB bootstrap program and an embedded operating system in a Flash storage area and sending the actual storage addresses to the Flash read-write module;
the Flash read-write module is used for reading out the GRUB bootstrap program and the embedded operating system from the actual storage address and reporting the GRUB bootstrap program and the embedded operating system to the BIOS of the PC;
the GRUB bootstrap module is used for guiding the embedded operating system module to start running after the GRUB bootstrap module starts running;
and the embedded operating system module is used for operating a switching program to switch the wireless communication terminal to a normal working mode after the operation is started, and operating a pre-installed data card driving program and/or UI software.
2. The wireless communication terminal of claim 1, wherein the SCSI-Flash interface conversion module converts the data block start number and the data block quantity information into actual storage addresses of the GRUB boot program and the embedded operating system in the Flash storage area as follows:
the SCSI-Flash interface conversion module calculates the initial address deviant of the data needing to be read from the Flash storage area according to the unit that 1 data block is 512 bytes and the initial number of the data block and the quantity information of the data block, and then calculates the initial address of the data needing to be read by the BIOS of the PC by utilizing the pre-stored GRUB bootstrap program and the initial address of the Flash storage area of the embedded operating system.
3. The wireless communication terminal of claim 1, wherein the GRUB bootstrap module boots the embedded operating system module to begin operating as:
after the GRUB bootstrap module starts working, the GRUB bootstrap module guides the embedded operating system module to start running; after the embedded operating system module starts to run under the guidance of the GRUB bootstrap module, a virtual ramdisk is established in the memory, and the embedded operating system module is copied and then stored in the virtual ramdisk.
4. The wireless communication terminal of claim 3, wherein the embedded operating system module runs a switch program to switch the wireless communication terminal to a normal operating mode, and runs a pre-installed data card driver and/or UI software as follows:
and after the embedded operating system module starts to operate on the basis of the virtual ramdisk, operating a switching program of a memory, switching the wireless communication terminal enumerated as the USB equipment to a multi-port normal working mode, and operating a pre-installed data card driving program and/or UI software.
5. A method for self-starting a wireless communication terminal, the method comprising:
running a GRUB bootstrap program in the searched USB equipment by the BIOS of the PC;
the GRUB bootstrap program guides an embedded operating system in the wireless communication terminal to start running, the embedded operating system runs a switching program to switch the wireless communication terminal to a normal working mode, and runs a pre-installed data card driving program and/or UI software;
before the BIOS of the PC runs the GRUB boot program in the searched USB device, the method further includes: when the BIOS of the PC performs self-checking, the wireless communication terminal inserted into the PC enumerates the USB equipment, and the BIOS of the PC searches for a GRUB bootstrap program in the USB equipment, wherein the step of searching for the GRUB bootstrap program in the USB equipment by the BIOS of the PC is as follows: the BIOS of the PC issues an SCSI instruction to the USB equipment, a USB interface module of the wireless communication terminal enumerated as the USB equipment receives the SCSI instruction, and forwards the received SCSI instruction to a SCSI instruction processing module of the wireless communication terminal; the SCSI instruction processing module receives the SCSI instruction and sends the data block initial number and the data block quantity information in the SCSI instruction to a SCSI-Flash interface conversion module of the wireless communication terminal; the SCSI-Flash interface conversion module converts the initial number of the data blocks and the quantity information of the data blocks into a GRUB bootstrap program and an actual storage address of the embedded operating system in a Flash storage area, and sends the actual storage address to a Flash read-write module of the wireless communication terminal; and the Flash read-write module reads out the GRUB bootstrap program and the embedded operating system from the actual storage address and reports the GRUB bootstrap program and the embedded operating system to the BIOS of the PC.
6. The method according to claim 5, wherein when the BIOS of the PC performs self-test, the USB device enumerated by the wireless communication terminal that has been inserted into the PC is:
before the PC is started, the wireless communication terminal is inserted, or the PC is restarted after the wireless communication terminal is inserted into the PC, and when the BIOS of the PC performs self-test, the USB interface module of the wireless communication terminal enumerates USB equipment.
7. The method of claim 5, wherein the SCSI-Flash interface conversion module converts the data block start number and the data block quantity information into actual storage addresses of the GRUB boot program and the embedded operating system in the Flash storage area as follows:
the SCSI-Flash interface conversion module calculates the initial address deviant of the data needing to be read from the Flash storage area according to the unit that 1 data block is 512 bytes and the initial number of the data block and the quantity information of the data block, and then calculates the initial address of the data needing to be read by the BIOS of the PC by utilizing the pre-stored GRUB bootstrap program and the initial address of the Flash storage area of the embedded operating system.
8. The method of claim 5, wherein the BIOS of the PC running the GRUB boot program in the searched USB device is:
after the BIOS of the PC determines to search the GRUB bootstrap program in the USB equipment according to the GRUB bootstrap program reported by the Flash read-write module of the wireless communication terminal and the embedded operating system, the BIOS of the PC operates the GRUB bootstrap program, and the GRUB bootstrap program starts to boot.
9. The method of claim 5, wherein the GRUB bootstrap program boots an embedded operating system in the USB data card to start operating as:
after the GRUB bootstrap program starts to work, the GRUB bootstrap program guides an embedded operating system of the wireless communication terminal to start to operate; after the embedded operating system starts to operate under the guidance of the GRUB bootstrap program, a virtual ramdisk is established in the memory of the wireless communication terminal, and the embedded operating system is copied and then stored in the virtual ramdisk.
10. The method of claim 9, wherein the embedded os runs a switch program to switch the wireless communication terminal to a normal operation mode, and runs a pre-installed data card driver and/or UI software as follows:
after the embedded operating system starts to operate on the basis of the virtual ramdisk, operating a switching program of a memory of the wireless communication terminal, and switching the wireless communication terminal enumerated as USB equipment to a normal working mode of a multi-port; and operating the pre-installed data card driving program and/or UI software, and enabling the wireless communication terminal to enter a normal working state and start working in cooperation with the UI software.
CN201110021985.2A 2011-01-19 2011-01-19 A kind of method of wireless communication terminal and self-starting thereof Active CN102073524B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110021985.2A CN102073524B (en) 2011-01-19 2011-01-19 A kind of method of wireless communication terminal and self-starting thereof
PCT/CN2011/076887 WO2012097574A1 (en) 2011-01-19 2011-07-06 Wireless communication terminal and self-starting method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110021985.2A CN102073524B (en) 2011-01-19 2011-01-19 A kind of method of wireless communication terminal and self-starting thereof

Publications (2)

Publication Number Publication Date
CN102073524A CN102073524A (en) 2011-05-25
CN102073524B true CN102073524B (en) 2016-03-30

Family

ID=44032070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110021985.2A Active CN102073524B (en) 2011-01-19 2011-01-19 A kind of method of wireless communication terminal and self-starting thereof

Country Status (2)

Country Link
CN (1) CN102073524B (en)
WO (1) WO2012097574A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073524B (en) * 2011-01-19 2016-03-30 中兴通讯股份有限公司 A kind of method of wireless communication terminal and self-starting thereof
CN103049327A (en) * 2011-10-14 2013-04-17 深圳市同洲电子股份有限公司 Method and device for mounting many storage devices on android system
CN102592085B (en) 2011-12-27 2015-09-16 中兴通讯股份有限公司 A kind of wireless communication terminal and development method for safe operation
CN103379006B (en) * 2012-04-19 2016-08-03 中兴通讯股份有限公司 data card self-adapting method and device
CN104932921B (en) * 2015-06-16 2018-07-06 联想(北京)有限公司 Start control method and electronic equipment
TWI660267B (en) * 2018-03-28 2019-05-21 和碩聯合科技股份有限公司 Boot testing apparatus, system and method thereof
CN109388412A (en) * 2018-12-05 2019-02-26 安徽省航嘉智源科技有限公司 A kind of portable bootload device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6889058B2 (en) * 2001-04-20 2005-05-03 Sony Corporation Set up logic for dual interface wireless IP communication device
CN101075178A (en) * 2007-06-25 2007-11-21 中兴通讯股份有限公司 Method for automatically starting TD-SCDMA wireless data card
CN101916197A (en) * 2010-07-22 2010-12-15 北京东土科技股份有限公司 Method for controlling self-starting program of system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG138439A1 (en) * 2003-04-02 2008-01-28 Trek 2000 Int Ltd Portable operating system and method to load the same
CN102073524B (en) * 2011-01-19 2016-03-30 中兴通讯股份有限公司 A kind of method of wireless communication terminal and self-starting thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6889058B2 (en) * 2001-04-20 2005-05-03 Sony Corporation Set up logic for dual interface wireless IP communication device
CN101075178A (en) * 2007-06-25 2007-11-21 中兴通讯股份有限公司 Method for automatically starting TD-SCDMA wireless data card
CN101916197A (en) * 2010-07-22 2010-12-15 北京东土科技股份有限公司 Method for controlling self-starting program of system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
嵌入式Linux在PC104上的构建与实现;许德新 等;《应用科技》;20061031;第33卷(第10期);35-37 *

Also Published As

Publication number Publication date
CN102073524A (en) 2011-05-25
WO2012097574A1 (en) 2012-07-26

Similar Documents

Publication Publication Date Title
CN102073524B (en) A kind of method of wireless communication terminal and self-starting thereof
US8296521B2 (en) Method of configuring non-volatile memory for a hybrid disk drive
CN101452435B (en) USB terminal mode switching method and terminal
CN108008914B (en) The method, apparatus and ARM equipment of disk management in a kind of ARM equipment
US8438376B1 (en) Method and system for providing a modular server on USB flash storage
US9483421B1 (en) Method for creation of device drivers and device objects for peripheral devices
WO2011003257A1 (en) Auto start method and system of universal serial bus data card
US8677084B2 (en) Method of configuring non-volatile memory for a hybrid disk drive
CN109002346B (en) Conversion method of Windows virtual machine bootstrap program
US20040236980A1 (en) Method and system for providing a modular server on USB flash storage
WO2010115366A1 (en) Method, device and communication system for driving equipment
CN103514015A (en) Method and device for booting operation system from storage medium
WO2012100504A1 (en) Wireless communication method, wireless communication system and wireless communication terminal
CN107111568B (en) System and method for presenting drive installation files when USB device is enabled
CN113703914A (en) Test method and test system
WO2008132547A2 (en) System, method, device, and computer program product for providing a portable device having drive emulation capabilities
CN102043638A (en) Computer system and computer startup setting method
US9304779B2 (en) Optimizing boot time of a storage system
US9465597B2 (en) System for operating a device as a storage device and a modem device
CN104158709A (en) Optical module identification method and port extender
CN114816491A (en) System upgrading method and device for multi-system mobile terminal and terminal
CN101853142A (en) Identification method of USB device with virtual drive
US10007529B2 (en) Data terminal running mode switching method, device, and data terminal
JP2013513874A (en) Data card upgrade method and device
CN110083484B (en) FPGA reloading method, device, storage medium and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant