WO2017161750A1 - 一种移动设备 - Google Patents

一种移动设备 Download PDF

Info

Publication number
WO2017161750A1
WO2017161750A1 PCT/CN2016/088699 CN2016088699W WO2017161750A1 WO 2017161750 A1 WO2017161750 A1 WO 2017161750A1 CN 2016088699 W CN2016088699 W CN 2016088699W WO 2017161750 A1 WO2017161750 A1 WO 2017161750A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
uart
mobile device
usb type
pins
Prior art date
Application number
PCT/CN2016/088699
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 US15/242,061 priority Critical patent/US20180011809A9/en
Publication of WO2017161750A1 publication Critical patent/WO2017161750A1/zh

Links

Images

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
    • 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
    • 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

  • Embodiments of the present invention relate to a mobile device, and more particularly to a mobile device that can read UART data through a USB Type-C interface.
  • UART Log data records the operational status of the mobile device, which can be used to debug various functions of the mobile device. Therefore, software and hardware engineers need to read and analyze the UART Log data when analyzing the faults that occur in the use of mobile devices.
  • the current mobile device peripheral parts are basically only equipped with a universal serial bus (USB) interface, and the charging and data transmission are performed through the USB interface.
  • USB universal serial bus
  • the URAT Log data cannot be read via the USB interface.
  • the UART data read cable can be connected to the UART TxD and UART RxD pins of the mobile device processor (CPU) to receive and output UART information.
  • the teardown process may cause damage to components such as LCD/touch buttons on mobile devices.
  • a mobile device in accordance with an embodiment of the present invention, includes a CPU, a USB Type-C interface, and a switching circuit.
  • the switching circuit is configured to switch the connection lines of the two preset pins of the USB Type-C interface to the UART TxD and UART RxD pins connected to the CPU when detecting that the UART cable is inserted in the USB Type-C interface. .
  • the switching circuit is configured to determine the type of cable inserted in the USB Type-C interface by detecting the resistance value of the CC1 and/or CC2 pins of the USB Type-C interface.
  • the two preset pins of the USB Type-C interface are the SBU1 and SBU2 pins of the USB Type-C interface.
  • the user device is a smartphone.
  • the UART Log data can be read through the USB Type-C interface without having to disassemble the mobile device when reading the UART data.
  • Figure 1 shows a schematic diagram of socket pin assignment according to the USB Type-C specification
  • FIG. 2 shows a schematic diagram of a principle of a mobile device in accordance with one embodiment of the present invention.
  • USB Type-C interface is in USB 3.1 After the era, the interface's highlights are support for USB interface double-sided insertion, slimmer design, faster transfer speed (up to 10Gbps) and more powerful power transfer (up to 100W). With these powerful advantages, the USB Type-C interface has been favored and promoted by first-tier mobile device manufacturers such as Apple (APPLE) and Nokia (NOKIA). Mobile devices equipped with only USB Type-C interfaces are becoming a trend.
  • APPLE Apple
  • NOTEA Nokia
  • FIG. 1 shows, in a front view, a schematic representation of the distribution of socket pins in accordance with the USB Type-C specification. Table 1 shows the identification, name and description of the 24 pins.
  • CC1 and CC2 are two key pins that have many functions, such as detecting connections, distinguishing between front and back, configuring VBUS pins, and configuring other modes (such as connecting audio accessories, PCIE).
  • Two sets of TX/RX differential signal pairs are used for data transmission of the USB 3.1 standard, and D+/D-differential signal pairs are used for data transmission compatible with the USB 2.0 standard.
  • the SBU1 and SBU1 pins are reserved pins of the Type-C specification for extended function use.
  • the USB Type-C interface also includes four ground pins and four power pins.
  • the mobile device 20 includes a CPU 22, a USB Type-C interface 26, and a switching circuit 24.
  • the switching circuit 24 is configured to switch the connection lines of the two preset pins of the USB Type-C interface to the CPU when detecting that the cable for reading the UART Log data is inserted in the USB Type-C interface.
  • UART TxD and UART RxD pins are configured to switch the connection lines of the two preset pins of the USB Type-C interface to the CPU when detecting that the cable for reading the UART Log data is inserted in the USB Type-C interface.
  • UART TxD and UART RxD pins UART TxD and UART RxD pins.
  • the preset pins can be reserved for unused SBU1 and SBU2 pins using the USB Type-C specification.
  • the switching circuit 24 switches the state to the SBU1/SBU2 pins of the Type-C interface 26 to the SBU1/SBU2 of the CPU 22 side, respectively.
  • the switching circuit 24 switches the state to the SBU1/SBU2 of the Type-C interface 26 to be connected to the UART TxD/UART RxD of the CPU 22, thereby establishing a UART connection and reading the UART. Log data.
  • the use of the two pins SBU1 and SBU2 for reading the UART Log data is merely an example and not a limitation.
  • the mobile device can only support USB2.0 data transmission and charging, although the mobile device is equipped with the USB full-featured Type-C interface, two of the TX/RX differential signal pair pins are unused. Therefore, it is also possible to use 2 of these 8 pins for reading the UART Log data.
  • the USB full-featured Type-C interface support USB 3.0
  • the type of the cable inserted in the USB Type-C interface can be determined by judging the use state of the pins other than the aforementioned preset pins in the USB Type-C interface. For example, when the type of cable inserted is a UART cable, many pins other than the aforementioned preset pins in the USB Type-C interface are in a "dangling" high resistance state. As an example, the type of cable inserted in the USB Type-C interface, that is, the USB Type-C cable or the UART cable, can be determined by detecting the resistance value of the CC1 and/or CC2 pins of the USB Type-C interface.
  • Examples of mobile devices in accordance with embodiments of the present invention include, but are not limited to, cellular phones, smart phones, media players, or portable computers similar to tablets, and any other mobile device that records UART Log data.
  • a switching circuit is added in the mobile device, and the USB can be passed through The Type-C interface reads the UART data without having to disassemble it.

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)

