CN113055515B - Ultra-wideband data transmission method and equipment support - Google Patents
Ultra-wideband data transmission method and equipment support Download PDFInfo
- Publication number
- CN113055515B CN113055515B CN202110241655.8A CN202110241655A CN113055515B CN 113055515 B CN113055515 B CN 113055515B CN 202110241655 A CN202110241655 A CN 202110241655A CN 113055515 B CN113055515 B CN 113055515B
- Authority
- CN
- China
- Prior art keywords
- wideband
- ultra
- equipment
- external
- serial bus
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/04—Supports for telephone transmitters or receivers
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4072—Drivers or receivers
- G06F13/4077—Precharging or discharging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Power Sources (AREA)
Abstract
Description
技术领域technical field
本申请涉及通信技术领域,具体涉及一种超宽带数据传输方法及设备支架。The present application relates to the technical field of communication, and in particular to an ultra-wideband data transmission method and a device support.
背景技术Background technique
目前,如智能手机、平板电脑等电子设备可以通过无线通信协议与其它电子设备进行无线通信,进而实现数据在电子设备与其它电子设备间的传输。然而,随着无线通信技术的快速发展,新的无线通信协议不断涌现,由于电子设备在出厂后硬件固定,导致其无法支持新的无线通信协议。比如,为了使得电子设备能够支持超宽带通信协议,需要在电子设备现有硬件基础上增加用于实现超宽带(Ultra Wide Band,UWB)通信协议的硬件,此外,还需要对电子设备的结构设计以及电路布局等进行调整,存在较大的实现成本。At present, electronic devices such as smart phones and tablet computers can communicate wirelessly with other electronic devices through wireless communication protocols, thereby realizing the transmission of data between the electronic devices and other electronic devices. However, with the rapid development of wireless communication technology, new wireless communication protocols are constantly emerging. Since the hardware of the electronic device is fixed after leaving the factory, it cannot support the new wireless communication protocol. For example, in order to enable electronic devices to support ultra-wideband communication protocols, hardware for implementing ultra-wideband (Ultra Wide Band, UWB) communication protocols needs to be added to the existing hardware of electronic devices. In addition, structural design of electronic devices is also required As well as adjustments to the circuit layout, etc., there is a large implementation cost.
发明内容Contents of the invention
本申请提供了一种超宽带数据传输方法及设备支架,能够低成本的实现电子设备对超宽带通信协议的支持。The present application provides an ultra-wideband data transmission method and a device support, which can realize the support of electronic equipment for the ultra-wideband communication protocol at low cost.
第一方面,本申请提供一种超宽带数据传输方法,应用于电子设备,所述超宽带数据传输方法包括:In a first aspect, the present application provides an ultra-wideband data transmission method, which is applied to electronic equipment, and the ultra-wideband data transmission method includes:
在接收到用于触发超宽带数据传输的手势指令时,通过所述电子设备的通用串行总线接口向设备支架提供电力;upon receipt of a gesture instruction for triggering UWB data transmission, providing power to the device holder through the USB interface of the electronic device;
通过所述通用串行总线接口与所述设备支架进行通信数据的传输;performing communication data transmission with the equipment rack through the universal serial bus interface;
其中,所述通信数据由所述设备支架通过超宽带通信协议与外部超宽带设备进行传输。Wherein, the communication data is transmitted by the equipment bracket with an external ultra-wideband device through an ultra-wideband communication protocol.
第二方面,本申请还提供一种超宽带数据传输方法,应用于设备支架,所述设备支架包括通用串行总线接口和超宽带组件,所述超宽带数据传输方法包括:In the second aspect, the present application also provides an ultra-wideband data transmission method, which is applied to an equipment rack, and the equipment rack includes a universal serial bus interface and an ultra-wideband component, and the ultra-wideband data transmission method includes:
通过所述通用串行总线接口接收电子设备提供的电力;receiving power provided by the electronic device through the universal serial bus interface;
通过所述通用串行总线接口与所述电子设备进行通信数据的传输;以及performing communication data transmission with the electronic device through the universal serial bus interface; and
通过所述超宽带组件采用超宽带通信协议与外部超宽带设备进行所述通信数据的传输。The communication data is transmitted with an external ultra-wideband device through the ultra-wideband component using an ultra-wideband communication protocol.
第三方面,本申请还提供一种设备支架,包括通用串行总线接口和超宽带组件,其中,In a third aspect, the present application also provides an equipment bracket, including a universal serial bus interface and an ultra-wideband component, wherein,
所述通用串行总线接口用于接收电子设备提供的电力;以及The universal serial bus interface is used to receive power provided by the electronic device; and
用于与所述电子设备进行通信数据的传输;For the transmission of communication data with the electronic device;
所述超宽带组件用于通过超宽带通信协议与外部超宽带设备进行所述通信数据的传输。The ultra-wideband component is used for transmitting the communication data with an external ultra-wideband device through an ultra-wideband communication protocol.
本申请中,通过电子设备的通用串行总线接口向设备支架提供电力,以及通过通用串行总线接口与设备支架进行通信数据的传输,该通信数据由设备支架通过超宽带通信协议与外部超宽带设备进行传输,可以是将来自于电子设备的通信数据发送至外部超宽带设备,也可以是将来自于外部超宽带设备的通信数据传输至电子设备。以此,通过复用电子设备的通用串行总线接口,通过通用串行总线接口向设备支架供电,将设备支架作为电子设备与外部超宽带设备的通信桥梁,避免了对电子设备自身的改造,能够低成本地实现电子设备对超宽带通信协议的支持。In this application, power is provided to the equipment rack through the universal serial bus interface of the electronic equipment, and communication data is transmitted with the equipment rack through the universal serial bus interface. The transmission by the device may be to send the communication data from the electronic device to the external ultra-wideband device, or to transmit the communication data from the external ultra-wideband device to the electronic device. In this way, by multiplexing the universal serial bus interface of the electronic equipment, power is supplied to the equipment bracket through the universal serial bus interface, and the equipment bracket is used as a communication bridge between the electronic equipment and the external ultra-wideband equipment, avoiding the modification of the electronic equipment itself, The electronic device can realize the support of the ultra-wideband communication protocol at low cost.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本申请实施例提供的超宽带数据传输方法的一流程示意图。FIG. 1 is a schematic flowchart of an ultra-wideband data transmission method provided by an embodiment of the present application.
图2是本申请实施例中电子设备和设备支架的一实体示意图。Fig. 2 is a schematic diagram of an entity of an electronic device and a device bracket in an embodiment of the present application.
图3是本申请实施例中电子设备提供的通信触发控件的一示例图。Fig. 3 is an example diagram of a communication trigger control provided by an electronic device in an embodiment of the present application.
图4是本申请实施例中电子设备与外部超宽带设备通过设备支架进行通信数据传输的一示意图。Fig. 4 is a schematic diagram of communication data transmission between an electronic device and an external UWB device through a device bracket in an embodiment of the present application.
图5是本申请实施例中电子设备提供的设备控制界面的一示例图。Fig. 5 is an example diagram of a device control interface provided by the electronic device in the embodiment of the present application.
图6是本申请实施例提供的超宽带数据传输方法的另一流程示意图。FIG. 6 is another schematic flowchart of the ultra-wideband data transmission method provided by the embodiment of the present application.
图7是本申请实施例提供的超宽带数据传输装置的一结构示意图。FIG. 7 is a schematic structural diagram of an ultra-wideband data transmission device provided by an embodiment of the present application.
图8是本申请实施例提供的电子设备的一结构示意图。FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图9是本申请实施例提供的设备支架的一结构示意图。Fig. 9 is a schematic structural diagram of the equipment rack provided by the embodiment of the present application.
图10是本申请实施例提供的设备支架的另一结构示意图。Fig. 10 is another schematic structural view of the equipment bracket provided by the embodiment of the present application.
图11是本申请实施例提供的超宽带数据传输方法的又一流程示意图。Fig. 11 is another schematic flow chart of the ultra-wideband data transmission method provided by the embodiment of the present application.
具体实施方式Detailed ways
应当说明的是,本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。It should be noted that the terms "first", "second" and "third" in this application are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments Other steps or modules inherent to these processes, methods, products or devices are also included.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
本申请实施例提供一种超宽带数据传输方法、超宽带数据传输装置、存储介质、电子设备以及设备支架,其中超宽带数据传输方法的执行主体可以是本申请实施例提供的超宽带数据传输装置,或者集成了该超宽带数据传输装置的电子设备,其中该超宽带数据传输装置可以采用硬件或者软件的方式实现。其中,电子设备可以是智能手机、平板电脑、掌上电脑、笔记本电脑等配置有处理器而具有处理能力的设备。An embodiment of the present application provides an ultra-wideband data transmission method, an ultra-wideband data transmission device, a storage medium, electronic equipment, and a device bracket, wherein the execution subject of the ultra-wideband data transmission method may be the ultra-wideband data transmission device provided in the embodiment of the present application , or an electronic device integrated with the ultra-wideband data transmission device, wherein the ultra-wideband data transmission device can be implemented in a hardware or software manner. Wherein, the electronic device may be a device equipped with a processor and capable of processing, such as a smart phone, a tablet computer, a palmtop computer, and a notebook computer.
请参照图1,图1为本申请实施例提供的超宽带数据传输方法的流程示意图,该超宽带数据传输方法实施于电子设备,如图1所示,本申请实施例提供的超宽带数据传输方法的流程可以如下:Please refer to Fig. 1. Fig. 1 is a schematic flow chart of the ultra-wideband data transmission method provided by the embodiment of the present application. The ultra-wideband data transmission method is implemented in electronic equipment. The flow of the method can be as follows:
在110中,在接收到用于触发超宽带数据传输的手势指令时,通过电子设备的通用串行总线接口向设备支架提供电力。In 110, power is supplied to the device rack through the USB interface of the electronic device upon receipt of a gesture command for triggering UWB data transmission.
可以理解的是,目前,诸如智能手机、平板电脑等电子设备均配置有通用串行总线接口,利用该通用串行总线接口,可以对将电子设备连接至电源适配器,由电源适配器对电子设备进行充电,也可以将电子设备连接至电脑,从而通过电脑对电子设备进行操作,或者备份数据等。It can be understood that at present, electronic devices such as smart phones and tablet computers are equipped with a universal serial bus interface, and by using the universal serial bus interface, the electronic device can be connected to the power adapter, and the power adapter can control the electronic device. Charging, you can also connect the electronic device to the computer, so as to operate the electronic device through the computer, or back up data, etc.
本申请实施例中对于电子设备配置的通用串行总线接口的类型不作具体限制,可由本领域技术人员根据实际需要进行选择。比如,本申请实施例中,电子设备采用Type-C类型的通用串行总线接口。In the embodiment of the present application, there is no specific limitation on the type of the universal serial bus interface configured on the electronic device, which can be selected by those skilled in the art according to actual needs. For example, in the embodiment of the present application, the electronic device adopts a Type-C universal serial bus interface.
应当说明的是,电子设备的通用串行总线接口支持OTG功能,利用OTG功能,电子设备可以“主机”和“外设”两种身份工作。本申请实施例中,设备支架通过电子设备的通用串行总线接口与电子设备建立连接之后,设备支架以“外设”的身份工作,相应的,电子设备以“主机”身份的工作,用以扩展电子设备的超宽带通信能力。It should be noted that the USB interface of the electronic device supports the OTG function. With the OTG function, the electronic device can work as a "host" and a "peripheral device". In the embodiment of the present application, after the device holder establishes a connection with the electronic device through the universal serial bus interface of the electronic device, the device holder works as a "peripheral device". Correspondingly, the electronic device works as a "host" to Expand the ultra-wideband communication capabilities of electronic devices.
其中,设备支架包括实现超宽带通信的必要硬件,包括但不限于超宽带单元以及超宽带天线等。Wherein, the equipment bracket includes necessary hardware for realizing UWB communication, including but not limited to UWB units and UWB antennas.
本申请实施例中,通过复用电子设备的通用串行总线接口向设备支架供电,由该设备支架协助电子设备实现超宽带数据传输,并且,仅在接收到用于触发超宽带数据传输的手势指令时,才向设备支架供电,能够降低电子设备的功耗,同时使得电子设备满足EMC认证以及SAR认证的要求。In the embodiment of the present application, power is supplied to the device holder through the USB interface of the multiplexed electronic device, and the device holder assists the electronic device in realizing UWB data transmission, and only when a gesture for triggering UWB data transmission is received The power is supplied to the device bracket only when the instruction is issued, which can reduce the power consumption of the electronic device, and at the same time make the electronic device meet the requirements of EMC certification and SAR certification.
应当说明的是,本申请实施例中对于设备支架的实体展示形式不作具体限制,可由本领域技术人员根据实际需要进行配置。比如,请参照图2,在电子设备为智能手机时,设备支架可以为指环支架,该指环支架吸附在智能手机背部,用于对智能手机进行支撑,另外,指环支架通过数据线一端的通用串行总线接口(图中未示出)接入智能手机的通用串行总线接口。It should be noted that, in the embodiment of the present application, there is no specific limitation on the physical display form of the device bracket, and it can be configured by those skilled in the art according to actual needs. For example, please refer to Figure 2. When the electronic device is a smart phone, the device bracket can be a ring bracket, and the ring bracket is adsorbed on the back of the smart phone to support the smart phone. The row bus interface (not shown in the figure) is connected to the universal serial bus interface of the smart phone.
本申请实施例中,电子设备在接收到用于触发超宽带数据传输的手势指令时,判定用户存在超宽带通信需求,此时利用自身配置的电池向连接设备支架的通用串行总线接口供电,从而通过该通用串行总线接口为设备支架提供电力。In the embodiment of the present application, when the electronic device receives a gesture instruction for triggering UWB data transmission, it determines that the user has UWB communication needs, and at this time uses its own configured battery to supply power to the Universal Serial Bus interface connected to the device bracket. Power is thus provided to the equipment rack through the USB interface.
应当说明的是,本申请实施例中对用于触发超宽带数据传输的手势指令的配置不作具体限制,可由本领域技术人员根据实际需要进行配置。It should be noted that, in the embodiment of the present application, there is no specific limitation on the configuration of the gesture command used to trigger the UWB data transmission, and it can be configured by those skilled in the art according to actual needs.
比如,请参照图3,电子设备在下拉菜单中提供有通信触发控件,配置手势指令为对该通信触发控件的单击手势,相应的,用户可以在需要电子设备与外部超宽带设备进行通信时,操作电子设备显示下拉菜单,并单击下拉菜单中的通信触发控件,向电子设备输入前述手势指令。此外,还可以配置为其它形式的手势,包括但不限于双击、摇一摇、熄屏手势等,具体可由本领域技术人员根据实际需要进行配置。For example, please refer to Figure 3. The electronic device provides a communication trigger control in the drop-down menu, and the gesture command is configured as a click gesture for the communication trigger control. Correspondingly, the user can , operate the electronic device to display the drop-down menu, and click the communication trigger control in the drop-down menu to input the aforementioned gesture instruction to the electronic device. In addition, other forms of gestures can also be configured, including but not limited to double-click, shake, screen-off gestures, etc., which can be configured by those skilled in the art according to actual needs.
在120中,通过通用串行总线接口与设备支架进行通信数据的传输;In 120, transmit the communication data with the equipment rack through the universal serial bus interface;
其中,通信数据由设备支架通过超宽带通信协议与外部超宽带设备进行传输。Wherein, the communication data is transmitted by the equipment bracket with the external ultra-wideband equipment through the ultra-wideband communication protocol.
如上,基于电子设备通过通用串行总线接口所提供的电力,设备支架开始工作。As above, based on the power provided by the electronic device through the USB interface, the device holder starts to work.
本申请实施例中,电子设备存在超宽带通信需求,当设备支架基于电子设备通过通用串行总线接口提供的电力开始工作后,电子设备通过其与设备支架之间连接的通用串行总线接口进行通信数据的传输,其中,该通信数据经由设备支架通过超宽带通信协议与外部超宽带设备进行传输,如图4所示。In the embodiment of the present application, the electronic equipment has ultra-wideband communication requirements. When the equipment support starts to work based on the power provided by the electronic equipment through the universal serial bus interface, the electronic equipment communicates with the equipment through the universal serial bus interface connected to the equipment support. Transmission of communication data, wherein the communication data is transmitted with an external ultra-wideband device through an ultra-wideband communication protocol via a device bracket, as shown in FIG. 4 .
其中,可以是电子设备通过通用串行总线接口向设备支架发送通信数据,由设备支架通超宽带通信协议将该通信数据转发至外部超宽带设备;也可以是设备支架在通过超宽带通信协议接收到外部超宽带设备发送的通信数据时,通过通用串行总线接口将接收到的通信数据转发至电子设备。Among them, the electronic device can send communication data to the equipment rack through the universal serial bus interface, and the equipment rack forwards the communication data to the external ultra-wideband device through the ultra-wideband communication protocol; When receiving the communication data sent by the external ultra-wideband device, the received communication data is forwarded to the electronic device through the universal serial bus interface.
超宽带通信协议是一种无线载波通信技术,它不采用正弦载波,而是利用纳秒级的非正弦波窄脉冲传输数据,因此其所占的频谱范围很宽。其具有系统复杂度低,发射信号功率谱密度低,对信道衰落不敏感,截获能力低,定位精度高等优点,尤其适用于室内等密集多径场所的高速无线接入。UWB communication protocol is a kind of wireless carrier communication technology. It does not use sinusoidal carrier, but uses nanosecond-level non-sinusoidal narrow pulse to transmit data, so it occupies a wide spectrum range. It has the advantages of low system complexity, low power spectral density of transmitted signals, insensitivity to channel fading, low interception capability, and high positioning accuracy. It is especially suitable for high-speed wireless access in dense multipath places such as indoors.
应当说明的是,本申请实施例对于通信数据的类型不作具体限制,其可以为任意类型的数据。It should be noted that the embodiment of the present application does not specifically limit the type of communication data, which may be any type of data.
由上可知,本申请中,通过电子设备的通用串行总线接口向设备支架提供电力,以及通过通用串行总线接口与设备支架进行通信数据的传输,该通信数据由设备支架通过超宽带通信协议与外部超宽带设备进行传输,可以是将来自于电子设备的通信数据发送至外部超宽带设备,也可以是将来自于外部超宽带设备的通信数据传输至电子设备。以此,通过复用电子设备的通用串行总线接口,通过通用串行总线接口向设备支架供电,将设备支架作为电子设备与外部超宽带设备的通信桥梁,避免了对电子设备自身的改造,能够低成本地实现电子设备对超宽带通信协议的支持。As can be seen from the above, in this application, power is provided to the equipment rack through the universal serial bus interface of the electronic equipment, and communication data is transmitted with the equipment rack through the universal serial bus interface, and the communication data is transmitted by the equipment rack through the ultra-wideband communication protocol The transmission with the external UWB device may be sending the communication data from the electronic device to the external UWB device, or transmitting the communication data from the external UWB device to the electronic device. In this way, by multiplexing the universal serial bus interface of the electronic equipment, power is supplied to the equipment bracket through the universal serial bus interface, and the equipment bracket is used as a communication bridge between the electronic equipment and the external ultra-wideband equipment, avoiding the modification of the electronic equipment itself, The electronic device can realize the support of the ultra-wideband communication protocol at low cost.
可选地,在一实施例中,通过电子设备的通用串行总线接口向设备支架提供电力,包括:Optionally, in an embodiment, providing power to the equipment rack through the USB interface of the electronic equipment includes:
(1)在识别到通用串行总线接口有外部设备接入时,通过通用串行总线接口的电源引脚向外部设备提供用于握手通信的第一电力;(1) When it is recognized that an external device is connected to the universal serial bus interface, the first power for handshaking communication is provided to the external device through the power supply pin of the universal serial bus interface;
(2)通过通用串行总线接口的信号引脚与外部设备进行握手通信;(2) carry out handshake communication with the external device through the signal pin of the universal serial bus interface;
(3)在根据握手结果确定外部设备为设备支架时,通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力。(3) When the external device is determined to be the device rack according to the handshake result, provide the second power for data forwarding to the device rack through the power supply pin of the USB interface.
本申请实施例中,通用串行总线接口至少包括电源引脚、信号引脚、ID引脚,在开启OTG功能时,电源引脚用于向接入的外部设备提供电力,信号引脚用于与接入的外部设备进行数据交互,ID引脚用于识别不同的电缆端点,以实现外部设备的接入检测、角色区分等。当然,在其他实施例中,通用串行总线接口还可以包括CC引脚和SBU引脚等引脚。In the embodiment of the present application, the universal serial bus interface includes at least a power pin, a signal pin, and an ID pin. When the OTG function is turned on, the power pin is used to provide power to the connected external device, and the signal pin is used Data interaction with connected external devices, ID pins are used to identify different cable endpoints to achieve access detection of external devices, role distinction, etc. Of course, in other embodiments, the universal serial bus interface may also include pins such as CC pins and SBU pins.
其中,电子设备在通过ID引脚识别到有外部设备接入通用串行总线接口时,通过通用串行总线接口的电源引脚向外部设备提供用于握手通信的第一电力,然后按照配置的握手规则,通过通用串行总线接口的信号引脚与接入的外部设备进行握手通信。在根据握手结果确定接入的外部设备为设备支架时,电子设备进一步按照与设备支架协商的功率,通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力。此处对握手规则的配置不作具体限制,可由本领域技术人员根据实际需要进行配置。Wherein, when the electronic device recognizes that an external device is connected to the universal serial bus interface through the ID pin, it provides the external device with the first power for handshaking communication through the power pin of the universal serial bus interface, and then according to the configured Handshake rules, through the signal pins of the universal serial bus interface to perform handshake communication with the connected external devices. When it is determined that the connected external device is the device rack according to the handshake result, the electronic device further provides the second power for data forwarding to the device rack through the power pin of the USB interface according to the power negotiated with the device rack. Here, there is no specific limitation on the configuration of the handshaking rules, which can be configured by those skilled in the art according to actual needs.
可选地,在一实施例中,通过通用串行总线接口的信号引脚与外部设备进行握手通信之后,还包括:Optionally, in one embodiment, after performing handshake communication with the external device through the signal pin of the universal serial bus interface, it also includes:
在握手通信失败时,停止通过通用串行总线接口的电源引脚向外部设备提供用于握手通信的第一电力。When the handshake communication fails, supplying the first power for the handshake communication to the external device through the power supply pin of the USB interface is stopped.
本申请实施例中,在握手通信失败时,可能接入的外部设备并非前述设备支架,或者误检测到外部设备,此时,电子设备判定不存在协助实现超宽带通信的设备支架,相应停止通过通用串行总线接口的电源引脚向外部设备提供用于握手通信的第一电力。In the embodiment of the present application, when the handshake communication fails, the external device that may be connected is not the aforementioned device rack, or the external device is detected by mistake. At this time, the electronic device determines that there is no device rack that assists in realizing ultra-wideband communication, and accordingly stops passing The power pin of the universal serial bus interface provides the first power for handshaking communication to the external device.
可选地,在一实施例中,本申请提供的超宽带数据传输方法,还包括:Optionally, in an embodiment, the ultra-wideband data transmission method provided by the present application further includes:
(1)向通用串行总线接口的ID引脚提供用于接入检测的第一电压;(1) providing the first voltage for access detection to the ID pin of the universal serial bus interface;
(2)在ID引脚的电压变化值达到预设值时,向ID引脚提供用于接入检测的第二电压,其中,第一电压小于第二电压;(2) When the voltage change value of the ID pin reaches a preset value, provide the ID pin with a second voltage for access detection, wherein the first voltage is smaller than the second voltage;
(3)在检测到ID引脚为接地状态时,识别到通用串行总线接口有外部设备接入。(3) When it is detected that the ID pin is in a grounded state, it is recognized that an external device is connected to the universal serial bus interface.
本申请实施例进一步提供一可选地外部设备接入检测策略。The embodiment of the present application further provides an optional external device access detection strategy.
需要说明的是,作为“外设”的外部设备,其通用串行总线接口的ID引脚接地,比如,外部设备的ID引脚通过一下拉电阻接地,其中,下拉电阻可以是一个单独的电阻,也可以是多个电阻串联和/或并联组成。It should be noted that, as an external device as a "peripheral device", the ID pin of its universal serial bus interface is grounded. For example, the ID pin of the external device is grounded through a pull-down resistor, wherein the pull-down resistor can be a separate resistor , can also be composed of multiple resistors connected in series and/or in parallel.
这样,当外部设备接入电子设备时,电子设备ID引脚上的电压将被外部设备的ID引脚拉低。由此,本申请实施例中,电子设备可以在为ID引脚提供用于接入检测的第一电压之后,通过检测ID引脚的电压变化值来判断其通用串行总线接口是否接入了外部设备。In this way, when an external device is connected to the electronic device, the voltage on the ID pin of the electronic device will be pulled down by the ID pin of the external device. Therefore, in this embodiment of the application, after the electronic device provides the ID pin with the first voltage for access detection, it can determine whether its universal serial bus interface is connected by detecting the voltage change value of the ID pin. external device.
本申请实施例中,在为通用串行总线接口的ID引脚提供用于接入检测第一电压之后,电子设备检测ID引脚的电压变化值是否达到预设值,其中,在检测到ID引脚的电压变化值达到预设值时,确定可能有外部设备接入其通用串行总线接口,而在检测到ID引脚的电压变化值未达到预设值时,确定没有外部设备接入其通用串行总线接口。In the embodiment of the present application, after the ID pin of the universal serial bus interface is provided with the first voltage for access detection, the electronic device detects whether the voltage change value of the ID pin reaches a preset value, wherein, after detecting the ID pin When the voltage change value of the pin reaches the preset value, it is determined that an external device may be connected to its universal serial bus interface, and when it is detected that the voltage change value of the ID pin does not reach the preset value, it is determined that no external device is connected Its Universal Serial Bus interface.
示例性地,电子设备在为其通用串行总线接口的ID引脚提供用于接入检测的第一电压之后,实时对ID引脚进行电压检测,得到ID引脚的实时电压,并计算第一电压与该实时电压的电压差值,将计算得到的电压差值作为其ID引脚的电压变化值。Exemplarily, after the electronic device provides the ID pin of its universal serial bus interface with the first voltage for access detection, it detects the voltage of the ID pin in real time, obtains the real-time voltage of the ID pin, and calculates the second voltage. The calculated voltage difference between a voltage and the real-time voltage is used as the voltage change value of the ID pin.
需要说明的是,由于外部设备的ID引脚接地,当外部设备接入电子设备的通用串行总线接口时,将使得电子设备的ID引脚同样接地,从而将ID引脚的电压拉低为0V。因此,本申请实施例中,将用于判断通用串行总线接口是否可能接入外部设备的预设值设置为第一电压的电压值,比如,电子设备在为其通用串行总线接口的ID提供的第一电压为0.5V时,前述预设值同样被配置为0.5V。It should be noted that since the ID pin of the external device is grounded, when the external device is connected to the USB interface of the electronic device, the ID pin of the electronic device will also be grounded, thereby pulling down the voltage of the ID pin to 0V. Therefore, in the embodiment of the present application, the preset value for judging whether the USB interface may be connected to an external device is set as the voltage value of the first voltage, for example, the electronic device is using the ID of its USB interface. When the provided first voltage is 0.5V, the aforementioned preset value is also configured as 0.5V.
如上,在ID引脚的电压变化值达到预设值,也即是可能有外部设备接入通用串行总线接口时,电子设备进一步为ID引脚提供用于外部设备接入检测的第二电压,其中,第二电压可以理解为用于相关技术中用于外部设备接入检测的正常电压,第一电压小于第二电压。As above, when the voltage change value of the ID pin reaches the preset value, that is, when an external device may be connected to the USB interface, the electronic device further provides the ID pin with a second voltage for external device access detection , wherein, the second voltage can be understood as a normal voltage used for external device access detection in the related art, and the first voltage is smaller than the second voltage.
其中,电子设备在完成对其ID引脚上电压变化值的检测,且检测到该电压变化值达到预设值,也即是确定可能有外部设备接入其通用串行总线接口时,为ID引脚提供用于外部设备接入检测的第二电压,也即是将ID引脚上拉为高电压。Among them, when the electronic device completes the detection of the voltage change value on its ID pin, and detects that the voltage change value reaches the preset value, that is, when it is determined that there may be an external device connected to its universal serial bus interface, it is an ID. The pin provides a second voltage for external device access detection, that is, the ID pin is pulled up to a high voltage.
需要说明的是,本申请实施例中,之前为ID引脚所提供的第一电压,小于当前为ID引脚提供的第二电压,且该第一电压是远小于该第二电压。比如,电子设备为其ID引脚提供的第一电压为0.5V,而在检测到ID引脚的电压变化值达到预设值时,为其ID引脚提供的第二电压为3.3V。It should be noted that, in the embodiment of the present application, the first voltage previously provided for the ID pin is smaller than the second voltage currently provided for the ID pin, and the first voltage is much lower than the second voltage. For example, the first voltage provided by the electronic device to its ID pin is 0.5V, and when it is detected that the voltage change value of the ID pin reaches a preset value, the second voltage provided to its ID pin is 3.3V.
在为ID引脚提供第二电压之后,电子设备对其ID引脚的状态进行检测,获得ID引脚的当前状态。然后,根据获取到的该当前状态,确定是否有外部设备接入通用串行总线接口。After providing the second voltage to the ID pin, the electronic device detects the state of the ID pin to obtain the current state of the ID pin. Then, according to the obtained current state, it is determined whether there is an external device connected to the universal serial bus interface.
需要说明的是,由于外部设备的ID引脚接地,当外部设备接入电子设备的通用串行总线接口时,将使得电子设备的ID引脚同样接地,也即是说,在外部设备接入电子设备的通用串行总线接口时,电子设备的ID引脚将呈现为接地状态。It should be noted that since the ID pin of the external device is grounded, when the external device is connected to the USB interface of the electronic device, the ID pin of the electronic device will also be grounded. When the universal serial bus interface of the electronic device is connected, the ID pin of the electronic device will be in a ground state.
因此,在本申请实施例中,在检测到ID引脚的当前状态为接地状态时,识别到有外部设备接入通用串行总线接口;而在ID引脚的当前状态不为接地状态时,识别到无外部设备接入通用串行总线接口。Therefore, in the embodiment of the present application, when it is detected that the current state of the ID pin is a grounded state, it is recognized that an external device is connected to the USB interface; and when the current state of the ID pin is not a grounded state, No external device was detected connected to the USB interface.
本申请实施例提供的外部设备接入检测策略,先为通用串行总线接口的ID引脚提供一个低电压,并根据ID引脚的电压变化值是否达到预设值,来判断通用串行总线接口是否可能接入了外部设备,进而在判定通用串行总线接口可能接入外部设备时,再为ID引脚提供一个用于外部设备接入检测的高电压,以实现外部设备的接入检测。由此,只需要在较短的时间内为ID引脚提供高电压,而在较长的其他时间为ID引脚提供低电压,相较而言,低电压对通用串行总线接口带来的腐蚀,将远低于高电压对通用串行总线接口带来的腐蚀,几乎可以忽略不计。以此,可以提高通用串行总线接口使用寿命。The external device access detection strategy provided by the embodiment of the present application first provides a low voltage for the ID pin of the universal serial bus interface, and judges the universal serial bus according to whether the voltage change value of the ID pin reaches a preset value. Whether the interface may be connected to an external device, and then when it is determined that the universal serial bus interface may be connected to an external device, a high voltage for external device access detection is provided to the ID pin to realize the access detection of the external device . Therefore, it is only necessary to provide a high voltage for the ID pin in a short period of time, and provide a low voltage for the ID pin in a relatively long period of time. Corrosion will be much lower than the corrosion caused by high voltage to the universal serial bus interface, and it can be almost ignored. In this way, the service life of the universal serial bus interface can be improved.
可选地,在一实施例中,通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力之后,还包括:Optionally, in an embodiment, after providing the second power for data forwarding to the equipment rack through the power supply pin of the universal serial bus interface, the method further includes:
在所述通用串行总线接口的温度值达到预设温度值时,停止通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力。When the temperature value of the universal serial bus interface reaches the preset temperature value, stop supplying the second power for data forwarding to the equipment rack through the power supply pin of the universal serial bus interface.
可以理解的是,若通用串行总线接口的温度过高,将有可能烧毁通用串行总线接口,甚至损坏整个电子设备。而在电子设备通过通用串行总线接口为设备支架供电时,将使得其通用串行总线接口的温度迅速升高。为避免对设备支架供电而造成电子设备的损坏,在本申请实施例中,电子设备在向设备支架提供电力期间,实时从设置在通用串行总线接口处的温度传感器处获取通用串行总线接口的温度值,并在每次获取到通用串行总线接口的温度值之后,判断获取到的温度值是否达到预设温度值,其中,预设温度值用于描述通用串行总线接口的温度值过高,具体可由本领域技术人员根据实际需要取经验值。It is understandable that if the temperature of the USB interface is too high, it may burn the USB interface and even damage the entire electronic device. However, when the electronic device supplies power to the device rack through the USB interface, the temperature of the USB interface will rise rapidly. In order to avoid damage to the electronic equipment caused by power supply to the equipment rack, in the embodiment of the present application, the electronic equipment obtains the universal serial bus interface from the temperature sensor provided at the universal serial bus interface in real time during the period of supplying power to the equipment rack. temperature value, and after obtaining the temperature value of the universal serial bus interface each time, it is judged whether the obtained temperature value reaches the preset temperature value, wherein the preset temperature value is used to describe the temperature value of the universal serial bus interface If it is too high, the specific experience value can be taken by those skilled in the art according to actual needs.
在通用串行总线接口的温度值达到预设温度值时,停止通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力,从而避免通用串行总线接口的温度继续升高。When the temperature value of the universal serial bus interface reaches the preset temperature value, the power supply pin of the universal serial bus interface is stopped to provide the second power for data forwarding to the device rack, thereby preventing the temperature of the universal serial bus interface from continuing raised.
比如,可以将预设温度值设置为50℃,若获取到通用串行总线接口的温度值为30℃,则电子设备继续通过通用串行总线接口为设备支架供电;若获取到通用串行总线接口的温度值为51℃,则电子设备停止通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力。For example, the preset temperature value can be set to 50°C. If the obtained temperature value of the USB If the temperature value of the interface is 51° C., the electronic device stops providing the second power for data forwarding to the device rack through the power pin of the universal serial bus interface.
可选地,在一实施例中,通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力之后之后,还包括:Optionally, in an embodiment, after providing the device rack with the second power for data forwarding through the power supply pin of the universal serial bus interface, the method further includes:
不存在与外部超宽带设备的通信需求时,停止通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力之后。When there is no need for communication with the external ultra-wideband device, after stopping providing the second power for data forwarding to the device rack through the power pin of the universal serial bus interface.
本申请实施例中,在识别到不存在与外部超宽带设备的通信需求时,电子设备停止通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力之后。In the embodiment of the present application, when it is recognized that there is no need for communication with the external ultra-wideband device, the electronic device stops providing the second power for data forwarding to the device rack through the power pin of the universal serial bus interface.
比如,电子设备在完成与外部超宽带设备之间所有的数据传输,或者接收到输入的通信结束指令时,判定当前不存在与外部超宽带设备的通信需求。For example, when the electronic device completes all data transmission with the external ultra-wideband device, or receives an input communication end instruction, it determines that there is currently no communication requirement with the external ultra-wideband device.
以此,在电子设备完成与外部超宽带设备的数据传输之后,停止向设备支架供电,不仅能够降低对电子设备的电量消耗,更能够降低电子设备漏电的风险。In this way, after the electronic device completes the data transmission with the external UWB device, the power supply to the device bracket is stopped, which can not only reduce the power consumption of the electronic device, but also reduce the risk of electric leakage of the electronic device.
可选地,在一实施例中,通信数据包括外部超宽带设备的设备标识,通过通用串行总线接口与设备支架进行通信数据的传输之后,还包括:Optionally, in an embodiment, the communication data includes the device identification of the external UWB device, and after the communication data is transmitted with the device rack through the Universal Serial Bus interface, it also includes:
展示对应外部超宽带设备的设备控制界面;Display the device control interface corresponding to the external UWB device;
通过设备控制界面接收针对外部超宽带设备的控制指令;Receive control commands for external ultra-wideband devices through the device control interface;
通过通用串行总线接口将控制指令发送至设备支架,使得设备支架通过超宽带通信协议将控制指令发送至外部超宽带设备执行。The control command is sent to the equipment bracket through the universal serial bus interface, so that the equipment bracket sends the control command to the external ultra-wideband device for execution through the ultra-wideband communication protocol.
其中,外部超宽带设备的设备标识用于唯一表征外部超宽带设备,可由本领域技术人员根据实际需要选择相关信息作为外部超宽带设备的设备标识,比如,可以将外部超宽带设备的MAC地址作为其设备标识。Wherein, the device identifier of the external ultra-wideband device is used to uniquely represent the external ultra-wideband device, and relevant information can be selected by those skilled in the art according to actual needs as the device identifier of the external ultra-wideband device. For example, the MAC address of the external ultra-wideband device can be used as its device ID.
本申请实施例中,外部超宽带设备可以将自身的设备标识作为通信数据,并通过超宽带通信协议发送至设备支架。相应的,设备支架在接收到外部超宽带设备发送的设备标识时,将该设备标识经由电子设备的通用串行总线接口发送至电子设备。相应的,电子设备将通过通用串行总线接口接收到设备支架发送的外部超宽带设备的设备标识。In the embodiment of the present application, the external ultra-wideband device may use its own device identification as communication data, and send it to the device rack through the ultra-wideband communication protocol. Correspondingly, when receiving the device identifier sent by the external ultra-wideband device, the device holder sends the device identifier to the electronic device via the universal serial bus interface of the electronic device. Correspondingly, the electronic device will receive the device identification of the external UWB device sent by the device bracket through the universal serial bus interface.
比如,外部超宽带设备可以低频率只发不收的方式向外发送其设备标识。For example, the external ultra-wideband device can send its device identification to the outside in a low-frequency mode of only sending but not receiving.
如上,电子设备在通过通用串行总线接口接收到设备支架转发的外部超宽带设备的设备标识之后,电子设备利用接收到的外部超宽带设备的设备标识对外部超宽带设备进行远程控制。As above, after the electronic device receives the device identifier of the external ultra-wideband device forwarded by the device holder through the universal serial bus interface, the electronic device uses the received device identifier of the external ultra-wideband device to remotely control the external ultra-wideband device.
由于外部超宽带设备的设备标识能够唯一表征外部超宽带设备。因此,电子设备在接收到设备支架转发的外部超宽带设备的设备标识之后,通过该设备标识即可识别出外部超宽带设备的身份。之后,电子设备根据识别出的外部超宽带设备的身份,展示对应外部超宽带设备的设备控制界面。从而通过该设备控制界面对外部超宽带设备进行控制。Because the device identifier of the external ultra-wideband device can uniquely represent the external ultra-wideband device. Therefore, after the electronic device receives the device identifier of the external ultra-wideband device forwarded by the device holder, it can identify the identity of the external ultra-wideband device through the device identifier. Afterwards, the electronic device displays a device control interface corresponding to the external ultra-wideband device according to the identified identity of the external ultra-wideband device. Therefore, the external ultra-wideband device is controlled through the device control interface.
比如,外部超宽带设备为家电,电子设备在通过设备支架接收到该家电发送的设备标识之后,可以根据该设备标识识别为什么家电,从而展示对应该家电的设备控制界面,供用户通过该设备控制界面进行家电控制。For example, if the external ultra-broadband device is a home appliance, after the electronic device receives the device identification sent by the home appliance through the device bracket, it can identify the home appliance according to the device identification, so as to display the device control interface corresponding to the home appliance for the user to control through the device interface for home appliance control.
以此,无需用户从电子设备安装的众多应用程序中寻找用于控制外部超宽带设备的应用程序,从而达到快速启动控制的需求。In this way, the user does not need to search for an application program for controlling the external ultra-wideband device from among the many application programs installed on the electronic device, so as to meet the requirement of quick start control.
其中,设备控制界面被配置为根据用户操作产生用于对外部超宽带设备进行控制的控制指令。Wherein, the device control interface is configured to generate control instructions for controlling the external ultra-wideband device according to user operations.
相应的,在展示设备控制界面的过程中,电子设备通过展示的设备控制界面接收针对外部超宽带设备的控制指令。在通过设备控制界面接收到针对外部超宽带设备的控制指令时,电子设备通过通用串行总线接口将该控制指令发送至设备支架,由设备支架通过超宽带通信协议将该控制指令转发至外部超宽带设备执行。Correspondingly, in the process of displaying the device control interface, the electronic device receives a control instruction for the external ultra-wideband device through the displayed device control interface. When the control command for the external ultra-wideband device is received through the device control interface, the electronic device sends the control command to the device bracket through the universal serial bus interface, and the device bracket forwards the control command to the external ultra-wideband device through the ultra-wideband communication protocol. Broadband device implementation.
比如,请参照图5,电子设备识别到外部超宽带设备为智能风扇,相应展示对应该智能风扇的设备控制界面,如图5所示,该设备控制界面中包括三个控件,分别为用于控制智能风扇开启或关闭的开机控件,用于控制智能风扇开启或关闭循环风模式的循环风控件,以及用于控制智能风扇定时开机的定时开机控件。基于该设备控制界面,用户可以点击开机控件,从而产生针对智能风扇的开机控制指令,电子设备进一步将该开机控制指令经由设备支架转发至智能风扇,智能风扇在接收到该开机控制指令后,相应开机送风;之后,若用户期望开启智能风扇的循环风模式,则可以点击循环风控件,从而产生针对智能风扇的循环风控制指令,电子设备进一步将该循环风控制指令经由设备支架转发至智能风扇,智能风扇在接收到该循环风控制指令后,相应开启循环风模式。For example, please refer to Figure 5. The electronic device recognizes that the external ultra-broadband device is a smart fan, and correspondingly displays the device control interface corresponding to the smart fan. As shown in Figure 5, the device control interface includes three controls, which are used for The power-on control for controlling the smart fan to be turned on or off, the circulating air control for controlling the smart fan to turn on or off the circulating air mode, and the timing power-on control for controlling the smart fan to be turned on at a fixed time. Based on the device control interface, the user can click the power-on control to generate a power-on control command for the smart fan. The electronic device further forwards the power-on control command to the smart fan through the device bracket. After that, if the user wants to turn on the circulating air mode of the smart fan, he can click the circulating air control to generate a circulating air control command for the smart fan, and the electronic device further forwards the circulating air control command to the smart fan via the device bracket. Fan. After receiving the circulating air control command, the smart fan will turn on the circulating air mode accordingly.
可选地,在一实施例中,通过通用串行总线接口将控制指令发送至设备支架,使得设备支架通过超宽带通信协议将控制指令发送至外部超宽带设备执行,包括:Optionally, in an embodiment, the control instruction is sent to the equipment rack through a universal serial bus interface, so that the equipment rack sends the control instruction to an external ultra-wideband device for execution through an ultra-wideband communication protocol, including:
在移动网络不可用或者当前开启短距控制模式时,通过通用串行总线接口将控制指令发送至设备支架,使得设备支架通过超宽带通信协议将控制指令发送至外部超宽带设备执行。When the mobile network is unavailable or the short-distance control mode is currently enabled, the control command is sent to the equipment bracket through the universal serial bus interface, so that the equipment bracket sends the control command to the external ultra-wideband device for execution through the ultra-wideband communication protocol.
本申请实施例中,电子设备提供有短距控制模式,电子设备在短距控制模式下通过设备支架进行控制指令的下发,用于对外部超宽带设备进行控制。相应的,电子设备还提供有用于开启和关闭短距控制模式的模式切换控件,电子设备通过该模式切换控件接收用户操作,相应开启或关闭短距控制模式。In the embodiment of the present application, the electronic device is provided with a short-distance control mode. In the short-distance control mode, the electronic device issues control commands through the device bracket to control external ultra-wideband devices. Correspondingly, the electronic device is also provided with a mode switching control for turning on and off the short-distance control mode, and the electronic device receives a user operation through the mode switching control, and correspondingly turns on or off the short-distance control mode.
此外,电子设备在未开启短距控件模式的情况下接收到针对外部超宽带设备的控制指令时,首先识别当前移动网络是否可用,若移动网络不可用,则电子设备也通过设备支架进行控制指令的转发,用于对外部超宽带设备进行控制。In addition, when the electronic device receives a control command for the external ultra-wideband device without turning on the short-distance control mode, it first identifies whether the current mobile network is available, and if the mobile network is not available, the electronic device also performs control commands through the device bracket forwarding, used to control external UWB devices.
可选地,在一实施例中,本申请提供的超宽带数据传输方法还包括:Optionally, in an embodiment, the ultra-wideband data transmission method provided by the present application further includes:
在移动网络可用且当前关闭短距控制模式时,通过移动网络将控制指令发送至外部超宽带设备执行。When the mobile network is available and the short-distance control mode is currently disabled, the control command is sent to the external ultra-wideband device through the mobile network for execution.
可选地,在一实施例中,通信数据包括定位数据,通过通用串行总线接口与设备支架进行通信数据的传输之后,还包括:Optionally, in an embodiment, the communication data includes positioning data, and after the communication data is transmitted with the equipment rack through the Universal Serial Bus interface, it further includes:
根据所述定位数据计算得到电子设备的位置信息。The position information of the electronic device is obtained by calculating according to the positioning data.
比如,外部超宽带设备可以是超宽带定位基站,其位置固定,并周期性的向外发送定位数据,电子设备在通过设备支架接收到该定位数据之后,即可按照配置的定位算法,根据接收的定位数据计算得到电子设备位置信息。For example, the external UWB device can be an UWB positioning base station, which has a fixed location and periodically sends out positioning data. After the electronic device receives the positioning data through the The positioning data is calculated to obtain the position information of the electronic device.
如上,在计算得到电子设备的位置信息之后,电子设备可以对该位置信息作进一步利用,As above, after the location information of the electronic device is calculated, the electronic device can further use the location information,
请参照图6,图6为本申请实施例提供的超宽带数据传输方法的另一流程示意图,如图6所示,该超宽带数据传输方法可以包括:Please refer to FIG. 6. FIG. 6 is another schematic flowchart of the ultra-wideband data transmission method provided by the embodiment of the present application. As shown in FIG. 6, the ultra-wideband data transmission method may include:
在210中,电子设备在接收到用于触发超宽带数据传输的手势指令时,开启通用串行总线接口的OTG功能。In 210, when the electronic device receives a gesture instruction for triggering UWB data transmission, it starts the OTG function of the universal serial bus interface.
可以理解的是,目前,诸如智能手机、平板电脑等电子设备均配置有通用串行总线接口,利用该通用串行总线接口,可以对将电子设备连接至电源适配器,由电源适配器对电子设备进行充电,也可以将电子设备连接至电脑,从而通过电脑对电子设备进行操作,或者备份数据等。It can be understood that at present, electronic devices such as smart phones and tablet computers are equipped with a universal serial bus interface, and by using the universal serial bus interface, the electronic device can be connected to the power adapter, and the power adapter can control the electronic device. Charging, you can also connect the electronic device to the computer, so as to operate the electronic device through the computer, or back up data, etc.
本申请实施例中对于电子设备配置的通用串行总线接口的类型不作具体限制,可由本领域技术人员根据实际需要进行选择。比如,本申请实施例中,电子设备采用Type-C类型的通用串行总线接口。In the embodiment of the present application, there is no specific limitation on the type of the universal serial bus interface configured on the electronic device, which can be selected by those skilled in the art according to actual needs. For example, in the embodiment of the present application, the electronic device adopts a Type-C universal serial bus interface.
应当说明的是,电子设备的通用串行总线接口支持OTG功能,利用OTG功能,电子设备可以“主机”和“外设”两种身份工作。本申请实施例中,设备支架通过电子设备的通用串行总线接口与电子设备建立连接之后,设备支架以“外设”的身份工作,相应的,电子设备以“主机”身份的工作,用以扩展电子设备的超宽带通信能力。It should be noted that the USB interface of the electronic device supports the OTG function. With the OTG function, the electronic device can work as a "host" and a "peripheral device". In the embodiment of the present application, after the device holder establishes a connection with the electronic device through the universal serial bus interface of the electronic device, the device holder works as a "peripheral device". Correspondingly, the electronic device works as a "host" to Expand the ultra-wideband communication capabilities of electronic devices.
本申请实施例中,电子设备仅在接收到用于触发超宽带数据传输的手势指令时,才开启通用串行总线接口的OTG功能,首先对是否有外部设备接入进行检测。In the embodiment of the present application, the electronic device turns on the OTG function of the universal serial bus interface only when it receives a gesture instruction for triggering UWB data transmission, and first detects whether there is an external device connected.
应当说明的是,本申请实施例中对用于触发超宽带数据传输的手势指令的配置不作具体限制,可由本领域技术人员根据实际需要进行配置。It should be noted that, in the embodiment of the present application, there is no specific limitation on the configuration of the gesture command used to trigger the UWB data transmission, and it can be configured by those skilled in the art according to actual needs.
比如,请参照图3,电子设备在下拉菜单中提供有通信触发控件,配置手势指令为对该通信触发控件的单击手势,相应的,用户可以在需要电子设备与外部超宽带设备进行通信时,操作电子设备显示下拉菜单,并单击下拉菜单中的通信触发控件,向电子设备输入前述手势指令。此外,还可以配置为其它形式的手势,包括但不限于双击、摇一摇、熄屏手势等,具体可由本领域技术人员根据实际需要进行配置。For example, please refer to Figure 3. The electronic device provides a communication trigger control in the drop-down menu, and the gesture command is configured as a click gesture for the communication trigger control. Correspondingly, the user can , operate the electronic device to display the drop-down menu, and click the communication trigger control in the drop-down menu to input the aforementioned gesture instruction to the electronic device. In addition, other forms of gestures can also be configured, including but not limited to double-click, shake, screen-off gestures, etc., which can be configured by those skilled in the art according to actual needs.
在220中,电子设备在识别到通用串行总线接口有外部设备接入时,通过通用串行总线接口的电源引脚向外部设备提供用于握手通信的第一电力,以及通过通用串行总线接口的信号引脚与外部设备进行握手通信。In 220, when the electronic device recognizes that an external device is connected to the universal serial bus interface, it provides the external device with the first power for handshake communication through the power supply pin of the universal serial bus interface, and through the universal serial bus The signal pins of the interface perform handshake communication with external devices.
在230中,电子设备在根据握手结果确定外部设备为设备支架时,通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力。In 230, when the electronic device determines that the external device is the device rack according to the handshake result, the electronic device provides the second power for data forwarding to the device rack through the power pin of the USB interface.
其中,通用串行总线接口至少包括电源引脚、信号引脚、ID引脚,在开启OTG功能时,电源引脚用于向接入的外部设备提供电力,信号引脚用于与接入的外部设备进行数据交互,ID引脚用于识别不同的电缆端点,以实现外部设备的接入检测、角色区分等。当然,在其他实施例中,通用串行总线接口还可以包括CC引脚和SBU引脚等引脚。Among them, the universal serial bus interface includes at least a power pin, a signal pin, and an ID pin. When the OTG function is turned on, the power pin is used to provide power to the connected external device, and the signal pin is used to communicate with the connected The external device performs data interaction, and the ID pin is used to identify different cable endpoints, so as to realize the access detection and role distinction of the external device. Of course, in other embodiments, the universal serial bus interface may also include pins such as CC pins and SBU pins.
其中,电子设备在通过ID引脚识别到有外部设备接入通用串行总线接口时,通过通用串行总线接口的电源引脚向外部设备提供用于握手通信的第一电力,然后按照配置的握手规则,通过通用串行总线接口的信号引脚与接入的外部设备进行握手通信。在根据握手结果确定接入的外部设备为设备支架时,电子设备进一步按照与设备支架协商的功率,通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力。此处对握手规则的配置不作具体限制,可由本领域技术人员根据实际需要进行配置。Wherein, when the electronic device recognizes that an external device is connected to the universal serial bus interface through the ID pin, it provides the external device with the first power for handshaking communication through the power pin of the universal serial bus interface, and then according to the configured Handshake rules, through the signal pins of the universal serial bus interface to perform handshake communication with the connected external devices. When it is determined that the connected external device is the device rack according to the handshake result, the electronic device further provides the second power for data forwarding to the device rack through the power pin of the USB interface according to the power negotiated with the device rack. Here, there is no specific limitation on the configuration of the handshaking rules, which can be configured by those skilled in the art according to actual needs.
在240中,电子设备通过通用串行总线接口与设备支架进行通信数据的传输,通信数据由设备支架通过超宽带通信协议与外部超宽带设备进行传输。In step 240, the electronic device transmits communication data with the equipment rack through a universal serial bus interface, and the communication data is transmitted by the equipment rack with an external ultra-wideband device through an ultra-wideband communication protocol.
如上,基于电子设备通过通用串行总线接口所提供的电力,设备支架开始工作。As above, based on the power provided by the electronic device through the USB interface, the device holder starts to work.
本申请实施例中,电子设备存在超宽带通信协议的通信需求,当设备支架基于电子设备通过通用串行总线接口提供的电力开始工作后,电子设备通过其与设备支架之间连接的通用串行总线接口进行通信数据的传输,其中,该通信数据经由设备支架通过电子设备不支持的超宽带通信协议与外部超宽带设备进行传输。In the embodiment of the present application, the electronic device has the communication requirement of the ultra-wideband communication protocol. When the device rack starts to work based on the power provided by the electronic device through the universal serial bus interface, the electronic device connects to the device rack through the universal serial bus. The bus interface transmits the communication data, wherein the communication data is transmitted to the external ultra-wideband device through the ultra-wideband communication protocol not supported by the electronic equipment via the equipment bracket.
其中,可以是电子设备通过通用串行总线接口向设备支架发送通信数据,由设备支架通过电子设备不支持的超宽带通信协议将该通信数据转发至外部超宽带设备;也可以是设备支架在通过电子设备不支持的超宽带通信协议接收到外部超宽带设备发送的通信数据时,通过通用串行总线接口将接收到的通信数据转发至电子设备。Among them, the electronic device can send communication data to the equipment rack through the universal serial bus interface, and the equipment rack forwards the communication data to the external ultra-wideband device through the ultra-wideband communication protocol that the electronic equipment does not support; When the ultra-wideband communication protocol not supported by the electronic device receives the communication data sent by the external ultra-wideband device, the received communication data is forwarded to the electronic device through the universal serial bus interface.
在250中,电子设备在不存在与外部超宽带设备的通信需求时,关闭通用串行总线接口的OTG功能,停止通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力。In 250, when the electronic device does not need to communicate with the external ultra-wideband device, the OTG function of the universal serial bus interface is turned off, and the power supply pin of the universal serial bus interface is stopped to provide the device rack with the first power supply for data forwarding. Two electricity.
本申请实施例中,在识别到不存在与外部超宽带设备的通信需求时,电子设备停止通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力之后。In the embodiment of the present application, when it is recognized that there is no need for communication with the external ultra-wideband device, the electronic device stops providing the second power for data forwarding to the device rack through the power pin of the universal serial bus interface.
比如,电子设备在完成与外部超宽带设备之间所有的数据传输,或者接收到输入的通信结束指令时,判定当前不存在与外部超宽带设备的通信需求。For example, when the electronic device completes all data transmission with the external ultra-wideband device, or receives an input communication end instruction, it determines that there is currently no communication requirement with the external ultra-wideband device.
以此,在电子设备完成与外部超宽带设备的数据传输之后,停止向设备支架供电,不仅能够降低对电子设备的电量消耗,更能够降低电子设备漏电的风险。In this way, after the electronic device completes the data transmission with the external UWB device, the power supply to the device bracket is stopped, which can not only reduce the power consumption of the electronic device, but also reduce the risk of electric leakage of the electronic device.
在一实施例中,还提供了一种超宽带数据传输装置。请参照图7,图7为本申请实施例提供的超宽带数据传输装置300的结构示意图。其中该超宽带数据传输装置300应用于电子设备,包括供电模块310和通信模块320,如下:In an embodiment, an ultra-wideband data transmission device is also provided. Please refer to FIG. 7 , which is a schematic structural diagram of an ultra-wideband data transmission device 300 provided in an embodiment of the present application. Wherein the ultra-wideband data transmission device 300 is applied to electronic equipment, including a power supply module 310 and a communication module 320, as follows:
供电模块310用于在接收到用于触发超宽带数据传输的手势指令时,通过电子设备的通用串行总线接口向设备支架提供电力;The power supply module 310 is configured to provide power to the device rack through the USB interface of the electronic device when receiving a gesture instruction for triggering UWB data transmission;
通信模块320用于通过前述通用串行总线接口与设备支架进行通信数据的传输;The communication module 320 is used to transmit communication data with the device rack through the aforementioned universal serial bus interface;
其中,通信数据由设备支架通过超宽带通信协议与外部超宽带设备进行传输。Wherein, the communication data is transmitted by the equipment bracket with the external ultra-wideband equipment through the ultra-wideband communication protocol.
可选地,在一实施例中,在通过电子设备的通用串行总线接口向设备支架提供电力时,供电模块310用于:Optionally, in an embodiment, when providing power to the equipment rack through the USB interface of the electronic equipment, the power supply module 310 is used to:
在识别到通用串行总线接口有外部设备接入时,通过通用串行总线接口的电源引脚向外部设备提供用于握手通信的第一电力;When it is recognized that an external device is connected to the universal serial bus interface, the first power for handshaking communication is provided to the external device through the power supply pin of the universal serial bus interface;
通过通用串行总线接口的信号引脚与外部设备进行握手通信;Handshake communication with external devices through the signal pins of the Universal Serial Bus interface;
在根据握手结果确定外部设备为设备支架时,通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力。When the external device is determined to be the device rack according to the handshake result, the second power for data forwarding is provided to the device rack through the power supply pin of the universal serial bus interface.
可选地,在一实施例中,供电模块310还用于:Optionally, in an embodiment, the power supply module 310 is also used for:
向通用串行总线接口的ID引脚提供用于接入检测的第一电压;providing a first voltage for access detection to an ID pin of a universal serial bus interface;
在ID引脚的电压变化值达到预设值时,向ID引脚提供用于接入检测的第二电压,其中,第一电压小于第二电压;When the voltage change value of the ID pin reaches a preset value, provide a second voltage for access detection to the ID pin, wherein the first voltage is smaller than the second voltage;
在检测到ID引脚为接地状态时,识别到通用串行总线接口有外部设备接入。When it is detected that the ID pin is in a grounded state, it is recognized that an external device is connected to the universal serial bus interface.
可选地,在一实施例中,在通过通用串行总线接口的信号引脚与外部设备进行握手通信之后,供电模块310还用于:Optionally, in an embodiment, after performing handshake communication with the external device through the signal pin of the universal serial bus interface, the power supply module 310 is also used to:
在握手通信失败时,停止通过通用串行总线接口的电源引脚向外部设备提供用于握手通信的第一电力。When the handshake communication fails, supplying the first power for the handshake communication to the external device through the power supply pin of the USB interface is stopped.
可选地,在一实施例中,在通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力之后,供电模块310还用于:Optionally, in an embodiment, after providing the second power for data forwarding to the equipment rack through the power pin of the universal serial bus interface, the power supply module 310 is further used to:
不存在与外部超宽带设备的通信需求时,停止通过通用串行总线接口的电源引脚向设备支架提供用于数据转发的第二电力。When there is no need for communication with the external ultra-wideband device, stop providing the second power for data forwarding to the device rack through the power pin of the universal serial bus interface.
可选地,在一实施例中,通信数据包括外部超宽带设备的设备标识,在通过前述通用串行总线接口与设备支架进行通信数据的传输之后,通信模块320还用于:Optionally, in an embodiment, the communication data includes the device identification of the external ultra-wideband device. After the communication data is transmitted with the device rack through the aforementioned universal serial bus interface, the communication module 320 is also used to:
展示对应外部超宽带设备的设备控制界面;Display the device control interface corresponding to the external UWB device;
通过设备控制界面接收针对外部超宽带设备的控制指令;Receive control commands for external ultra-wideband devices through the device control interface;
通过通用串行总线接口将控制指令发送至设备支架,使得设备支架通过超宽带通信协议将控制指令发送至外部超宽带设备执行。The control command is sent to the equipment bracket through the universal serial bus interface, so that the equipment bracket sends the control command to the external ultra-wideband device for execution through the ultra-wideband communication protocol.
具体实施时,以上各个模块可以作为独立的实体实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单位的具体实施可参见前面的实施例,在此不再赘述。During specific implementation, each of the above modules can be implemented as an independent entity, or can be combined arbitrarily as the same or several entities. The specific implementation of each of the above units can refer to the previous embodiments, and will not be repeated here.
在一实施例中,还提供一种电子设备,请参照图8,电子设备400包括处理器410、存储器420以及通用串行总线接口430。其中,处理器410与存储器420、通用串行总线接口430电性连接。In one embodiment, an electronic device is also provided. Referring to FIG. 8 , the electronic device 400 includes a processor 410 , a memory 420 and a USB interface 430 . Wherein, the processor 410 is electrically connected with the memory 420 and the USB interface 430 .
处理器410是电子设备400的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器420内的计算机程序,以及调用存储在存储器420内的数据,执行电子设备400的各种功能并处理数据。The processor 410 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or loading computer programs stored in the memory 420 and calling data stored in the memory 420, the processor 410 executes electronic various functions of the device 400 and process data.
存储器420可用于存储软件程序以及模块,处理器410通过运行存储在存储器420的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、通信播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器420还可以包括存储器控制器,以提供处理器410对存储器420的访问。The memory 420 can be used to store software programs and modules, and the processor 410 executes various functional applications and data processing by running the computer programs and modules stored in the memory 420 . Memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store operating systems, computer programs required by at least one function (such as sound playback function, communication playback function, etc.); Data created by the use of electronic devices, etc. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 420 may further include a memory controller to provide the processor 410 with access to the memory 420 .
通用串行总线接口430被配置为在外部设备接入时,向接入的外部设备提供电力,从而与外部设备进行数据交互。此处对通用串行总线接口的类型不作具体限制,比如,可以为Type-C类型的通用串行总线接口。The USB interface 430 is configured to provide power to the connected external device when the external device is connected, so as to perform data interaction with the external device. The type of the universal serial bus interface is not specifically limited here, for example, it may be a Type-C type universal serial bus interface.
在本申请实施例中,电子设备400中的处理器410会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器420中,并由处理器410运行存储在存储器420中的计算机程序,从而实现各种功能,如下:In this embodiment of the present application, the processor 410 in the electronic device 400 will follow the steps below to load one or more instructions corresponding to the process of the computer program into the memory 420, and the instructions stored in the memory 420 will be executed by the processor 410. The computer program in the computer, so as to realize various functions, as follows:
在接收到用于触发超宽带数据传输的手势指令时,通过电子设备400的通用串行总线接口430向设备支架提供电力;When a gesture instruction for triggering UWB data transmission is received, power is supplied to the device rack through the USB interface 430 of the electronic device 400;
通过前述通用串行总线接口430与设备支架进行通信数据的传输;Transmission of communication data with the equipment rack through the aforementioned universal serial bus interface 430;
其中,通信数据由设备支架通过超宽带通信协议与外部超宽带设备进行传输。Wherein, the communication data is transmitted by the equipment bracket with the external ultra-wideband equipment through the ultra-wideband communication protocol.
可选地,在一实施例中,在通过电子设备的通用串行总线接口430向设备支架提供电力时,处理器410用于执行:Optionally, in one embodiment, when power is supplied to the equipment rack through the USB interface 430 of the electronic equipment, the processor 410 is configured to execute:
在识别到通用串行总线接口有外部设备接入时,通过通用串行总线接口430的电源引脚向外部设备提供用于握手通信的第一电力;When it is recognized that an external device is connected to the universal serial bus interface, the first power for handshaking communication is provided to the external device through the power supply pin of the universal serial bus interface 430;
通过通用串行总线接口430的信号引脚与外部设备进行握手通信;Perform handshake communication with external devices through the signal pins of the universal serial bus interface 430;
在根据握手结果确定外部设备为设备支架时,通过通用串行总线接口430的电源引脚向设备支架提供用于数据转发的第二电力。When the external device is determined to be the device rack according to the handshake result, the second power for data forwarding is provided to the device rack through the power supply pin of the USB interface 430 .
可选地,在一实施例中,处理器410还用于执行:Optionally, in an embodiment, the processor 410 is also configured to execute:
向通用串行总线接口430的ID引脚提供用于接入检测的第一电压;providing a first voltage for access detection to the ID pin of the universal serial bus interface 430;
在ID引脚的电压变化值达到预设值时,向ID引脚提供用于接入检测的第二电压,其中,第一电压小于第二电压;When the voltage change value of the ID pin reaches a preset value, provide a second voltage for access detection to the ID pin, wherein the first voltage is smaller than the second voltage;
在检测到ID引脚为接地状态时,识别到通用串行总线接口430有外部设备接入。When it is detected that the ID pin is in the ground state, it is recognized that an external device is connected to the USB interface 430 .
可选地,在一实施例中,在通过通用串行总线接口430的信号引脚与外部设备进行握手通信之后,处理器410还用于执行:Optionally, in one embodiment, after performing handshake communication with the external device through the signal pin of the universal serial bus interface 430, the processor 410 is further configured to execute:
在握手通信失败时,停止通过通用串行总线接口430的电源引脚向外部设备提供用于握手通信的第一电力。When the handshake communication fails, supply of the first power for the handshake communication to the external device through the power pin of the USB interface 430 is stopped.
可选地,在一实施例中,在通过通用串行总线接口430的电源引脚向设备支架提供用于数据转发的第二电力之后,处理器410还用于执行:Optionally, in one embodiment, after the second power for data forwarding is provided to the equipment rack through the power supply pin of the USB interface 430, the processor 410 is further configured to execute:
不存在与外部超宽带设备的通信需求时,停止通过通用串行总线接口430的电源引脚向设备支架提供用于数据转发的第二电力。When there is no need for communication with the external UWB device, stop providing the second power for data forwarding to the device rack through the power pin of the USB interface 430 .
可选地,在一实施例中,通信数据包括外部超宽带设备的设备标识,在通过通用串行总线接口430的电源引脚向设备支架提供用于数据转发的第二电力,处理器410还用于执行:Optionally, in one embodiment, the communication data includes the device identification of the external ultra-wideband device, and the second power for data forwarding is provided to the device rack through the power pin of the universal serial bus interface 430, and the processor 410 further for executing:
展示对应外部超宽带设备的设备控制界面;Display the device control interface corresponding to the external UWB device;
通过设备控制界面接收针对外部超宽带设备的控制指令;Receive control commands for external ultra-wideband devices through the device control interface;
通过通用串行总线接口430将控制指令发送至设备支架,使得设备支架通过超宽带通信协议将控制指令发送至外部超宽带设备执行。The control command is sent to the equipment rack through the universal serial bus interface 430, so that the equipment rack sends the control command to the external ultra-wideband device for execution through the ultra-wideband communication protocol.
应当说明的是,本申请实施例提供的电子设备400与上文实施例中的超宽带数据传输方法属于同一构思,其具体实现过程详见以上相关实施例,此处不再赘述。It should be noted that the electronic device 400 provided in the embodiment of the present application is based on the same idea as the ultra-wideband data transmission method in the above embodiment, and its specific implementation process is detailed in the above related embodiments, and will not be repeated here.
本申请实施例还提供一种存储介质,所述存储介质存储有计算机程序,当所述计算机程序在包括电子设备上运行时,使得该电子设备执行上述任一实施例中的超宽带数据传输方法,比如:An embodiment of the present application also provides a storage medium, the storage medium stores a computer program, and when the computer program is run on an electronic device, the electronic device is made to execute the ultra-wideband data transmission method in any of the above-mentioned embodiments ,for example:
在接收到用于触发超宽带数据传输的手势指令时,通过电子设备的通用串行总线接口向设备支架提供电力;providing power to the device holder through the USB interface of the electronic device upon receipt of a gesture command for triggering UWB data transmission;
通过前述通用串行总线接口与设备支架进行通信数据的传输;Transmission of communication data through the aforementioned universal serial bus interface and the equipment support;
其中,通信数据由设备支架通过超宽带通信协议与外部超宽带设备进行传输。Wherein, the communication data is transmitted by the equipment bracket with the external ultra-wideband equipment through the ultra-wideband communication protocol.
本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read OnlyMemory,ROM,)或者随机存取器(Random Access Memory,RAM)等。In this embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM), or a random access device (Random Access Memory, RAM), or the like.
在一实施例中,还提供一种设备支架,请参照图9,设备支架500包括通用串行总线接口510、超宽带组件520和设备支架本体530,其中,In one embodiment, an equipment rack is also provided. Referring to FIG. 9, the equipment rack 500 includes a universal serial bus interface 510, an ultra-wideband component 520 and an equipment rack body 530, wherein,
通用串行总线接口510用于接收电子设备提供的电力;以及The USB interface 510 is used to receive power provided by the electronic device; and
用于与电子设备进行通信数据的传输;For the transmission of communication data with electronic devices;
超宽带组件520用于通过超宽带通信协议与外部超宽带设备进行通信数据的传输。The ultra-wideband component 520 is used for transmitting communication data with external ultra-wideband devices through the ultra-wideband communication protocol.
其中,设备支架本体530用于对电子设备进行支撑,从而无需用户手持电子设备。此处对设备支架本体530的材质不作具体限制,包括但不限于塑料、硅胶和/或金属等材质。Wherein, the device support body 530 is used to support the electronic device, so that the user does not need to hold the electronic device. The material of the device support body 530 is not specifically limited here, including but not limited to materials such as plastic, silicone and/or metal.
应当说明的是,电子设备同样包括通用串行总线接口,本申请实施例中,设备支架500通过通用串行总线接口510接入电子设备的通用串行总线接口。It should be noted that the electronic device also includes a universal serial bus interface. In the embodiment of the present application, the device holder 500 is connected to the universal serial bus interface of the electronic device through the universal serial bus interface 510 .
其中,设备支架500通用串行总线接口510与电子设备的通用串行总线接口为相同类型的通用串行总线接口,比如均为Type-C类型的通用串行总线接口,但是二者一公一母。Among them, the universal serial bus interface 510 of the device bracket 500 and the universal serial bus interface of the electronic device are the same type of universal serial bus interface, such as Type-C type universal serial bus interface, but the two are one male and one mother.
本申请对于设备支架500的实体展现形式不作具体限制,可由本领域技术人员根据实际需要进行配置。比如,请参照图2,在电子设备为智能手机时,设备支架500的实体展现形式可以为指环支架,该指环支架吸附在智能手机背部,用于对智能手机进行支撑。The present application does not specifically limit the physical display form of the equipment rack 500 , which can be configured by those skilled in the art according to actual needs. For example, referring to FIG. 2 , when the electronic device is a smart phone, the device holder 500 may be physically displayed as a ring holder, and the ring holder is attached to the back of the smart phone for supporting the smart phone.
本申请实施例中,电子设备在接收到用于触发超宽带数据传输的手势指令时,利用自身配置的电池向连接设备支架500的通用串行总线接口510供电。相应的,设备支架500将通过通用串行总线接口510接收到电子设备提供的电力。In the embodiment of the present application, when the electronic device receives a gesture instruction for triggering UWB data transmission, it uses its own configured battery to supply power to the USB interface 510 connected to the device bracket 500 . Correspondingly, the equipment rack 500 will receive the power provided by the electronic equipment through the USB interface 510 .
本申请实施例中,设备支架500通过通用串行总线接口510与电子设备进行通信数据的传输;以及通过超宽带组件520采用超宽带通信协议与外部超宽带设备进行通信数据的传输。In the embodiment of the present application, the equipment holder 500 transmits communication data with electronic equipment through the universal serial bus interface 510;
其中,可以是电子设备通过向设备支架500的通用串行总线接口510发送通信数据,由设备支架500通过超宽带组件520采用超宽带通信协议将该通信数据转发至外部超宽带设备;也可以是设备支架500通过超宽带组件520采用超宽带通信协议接收到外部超宽带设备发送的通信数据时,通过通用串行总线接口510将该通信数据转发至外部超宽带设备。Wherein, it may be that the electronic device sends communication data to the universal serial bus interface 510 of the equipment bracket 500, and the equipment bracket 500 uses the ultra-wideband communication protocol to forward the communication data to an external ultra-wideband device through the ultra-wideband component 520; it may also be When the device holder 500 receives the communication data sent by the external UWB device through the UWB component 520 using the UWB communication protocol, the communication data is forwarded to the external UWB device through the USB interface 510 .
应当说明的是,本申请实施例对于通信数据的类型不作具体限制,其可以为任意类型的数据。It should be noted that the embodiment of the present application does not specifically limit the type of communication data, which may be any type of data.
可选地,在一实施例中,请参照图10,设备支架500还包括电源管理单元540,用于对通用串行总线接口510接收的电力进行优化处理。Optionally, in an embodiment, referring to FIG. 10 , the equipment rack 500 further includes a power management unit 540 configured to optimize power received by the USB interface 510 .
本申请实施例中,设备支架500在通过通用串行总线接口510接收到电子提供的电力之后,进一步将该电力提供给电源管理单元540,由电源管理单元540对电子设备提供的电力进行优化处理后为超宽带组件520供电。其中,电源管理单元540进行优化处理包括但不限于整流滤波以及稳压等处理。In the embodiment of the present application, after the equipment rack 500 receives the power provided by the electronics through the USB interface 510, it further provides the power to the power management unit 540, and the power management unit 540 optimizes the power provided by the electronic equipment. Then supply power to the UWB component 520 . Wherein, the power management unit 540 performs optimization processing including but not limited to processing such as rectification, filtering, and voltage stabilization.
在一实施例中,还提供一种超宽带数据传输方法,该超宽带数据传输方法应用于本申请提供的设备支架,该设备支架包括通用串行总线接口和超宽带组件,请参照图11,该超宽带数据传输方法包括:In an embodiment, there is also provided an ultra-wideband data transmission method, the ultra-wideband data transmission method is applied to the equipment rack provided by the present application, the equipment rack includes a universal serial bus interface and an ultra-wideband component, please refer to FIG. 11 , The ultra-wideband data transmission method includes:
在610中,通过通用串行总线接口接收电子设备提供的电力;In 610, receive power provided by the electronic device through a universal serial bus interface;
在620中,通过通用串行总线接口与电子设备进行通信数据的传输;以及In 620, transmit the communication data with the electronic device through the universal serial bus interface; and
在630中,通过超宽带组件采用超宽带通信协议与外部超宽带设备进行通信数据的传输。In 630, the ultra-wideband component uses the ultra-wideband communication protocol to transmit the communication data with the external ultra-wideband device.
应当说明的是,以上620和630的执行顺序不受序号大小的限制,可以是620在630之前执行,也可以是620在630之后执行。It should be noted that the above execution order of 620 and 630 is not limited by the size of the sequence number, 620 may be executed before 630, or 620 may be executed after 630.
具体说明请参照以上设备支架实施例的相关说明,此处不再赘述。For specific descriptions, please refer to the related descriptions of the above embodiments of the equipment support, and details will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
需要说明的是,对本申请实施例的超宽带数据传输方法而言,本领域普通测试人员可以理解实现本申请实施例的超宽带数据传输方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如超宽带数据传输方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that, for the ultra-wideband data transmission method of the embodiment of the present application, ordinary testers in the field can understand that all or part of the flow of the ultra-wideband data transmission method of the embodiment of the application can be controlled by computer programs. hardware, the computer program can be stored in a computer-readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process can include: A flow of an embodiment of an ultra-wideband data transmission method. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, and the like.
对本申请实施例的超宽带数据传输装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the UWB data transmission device of the embodiment of the present application, its functional modules may be integrated into one processing chip, or each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as read-only memory, magnetic disk or optical disk, etc. .
以上对本申请实施例所提供的一种超宽带数据传输方法、装置、存储介质、电子设备及设备支架进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction to the ultra-wideband data transmission method, device, storage medium, electronic equipment and equipment support provided by the embodiment of the present application. In this paper, specific examples are used to illustrate the principle and implementation of the present application. The above The description of the embodiment is only used to help understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the thought of the application, there will be changes in the specific implementation and scope of application. In summary As stated above, the content of this specification should not be construed as limiting the application.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110241655.8A CN113055515B (en) | 2021-03-04 | 2021-03-04 | Ultra-wideband data transmission method and equipment support |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110241655.8A CN113055515B (en) | 2021-03-04 | 2021-03-04 | Ultra-wideband data transmission method and equipment support |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113055515A CN113055515A (en) | 2021-06-29 |
| CN113055515B true CN113055515B (en) | 2023-08-15 |
Family
ID=76510004
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110241655.8A Expired - Fee Related CN113055515B (en) | 2021-03-04 | 2021-03-04 | Ultra-wideband data transmission method and equipment support |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113055515B (en) |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN2836095Y (en) * | 2005-11-29 | 2006-11-08 | 东南大学 | Contact interlock button for wireless USB |
| CN101226516A (en) * | 2007-01-15 | 2008-07-23 | 奇岩电子股份有限公司 | Device and method capable of automatically switching to USB host or peripheral equipment |
| CN101273603A (en) * | 2005-09-27 | 2008-09-24 | 英特尔公司 | Mechanisms for data rate improvement in a wireless network |
| KR20090032646A (en) * | 2007-09-28 | 2009-04-01 | 삼성전자주식회사 | Wireless Universal Serial Bus System and Its Driving Method |
| CN104636296A (en) * | 2013-10-10 | 2015-05-20 | 诺基亚公司 | Serial communication over communication control pin |
| CN106160048A (en) * | 2015-03-02 | 2016-11-23 | 耕源科技股份有限公司 | Mobile power supply device, mobile power supply system and method thereof |
| CN108681514A (en) * | 2018-05-02 | 2018-10-19 | Oppo广东移动通信有限公司 | Equipment detection method, device, storage medium and electronic equipment |
| CN109144925A (en) * | 2018-07-27 | 2019-01-04 | 威锋电子股份有限公司 | Universal serial bus circuit |
| WO2020050511A1 (en) * | 2018-09-03 | 2020-03-12 | 주식회사 아모텍 | Portable terminal cover for supporting uwb communication |
| CN111526476A (en) * | 2020-04-17 | 2020-08-11 | Oppo广东移动通信有限公司 | Data transmission method, data transmission device, storage medium and terminal equipment |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7600000B2 (en) * | 2005-09-02 | 2009-10-06 | Microsoft Corporation | Ultra wideband wireless storage device |
-
2021
- 2021-03-04 CN CN202110241655.8A patent/CN113055515B/en not_active Expired - Fee Related
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101273603A (en) * | 2005-09-27 | 2008-09-24 | 英特尔公司 | Mechanisms for data rate improvement in a wireless network |
| CN2836095Y (en) * | 2005-11-29 | 2006-11-08 | 东南大学 | Contact interlock button for wireless USB |
| CN101226516A (en) * | 2007-01-15 | 2008-07-23 | 奇岩电子股份有限公司 | Device and method capable of automatically switching to USB host or peripheral equipment |
| KR20090032646A (en) * | 2007-09-28 | 2009-04-01 | 삼성전자주식회사 | Wireless Universal Serial Bus System and Its Driving Method |
| CN104636296A (en) * | 2013-10-10 | 2015-05-20 | 诺基亚公司 | Serial communication over communication control pin |
| CN106160048A (en) * | 2015-03-02 | 2016-11-23 | 耕源科技股份有限公司 | Mobile power supply device, mobile power supply system and method thereof |
| CN108681514A (en) * | 2018-05-02 | 2018-10-19 | Oppo广东移动通信有限公司 | Equipment detection method, device, storage medium and electronic equipment |
| CN109144925A (en) * | 2018-07-27 | 2019-01-04 | 威锋电子股份有限公司 | Universal serial bus circuit |
| WO2020050511A1 (en) * | 2018-09-03 | 2020-03-12 | 주식회사 아모텍 | Portable terminal cover for supporting uwb communication |
| CN111526476A (en) * | 2020-04-17 | 2020-08-11 | Oppo广东移动通信有限公司 | Data transmission method, data transmission device, storage medium and terminal equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113055515A (en) | 2021-06-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12013735B2 (en) | Electronic device, method of controlling charging by electronic device, and method of supplying power by power supply device | |
| KR102239572B1 (en) | Method and apparatus for full duplex data transmission between electronic devices | |
| JP5988449B2 (en) | Serial communication via communication control pin | |
| US9960615B2 (en) | Method for controlling power of electronic device and electronic device thereof | |
| WO2022104952A1 (en) | Screen state control method and apparatus, and storage medium | |
| CN102281482A (en) | Function extension method and device thereof for earphone jack of smart phone | |
| CN110768382A (en) | Wireless charging method, device, storage medium and electronic device | |
| CN106786899B (en) | Charging mode selection method and device | |
| CN106655381A (en) | Wireless charging method and device | |
| CN108681514B (en) | Device detection method and device, storage medium and electronic device | |
| CN112310756A (en) | Electronic device for preventing USB device from being damaged and operation method thereof | |
| CN107786223B (en) | Method and device for preventing SIM card from burning card and computer equipment | |
| TWM584452U (en) | Integrated electronic apparatus for data access, data transmission and power management | |
| CN105611446A (en) | Selfie stick and selfie stick identification method, device and mobile terminal | |
| CN111433756B (en) | Terminal and Type C interface anti-corrosion method | |
| CN113055515B (en) | Ultra-wideband data transmission method and equipment support | |
| CN111949103B (en) | Integrated electronic device with data access, transmission and power management and method thereof | |
| CN110190641B (en) | Charging control circuit, terminal equipment and data cable | |
| CN110109529A (en) | SD card method for controlling power supply, device, storage medium and electronic equipment | |
| CN105611445A (en) | Self-stick, self-stick identification method and apparatus, and mobile terminal | |
| CN105611448B (en) | A kind of self-shooting bar recognition methods, device and mobile terminal | |
| CN110620602A (en) | Reverse charging and data transmission sharing system, multiplexing data line and electronic device | |
| CN104407883B (en) | A kind of control method and electronic equipment | |
| WO2022179305A1 (en) | Data communication method and apparatus, and storage medium, electronic device and protective sleeve | |
| CN112256610B (en) | Connection control method, system, storage medium and mobile terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20230815 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |