WO2014201967A1 - 数据卡、数据卡切换方法及装置 - Google Patents

数据卡、数据卡切换方法及装置 Download PDF

Info

Publication number
WO2014201967A1
WO2014201967A1 PCT/CN2014/079696 CN2014079696W WO2014201967A1 WO 2014201967 A1 WO2014201967 A1 WO 2014201967A1 CN 2014079696 W CN2014079696 W CN 2014079696W WO 2014201967 A1 WO2014201967 A1 WO 2014201967A1
Authority
WO
WIPO (PCT)
Prior art keywords
data card
port
port form
switching device
flag
Prior art date
Application number
PCT/CN2014/079696
Other languages
English (en)
French (fr)
Inventor
曹智强
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Priority to JP2016513222A priority Critical patent/JP6140367B2/ja
Priority to EP14812949.7A priority patent/EP2977908A4/en
Publication of WO2014201967A1 publication Critical patent/WO2014201967A1/zh
Priority to US14/959,321 priority patent/US10049070B2/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/124Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
    • G06F13/128Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine for dedicated transfers to a network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4286Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/38Universal adapter
    • G06F2213/3804Memory card connected to a computer port directly or by means of a reader/writer

Definitions

  • the present invention relates to the field of computer and communication technologies, and in particular, to a data card, data card switching method and apparatus.
  • the data card port form is generally fixed, and the same data card may only be in the form of rndis or modem port. If you need to switch between different port configurations, you need to re-upgrade the data card software to meet your needs. For example, if the data card is switched from the modem mode to the hilink mode, the hilink data card software needs to be upgraded. If the hilink mode is switched to the modem mode, the modem data card software needs to be upgraded. Figure 1 and Figure 2 show how these two modes are switched. First, insert the data card into the data card switching device (usually computer and embedded device), and complete the data card switching by upgrading the data card software in the data card switching device. . Upgrading the modem data card software switches the data card to the modem state, and upgrading the hilink data card software switches the data card software to the hilink form. And each switch needs to be upgraded to the corresponding form of data card software.
  • the data card switching device usually computer and embedded device
  • the mode switching of the data card can only be performed by upgrading the data card software.
  • the user mode switching requirements are met by upgrading the data card software, which results in very high maintenance costs.
  • the embodiment of the invention provides a data card and a data card switching method to solve the data card cutting in the prior art.
  • the maintenance cost of the data card software is high.
  • a data card switching method including the steps of:
  • the data card switching device acquires a port form flag of the data card
  • the data card switching device transmits the port form flag to the data card to switch the data card to the corresponding port mode mode.
  • the step of the data card switching device acquiring the port form flag of the data card specifically includes:
  • the data card switching device runs the driver of the corresponding port form to obtain the port form flag.
  • the step of the data card switching device sending the port modality flag to the data card comprises: after the data card is inserted into the data card switching device or the data card is restarted The data card switching device transmits the port form flag to the data card.
  • the step of the data card switching device acquiring the port modality flag of the data card comprises: the data card switching device receiving the port modality flag set by the user.
  • the step that the data card switching device sends the port modality flag to the data card comprises: opening an AT command port, and sending the port modality flag by using an AT command
  • the data card is stored to enable the data card to read the port form flag to complete the switch.
  • the step of the data card switching device acquiring the port form flag of the data card comprises: the data card switching device acquiring the according to a pre-integrated configuration related to the port form flag Port form flag.
  • the step of the data card switching device sending the port form flag to the data card specifically includes: when the data card is inserted into the data card switching device, The data card switching device will pass the disc driver according to the disc device mode reported by the data card The port modality flag is sent to the data card.
  • the port form flag includes at least: a modem port form flag and a hilink port form flag
  • the data card includes at least: a modem port form mode and a hilink port form mode.
  • Another data card switching method including the steps of:
  • the data card acquires a port form flag from the data card switching device
  • the data card is switched to the corresponding port form.
  • the step of the data card obtaining the port modality flag from the data card switching device includes:
  • the step of the data card obtaining the port modality flag from the data card switching device includes:
  • the port form flag stored by itself is read, and the port form flag stored by the data card is passed by the data card switching device when the data card is inserted into the data card switching device.
  • the AT command port sends an AT command to the memory of the data card.
  • the step of the data card obtaining the port modality flag from the data card switching device includes:
  • the data card After the data card is inserted into the data card switching device, the data card reports to the optical disk device and keeps the optical disk mode unchanged, and receives the optical disk command including the port form flag transmitted by the data card switching device through the optical disk mode.
  • the port form flag includes at least: a modem port form flag and a hilink port form flag, where the data card includes at least: a modem form. Port and hilink port.
  • a data card switching apparatus including:
  • a port form obtaining unit configured to acquire a port shape flag of the data card
  • the port form sending unit is configured to send the port form flag to the data card, so that the data card is switched to the corresponding port form mode.
  • the port form obtaining unit is specifically configured to obtain a port form flag by a driver that runs a corresponding port form.
  • the port configuration sending unit is specifically configured to send the port modality flag to the data card after the data card is inserted into the data card switching device or the data card is restarted.
  • the port form obtaining unit is specifically configured to receive the port form flag set by a user.
  • the port configuration sending unit is specifically configured to: open an AT command port, and send the port modality flag to the data card storage by using an AT command, so that the data card is read by the data card.
  • the port form flag completes the switch.
  • the port form obtaining unit is specifically configured to obtain the port form flag according to a pre-integrated configuration related to a port form flag.
  • the port configuration sending unit is specifically configured to: when the data card is inserted into the data card switching device, use the optical disc device to report the port according to the disc device mode reported by the data card A morphological flag is sent to the data card.
  • the port form flag includes at least: a modem port form flag and a hilink port form flag
  • the data card includes at least: a modem port form mode and a hilink port form mode.
  • a data card including:
  • a port form obtaining unit configured to acquire a port shape flag from the data card switching device;
  • the switching unit is configured to switch the data card to a corresponding port form according to the port shape flag.
  • the port configuration acquiring unit is configured to: after the data card is inserted into the data card switching device or the data card is restarted, receive the port sent by the data card switching device The morphological flag is obtained by driving the corresponding port form driving on the data card switching device by using the port form flag sent by the data card switching device.
  • the port form obtaining unit is configured to: after the data card is inserted into the data card switching device or the data card is restarted, read a port form identifier stored in the data card, where The port form flag stored in the data card is written into the memory of the data card by the data card switching device by transmitting an AT command through the AT command port when the data card is inserted into the data card switching device.
  • the port form obtaining unit is specifically configured to: after the data card is inserted into the data card switching device, report the optical disk device, and keep the optical disk mode unchanged, by using the optical disk The mode receives a disc command transmitted by the data card switching device including the port form flag.
  • the port form flag includes at least: a modem port form flag and a hilink port form flag
  • the data card includes at least: a modem port and a hilink port.
  • the data card is switched to the corresponding port form mode according to the corresponding port form flag obtained from the data card switching device, and the data card mode switching can be performed without upgrading the data card software. , which reduces the maintenance cost of the data card.
  • FIG. 2 is a schematic diagram of a data card switching from a modem port form to a hilink port form in the prior art
  • FIG. 3 is a flowchart of a data card switching method according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a data card switching apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a data card according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of running a data card driver to implement handover in a data card switching method according to an embodiment of the present invention, where an initial default data card is a hilink port mode mode;
  • FIG. 8 is a flowchart of switching from a hilink port mode mode to a modem port mode mode in a process of implementing a handover by running a data card driver according to an embodiment of the present invention
  • FIG. 9 is a flowchart of switching from the modem port mode mode to the hilink port mode mode in the process of implementing the switching by running the data card driver according to the embodiment of the present invention.
  • FIG. 10 is a flowchart of switching from a hilink port mode mode to a modem port mode mode in a process of implementing a handover by a mode switching tool according to an embodiment of the present invention
  • FIG. 11 is a flowchart of switching from a modem port mode mode to a hilink port mode mode in a process of implementing a handover by a mode switching tool according to an embodiment of the present invention
  • FIG. 12 is a flowchart of switching from a hilink port mode mode to a modem port mode mode in a process of implementing handover on an embedded device according to an embodiment of the present invention
  • Figure 13 is a block diagram showing the hardware structure of the data card switching device of the present invention.
  • a first embodiment of the present invention provides a data card switching method. As shown in FIG. 3, the method includes the following steps: Step S310: A data card switching device acquires a port form identifier of a data card.
  • Step S320 The data card switching device sends the port form flag to the data card to switch the data card to the corresponding port form mode. After the switching device sends the port form flag to the data card, the data card first pulls down D+ (a data line of the USB interface), and notifies the data card switching device to reacquire the port form descriptor to complete the data card switching.
  • D+ a data line of the USB interface
  • the step S310 of the data card switching device acquiring the port form flag of the data card includes the following three methods:
  • the data card switching device runs the driver of the corresponding port form to obtain the port form flag.
  • the data card switching device is a computer
  • the data card when the data card is inserted into the computer, the drive letter will appear.
  • the user can install the driver and application program that comes with the data card through this CD.
  • the computer's automatic running function is turned on, the computer will automatically The default port shape driver for the installation CD. If the autorun feature is not turned on, it is manually installed by the user.
  • the default port shape driver installation will modify the MSOS descriptor of the operating system to the corresponding port shape flag. If other port mode drivers are installed in the computer, the port mode driver is installed to modify the MSOS descriptor of the operating system to the corresponding port shape flag.
  • step S320 after the data card is inserted into the data card switching device or the data card is restarted, the data card switching device sends the port form flag to the data card, that is, the computer describes the MSOS of the operating system. The symbol is sent to the data card.
  • Step S320 is specifically to open an AT command port for the data card switching device, and send the port form flag to the data card storage by using an AT command, so that the data card reads the port form flag to complete the switching.
  • the data card switching device obtains according to the pre-integrated configuration related to the port form flag.
  • the port form flag For example:
  • the data card switching device is an embedded device (embedded devices, such as gateways, often cannot install the drivers or applications that come with the data card, so it is impossible to switch the state of the data card by its own driver and program). Therefore, the inserted data card is switched by the port form flag previously configured in the embedded device.
  • the data card switching device sends the port form flag to the data card through the optical disk driver according to the optical disk device mode reported by the data card.
  • the port form flag includes at least: a modem port form flag and a Mink port form flag
  • the data card includes at least: a modem port form mode and a Mink port form mode.
  • the second embodiment of the present invention provides another data card switching method. As shown in FIG. 4, the method includes the following steps: Step S410: The data card acquires a port shape flag from the data card switching device.
  • Step S420 according to the port form flag, the data card is switched to a corresponding port form.
  • the step S310 of the data card acquiring the port form flag from the data card switching device includes the following three methods:
  • the port mode driver is installed to modify the MSOS descriptor of the operating system to the corresponding port shape flag.
  • the data card switching device transmits the port form flag to the data card, that is, the computer transmits the MSOS descriptor of the operating system to the data card.
  • Manner 2 after the data card is inserted into the data card switching device or the data card is restarted, the port form flag stored by itself is read, and the port form flag stored by the data card is inserted by the data card when the data card is inserted into the data card switching device.
  • the switching device writes an AT command through the AT command port to write to the memory of the data card.
  • the port form flag includes at least: a modem port form flag and a Mink port form flag
  • the data card includes at least: a modem port and a hilink port.
  • a third embodiment of the present invention provides a data card switching apparatus 500, as shown in FIG. 5, including: a port form obtaining unit 510, configured to acquire a port form flag of a data card;
  • the port form sending unit 520 is configured to send the port form flag to the data card to switch the data card to the corresponding port form mode.
  • the port form obtaining unit 510 obtains the port form flag of the data card, and includes the following three methods:
  • the port configuration obtaining unit 510 is specifically configured to run the driver in the corresponding port form to obtain the port shape flag.
  • the port configuration sending unit 520 is specifically configured to send the port modality flag to the data card after the data card is inserted into the data card switching device or the data card is restarted.
  • the port modality obtaining unit 510 is specifically configured to receive the port modality flag set by a user.
  • the port configuration sending unit 520 is specifically configured to open an AT command port, and send the port modality flag to the data card storage by using an AT command, so that the data card reads the port modality flag to complete the switching.
  • the port form obtaining unit 510 is specifically configured to obtain the port form flag according to a pre-integrated configuration related to the port form flag.
  • the port configuration sending unit 520 is specifically configured to pass the optical disc device mode reported by the data card when the data card is inserted into the data card switching device. The optical disc drive sends the port modality flag to the data card.
  • the port form flag includes at least: a modem port form flag and a Mink port form flag
  • the data card includes at least: a modem port form mode and a Mink port form mode.
  • a fourth embodiment of the present invention provides a data card 600, as shown in FIG. 6, including:
  • the port form obtaining unit 610 is configured to acquire a port form flag from the data card switching device.
  • the switching unit 620 is configured to switch the data card to a corresponding port state according to the port shape flag.
  • the port form obtaining unit 610 of the data card obtains the port form flag and includes the following three modes:
  • the port form obtaining unit 610 is specifically configured to: after the data card is inserted into the data card switching device or the data card is restarted, receive a port form flag sent by the data card switching device, and the port sent by the data card switching device The morphological flag is obtained by running the corresponding port form drive on the data card switching device.
  • the port form obtaining unit 610 is specifically configured to: after the data card is inserted into the data card switching device or the data card is restarted, read a port form identifier stored in the data card, where the port form identifier stored in the data card is
  • the data card switching device transmits an AT command to the memory of the data card through the AT command port.
  • the port form obtaining unit 620 is specifically configured to: after the data card is inserted into the data card switching device, report the optical disk device, and keep the optical disk mode unchanged, and receive, by the optical disk mode, the data card switching device that is sent by the data card switching device.
  • the disc form flag for the disc command is specifically configured to: after the data card is inserted into the data card switching device, report the optical disk device, and keep the optical disk mode unchanged, and receive, by the optical disk mode, the data card switching device that is sent by the data card switching device.
  • the disc form flag for the disc command is specifically configured to: after the data card is inserted into the data card switching device, report the optical disk device, and keep the optical disk mode unchanged, and receive, by the optical disk mode, the data card switching device that is sent by the data card switching device.
  • the disc form flag for the disc command is specifically configured to: after the data card is inserted into the data card switching device, report the optical disk device, and keep the optical disk mode unchanged, and receive, by the optical disk mode, the data card
  • the port form flag includes at least: a modem port form flag and a Mink port form flag
  • the data card includes at least: a modem port and a hilink port.
  • the user uses the data card for the first time.
  • the default is the hilink mode.
  • the data is A specific flow chart for switching the port port mode mode.
  • the data card is first inserted into the user's computer, the CD drive letter will appear on the computer.
  • the computer's automatic running function is turned on, the computer will automatically install the Mink service on the CD. If the autorun function is not turned on, the Mink service is manually installed by the user. After the hilink service is installed, the MSOS descriptor of the operating system is modified to the hilink flag.
  • the data card After inserting or restarting the data card again, the data card will receive the MSOS descriptor marked as hilink, and the data card will be switched to the hilink form.
  • the user installs the modem driver on the computer. After the installation is complete, the modem driver will set the MSOS descriptor to the modem flag.
  • the data card After inserting or restarting the data card again, the data card will receive the MSOS descriptor marked as the modem, and the data card will be switched to the modem form.
  • the user uninstalls the modem driver.
  • the uninstaller first modifies the MSOS descriptor to the hilink flag and then removes the modem driver from the PC.
  • the data card After inserting or restarting the data card again, the data card will receive the MSOS descriptor marked as hilink, and the data card will be switched to the hilink form.
  • the solution uses the mode switching tool (the application provided by the data card can provide a user interface to obtain the port shape flag set by the user), and the port form flag of the data card is sent to the data card for permanent storage.
  • the data card reads this flag after power-on and automatically switches to the corresponding mode. For example, if the modem mode is read, the data card is switched to the modem mode; when the hilink mode is read, the mode is switched to the hilink mode, and the switching process is as shown in FIGS. 10 and 11, and FIG. 10 is a flow chart of the modem switching hilink, and FIG. 11 is Hilink switches the process of the modem. Since the data card is in the hilink mode and works under the network card, you need to switch from the network port to the AT command port before sending the AT command.
  • the data card switching device is an embedded device, it can be switched as follows:
  • the scheme directly transfers a special optical disk SCSI command to the data card, so that the hilink data card inserted into the embedded device is directly switched to the modem mode.
  • Embedded device such as a network It is often impossible to install the driver or application that comes with the data card, so it is impossible to switch between the built-in driver and the program and the status of the data card.
  • the hilink data card is inserted into the gateway device, the data card will report to the optical disc device and keep the disc mode unchanged.
  • the optical disc drive integrated in the gateway can issue a special disc command at this time, so that the data card automatically switches to the modem form.
  • the dialer in the gateway uses the modem or Ndis port to dial.
  • the data card switching device 1000 of the present invention is similar to the existing computer, and performs information interaction with an external device (data card) through the input interface 1010 and the output interface 1020, for example, when the data card is inserted into the data card switching device 1000,
  • the input interface 1010 obtains a data card default driver or application to obtain a port form flag of the data card.
  • the output interface 1020 sends the acquired port pattern flag to the data card. It controls the entire flow of interaction with the data card through the processor 1030.
  • aspects of the invention, or possible implementations of various aspects can be embodied as a system, method, or computer program product.
  • aspects of the invention, or possible implementations of various aspects may be in the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, etc.), or a combination of software and hardware aspects, They are collectively referred to herein as "circuits," “modules,” or “systems.”
  • aspects of the invention, or various possible implementations of the invention may take the form of a computer program product, which is a computer readable program code stored on a computer readable medium.
  • the computer readable medium can be a computer readable signal medium or a computer readable storage medium.
  • the computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing, such as random access memory (RAM), read only memory (ROM), Erase programmable read-only memory (EPROM or flash memory), optical fiber, portable read-only memory (CD-ROM).
  • a processor in the computer reads computer readable program code stored on a computer readable medium, The processor is enabled to perform the functional actions specified in each step or combination of steps in the flowchart; the means for implementing the functional actions specified in each block of the block diagram or in the combination of the blocks.
  • the computer readable program code can execute entirely on the user's computer, partly on the user's computer, as a separate software package, partly on the user's computer and partly on the remote computer, or entirely on the remote computer or server.
  • the functions noted in the various steps of the flowchart, or in the blocks in the block diagrams may not occur in the order noted in the drawings.
  • two steps, or two blocks shown in succession may be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • the spirit and scope of the Ming Thus, it is intended that the present invention cover the modifications and variations of the inventions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Systems (AREA)

Abstract

公开了一种数据卡切换方法,包括步骤:数据卡切换装置获取数据卡的端口形态标志;数据卡切换装置将所述端口形态标志发送至数据卡,以使数据卡切换为相应的端口形态模式。还公开了数据卡及数据卡切换装置。数据卡通过从数据卡切换装置中获取的相应的端口形态标志,并根据端口形态标志切换到相应的端口形态模式,不需通过升级数据卡软件才能进行数据卡的模式切换,从而降低了数据卡维护成本。

Description

数据卡、 数据卡切换方法及装置
本申请要求于 2013 年 6 月 20 日提交中国专利局、 申请号为 201310247219.7、 发明名称为 "数据卡、 数据卡切换方法及装置,,的中国专利 申请的优先权, 其全部内容通过引用包含于本申请中。
技术领域
本发明涉及计算机及通信技术领域, 尤其涉及一种数据卡、数据卡切换方 法及装置。
背景技术
目前数据卡端口形态一般是固定的, 同一个数据卡只可能是 rndis 或者 modem端口形态。 如果需要切换不同的端口形态, 则需要重新升级数据卡软 件才能满足需求。例如数据卡从 modem形态切换到 hilink形态,需要升级 hilink 数据卡软件; 而从 hilink形态切换到 modem形态, 则需要升级 modem数据卡 软件。 图 1和图 2中说明这两种形态是如何切换的, 首先将数据卡插入数据卡 切换装置 (通常是计算机和嵌入式设备), 通过升级数据卡切换装置中数据卡 软件来完成数据卡切换。升级 modem数据卡软件则将数据卡切换到 modem形 态, 而升级 hilink数据卡软件将数据卡软件切换到 hilink形态。 而且每一次切 换都需要升级到相应形态的数据卡软件。
现有技术中, 因为只能通过升级数据卡软件才能进行数据卡的模式切换。 对于已经销售的数据卡, 通过升级数据卡软件的方式满足用户模式切换需求 , 会造成维护成本非常大。
发明内容
本发明实施例提供数据卡及数据卡切换方法,以解决现有技术中数据卡切 换时需要升级数据卡软件导致的维护成本高的问题。 为了解决上述技术问题, 本发明实施例公开了如下技术方案:
第一方面, 提供了一种数据卡切换方法, 包括步骤:
数据卡切换装置获取数据卡的端口形态标志;
数据卡切换装置将所述端口形态标志发送至数据卡,以使数据卡切换为相 应的端口形态模式。
在第一方面的第一种可能的实现方式中 ,所述数据卡切换装置获取数据卡 的端口形态标志的步骤具体包括:
数据卡切换装置运行相应端口形态的驱动程序获得所述端口形态标志。 在第一方面的第二种可能的实现方式中,所述数据卡切换装置将所述端口 形态标志发送至数据卡的步骤具体包括:在数据卡插入所述数据卡切换装置或 数据卡重启后, 所述数据卡切换装置将所述端口形态标志发送至所述数据卡。
在第一方面的第三种可能的实现方式中 ,所述数据卡切换装置获取数据卡 的端口形态标志的步骤具体包括:数据卡切换装置接收用户设置的所述端口形 态标志。
在第一方面的第四种可能的实现方式中,所述数据卡切换装置将所述端口 形态标志发送至数据卡的步骤具体包括: 打开 AT命令端口, 通过 AT命令将 所述端口形态标志发送至所述数据卡存储,以使数据卡读取所述端口形态标志 完成切换。
在第一方面的第五种可能的实现方式中 ,所述数据卡切换装置获取数据卡 的端口形态标志的步骤具体包括:数据卡切换装置根据预先集成的与端口形态 标志相关的配置获取所述端口形态标志。
在第一方面的第六种可能的实现方式中,所述数据卡切换装置将所述端口 形态标志发送至数据卡的步骤具体包括:当数据卡插入到所述数据卡切换装置 时,所述数据卡切换装置根据数据卡上报的光盘设备模式通过光盘驱动程序将 所述端口形态标志发送至所述数据卡。
在第一方面的第七种可能的实现方式中, 所述端口形态标志至少包括: modem端口形态标志及 hilink端口形态标志, 数据卡至少包括: modem端口 形态模式及 hilink端口形态模式。
第二方面, 提供了另一种数据卡切换方法, 包括步骤:
数据卡从数据卡切换装置获取端口形态标志;
根据所述端口形态标志, 数据卡切换为相应的端口形态。
在第二方面的第一种可能的实现方式中 ,所述数据卡从数据卡切换装置获 取端口形态标志的步骤具体包括:
所述数据卡插入所述数据卡切换装置或数据卡重启后,接收所述数据卡切 换装置发送的端口形态标志 ,所述数据卡切换装置发送的端口形态标志是通过 在数据卡切换装置上运行相应的端口形态驱动获得。
在第二方面的第二种可能的实现方式中 ,所述数据卡从数据卡切换装置获 取端口形态标志的步骤具体包括:
所述数据卡插入数据卡切换装置或数据卡重启后,读取自身存储的端口形 态标志, 所述自身存储的端口形态标志在所述数据卡插入数据卡切换装置时 , 由数据卡切换装置通过 AT命令端口发送 AT命令写入到所述数据卡的存储器 中。
在第二方面的第三种可能的实现方式中,所述数据卡从数据卡切换装置获 取端口形态标志的步骤具体包括:
所述数据卡插入数据卡切换装置后,数据卡上报光盘设备, 并且一直保持 光盘模式不变,通过所述光盘模式接收由数据卡切换装置发送的包含所述端口 形态标志的光盘命令。
在第二方面的第四种可能的实现方式中, 所述端口形态标志至少包括: modem端口形态标志及 hilink端口形态标志, 数据卡至少包括: modem形态 端口及 hilink形态端口。
第三方面, 提供了一种数据卡切换装置, 包括:
端口形态获取单元, 用于获取数据卡的端口形态标志;
端口形态发送单元, 用于将所述端口形态标志发送至数据卡, 以使数据卡 切换为相应的端口形态模式。
在第三方面的第一种可能的实现方式中,所述端口形态获取单元具体用于 运行相应端口形态的驱动程序获得所述端口形态标志。
在第三方面的第二种可能的实现方式中,端口形态发送单元具体用于在数 据卡插入所述数据卡切换装置或数据卡重启后 ,将所述端口形态标志发送至所 述数据卡。
在第三方面的第三种可能的实现方式中,所述端口形态获取单元具体用于 接收用户设置的所述端口形态标志。
在第三方面的第四种可能的实现方式中,端口形态发送单元具体用于打开 AT命令端口, 通过 AT命令将所述端口形态标志发送至所述数据卡存储, 以 使数据卡读取所述端口形态标志完成切换。
在第三方面的第五种可能的实现方式中,所述端口形态获取单元具体用于 才艮据预先集成的与端口形态标志相关的配置获取所述端口形态标志。
在第三方面的第六种可能的实现方式中,端口形态发送单元具体用于当数 据卡插入到所述数据卡切换装置时 ,根据数据卡上报的光盘设备模式通过光盘 驱动程序将所述端口形态标志发送至所述数据卡。
在第三方面的第七种可能的实现方式中, 所述端口形态标志至少包括: modem端口形态标志及 hilink端口形态标志, 数据卡至少包括: modem端口 形态模式及 hilink端口形态模式。
第四方面, 提供了一种数据卡, 包括:
端口形态获取单元, 用于从数据卡切换装置获取端口形态标志; 切换单元, 用于根据所述端口形态标志, 数据卡切换为相应的端口形态。 在第四方面的第一种可能的实现方式中,所述端口形态获取单元具体用于 所述数据卡插入所述数据卡切换装置或数据卡重启后 ,接收所述数据卡切换装 置发送的端口形态标志 ,所述数据卡切换装置发送的端口形态标志是通过在数 据卡切换装置上运行相应的端口形态驱动获得。
在第四方面的第二种可能的实现方式中,所述端口形态获取单元具体用于 所述数据卡插入数据卡切换装置或数据卡重启后,读取数据卡中存储的端口形 态标志,所述数据卡中存储的端口形态标志在所述数据卡插入数据卡切换装置 时, 由数据卡切换装置通过 AT命令端口发送 AT命令写入到所述数据卡的存 储器中。
在第四方面的第三种可能的实现方式中,所述端口形态获取单元具体用于 所述数据卡插入数据卡切换装置后, 上报光盘设备, 并且一直保持光盘模式不 变,通过所述光盘模式接收由数据卡切换装置发送的包含所述端口形态标志的 光盘命令。
在第四方面的第四种可能的实现方式中, 所述端口形态标志至少包括: modem端口形态标志及 hilink端口形态标志, 数据卡至少包括: modem形态 端口及 hilink形态端口。 本发明实施例中,数据卡通过从数据卡切换装置中获取的相应的端口形态 标志, 并根据端口形态标志切换到相应的端口形态模式, 不需通过升级数据卡 软件才能进行数据卡的模式切换, 从而降低了数据卡维护成本。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描 述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出 创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是现有技术中而数据卡从 hilink端口形态切换到 modem端口形态的 示意图;
图 2是现有技术中而数据卡从 modem端口形态切换到 hilink端口形态的 示意图;
图 3是本发明实施例的一种数据卡切换方法流程图;
图 4是本发明实施例的另一种数据卡切换方法流程图;
图 5是本发明实施例的一种数据卡切换装置结构示意图;
图 6是本发明实施例的一种数据卡结构示意图;
图 7 是本发明实施例的数据卡切换方法中运行数据卡驱动来实现切换的 流程图, 其中, 初始默认数据卡为 hilink端口形态模式;
图 8 是本发明实施例的通过运行数据卡驱动来实现切换的流程中, 从 hilink端口形态模式切换到 modem端口形态模式的流程图;
图 9 是本发明实施例的通过运行数据卡驱动来实现切换的流程中, 从 modem端口形态模式切换回 hilink端口形态模式的流程图。
图 10是本发明实施例的通过模式切换工具来实现切换的流程中,从 hilink 端口形态模式切换到 modem端口形态模式的流程图;
图 11 是本发明实施例的通过模式切换工具来实现切换的流程中, 从 modem端口形态模式切换到 hilink端口形态模式的流程图;
图 12是本发明实施例的在嵌入式设备上实现切换的流程中, 从 hilink端 口形态模式切换到 modem端口形态模式的流程图;
图 13是本发明数据卡切换装置的硬件结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚, 下面将结合本发明 实施例中的附图, 对本发明实施例中的技术方案进行清楚地描述, 显然, 所描 述的实施例是本发明一部分实施例, 而不是全部的实施例。基于本发明中的实 施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实 施例, 都属于本发明保护的范围。
下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。 以 下实施例用于说明本发明, 但不用来限制本发明的范围。
本发明第一实施例提供了一种数据卡切换方法, 如图 3所示, 包括: 步骤 S310, 数据卡切换装置获取数据卡的端口形态标志。
步骤 S320 , 数据卡切换装置将所述端口形态标志发送至数据卡, 以使数 据卡切换为相应的端口形态模式。切换装置将端口形态的标志发送到数据卡后 , 数据卡先拉低 D+ ( USB接口的一根数据线), 通知数据卡切换装置重新获取 端口形态描述符, 完成数据卡的切换。
本实施例中, 数据卡切换装置获取数据卡的端口形态标志的步骤 S310包 括以下三种方式:
方式一,数据卡切换装置运行相应端口形态的驱动程序获得所述端口形态 标志。 例如: 数据卡切换装置为计算机, 数据卡插入计算机时, 计算会出现光 盘盘符, 用户可以通过此光盘安装数据卡附带的驱动程序及应用程序, 当计算 机的自动运行功能打开后,计算机会自动安装光盘默认的端口形态驱动。如果 自动运行功能没有打开, 由用户手动安装。 默认的端口形态驱动安装后会将 操作系统的 MSOS描述符修改为相应的端口形态标志。 若在计算机中安装其 他端口形态驱动, 则端口形态驱动安装后修改操作系统的 MSOS描述符为相 应的端口形态标志。 此时, 步骤 S320中, 在数据卡插入所述数据卡切换装置 或数据卡重启后,所述数据卡切换装置将所述端口形态标志发送至所述数据卡, 即计算机将操作系统的 MSOS描述符发送给数据卡。
方式二, 数据卡切换装置接收用户设置的所述端口形态标志。 步骤 S320 具体为数据卡切换装置打开 AT命令端口, 通过 AT命令将所述端口形态标志 发送至所述数据卡存储, 以使数据卡读取所述端口形态标志完成切换。
方式三 ,数据卡切换装置根据预先集成的与端口形态标志相关的配置获取 所述端口形态标志。 例如: 数据卡切换装置为嵌入式设备(嵌入式设备, 如网 关,往往不能安装数据卡自带的驱动或者应用程序, 所以无法通过自带驱动与 程序和让数据卡的状态进行切换)。 因此通过预先在嵌入式设备中配置的端口 形态标志对插入的数据卡进行切换。 所述步骤 S320中, 当数据卡插入到所述 数据卡切换装置时 ,数据卡切换装置根据数据卡上报的光盘设备模式通过光盘 驱动程序将所述端口形态标志发送至所述数据卡。
本实施例中, 所述端口形态标志至少包括: modem端口形态标志及 Mink 端口形态标志,数据卡至少包括: modem端口形态模式及 Mink端口形态模式。
本发明第二实施例提供了另一种数据卡切换方法, 如图 4所示, 包括: 步骤 S410, 数据卡从数据卡切换装置获取端口形态标志。
步骤 S420, 根据所述端口形态标志, 数据卡切换为相应的端口形态。 本实施例中, 数据卡从数据卡切换装置获取端口形态标志的步骤 S310包 括以下三种方式:
方式一, 所述数据卡插入所述数据卡切换装置或数据卡重启后,接收所述 数据卡切换装置发送的端口形态标志 ,所述数据卡切换装置发送的端口形态标 志是通过在数据卡切换装置上运行相应的端口形态驱动获得。例如: 数据卡切 换装置为计算机, 数据卡插入计算机时, 计算会出现光盘盘符, 用户可以通过 此光盘安装数据卡附带的驱动程序及应用程序,当计算机的自动运行功能打开 后,计算机会自动安装光盘默认的端口形态驱动。如果自动运行功能没有打开, 由用户手动安装。 默认的端口形态驱动安装后会将操作系统的 MSOS描述符 修改为相应的端口形态标志。若在计算机中安装其他端口形态驱动, 则端口形 态驱动安装后修改操作系统的 MSOS描述符为相应的端口形态标志。 在数据 卡插入所述数据卡切换装置或数据卡重启后,所述数据卡切换装置将所述端口 形态标志发送至所述数据卡, 即计算机将操作系统的 MSOS描述符发送给数 据卡。 方式二, 所述数据卡插入数据卡切换装置或数据卡重启后,读取自身存储 的端口形态标志,所述自身存储的端口形态标志在所述数据卡插入数据卡切换 装置时, 由数据卡切换装置通过 AT命令端口发送 AT命令写入到所述数据卡 的存储器中。
方式三, 所述数据卡插入数据卡切换装置后, 数据卡上报光盘设备, 并且 一直保持光盘模式不变,通过所述光盘模式接收由数据卡切换装置发送的包含 所述端口形态标志的光盘命令。
本实施例中, 所述端口形态标志至少包括: modem端口形态标志及 Mink 端口形态标志, 数据卡至少包括: modem形态端口及 hilink形态端口。
本发明第三实施例提供了一种数据卡切换装置 500 , 如图 5所示, 包括: 端口形态获取单元 510, 用于获取数据卡的端口形态标志;
端口形态发送单元 520, 用于将所述端口形态标志发送至数据卡, 以使数 据卡切换为相应的端口形态模式。
本实施例中,端口形态获取单元 510获取数据卡的端口形态标志包括以下 三种方式:
方式一,端口形态获取单元 510具体用于运行相应端口形态的驱动程序获 得所述端口形态标志。获取后, 端口形态发送单元 520具体用于在数据卡插入 所述数据卡切换装置或数据卡重启后 ,将所述端口形态标志发送至所述数据卡。
方式二,所述端口形态获取单元 510具体用于接收用户设置的所述端口形 态标志。获取后, 端口形态发送单元 520具体用于打开 AT命令端口, 通过 AT 命令将所述端口形态标志发送至所述数据卡存储,以使数据卡读取所述端口形 态标志完成切换。
方式三,端口形态获取单元 510具体用于根据预先集成的与端口形态标志 相关的配置获取所述端口形态标志。获取后, 端口形态发送单元 520具体用于 当数据卡插入到所述数据卡切换装置时,根据数据卡上报的光盘设备模式通过 光盘驱动程序将所述端口形态标志发送至所述数据卡。
本实施例中, 所述端口形态标志至少包括: modem端口形态标志及 Mink 端口形态标志,数据卡至少包括: modem端口形态模式及 Mink端口形态模式。
本发明第四实施例提供了一种数据卡 600, 如图 6所示, 包括:
端口形态获取单元 610, 用于从数据卡切换装置获取端口形态标志。
切换单元 620 , 用于根据所述端口形态标志, 数据卡切换为相应的端口形 态。
本实施例中,数据卡的端口形态获取单元 610获取端口形态标志包括以下 三种方式:
方式一,端口形态获取单元 610具体用于所述数据卡插入所述数据卡切换 装置或数据卡重启后,接收所述数据卡切换装置发送的端口形态标志, 所述数 据卡切换装置发送的端口形态标志是通过在数据卡切换装置上运行相应的端 口形态驱动获得。
方式二,端口形态获取单元 610具体用于所述数据卡插入数据卡切换装置 或数据卡重启后,读取数据卡中存储的端口形态标志, 所述数据卡中存储的端 口形态标志在所述数据卡插入数据卡切换装置时, 由数据卡切换装置通过 AT 命令端口发送 AT命令写入到所述数据卡的存储器中。
方式三,端口形态获取单元 620具体用于所述数据卡插入数据卡切换装置 后, 上报光盘设备, 并且一直保持光盘模式不变, 通过所述光盘模式接收由数 据卡切换装置发送的包含所述端口形态标志的光盘命令。
本实施例中, 所述端口形态标志至少包括: modem端口形态标志及 Mink 端口形态标志, 数据卡至少包括: modem形态端口及 hilink形态端口。
下面以具体切换实例具体说明本发明。
数据卡切换装置为计算机时, 可以釆用以下两种方式进行切换:
方式一, 用户初次使用数据卡, 默认为 hilink形态, 如图 7所示, 为数据 卡端口形态模式进行切换的一种具体流程图。当数据卡第一次插入用户电脑时, 计算机上会出现光盘盘符, 当电脑的自动运行功能打开后, 电脑会自动安装光 盘所带 Mink服务。如果自动运行功能没有打开,由用户手动安装 Mink服务。 hilink服务安装后会将操作系统的 MSOS描述符修改为 hilink标志。
再次插入或者重启数据卡后,数据卡会收到标志为 hilink的 MSOS描述符, 数据卡切换为 hilink形态。
如图 8所示,用户在计算机上安装 modem驱动程序。安装完毕后, modem 驱动程序会将 MSOS描述符设置为 modem标志.
再次插入或者重启数据卡后, 数据卡会收到标志为 modem的 MSOS描述 符, 数据卡切换为 modem形态。
如图 9所示, 用户卸载 modem驱动。 卸载程序先将 MSOS描述符修改为 hilink标志, 然后将 modem驱动从 PC中移除
再次插入或者重启数据卡后,数据卡会收到标志为 hilink的 MSOS描述符, 数据卡切换为 hilink形态。
方式二, 本方案通过使用模式切换工具(数据卡自带的应用程序, 可 以提供用户界面, 以获取用户设置的端口形态标志), 将数据卡的端口形态标 志发送到数据卡进行永久性保存。数据卡在上电启动后将此标志读出, 自动切 换到对应的模式上。例如读出的是 modem模式, 则将数据卡切换为 modem形 态; 读出 hilink模式, 则切换为 hilink模式, 切换流程如图 10和 11所示, 图 10是 modem切换 hilink的流程, 图 11是 hilink切换 modem的流程。 由于数 据卡在 hilink形态时, 工作在网卡下, 需要先从网口切换到 AT命令端口后, 才能发送 AT命令。
数据卡切换装置为嵌入式设备时, 可以釆用如下方式进行切换:
如图 12所示,本方案通过直接下发特殊的光盘 SCSI命令给数据卡,使插 入到嵌入式设备的 hilink数据卡直接切换到 modem模式。 嵌入式设备例如网 关往往不能安装数据卡自带的驱动或者应用程序,所以无法通过自带驱动与程 序和让数据卡的状态进行切换。 而当 hilink数据卡插入到网关设备时、 数据 卡会上报光盘设备, 并且一直保持光盘模式不变。 集成在网关中的光盘驱动此 时可以下发特殊的光盘命令, 使数据卡自动切换到 modem形态。 最后网关中 的拨号程序利用 modem或者 Ndis端口进行拨号。
对于已经发售的数据卡, 只需通过一次升级,将数据卡驱动和应用程序升 级后即可按上述方式进行切换。
本发明所述的数据卡切换装置 1000与现有计算机相类似, 其通过输入接 口 1010和输出接口 1020与外部设备(数据卡)进行信息交互, 如: 数据卡插 入数据卡切换装置 1000时,通过输入接口 1010获取数据卡默认驱动或应用程 序, 从而获取数据卡的端口形态标志。 输出接口 1020将获取的端口形态标志 发送至数据卡。 其通过处理器 1030控制与数据卡交互的整个流程。
本领域普通技术人员将会理解, 本发明的各个方面、或各个方面的可能实 现方式可以被具体实施为系统、 方法或者计算机程序产品。 因此, 本发明的各 方面、或各个方面的可能实现方式可以釆用完全硬件实施例、 完全软件实施例 (包括固件、 驻留软件等等), 或者组合软件和硬件方面的实施例的形式, 在 这里都统称为 "电路"、 "模块 "或者 "系统"。 此外, 本发明的各方面、 或各个方 面的可能实现方式可以釆用计算机程序产品的形式,计算机程序产品是指存储 在计算机可读介质中的计算机可读程序代码。
计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计 算机可读存储介质包含但不限于电子、磁性、光学、电磁、红外或半导体系统、 设备或者装置, 或者前述的任意适当组合, 如随机存取存储器(RAM )、 只读 存储器(ROM )、可擦除可编程只读存储器(EPROM或者快闪存储器)、光纤、 便携式只读存储器 ( CD-ROM )。
计算机中的处理器读取存储在计算机可读介质中的计算机可读程序代码, 使得处理器能够执行在流程图中每个步骤、或各步骤的组合中规定的功能动作; 生成实施在框图的每一块、 或各块的组合中规定的功能动作的装置。
计算机可读程序代码可以完全在用户的计算机上执行、部分在用户的计算 机上执行、作为单独的软件包、部分在用户的计算机上并且部分在远程计算机 上, 或者完全在远程计算机或者服务器上执行。 也应该注意, 在某些替代实施 方案中,在流程图中各步骤、或框图中各块所注明的功能可能不按图中注明的 顺序发生。 例如, 依赖于所涉及的功能, 接连示出的两个步骤、 或两个块实际 上可能被大致同时执行, 或者这些块有时候可能被以相反顺序执行。 明的精神和范围。 这样,倘若本发明的这些修改和变型属于本发明权利要求及 其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。

Claims

权 利 要 求
1、 一种数据卡切换方法, 其特征在于, 包括步骤:
数据卡切换装置获取数据卡的端口形态标志;
数据卡切换装置将所述端口形态标志发送至数据卡,以使数据卡切换为相 应的端口形态模式。
2、 如权利要求 1所述的数据卡切换方法, 其特征在于, 所述数据卡切换 装置获取数据卡的端口形态标志的步骤具体包括:
数据卡切换装置运行相应端口形态的驱动程序获得所述端口形态标志。
3、 如权利要求 2所述的数据卡切换方法, 其特征在于, 所述数据卡切换 装置将所述端口形态标志发送至数据卡的步骤具体包括:在数据卡插入所述数 据卡切换装置或数据卡重启后 ,所述数据卡切换装置将所述端口形态标志发送 至所述数据卡。
4、 如权利要求 1所述的数据卡切换方法, 其特征在于, 所述数据卡切换 装置获取数据卡的端口形态标志的步骤具体包括:数据卡切换装置接收用户设 置的所述端口形态标志。
5、 如权利要求 4所述的数据卡切换方法, 其特征在于, 所述数据卡切换 装置将所述端口形态标志发送至数据卡的步骤具体包括: 打开 AT命令端口, 通过 AT命令将所述端口形态标志发送至所述数据卡存储, 以使数据卡读取所 述端口形态标志完成切换。
6、 如权利要求 1所述的数据卡切换方法, 其特征在于, 所述数据卡切换 装置获取数据卡的端口形态标志的步骤具体包括:数据卡切换装置根据预先集 成的与端口形态标志相关的配置获取所述端口形态标志。
7、 如权利要求 6所述的数据卡切换方法, 其特征在于, 所述数据卡切换 装置将所述端口形态标志发送至数据卡的步骤具体包括:当数据卡插入到所述 数据卡切换装置时 ,所述数据卡切换装置根据数据卡上报的光盘设备模式通过 光盘驱动程序将所述端口形态标志发送至所述数据卡。
8、 如权利要求 1~7中任一项所述的数据卡切换方法, 其特征在于, 所述 端口形态标志至少包括: modem端口形态标志及 hilink端口形态标志 ,数据卡 至少包括: modem端口形态模式及 hilink端口形态模式。
9、 一种数据卡切换方法, 其特征在于, 包括步骤:
数据卡从数据卡切换装置获取端口形态标志;
根据所述端口形态标志, 数据卡切换为相应的端口形态。
10、 如权利要求 9所述的数据卡切换方法, 其特征在于, 所述数据卡从数 据卡切换装置获取端口形态标志的步骤具体包括:
所述数据卡插入所述数据卡切换装置或数据卡重启后,接收所述数据卡切 换装置发送的端口形态标志 ,所述数据卡切换装置发送的端口形态标志是通过 在数据卡切换装置上运行相应的端口形态驱动获得。
11、 如权利要求 9所述的数据卡切换方法, 其特征在于, 所述数据卡从数 据卡切换装置获取端口形态标志的步骤具体包括:
所述数据卡插入数据卡切换装置或数据卡重启后,读取自身存储的端口形 态标志, 所述自身存储的端口形态标志在所述数据卡插入数据卡切换装置时 , 由数据卡切换装置通过 AT命令端口发送 AT命令写入到所述数据卡的存储器 中。
12、 如权利要求 9所述的数据卡切换方法, 其特征在于, 所述数据卡从数 据卡切换装置获取端口形态标志的步骤具体包括:
所述数据卡插入数据卡切换装置后,数据卡上报光盘设备, 并且一直保持 光盘模式不变,通过所述光盘模式接收由数据卡切换装置发送的包含所述端口 形态标志的光盘命令。
13、 如权利要求 9~12中任一项所述的数据卡切换方法, 其特征在于, 所 述端口形态标志至少包括: modem端口形态标志及 hilink端口形态标志 ,数据 卡至少包括: modem形态端口及 hilink形态端口。
14、 一种数据卡切换装置, 其特征在于, 包括:
端口形态获取单元, 用于获取数据卡的端口形态标志;
端口形态发送单元, 用于将所述端口形态标志发送至数据卡, 以使数据卡 切换为相应的端口形态模式。
15、 如权利要求 14所述的数据卡切换装置, 其特征在于, 所述端口形态 获取单元具体用于运行相应端口形态的驱动程序获得所述端口形态标志。
16、 如权利要求 15所述的数据卡切换装置, 其特征在于, 端口形态发送 单元具体用于在数据卡插入所述数据卡切换装置或数据卡重启后,将所述端口 形态标志发送至所述数据卡。
17、 如权利要求 14所述的数据卡切换装置, 其特征在于, 所述端口形态 获取单元具体用于接收用户设置的所述端口形态标志。
18、 如权利要求 17所述的数据卡切换装置, 其特征在于, 端口形态发送 单元具体用于打开 AT命令端口, 通过 AT命令将所述端口形态标志发送至所 述数据卡存储, 以使数据卡读取所述端口形态标志完成切换。
19、 如权利要求 14所述的数据卡切换装置, 其特征在于, 所述端口形态 获取单元具体用于根据预先集成的与端口形态标志相关的配置获取所述端口 形态标志。
20、 如权利要求 19所述的数据卡切换装置, 其特征在于, 端口形态发送 单元具体用于当数据卡插入到所述数据卡切换装置时 ,根据数据卡上报的光盘 设备模式通过光盘驱动程序将所述端口形态标志发送至所述数据卡。
21、 如权利要求 14~20中任一项所述的数据卡切换装置, 其特征在于, 所 述端口形态标志至少包括: modem端口形态标志及 hilink端口形态标志 ,数据 卡至少包括: modem端口形态模式及 hilink端口形态模式。
22、 一种数据卡, 其特征在于, 包括:
端口形态获取单元, 用于从数据卡切换装置获取端口形态标志; 切换单元, 用于根据所述端口形态标志, 数据卡切换为相应的端口形态。
23、 如权利要求 22所述的数据卡, 其特征在于, 所述端口形态获取单元 具体用于所述数据卡插入所述数据卡切换装置或数据卡重启后,接收所述数据 卡切换装置发送的端口形态标志 ,所述数据卡切换装置发送的端口形态标志是 通过在数据卡切换装置上运行相应的端口形态驱动获得。
24、 如权利要求 22所述的数据卡, 其特征在于, 所述端口形态获取单元 具体用于所述数据卡插入数据卡切换装置或数据卡重启后,读取数据卡中存储 的端口形态标志 ,所述数据卡中存储的端口形态标志在所述数据卡插入数据卡 切换装置时, 由数据卡切换装置通过 AT命令端口发送 AT命令写入到所述数 据卡的存储器中。
25、 如权利要求 22所述的数据卡, 其特征在于, 所述端口形态获取单元 具体用于所述数据卡插入数据卡切换装置后, 上报光盘设备, 并且一直保持光 盘模式不变,通过所述光盘模式接收由数据卡切换装置发送的包含所述端口形 态标志的光盘命令。
26、 如权利要求 22~25中任一项所述的数据卡, 其特征在于, 所述端口形 态标志至少包括: modem端口形态标志及 hilink端口形态标志,数据卡至少包 括: modem形态端口及 hilink形态端口。
PCT/CN2014/079696 2013-06-20 2014-06-12 数据卡、数据卡切换方法及装置 WO2014201967A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2016513222A JP6140367B2 (ja) 2013-06-20 2014-06-12 データカード、並びにデータカード切り替え方法及び装置
EP14812949.7A EP2977908A4 (en) 2013-06-20 2014-06-12 DATA CARD, DATA CARD SWITCHING PROCESS AND DEVICE THEREFOR
US14/959,321 US10049070B2 (en) 2013-06-20 2015-12-04 Data card, and data card switching method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310247219.7 2013-06-20
CN201310247219.7A CN104239241B (zh) 2013-06-20 2013-06-20 数据卡、数据卡切换方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/959,321 Continuation US10049070B2 (en) 2013-06-20 2015-12-04 Data card, and data card switching method and apparatus

