WO2012097574A1 - Wireless communication terminal and self-starting method thereof - Google Patents
Wireless communication terminal and self-starting method thereof Download PDFInfo
- Publication number
- WO2012097574A1 WO2012097574A1 PCT/CN2011/076887 CN2011076887W WO2012097574A1 WO 2012097574 A1 WO2012097574 A1 WO 2012097574A1 CN 2011076887 W CN2011076887 W CN 2011076887W WO 2012097574 A1 WO2012097574 A1 WO 2012097574A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- wireless communication
- communication terminal
- operating system
- module
- boot program
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
Definitions
- the present invention relates to the field of embedded software development, and in particular, to a wireless communication terminal and a self-starting method thereof. Background technique
- USB Universal Serial Bus
- PC Personal Computer
- the USB data card provides users with a good PC external expansion means, achieving high-quality high-speed network connection.
- the USB data card has the following advantages and features: (1) Plug-and-play, hot-swappable with USB devices (2) Small size, easy to carry, suitable for use when going out; (3) USB data card based on 3G network can also provide users with high-speed and high-quality network connection; (4) In addition to network connection, it can also Realize functions such as SMS, voice call, video call, T-Flash card reader.
- the USB data card is first enumerated as a CDROM (Compact Disc Read-Only Memory) device for Provide users with user interface (UI, User Interface) software and data card driver; if the UI software and data card driver of the device are already installed in the PC, it will be directly used by the resident detection program in the operating system. Run the UI software and data card driver, and issue the switch command to switch the USB data card to the normal working mode (it is also possible to switch directly from the resident program, or use the filter driver of the Mass Storage device to switch, depending on the data card The switching mode used is determined), the USB data card is combined with the UI software.
- CDROM Compact Disc Read-Only Memory
- the UI software and data card driver of the device are not installed in the PC at this time, start to install the UI software and data card driver from the CDROM.
- the installation process takes several minutes, and then The filter driver sends a switching command to switch the USB data card to the normal working mode, the UI software runs automatically, and the USB data card works with the UI software; therefore, whether the data card works normally has a great relationship with the operating system in the user PC;
- the operating system of the PC must be able to recognize the CDROM device normally (this is not guaranteed on a PC with some problematic virtual CD-ROM software installed). Secondly, UI software and drivers must be installed smoothly (due to anti-virus software). The limitation of the software or other software conflicts may cause the installation to fail.) After that, it can be used normally in the operating system of the PC. Based on the working mode of the USB data card, as the function of the data card product increases and becomes complicated, The USB data card still has some shortcomings in the current implementation method, which affects the user experience. The disadvantages of the USB data card are: (1) In order to concurrently concurrently use multiple services, the USB data card needs to simultaneously virtualize and enumerate multiple functional devices.
- interface also known as interface, for example, VOUSB interface for voice calls, AT interface for sending and receiving text messages, NIDS interface for implementing Microsoft Internet access specifications, etc.
- VOUSB interface for voice calls
- AT interface for sending and receiving text messages
- NIDS interface for implementing Microsoft Internet access specifications
- the driver is integrated into the user interface (UI, User Interface) software on the PC side, so that the entire UI software needs to be installed on the first use, and then installed on the hard disk and
- the location such as the registry leaves relevant information, thus increasing the complexity of use and system garbage;
- the driver of each device takes about 20 ⁇ 30 seconds to install.
- USB data card product used by the user will virtualize multiple devices, then It takes a few minutes of installation time, which seriously affects the user experience; (3) In the Windows operating system, during the installation process, the driver on the PC side is affected by the current system environment, installed software and drivers. The influence of factors such as programs, occasionally compatibility problems arise, the external manifestation is
- the main object of the present invention is to provide a wireless communication terminal and a self-starting method thereof, which completely avoids compatibility with a PC operating system during a process of installing a UI software and a data card driver in a wireless communication terminal. problem.
- the present invention provides a wireless communication terminal, which has been inserted into a PC, and includes: a GRUB boot program module and an embedded operating system module;
- the GRUB bootstrap module which is used to boot the embedded operating system module after it starts running
- the embedded operating system module after it has started running, runs the switching program to switch the wireless communication terminal to the normal working mode and runs the pre-installed data card driver and/or UI software.
- the wireless communication terminal further includes: a USB interface module, a SCSI command processing module, a SCSI-Flash interface conversion module, and a flash read/write module;
- the USB interface module is configured to enumerate the USB device when the BIOS of the PC performs a self-test; receive the SCSI command sent by the BIOS of the PC, and forward the SCSI command to the SCSI command. Processing module
- a SCSI command processing module configured to receive a SCSI command forwarded by the USB interface module, and send the data block start number and the data block number information in the SCSI command to the SCSI-Flash interface conversion module;
- a SCSI-Flash interface conversion module configured to convert the data block start number and the data block quantity information into an actual storage address of the GRUB boot program and the embedded operating system in the flash storage area, and send the actual storage address to Flash read and write module;
- the flash read/write module is configured to read the GRUB boot program and the embedded operating system from the actual storage address, and report the BIOS to the PC.
- the SCSI-Flash interface conversion module converts the data block start number and the data block quantity information into the GRUB boot program and the actual storage address of the embedded operating system in the Flash memory area:
- the SCSI-Flash interface conversion module calculates the starting address offset of the data to be read from the flash memory area according to the data block start number and the data block number information according to a data block of 512 bytes. Value, and then use the pre-stored GRUB boot program and the first address of the Flash memory area of the embedded operating system to calculate the first address of the data that the PC's BIOS needs to read.
- the GRUB boot program module boots the embedded operating system module to start running as:
- the GRUB boot program module boots the embedded operating system module to start running; when the embedded operating system module starts running under the boot of the GRUB boot program module, a virtual ramdisk is created in the memory to copy itself. Save to the virtual ramdisk
- the embedded operating system module running switching program switches the wireless communication terminal to the normal working mode, and runs the pre-installed data card driver and/or UI software as: After the embedded operating system module starts running on the basis of the virtual ramdisk, the memory switching program runs, switches the wireless communication terminal enumerated as the USB device to the normal working mode of the multi-port, and runs the pre-installed data card driver and/or Or UI software.
- the invention also provides a method for self-starting of a wireless communication terminal, the method comprising:
- the BIOS of the PC runs the GRUB bootloader in the searched USB device;
- the GRUB boot program boots the embedded operating system in the wireless communication terminal that has been inserted into the PC, and the embedded operating system runs the switching program to switch the wireless communication terminal to the normal working mode and runs the pre-installed data card driver and/or UI. software.
- the method before the BIOS of the PC runs the GRUB boot program in the searched USB device, the method further includes:
- the wireless communication terminal inserted into the PC enumerates the USB device, and the BIOS of the PC searches for the GRUB boot program in the USB device.
- the wireless communication terminal inserted into the PC enumerates the USB device as:
- the USB interface module of the wireless communication terminal enumerates the USB device.
- the BIOS of the PC searches for the GRUB boot program in the USB device as:
- the BIOS of the PC sends a SCSI command to the USB device, and the USB interface module enumerated as the USB device receives the SCSI command, and forwards the received SCSI command to the SCSI command processing module of the wireless communication terminal;
- the SCSI command processing module receives the SCSI command, and sends the data block start number and the data block number information in the SCSI command to the SCSI-Flash interface conversion module of the wireless communication terminal;
- the SCSI-Flash interface conversion module converts the data block start number and the data block number information into The actual storage address of the GRUB bootloader and the embedded operating system in the flash memory area, and
- the Flash read/write module reads the GRUB boot program and the embedded operating system from the actual storage address, and then sends the BIOS to the PC.
- the SCSI-Flash interface conversion module converts the data block start number and the data block quantity information into a GRUB boot program and an actual operating address of the embedded operating system in the Flash memory area:
- the SCSI-Flash interface conversion module calculates the starting address offset of the data to be read from the flash memory area according to the data block start number and the data block number information according to a data block of 512 bytes. Value, and then use the pre-stored GRUB boot program and the first address of the Flash memory area of the embedded operating system to calculate the first address of the data that the PC's BIOS needs to read.
- the GRUB boot program in the searched USB device of the BIOS of the PC is:
- the BIOS of the PC determines that it searches for the GRUB boot program in the USB device, and runs the GRUB boot program, and the GRUB boots. The program starts to guide the work.
- the GRUB boot program boots the embedded operating system in the wireless communication terminal inserted into the PC to start running as:
- the GRUB boot program boots the embedded operating system of the wireless communication terminal to start running; when the embedded operating system starts running under the guidance of the GRUB boot program, a virtual ramdisk is created in the memory of the wireless communication terminal, Save it to the virtual ramdisk after copying itself
- the embedded operating system running switching program switches the wireless communication terminal to the normal working mode, and runs the pre-installed data card driver and/or UI software as: After the embedded operating system starts running on the virtual ramdisk, the memory switching program of the wireless communication terminal is operated, and the wireless communication terminal enumerated as the USB device is switched to the normal working mode of the multi-port; the pre-installed data card driver is run. And / or UI software, the wireless communication terminal enters the normal working state, and starts working with the UI software.
- the wireless communication terminal provided by the invention and the self-starting method thereof the BIOS of the PC runs the GRUB boot program in the searched USB device; the GRUB boot program guides the embedded operating system in the wireless communication terminal inserted into the PC to start running, embedding
- the operating system operation switching program switches the wireless communication terminal to the normal working mode, and runs the pre-installed data card driver and/or UI software to boot the PC into the embedded operating system of the wireless communication terminal due to the embedded operation.
- the UI software and data card driver are pre-installed in the system, so the function of the data card can be directly used without any software installation.
- the embedded operating system is characterized by the wireless communication terminal, it is dedicated to the use of the wireless communication terminal.
- the operating system connected to the network so it not only has a high running speed at runtime, but can be automatically cleared on the next reboot when it is infected by a virus.
- the embedded communication system built in the wireless communication terminal is operated by the guiding function of the wireless communication terminal.
- the same user interface as the operating system professional version is used, and the hard disk of the PC can be accessed normally, so Affect users to browse the Internet and upload/download data; and because it is not running in the PC operating system, it will only cause damage to the embedded operating system of the wireless communication terminal after being attacked by the virus.
- the embedded operating system can be automatically restored.
- the interface of the operating system, the pre-installed software, the UI software used for the wireless communication terminal, the data card driver, etc. can be pre-customized and can be directly used. No need to install UI software, no need to install data card driver, to achieve true driver-free installation; and the driver and UI software will not leave any installation traces and system garbage in the PC's operating system.
- the operating system of the PC is Linux, etc., it is an operating system that is not fully supported by the wireless communication terminal. It can also be directly used in the operating system by booting the PC to the embedded operating system of the wireless communication terminal.
- the wireless communication terminal takes full advantage of all the functions of the wireless communication terminal, resulting in a better user experience.
- the wireless communication terminal and the compatibility method thereof with the operating system of the computer can directly boot the operating system of the PC to the embedded operating system of the wireless communication terminal at the time of booting, and have no permission limitation at all, and can normally use all the wireless communication terminals.
- FIG. 1 is a flow chart of a working mode of a USB data card in the prior art
- FIG. 2 is a schematic structural diagram of a wireless communication terminal of the present invention.
- FIG. 3 is a schematic flow chart of a method for implementing self-starting of a wireless communication terminal according to the present invention. detailed description
- the System Boot Manager (GRUB, GRand Unified Bootloader) is a multi-OS boot program from the GNU project.
- GRUB is an implementation of the multi-boot specification that allows users to have multiple operating systems simultaneously on a computer and select the operating system they want to run when the computer starts.
- GRUB can be used to select different kernels on the operating system partition and can also be used to pass boot parameters to these kernels.
- the embedded operating system is based on the embedded operating system with components as components.
- the embedded operating system includes embedded Windows operating system, embedded Linux operating system, embedded Mac operating system and embedded Android operating system, etc.
- the operating system can be an embedded Windows XP operating system, an embedded Windows 7 operating system, etc.; the embedded operating system can also run smoothly in the PC; the embedded operating system is based on the professional version of the operating system, and the professional version is divided into about 12,000 components. Device manufacturers can freely select the components that need to be loaded according to their own needs and hardware configuration. It is very convenient to change and tailor the operating system.
- the embedded operating system can realize almost all functions of the operating system professional version according to the selected components. It can also support various applications under the operating system, which is very practical and flexible.
- the present invention provides a wireless communication terminal and a self-starting method thereof.
- the basic idea is: the BIOS of the PC runs the GRUB boot program in the searched USB device; the GRUB boot program boot has been inserted.
- the embedded operating system in the wireless communication terminal of the PC starts running, and the embedded operating system running switching program switches the wireless communication terminal to the normal working mode and runs the pre-installed data card driver and/or UI software.
- FIG. 2 is a schematic diagram of the structure of the wireless communication terminal of the present invention.
- the wireless communication terminal includes: a GRUB boot program module 21, and an embedded operating system module 22;
- the GRUB boot program module 21 after starting the operation itself, boots the embedded operating system module 22 to start running;
- the embedded operating system module 22 after it has started running, runs the switching program to switch the USB data card to the normal working mode and runs the pre-installed data card driver and/or UI software.
- the wireless communication terminal further includes: a USB interface module 23, a SCSI command processing module 24, a SCSI-Flash interface conversion module 25, and a flash read/write module 26;
- the USB interface module 23 is configured to enumerate the USB device when the BIOS of the PC performs a self-test; receive the SCSI command issued by the BIOS of the PC, and forward 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 data block start number and the data block number information in the SCSI command to the SCSI-Flash interface conversion module 25;
- the SCSI-Flash interface conversion module 25 is configured to convert the data block start number and the data block quantity information into an actual storage address of the GRUB boot program and the embedded operating system in the flash storage area, and send the actual storage address To the Flash read and write module 26;
- the flash read/write module 26 is configured to read out the GRUB boot program from the actual storage address and the embedded operating system, and report the BIOS to the PC.
- the SCSI-Flash interface conversion module 25 converts the data block start number and the data block number information into the actual storage addresses of the GRUB boot program and the embedded operating system in the Flash memory area:
- the SCSI-Flash interface conversion module 25 is a unit of 512 bytes according to one data block, and calculates a starting address offset of data to be read from the flash memory area according to the data block start number and the number of data blocks. The value is shifted, and the first address of the data that the PC's BIOS needs to read is calculated by using the pre-stored GRUB boot program and the first address of the flash memory area of the embedded operating system.
- the GRUB boot program module 21 directs the embedded operating system module 22 to start running as:
- the GRUB boot program module 21 After the GRUB boot program module 21 starts working, the GRUB boot program module 21 directs the embedded operating system module 22 to start running; when the embedded operating system module 22 starts running under the boot of the GRUB boot program module 21, a virtual ramdisk is created in the memory. , copy it to the virtual ramdisk.
- the embedded operating system module 22 runs a switching program to switch the wireless communication terminal to normal Work mode, and run the pre-installed data card driver and / or UI software is:
- the memory switching program is executed, the wireless communication terminal enumerated as the USB device is switched to the normal working mode of the multi-port, and the pre-installed data card driver is run and / or UI software.
- the wireless communication terminal in the present invention refers to a wireless communication device with a USB interface as an external interface, such as a smart mobile terminal, a tablet computer, and a USB data card; etc.; below, the wireless communication terminal is a USB data card and an embedded operating system is embedded.
- the Windows operating system is taken as an example to describe the method for starting the wireless communication terminal.
- FIG. 3 is a schematic flowchart of a method for implementing 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 a self-test, the USB data card inserted into the PC enumerates the USB device;
- USB data card before the PC is turned on, or restarting the PC after inserting the USB data card into the PC, can ensure that the USB data card is used when the PC's basic input output system (BIOS, Basic Input Output System) performs self-test. Has been inserted into the PC;
- BIOS Basic Input Output System
- the USB interface module of the USB data card enumerates the USB device for implementing the boot interaction with the computer; wherein the USB device can be a large number of storage storage devices, such as a USB flash drive, a CDROM, etc. It is a communication device, such as an Ethernet card, a modem, etc.; a USB interface module in a USB data card can be realized by implementing a USB protocol stack of a slave mode in the firmware of the USB data card; the USB interface module is in accordance with the USB protocol.
- the USB interface module needs to be first Enumerate a USB device of the Mass Storage type. Step 302, the BIOS of the PC searches for the GRUB boot program in the USB device;
- a large-capacity disk device such as a USB data card is regarded as one of the boot partitions by the BIOS of the PC, and the GRUB boot program is searched for in each boot partition in the order preset in the BIOS, therefore, the PC
- the BIOS can interact with the enumerated USB device to search for the GRUB bootloader in the USB device;
- the BIOS When the BIOS searches for the GRUB bootloader in the USB device, the BIOS issues a series of small computer system interface (SCSI, Small Computer System Interface) commands to the USB device to obtain the capacity of the USB device or read the boot area of the USB device. Wait; the USB interface module enumerating the USB data card of the USB device receives the SCSI command, and forwards the received SCSI command to the SCSI command processing module of the USB data card, and the SCSI command processing module receives the SCSI issued by the BIOS of the PC.
- the instruction sends the data block start number and the data block number information in the SCSI command to the SCSI-Flash interface conversion module of the USB data card; the SCSI-Flash interface conversion module is 512-byte units according to one data block.
- the data block start number and the number of data block information calculate the starting address offset value of the data that needs to be read from the flash memory area, and then use the pre-stored GRUB boot program and the Flash memory of the embedded Windows operating system.
- the first address of the area, the first address of the data that the BIOS of the PC needs to read is calculated, and the first address of the data to be read is the GRUB boot program and the embedding
- the actual storage address of the Windows operating system so that the SCSI-Flash interface conversion module converts the data block start number and the number of data blocks into the actual storage address of the GRUB boot program and the embedded Windows operating system in the flash memory area.
- the SCSI-Flash interface conversion module will calculate the actual storage address of the GRUB bootloader and the embedded Windows operating system in the flash memory area, and send it to the flash read/write module of the USB data card; the flash read/write module receives the actual storage according to the Address, use the API function to read GRUB from the flash memory area of the USB data card? I guide program with embedded Windows operating system, and will read out GRUB?
- the program and the embedded Windows operating system only give the PC's BIOS.
- Step 303 the BIOS of the PC runs the GRUB boot program in the searched USB device; specifically, when the BIOS of the PC is based on the GRUB boot program reported by the Flash read/write module of the USB data card and the embedded Windows operating system, the BIOS of the PC Make sure that you have searched for the GRUB bootloader in the USB device and run the GRUB bootloader.
- the GRUB bootloader starts booting.
- Step 304 the GRUB boot program boots the embedded Windows operating system in the USB data card to start running, the embedded Windows operating system runs the switching program to switch the USB data card to the normal working mode, and runs the pre-installed data card driver and UI software. ;
- the GRUB boot program boots the embedded Windows operating system of the USB data card to start running; when the embedded Windows operating system starts running under the guidance of the GRUB boot program, first runs its own entry file setupldr. .bin, the entry file can read its own configuration file winnt.xpe to get its own running mode.
- the embedded Windows operating system runs as a virtual disk (ramdisk), so the embedded Windows operation
- the system creates a virtual ramdisk in the memory of the USB data card, copies itself, saves the copied embedded Windows operating system to the virtual ramdisk, and the virtual ramdisk is virtualized into a hard disk partition, which is operated as an embedded Windows.
- the partition of the system exists;
- the embedded Windows operating system starts running on the virtual ramdisk. After the embedded Windows operating system starts running, it can automatically run the memory switching program of the resident USB data card specified by the manufacturer; the switching program will be enumerated as a USB device.
- the USB data card switches to the normal working mode of the multi-port; the embedded Windows operating system can automatically run the pre-installed data card driver and run the UI software, so that the USB data card enters the normal working state and starts working with the UI software.
- the present invention also provides a method of combining the working mode of the conventional USB data card with the above method.
- the method can perform the corresponding processing according to the user's selection.
- the enumerated USB device is two large CDROMs and virtual USB devices.
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
Disclosed are a wireless communication terminal and a self-starting method thereof, comprising: the BIOS of a PC running a GRUB bootstrap found by searching a USB device; the GRUB bootstrap booting start-up of an operating system embedded in a wireless communication terminal inserted into a PC; the embedded operating system running a switching program to switch the wireless communication terminal to a normal operating mode and running a preloaded data card driver program and/or UI software. The technical solution of the present invention consists in avoiding completely the occurrence of compatibility problems with the operating system of a PC during the process of installing UI software and data card driver programs by a wireless communication terminal.
Description
一种无线通讯终端及其自启动的方法 技术领域 Wireless communication terminal and self-starting method thereof
本发明涉及嵌入式软件开发领域, 尤其涉及一种无线通讯终端及其自 启动的方法。 背景技术 The present invention relates to the field of embedded software development, and in particular, to a wireless communication terminal and a self-starting method thereof. Background technique
通用串行总线(USB, Universal Serial BUS )数据卡是随着无线网络技 术的延伸和成熟, 出现的一种使用 USB接口的便携式上网工具, 同时随着 3G技术的发展, USB数据卡为我们提供了一种更便携、 更快捷、 更易用的 与计算机(PC, Personal Computer ) 配合的外接扩展的上网方式。 Universal Serial Bus (USB) is a portable Internet tool that uses USB interface with the extension and maturity of wireless network technology. At the same time, with the development of 3G technology, USB data card provides us with A more portable, faster, and easier to use external expansion with a computer (PC, Personal Computer).
USB数据卡为用户提供了良好的 PC外接扩展手段, 实现了优质高速 的网络连接,此外 USB数据卡有以下的优势与特点: (1 )具有 USB设备共 有的即插即用、 可热插拔的特点; (2 )体积小巧、 携带方便, 适合外出时 使用; (3 )基于 3G网络的 USB数据卡还可以给用户提供高速度高质量的 网络连接; (4 ) 除了网络连接外, 还可以实现如短信、 语音电话、 视频电 话、 T-Flash卡的读卡器等功能。 The USB data card provides users with a good PC external expansion means, achieving high-quality high-speed network connection. In addition, the USB data card has the following advantages and features: (1) Plug-and-play, hot-swappable with USB devices (2) Small size, easy to carry, suitable for use when going out; (3) USB data card based on 3G network can also provide users with high-speed and high-quality network connection; (4) In addition to network connection, it can also Realize functions such as SMS, voice call, video call, T-Flash card reader.
图 1是现有技术中 USB数据卡的工作模式的流程, 如图 1所示, 首先 将 USB数据卡枚举为一个只读光盘 (CDROM, Compact Disc Read-Only Memory )类的设备, 用于提供给用户安装用户界面 (UI, User Interface ) 软件和数据卡驱动程序; 如果此时 PC中已经安装了该设备的 UI软件和数 据卡驱动程序, 则会由操作系统中的常驻检测程序直接运行 UI软件和数据 卡驱动程序, 并下发切换指令将 USB数据卡切换到正常工作模式(也有可 能由常驻程序直接切换, 或使用 Mass Storage设备的过滤驱动来切换, 具 体需要根据数据卡所使用的切换方式确定), USB数据卡配合 UI软件进行
工作; 如果此时 PC中还没有安装该设备的 UI软件和数据卡驱动程序, 则 开始从 CDROM运行安装程序进行 UI软件和数据卡驱动程序的安装,安装 的过程需要耗时数分钟, 然后由过滤驱动下发切换指令将 USB数据卡切换 到正常工作模式, UI软件自动运行, USB数据卡配合 UI软件进行工作; 因此, 数据卡能否正常工作, 与用户 PC 中的操作系统关系非常大; 首先1 is a flow chart of a working mode of a USB data card in the prior art. As shown in FIG. 1, the USB data card is first enumerated as a CDROM (Compact Disc Read-Only Memory) device for Provide users with user interface (UI, User Interface) software and data card driver; if the UI software and data card driver of the device are already installed in the PC, it will be directly used by the resident detection program in the operating system. Run the UI software and data card driver, and issue the switch command to switch the USB data card to the normal working mode (it is also possible to switch directly from the resident program, or use the filter driver of the Mass Storage device to switch, depending on the data card The switching mode used is determined), the USB data card is combined with the UI software. If the UI software and data card driver of the device are not installed in the PC at this time, start to install the UI software and data card driver from the CDROM. The installation process takes several minutes, and then The filter driver sends a switching command to switch the USB data card to the normal working mode, the UI software runs automatically, and the USB data card works with the UI software; therefore, whether the data card works normally has a great relationship with the operating system in the user PC; First of all
PC的操作系统必须可以正常识别出 CDROM设备(在安装了某些有问题的 虚拟光驱软件的 PC上, 这一前提无法保证), 其次必须可以正常顺利的安 装 UI软件和驱动程序 (由于杀毒软件的限制或者其他软件的冲突有可能会 导致安装失败), 之后才可以正常在 PC的操作系统中使用, 基于这种 USB 数据卡的工作模式, 随着数据卡产品功能的不断增加和复杂化, USB数据 卡在目前的实现方法中还存在一些不足, 从而影响用户体验; USB数据卡 的缺点是: (1 ) 为了同时并发多种业务, USB数据卡需要同时虚拟和枚举 出多种功能设备,又称为 interface,例如,用于语音通话的 VOUSB interface, 用于收发短信的 AT interface, 用于实现微软上网规范的 NIDS interface等, 这些设备都是专用的, 需要安装第三方提供的驱动程序方可使用, 这样就 需要用户在第一次使用时安装多个设备驱动程序; 同时, 为了实现安装驱 动程序的自动化, 将驱动程序整合在 PC侧的用户界面( UI, User Interface ) 软件中, 这样就需要在第一次使用时安装整个 UI软件, 安装之后会在硬盘 中和注册表等位置留下相关信息, 因此增加了使用的复杂度和系统垃圾; ( 2 )给设备安装驱动程序需要一定的等待时间, 在不同的操作系统下, 所 耗费的安装时间也是不同的; 在某些安装驱动程序速度较慢的系统中, 例 如 Windows VISTA系统, 每一个设备的驱动程序需要 20~30秒左右的安装 时间, 如果用户使用的 USB数据卡产品会虚拟出多个设备, 那么就需要数 分钟的安装时间, 严重影响用户体验; (3 )在 Windows操作系统中, 在安 装过程中, 由于 PC侧的驱动程序受到当前系统环境、 已安装的软件和驱动
程序等因素的影响, 偶尔会有兼容性问题出现, 外在的表现形式就是在The operating system of the PC must be able to recognize the CDROM device normally (this is not guaranteed on a PC with some problematic virtual CD-ROM software installed). Secondly, UI software and drivers must be installed smoothly (due to anti-virus software). The limitation of the software or other software conflicts may cause the installation to fail.) After that, it can be used normally in the operating system of the PC. Based on the working mode of the USB data card, as the function of the data card product increases and becomes complicated, The USB data card still has some shortcomings in the current implementation method, which affects the user experience. The disadvantages of the USB data card are: (1) In order to concurrently concurrently use multiple services, the USB data card needs to simultaneously virtualize and enumerate multiple functional devices. , also known as interface, for example, VOUSB interface for voice calls, AT interface for sending and receiving text messages, NIDS interface for implementing Microsoft Internet access specifications, etc. These devices are dedicated and need to install drivers provided by third parties. Can be used, which requires the user to install multiple device drivers the first time they are used. At the same time, in order to automate the installation of the driver, the driver is integrated into the user interface (UI, User Interface) software on the PC side, so that the entire UI software needs to be installed on the first use, and then installed on the hard disk and The location such as the registry leaves relevant information, thus increasing the complexity of use and system garbage; (2) It takes a certain waiting time to install the driver for the device, and the installation time is different under different operating systems; In some systems with slower driver installations, such as Windows VISTA system, the driver of each device takes about 20~30 seconds to install. If the USB data card product used by the user will virtualize multiple devices, then It takes a few minutes of installation time, which seriously affects the user experience; (3) In the Windows operating system, during the installation process, the driver on the PC side is affected by the current system environment, installed software and drivers. The influence of factors such as programs, occasionally compatibility problems arise, the external manifestation is
Windows设备管理器中, 出现黄色叹号错误, 导致设备无法使用; 虽然这 是一个小概率的驱动程序安装问题,但是如果 USB数据卡虚拟出多个设备, 出现这种兼容性问题的概率必然会提高, 从而影响到用户的正常使用; (4 ) 在 Windows操作系统中, 将用户分为不同的安全等级, 只有在管理员等级 下才可以正常无限制地安装各种软件和驱动程序, 非管理员权限的用户将 会受到不同程度的限制; 由于存在这种限制, 如果我们将 USB数据卡临时 插入他人 PC 上进行暂时使用, 就会因为不是管理员权限而无法正常安装 PC侧的 UI软件, 也就不能正常安装驱动程序, 从而影响了用户的正常使 用。 发明内容 In the Windows Device Manager, a yellow exclamation error occurs, causing the device to be unusable; although this is a small probability of driver installation problems, if the USB data card virtualizes multiple devices, the probability of such compatibility problems will inevitably increase. , thus affecting the normal use of the user; (4) In the Windows operating system, the user is divided into different security levels, only under the administrator level can install various software and drivers, non-administrators Users with permissions will be subject to varying degrees of restrictions; due to this limitation, if we temporarily insert a USB data card into another PC for temporary use, it will not be able to properly install the UI software on the PC side because it is not an administrator. The driver cannot be installed properly, which affects the normal use of the user. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种无线通讯终端及其自启动 的方法, 彻底避免了无线通讯终端在安装 UI软件和数据卡驱动程序过程中 发生的与 PC的操作系统的兼容性问题。 In view of this, the main object of the present invention is to provide a wireless communication terminal and a self-starting method thereof, which completely avoids compatibility with a PC operating system during a process of installing a UI software and a data card driver in a wireless communication terminal. problem.
为达到上述目的, 本发明的技术方案是这样实现的: In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明提供一种无线通讯终端, 已插入 PC , 该无线通讯终端包括: GRUB引导程序模块、 嵌入式操作系统模块; 其中, The present invention provides a wireless communication terminal, which has been inserted into a PC, and includes: a GRUB boot program module and an embedded operating system module;
GRUB 引导程序模块, 用于自身开始运行后, 引导嵌入式操作系统模 块开始运行; The GRUB bootstrap module, which is used to boot the embedded operating system module after it starts running;
嵌入式操作系统模块, 用于自身开始运行后, 运行切换程序将无线通 讯终端切换到正常工作模式, 并运行预装的数据卡驱动程序和 /或 UI软件。 The embedded operating system module, after it has started running, runs the switching program to switch the wireless communication terminal to the normal working mode and runs the pre-installed data card driver and/or UI software.
上述无线通讯终端中, 该无线通讯终端还包括: USB接口模块、 SCSI 指令处理模块、 SCSI-Flash界面转换模块、 Flash读写模块; 其中, In the above wireless communication terminal, the wireless communication terminal further includes: a USB interface module, a SCSI command processing module, a SCSI-Flash interface conversion module, and a flash read/write module;
USB接口模块, 用于当 PC的 BIOS进行自检时, 枚举出 USB设备; 接收 PC的 BIOS下发的 SCSI指令, 并将所述 SCSI指令转发给 SCSI指令
处理模块; The USB interface module is configured to enumerate the USB device when the BIOS of the PC performs a self-test; receive the SCSI command sent by the BIOS of the PC, and forward the SCSI command to the SCSI command. Processing module
SCSI指令处理模块, 用于接收 USB接口模块转发的 SCSI指令, 并将 SCSI指令中的数据块起始编号和数据块数量信息发送给 SCSI-Flash界面转 换模块; a SCSI command processing module, configured to receive a SCSI command forwarded by the USB interface module, and send the data block start number and the data block number information in the SCSI command to the SCSI-Flash interface conversion module;
SCSI-Flash界面转换模块,用于将数据块起始编号和数据块数量信息转 换成 GRUB引导程序和嵌入式操作系统的在 Flash存储区中的实际存储地 址, 并将所述实际存储地址发送给 Flash读写模块; a SCSI-Flash interface conversion module, configured to convert the data block start number and the data block quantity information into an actual storage address of the GRUB boot program and the embedded operating system in the flash storage area, and send the actual storage address to Flash read and write module;
Flash读写模块,用于从所述实际存储地址中读取出 GRUB引导程序与 嵌入式操作系统, 并上报给 PC的 BIOS。 The flash read/write module is configured to read the GRUB boot program and the embedded operating system from the actual storage address, and report the BIOS to the PC.
上述无线通讯终端中, 所述 SCSI-Flash界面转换模块将数据块起始编 号和数据块数量信息转换成 GRUB 引导程序和嵌入式操作系统的在 Flash 存储区中的实际存储地址为: 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 the GRUB boot program and the actual storage address of the embedded operating system in the Flash memory area:
SCSI-Flash界面转换模块按照 1个数据块是 512个字节的单位,并根据 数据块起始编号和数据块数量信息,计算出需要从 Flash存储区中读取的数 据的起始地址偏移值, 再利用预先存储的 GRUB引导程序和嵌入式操作系 统的 Flash存储区的首地址,计算出 PC的 BIOS需要读取的数据的首地址。 The SCSI-Flash interface conversion module calculates the starting address offset of the data to be read from the flash memory area according to the data block start number and the data block number information according to a data block of 512 bytes. Value, and then use the pre-stored GRUB boot program and the first address of the Flash memory area of the embedded operating system to calculate the first address of the data that the PC's BIOS needs to read.
上述无线通讯终端中, 所述 GRUB引导程序模块引导嵌入式操作系统 模块开始运行为: In the above wireless communication terminal, the GRUB boot program module boots the embedded operating system module to start running as:
GRUB 引导程序模块开始工作后, GRUB 引导程序模块引导嵌入式操 作系统模块开始运行; 当嵌入式操作系统模块在 GRUB引导程序模块的引 导下开始运行后, 在内存中建立虚拟 ramdisk, 对自身进行复制后保存到该 虚拟 ramdisk„ After the GRUB boot program module starts working, the GRUB boot program module boots the embedded operating system module to start running; when the embedded operating system module starts running under the boot of the GRUB boot program module, a virtual ramdisk is created in the memory to copy itself. Save to the virtual ramdisk
上述无线通讯终端中, 所述嵌入式操作系统模块运行切换程序将无线 通讯终端切换到正常工作模式,并运行预装的数据卡驱动程序和 /或 UI软件 为:
嵌入式操作系统模块以虚拟 ramdisk为基础开始运行后,运行内存的切 换程序 ,将枚举为 USB设备的无线通讯终端切换到多端口的正常工作模式, 并运行预先安装的数据卡驱动程序和 /或 UI软件。 In the above wireless communication terminal, the embedded operating system module running switching program switches the wireless communication terminal to the normal working mode, and runs the pre-installed data card driver and/or UI software as: After the embedded operating system module starts running on the basis of the virtual ramdisk, the memory switching program runs, switches the wireless communication terminal enumerated as the USB device to the normal working mode of the multi-port, and runs the pre-installed data card driver and/or Or UI software.
本发明还提供一种无线通讯终端自启动的方法, 该方法包括: The invention also provides a method for self-starting of a wireless communication terminal, the method comprising:
PC的 BIOS运行搜索到的 USB设备中的 GRUB引导程序; The BIOS of the PC runs the GRUB bootloader in the searched USB device;
GRUB引导程序引导已插入 PC的无线通讯终端中的嵌入式操作系统开 始运行, 嵌入式操作系统运行切换程序将无线通讯终端切换到正常工作模 式, 并运行预装的数据卡驱动程序和 /或 UI软件。 The GRUB boot program boots the embedded operating system in the wireless communication terminal that has been inserted into the PC, and the embedded operating system runs the switching program to switch the wireless communication terminal to the normal working mode and runs the pre-installed data card driver and/or UI. software.
上述方法中, 所述 PC的 BIOS运行搜索到的 USB设备中的 GRUB引 导程序之前, 该方法还包括: In the above method, before the BIOS of the PC runs the GRUB boot program in the searched USB device, the method further includes:
当 PC的 BIOS进行自检时,已插入 PC的无线通讯终端枚举 USB设备, PC的 BIOS搜索所述 USB设备中的 GRUB引导程序。 When the BIOS of the PC performs a self-test, the wireless communication terminal inserted into the PC enumerates the USB device, and the BIOS of the PC searches for the GRUB boot program in the USB device.
上述方法中, 所述当 PC的 BIOS进行自检时, 已插入 PC的无线通讯 终端枚举 USB设备为: In the above method, when the BIOS of the PC performs a self-test, the wireless communication terminal inserted into the PC enumerates the USB device as:
在 PC开机之前插入无线通讯终端 , 或在将无线通讯终端插入 PC之后 重新启动 PC , 当 PC的 BIOS进行自检时, 无线通讯终端的 USB接口模块 枚举出 USB设备。 Insert the wireless communication terminal before the PC is turned on, or restart the PC after inserting the wireless communication terminal into the PC. When the BIOS of the PC performs a self-test, the USB interface module of the wireless communication terminal enumerates the USB device.
上述方法中, 所述 PC的 BIOS搜索所述 USB设备中的 GRUB引导程 序为: In the above method, the BIOS of the PC searches for the GRUB boot program in the USB device as:
PC的 BIOS下发 SCSI指令给 USB设备,枚举为 USB设备的无线通讯 终端的 USB接口模块接收该 SCSI指令,并将收到的 SCSI指令转发给无线 通讯终端的 SCSI指令处理模块; The BIOS of the PC sends a SCSI command to the USB device, and the USB interface module enumerated as the USB device receives the SCSI command, and forwards the received SCSI command to the SCSI command processing module of the wireless communication terminal;
SCSI指令处理模块接收所述 SCSI指令, 并将 SCSI指令中的数据块起 始编号和数据块数量信息发送给无线通讯终端的 SCSI-Flash界面转换模块; The SCSI command processing module receives the SCSI command, and sends the data block start number and the data block number information in the SCSI command to the SCSI-Flash interface conversion module of the wireless communication terminal;
SCSI-Flash界面转换模块将数据块起始编号和数据块数量信息转换成
GRUB引导程序和嵌入式操作系统的在 Flash存储区中的实际存储地址,并 The SCSI-Flash interface conversion module converts the data block start number and the data block number information into The actual storage address of the GRUB bootloader and the embedded operating system in the flash memory area, and
Flash读写模块从所述实际存储地址中读取出 GRUB引导程序与嵌入式 操作系统, 并上才艮给 PC的 BIOS。 The Flash read/write module reads the GRUB boot program and the embedded operating system from the actual storage address, and then sends the BIOS to the PC.
上述方法中, 所述 SCSI-Flash界面转换模块将数据块起始编号和数据 块数量信息转换成 GRUB引导程序和嵌入式操作系统的在 Flash存储区中 的实际存储地址为: In the above method, the SCSI-Flash interface conversion module converts the data block start number and the data block quantity information into a GRUB boot program and an actual operating address of the embedded operating system in the Flash memory area:
SCSI-Flash界面转换模块按照 1个数据块是 512个字节的单位,并根据 数据块起始编号和数据块数量信息,计算出需要从 Flash存储区中读取的数 据的起始地址偏移值, 再利用预先存储的 GRUB引导程序和嵌入式操作系 统的 Flash存储区的首地址,计算出 PC的 BIOS需要读取的数据的首地址。 The SCSI-Flash interface conversion module calculates the starting address offset of the data to be read from the flash memory area according to the data block start number and the data block number information according to a data block of 512 bytes. Value, and then use the pre-stored GRUB boot program and the first address of the Flash memory area of the embedded operating system to calculate the first address of the data that the PC's BIOS needs to read.
上述方法中, 所述 PC的 BIOS运行搜索到的 USB设备中的 GRUB引 导程序为: In the above method, the GRUB boot program in the searched USB device of the BIOS of the PC is:
当 PC的 BIOS根据无线通讯终端的 Flash读写模块上报的 GRUB引导 程序与嵌入式操作系统后, PC 的 BIOS 确定自身搜索到 USB设备中的 GRUB引导程序, 并运行所述 GRUB引导程序, GRUB引导程序开始引导 工作。 After the BIOS of the PC is based on the GRUB boot program and the embedded operating system reported by the Flash read/write module of the wireless communication terminal, the BIOS of the PC determines that it searches for the GRUB boot program in the USB device, and runs the GRUB boot program, and the GRUB boots. The program starts to guide the work.
上述方法中, 所述 GRUB引导程序引导已插入 PC的无线通讯终端中 的嵌入式操作系统开始运行为: In the above method, the GRUB boot program boots the embedded operating system in the wireless communication terminal inserted into the PC to start running as:
GRUB 引导程序开始工作后, GRUB 引导程序引导无线通讯终端的嵌 入式操作系统开始运行; 当嵌入式操作系统在 GRUB引导程序的引导下开 始运行后, 在无线通讯终端的内存中建立虚拟 ramdisk, 对自身进行复制后 保存到该虚拟 ramdisk„ After the GRUB boot program starts working, the GRUB boot program boots the embedded operating system of the wireless communication terminal to start running; when the embedded operating system starts running under the guidance of the GRUB boot program, a virtual ramdisk is created in the memory of the wireless communication terminal, Save it to the virtual ramdisk after copying itself
上述方法中, 所述嵌入式操作系统运行切换程序将无线通讯终端切换 到正常工作模式, 并运行预装的数据卡驱动程序和 /或 UI软件为:
嵌入式操作系统以虚拟 ramdisk为基础开始运行后,运行无线通讯终端 的内存的切换程序, 将枚举为 USB设备的无线通讯终端切换到多端口的正 常工作模式; 运行预先安装的数据卡驱动程序和 /或 UI软件,无线通讯终端 进入正常工作状态 , 开始配合 UI软件进行工作。 In the above method, the embedded operating system running switching program switches the wireless communication terminal to the normal working mode, and runs the pre-installed data card driver and/or UI software as: After the embedded operating system starts running on the virtual ramdisk, the memory switching program of the wireless communication terminal is operated, and the wireless communication terminal enumerated as the USB device is switched to the normal working mode of the multi-port; the pre-installed data card driver is run. And / or UI software, the wireless communication terminal enters the normal working state, and starts working with the UI software.
本发明提供的无线通讯终端及其自启动的方法, PC的 BIOS运行搜索 到的 USB设备中的 GRUB引导程序; GRUB引导程序引导已插入 PC的无 线通讯终端中的嵌入式操作系统开始运行, 嵌入式操作系统运行切换程序 将无线通讯终端切换到正常工作模式, 并运行预装的数据卡驱动程序和 /或 UI软件, 将 PC 引导到无线通讯终端的嵌入式操作系统中, 由于该嵌入 式操作系统中预先安装了 UI软件和数据卡驱动程序,因此可以直接使用 数据卡的功能, 无需再安装任何软件; 同时, 由于嵌入式操作系统的特 点是无线通讯终端自带的专用于使用无线通讯终端连接网络的操作系统, 因此不但在运行时具有较高的运行速度, 并且在受到病毒感染时可以在 下次重启时自动清除。 The wireless communication terminal provided by the invention and the self-starting method thereof, the BIOS of the PC runs the GRUB boot program in the searched USB device; the GRUB boot program guides the embedded operating system in the wireless communication terminal inserted into the PC to start running, embedding The operating system operation switching program switches the wireless communication terminal to the normal working mode, and runs the pre-installed data card driver and/or UI software to boot the PC into the embedded operating system of the wireless communication terminal due to the embedded operation. The UI software and data card driver are pre-installed in the system, so the function of the data card can be directly used without any software installation. At the same time, because the embedded operating system is characterized by the wireless communication terminal, it is dedicated to the use of the wireless communication terminal. The operating system connected to the network, so it not only has a high running speed at runtime, but can be automatically cleared on the next reboot when it is infected by a virus.
在 PC开机时通过无线通讯终端的引导功能,运行无线通讯终端内置的 嵌入式操作系统, 在该操作系统中, 有着与操作系统专业版同样的使用界 面, 且可以正常访问 PC 的硬盘, 因此不影响用户上网浏览和上传 /下载数 据; 而且由于不是运行在 PC操作系统中, 因此在受到病毒的攻击后, 也只 会对无线通讯终端的嵌入式操作系统造成破坏,在下次重新启动时, 该嵌入 式操作系统就可以自动恢复。 When the PC is powered on, the embedded communication system built in the wireless communication terminal is operated by the guiding function of the wireless communication terminal. In the operating system, the same user interface as the operating system professional version is used, and the hard disk of the PC can be accessed normally, so Affect users to browse the Internet and upload/download data; and because it is not running in the PC operating system, it will only cause damage to the embedded operating system of the wireless communication terminal after being attacked by the virus. The embedded operating system can be automatically restored.
由于使用的是无线通讯终端自带的嵌入式操作系统, 该操作系统的界 面、 预装的软件、 用于无线通讯终端使用的 UI软件、 数据卡驱动程序等都 可以预先定制, 可以直接使用, 无需安装 UI软件, 也无需安装数据卡驱动 程序, 做到真正的免驱动安装功能; 且驱动程序和 UI软件都不会在 PC的 操作系统中留下任何安装痕迹和系统垃圾。
如果 PC的操作系统是 Linux等,是对无线通讯终端的支持并不十分完 善的操作系统,也可以通过将 PC引导到无线通讯终端自带的嵌入式操作系 统的方式,直接在操作系统中使用无线通讯终端, 发挥无线通讯终端的所有 功能, 带来更好的用户体验。 Since the embedded operating system is provided by the wireless communication terminal, the interface of the operating system, the pre-installed software, the UI software used for the wireless communication terminal, the data card driver, etc. can be pre-customized and can be directly used. No need to install UI software, no need to install data card driver, to achieve true driver-free installation; and the driver and UI software will not leave any installation traces and system garbage in the PC's operating system. If the operating system of the PC is Linux, etc., it is an operating system that is not fully supported by the wireless communication terminal. It can also be directly used in the operating system by booting the PC to the embedded operating system of the wireless communication terminal. The wireless communication terminal takes full advantage of all the functions of the wireless communication terminal, resulting in a better user experience.
由于很多公司的 PC, 他人的 PC, 都没有开放管理员权限, 此时是无法 安装无线通讯终端的 UI软件和驱动程序的, 也就是说, 完全无法使用无线 通讯终端产品; 但是利用本发明提供的无线通讯终端及其与计算机的操作 系统的兼容方法,可以直接在开机时将 PC的操作系统引导到无线通讯终端 的嵌入式操作系统中, 完全没有权限的限制, 可以正常使用所有无线通讯 终端功能。 Since many companies' PCs and other people's PCs do not have open administrator rights, the UI software and drivers of the wireless communication terminal cannot be installed at this time, that is, the wireless communication terminal products cannot be used at all; however, the present invention is provided. The wireless communication terminal and the compatibility method thereof with the operating system of the computer can directly boot the operating system of the PC to the embedded operating system of the wireless communication terminal at the time of booting, and have no permission limitation at all, and can normally use all the wireless communication terminals. Features.
由于是使用无线通讯终端内置的操作系统, 该操作系统已经由厂商自 行定制和测试, 预先安装了 UI软件和数据卡驱动程序, 最大程度上杜绝了 无线通讯终端在与 PC的操作系统配合使用过程中,出现的各种由于系统环 境和安装软件的多样化引起的兼容性和软件冲突问题。 附图说明 Since the built-in operating system of the wireless communication terminal is used, the operating system has been customized and tested by the manufacturer, and the UI software and the data card driver are pre-installed, thereby maximally eliminating the use of the wireless communication terminal in cooperation with the operating system of the PC. Among them, various compatibility and software conflicts arise due to the diversification of the system environment and installation software. DRAWINGS
图 1是现有技术中 USB数据卡的工作模式的流程; 1 is a flow chart of a working mode of a USB data card in the prior art;
图 2是本发明无线通讯终端的结构示意图; 2 is a schematic structural diagram of a wireless communication terminal of the present invention;
图 3是本发明实现无线通讯终端自启动的方法的流程示意图。 具体实施方式 FIG. 3 is a schematic flow chart of a method for implementing self-starting of a wireless communication terminal according to the present invention. detailed description
系统引导管理器( GRUB, GRand Unified Bootloader )是一个来自 GNU 项目的多操作系统启动程序。 GRUB 是多启动规范的实现, 它允许用户可 以在计算机内同时拥有多个操作系统, 并在计算机启动时选择希望运行的 操作系统。 GRUB 可用于选择操作系统分区上的不同内核, 也可用于向这 些内核传递启动参数。
嵌入式操作系统是基于以组件为组成部分的嵌入式操作系统, 嵌入式 操作系统包括嵌入式 Windows操作系统、 嵌入式 Linux操作系统、 嵌入式 Mac操作系统和嵌入式 Android操作系统等, 嵌入式 Windows操作系统可 以是嵌入式 WindowsXP操作系统、 嵌入式 Windows7操作系统等; 嵌入式 操作系统也可以顺利运行在 PC中;嵌入式操作系统基于操作系统的专业版, 将专业版分成大约 12000 多个组件, 设备厂商可以根据自己的需要和硬件 配置自由选择需要加载的组件, 可以非常方便的对操作系统进行变化和裁 剪;嵌入式操作系统根据所选组件的不同, 可以实现操作系统专业版的几乎 所有功能, 也可以支持操作系统下的各种应用程序, 具有很强的实用性和 灵活性。 The System Boot Manager (GRUB, GRand Unified Bootloader) is a multi-OS boot program from the GNU project. GRUB is an implementation of the multi-boot specification that allows users to have multiple operating systems simultaneously on a computer and select the operating system they want to run when the computer starts. GRUB can be used to select different kernels on the operating system partition and can also be used to pass boot parameters to these kernels. The embedded operating system is based on the embedded operating system with components as components. The embedded operating system includes embedded Windows operating system, embedded Linux operating system, embedded Mac operating system and embedded Android operating system, etc. Embedded Windows The operating system can be an embedded Windows XP operating system, an embedded Windows 7 operating system, etc.; the embedded operating system can also run smoothly in the PC; the embedded operating system is based on the professional version of the operating system, and the professional version is divided into about 12,000 components. Device manufacturers can freely select the components that need to be loaded according to their own needs and hardware configuration. It is very convenient to change and tailor the operating system. The embedded operating system can realize almost all functions of the operating system professional version according to the selected components. It can also support various applications under the operating system, which is very practical and flexible.
基于上述 GRUB和嵌入式操作系统, 本发明提供一种无线通讯终端及 其自启动的方法, 其基本思想是: PC的 BIOS运行搜索到的 USB设备中的 GRUB引导程序; GRUB引导程序引导已插入 PC的无线通讯终端中的嵌入 式操作系统开始运行, 嵌入式操作系统运行切换程序将无线通讯终端切换 到正常工作模式, 并运行预装的数据卡驱动程序和 /或 UI软件。 Based on the foregoing GRUB and the embedded operating system, the present invention provides a wireless communication terminal and a self-starting method thereof. The basic idea is: the BIOS of the PC runs the GRUB boot program in the searched USB device; the GRUB boot program boot has been inserted. The embedded operating system in the wireless communication terminal of the PC starts running, and the embedded operating system running switching program switches the wireless communication terminal to the normal working mode and runs the pre-installed data card driver and/or UI software.
下面通过附图及具体实施例对本发明再做进一步的详细说明。 The invention will be further described in detail below with reference to the drawings and specific embodiments.
本发明提供一种无线通讯终端, 图 2是本发明无线通讯终端的结构示 意图, 如图 2所示, 该无线通讯终端包括: GRUB引导程序模块 21、 嵌入 式操作系统模块 22; 其中, The present invention provides a wireless communication terminal. FIG. 2 is a schematic diagram of the structure of the wireless communication terminal of the present invention. As shown in FIG. 2, the wireless communication terminal includes: a GRUB boot program module 21, and an embedded operating system module 22;
GRUB引导程序模块 21 , 用于自身开始运行后, 引导嵌入式操作系统 模块 22开始运行; The GRUB boot program module 21, after starting the operation itself, boots the embedded operating system module 22 to start running;
嵌入式操作系统模块 22, 用于自身开始运行后, 运行切换程序将 USB 数据卡切换到正常工作模式, 并运行预装的数据卡驱动程序和 /或 UI软件。 The embedded operating system module 22, after it has started running, runs the switching program to switch the USB data card to the normal working mode and runs the pre-installed data card driver and/or UI software.
该无线通讯终端还包括: USB接口模块 23、 SCSI指令处理模块 24、 SCSI-Flash界面转换模块 25、 Flash读写模块 26; 其中,
USB接口模块 23 ,用于当 PC的 BIOS进行自检时,枚举出 USB设备; 接收 PC的 BIOS下发的 SCSI指令, 并将该 SCSI指令转发给 SCSI指令处 理模块 24; The wireless communication terminal further includes: a USB interface module 23, a SCSI command processing module 24, a SCSI-Flash interface conversion module 25, and a flash read/write module 26; The USB interface module 23 is configured to enumerate the USB device when the BIOS of the PC performs a self-test; receive the SCSI command issued by the BIOS of the PC, and forward the SCSI command to the SCSI command processing module 24;
SCSI指令处理模块 24,用于接收 USB接口模块 23转发的 SCSI指令, 并将 SCSI指令中的数据块起始编号和数据块数量信息发送给 SCSI-Flash界 面转换模块 25; The SCSI command processing module 24 is configured to receive the SCSI command forwarded by the USB interface module 23, and send the data block start number and the data block number information in the SCSI command to the SCSI-Flash interface conversion module 25;
SCSI-Flash界面转换模块 25 , 用于将数据块起始编号和数据块数量信 息转换成 GRUB引导程序和嵌入式操作系统的在 Flash存储区中的实际存 储地址, 并将所述实际存储地址发送给 Flash读写模块 26; The SCSI-Flash interface conversion module 25 is configured to convert the data block start number and the data block quantity information into an actual storage address of the GRUB boot program and the embedded operating system in the flash storage area, and send the actual storage address To the Flash read and write module 26;
Flash读写模块 26, 用于从所述实际存储地址中读取出 GRUB引导程 序与嵌入式操作系统, 并上报给 PC的 BIOS。 The flash read/write module 26 is configured to read out the GRUB boot program from the actual storage address and the embedded operating system, and report the BIOS to the PC.
所述 SCSI-Flash界面转换模块 25将数据块起始编号和数据块数量信息 转换成 GRUB引导程序和嵌入式操作系统的在 Flash存储区中的实际存储 地址为: The SCSI-Flash interface conversion module 25 converts the data block start number and the data block number information into the actual storage addresses of the GRUB boot program and the embedded operating system in the Flash memory area:
SCSI-Flash界面转换模块 25按照 1个数据块是 512个字节的单位, 并 根据数据块起始编号和数据块数量信息,计算出需要从 Flash存储区中读取 的数据的起始地址偏移值, 再利用预先存储的 GRUB引导程序和嵌入式操 作系统的 Flash存储区的首地址, 计算出 PC的 BIOS需要读取的数据的首 地址。 The SCSI-Flash interface conversion module 25 is a unit of 512 bytes according to one data block, and calculates a starting address offset of data to be read from the flash memory area according to the data block start number and the number of data blocks. The value is shifted, and the first address of the data that the PC's BIOS needs to read is calculated by using the pre-stored GRUB boot program and the first address of the flash memory area of the embedded operating system.
所述 GRUB引导程序模块 21引导嵌入式操作系统模块 22开始运行为: The GRUB boot program module 21 directs the embedded operating system module 22 to start running as:
GRUB引导程序模块 21开始工作后, GRUB引导程序模块 21引导嵌 入式操作系统模块 22开始运行; 当嵌入式操作系统模块 22在 GRUB引导 程序模块 21 的引导下开始运行后, 在内存中建立虚拟 ramdisk, 对自身进 行复制后保存到该虚拟 ramdisk。 After the GRUB boot program module 21 starts working, the GRUB boot program module 21 directs the embedded operating system module 22 to start running; when the embedded operating system module 22 starts running under the boot of the GRUB boot program module 21, a virtual ramdisk is created in the memory. , copy it to the virtual ramdisk.
所述嵌入式操作系统模块 22运行切换程序将无线通讯终端切换到正常
工作模式, 并运行预装的数据卡驱动程序和 /或 UI软件为: The embedded operating system module 22 runs a switching program to switch the wireless communication terminal to normal Work mode, and run the pre-installed data card driver and / or UI software is:
嵌入式操作系统模块 22以虚拟 ramdisk为基础开始运行后, 运行内存 的切换程序, 将枚举为 USB设备的无线通讯终端切换到多端口的正常工作 模式, 并运行预先安装的数据卡驱动程序和 /或 UI软件。 After the embedded operating system module 22 starts running on the basis of the virtual ramdisk, the memory switching program is executed, the wireless communication terminal enumerated as the USB device is switched to the normal working mode of the multi-port, and the pre-installed data card driver is run and / or UI software.
本发明中的无线通讯终端是指以 USB接口为对外接口的无线通讯设 备, 例如智能移动终端、 平板电脑和 USB数据卡等; 下面以无线通讯终端 是 USB数据卡以及嵌入式操作系统为嵌入式 Windows操作系统为例,对无 线通讯终端自启动的方法进行说明。 The wireless communication terminal in the present invention refers to a wireless communication device with a USB interface as an external interface, such as a smart mobile terminal, a tablet computer, and a USB data card; etc.; below, the wireless communication terminal is a USB data card and an embedded operating system is embedded. The Windows operating system is taken as an example to describe the method for starting the wireless communication terminal.
基于上述装置, 本发明还提供一种无线通讯终端自启动的方法, 图 3 是本发明实现无线通讯终端自启动的方法的流程示意图, 如图 3 所示, 该 方法包括以下步骤: Based on the above device, the present invention also provides a method for self-starting of a wireless communication terminal, and FIG. 3 is a schematic flowchart of a method for implementing self-starting of a wireless communication terminal according to the present invention. As shown in FIG. 3, the method includes the following steps:
步骤 301 , 当 PC的 BIOS进行自检时, 已插入 PC的 USB数据卡枚举 USB设备; Step 301: When the BIOS of the PC performs a self-test, the USB data card inserted into the PC enumerates the USB device;
具体的, 在 PC开机之前插入 USB数据卡, 或在将 USB数据卡插入 PC之后重新启动 PC, 可以保证在 PC的基本输入输出系统(BIOS, Basic Input Output System )进行自检时, USB数据卡已经插入 PC; Specifically, inserting a USB data card before the PC is turned on, or restarting the PC after inserting the USB data card into the PC, can ensure that the USB data card is used when the PC's basic input output system (BIOS, Basic Input Output System) performs self-test. Has been inserted into the PC;
当 PC的 BIOS进行自检时, USB数据卡的 USB接口模块枚举出 USB 设备, 用于实现与计算机的引导交互; 其中, USB设备可以是大量存储存 储设备, 例如 U盘、 CDROM等, 可以是通信类设备, 例如以太网卡、 调 制解调器等; 可以通过在 USB数据卡的固件中实现 slave方式的 USB协议 栈的方式, 实现 USB数据卡中的 USB接口模块; USB接口模块按照 USB 协议,在将 USB数据卡链接到 PC的操作系统后,根据 PC的操作系统下发 的 USB标准指令做出相应的回复, 从而实现枚举出符合 USB协议的 USB 设备; 本实施例中, USB接口模块需要首先枚举出一个 Mass Storage类型 的 USB设备。
步骤 302, PC的 BIOS搜索 USB设备中的 GRUB引导程序; When the BIOS of the PC performs a self-test, the USB interface module of the USB data card enumerates the USB device for implementing the boot interaction with the computer; wherein the USB device can be a large number of storage storage devices, such as a USB flash drive, a CDROM, etc. It is a communication device, such as an Ethernet card, a modem, etc.; a USB interface module in a USB data card can be realized by implementing a USB protocol stack of a slave mode in the firmware of the USB data card; the USB interface module is in accordance with the USB protocol. After the USB data card is linked to the operating system of the PC, a corresponding response is made according to the USB standard command issued by the operating system of the PC, thereby enumerating the USB device conforming to the USB protocol; in this embodiment, the USB interface module needs to be first Enumerate a USB device of the Mass Storage type. Step 302, the BIOS of the PC searches for the GRUB boot program in the USB device;
具体的, USB数据卡这种大容量磁碟类设备会被 PC的 BIOS视为引导 分区之一,并且会按照 BIOS中预先设置的顺序依次在各个引导分区中搜索 GRUB引导程序,因此, PC的 BIOS可以与枚举的 USB设备进行数据交互, 搜索 USB设备中的 GRUB引导程序; Specifically, a large-capacity disk device such as a USB data card is regarded as one of the boot partitions by the BIOS of the PC, and the GRUB boot program is searched for in each boot partition in the order preset in the BIOS, therefore, the PC The BIOS can interact with the enumerated USB device to search for the GRUB bootloader in the USB device;
当 BIOS搜索 USB设备中的 GRUB引导程序时, BIOS会下发一系列 的小型计算机系统接口 (SCSI, Small Computer System Interface )指令给 USB设备, 以获取 USB设备的容量或读取 USB设备的引导区等; 枚举为 USB设备的 USB数据卡的 USB接口模块接收该 SCSI指令, 并将收到的 SCSI指令转发给 USB数据卡的 SCSI指令处理模块, SCSI指令处理模块 接收 PC的 BIOS下发的 SCSI指令,并将 SCSI指令中的数据块起始编号和 数据块数量信息发送给 USB数据卡的 SCSI-Flash界面转换模块; SCSI-Flash 界面转换模块按照 1个数据块是 512个字节的单位, 并根据数据块起始编 号和数据块数量信息,计算出需要从 Flash存储区中读取的数据的起始地址 偏移值, 再利用预先存储的 GRUB引导程序和嵌入式 Windows操作系统的 Flash存储区的首地址, 计算出 PC的 BIOS需要读取的数据的首地址, 所 述需要读取的数据的首地址为 GRUB引导程序和嵌入式 Windows操作系统 的实际存储地址, 从而 SCSI-Flash界面转换模块实现了将数据块起始编号 和数据块数量信息, 转换成 GRUB引导程序和嵌入式 Windows操作系统的 在 Flash存储区中的实际存储地址; SCSI-Flash界面转换模块将计算出 GRUB引导程序和嵌入式 Windows操作系统的在 Flash存储区中的实际存 储地址, 发送给 USB数据卡的 Flash读写模块; Flash读写模块根据收到实 际存储地址,利用 API函数从 USB数据卡的 Flash存储区中,读取出 GRUB ? I导程序与嵌入式 Windows操作系统, 并将读取出的 GRUB? |导程序与嵌 入式 Windows操作系统上才艮给 PC的 BIOS。
步骤 303 , PC的 BIOS运行搜索到的 USB设备中的 GRUB引导程序; 具体的,当 PC的 BIOS根据 USB数据卡的 Flash读写模块上报的 GRUB 引导程序与嵌入式 Windows操作系统后, PC的 BIOS确定自身搜索到 USB 设备中的 GRUB引导程序, 并运行该 GRUB引导程序, GRUB引导程序开 始引导工作。 When the BIOS searches for the GRUB bootloader in the USB device, the BIOS issues a series of small computer system interface (SCSI, Small Computer System Interface) commands to the USB device to obtain the capacity of the USB device or read the boot area of the USB device. Wait; the USB interface module enumerating the USB data card of the USB device receives the SCSI command, and forwards the received SCSI command to the SCSI command processing module of the USB data card, and the SCSI command processing module receives the SCSI issued by the BIOS of the PC. The instruction sends the data block start number and the data block number information in the SCSI command to the SCSI-Flash interface conversion module of the USB data card; the SCSI-Flash interface conversion module is 512-byte units according to one data block. According to the data block start number and the number of data block information, calculate the starting address offset value of the data that needs to be read from the flash memory area, and then use the pre-stored GRUB boot program and the Flash memory of the embedded Windows operating system. The first address of the area, the first address of the data that the BIOS of the PC needs to read is calculated, and the first address of the data to be read is the GRUB boot program and the embedding The actual storage address of the Windows operating system, so that the SCSI-Flash interface conversion module converts the data block start number and the number of data blocks into the actual storage address of the GRUB boot program and the embedded Windows operating system in the flash memory area. The SCSI-Flash interface conversion module will calculate the actual storage address of the GRUB bootloader and the embedded Windows operating system in the flash memory area, and send it to the flash read/write module of the USB data card; the flash read/write module receives the actual storage according to the Address, use the API function to read GRUB from the flash memory area of the USB data card? I guide program with embedded Windows operating system, and will read out GRUB? | The program and the embedded Windows operating system only give the PC's BIOS. Step 303, the BIOS of the PC runs the GRUB boot program in the searched USB device; specifically, when the BIOS of the PC is based on the GRUB boot program reported by the Flash read/write module of the USB data card and the embedded Windows operating system, the BIOS of the PC Make sure that you have searched for the GRUB bootloader in the USB device and run the GRUB bootloader. The GRUB bootloader starts booting.
步骤 304, GRUB引导程序引导 USB数据卡中的嵌入式 Windows操作 系统开始运行,嵌入式 Windows操作系统运行切换程序将 USB数据卡切换 到正常工作模式, 并运行预装的数据卡驱动程序和 UI软件; Step 304, the GRUB boot program boots the embedded Windows operating system in the USB data card to start running, the embedded Windows operating system runs the switching program to switch the USB data card to the normal working mode, and runs the pre-installed data card driver and UI software. ;
具体的, GRUB引导程序开始工作后, GRUB引导程序引导 USB数据 卡的嵌入式 Windows操作系统开始运行; 当嵌入式 Windows操作系统在 GRUB 引导程序的引导下开始运行后, 首先运行自身的入口文件 setupldr.bin, 该入口文件可以读取自身的配置文件 winnt.xpe, 以获取自身 的运行方式, 本实施例中, 嵌入式 Windows操作系统的运行方式为虚拟磁 碟( ramdisk ) , 因此嵌入式 Windows操作系统在 USB数据卡的内存中建立 一个虚拟 ramdisk,对自身进行复制, 将复制后的嵌入式 Windows操作系统 保存到该虚拟 ramdisk中, 该虚拟 ramdisk将被虚拟成一个硬盘分区, 作为 嵌入式 Windows操作系统的分区存在; Specifically, after the GRUB boot program starts working, the GRUB boot program boots the embedded Windows operating system of the USB data card to start running; when the embedded Windows operating system starts running under the guidance of the GRUB boot program, first runs its own entry file setupldr. .bin, the entry file can read its own configuration file winnt.xpe to get its own running mode. In this embodiment, the embedded Windows operating system runs as a virtual disk (ramdisk), so the embedded Windows operation The system creates a virtual ramdisk in the memory of the USB data card, copies itself, saves the copied embedded Windows operating system to the virtual ramdisk, and the virtual ramdisk is virtualized into a hard disk partition, which is operated as an embedded Windows. The partition of the system exists;
嵌入式 Windows操作系统以该虚拟 ramdisk为基础开始运行, 嵌入式 Windows操作系统开始运行之后, 可以自动运行厂商指定的常驻 USB数据 卡的内存的切换程序;该切换程序将枚举为 USB设备的 USB数据卡切换到 多端口的正常工作模式; 嵌入式 Windows操作系统可以自动运行已经预先 安装的数据卡驱动程序, 并运行 UI软件, 从而 USB数据卡进入正常工作 状态, 开始配合 UI软件进行工作。 The embedded Windows operating system starts running on the virtual ramdisk. After the embedded Windows operating system starts running, it can automatically run the memory switching program of the resident USB data card specified by the manufacturer; the switching program will be enumerated as a USB device. The USB data card switches to the normal working mode of the multi-port; the embedded Windows operating system can automatically run the pre-installed data card driver and run the UI software, so that the USB data card enters the normal working state and starts working with the UI software.
为了给用户提供更多的使用选择, 应对用户使用过程中的各种情况, 本发明还提供了一种将传统 USB 数据卡工作模式与上述方法相结合的方
法, 该方法可以根据用户的选择执行相应的处理流程, 具体的, 本实施例 中,在 USB数据卡在进行 USB设备的枚举时, 枚举的 USB设备为 CDROM 与虚拟 USB设备两种大容量设备并存的方式; 其中, CDROM中加载的是 包含 UI软件和数据卡驱动程序的安装程序的虚拟光盘, 虚拟 USB设备中 加载的是 USB 数据卡的 Flash存储区中的嵌入式 Windows操作系统的 GRUB引导程序; 这样, 当用户想以传统 USB数据卡工作模式安装 UI软 件和数据卡驱动程序时, 在 PC的操作系统中使用 USB数据卡时, 只需要 在插入 USB数据卡后, 安装 CDROM中的数据卡驱动程序和 UI软件, 然 后等待数据卡被自动切换为正常工作模式后使用即可; 如果用户想以图 3 所示的方法使用 USB数据卡时, 只需要在插入 USB数据卡后, 重启 PC, 或在开机前插入 USB数据卡, 然后通过 USB数据卡的虚拟 USB设备, 在 BIOS自检阶段将 PC引导到 USB数据卡的嵌入式 Windows操作系统中, 等 待驱动自动安装完毕 , υι软件运行后使用即可。 这两种模式的无缝结合, 可 以给用户提供更多的使用选择, 可以让用户应对各种使用中遇到的问题, 不但提高了 USB数据卡的可用性, 对用户体验也有很大程度的提高。 In order to provide users with more choices of use, in response to various situations in the user's use, the present invention also provides a method of combining the working mode of the conventional USB data card with the above method. The method can perform the corresponding processing according to the user's selection. Specifically, in the embodiment, when the USB data card is enumerated for the USB device, the enumerated USB device is two large CDROMs and virtual USB devices. The way in which the capacity devices coexist; wherein the CDROM is loaded with a virtual CD containing the UI software and the data card driver installation program, and the virtual USB device is loaded with the embedded Windows operating system in the Flash memory area of the USB data card. GRUB boot program; In this way, when the user wants to install the UI software and the data card driver in the traditional USB data card working mode, when using the USB data card in the operating system of the PC, it is only necessary to install the CDROM after inserting the USB data card. The data card driver and UI software, then wait for the data card to be automatically switched to the normal working mode and use it; if the user wants to use the USB data card in the way shown in Figure 3, only after inserting the USB data card, Restart the PC, or insert a USB data card before booting, and then boot the PC to the U during the BIOS self-test phase via the virtual USB device of the USB data card. In the embedded Windows operating system of the SB data card, wait for the driver to be automatically installed, and use the software after running. The seamless combination of these two modes can provide users with more choices of use, allowing users to cope with various problems encountered in use, not only improving the usability of USB data cards, but also greatly improving the user experience. .
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included. Within the scope of protection of the present invention.
Claims
1、 一种无线通讯终端, 已插入 PC , 其特征在于, 该无线通讯终端包 括: GRUB引导程序模块、 嵌入式操作系统模块; 其中, A wireless communication terminal, which has been inserted into a PC, wherein the wireless communication terminal comprises: a GRUB boot program module and an embedded operating system module;
GRUB 引导程序模块, 用于自身开始运行后, 引导嵌入式操作系统模 块开始运行; The GRUB bootstrap module, which is used to boot the embedded operating system module after it starts running;
嵌入式操作系统模块, 用于自身开始运行后, 运行切换程序将无线通 讯终端切换到正常工作模式, 并运行预装的数据卡驱动程序和 /或 UI软件。 The embedded operating system module, after it has started running, runs the switching program to switch the wireless communication terminal to the normal working mode and runs the pre-installed data card driver and/or UI software.
2、 根据权利要求 1所述的无线通讯终端, 其特征在于, 该无线通讯终 端还包括: USB接口模块、 SCSI指令处理模块、 SCSI-Flash界面转换模块、 Flash读写模块; 其中, The wireless communication terminal according to claim 1, wherein the wireless communication terminal further comprises: a USB interface module, a SCSI command processing module, a SCSI-Flash interface conversion module, and a flash read/write module;
USB接口模块, 用于当 PC的 BIOS进行自检时, 枚举出 USB设备; 接收 PC的 BIOS下发的 SCSI指令, 并将所述 SCSI指令转发给 SCSI指令 处理模块; The USB interface module is configured to enumerate the USB device when the BIOS of the PC performs a self-test; receive the SCSI command issued by the BIOS of the PC, and forward the SCSI command to the SCSI command processing module;
SCSI指令处理模块, 用于接收 USB接口模块转发的 SCSI指令, 并将 SCSI指令中的数据块起始编号和数据块数量信息发送给 SCSI-Flash界面转 换模块; a SCSI command processing module, configured to receive a SCSI command forwarded by the USB interface module, and send the data block start number and the data block number information in the SCSI command to the SCSI-Flash interface conversion module;
SCSI-Flash界面转换模块,用于将数据块起始编号和数据块数量信息转 换成 GRUB引导程序和嵌入式操作系统的在 Flash存储区中的实际存储地 址, 并将所述实际存储地址发送给 Flash读写模块; a SCSI-Flash interface conversion module, configured to convert the data block start number and the data block quantity information into an actual storage address of the GRUB boot program and the embedded operating system in the flash storage area, and send the actual storage address to Flash read and write module;
Flash读写模块,用于从所述实际存储地址中读取出 GRUB引导程序与 嵌入式操作系统, 并上报给 PC的 BIOS。 The flash read/write module is configured to read the GRUB boot program and the embedded operating system from the actual storage address, and report the BIOS to the PC.
3、根据权利要求 2所述的无线通讯终端,其特征在于,所述 SCSI-Flash 界面转换模块将数据块起始编号和数据块数量信息转换成 GRUB引导程序 和嵌入式操作系统的在 Flash存储区中的实际存储地址为: The wireless communication terminal according to claim 2, wherein the SCSI-Flash interface conversion module converts the data block start number and the data block number information into a GRUB boot program and an embedded operating system in the Flash memory. The actual storage address in the zone is:
SCSI-Flash界面转换模块按照 1个数据块是 512个字节的单位,并根据 数据块起始编号和数据块数量信息,计算出需要从 Flash存储区中读取的数 据的起始地址偏移值, 再利用预先存储的 GRUB引导程序和嵌入式操作系 统的 Flash存储区的首地址,计算出 PC的 BIOS需要读取的数据的首地址。 The SCSI-Flash interface conversion module is 512-byte units according to 1 data block, and according to Data block start number and data block number information, calculate the starting address offset value of the data to be read from the flash memory area, and then use the pre-stored GRUB boot program and the first flash memory area of the embedded operating system. Address, which calculates the first address of the data that the PC's BIOS needs to read.
4、 根据权利要其 1所述的无线通讯终端, 其特征在于, 所述 GRUB引 导程序模块引导嵌入式操作系统模块开始运行为: 4. The wireless communication terminal according to claim 1, wherein the GRUB boot program module guides the embedded operating system module to start running as:
GRUB 引导程序模块开始工作后, GRUB 引导程序模块引导嵌入式操 作系统模块开始运行; 当嵌入式操作系统模块在 GRUB引导程序模块的引 导下开始运行后, 在内存中建立虚拟 ramdisk, 对自身进行复制后保存到该 虚拟 ramdisk„ After the GRUB boot program module starts working, the GRUB boot program module boots the embedded operating system module to start running; when the embedded operating system module starts running under the boot of the GRUB boot program module, a virtual ramdisk is created in the memory to copy itself. Save to the virtual ramdisk
5、 根据权利要求 1所述的无线通讯终端, 其特征在于, 所述嵌入式操 作系统模块运行切换程序将无线通讯终端切换到正常工作模式, 并运行预 装的数据卡驱动程序和 /或 UI软件为: 5. The wireless communication terminal according to claim 1, wherein the embedded operating system module runs a switching program to switch the wireless communication terminal to a normal working mode, and runs the pre-installed data card driver and/or UI. The software is:
嵌入式操作系统模块以虚拟 ramdisk为基础开始运行后,运行内存的切 换程序 ,将枚举为 USB设备的无线通讯终端切换到多端口的正常工作模式, 并运行预先安装的数据卡驱动程序和 /或 UI软件。 After the embedded operating system module starts running on the basis of the virtual ramdisk, the memory switching program runs, switches the wireless communication terminal enumerated as the USB device to the normal working mode of the multi-port, and runs the pre-installed data card driver and/or Or UI software.
6、 一种无线通讯终端自启动的方法, 其特征在于, 该方法包括: 6. A method for self-starting a wireless communication terminal, the method comprising:
PC的 BIOS运行搜索到的 USB设备中的 GRUB引导程序; The BIOS of the PC runs the GRUB bootloader in the searched USB device;
GRUB引导程序引导已插入 PC的无线通讯终端中的嵌入式操作系统开 始运行, 嵌入式操作系统运行切换程序将无线通讯终端切换到正常工作模 式, 并运行预装的数据卡驱动程序和 /或 UI软件。 The GRUB boot program boots the embedded operating system in the wireless communication terminal that has been inserted into the PC, and the embedded operating system runs the switching program to switch the wireless communication terminal to the normal working mode and runs the pre-installed data card driver and/or UI. software.
7、 根据权利要求 6所述的方法, 其特征在于, 所述 PC的 BIOS运行 搜索到的 USB设备中的 GRUB引导程序之前, 该方法还包括: The method according to claim 6, wherein before the BIOS of the PC runs the GRUB boot program in the searched USB device, the method further includes:
当 PC的 BIOS进行自检时,已插入 PC的无线通讯终端枚举 USB设备, PC的 BIOS搜索所述 USB设备中的 GRUB引导程序。 When the BIOS of the PC performs a self-test, the wireless communication terminal inserted into the PC enumerates the USB device, and the BIOS of the PC searches for the GRUB boot program in the USB device.
8、 根据权利要求 7所述的方法, 其特征在于, 所述当 PC的 BIOS进 行自检时 , 已插入 PC的无线通讯终端枚举 USB设备为: 8. The method according to claim 7, wherein the BIOS of the PC is At the time of self-test, the USB device that has been plugged into the PC's wireless communication terminal enumerates:
在 PC开机之前插入无线通讯终端 , 或在将无线通讯终端插入 PC之后 重新启动 PC , 当 PC的 BIOS进行自检时, 无线通讯终端的 USB接口模块 枚举出 USB设备。 Insert the wireless communication terminal before the PC is turned on, or restart the PC after inserting the wireless communication terminal into the PC. When the BIOS of the PC performs a self-test, the USB interface module of the wireless communication terminal enumerates the USB device.
9、 根据权利要求 7所述的方法, 其特征在于, 所述 PC的 BIOS搜索 所述 USB设备中的 GRUB引导程序为: 9. The method according to claim 7, wherein the BIOS search of the PC is performed by the GRUB boot program in the USB device:
PC的 BIOS下发 SCSI指令给 USB设备,枚举为 USB设备的无线通讯 终端的 USB接口模块接收该 SCSI指令,并将收到的 SCSI指令转发给无线 通讯终端的 SCSI指令处理模块; The BIOS of the PC sends a SCSI command to the USB device, and the USB interface module enumerated as the USB device receives the SCSI command, and forwards the received SCSI command to the SCSI command processing module of the wireless communication terminal;
SCSI指令处理模块接收所述 SCSI指令, 并将 SCSI指令中的数据块起 始编号和数据块数量信息发送给无线通讯终端的 SCSI-Flash界面转换模块; The SCSI command processing module receives the SCSI command, and sends the data block start number and the data block number information in the SCSI command to the SCSI-Flash interface conversion module of the wireless communication terminal;
SCSI-Flash界面转换模块将数据块起始编号和数据块数量信息转换成 GRUB引导程序和嵌入式操作系统的在 Flash存储区中的实际存储地址,并 The SCSI-Flash interface conversion module converts the data block start number and the data block number information into the actual storage address of the GRUB boot program and the embedded operating system in the Flash memory area, and
Flash读写模块从所述实际存储地址中读取出 GRUB引导程序与嵌入式 操作系统, 并上才艮给 PC的 BIOS。 The Flash read/write module reads the GRUB boot program and the embedded operating system from the actual storage address, and then sends the BIOS to the PC.
10、 根据权利要求 9所述的方法, 其特征在于, 所述 SCSI-Flash界面 转换模块将数据块起始编号和数据块数量信息转换成 GRUB引导程序和嵌 入式操作系统的在 Flash存储区中的实际存储地址为: 10. The method according to claim 9, wherein the SCSI-Flash interface conversion module converts the data block start number and the data block number information into a GRUB boot program and an embedded operating system in the Flash memory area. The actual storage address is:
SCSI-Flash界面转换模块按照 1个数据块是 512个字节的单位,并根据 数据块起始编号和数据块数量信息,计算出需要从 Flash存储区中读取的数 据的起始地址偏移值, 再利用预先存储的 GRUB引导程序和嵌入式操作系 统的 Flash存储区的首地址,计算出 PC的 BIOS需要读取的数据的首地址。 The SCSI-Flash interface conversion module calculates the starting address offset of the data to be read from the flash memory area according to the data block start number and the data block number information according to a data block of 512 bytes. Value, and then use the pre-stored GRUB boot program and the first address of the Flash memory area of the embedded operating system to calculate the first address of the data that the PC's BIOS needs to read.
11、 根据权利要求 6所述的方法, 其特征在于, 所述 PC的 BIOS运行 搜索到的 USB设备中的 GRUB引导程序为: 当 PC的 BIOS根据无线通讯终端的 Flash读写模块上报的 GRUB引导 程序与嵌入式操作系统后, PC 的 BIOS 确定自身搜索到 USB设备中的 GRUB引导程序, 并运行所述 GRUB引导程序, GRUB引导程序开始引导 工作。 The method according to claim 6, wherein the BIOS of the PC runs the GRUB boot program in the searched USB device: After the BIOS of the PC is based on the GRUB boot program and the embedded operating system reported by the Flash read/write module of the wireless communication terminal, the BIOS of the PC determines that it searches for the GRUB boot program in the USB device, and runs the GRUB boot program, and the GRUB boots. The program starts to guide the work.
12、 根据权利要求 6所述的方法, 其特征在于, 所述 GRUB引导程序 引导已插入 PC的无线通讯终端中的嵌入式操作系统开始运行为: 12. The method according to claim 6, wherein the GRUB boot program boots the embedded operating system in the wireless communication terminal inserted into the PC to start running as:
GRUB 引导程序开始工作后, GRUB 引导程序引导无线通讯终端的嵌 入式操作系统开始运行; 当嵌入式操作系统在 GRUB引导程序的引导下开 始运行后, 在无线通讯终端的内存中建立虚拟 ramdisk, 对自身进行复制后 保存到该虚拟 ramdisk„ After the GRUB boot program starts working, the GRUB boot program boots the embedded operating system of the wireless communication terminal to start running; when the embedded operating system starts running under the guidance of the GRUB boot program, a virtual ramdisk is created in the memory of the wireless communication terminal, Save it to the virtual ramdisk after copying itself
13、 根据权利要求 6所述的方法, 其特征在于, 所述嵌入式操作系统 运行切换程序将无线通讯终端切换到正常工作模式, 并运行预装的数据卡 驱动程序和 /或 UI软件为: 13. The method according to claim 6, wherein the embedded operating system running switching program switches the wireless communication terminal to a normal working mode, and runs the pre-installed data card driver and/or UI software as:
嵌入式操作系统以虚拟 ramdisk为基础开始运行后,运行无线通讯终端 的内存的切换程序, 将枚举为 USB设备的无线通讯终端切换到多端口的正 常工作模式; 运行预先安装的数据卡驱动程序和 /或 UI软件,无线通讯终端 进入正常工作状态, 开始配合 UI软件进行工作。 After the embedded operating system starts running on the virtual ramdisk, the memory switching program of the wireless communication terminal is operated, and the wireless communication terminal enumerated as the USB device is switched to the normal working mode of the multi-port; the pre-installed data card driver is run. And / or UI software, the wireless communication terminal enters the normal working state, and starts working with the UI software.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110021985.2 | 2011-01-19 | ||
CN201110021985.2A CN102073524B (en) | 2011-01-19 | 2011-01-19 | A kind of method of wireless communication terminal and self-starting thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012097574A1 true WO2012097574A1 (en) | 2012-07-26 |
Family
ID=44032070
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/076887 WO2012097574A1 (en) | 2011-01-19 | 2011-07-06 | Wireless communication terminal and self-starting method thereof |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102073524B (en) |
WO (1) | WO2012097574A1 (en) |
Families Citing this family (7)
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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075178A (en) * | 2007-06-25 | 2007-11-21 | 中兴通讯股份有限公司 | Method for automatically starting TD-SCDMA wireless data card |
CN102073524A (en) * | 2011-01-19 | 2011-05-25 | 中兴通讯股份有限公司 | Wireless communication terminal and self-starting method thereof |
Family Cites Families (3)
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 |
SG138439A1 (en) * | 2003-04-02 | 2008-01-28 | Trek 2000 Int Ltd | Portable operating system and method to load the same |
CN101916197A (en) * | 2010-07-22 | 2010-12-15 | 北京东土科技股份有限公司 | Method for controlling self-starting program of system |
-
2011
- 2011-01-19 CN CN201110021985.2A patent/CN102073524B/en active Active
- 2011-07-06 WO PCT/CN2011/076887 patent/WO2012097574A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075178A (en) * | 2007-06-25 | 2007-11-21 | 中兴通讯股份有限公司 | Method for automatically starting TD-SCDMA wireless data card |
CN102073524A (en) * | 2011-01-19 | 2011-05-25 | 中兴通讯股份有限公司 | Wireless communication terminal and self-starting method thereof |
Non-Patent Citations (1)
Title |
---|
XU, DEXIN ET AL.: "Construction and Realization of Embedded Linux on PC 104 Platform.", APPLIED SCIENCE AND TECHNOLOGY., vol. 33, no. 10, 31 October 2006 (2006-10-31), pages 35 - 37 * |
Also Published As
Publication number | Publication date |
---|---|
CN102073524A (en) | 2011-05-25 |
CN102073524B (en) | 2016-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10445258B1 (en) | Method for creation of device drivers and device objects for peripheral devices | |
WO2012097574A1 (en) | Wireless communication terminal and self-starting method thereof | |
US8185759B1 (en) | Methods and systems for interfacing bus powered devices with host devices providing limited power levels | |
WO2011003257A1 (en) | Auto start method and system of universal serial bus data card | |
US8296521B2 (en) | Method of configuring non-volatile memory for a hybrid disk drive | |
JP6293657B2 (en) | Dynamic redirection of boot behavior to other operating systems | |
JP2004310775A (en) | Portable operating system and method for loading the same | |
WO2004061573A2 (en) | Method of booting a computer operating system to run from a normally unsupported system device | |
CN109002346B (en) | Conversion method of Windows virtual machine bootstrap program | |
US20090193152A1 (en) | External device with a driver auto-run installation and method thereof | |
US8677084B2 (en) | Method of configuring non-volatile memory for a hybrid disk drive | |
WO2012100504A1 (en) | Wireless communication method, wireless communication system and wireless communication terminal | |
CN103514015A (en) | Method and device for booting operation system from storage medium | |
WO2012100498A1 (en) | Method and system for switching port of usb device | |
US10491736B2 (en) | Computer system and method thereof for bluetooth data sharing between UEFI firmware and OS | |
US7849300B2 (en) | Method for changing booting sources of a computer system and a related backup/restore method thereof | |
US20160124886A1 (en) | USB device and method thereof for automatically recognizing Microsoft windowing operating system version | |
WO2011153770A1 (en) | Method and system for terminal device installation | |
CN110688235A (en) | System and method for sharing wireless connection information between UEFI firmware and OS | |
WO2013189388A2 (en) | Usb network card access method, usb network card and pc | |
GB2504696A (en) | Detecting whether to install modem software or to use intrinsic software of a host | |
JP2012150797A (en) | Data card, method for data card to report port, and method for booting data card | |
WO2013182123A1 (en) | Data terminal running mode switching method, device, and data terminal | |
CN115756620A (en) | Method and system for starting NVME (network video management entity) hard disk of server and related equipment | |
JP4141409B2 (en) | External peripherals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11856112 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11856112 Country of ref document: EP Kind code of ref document: A1 |