WO2010130130A1 - 控制通用串行总线端口数据传输功能的方法及终端设备 - Google Patents

控制通用串行总线端口数据传输功能的方法及终端设备 Download PDF

Info

Publication number
WO2010130130A1
WO2010130130A1 PCT/CN2009/075412 CN2009075412W WO2010130130A1 WO 2010130130 A1 WO2010130130 A1 WO 2010130130A1 CN 2009075412 W CN2009075412 W CN 2009075412W WO 2010130130 A1 WO2010130130 A1 WO 2010130130A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
port
control information
usb port
information
Prior art date
Application number
PCT/CN2009/075412
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 中兴通讯股份有限公司
Publication of WO2010130130A1 publication Critical patent/WO2010130130A1/zh

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/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
    • 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/0042Universal serial bus [USB]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and a terminal device for controlling a data transmission function of a universal serial bus port.
  • certain functions of the communication device are set at the factory, and the curing setting has its advantages, but there are also defects in which the cured function is difficult to be changed, resulting in inflexible operation.
  • ROM read-only memory
  • a boot program is usually solidified, and the boot program includes booting for completing a universal serial bus (USB, Universal Serial Bus).
  • USB Universal Serial Bus
  • UART Universal Asynchronous Receiver/Transmitter
  • the USB/UART data transfer function can be used for professional-level operations on mobile terminals, such as updating software on mobile terminals, upgrading system software, and so on.
  • the above-mentioned baseband chip such as TD-SCDMA (Time Division-Synchronous Code Division Multiple Access) / Global System for Mobile Communication (GSM, Global System for Mobile Communication) ) Dual-mode digital baseband chip.
  • the boot program After the mobile terminal establishes communication with other devices such as a computer, the boot program will perform the operation waiting for the USB data transfer function to be started by default, including:
  • USB port driver required to start the USB data transfer function is not configured on the computer, Windows will prompt the user to update the hardware device driver, causing inconvenience to the user.
  • the user's operation of the mobile terminal usually involves downloading application software such as entertainment software from a computer, or transferring some data from the mobile terminal to the computer, and rarely involves the mobile terminal. Professional-grade operation; therefore, the baseband chip of the mobile terminal.
  • the USB data transmission function initiated by default in the ordinary user not only does not bring convenience to the user, but also causes inconvenience to the user, and the boot time is prolonged, resulting in poor user experience.
  • the present invention provides a method and a terminal device for controlling a data transmission function of a universal serial bus port to solve the technical problem of the data transmission function of the USB port which is difficult to control in the prior art.
  • the present invention provides a method for controlling a data transmission function of a universal serial bus port, comprising the following steps:
  • connection Establishing a connection between the first terminal and the second terminal, where the connection includes a connection established by a universal serial bus USB port between the first terminal and the second terminal; Preset control information;
  • the first terminal blocks a data transmission function of the USB port on the first terminal according to the control information
  • the first terminal changes a USB port on the first terminal to be a logical port, and uses the logical port to transfer data between the first terminal and the second terminal.
  • the first terminal blocks a data transmission function of the USB port on the first terminal according to the control information; or, the step of the first terminal changing a USB port on the first terminal to be a logical port If the control information matches the preset parameter value, the first terminal blocks the data transmission function of the USB port on the first terminal; otherwise, the first terminal changes the first terminal
  • the upper USB port is a logical port.
  • the method before the step of changing the USB port on the first terminal to a logical port, the method further includes:
  • the first terminal provides the description information of the logical port to the second terminal, and the second terminal determines that the port connected to the second terminal is the logical port.
  • the logical port comprises a virtual COM port or a device firmware upgrade DFU mode.
  • the method further includes: changing the control information before the step of the first terminal reading the preset control information.
  • control information is signature information stored in a non-volatile memory in the first terminal
  • the step of changing the control information includes:
  • the signature information is changed by a preset dedicated module.
  • the present invention provides a terminal device, including: a universal serial bus USB port, an information reading unit, and a control processing unit;
  • the USB port is configured to establish a connection with the second terminal
  • the information reading unit is configured to read preset control information
  • the control processing unit is configured to:
  • the USB port is changed to be a logical port, and data is transferred between the terminal device and the second terminal by using the logical port.
  • control processing unit comprises:
  • a judging unit configured to determine whether the control information matches a preset parameter value, and obtain a judgment result
  • a first processing unit configured to block the data transmission function of the USB port when the determination result is that the control information matches the preset parameter value
  • a second processing unit configured to change the USB port to be a logical port when the determination result is that the control information does not match the preset parameter value
  • a transmission processing unit configured to transmit data between the terminal device and the second terminal using the logical port.
  • the terminal device further includes: An information configuration unit, configured to configure description information of the logical port;
  • the second processing unit includes: a result identifying unit and an information providing unit; wherein the result identifying unit is configured to identify that the determining result is that the control information does not match the preset parameter value;
  • the information providing unit is configured to provide the description information of the logical port to the second terminal, to determine, by the second terminal, a port connected to the second terminal as the logical port.
  • the terminal device further includes an information changing unit configured to change the control information.
  • the technical solution provided by the embodiment of the present invention has the following advantages:
  • the first terminal connects the first terminal and the second terminal based on the preset control information.
  • the data transmission function of the USB port performs flexible control processing, and the shielded USB port is selected according to the control information to avoid the process of updating the software in the first terminal through the USB port, such as the firmware design, thereby eliminating the participation of the mobile terminal user in the process.
  • control information is stored in the non-volatile memory, and the specific form may be represented as signature information, and when the signature information is a preset parameter value, the USB port is shielded, and the signature information is When the preset parameter values do not match, change the USB port and perform the relevant data transfer process to ensure that the USB port masking operation is difficult to be maliciously or mis-executed.
  • FIG. 1 is a flow chart of a method for controlling a data transmission function of a universal serial bus USB port in an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a terminal device in an embodiment of the present invention.
  • FIG. 3 is another schematic structural diagram of a terminal device in an embodiment of the present invention.
  • the data transmission function of the USB port is controlled by setting control information in the first terminal such as the above mobile terminal.
  • FIG. 1 is a flow chart of a method for controlling a data transmission function of a universal serial bus port in an embodiment of the present invention, which may include the following steps:
  • Step 101 Establish a connection between the first terminal and the second terminal; the connection includes a connection established by using a USB port between the first terminal and the second terminal.
  • the first terminal is a mobile terminal as described above, and the second terminal is a computer as described above.
  • the connection between the mobile terminal and the computer also includes a connection established based on the UART.
  • Step 102 The first terminal reads preset control information.
  • control information may be preset in a non-volatile memory in the mobile terminal, specifically signature information.
  • the non-volatile memory that can be used includes, for example, Flash, and the corresponding signature information is a Flash signature.
  • Step 103 The first terminal blocks the data transmission function of the USB port on the first terminal according to the control information; or, changes the USB port on the first terminal to be a logical port, and uses the logical port in the first terminal and the second terminal. Transfer data between.
  • the specific form of the control information may be a character string or other.
  • the first terminal may compare the read control information with a preset parameter value, and determine the control information and the preset. Whether the parameter values match, if they match, the USB port is masked; otherwise, the USB port is changed.
  • the advantage of the comparison processing is that it prevents the USB being shielded from being caused by maliciously modified or erroneously modified signature information such as a Flash signature.
  • the probability that the signature information is changed to the preset parameter value is not too large, thereby reducing the possibility that the USB port is maliciously or mis-masked, resulting in legal modification being difficult to perform.
  • the control information matches the preset parameter value, the operation of changing the USB port is performed; if it does not match, the operation of masking the USB port is performed.
  • the relevant technical personnel can legally modify the signature information to a preset parameter value, so as to ensure that the user is not booted when using the mobile terminal.
  • the program is solidified to prompt the user whether to perform USB download to update the mobile terminal software, and shorten the boot time to improve the user experience; while in the development stage of the mobile terminal, the relevant technician can set the Flash signature to not match the preset parameter value.
  • Other values in order to use the USB port, professional development of mobile terminals.
  • an appropriate signature information address space can be selected to ensure the independence of the address space and ensure information security.
  • the method of changing the USB port to the logical port, wherein the logical port is a virtual serial port may be set as a virtual COM port, or a device firmware upgrade (DFU, Device Firmware Upgrade) mode.
  • the description information of the logical port includes: a descriptor of the device where the logical port is located, a configuration descriptor, and the like.
  • the specific method for changing the USB port may include: when the mobile terminal interacts with the computer, the mobile terminal provides description information of the logical port pre-configured thereon to the computer, and the computer determines, according to the read description information, the used
  • the port will be a logical port such as a COM port, which in turn will be changed by the mobile terminal to a logical port such as a COM port.
  • the computer no longer prompts the user to request a driver for the port, thereby enabling the user to operate the mobile terminal more conveniently and without the need to provide the cost of the port driver.
  • the signature information can be modified.
  • the embodiment of the present invention cites two modifications as follows:
  • DCE Terminal Equipment and Data Communication Equipment
  • the dedicated module is a small system software independent of the application;
  • AT commands are as follows:
  • AT A UPDATE used to indicate that the function of transmitting data based on the physical USB port is enabled, and all Oxff is written in the address space of the Flash signature;
  • the function of enabling data transmission based on a physical USB port is, for example, enabling a software version upgrade function of the mobile terminal;
  • AT A CLOSEUPDATE Used to indicate the masked USB port, write the preset parameter value in the address space of the Flash signature.
  • the connection function of the USB port can be switched to the UART port in advance, thereby moving The terminal is physically connected to the computer based on the USB port, but is actually connected via the UART port.
  • the UART port usually does not require a driver to drive, it can also circumvent the problem of needing to configure the USB port driver on the computer.
  • the foregoing switching can be implemented by hardware, such as changing the level of a specific pin on the baseband chip, so that the USB port can be circumvented after the mobile terminal and the computer are physically connected through the USB port, and the UART port is supported.
  • FIG. 2 is a schematic structural diagram of a terminal device in an embodiment of the present invention.
  • the terminal device 200 may include: a USB port 201, an information reading unit 202, and a control processing unit 203;
  • USB port 201 configured to establish a connection with the second terminal
  • the information reading unit 202 is configured to read preset control information.
  • the control processing unit 203 is configured to block the data transmission function of the USB port 201 according to the control information; or change the USB port 201 to be a logical port, and use the logical port to transmit data between the terminal device and the second terminal.
  • FIG. 3 is another schematic structural diagram of a terminal device in an embodiment of the present invention.
  • the control processing unit 203 in the terminal device 300 includes: a determining unit 301, a first processing unit 302, a second processing unit 303, and a transmission processing unit 304;
  • the determining unit 301 is configured to determine whether the control information matches the preset parameter value, and obtain a judgment result;
  • the first processing unit 302 is configured to block the data transmission function of the USB port when the determination result is that the control information matches the preset parameter value;
  • the second processing unit 303 is configured to: when the determination result is that the control information does not match the preset parameter value, change the USB port to be a logical port;
  • a transmission processing unit 304 configured to transmit, between the terminal device and the second terminal by using the logical port Data.
  • the terminal device 300 further includes: an information configuration unit 305 configured to describe the description information of the logical port; the second processing unit 303 includes: a result identification unit and an information providing unit; (not shown in FIG. 3)
  • the information providing unit is configured to provide the description information of the logical port to the second terminal according to the identification of the result identifying unit
  • the second terminal determines that the port connected to the second terminal is a logical port.
  • the terminal device 300 further includes: an information changing unit 306 for changing control information.
  • the setting of the information change unit 306 makes it easy to change the control information as needed to achieve flexible control of the use of the USB port function on the terminal device.
  • the terminal device 300 further includes:
  • a non-volatile memory 307 is provided for storing control information.
  • FIG. 4 is a flowchart of controlling a data transmission function of a USB port in an embodiment of the present invention, and the process may include the following steps:
  • Step 401 The ADI boot (boot) program is started.
  • Step 402 The baseband chip in the mobile terminal reads the signature information on the non-volatile memory.
  • Step 403 The baseband chip determines whether the signature information matches the preset parameter value. If yes, go to step 409; otherwise, go to step 404.
  • Step 404 The baseband chip transmits the description information of the pre-configured COM port to the computer.
  • Step 405 The computer identifies, according to the description information of the read COM port, that the port that communicates with it is a COM port.
  • Step 406 The baseband chip determines whether the waiting duration exceeds a preset time of 3 seconds, and if yes, performs step 409; otherwise, performs step 407.
  • Step 407 The baseband chip determines whether it waits for the download instruction of the downloaded software upgrade version to be sent by the computer, and if yes, performs step 408; otherwise, performs step 406.
  • Step 408 The baseband chip downloads, from the computer, the dynamic number required to update the software in the mobile terminal. According to.
  • Step 409 The mobile terminal enters a user operation process.
  • the baseband chip determines whether to shield the USB port according to the signature information, skips the process of downloading the update software of the mobile terminal based on the USB port, or performs the change based on the USB port, and executes the COM port.
  • the software update process which effectively controls the data transfer function of the USB port.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for making one
  • the terminal device performs the methods described in various embodiments of the present invention.
  • the first terminal performs flexible control processing on the data transmission function of the USB port connecting the first terminal and the second terminal based on the preset control information, and selects the shielded USB according to the control information.
  • the USB port transmits data between the first terminal and the second terminal. For example, when updating the software in the first terminal, the problem of requiring a driver for configuring the USB port on the first terminal is avoided, and the logical port is used to transmit related data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)
  • Telephone Function (AREA)