Publications (1)

Publication Number Publication Date
WO2014201967A1 true WO2014201967A1 (zh) 2014-12-24

Family

ID=52103945

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079696 WO2014201967A1 (zh) 2013-06-20 2014-06-12 数据卡、数据卡切换方法及装置

Country Status (5)

Country Link
US (1) US10049070B2 (zh)
EP (1) EP2977908A4 (zh)
JP (1) JP6140367B2 (zh)
CN (1) CN104239241B (zh)
WO (1) WO2014201967A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933555A (zh) * 2019-04-01 2019-06-25 成都思鸿维科技有限责任公司 一种外部板卡管理方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017019108A1 (en) * 2015-07-30 2017-02-02 Hewlett Packard Enterprise Development Lp Firmware update of an interconnect device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101324876A (zh) * 2008-07-15 2008-12-17 深圳华为通信技术有限公司 数据卡的操作模式切换及其控制方法、装置及数据卡
CN102096646A (zh) * 2011-01-30 2011-06-15 中兴通讯股份有限公司 一种无线通讯终端的启用方法及装置
CN102103555A (zh) * 2011-01-30 2011-06-22 中兴通讯股份有限公司 一种usb设备的端口切换方法和系统

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5815682A (en) 1994-12-13 1998-09-29 Microsoft Corporation Device independent modem interface
CN101981556A (zh) 2008-04-07 2011-02-23 松下电器产业株式会社 设备控制方法、设备控制程序以及设备选择装置
US20100180064A1 (en) * 2009-01-14 2010-07-15 Huawei Device Co., Ltd. Method and device for implementing USB endpoint multiplexing
CN107015825A (zh) * 2009-07-10 2017-08-04 中兴通讯股份有限公司 一种通用串行接口数据卡的配置方法和系统
CN101714925B (zh) * 2009-11-09 2012-04-18 华为终端有限公司 通信设备端口管理方法和系统、管理设备和通信设备
CN101833684A (zh) * 2010-04-13 2010-09-15 中兴通讯股份有限公司 一种多模数据卡及其校准方法
JP5392511B2 (ja) * 2010-12-31 2014-01-22 ▲華▼▲為▼▲終▼端有限公司 データカード、データカードがポートを報告するための方法、およびデータカードを起動するための方法
CN102222207B (zh) * 2011-05-23 2014-03-19 深圳市共进电子股份有限公司 在Linux系统中通过切换3G数据卡工作模式实现联网的方法
CN102231878B (zh) * 2011-06-21 2017-09-29 中兴通讯股份有限公司 数据卡启动方法及数据卡
CN102521171A (zh) * 2011-11-17 2012-06-27 深圳市中兴移动通信有限公司 一种数据卡即插即用的实现方法
CN103124446A (zh) * 2011-11-18 2013-05-29 中兴通讯股份有限公司 支持以3G及Wi-Fi方式接入网络的无线宽带数据卡

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101324876A (zh) * 2008-07-15 2008-12-17 深圳华为通信技术有限公司 数据卡的操作模式切换及其控制方法、装置及数据卡
CN102096646A (zh) * 2011-01-30 2011-06-15 中兴通讯股份有限公司 一种无线通讯终端的启用方法及装置
CN102103555A (zh) * 2011-01-30 2011-06-22 中兴通讯股份有限公司 一种usb设备的端口切换方法和系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933555A (zh) * 2019-04-01 2019-06-25 成都思鸿维科技有限责任公司 一种外部板卡管理方法