Abstract

一种移动设备(20),其包括CPU(22)、USB Type‑C接口(26)和切换电路(24)。切换电路(24)被配置为在检测到USB Type‑C接口(26)中插入的是UART线缆时,将USB Type‑C接口(26)的两个预设引脚(SBU1、SBU2)的连接线切换到连接CPU(22)的UART TxD和UART RxD引脚。

Description

一种移动设备
相关申请的交叉参考
本申请要求于2016年3月25日提交中国专利局、申请号为201610177043.6、发明名称为“一种移动设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明的实施例涉及一种移动设备,特别地,涉及一种可以通过USB Type-C接口读取UART数据的移动设备。
背景技术
通用异步收发器(URAT)日志(Log)数据记录了移动设备的运行状态信息,这些信息可以用于移动设备的各项功能的调试。因此,软件和硬件工程师在分析解决移动设备的使用中出现的故障(bug)时都需要读取UART Log数据,并对其进行分析。
另一方面,当前的移动设备为追求便携性,其整机部分外设接口基本只配备通用串行总线(USB)接口,通过USB接口进行充电和数据的传输。但是,通过USB接口无法进行URAT Log数据的读取。
当前,在移动设备整机部分出现bug需要软件和硬件工程师进行分析时,只能进行拆机,然后焊接UART数据读取线缆,以便进行UART Log数据的读取。具体而言,可以将UART数据读取线缆连接到移动设备处理器(CPU)的接收和输出UART信息的UART TxD和UART RxD引脚。然而,拆机过程中有可能会造成移动设备的诸如LCD/触摸按键等元器件的损坏。
发明内容
因此,本发明的目的在于针对现有技术的前述不足,提供一种不必对移 动设备进行拆机即可读取UART Log数据的方案。
根据本发明的实施方式,提供一种移动设备,其包括CPU、USB Type-C接口和切换电路。切换电路被配置为在检测到USB Type-C接口中插入的是UART线缆时,将USB Type-C接口的两个预设引脚的连接线切换到连接CPU的UART TxD和UART RxD引脚。
在一个实施例中,切换电路被配置为通过检测USB Type-C接口的CC1和/或CC2引脚的电阻值来判断USB Type-C接口中插入的线缆类型。
在一个实施例中,USB Type-C接口的两个预设引脚为USB Type-C接口的SBU1和SBU2引脚。
在一个实施例中,用户设备是智能手机。
根据本发明的实施方式,可以通过USB Type-C接口来读取UART Log数据,而不必在读取UART数据时对移动设备进行拆机。
附图概述
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了根据USB Type-C规范的插座引脚分配示意图;
图2示出了根据本发明一个实施方式的移动设备的原理示意图。
本发明的较佳实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
通用串行总线(USB)在2013年推出了新规范USB 3.1,并且在2014年8月公告了USB新增加的Type-C规范。USB Type-C接口是在USB 3.1 时代之后出现的,该接口的亮点在于支持USB接口双面插入、更加纤薄的设计、更快的传输速度(最高10Gbps)以及更强悍的电力传输(最高100W)。凭借这些强大的优势,USB Type-C接口得到了比如苹果(APPLE)、诺基亚(NOKIA)等一线移动设备生产商的青睐和大力推动,只配备USB Type-C接口的移动设备日益成为趋势。
USB开发者论坛(USB-IF)于2014年8月11日发布了USB Type-C线缆和连接器规范(Universal Serial Bus Type-C Cable and Connector Specification)(版本1.0),定义了Type-C插座接口的24个引脚及其分配。图1以主视图的形式示出了根据该USB Type-C规范的插座引脚的分配示意图。表1示出了24个引脚的标识、名称和描述。
表1
Figure PCTCN2016088699-appb-000001
根据USB Type-C规范,CC1和CC2是两个关键的引脚,作用很多,比如探测连接、区分正反面,配置VBUS引脚,配置其他模式(比如接音频配件、PCIE)等。两组TX/RX差分信号对用于USB3.1标准的数据传输,D+/D-差分信号对用于兼容USB2.0标准的数据传输。SBU1和SBU1引脚是Type-C规范的预留引脚,用于扩展功能使用。USB Type-C接口还包括4个接地引脚和4个电源引脚。
图2示出了根据本发明一个实施方式的移动设备20的原理示意图。移动设备20包括CPU 22、USB Type-C接口26和切换电路24。切换电路24被配置为在检测到USB Type-C接口中插入的是用于读取UART Log数据的线缆时,将USB Type-C接口的两个预设引脚的连接线切换到CPU的UART TxD和UART RxD引脚。从而,可以通过在USB Type-C接口26插入UART数据读取线缆来读取UART Log数据。
作为示例,预设引脚可以使用USB Type-C规范所保留未用的SBU1和SBU2引脚。当插入正常的USB Type-C线缆时,切换电路24切换状态至Type-C接口26的SBU1/SBU2引脚分别连接到CPU 22端的SBU1/SBU2。当插入读取UART Log数据的Type-C线缆时,切换电路24切换状态至Type-C接口26的SBU1/SBU2分别连接到CPU 22端的UART TxD/UART RxD,从而建立UART连接,读取UART Log数据。
应当理解,使用SBU1和SBU2这两个引脚用于读取UART Log数据仅是示例而非限制性的。在当前移动设备仅能支持USB2.0数据传输和充电的情况下,虽然该移动设备配备了该USB全功能Type-C接口,但是其中的两组TX/RX差分信号对引脚是未被使用的,因此也可以使用这8个引脚中的2个引脚,用于UART Log数据的读取。在未来与配备USB全功能Type-C接口相交互的大部分设备都支持USB3.0的情况下,也可以使用用于兼容USB2.0标准的数据传输的D+/D-引脚中的2个引脚。
根据本发明的实施方式,可以通过判断USB Type-C接口中前述预设引脚之外的其他引脚的使用状态来判断USB Type-C接口中插入的线缆类型。例如,当插入的线缆类型是UART线缆时,USB Type-C接口中的前述预设引脚之外的很多引脚处于“悬空”的高阻值状态。作为示例,可以通过检测USB Type-C接口的CC1和/或CC2引脚的电阻值来判断USB Type-C接口中插入的线缆类型,即,是USB Type-C线缆还是UART线缆。
本发明实施方式所述的移动设备的示例包括但不限于蜂窝电话、智能电话、媒体播放器、或类似于平板电脑的便携式计算机、以及任何其他记录了UART Log数据的移动设备。
根据本发明的实施方式,在移动设备中增加切换电路,可以通过USB  Type-C接口来读取UART数据,而不必拆机。
已经出于示出和描述的目的给出了本发明的说明书,但是其并不意在是穷举的或者限制于所公开形式的发明。本领域技术人员可以想到很多修改和变体。在不脱离本发明精神的前提下,做出的所有修改和替换都将落入所附权利要求定义的本发明保护范围内。

Claims (6)

  1. 一种移动设备,包括:
    USB Type-C接口;以及
    切换电路,被配置为在检测到所述USB Type-C接口中插入的是UART线缆时,将所述USB Type-C接口的预设引脚的连接线切换到连接所述移动设备的UART相关接口。
  2. 根据权利要求1所述的移动设备,其中,所述切换电路被配置为通过检测所述USB Type-C接口的CC1和/或CC2引脚的电阻值来判断所述USB Type-C接口中插入的线缆类型。
  3. 根据权利要求1或2所述的移动设备,其中,所述USB Type-C接口的预设引脚为USB Type-C接口的SBU1和SBU2引脚。
  4. 根据权利要求3所述的移动设备,其中,所述UART相关接口为UART TxD和UART RxD引脚。
  5. 根据权利要求4所述的移动设备,其中,所述UART TxD和UART RxD引脚为所述移动设备的处理器的固定引脚。
  6. 根据权利要求1或2所述的移动设备,其中,用户设备是智能手机。
PCT/CN2016/088699 2016-03-25 2016-07-05 一种移动设备 WO2017161750A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/242,061 US20180011809A9 (en) 2016-03-25 2016-08-19 Mobile device and method for reading uart data

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610177043.6A CN105868140A (zh) 2016-03-25 2016-03-25 一种移动设备
CN201610177043.6 2016-03-25

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/242,061 Continuation US20180011809A9 (en) 2016-03-25 2016-08-19 Mobile device and method for reading uart data

Publications (1)

Publication Number Publication Date
WO2017161750A1 true WO2017161750A1 (zh) 2017-09-28

Family

ID=56624956

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088699 WO2017161750A1 (zh) 2016-03-25 2016-07-05 一种移动设备

Country Status (2)

Country Link
CN (1) CN105868140A (zh)
WO (1) WO2017161750A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170364114A1 (en) * 2016-06-17 2017-12-21 Qualcomm Incorporated Universal serial bus (usb) cable type detection and control techniques
CN112148543A (zh) * 2020-10-10 2020-12-29 重庆蓝岸通讯技术有限公司 基于故障便携终端的数据传输线路及方法

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874154A (zh) * 2017-01-22 2017-06-20 珠海市魅族科技有限公司 移动终端设备和uart调试系统
CN108038034A (zh) * 2017-12-12 2018-05-15 北京小米移动软件有限公司 电子设备调试方法、转接器、装置及存储介质
CN112214433B (zh) * 2019-07-09 2022-04-15 北京小米移动软件有限公司 终端设备及其控制方法、辅助设备及存储介质
CN111274076A (zh) * 2020-02-10 2020-06-12 深圳宝龙达信创科技股份有限公司 调试系统
CN111400144A (zh) * 2020-03-18 2020-07-10 上海闻泰信息技术有限公司 故障信息获取方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090287852A1 (en) * 2008-05-14 2009-11-19 Moxa Inc. Method for disconnecting a transceiver from a bus in multipoint/multidrop architecture
CN101937414A (zh) * 2010-08-26 2011-01-05 惠州Tcl移动通信有限公司 Uart和usb共用微型usb接口的方法及装置
CN102750252A (zh) * 2012-05-29 2012-10-24 惠州Tcl移动通信有限公司 Usb/uart接口复用电路及使用该电路的电子设备
CN103856411A (zh) * 2012-12-03 2014-06-11 上海斐讯数据通信技术有限公司 路由器的uart接口连接的切换系统
CN103888873A (zh) * 2014-03-04 2014-06-25 苏州佳世达电通有限公司 电子装置、uart输出系统及方法
CN104881391A (zh) * 2015-06-10 2015-09-02 赛尔康技术(深圳)有限公司 一种USB Type-C接口的识别电路

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090287852A1 (en) * 2008-05-14 2009-11-19 Moxa Inc. Method for disconnecting a transceiver from a bus in multipoint/multidrop architecture
CN101937414A (zh) * 2010-08-26 2011-01-05 惠州Tcl移动通信有限公司 Uart和usb共用微型usb接口的方法及装置
CN102750252A (zh) * 2012-05-29 2012-10-24 惠州Tcl移动通信有限公司 Usb/uart接口复用电路及使用该电路的电子设备
CN103856411A (zh) * 2012-12-03 2014-06-11 上海斐讯数据通信技术有限公司 路由器的uart接口连接的切换系统
CN103888873A (zh) * 2014-03-04 2014-06-25 苏州佳世达电通有限公司 电子装置、uart输出系统及方法
CN104881391A (zh) * 2015-06-10 2015-09-02 赛尔康技术(深圳)有限公司 一种USB Type-C接口的识别电路

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170364114A1 (en) * 2016-06-17 2017-12-21 Qualcomm Incorporated Universal serial bus (usb) cable type detection and control techniques
US10761553B2 (en) * 2016-06-17 2020-09-01 Qualcomm Incorporated Universal serial bus (USB) cable type detection and control techniques
CN112148543A (zh) * 2020-10-10 2020-12-29 重庆蓝岸通讯技术有限公司 基于故障便携终端的数据传输线路及方法
CN112148543B (zh) * 2020-10-10 2024-05-14 重庆蓝岸科技股份有限公司 基于故障便携终端的数据传输线路及方法

Also Published As

Publication number Publication date
CN105868140A (zh) 2016-08-17

Similar Documents

Publication Publication Date Title
WO2017161750A1 (zh) 一种移动设备
CN108259803B (zh) 电子终端设备、电视终端、信号输入电路及方法
CN107111588B (zh) 经由USB端口使用PCIe协议的数据传输
WO2018176901A1 (zh) 转接头、终端设备和转接头系统
US9418032B2 (en) Adaptive accessory detection and mode negotiation
JP6244042B2 (ja) USB Type−Cの付属装置ドッキングモードに移行する方法、装置及びコンピュータプログラム製品
WO2017161746A1 (zh) 用户设备
TWI744483B (zh) 通用串列匯流排(usb)設備、usb集線器及操作usb集線器之方法
US20170277650A1 (en) User equipment and method for data transmission
US20110191503A1 (en) Motherboard Compatible with Multiple Versions of Universal Serial Bus (USB) and Related Method
CN108920397B (zh) 设备识别方法、装置、存储介质及电子设备
TW201411415A (zh) 在桌上型電腦或行動計算環境中使用智慧型手機的方法
US20170039153A1 (en) Mobile device and method for reading uart data
EP3553897B1 (en) Adaptor, device identifying method and device identifying apparatus
CN109062846B (zh) 通用串行总线装置及其操作方法
TWM560725U (zh) 可延伸與擴充式usb 3.1集線裝置
WO2018045870A1 (en) Usb type-c connector with a secondary port
CN109346883B (zh) 一种实现Type-C接口正反插的系统
TWM496204U (zh) 通用電力傳送纜線、應用於通用序列匯流排纜線的電力傳送控制器和通用序列匯流排纜線
CN111886585B (zh) 终端设备、调试卡及调试方法
US9547615B2 (en) Peripheral protocol negotiation
US10515025B2 (en) Communication protocol adapter
TWM539723U (zh) 連接器之磁性轉接頭結構
CN108874716B (zh) 一种用于便携设备的充电通信连接装置及其方法
TWI394045B (zh) 攜帶型電子裝置及其附件鑒別方法

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16895100

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16895100

Country of ref document: EP

Kind code of ref document: A1