Description

控制通用串行总线端口数据传输功能的方法及终端设备
技术领域
本发明涉及通信技术领域, 尤其涉及一种控制通用串行总线端口数据传 输功能的方法及终端设备。
背景技术
一些情况下, 通信设备的某些功能在出厂前被固化设置, 该固化设置固 然具备其优点, 但也存在被固化的功能难以被更改, 导致操作不灵活的缺陷。
举例如,一些移动终端内基带芯片的只读内存( ROM, Read-only Memory ) 中, 通常固化有引导 (boot )程序, boot程序中包括启动用于完成通用串行 总线( USB, Universal Serial Bus )及通用异步接收 /发送器( UART, Universal Asynchronous Receiver/Transmitter )的数据传输功能。 USB/UART数据传输功 能可用于对移动终端作专业级的操作, 如更新移动终端上的软件, 对系统软 件做升级处理, 等等。 上述基带芯片如亚德诺半导体技术公司 (简称 ADI公 司) 的时分同步的码分多址 ( TD-SCDMA, Time Division- Synchronous Code Division Multiple Access ) /全球移动通讯系统 ( GSM, Global System for Mobile Communication )双模数字基带芯片。
在移动终端与其他设备如计算机建立通信后, boot程序会默认执行等待 USB数据传输功能被启动的操作, 包括:
在预设时长内等待计算机侧的响应指令, 以确定是否需要通过 USB端口 传输数据, 如从计算机侧下载动态数据, 以更新移动终端内的相关软件。
另外, 若计算机上未配置启动 USB数据传输功能所需的 USB端口驱动 程序, 则 Windows会提示用户需要更新硬件设备驱动, 给用户造成不便。
现有技术存在至少以下技术问题:
对普通的移动终端用户而言, 用户对移动终端的操作通常涉及从计算机 上下载应用软件如娱乐软件, 或将移动终端内的数据传输到计算机上的一些 操作, 而很少涉及对移动终端作专业级的操作; 因此, 移动终端的基带芯片 中默认启动的 USB数据传输功能对普通用户而言, 不仅没有给用户带来使用 上的便捷, 反而给用户造成不便, 且因开机时间被延长, 导致用户体验较差。
发明内容
有鉴于此, 本发明提供一种控制通用串行总线端口数据传输功能的方法 及终端设备, 以解决现有技术中存在的难以控制 USB端口的数据传输功能的 技术问题。
为解决上述技术问题, 本发明提供一种控制通用串行总线端口数据传输 功能的方法, 包括以下步骤:
第一终端与第二终端之间建立连接, 其中, 所述连接包括通过所述第一 终端与所述第二终端之间的通用串行总线 USB端口建立的连接; 所述第一终端读取预设的控制信息; 以及
所述第一终端根据所述控制信息屏蔽所述第一终端上的 USB端口的数据 传输功能; 或,
所述第一终端更改所述第一终端上的 USB端口为逻辑端口,且利用所述 逻辑端口在所述第一终端与所述第二终端之间传输数据。 优选地,所述第一终端根据所述控制信息屏蔽所述第一终端上的 USB端 口的数据传输功能; 或, 所述第一终端更改所述第一终端上的 USB端口为逻 辑端口的步骤为: 若所述控制信息与预设参数值相符, 则所述第一终端屏蔽所述第一终端 上的 USB端口的所述数据传输功能; 否则, 所述第一终端更改所述第一终端 上的 USB端口为逻辑端口。
优选地, 所述更改所述第一终端上的 USB端口为逻辑端口的步骤之前, 该方法还包括:
在所述第一终端内配置所述逻辑端口的描述信息; 以及
所述第一终端向所述第二终端提供所述逻辑端口的所述描述信息, 由所 述第二终端确定与该第二终端连接的端口为所述逻辑端口。 优选地, 所述逻辑端口包括虚拟 COM端口或设备固件升级 DFU模式。 优选地, 所述第一终端读取预设的控制信息的步骤之前, 该方法还包括: 更改所述控制信息。
优选地, 所述控制信息是存储于所述第一终端内的非易失性存储器内的 签名信息;
所述更改所述控制信息的步骤包括:
釆用 AT命令更改所述签名信息; 或,
通过预设的专用模块更改所述签名信息。
为解决上述技术问题, 本发明提供一种终端设备, 其包括: 通用串行总 线 USB端口、 信息读取单元和控制处理单元; 其中,
所述 USB端口设置为建立与第二终端之间的连接;
所述信息读取单元设置为读取预设的控制信息;
所述控制处理单元设置为:
根据所述控制信息, 屏蔽所述 USB端口的数据传输功能; 或,
更改所述 USB端口为逻辑端口,且利用所述逻辑端口在所述终端设备与 所述第二终端之间传输数据。
优选地, 所述控制处理单元包括:
判断单元, 其设置为判断所述控制信息与预设参数值是否相符, 得到判 断结果;
第一处理单元, 其设置为在所述判断结果为所述控制信息与所述预设参 数值相符时, 屏蔽所述 USB端口的所述数据传输功能;
第二处理单元, 其设置为在所述判断结果为所述控制信息与所述预设参 数值不相符时, 更改所述 USB端口为逻辑端口; 以及
传输处理单元 , 其设置为利用所述逻辑端口在所述终端设备与所述第二 终端之间传输数据。
优选地, 所述终端设备还包括: 信息配置单元, 其设置为配置所述逻辑端口的描述信息;
所述第二处理单元包括: 结果识别单元与信息提供单元; 其中, 所述结果识别单元其设置为识别所述判断结果为所述控制信息与所述预 设参数值不相符;
所述信息提供单元其设置为将所述逻辑端口的所述描述信息提供给所述 第二终端,以由所述第二终端确定与该第二终端连接的端口为所述逻辑端口。
优选地, 所述终端设备还包括信息更改单元, 其设置为更改所述控制信 息。
与现有技术相比, 本发明的实施例提供的技术方案具有以下优点: 本发明实施例提供的技术方案中, 第一终端基于预设的控制信息, 对连 接第一终端与第二终端的 USB端口的数据传输功能进行灵活的控制处理,根 据控制信息来选择屏蔽 USB端口, 以规避如固化设计的通过 USB端口更新 第一终端内的软件的过程, 免去移动终端用户对该过程的参与, 提高用户体 验; 或根据控制信息更改 USB端口为逻辑端口, 以便在通过 USB端口传输 第一终端与第二终端之间的数据, 如更新第一终端内的软件时, 规避需要第 一终端上配置 USB端口的驱动程序的问题,而釆用逻辑端口来传输相关数据。
并且, 本发明的是实施例中, 控制信息被存储在非易失性存储器内, 具 体形式可表现为签名信息,并且在签名信息为预设参数值时,屏蔽 USB端口, 而在签名信息与预设参数值不相符时, 更改 USB端口, 并执行相关数据传输 过程, 从而确保 USB端口屏蔽操作难以被恶意或误执行。
附图概述
图 1是本发明的实施例中控制通用串行总线 USB端口数据传输功能的方 法流程图;
图 2是本发明的实施例中终端设备的结构示意图;
图 3是本发明的实施例中终端设备的另一结构示意图; 以及
图 4是本发明的实施例中控制 USB端口的数据传输功能的流程图。 本发明的较佳实施方式
本发明的实施例中, 通过在第一终端如上述移动终端内设置控制信息, 来控制 USB端口的数据传输功能。
下面将结合附图及具体实施例对本发明的技术方案作详细描述。
参见图 1 , 图 1是本发明的实施例中控制通用串行总线端口数据传输功 能的方法流程图, 该流程可包括以下步骤:
步骤 101、 第一终端与第二终端之间建立连接; 该连接包括通过所述第 一终端与所述第二终端之间的 USB端口建立的连接。
第一终端如上述移动终端, 第二终端如上述计算机。 实际应用中, 移动 终端与计算机之间的连接还包括基于 UART建立的连接。
步骤 102、 第一终端读取预设的控制信息。
本发明的实施例中,控制信息可预设于移动终端内的非易失性存储器中, 具体为签名信息。可釆用的非易失性存储器包括如 Flash等,对应的签名信息 则为 Flash签名。
步骤 103、 第一终端根据该控制信息, 屏蔽第一终端上 USB端口的数据 传输功能; 或, 更改第一终端上的 USB端口为逻辑端口, 且利用逻辑端口在 第一终端与第二终端之间传输数据。 本发明的实施例中, 控制信息的具体形式可以是字符串或其他; 具体实 现中, 第一终端可将读取到的控制信息与预设的参数值作比对, 判断控制信 息与预设参数值是否相符, 若相符, 则对 USB端口作屏蔽处理; 否则, 更改 USB端口。 该比对处理的优点在于, 可预防因如 Flash签名的签名信息被恶 意修改或误修改, 而导致的 USB被屏蔽的情况发生。 因为除非合法修改, 否 则, 签名信息被改为预设参数值的几率不是太大, 从而可降低 USB端口被恶 意或误屏蔽, 导致合法修改难以被执行的可能性。 实际应用中, 也可设置若 控制信息与预设参数值相符, 则执行更改 USB端口的操作; 若不相符, 则执 行屏蔽 USB端口的操作。
实际应用中, 在移动终端交付移动终端用户使用之前, 相关技术人员可 将签名信息合法修改为预设参数值,以保证用户使用移动终端时,可不受 boot 程序所固化的提示用户是否进行 USB下载更新移动终端软件的打扰,并缩短 开机时间,提高用户体验;而在移动终端的研发阶段,相关技术人员可将 Flash 签名设置为与预设参数值不相符的其他值, 以便利用 USB端口, 对移动终端 进行专业的研发处理。 另外, 实际应用中, 可选择合适的签名信息地址空间, 以保证该地址空 间的独立性, 保证信息安全。
本发明的实施例中, 对于更改 USB端口为逻辑端口的做法, 其中, 逻辑 端口为虚拟串口, 具体可设置为虚拟 COM端口, 或设备固件升级(DFU, Device Firmware Upgrade )模式。 其中, 逻辑端口的描述信息包括: 逻辑端口 所在设备的描述符、 配置描述符, 等等。 更改 USB端口的具体做法可包括: 在移动终端与计算机进行交互时, 移动终端将预先配置于其上的逻辑端口的 描述信息提供给计算机, 计算机根据读取到的描述信息, 判断出所釆用的端 口将为逻辑端口如 COM端口, 进而由移动终端将其更改为逻辑端口如 COM 端口。
由于 COM端口是通用端口, 因此, 计算机不再提示用户要求安装端口 的驱动程序, 从而使用户能够更为便捷地操作移动终端, 且免去需要提供端 口驱动的成本。
本发明的实施例中, 签名信息可修改。 本发明的实施例列举两种修改方 式如下:
设置专用模块更改 Flash签名, 或者, 釆用在数据终端设备( DTE, Data
Terminal Equipment )和数据通信设备 ( DCE, Data Communication Equipment ) 间的接口命令, 即 AT命令, 更改 Flash签名。 其中, 专用模块如与应用相独立的小系统软件;
AT命令实例如:
ATAUPDATE:用于指示开启基于物理 USB端口传输数据的功能,在 Flash 签名的地址空间写入全部 Oxff;
所谓开启基于物理 USB端口传输数据的功能举例如,开启移动终端的软 件版本升级功能; ATACLOSEUPDATE: 用于指示屏蔽 USB端口, 在 Flash签名的地址空 间写入预设参数值。
实际应用中, 可不限于使用上述列举的更改 Flash签名的实施例。
另外, 实际应用中, 为执行本发明的实施例所提供的技术方案, 对于通 过 USB端口以及 UART端口连接的移动终端与计算机, 可预先将 USB端口 的连接功能切换至 UART端口上,从而,移动终端与计算机在物理上基于 USB 端口连接, 但实际上通过 UART端口连接。 由于 UART端口通常不需要驱动 程序来驱动, 因此, 也可规避计算机上需要配置 USB端口驱动程序的问题。 具体地, 上述切换可通过硬件实现, 如改变基带芯片上的特定管脚的电平, 使能够在移动终端与计算机物理上通过 USB端口连接后, 规避 USB端口, 而支持 UART端口。
参见图 2, 图 2是本发明的实施例中终端设备的结构示意图。 图 2中, 终端设备 200可包括: USB端口 201、信息读取单元 202和控制处理单元 203;
USB端口 201 , 用于建立与第二终端之间的连接;
信息读取单元 202, 用于读取预设的控制信息;
控制处理单元 203 , 用于根据所述控制信息, 屏蔽 USB端口 201的数据 传输功能; 或, 更改 USB端口 201为逻辑端口, 且利用逻辑端口传输终端设 备与第二终端之间的数据。 参见图 3 , 图 3是本发明的实施例中终端设备的另一结构示意图。 图 3 中, 终端设备 300中的控制处理单元 203 包括: 判断单元 301、 第一处理单 元 302、 第二处理单元 303和传输处理单元 304;
判断单元 301 , 用于判断控制信息与预设参数值是否相符, 得到判断结 果;
第一处理单元 302 , 用于在所述判断结果为控制信息与预设参数值相符 时, 屏蔽所述 USB端口的数据传输功能;
第二处理单元 303 , 用于在所述判断结果为控制信息与预设参数值不相 符时, 更改所述 USB端口为逻辑端口;
传输处理单元 304 , 用于利用逻辑端口传输终端设备与第二终端之间的 数据。
终端设备 300还包括: 信息配置单元 305 , 配置逻辑端口的描述信息; 第二处理单元 303包括: 结果识别单元与信息提供单元; (图 3中未示 出)
结果识别单元,用于识别所述判断结果为控制信息与预设参数值不相符; 信息提供单元, 用于根据结果识别单元的识别, 将所述逻辑端口的描述 信息提供给所述第二终端, 由第二终端确定与该第二终端连接的端口为逻辑 端口。
终端设备 300还包括: 信息更改单元 306, 用于更改控制信息。 该信息 更改单元 306的设置可方便根据需要更改控制信息, 实现对终端设备上 USB 端口功能使用的灵活控制。
终端设备 300还包括:
非易失性存储器 307 , 用于存储控制信息。
下面以 ADI提供的上述移动终端内的引导(boot )程序为例, 说明本发 明的实施例中控制 USB端口的过程。 参见图 4, 图 4是本发明的实施例中控 制 USB端口的数据传输功能的流程图, 该流程可包括以下步骤:
步骤 401、 ADI引导(boot )程序被启动。
步骤 402、 移动终端内的基带芯片读取非易失性存储器上的签名信息。 步骤 403、 基带芯片判断签名信息与预设参数值是否相符, 若是, 执行 步骤 409; 否则, 执行步骤 404。
步骤 404、 基带芯片将预先配置的 COM端口的描述信息传输给计算机。 步骤 405、计算机根据读取到的 COM端口的描述信息, 识别与其通信的 端口为 COM端口。
步骤 406、 基带芯片判断等待时长是否超过预设 3秒, 若是, 执行步骤 409; 否则, 执行步骤 407。
步骤 407、 基带芯片判断是否等待到计算机发送下载软件升级版本的下 载指令, 若是, 执行步骤 408; 否则, 执行步骤 406。
步骤 408、 基带芯片从计算机上下载更新移动终端内软件所需的动态数 据。
步骤 409、 移动终端进入用户操作进程。
该图 4所示实施例中,基带芯片根据签名信息来确定是屏蔽 USB端口的 功能,跳过基于 USB端口下载移动终端的更新软件的进程,还是基于对 USB 端口的更改, 釆用 COM端口执行软件更新进程, 从而有效控制 USB端口的 数据传输功能。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本发 明可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案 本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该软件产品存储在一个存储介质中, 包括若干指令用以使得一台终端设备执 行本发明各个实施例所述的方法。
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的普 通技术人员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和润 饰, 这些改进和润饰也应视为本发明的保护范围。 工业实用性 本发明提供的技术方案中, 第一终端基于预设的控制信息, 对连接第一 终端与第二终端的 USB端口的数据传输功能进行灵活的控制处理,根据控制 信息来选择屏蔽 USB端口, 以规避如固化设计的通过 USB端口更新第一终 端内的软件的过程, 免去移动终端用户对该过程的参与, 提高用户体验; 或 根据控制信息更改 USB端口为逻辑端口, 以便在通过 USB端口传输第一终 端与第二终端之间的数据, 如更新第一终端内的软件时, 规避需要第一终端 上配置 USB端口的驱动程序的问题, 而釆用逻辑端口来传输相关数据。

Claims

权 利 要 求 书
1、 一种控制通用串行总线端口数据传输功能的方法, 其包括: 第一终端与第二终端之间建立连接, 其中, 所述连接包括通过所述第一 终端与所述第二终端之间的通用串行总线 USB端口建立的连接; 所述第一终端读取预设的控制信息; 以及
所述第一终端根据所述控制信息屏蔽所述第一终端上的 USB端口的数据 传输功能; 或,
所述第一终端更改所述第一终端上的 USB端口为逻辑端口,且利用所述 逻辑端口在所述第一终端与所述第二终端之间传输数据。
2、 根据权利要求 1所述的方法, 其中, 所述第一终端根据所述控制信息 屏蔽所述第一终端上 USB端口的数据传输功能; 或, 所述第一终端更改所述 第一终端上的 USB端口为逻辑端口的步骤为:
若所述控制信息与预设参数值相符, 则所述第一终端屏蔽所述第一终端 上的 USB端口的所述数据传输功能; 否则, 所述第一终端更改所述第一终端 上的 USB端口为逻辑端口。
3、 根据权利要求 1或 2所述的方法, 其中, 所述第一终端更改所述第一 终端上的 USB端口为逻辑端口的步骤之前, 所述方法还包括:
在所述第一终端内配置所述逻辑端口的描述信息; 以及
所述第一终端向所述第二终端提供所述逻辑端口的所述描述信息, 由所 述第二终端确定与该第二终端连接的端口为所述逻辑端口。
4、 根据权利要求 3所述的方法, 其中, 所述逻辑端口包括:
虚拟 COM端口或设备固件升级 DFU模式。
5、 根据权利要求 1所述的方法, 其中, 所述第一终端读取预设的控制信 息的步骤之前, 所述方法还包括:
更改所述控制信息。
6、 根据权利要求 5所述的方法, 其中,
所述控制信息是存储于所述第一终端内的非易失性存储器内的签名信 息;
所述更改所述控制信息的步骤包括:
釆用 AT命令更改所述签名信息; 或,
通过预设的专用模块更改所述签名信息。
7、 一种终端设备, 其包括: 通用串行总线 USB端口、 信息读取单元和 控制处理单元; 其中,
所述 USB端口设置为建立与第二终端之间的连接;
所述信息读取单元设置为读取预设的控制信息;
所述控制处理单元设置为:
根据所述控制信息, 屏蔽所述 USB端口的数据传输功能; 或, 更改所述 USB端口为逻辑端口 ,且利用所述逻辑端口在所述终端设 备与所述第二终端之间传输数据。
8、 根据权利要求 7所述的终端设备, 其中, 所述控制处理单元包括: 判断单元, 其设置为判断所述控制信息与预设参数值是否相符, 得到判 断结果;
第一处理单元, 其设置为在所述判断结果为所述控制信息与所述预设参 数值相符时, 屏蔽所述 USB端口的所述数据传输功能;
第二处理单元, 其设置为在所述判断结果为所述控制信息与所述预设参 数值不相符时, 更改所述 USB端口为逻辑端口; 以及
传输处理单元, 其设置为利用所述逻辑端口在所述终端设备与所述第二 终端之间传输数据。
9、 根据权利要求 8所述的终端设备,
所述终端设备还包括: 信息配置单元, 其设置为配置所述逻辑端口 的描述信息;
所述第二处理单元包括: 结果识别单元与信息提供单元; 其中,
所述结果识别单元设置为识别所述判断结果为所述控制信息与所述 预设参数值不相符;
所述信息提供单元设置为根据所述结果识别单元的识别, 将所述逻 辑端口的所述描述信息提供给所述第二终端 , 以由所述第二终端确定与 该第二终端连接的端口为所述逻辑端口。
10、 根据权利要求 7所述的终端设备, 其中, 所述终端设备还包括信息 更改单元, 其设置为更改所述控制信息。
PCT/CN2009/075412 2009-05-11 2009-12-08 控制通用串行总线端口数据传输功能的方法及终端设备 WO2010130130A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910083746.2 2009-05-11
CN 200910083746 CN101556568A (zh) 2009-05-11 2009-05-11 控制通用串行总线端口数据传输功能的方法及终端设备

Publications (1)

Publication Number Publication Date
WO2010130130A1 true WO2010130130A1 (zh) 2010-11-18

Family

ID=41174687

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/075412 WO2010130130A1 (zh) 2009-05-11 2009-12-08 控制通用串行总线端口数据传输功能的方法及终端设备

Country Status (2)

Country Link
CN (1) CN101556568A (zh)
WO (1) WO2010130130A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462002A (zh) * 2013-09-16 2015-03-25 联想(北京)有限公司 一种信息处理的方法及电子设备
CN105373422A (zh) * 2014-08-29 2016-03-02 展讯通信(上海)有限公司 控制终端设备进入下载模式的方法、终端设备及计算机设备
CN109656852A (zh) * 2018-12-05 2019-04-19 郑州云海信息技术有限公司 一种sys_tf卡接口连接控制方法及系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556568A (zh) * 2009-05-11 2009-10-14 中兴通讯股份有限公司 控制通用串行总线端口数据传输功能的方法及终端设备
CN101710313B (zh) * 2009-11-23 2011-12-28 中兴通讯股份有限公司 一种可动态配置的usb端口复用方法、系统和装置
CN102323886B (zh) * 2011-05-30 2013-11-06 青岛海信移动通信技术股份有限公司 用于向终端写入特定信息的方法、装置和系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1753529A (zh) * 2004-09-23 2006-03-29 乐金电子(中国)研究开发中心有限公司 具有数据下载功能的移动通信终端及其控制方法
CN1936837A (zh) * 2005-09-22 2007-03-28 英华达(上海)电子有限公司 一种利用usb接口快速更新手机固件的方法
CN101030146A (zh) * 2007-04-10 2007-09-05 北京中星微电子有限公司 一种实现固件更新的方法和系统
CN101145106A (zh) * 2007-10-19 2008-03-19 中兴通讯股份有限公司 一种采用usb存储装置自动读取更新设备数据的方法
CN101303684A (zh) * 2007-05-08 2008-11-12 中兴通讯股份有限公司 一种供多种移动终端升级软件版本的方法
CN101556568A (zh) * 2009-05-11 2009-10-14 中兴通讯股份有限公司 控制通用串行总线端口数据传输功能的方法及终端设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1753529A (zh) * 2004-09-23 2006-03-29 乐金电子(中国)研究开发中心有限公司 具有数据下载功能的移动通信终端及其控制方法
CN1936837A (zh) * 2005-09-22 2007-03-28 英华达(上海)电子有限公司 一种利用usb接口快速更新手机固件的方法
CN101030146A (zh) * 2007-04-10 2007-09-05 北京中星微电子有限公司 一种实现固件更新的方法和系统
CN101303684A (zh) * 2007-05-08 2008-11-12 中兴通讯股份有限公司 一种供多种移动终端升级软件版本的方法
CN101145106A (zh) * 2007-10-19 2008-03-19 中兴通讯股份有限公司 一种采用usb存储装置自动读取更新设备数据的方法
CN101556568A (zh) * 2009-05-11 2009-10-14 中兴通讯股份有限公司 控制通用串行总线端口数据传输功能的方法及终端设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462002A (zh) * 2013-09-16 2015-03-25 联想(北京)有限公司 一种信息处理的方法及电子设备
CN104462002B (zh) * 2013-09-16 2017-08-29 联想(北京)有限公司 一种信息处理的方法及电子设备
CN105373422A (zh) * 2014-08-29 2016-03-02 展讯通信(上海)有限公司 控制终端设备进入下载模式的方法、终端设备及计算机设备
CN109656852A (zh) * 2018-12-05 2019-04-19 郑州云海信息技术有限公司 一种sys_tf卡接口连接控制方法及系统

Also Published As

Publication number Publication date
CN101556568A (zh) 2009-10-14

Similar Documents

Publication Publication Date Title
US10282313B2 (en) Universal serial bus smart hub
US8171502B2 (en) Methods, devices and computer program products for automatically installing device drivers from a peripheral device onto a host computer
US7562360B2 (en) Method and system for firmware downloads
CN103412769B (zh) 外接卡参数配置方法、设备以及系统
US6795872B2 (en) Maintaining at least partial functionality of a device as defined by a hardware configuration at a USB bus enumeration while the device memory is programmed
US20100132042A1 (en) Method for upgrading antivirus software and terminal and system thereof
WO2010130130A1 (zh) 控制通用串行总线端口数据传输功能的方法及终端设备
US20060136899A1 (en) Method for programming/updating software using USB OTG
EP2603874A1 (en) Host device and method for securely booting the host device with operating system code loaded from a storage device
WO2009082906A1 (fr) Procédé, équipement et système de mise à niveau de logiciel
WO2010115366A1 (zh) 设备驱动方法、装置及通信系统
JPH06348638A (ja) Pcmcia周辺装置
JP5129770B2 (ja) ネットワーク装置
WO2016058427A1 (zh) Usb无线网卡配置方法、主机、usb无线网卡及通信系统
KR20200060863A (ko) 임베디드 시스템의 펌웨어 관리 시스템 및 방법
CN104657161A (zh) 移动终端固件更新方法及装置
WO2012100504A1 (zh) 一种无线通讯方法、系统及无线通讯终端
WO2018099255A1 (zh) 一种传输模式配置方法、装置及系统、计算机存储介质
JP2013513874A (ja) データカードのアップグレーディング方法およびデバイス
US7424580B2 (en) Data transfer control device, electronic instrument, program and method of fabricating electronic instrument
KR100775210B1 (ko) 범용 시리얼 버스 통신 장치 프로그램 업데이트 방법
US20090157908A1 (en) Software Driver Device
CN106445571B (zh) 主机板及开机的方法
KR100463838B1 (ko) 유아이에이 시스템을 위한 부트로더의 프로그램 다운로드및 엔에프에스 개발환경 지원방법
US8095978B1 (en) Method and system for managing ports in a host bus adapter

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

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

Country of ref document: EP

Kind code of ref document: A1