Also Published As

Publication number Publication date
EP2977908A1 (en) 2016-01-27
CN104239241B (zh) 2018-09-11
JP6140367B2 (ja) 2017-05-31
US10049070B2 (en) 2018-08-14
EP2977908A4 (en) 2016-04-27
US20160085709A1 (en) 2016-03-24
CN104239241A (zh) 2014-12-24
JP2016521423A (ja) 2016-07-21

Similar Documents

Publication Publication Date Title
JP4346853B2 (ja) 電子装置及びその制御方法
US9563442B2 (en) Baseboard management controller and method of loading firmware
US9804859B2 (en) Re-enumeration of USB 3.0 compatible devices
US8997090B2 (en) Installing an operating system in a host system
TWI477970B (zh) 電子裝置的模式切換方法與相關的電子裝置
CN101110039B (zh) 终端设备自安装及自启动系统及方法
US20120179845A1 (en) Method for switching working mode, usb device, and host device
KR20110098974A (ko) Usb 디바이스의 빠른 시동을 위한 시스템, 장치, 및 방법
WO2012100504A1 (zh) 一种无线通讯方法、系统及无线通讯终端
CN102073524B (zh) 一种无线通讯终端及其自启动的方法
US20160041607A1 (en) System management controller
KR100654675B1 (ko) 호스트 컴퓨터상에서 응용프로그램 수행을 위한 휴대용디지털 저장장치 시스템 및 방법
WO2014201967A1 (zh) 数据卡、数据卡切换方法及装置
RU2643481C2 (ru) Способ идентификации типа операционной системы и устройство USB
US7913263B2 (en) External device and operating method applied thereto
WO2015131553A1 (zh) 一种数据传输的方法和系统
EP3320446A1 (en) Method and host node for configuring a remote node and a host node
CN101826062A (zh) 计算机执行方法以及电子系统
US9141565B2 (en) Memory bus attached input/output (‘I/O’) subsystem management in a computing system
EP2477120B1 (en) Method for processing device connection, combination device and host device
EP3413205A1 (en) Re-enumeration of usb 3.0 compatible devices
KR20180073041A (ko) 전자 장치, 그 제어 방법 및 컴퓨터 판독가능 기록 매체
JP5734113B2 (ja) 中継機器及び入出力システム
KR20130015306A (ko) 통신 모뎀의 업그레이드 방법
JP2009032235A (ja) 単一の識別コードでインターネットおよび磁気記憶装置アクセスサービスを提供するハードディスクレス型コンピュータシステム、およびそのデータ送受信方法

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: 14812949

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2014812949

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016513222

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE