[go: up one dir, main page]

CN117440060B - Communication conversion device, electronic equipment, system and method - Google Patents

Communication conversion device, electronic equipment, system and method Download PDF

Info

Publication number
CN117440060B
CN117440060B CN202311766123.1A CN202311766123A CN117440060B CN 117440060 B CN117440060 B CN 117440060B CN 202311766123 A CN202311766123 A CN 202311766123A CN 117440060 B CN117440060 B CN 117440060B
Authority
CN
China
Prior art keywords
electronic device
usb
wireless
communication
wireless communication
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.)
Active
Application number
CN202311766123.1A
Other languages
Chinese (zh)
Other versions
CN117440060A (en
Inventor
赵春江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311766123.1A priority Critical patent/CN117440060B/en
Publication of CN117440060A publication Critical patent/CN117440060A/en
Application granted granted Critical
Publication of CN117440060B publication Critical patent/CN117440060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种通信转换装置、电子设备、系统和方法,涉及无线通信领域。通信转换装置包括:第一无线通信模块、USB接口和处理器;第一无线通信模块用于与第一电子设备进行无线数据通信;处理器用于:当通过USB接口连接至第二电子设备时,通过第一无线通信模块与第一电子设备建立无线通信连接;通过第一无线通信模块获取第一电子设备的第一USB设备类型信息,并通过USB接口向第二电子设备发送第一USB设备类型信息;或者,通过USB接口获取第二电子设备的第二USB设备类型信息,并通过第一无线通信模块向第一电子设备发送第二USB设备类型信息。

The present application discloses a communication conversion device, an electronic device, a system and a method, and relates to the field of wireless communication. The communication conversion device includes: a first wireless communication module, a USB interface and a processor; the first wireless communication module is used to perform wireless data communication with a first electronic device; the processor is used to: when connected to a second electronic device through a USB interface, establish a wireless communication connection with the first electronic device through the first wireless communication module; obtain the first USB device type information of the first electronic device through the first wireless communication module, and send the first USB device type information to the second electronic device through the USB interface; or obtain the second USB device type information of the second electronic device through the USB interface, and send the second USB device type information to the first electronic device through the first wireless communication module.

Description

通信转换装置、电子设备、系统和方法Communication conversion device, electronic device, system and method

技术领域Technical Field

本申请实施例涉及无线通信领域,尤其涉及一种通信转换装置、电子设备、系统和方法。Embodiments of the present application relate to the field of wireless communications, and in particular, to a communication conversion device, electronic equipment, system, and method.

背景技术Background technique

目前,电子设备通常设置通用串行总线(universal serial bus,USB)接口,设置USB接口会影响电子设备的防水性能、防尘性能和插拔寿命,并且还会占用主板空间,不利于电子设备的超薄化,因此,取消USB接口是目前电子设备发展的趋势,然而,取消USB接口将导致无法传输数据。At present, electronic devices are usually equipped with universal serial bus (USB) interfaces. The USB interface will affect the waterproof performance, dustproof performance and plug-in life of the electronic device, and will also occupy the motherboard space, which is not conducive to the ultra-thinness of the electronic device. Therefore, canceling the USB interface is the current development trend of electronic devices. However, canceling the USB interface will result in the inability to transmit data.

发明内容Summary of the invention

本申请实施例提供一种通信转换装置、电子设备、系统和方法,用于解决当电子设备取消USB接口的情况下,无法传输数据的问题。The embodiments of the present application provide a communication conversion device, an electronic device, a system and a method for solving the problem that data cannot be transmitted when the USB interface is removed from the electronic device.

为达到上述目的,本申请的实施例采用如下技术方案:To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

第一方面,本申请提供了一种通信转换装置,包括:第一无线通信模块、USB接口和处理器;第一无线通信模块用于与第一电子设备进行无线数据通信,第一电子设备不具有USB接口;处理器用于:当通过USB接口连接至第二电子设备时,通过第一无线通信模块与第一电子设备建立无线通信连接;通过第一无线通信模块获取第一电子设备的第一USB设备类型信息,并通过USB接口向第二电子设备发送第一USB设备类型信息;或者,通过USB接口获取第二电子设备的第二USB设备类型信息,并通过第一无线通信模块向第一电子设备发送第二USB设备类型信息;通过第一无线通信模块与第一电子设备进行无线数据通信,并按照第一USB设备类型信息指示的USB设备类型的传输要求,与第二电子设备进行USB数据通信;或者,按照第二USB设备类型信息指示的USB设备类型的传输要求,与第二电子设备进行USB数据通信,并且,通过第一无线通信模块与第一电子设备进行无线数据通信。In a first aspect, the present application provides a communication conversion device, comprising: a first wireless communication module, a USB interface and a processor; the first wireless communication module is used to perform wireless data communication with a first electronic device, and the first electronic device does not have a USB interface; the processor is used to: when connected to a second electronic device through the USB interface, establish a wireless communication connection with the first electronic device through the first wireless communication module; obtain first USB device type information of the first electronic device through the first wireless communication module, and send the first USB device type information to the second electronic device through the USB interface; or, obtain second USB device type information of the second electronic device through the USB interface, and send the second USB device type information to the first electronic device through the first wireless communication module; perform wireless data communication with the first electronic device through the first wireless communication module, and perform USB data communication with the second electronic device according to the transmission requirements of the USB device type indicated by the first USB device type information; or, perform USB data communication with the second electronic device according to the transmission requirements of the USB device type indicated by the second USB device type information, and perform wireless data communication with the first electronic device through the first wireless communication module.

本申请实施例提供的通信转换装置可以与第一电子设备进行无线数据通信,并且,将第一电子设备的第一USB设备类型信息转发给第二电子设备,使通信转换装置和第二电子设备按照第一USB设备类型信息指示的USB设备类型的传输要求进行USB数据通信,以实现无线数据通信和USB数据通信的转换;或者,通信转换装置和第二电子设备按照第二USB设备类型信息指示的USB设备类型的传输要求进行USB数据通信,并且,将第二电子设备的第二USB设备类型信息转发给第一电子设备,以实现无线数据通信和USB数据通信的转换。在第一电子设备取消USB接口的情况下,通过利用本申请实施例提供的通信转换装置,可以实现第一电子设备与第二电子设备之间的数据通信功能。通信转换装置根据第一USB设备类型信息或第二USB设备类型信息所指示的USB设备类型,自动映射为对应的USB设备,用户在使用通信转换装置进行数据传输时,无需额外安装驱动和应用软件,提升了用户体验。The communication conversion device provided in the embodiment of the present application can perform wireless data communication with the first electronic device, and forward the first USB device type information of the first electronic device to the second electronic device, so that the communication conversion device and the second electronic device perform USB data communication according to the transmission requirements of the USB device type indicated by the first USB device type information, so as to realize the conversion between wireless data communication and USB data communication; or, the communication conversion device and the second electronic device perform USB data communication according to the transmission requirements of the USB device type indicated by the second USB device type information, and forward the second USB device type information of the second electronic device to the first electronic device, so as to realize the conversion between wireless data communication and USB data communication. In the case where the first electronic device cancels the USB interface, the data communication function between the first electronic device and the second electronic device can be realized by using the communication conversion device provided in the embodiment of the present application. The communication conversion device automatically maps to the corresponding USB device according to the USB device type indicated by the first USB device type information or the second USB device type information. When the user uses the communication conversion device for data transmission, there is no need to install additional drivers and application software, which improves the user experience.

在第一方面的一种可能的实现方式中,通信转换装置还包括第二无线通信模块,处理器还用于:在通过第一无线通信模块与第一电子设备建立无线通信连接之前,通过第二无线通信模块向第一电子设备发送无线配置信息,无线配置信息用于第一无线通信模块与第一电子设备建立无线通信连接。In a possible implementation of the first aspect, the communication conversion device also includes a second wireless communication module, and the processor is also used to: before establishing a wireless communication connection with the first electronic device through the first wireless communication module, send wireless configuration information to the first electronic device through the second wireless communication module, and the wireless configuration information is used for the first wireless communication module to establish a wireless communication connection with the first electronic device.

该实现方式中,第一电子设备通过获取无线配置信息,与通信转换装置进行身份验证,以实现第一无线通信模块与第一电子设备建立无线通信连接。In this implementation, the first electronic device obtains wireless configuration information and performs identity authentication with the communication conversion device, so that the first wireless communication module establishes a wireless communication connection with the first electronic device.

在第一方面的一种可能的实现方式中,第二无线通信模块具体为无线充电线圈。In a possible implementation manner of the first aspect, the second wireless communication module is specifically a wireless charging coil.

该实现方式中,当通信转换装置为无线充电装置时,无线充电装置中的无线充电线圈可以作为第二无线通信模块,向第一电子设备发送无线配置信息。In this implementation, when the communication conversion device is a wireless charging device, the wireless charging coil in the wireless charging device can be used as a second wireless communication module to send wireless configuration information to the first electronic device.

在第一方面的一种可能的实现方式中,通信转换装置包括充电底座和USB线缆,无线充电线圈位于充电底座上。In a possible implementation manner of the first aspect, the communication conversion device includes a charging base and a USB cable, and the wireless charging coil is located on the charging base.

在第一方面的一种可能的实现方式中,充电底座包括第一无线通信模块、USB接口和处理器。In a possible implementation manner of the first aspect, the charging base includes a first wireless communication module, a USB interface, and a processor.

该实现方式中,可以将第一无线通信模块、USB接口和处理器集成在无线充电装置的充电底座上,通信转换装置采用通用线缆与第二电子设备连接。In this implementation, the first wireless communication module, the USB interface and the processor may be integrated on a charging base of the wireless charging device, and the communication conversion device may be connected to the second electronic device using a universal cable.

在第一方面的一种可能的实现方式中,通信转换装置还包括USB接头,USB接头包括第一无线通信模块、USB接口和处理器。In a possible implementation manner of the first aspect, the communication conversion device further includes a USB connector, and the USB connector includes a first wireless communication module, a USB interface, and a processor.

该实现方式中,可以将第一无线通信模块、USB接口和处理器集成在无线充电装置的USB接头上,充电底座可以采用传统的充电底座,通信转换装置采用专用线缆与第二电子设备连接。In this implementation, the first wireless communication module, USB interface and processor can be integrated on the USB connector of the wireless charging device, the charging base can adopt a traditional charging base, and the communication conversion device is connected to the second electronic device using a dedicated cable.

在第一方面的一种可能的实现方式中,处理器具体用于:当识别供电来自USB接口时,通过第一无线通信模块获取第一电子设备的第一USB设备类型信息,并通过USB接口向第二电子设备发送第一USB设备类型信息。In a possible implementation manner of the first aspect, the processor is specifically used to: when identifying that power supply comes from a USB interface, obtain first USB device type information of the first electronic device through the first wireless communication module, and send the first USB device type information to the second electronic device through the USB interface.

该实现方式中,第一电子设备为USB通信的从设备,第二电子设备为USB通信的主设备(例如,个人计算机(personal computer,PC)设备)。第二电子设备通过USB接口向通信转换装置供电,此时,处理器可以识别供电来自USB接口。In this implementation, the first electronic device is a slave device of USB communication, and the second electronic device is a master device of USB communication (for example, a personal computer (PC) device). The second electronic device supplies power to the communication conversion device through a USB interface, and at this time, the processor can identify that the power comes from the USB interface.

在第一方面的一种可能的实现方式中,处理器具体用于:当识别供电不来自USB接口时,通过USB接口获取第二电子设备的第二USB设备类型信息,并通过第一无线通信模块向第一电子设备发送第二USB设备类型信息。In a possible implementation manner of the first aspect, the processor is specifically used to: when it is identified that power supply does not come from the USB interface, obtain second USB device type information of the second electronic device through the USB interface, and send the second USB device type information to the first electronic device through the first wireless communication module.

该实现方式中,第一电子设备为USB通信的主设备,第二电子设备为USB通信的从设备(例如,OTG设备)。当通信转换装置为无线充电装置时,第一电子设备通过无线充电线圈向通信转换装置供电,或者,利用其它电源向通信转换装置供电,此时,处理器可以识别供电不来自USB接口。In this implementation, the first electronic device is a USB communication master device, and the second electronic device is a USB communication slave device (e.g., an OTG device). When the communication conversion device is a wireless charging device, the first electronic device supplies power to the communication conversion device through a wireless charging coil, or supplies power to the communication conversion device using other power sources, and at this time, the processor can identify that the power supply does not come from the USB interface.

第二方面,本申请提供了一种通信转换方法,应用于如第一方面及其任一实现方式的通信转换装置,通信转换方法包括:当通过通信转换装置中的USB接口连接至第二电子设备时,通过通信转换装置中的第一无线通信模块与第一电子设备建立无线通信连接;第一无线通信模块用于与第一电子设备进行无线数据通信;第一电子设备不具有USB接口;通过第一无线通信模块获取第一电子设备的第一USB设备类型信息,并通过USB接口向第二电子设备发送第一USB设备类型信息;或者,通过USB接口获取第二电子设备的第二USB设备类型信息,并通过第一无线通信模块向第一电子设备发送第二USB设备类型信息;通过第一无线通信模块与第一电子设备进行无线数据通信,并按照第一USB设备类型信息指示的USB设备类型的传输要求,与第二电子设备进行USB数据通信;或者,按照第二USB设备类型信息指示的USB设备类型的传输要求,与第二电子设备进行USB数据通信,并且,通过第一无线通信模块与第一电子设备进行无线数据通信。In a second aspect, the present application provides a communication conversion method, which is applied to a communication conversion device as in the first aspect and any implementation method thereof, the communication conversion method comprising: when connected to a second electronic device through a USB interface in the communication conversion device, establishing a wireless communication connection with the first electronic device through a first wireless communication module in the communication conversion device; the first wireless communication module is used to perform wireless data communication with the first electronic device; the first electronic device does not have a USB interface; obtaining first USB device type information of the first electronic device through the first wireless communication module, and sending the first USB device type information to the second electronic device through the USB interface; or, obtaining second USB device type information of the second electronic device through the USB interface, and sending the second USB device type information to the first electronic device through the first wireless communication module; performing wireless data communication with the first electronic device through the first wireless communication module, and performing USB data communication with the second electronic device according to the transmission requirements of the USB device type indicated by the first USB device type information; or, performing USB data communication with the second electronic device according to the transmission requirements of the USB device type indicated by the second USB device type information, and performing wireless data communication with the first electronic device through the first wireless communication module.

在第二方面的一种可能的实现方式中,还包括:在通过第一无线通信模块与第一电子设备建立无线通信连接之前,通过通信转换装置中的第二无线通信模块向第一电子设备发送无线配置信息,无线配置信息用于第一无线通信模块与第一电子设备建立无线通信连接。In a possible implementation manner of the second aspect, it also includes: before establishing a wireless communication connection with the first electronic device through the first wireless communication module, sending wireless configuration information to the first electronic device through the second wireless communication module in the communication conversion device, and the wireless configuration information is used for the first wireless communication module to establish a wireless communication connection with the first electronic device.

在第二方面的一种可能的实现方式中,通过第一无线通信模块获取第一电子设备的第一USB设备类型信息,并通过USB接口向第二电子设备发送第一USB设备类型信息,具体包括:当识别供电来自USB接口时,通过第一无线通信模块获取第一电子设备的第一USB设备类型信息,并通过USB接口向第二电子设备发送第一USB设备类型信息。In a possible implementation of the second aspect, obtaining first USB device type information of the first electronic device through the first wireless communication module, and sending the first USB device type information to the second electronic device through the USB interface, specifically includes: when it is identified that the power supply comes from the USB interface, obtaining the first USB device type information of the first electronic device through the first wireless communication module, and sending the first USB device type information to the second electronic device through the USB interface.

在第二方面的一种可能的实现方式中,通过USB接口获取第二电子设备的第二USB设备类型信息,并通过第一无线通信模块向第一电子设备发送第二USB设备类型信息,具体包括:当识别供电不来自USB接口时,通过USB接口获取第二电子设备的第二USB设备类型信息,并通过第一无线通信模块向第一电子设备发送第二USB设备类型信息。In a possible implementation of the second aspect, obtaining second USB device type information of the second electronic device through the USB interface, and sending the second USB device type information to the first electronic device through the first wireless communication module specifically includes: when it is identified that power supply does not come from the USB interface, obtaining the second USB device type information of the second electronic device through the USB interface, and sending the second USB device type information to the first electronic device through the first wireless communication module.

第三方面,本申请提供了一种电子设备,电子设备不具有USB接口,电子设备包括处理器、无线通信模块和信息获取模块,处理器用于:通过信息获取模块获取无线配置信息;根据无线配置信息,通过无线通信模块与通信转换装置建立无线通信连接;通过无线通信模块向通信转换装置发送电子设备的第一USB设备类型信息,或者,通过无线通信模块从通信转换装置接收第二电子设备的第二USB设备类型信息;第一USB设备类型信息或第二USB设备类型信息用于指示USB设备类型,通信转换装置用于按照USB设备类型的传输要求与第二电子设备通过USB接口进行通信;通过无线通信模块与通信转换装置进行无线数据通信,并按照第一USB设备类型信息指示的USB设备类型的传输要求,通过通信转换装置与第二电子设备进行USB数据通信;或者,按照第二USB设备类型信息指示的USB设备类型的传输要求,通过通信转换装置与第二电子设备进行USB数据通信。In a third aspect, the present application provides an electronic device, which does not have a USB interface. The electronic device includes a processor, a wireless communication module and an information acquisition module, wherein the processor is used to: acquire wireless configuration information through the information acquisition module; establish a wireless communication connection with a communication conversion device through the wireless communication module according to the wireless configuration information; send first USB device type information of the electronic device to the communication conversion device through the wireless communication module, or receive second USB device type information of a second electronic device from the communication conversion device through the wireless communication module; the first USB device type information or the second USB device type information is used to indicate the USB device type, and the communication conversion device is used to communicate with the second electronic device through the USB interface according to the transmission requirements of the USB device type; perform wireless data communication with the communication conversion device through the wireless communication module, and perform USB data communication with the second electronic device through the communication conversion device according to the transmission requirements of the USB device type indicated by the first USB device type information; or perform USB data communication with the second electronic device through the communication conversion device according to the transmission requirements of the USB device type indicated by the second USB device type information.

在第三方面的一种可能的实现方式中,信息获取模块为以下模块中的至少一项:无线充电线圈、近场通信模块、蓝牙模块、摄像头。In a possible implementation manner of the third aspect, the information acquisition module is at least one of the following modules: a wireless charging coil, a near field communication module, a Bluetooth module, and a camera.

第四方面,本申请提供了一种通信转换方法,应用于如第三方面及其任一实现方式的电子设备,通信转换方法包括:通过电子设备中的信息获取模块获取无线配置信息;根据无线配置信息,通过电子设备中的无线通信模块与通信转换装置建立无线通信连接;通过无线通信模块向通信转换装置发送电子设备的第一USB设备类型信息,或者,通过无线通信模块从通信转换装置接收第二电子设备的第二USB设备类型信息;第一USB设备类型信息或第二USB设备类型信息用于指示USB设备类型;通过无线通信模块与通信转换装置进行无线数据通信,并按照第一USB设备类型信息指示的USB设备类型的传输要求,通过通信转换装置与第二电子设备进行USB数据通信;或者,按照第二USB设备类型信息指示的USB设备类型的传输要求,通过通信转换装置与第二电子设备进行USB数据通信。In a fourth aspect, the present application provides a communication conversion method, which is applied to an electronic device such as the third aspect and any implementation method thereof, and the communication conversion method includes: acquiring wireless configuration information through an information acquisition module in the electronic device; establishing a wireless communication connection with a communication conversion device through a wireless communication module in the electronic device according to the wireless configuration information; sending first USB device type information of the electronic device to the communication conversion device through the wireless communication module, or receiving second USB device type information of the second electronic device from the communication conversion device through the wireless communication module; the first USB device type information or the second USB device type information is used to indicate the USB device type; performing wireless data communication with the communication conversion device through the wireless communication module, and performing USB data communication with the second electronic device through the communication conversion device according to the transmission requirements of the USB device type indicated by the first USB device type information; or performing USB data communication with the second electronic device through the communication conversion device according to the transmission requirements of the USB device type indicated by the second USB device type information.

第五方面,本申请提供了一种通信转换系统,包括第二电子设备、如第三方面及其任一实现方式的电子设备和如第一方面及其任一实现方式的通信转换装置;电子设备通过通信转换装置与第二电子设备进行数据通信。In a fifth aspect, the present application provides a communication conversion system, comprising a second electronic device, an electronic device such as the third aspect and any implementation thereof, and a communication conversion device such as the first aspect and any implementation thereof; the electronic device performs data communication with the second electronic device through the communication conversion device.

第六方面,本申请提供了一种计算机可读存储介质,包括指令,当指令在通信转换装置上执行时,使得通信转换装置执行如第二方面及其任一实现方式所述的方法;当指令在电子设备上执行时,使得电子设备执行如第四方面所述的方法。In the sixth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on a communication conversion device, causes the communication conversion device to execute the method described in the second aspect and any one of its implementations; and when the instructions are executed on an electronic device, causes the electronic device to execute the method described in the fourth aspect.

第七方面,本申请提供了一种包含指令的计算机程序产品,当指令在上述电子设备上运行时,使得该电子设备执行如第二方面及其任一实现方式所述的方法。In a seventh aspect, the present application provides a computer program product comprising instructions, which, when executed on the electronic device, causes the electronic device to execute the method described in the second aspect and any implementation thereof.

第八方面,提供了一种芯片系统,该芯片系统包括处理器,用于支持电子设备实现上述第二方面中所涉及的功能。在一种可能的设计中,该装置还包括接口电路,接口电路可用于从其它装置(例如存储器)接收信号,或者,向其它装置(例如通信接口)发送信号。该芯片系统可以包括芯片,还可以包括其他分立器件。In an eighth aspect, a chip system is provided, the chip system including a processor for supporting an electronic device to implement the functions involved in the second aspect. In a possible design, the device also includes an interface circuit, which can be used to receive signals from other devices (such as a memory) or send signals to other devices (such as a communication interface). The chip system may include a chip and may also include other discrete devices.

第二方面至第八方面的技术效果参照第一方面及其任一实施方式的技术效果,在此不再重复。The technical effects of the second to eighth aspects refer to the technical effects of the first aspect and any of its embodiments, and will not be repeated here.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请实施例提供的一种通信转换系统的结构示意图之一;FIG1 is a schematic diagram of a structure of a communication conversion system provided in an embodiment of the present application;

图2为本申请实施例提供的一种第一电子设备的结构示意图;FIG2 is a schematic structural diagram of a first electronic device provided in an embodiment of the present application;

图3为本申请实施例提供的一种通信转换装置的结构示意图;FIG3 is a schematic diagram of the structure of a communication conversion device provided in an embodiment of the present application;

图4为本申请实施例提供的一种通信转换系统的结构示意图之二;FIG4 is a second structural diagram of a communication conversion system provided in an embodiment of the present application;

图5为本申请实施例提供的一种通信转换系统的结构示意图之三;FIG5 is a third structural diagram of a communication conversion system provided in an embodiment of the present application;

图6为本申请实施例提供的一种通信转换系统的结构示意图之四;FIG6 is a fourth structural diagram of a communication conversion system provided in an embodiment of the present application;

图7为本申请实施例提供的一种通信转换系统的结构示意图之五;FIG7 is a fifth structural diagram of a communication conversion system provided in an embodiment of the present application;

图8为本申请实施例提供的一种通信转换系统的结构示意图之六;FIG8 is a sixth structural diagram of a communication conversion system provided in an embodiment of the present application;

图9为本申请实施例提供的一种通信转换方法的流程示意图之一;FIG9 is a flow chart of a communication conversion method according to an embodiment of the present application;

图10为本申请实施例提供的一种通信转换方法的流程示意图之二;FIG10 is a second flow chart of a communication conversion method provided in an embodiment of the present application;

图11为本申请实施例提供的一种第一电子设备的用户界面示意图;FIG11 is a schematic diagram of a user interface of a first electronic device provided in an embodiment of the present application;

图12为本申请实施例提供的一种通信转换系统的结构示意图之七;FIG12 is a seventh structural diagram of a communication conversion system provided in an embodiment of the present application;

图13为本申请实施例提供的一种通信转换系统的结构示意图之八;FIG13 is an eighth structural diagram of a communication conversion system provided in an embodiment of the present application;

图14为本申请实施例提供的一种通信转换系统的结构示意图之九;FIG14 is a ninth structural diagram of a communication conversion system provided in an embodiment of the present application;

图15为本申请实施例提供的一种通信转换方法的流程示意图之三;FIG15 is a third flow chart of a communication conversion method provided in an embodiment of the present application;

图16为本申请实施例提供的一种通信转换方法的流程示意图之四;FIG16 is a fourth flow chart of a communication conversion method provided in an embodiment of the present application;

图17为本申请实施例提供的一种芯片系统的结构示意图。FIG17 is a schematic diagram of the structure of a chip system provided in an embodiment of the present application.

具体实施方式Detailed ways

首先对本申请涉及的一些概念进行描述。First, some concepts involved in this application are described.

本申请实施例涉及的术语“第一”、“第二”等仅用于区分同一类型特征的目的,不能理解为用于指示相对重要性、数量、顺序等。The terms "first", "second", etc. involved in the embodiments of the present application are only used to distinguish features of the same type and cannot be understood as indicating relative importance, quantity, order, etc.

本申请实施例涉及的术语“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。The terms "exemplary" or "for example" and the like in the embodiments of the present application are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the terms "exemplary" or "for example" is intended to present the related concepts in a specific way.

本申请实施例涉及的术语“耦合”、“连接”应做广义理解,例如,可以指物理上的直接连接,也可以指通过电子器件实现的间接连接,例如通过电阻、电感、电容或其他电子器件实现的连接。The terms "coupling" and "connection" involved in the embodiments of the present application should be understood in a broad sense. For example, they may refer to a direct physical connection, or an indirect connection achieved through electronic devices, such as a connection achieved through resistors, inductors, capacitors or other electronic devices.

目前,电子设备通常设置USB接口,USB接口可以作为数据传输接口,通过USB线缆连接两个电子设备的USB接口,可以实现两个电子设备之间的有线数据传输。然而,设置USB接口会影响电子设备的防水性能、防尘性能和插拔寿命,并且还会占用主板空间,不利于电子设备的超薄化,因此,取消USB接口是目前电子设备发展的趋势。At present, electronic devices are usually equipped with USB interfaces, which can be used as data transmission interfaces. By connecting the USB interfaces of two electronic devices with a USB cable, wired data transmission between the two electronic devices can be realized. However, the installation of USB interfaces will affect the waterproof performance, dustproof performance and plug-in life of electronic devices, and will also occupy the motherboard space, which is not conducive to the ultra-thinness of electronic devices. Therefore, the removal of USB interfaces is the current trend in the development of electronic devices.

如果取消USB接口,需要通过无线数据通信方式实现电子设备的数据传输功能。在现有技术中,当两个电子设备进行无线数据通信时,两个电子设备均需要提前安装适配的应用程序或者驱动,再由用户手动进行连接,该方法需要用户具备一定的电脑操作能力。If the USB interface is removed, the data transmission function of the electronic device needs to be realized through wireless data communication. In the prior art, when two electronic devices perform wireless data communication, both electronic devices need to install an adaptive application or driver in advance, and then the user manually connects them. This method requires the user to have certain computer operation skills.

为此,如图1所示,本申请实施例提供了一种通信转换系统,该通信转换系统包括第一电子设备20、第二电子设备30和通信转换装置10。其中,第一电子设备20为取消USB接口的电子设备。第二电子设备30是与第一电子设备20进行数据传输的设备。通信转换装置10用于与第一电子设备20建立无线通信连接,与第二电子设备30建立USB通信连接。To this end, as shown in FIG1 , an embodiment of the present application provides a communication conversion system, which includes a first electronic device 20, a second electronic device 30, and a communication conversion device 10. The first electronic device 20 is an electronic device without a USB interface. The second electronic device 30 is a device for data transmission with the first electronic device 20. The communication conversion device 10 is used to establish a wireless communication connection with the first electronic device 20 and a USB communication connection with the second electronic device 30.

第一电子设备20可以作为USB通信的从设备,第二电子设备30作为USB通信的主设备。例如,第一电子设备20为手机、平板、智能手表等,第二电子设备30为个人计算机(PC设备)、笔记本电脑等。或者,第一电子设备20也可以作为USB通信的主设备,第二电子设备30作为USB通信的从设备(或称OTG设备)。例如,第一电子设备20为手机、平板、智能手表等,第二电子设备30为U盘、USB鼠标、USB键盘、U盾等。The first electronic device 20 can be used as a slave device for USB communication, and the second electronic device 30 can be used as a master device for USB communication. For example, the first electronic device 20 is a mobile phone, a tablet, a smart watch, etc., and the second electronic device 30 is a personal computer (PC device), a laptop, etc. Alternatively, the first electronic device 20 can also be used as a master device for USB communication, and the second electronic device 30 can be used as a slave device (or OTG device) for USB communication. For example, the first electronic device 20 is a mobile phone, a tablet, a smart watch, etc., and the second electronic device 30 is a USB flash drive, a USB mouse, a USB keyboard, a USB shield, etc.

当第一电子设备20作为USB通信的从设备,第二电子设备30作为USB通信的主设备时,通信转换装置10通知第二电子设备30进行枚举,在枚举过程中,通信转换装置10负责第一电子设备20与第二电子设备30之间的通信。例如,通信转换装置10通过无线通信连接从第一电子设备20获取第一电子设备20的USB设备类型信息,并通过USB通信连接发送给第二电子设备30。此时,通信转换装置10被映射为该USB设备类型信息所指示的USB设备,负责第一电子设备20与第二电子设备30之间的数据通信。When the first electronic device 20 acts as a slave device of USB communication and the second electronic device 30 acts as a master device of USB communication, the communication conversion device 10 notifies the second electronic device 30 to perform enumeration. During the enumeration process, the communication conversion device 10 is responsible for the communication between the first electronic device 20 and the second electronic device 30. For example, the communication conversion device 10 obtains the USB device type information of the first electronic device 20 from the first electronic device 20 through a wireless communication connection, and sends it to the second electronic device 30 through a USB communication connection. At this time, the communication conversion device 10 is mapped to the USB device indicated by the USB device type information, and is responsible for the data communication between the first electronic device 20 and the second electronic device 30.

当第一电子设备20作为USB通信的主设备,第二电子设备30作为USB通信的从设备时,通信转换装置10通知第一电子设备20进行枚举,在枚举过程中,通信转换装置10负责第一电子设备20与第二电子设备30之间的通信。例如,通信转换装置10通过USB通信连接从第二电子设备30获取第二电子设备30的USB设备类型信息,并通过无线通信连接发送给第一电子设备20。此时,通信转换装置10被映射为该USB设备类型信息所指示的USB设备,负责第一电子设备20与第二电子设备30之间的数据通信。When the first electronic device 20 acts as the master device of USB communication and the second electronic device 30 acts as the slave device of USB communication, the communication conversion device 10 notifies the first electronic device 20 to perform enumeration. During the enumeration process, the communication conversion device 10 is responsible for the communication between the first electronic device 20 and the second electronic device 30. For example, the communication conversion device 10 obtains the USB device type information of the second electronic device 30 from the second electronic device 30 through the USB communication connection, and sends it to the first electronic device 20 through the wireless communication connection. At this time, the communication conversion device 10 is mapped to the USB device indicated by the USB device type information, and is responsible for the data communication between the first electronic device 20 and the second electronic device 30.

USB通信的枚举过程是指,当USB通信的从设备连接至主设备后,主设备通过枚举过程与从设备通信,以获取从设备的USB设备类型信息,从而获知从设备是什么类型的USB设备,并加载对应的驱动程序。从设备连接至主设备到枚举结束的整个过程包括以下状态的变化:连接状态、供电状态、默认状态、地址状态、配置状态以及挂起状态。在枚举过程中,主设备和从设备协商确定功能相关的配置项,所有的配置项都以描述符的形式提供,包括设备描述符、配置描述符、字符串描述符、接口描述符、端点描述符、设备限定描述符。当相关功能参数被配置后,主设备和从设备可根据具体的USB设备类型,实现相关功能。The enumeration process of USB communication refers to that when the slave device of USB communication is connected to the master device, the master device communicates with the slave device through the enumeration process to obtain the USB device type information of the slave device, so as to know what type of USB device the slave device is and load the corresponding driver. The whole process from the connection of the slave device to the end of enumeration includes the following state changes: connection state, power supply state, default state, address state, configuration state and suspended state. During the enumeration process, the master device and the slave device negotiate to determine the function-related configuration items. All configuration items are provided in the form of descriptors, including device descriptors, configuration descriptors, string descriptors, interface descriptors, endpoint descriptors, and device-limited descriptors. After the relevant function parameters are configured, the master device and the slave device can implement relevant functions according to the specific USB device type.

USB总线技术规范规定的USB设备类型如表1所示:The USB device types specified in the USB bus technical specification are shown in Table 1:

表1Table 1

以第一电子设备20为手机为例,图2示出了第一电子设备20的一种可能的结构。第一电子设备20可以包括处理器210、外部存储器接口220、内部存储器230、电源管理模块240、电池241、无线充电线圈242、天线1、天线2、移动通信模块250、无线通信模块260、音频模块270、扬声器270A、受话器270B、麦克风270C、耳机接口270D、传感器模块280、按键290、马达291、指示器292、摄像头293、显示屏294以及用户标识模块(subscriberidentification module,SIM)卡接口295等。Taking the first electronic device 20 as a mobile phone as an example, FIG2 shows a possible structure of the first electronic device 20. The first electronic device 20 may include a processor 210, an external memory interface 220, an internal memory 230, a power management module 240, a battery 241, a wireless charging coil 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc.

可以理解的是,本申请实施例示意的结构并不构成对第一电子设备20的具体限定。在本申请另一些实施例中,第一电子设备20可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the first electronic device 20. In other embodiments of the present application, the first electronic device 20 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

处理器210可以包括一个或多个处理单元,例如:处理器210可以为现场可编程门阵列(field programmable gate array,FPGA)、专用集成电路(application specificintegrated circuit,ASIC)、片上系统(system on chip,SoC)、应用处理器(applicationprocessor,AP)、图形处理器(graphics processing unit,GPU)、图像信号处理器(imagesignal processor,ISP)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器210中还可以设置存储器,用于存储计算机指令和数据。The processor 210 may include one or more processing units, for example, the processor 210 may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), an application processor (AP), a graphics processing unit (GPU), an image signal processor (ISP), etc. Among them, different processing units may be independent devices or integrated into one or more processors. A memory may also be provided in the processor 210 for storing computer instructions and data.

外部存储器接口220可以用于连接外部存储卡,例如微闪迪(micro SanDisk,Micro SD)卡,实现扩展第一电子设备20的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 220 can be used to connect an external memory card, such as a micro SanDisk (Micro SD) card, to expand the storage capacity of the first electronic device 20. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music and videos are stored in the external memory card.

内部存储器230可以用于存储计算机可执行程序代码,所述可执行程序代码包括计算机指令。处理器210通过运行存储在内部存储器230的计算机指令,从而执行第一电子设备20的各种功能应用以及数据处理。The internal memory 230 may be used to store computer executable program codes, which include computer instructions. The processor 210 executes various functional applications and data processing of the first electronic device 20 by running the computer instructions stored in the internal memory 230 .

第一电子设备20的无线通信功能可以通过天线1、天线2、移动通信模块250、无线通信模块260、调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。第一电子设备20中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。The wireless communication function of the first electronic device 20 can be implemented by antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first electronic device 20 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization rate of the antenna.

移动通信模块250可以提供应用在第一电子设备20上的包括2G/3G/4G/5G等无线通信的解决方案。无线通信模块260可以提供应用在第一电子设备20上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)、蓝牙(bluetooth,BT)、全球导航卫星系统(global navigation satellite system,GNSS)等无线通信的解决方案。The mobile communication module 250 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied on the first electronic device 20. The wireless communication module 260 can provide solutions for wireless communications including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), etc., applied on the first electronic device 20.

第一电子设备20可以通过音频模块270、扬声器270A、受话器270B、麦克风270C、耳机接口270D以及应用处理器等实现音频功能。音频模块270用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。扬声器270A,也称“喇叭”,用于将音频电信号转换为声音信号。受话器270B,也称“听筒”,用于将音频电信号转换成声音信号。麦克风270C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。第一电子设备20可以设置至少一个麦克风270C。耳机接口270D用于连接有线耳机。The first electronic device 20 can implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone interface 270D, and an application processor. The audio module 270 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The speaker 270A, also known as a "speaker", is used to convert audio electrical signals into sound signals. The receiver 270B, also known as a "earpiece", is used to convert audio electrical signals into sound signals. The microphone 270C, also known as a "microphone" or "microphone", is used to convert sound signals into electrical signals. The first electronic device 20 can be provided with at least one microphone 270C. The headphone interface 270D is used to connect wired headphones.

传感器模块280可以包括压力传感器、陀螺仪传感器、气压传感器、磁传感器、加速度传感器、距离传感器、接近光传感器、指纹传感器、温度传感器、触摸传感器、环境光传感器、角度传感器等。The sensor module 280 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, an angle sensor, and the like.

按键290包括开机键、音量键等。按键290可以是机械按键,也可以是触摸式按键。马达291可以产生振动提示。马达291可以用于来电振动提示,也可以用于触摸振动反馈。指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息、未接来电、通知等。SIM卡接口295用于连接SIM卡。SIM卡可以通过插入SIM卡接口295,或从SIM卡接口295拔出,实现和第一电子设备20的接触和分离。The button 290 includes a power button, a volume button, etc. The button 290 can be a mechanical button or a touch button. The motor 291 can generate a vibration prompt. The motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 292 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 295 is used to connect the SIM card. The SIM card can be connected to and separated from the first electronic device 20 by inserting it into the SIM card interface 295 or pulling it out from the SIM card interface 295.

第一电子设备20可以通过ISP、摄像头293、视频编解码器、GPU、显示屏294以及应用处理器等实现拍摄功能。ISP用于处理摄像头293反馈的数据。第一电子设备20可以通过GPU、显示屏294以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。显示屏294用于显示图像,视频等。显示屏294包括显示面板。The first electronic device 20 can realize the shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294 and the application processor. The ISP is used to process the data fed back by the camera 293. The first electronic device 20 can realize the display function through the GPU, the display screen 294 and the application processor. The GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor. The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel.

电源管理模块240用于从第一电子设备20的无线充电线圈242接收无线充电输入。电源管理模块240为电池241充电的同时,还可以为第一电子设备20供电。电源管理模块240接收电池241的输入,为处理器210、内部存储器230、外部存储器接口220、显示屏294、摄像头293和无线通信模块260等供电。电源管理模块240还可以用于监测电池241的容量、电压、电池循环次数、电池健康状态(漏电、阻抗)等参数。在其他一些实施例中,电源管理模块240也可以设置于处理器210中。The power management module 240 is used to receive wireless charging input from the wireless charging coil 242 of the first electronic device 20. The power management module 240 can also provide power to the first electronic device 20 while charging the battery 241. The power management module 240 receives input from the battery 241 and provides power to the processor 210, the internal memory 230, the external memory interface 220, the display screen 294, the camera 293, and the wireless communication module 260. The power management module 240 can also be used to monitor parameters such as the capacity, voltage, battery cycle number, and battery health status (leakage, impedance) of the battery 241. In some other embodiments, the power management module 240 can also be set in the processor 210.

图3示出了本申请实施例提供的一种通信转换装置10的结构示意图。通信转换装置10包括:第一无线通信模块101、第一USB接口103和第一处理器104。可选的,通信转换装置10包括第二无线通信模块102。3 shows a schematic diagram of the structure of a communication conversion device 10 provided in an embodiment of the present application. The communication conversion device 10 includes: a first wireless communication module 101, a first USB interface 103 and a first processor 104. Optionally, the communication conversion device 10 includes a second wireless communication module 102.

其中,第一无线通信模块101用于与第一电子设备(例如,图1中的第一电子设备20)建立无线通信连接(例如Wi-Fi连接),用于实现大量数据的传输功能。The first wireless communication module 101 is used to establish a wireless communication connection (eg, a Wi-Fi connection) with a first electronic device (eg, the first electronic device 20 in FIG. 1 ) to implement a large amount of data transmission function.

第二无线通信模块102用于传输无线配置信息等少量数据,无线配置信息用于第一电子设备和通信转换装置10之间进行身份验证,当第一电子设备和通信转换装置10之间完成身份验证后,第一电子设备与第一无线通信模块101建立无线通信连接。The second wireless communication module 102 is used to transmit a small amount of data such as wireless configuration information. The wireless configuration information is used for identity authentication between the first electronic device and the communication conversion device 10. When the identity authentication between the first electronic device and the communication conversion device 10 is completed, the first electronic device establishes a wireless communication connection with the first wireless communication module 101.

具体的,无线配置信息包括Wi-Fi服务集标识(service set identifier,SSID)、Wi-Fi密码、媒体访问控制(media access control,MAC)地址等信息。其中,SSID是第一无线通信模块101的名称,当第一电子设备识别第一无线通信模块101的SSID后,第一电子设备与第一无线通信模块101建立无线通信连接。Wi-Fi密码是第一电子设备连接第一无线通信模块101时所需的认证信息,用于检验第一电子设备的身份,以保护数据传输的安全。MAC地址也称为物理地址,用于标识通信转换装置10,以确保数据能够准确地发送到目标设备。Specifically, the wireless configuration information includes information such as the Wi-Fi service set identifier (SSID), the Wi-Fi password, and the media access control (MAC) address. Among them, the SSID is the name of the first wireless communication module 101. When the first electronic device identifies the SSID of the first wireless communication module 101, the first electronic device establishes a wireless communication connection with the first wireless communication module 101. The Wi-Fi password is the authentication information required when the first electronic device connects to the first wireless communication module 101, and is used to verify the identity of the first electronic device to protect the security of data transmission. The MAC address is also called a physical address, which is used to identify the communication conversion device 10 to ensure that data can be accurately sent to the target device.

第一USB接口103用于连接第二电子设备(例如,图1中的第二电子设备30),可以使第二电子设备向通信转换装置10供电,或者,使第一电子设备或其他电源通过通信转换装置10向第二电子设备供电;并且,第一USB接口103还用于实现数据传输功能。The first USB interface 103 is used to connect a second electronic device (for example, the second electronic device 30 in FIG. 1 ), so that the second electronic device can supply power to the communication conversion device 10, or the first electronic device or other power source can supply power to the second electronic device through the communication conversion device 10; and the first USB interface 103 is also used to implement a data transmission function.

第一处理器104用于实现无线数据通信和USB数据通信之间的转换。当第一电子设备为USB通信的从设备,第二电子设备为USB通信的主设备时,第一处理器104通过无线通信连接从第一电子设备接收数据,并通过USB通信连接将数据发送给第二电子设备。当第一电子设备为USB通信的主设备,第二电子设备为USB通信的从设备时,第一处理器104通过USB通信连接从第二电子设备接收数据,并通过无线通信连接将数据发送给第一电子设备。The first processor 104 is used to implement the conversion between wireless data communication and USB data communication. When the first electronic device is a slave device of USB communication and the second electronic device is a master device of USB communication, the first processor 104 receives data from the first electronic device through a wireless communication connection and sends the data to the second electronic device through a USB communication connection. When the first electronic device is a master device of USB communication and the second electronic device is a slave device of USB communication, the first processor 104 receives data from the second electronic device through a USB communication connection and sends the data to the first electronic device through a wireless communication connection.

可以理解的是,本申请实施例示意的结构并不构成对通信转换装置10的具体限定。在本申请另一些实施例中,通信转换装置10可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the communication conversion device 10. In other embodiments of the present application, the communication conversion device 10 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

如图4和图5所示,以第一电子设备20为USB通信的从设备(例如手机),第二电子设备30为USB通信的主设备(例如PC设备)为例,通信转换装置10可以为无线充电装置。通信转换装置10包括充电底座A和USB线缆B。充电底座A中的无线充电线圈除了可以用于根据无线充电协议传输无线充电参数以外,还可以作为第二无线通信模块102向第一电子设备20发送无线配置信息。As shown in FIG. 4 and FIG. 5 , taking the first electronic device 20 as a slave device of USB communication (such as a mobile phone) and the second electronic device 30 as a master device of USB communication (such as a PC device) as an example, the communication conversion device 10 can be a wireless charging device. The communication conversion device 10 includes a charging base A and a USB cable B. In addition to being used to transmit wireless charging parameters according to the wireless charging protocol, the wireless charging coil in the charging base A can also be used as a second wireless communication module 102 to send wireless configuration information to the first electronic device 20.

如图4所示,在一种可能的实施方式中,USB线缆B可以为专用线缆,该实施方式中,通信转换装置10还包括USB接头C,并且,第一无线通信模块101、第一USB接口103和第一处理器104可以集成在USB接头C上。此时,USB接头C中的第一USB接口103用于连接第二电子设备30中的第二USB接口301。As shown in FIG4 , in a possible implementation, the USB cable B may be a dedicated cable, in which the communication conversion device 10 further includes a USB connector C, and the first wireless communication module 101, the first USB interface 103 and the first processor 104 may be integrated on the USB connector C. At this time, the first USB interface 103 in the USB connector C is used to connect to the second USB interface 301 in the second electronic device 30.

如图5所示,在另一种可能的实施方式中,USB线缆B可以为通用线缆,第一无线通信模块101、第一USB接口103和第一处理器104可以集成在充电底座A上。此时,第一USB接口103通过通用的USB线缆B连接第二电子设备30中的第二USB接口301。As shown in FIG5 , in another possible implementation, the USB cable B may be a universal cable, and the first wireless communication module 101 , the first USB interface 103 , and the first processor 104 may be integrated on the charging base A. At this time, the first USB interface 103 is connected to the second USB interface 301 in the second electronic device 30 via the universal USB cable B.

如图4和图5所示,第一电子设备20包括电池201、充放电模块202、第三无线通信模块203、第二处理器204和无线充电线圈205(无线充电线圈205可以作为信息获取模块获取无线配置信息)。其中,第二处理器204控制充放电模块202利用来自无线充电线圈205的电能向电池201充电;另外,第二处理器204控制充放电模块202通过无线充电线圈205接收来自第二无线通信模块102的无线配置信息。当第一电子设备20和通信转换装置10完成身份验证后,第二处理器204控制第三无线通信模块203与通信转换装置10中的第一无线通信模块101建立无线通信连接。As shown in FIG. 4 and FIG. 5 , the first electronic device 20 includes a battery 201, a charging and discharging module 202, a third wireless communication module 203, a second processor 204, and a wireless charging coil 205 (the wireless charging coil 205 can be used as an information acquisition module to acquire wireless configuration information). The second processor 204 controls the charging and discharging module 202 to charge the battery 201 using the power from the wireless charging coil 205; in addition, the second processor 204 controls the charging and discharging module 202 to receive the wireless configuration information from the second wireless communication module 102 through the wireless charging coil 205. When the first electronic device 20 and the communication conversion device 10 complete the identity authentication, the second processor 204 controls the third wireless communication module 203 to establish a wireless communication connection with the first wireless communication module 101 in the communication conversion device 10.

如图6-图8所示,以第一电子设备20为USB通信的从设备(例如手机),第二电子设备30为USB通信的主设备(例如PC设备)为例,通信转换装置10可以不为无线充电装置。此时,第一电子设备20还可以通过其他无线方式获取通信转换装置10的无线配置信息。As shown in Figures 6 to 8, taking the first electronic device 20 as a slave device of USB communication (such as a mobile phone) and the second electronic device 30 as a master device of USB communication (such as a PC device) as an example, the communication conversion device 10 may not be a wireless charging device. In this case, the first electronic device 20 may also obtain the wireless configuration information of the communication conversion device 10 through other wireless methods.

如图6所示,在一种可能的实施方式中,第一电子设备20还包括NFC模块206(NFC模块206可以作为信息获取模块获取无线配置信息),第二无线通信模块102还可以为近场通信(near field communication,NFC)模块。第一电子设备20中的NFC模块206通过与第二无线通信模块102进行通信来获取无线配置信息。As shown in FIG6 , in a possible implementation, the first electronic device 20 further includes an NFC module 206 (the NFC module 206 can be used as an information acquisition module to acquire wireless configuration information), and the second wireless communication module 102 can also be a near field communication (NFC) module. The NFC module 206 in the first electronic device 20 acquires the wireless configuration information by communicating with the second wireless communication module 102.

如图7所示,在一种可能的实施方式中,第一电子设备20还包括蓝牙模块207(蓝牙模块207可以作为信息获取模块获取无线配置信息),第二无线通信模块102还可以为蓝牙模块。第一电子设备20中的蓝牙模块207通过与第二无线通信模块102进行通信来获取无线配置信息。As shown in FIG7 , in a possible implementation, the first electronic device 20 further includes a Bluetooth module 207 (the Bluetooth module 207 can be used as an information acquisition module to acquire wireless configuration information), and the second wireless communication module 102 can also be a Bluetooth module. The Bluetooth module 207 in the first electronic device 20 acquires the wireless configuration information by communicating with the second wireless communication module 102.

如图8所示,在一种可能的实施方式中,第一电子设备20还包括摄像头208(摄像头208可以作为信息获取模块获取无线配置信息),通信转换装置10上设置有二维码105。第一电子设备20通过摄像头208扫描通信转换装置10上的二维码105来获取无线配置信息。As shown in FIG8 , in a possible implementation, the first electronic device 20 further includes a camera 208 (the camera 208 can be used as an information acquisition module to acquire wireless configuration information), and a QR code 105 is provided on the communication conversion device 10. The first electronic device 20 acquires the wireless configuration information by scanning the QR code 105 on the communication conversion device 10 through the camera 208.

以图4-图8所示的第一电子设备20为USB通信的从设备(例如手机),第二电子设备30为USB通信的主设备(例如PC设备)为例,上述无线通信系统可以执行如图9所示的通信转换方法,该方法具体包括步骤S101-步骤S105:Taking the first electronic device 20 shown in FIG. 4 to FIG. 8 as a slave device of USB communication (such as a mobile phone), and the second electronic device 30 as a master device of USB communication (such as a PC device) as an example, the above wireless communication system can execute the communication conversion method shown in FIG. 9, which specifically includes steps S101 to S105:

步骤S101、通信转换装置10上电后,第一处理器104识别供电来自第一USB接口103。Step S101 : After the communication conversion device 10 is powered on, the first processor 104 recognizes that the power supply comes from the first USB interface 103 .

当通信转换装置10的第一USB接口103连接第二电子设备30的第二USB接口301时,第二电子设备30可以通过第二USB接口301和第一USB接口103为通信转换装置10供电,使得通信转换装置10上电,此时,通信转换装置10中的第一处理器104可以识别供电来自第一USB接口103。When the first USB interface 103 of the communication conversion device 10 is connected to the second USB interface 301 of the second electronic device 30, the second electronic device 30 can supply power to the communication conversion device 10 through the second USB interface 301 and the first USB interface 103, so that the communication conversion device 10 is powered on. At this time, the first processor 104 in the communication conversion device 10 can recognize that the power comes from the first USB interface 103.

步骤S102、第一电子设备20获取无线配置信息。Step S102: The first electronic device 20 obtains wireless configuration information.

无线配置信息可以预先配置在第一电子设备20上,或者,第一电子设备20通过无线方式从通信转换装置10获取无线配置信息。The wireless configuration information may be pre-configured on the first electronic device 20 , or the first electronic device 20 may obtain the wireless configuration information from the communication conversion device 10 in a wireless manner.

进一步地,对于第一电子设备20通过无线方式从通信转换装置10获取无线配置信息来说,可以由第一电子设备20通过无线方式主动从通信转换装置10获取无线配置信息,也可以由通信转换装置10通过无线方式主动向第一电子设备20发送无线配置信息。Furthermore, for the first electronic device 20 to obtain the wireless configuration information from the communication conversion device 10 wirelessly, the first electronic device 20 can actively obtain the wireless configuration information from the communication conversion device 10 wirelessly, or the communication conversion device 10 can actively send the wireless configuration information to the first electronic device 20 wirelessly.

对于第一电子设备20通过无线方式主动从通信转换装置10获取无线配置信息来说:第一电子设备20可以采用图6所示的通过近场通信模块206识别通信转换装置10中近场通信模块的NFC标签的方式,从通信转换装置10获取无线配置信息。或者,第一电子设备20可以采用图8所示的通过摄像头208扫描二维码105的方式,从通信转换装置10获取无线配置信息。For the first electronic device 20 actively obtaining the wireless configuration information from the communication conversion device 10 in a wireless manner: the first electronic device 20 can obtain the wireless configuration information from the communication conversion device 10 by using the near field communication module 206 to identify the NFC tag of the near field communication module in the communication conversion device 10 as shown in FIG6. Alternatively, the first electronic device 20 can obtain the wireless configuration information from the communication conversion device 10 by using the camera 208 to scan the QR code 105 as shown in FIG8.

对于通信转换装置10通过无线方式主动向第一电子设备20发送无线配置信息来说:通信转换装置10上可以设置有按键,当用户按下按键后,触发通信转换装置10通过图4或图5所示的无线充电线圈,或者,通过图7所示的蓝牙模块向第一电子设备20发送无线配置信息。或者,通信转换装置10采用持续进行广播的方式,通过图4或图5所示的无线充电线圈,或者,通过图7所示的蓝牙模块向第一电子设备20发送无线配置信息。For the communication conversion device 10 actively sending the wireless configuration information to the first electronic device 20 in a wireless manner: a button may be provided on the communication conversion device 10, and when the user presses the button, the communication conversion device 10 is triggered to send the wireless configuration information to the first electronic device 20 through the wireless charging coil shown in FIG. 4 or FIG. 5, or through the Bluetooth module shown in FIG. 7. Alternatively, the communication conversion device 10 adopts a continuous broadcasting method to send the wireless configuration information to the first electronic device 20 through the wireless charging coil shown in FIG. 4 or FIG. 5, or through the Bluetooth module shown in FIG. 7.

如图10所示,通信转换装置10通过图4或图5所示的无线充电线圈向第一电子设备20发送无线配置信息,具体包括步骤S1021-S1024:As shown in FIG. 10 , the communication conversion device 10 sends wireless configuration information to the first electronic device 20 via the wireless charging coil shown in FIG. 4 or FIG. 5 , specifically including steps S1021-S1024:

S1021、充电底座A中的无线充电线圈广播PING令牌包,以确定通信转换装置10通过无线充电线圈与第一电子设备20建立无线通信连接。S1021 . The wireless charging coil in the charging base A broadcasts a PING token packet to determine that the communication conversion device 10 establishes a wireless communication connection with the first electronic device 20 through the wireless charging coil.

S1022、第一电子设备20检测到无线充电线圈,并通过无线充电线圈与通信转换装置10建立无线连接。S1022: The first electronic device 20 detects the wireless charging coil, and establishes a wireless connection with the communication conversion device 10 through the wireless charging coil.

如果第一电子设备20靠近充电底座A,使得第一电子设备20的无线充电线圈205与充电底座A的无线充电线圈电磁耦合,则第一电子设备20可以检测到无线充电线圈,并通过无线充电线圈205接收到PING令牌包。If the first electronic device 20 is close to the charging base A, so that the wireless charging coil 205 of the first electronic device 20 is electromagnetically coupled with the wireless charging coil of the charging base A, the first electronic device 20 can detect the wireless charging coil and receive a PING token packet through the wireless charging coil 205 .

如果第一电子设备20准备好接收后续消息,通过无线充电线圈205反馈确认(acknowledge,ACK)消息,否则,通过无线充电线圈205反馈否认(non-acknowledge,NAK)消息或推迟(STALL)消息。If the first electronic device 20 is ready to receive subsequent messages, an acknowledgement (ACK) message is fed back through the wireless charging coil 205 ; otherwise, a non-acknowledgement (NAK) message or a STALL message is fed back through the wireless charging coil 205 .

如果通信转换装置10接收到ACK消息,则可以确定通信转换装置10通过无线充电线圈与第一电子设备20建立无线通信连接,并执行S1023。如果通信转换装置10接收到NAK消息或STALL消息,则执行无线充电流程。If the communication conversion device 10 receives an ACK message, it can be determined that the communication conversion device 10 establishes a wireless communication connection with the first electronic device 20 through the wireless charging coil, and executes S1023. If the communication conversion device 10 receives a NAK message or a STALL message, the wireless charging process is executed.

S1023、对第一USB接口103进行BC1.2检测,以确定通信转换装置10通过第一USB接口103与第二电子设备30建立USB通信连接。S1023 , performing a BC1.2 test on the first USB interface 103 to determine whether the communication conversion device 10 has established a USB communication connection with the second electronic device 30 through the first USB interface 103 .

S1024、通信转换装置10通过无线充电线圈向第一电子设备20发送无线配置信息。S1024: The communication conversion device 10 sends wireless configuration information to the first electronic device 20 via the wireless charging coil.

通信转换装置10可以采用自定义的无线通信协议,通过无线充电线圈向第一电子设备发送无线配置信息。The communication conversion device 10 may use a customized wireless communication protocol to send wireless configuration information to the first electronic device via the wireless charging coil.

步骤S103、通信转换装置10通过第一无线通信模块101与第一电子设备20建立无线通信连接。Step S103 : the communication conversion device 10 establishes a wireless communication connection with the first electronic device 20 via the first wireless communication module 101 .

当通信转换装置10通过无线配置信息(包括SSID、Wi-Fi密码和MAC地址等信息)与第一电子设备20完成身份验证后,第一处理器104控制第一无线通信模块101与第一电子设备20建立无线通信连接。After the communication conversion device 10 completes identity authentication with the first electronic device 20 through wireless configuration information (including SSID, Wi-Fi password, MAC address and other information), the first processor 104 controls the first wireless communication module 101 to establish a wireless communication connection with the first electronic device 20.

示例性的,当第一无线通信模块101为Wi-Fi模块时,可以通过Wi-Fi密码进行身份验证。当第一电子设备20输入正确的Wi-Fi密码后,第一无线通信模块101可以与第一电子设备20中的第三无线通信模块203建立Wi-Fi通信连接,用于传输包括文件、图片、音频等大量无线通信数据。Exemplarily, when the first wireless communication module 101 is a Wi-Fi module, identity authentication can be performed through a Wi-Fi password. After the first electronic device 20 enters the correct Wi-Fi password, the first wireless communication module 101 can establish a Wi-Fi communication connection with the third wireless communication module 203 in the first electronic device 20 for transmitting a large amount of wireless communication data including files, pictures, audio, etc.

步骤S104、通信转换装置10通过第一无线通信模块101获取第一电子设备20的第一USB设备类型信息,并通过第一USB接口103向第二电子设备30发送第一USB设备类型信息。Step S104 : The communication conversion device 10 obtains the first USB device type information of the first electronic device 20 through the first wireless communication module 101 , and sends the first USB device type information to the second electronic device 30 through the first USB interface 103 .

如图10的S1041所示,通信转换装置10通知第二电子设备30进行枚举。在枚举过程中,通信转换装置10通过第一无线通信模块101的无线通信连接从第一电子设备20获取第一电子设备20的USB设备类型信息,并通过第一USB接口103发送给第二电子设备30。其中,第一USB设备类型信息指示了第一电子设备20支持的设备类型,具体参照表1中所示。As shown in S1041 of FIG. 10 , the communication conversion device 10 notifies the second electronic device 30 to perform enumeration. During the enumeration process, the communication conversion device 10 obtains the USB device type information of the first electronic device 20 from the first electronic device 20 through the wireless communication connection of the first wireless communication module 101, and sends it to the second electronic device 30 through the first USB interface 103. Among them, the first USB device type information indicates the device type supported by the first electronic device 20, as shown in Table 1.

示例性的,当第一电子设备20和第二电子设备30进行数据传输时,第一电子设备20支持的设备类型可以为存储设备(mass storage device),存储设备主要包括光驱、U盘、U盾、移动硬盘等。当第二电子设备30通过第一电子设备20上网时,第一电子设备20支持的设备类型可以为通信设备(communications device),通信设备主要包括调制解调器(modem)。Exemplarily, when the first electronic device 20 and the second electronic device 30 perform data transmission, the device type supported by the first electronic device 20 may be a mass storage device, which mainly includes an optical drive, a USB flash drive, a USB shield, a mobile hard disk, etc. When the second electronic device 30 accesses the Internet through the first electronic device 20, the device type supported by the first electronic device 20 may be a communications device, which mainly includes a modem.

步骤S105、通信转换装置10和第二电子设备30按照第一USB设备类型信息指示的USB设备类型的传输要求进行USB数据通信,并且,通信转换装置10通过第一无线通信模块101的无线通信连接与第一电子设备20进行无线数据通信。Step S105 , the communication conversion device 10 and the second electronic device 30 perform USB data communication according to the transmission requirements of the USB device type indicated by the first USB device type information, and the communication conversion device 10 performs wireless data communication with the first electronic device 20 through the wireless communication connection of the first wireless communication module 101 .

通信转换装置10用于实现无线数据通信和USB数据通信的转换,并将数据进行转发,以建立第一电子设备20和第二电子设备30的数据通信链路,实现第一电子设备20和第二电子设备30之间的数据通信。The communication conversion device 10 is used to realize the conversion between wireless data communication and USB data communication, and forward the data to establish a data communication link between the first electronic device 20 and the second electronic device 30, so as to realize the data communication between the first electronic device 20 and the second electronic device 30.

无论第一USB设备类型信息指示的USB设备类型为何种设备类型,第一电子设备20和第二电子设备30都可以进行控制传输,使第二电子设备30获取第一电子设备20的信息和状态。通过数据交互,第二电子设备30可以了解第一电子设备20有多少数据接口,有多少可用的端点等各种设备信息。Regardless of the USB device type indicated by the first USB device type information, the first electronic device 20 and the second electronic device 30 can perform control transmission, so that the second electronic device 30 obtains information and status of the first electronic device 20. Through data interaction, the second electronic device 30 can understand various device information such as how many data interfaces the first electronic device 20 has, how many available endpoints there are, etc.

当第一USB设备类型信息指示的USB设备类型为U盘等存储类设备时,第一电子设备20和第二电子设备30可以进行批量传输。批量传输是单向传输,主要用于大量数据的传输,该传输方式对数据传输时间没有要求,但必须保证数据的准确性,当USB总线繁忙时,传输速率较慢,当USB总线空闲时,传输速率较快。When the USB device type indicated by the first USB device type information is a storage device such as a USB flash drive, the first electronic device 20 and the second electronic device 30 can perform batch transmission. Batch transmission is a one-way transmission, mainly used for the transmission of large amounts of data. This transmission method has no requirements on the data transmission time, but must ensure the accuracy of the data. When the USB bus is busy, the transmission rate is slow, and when the USB bus is idle, the transmission rate is fast.

当第一USB设备类型信息指示的USB设备类型为麦克风、音箱等语言设备,为扫描仪、数码相机等影像设备,或者,为显示器等监控设备时,第一电子设备20和第二电子设备30还可以进行等时传输。等时传输的速率恒定,可传输大量数据,但由于没有差错控制,不能保证每次传输都成功,适用于音视频的数据传输。When the USB device type indicated by the first USB device type information is a language device such as a microphone or a speaker, an imaging device such as a scanner or a digital camera, or a monitoring device such as a display, the first electronic device 20 and the second electronic device 30 can also perform isochronous transmission. The rate of isochronous transmission is constant and a large amount of data can be transmitted, but since there is no error control, it cannot guarantee that each transmission is successful, and is suitable for audio and video data transmission.

如图11所示,当通信转换装置10为无线充电装置时,用户可以通过在第一电子设备20的用户界面选择USB连接方式中的传输文件的功能选项,利用无线充电装置实现与第二电子设备的USB通信功能。As shown in FIG. 11 , when the communication conversion device 10 is a wireless charging device, the user can select the file transfer function option in the USB connection mode in the user interface of the first electronic device 20 and use the wireless charging device to implement the USB communication function with the second electronic device.

如图12和图13所示,以第一电子设备20为USB通信的主设备(例如手机),第二电子设备30为USB通信的从设备(例如OTG设备)为例,通信转换装置10可以为无线充电装置。其中,如图12所示,在一种可能的实施方式中,USB线缆B可以为专用线缆,该实施方式中,第一无线通信模块101、第一USB接口103和第一处理器104可以集成在USB接头C上。如图13所示,在另一种可能的实施方式中,第一无线通信模块101、第一USB接口103和第一处理器104可以集成在充电底座A上。As shown in Figures 12 and 13, taking the first electronic device 20 as a USB communication master device (such as a mobile phone) and the second electronic device 30 as a USB communication slave device (such as an OTG device) as an example, the communication conversion device 10 can be a wireless charging device. As shown in Figure 12, in a possible implementation, the USB cable B can be a dedicated cable. In this implementation, the first wireless communication module 101, the first USB interface 103 and the first processor 104 can be integrated on the USB connector C. As shown in Figure 13, in another possible implementation, the first wireless communication module 101, the first USB interface 103 and the first processor 104 can be integrated on the charging base A.

如图14所示,以第一电子设备20为USB通信的主设备(例如手机),第二电子设备30为USB通信的从设备(例如OTG设备)为例,通信转换装置10可以不为无线充电装置。As shown in FIG. 14 , taking the first electronic device 20 as a USB communication master device (such as a mobile phone) and the second electronic device 30 as a USB communication slave device (such as an OTG device) as an example, the communication conversion device 10 may not be a wireless charging device.

以图12-图14所示的第一电子设备20为USB通信的主设备(例如手机),第二电子设备30为USB通信的从设备(例如OTG设备)为例,上述无线通信系统可以执行如图15所示的通信转换方法,该方法具体包括步骤S201-步骤S205:Taking the first electronic device 20 shown in FIGS. 12 to 14 as a USB communication master device (such as a mobile phone) and the second electronic device 30 as a USB communication slave device (such as an OTG device) as an example, the above wireless communication system can execute the communication conversion method shown in FIG. 15, which specifically includes steps S201 to S205:

步骤S201、通信转换装置10上电后,第一处理器104识别供电不来自第一USB接口103。Step S201 : After the communication conversion device 10 is powered on, the first processor 104 recognizes that the power supply does not come from the first USB interface 103 .

由于OTG设备需要外部设备对其供电,因此,如图12和图13所示,在一种可能的实施方式中,当通信转换装置10为无线充电装置时,并且第一电子设备20和无线充电装置支持无线反充(第一电子设备20向无线充电装置充电)时,如图16的S2011所示,用户将第一电子设备20设置为无线反充模式。此时,第一电子设备20可以通过无线充电线圈为通信转换装置10供电,使得通信转换装置10上电,此时,通信转换装置10中的第一处理器104可以识别供电来自无线充电线圈。Since the OTG device needs to be powered by an external device, as shown in Figures 12 and 13, in a possible implementation, when the communication conversion device 10 is a wireless charging device, and the first electronic device 20 and the wireless charging device support wireless reverse charging (the first electronic device 20 charges the wireless charging device), as shown in S2011 of Figure 16, the user sets the first electronic device 20 to the wireless reverse charging mode. At this time, the first electronic device 20 can power the communication conversion device 10 through the wireless charging coil, so that the communication conversion device 10 is powered on. At this time, the first processor 104 in the communication conversion device 10 can recognize that the power comes from the wireless charging coil.

如图14所示,在另一种可能的实施方式中,当通信转换装置10不是无线充电装置,或者,第一电子设备20和无线充电装置不支持无线反充时,还可以使用其他电源向通信转换装置10供电。As shown in FIG. 14 , in another possible implementation, when the communication conversion device 10 is not a wireless charging device, or the first electronic device 20 and the wireless charging device do not support wireless reverse charging, other power sources may also be used to power the communication conversion device 10 .

步骤S202、第一电子设备20获取无线配置信息。Step S202: The first electronic device 20 obtains wireless configuration information.

第一电子设备20可以通过无线方式主动从通信转换装置10获取无线配置信息,例如,如图14所示,第一电子设备20可以采用近场通信模块206作为信息获取模块,通过识别通信转换装置10中近场通信模块的NFC标签的方式,从通信转换装置10获取无线配置信息。The first electronic device 20 can actively obtain wireless configuration information from the communication conversion device 10 in a wireless manner. For example, as shown in Figure 14, the first electronic device 20 can use the near field communication module 206 as an information acquisition module to obtain wireless configuration information from the communication conversion device 10 by identifying the NFC tag of the near field communication module in the communication conversion device 10.

通信转换装置10可以通过无线方式主动向第一电子设备20发送无线配置信息,例如,如图16所示,通信转换装置10通过图12和图13所示的无线充电线圈向第一电子设备20发送无线配置信息,具体包括步骤S2021-S2022:The communication conversion device 10 can actively send wireless configuration information to the first electronic device 20 in a wireless manner. For example, as shown in FIG. 16 , the communication conversion device 10 sends the wireless configuration information to the first electronic device 20 through the wireless charging coil shown in FIG. 12 and FIG. 13 , specifically including steps S2021-S2022:

S2021、通信转换装置10检测是否有OTG设备接入。S2021, the communication conversion device 10 detects whether an OTG device is connected.

当OTG设备通过第二USB接口301和第一USB接口103与通信转换装置10连接时,通信转换装置10中的第一处理器104可以检测到有OTG设备接入,并执行S2022。否则,通信转换装置10利用第一电子设备20提供的电能向外供电。When the OTG device is connected to the communication conversion device 10 through the second USB interface 301 and the first USB interface 103, the first processor 104 in the communication conversion device 10 can detect the access of the OTG device and execute S2022. Otherwise, the communication conversion device 10 uses the power provided by the first electronic device 20 to supply power externally.

S2022、通信转换装置10通过无线充电线圈向第一电子设备20发送无线配置信息。S2022: The communication conversion device 10 sends wireless configuration information to the first electronic device 20 via the wireless charging coil.

步骤S203、通信转换装置10通过第一无线通信模块101与第一电子设备20建立无线通信连接。Step S203 : The communication conversion device 10 establishes a wireless communication connection with the first electronic device 20 through the first wireless communication module 101 .

步骤S204、通信转换装置10通过第一USB接口103获取第二电子设备30的第二USB设备类型信息,并通过第一无线通信模块101向第一电子设备30发送第二USB设备类型信息。Step S204 : The communication conversion device 10 obtains the second USB device type information of the second electronic device 30 through the first USB interface 103 , and sends the second USB device type information to the first electronic device 30 through the first wireless communication module 101 .

如图16的S2041所示,通信转换装置10通知第一电子设备20进行枚举。在枚举过程中,通信转换装置10通过第一USB接口103的USB通信连接从第二电子设备30获取第二电子设备30的USB设备类型信息,并通过第一无线通信模块101发送给第一电子设备20。其中,第二USB设备类型信息指示了第二电子设备30支持的设备类型,第二电子设备30支持的设备类型可以为U盘、U盾、移动硬盘等存储设备,也可以为USB鼠标、USB键盘等人机交互设备。As shown in S2041 of FIG. 16 , the communication conversion device 10 notifies the first electronic device 20 to perform enumeration. During the enumeration process, the communication conversion device 10 obtains the USB device type information of the second electronic device 30 from the second electronic device 30 through the USB communication connection of the first USB interface 103, and sends it to the first electronic device 20 through the first wireless communication module 101. Among them, the second USB device type information indicates the device type supported by the second electronic device 30. The device type supported by the second electronic device 30 can be a storage device such as a USB flash drive, a USB shield, a mobile hard disk, or a human-computer interaction device such as a USB mouse and a USB keyboard.

步骤S205、通信转换装置10和第二电子设备30按照第二USB设备类型信息指示的USB设备类型的传输要求进行USB数据通信,并且,通信转换装置10通过第一无线通信模块101的无线通信连接与第一电子设备20进行无线数据通信。Step S205 , the communication conversion device 10 and the second electronic device 30 perform USB data communication according to the transmission requirements of the USB device type indicated by the second USB device type information, and the communication conversion device 10 performs wireless data communication with the first electronic device 20 through the wireless communication connection of the first wireless communication module 101 .

无论第二USB设备类型信息指示的USB设备类型为何种设备类型,第一电子设备20和第二电子设备30都要进行控制传输,使第一电子设备20获取第二电子设备30的信息和状态。Regardless of the USB device type indicated by the second USB device type information, the first electronic device 20 and the second electronic device 30 must perform control transmission so that the first electronic device 20 obtains the information and status of the second electronic device 30 .

当第二USB设备类型信息指示的USB设备类型为U盘等存储类设备时,第一电子设备20和第二电子设备30可以进行批量传输。When the USB device type indicated by the second USB device type information is a storage device such as a USB flash drive, the first electronic device 20 and the second electronic device 30 can perform batch transmission.

当第二USB设备类型信息指示的USB设备类型为USB键盘、USB鼠标等人机交互设备时,第一电子设备20和第二电子设备30可以进行中断传输。中断传输收发数据量小,通常为周期性传输。When the USB device type indicated by the second USB device type information is a human-computer interaction device such as a USB keyboard or a USB mouse, the first electronic device 20 and the second electronic device 30 can perform interrupt transmission. The amount of data received and sent in interrupt transmission is small, and it is usually periodic transmission.

本申请实施例提供的通信转换装置可以与第一电子设备进行无线数据通信,并且,将第一电子设备的第一USB设备类型信息转发给第二电子设备,使通信转换装置和第二电子设备按照第一USB设备类型信息指示的USB设备类型的传输要求进行USB数据通信,以实现无线数据通信和USB数据通信的转换;或者,通信转换装置和第二电子设备按照第二USB设备类型信息指示的USB设备类型的传输要求进行USB数据通信,并且,将第二电子设备的第二USB设备类型信息转发给第一电子设备,以实现无线数据通信和USB数据通信的转换。The communication conversion device provided in the embodiment of the present application can perform wireless data communication with a first electronic device, and forward the first USB device type information of the first electronic device to a second electronic device, so that the communication conversion device and the second electronic device perform USB data communication according to the transmission requirements of the USB device type indicated by the first USB device type information, so as to achieve conversion between wireless data communication and USB data communication; or, the communication conversion device and the second electronic device perform USB data communication according to the transmission requirements of the USB device type indicated by the second USB device type information, and forward the second USB device type information of the second electronic device to the first electronic device, so as to achieve conversion between wireless data communication and USB data communication.

基于本申请实施例提供的通信转换装置,通过执行本申请实施例提供的通信转换方法,可以实现在第一电子设备取消USB接口的情况下,与第二电子设备进行数据通信的功能。本申请实施例中,通信转换装置根据第一USB设备类型信息或第二USB设备类型信息所指示的USB设备类型,自动映射为对应的USB设备,用户在使用通信转换装置进行数据传输时,无需额外安装驱动和应用软件,提升了用户体验。Based on the communication conversion device provided in the embodiment of the present application, by executing the communication conversion method provided in the embodiment of the present application, the function of performing data communication with the second electronic device can be realized when the USB interface of the first electronic device is cancelled. In the embodiment of the present application, the communication conversion device automatically maps to the corresponding USB device according to the USB device type indicated by the first USB device type information or the second USB device type information. When the user uses the communication conversion device for data transmission, there is no need to install additional drivers and application software, which improves the user experience.

如图17所示,本申请实施例还提供一种芯片系统。该芯片系统170包括至少一个处理器1701和至少一个接口电路1702。至少一个处理器1701和至少一个接口电路1702可通过线路互联。处理器1701用于支持通信转换装置或第一电子设备实现上述方法实施例中的各个步骤,例如图9、图10、图15、图16所示的方法,至少一个接口电路1702可用于从其它装置(例如存储器)接收信号,或者,向其它装置(例如通信接口)发送信号。该芯片系统可以包括芯片,还可以包括其他分立器件。As shown in FIG17 , an embodiment of the present application also provides a chip system. The chip system 170 includes at least one processor 1701 and at least one interface circuit 1702. At least one processor 1701 and at least one interface circuit 1702 can be interconnected via lines. The processor 1701 is used to support the communication conversion device or the first electronic device to implement the various steps in the above method embodiments, such as the methods shown in FIG9 , FIG10 , FIG15 , and FIG16 , and at least one interface circuit 1702 can be used to receive signals from other devices (such as a memory) or send signals to other devices (such as a communication interface). The chip system may include a chip and may also include other discrete devices.

本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括指令,当指令在上述通信转换装置或第一电子设备上运行时,使得通信转换装置或第一电子设备执行上述方法实施例中的各个步骤,例如执行图9、图10、图15、图16所示的方法。An embodiment of the present application also provides a computer-readable storage medium, which includes instructions. When the instructions are executed on the above-mentioned communication conversion device or the first electronic device, the communication conversion device or the first electronic device executes the various steps in the above-mentioned method embodiment, such as executing the methods shown in Figures 9, 10, 15, and 16.

本申请实施例还提供一种包括指令的计算机程序产品,当指令在上述通信转换装置或第一电子设备上运行时,使得通信转换装置或第一电子设备执行上述方法实施例中的各个步骤,例如执行图9、图10、图15、图16所示的方法。An embodiment of the present application also provides a computer program product including instructions. When the instructions are executed on the above-mentioned communication conversion device or the first electronic device, the communication conversion device or the first electronic device executes each step in the above-mentioned method embodiment, for example, executes the method shown in Figures 9, 10, 15, and 16.

关于计算机可读存储介质、计算机程序产品的技术效果参照前面方法实施例的技术效果。Regarding the technical effects of the computer-readable storage medium and the computer program product, refer to the technical effects of the previous method embodiments.

应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个设备,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个设备,或者也可以分布到多个设备上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one device or distributed on multiple devices. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能模块可以集成在一个设备中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个设备中。In addition, each functional module in each embodiment of the present application may be integrated into one device, or each module may exist physically separately, or two or more modules may be integrated into one device.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or may include one or more servers, data centers and other data storage devices that can be integrated with the medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (13)

1.一种通信转换装置,其特征在于,所述通信转换装置用于支持第一电子设备和第二电子设备进行数据通信,或者,用于支持所述第二电子设备通过所述第一电子设备上网;所述第一电子设备不具有USB接口;所述通信转换装置包括:第一无线通信模块、通用串行总线USB接口和处理器;所述第一无线通信模块用于与所述第一电子设备进行无线数据通信;所述处理器用于:1. A communication conversion device, characterized in that the communication conversion device is used to support a first electronic device and a second electronic device to perform data communication, or to support the second electronic device to access the Internet through the first electronic device; the first electronic device does not have a USB interface; the communication conversion device comprises: a first wireless communication module, a universal serial bus USB interface and a processor; the first wireless communication module is used to perform wireless data communication with the first electronic device; the processor is used to: 当通过所述USB接口连接至所述第二电子设备时,通过所述第一无线通信模块与所述第一电子设备建立无线通信连接;When connected to the second electronic device via the USB interface, establishing a wireless communication connection with the first electronic device via the first wireless communication module; 当识别供电来自所述USB接口时,控制所述通信转换装置通知所述第二电子设备进行枚举;通过所述第一无线通信模块获取所述第一电子设备的第一USB设备类型信息,并通过所述USB接口向所述第二电子设备发送所述第一USB设备类型信息;通过所述第一无线通信模块与所述第一电子设备进行无线数据通信,并按照所述第一USB设备类型信息指示的USB设备类型的传输要求,与所述第二电子设备进行USB数据通信;其中,当所述第二电子设备通过所述第一电子设备上网时,所述第一USB设备类型信息指示的所述第一电子设备类型为通信设备;When it is identified that the power supply comes from the USB interface, the communication conversion device is controlled to notify the second electronic device to enumerate; the first USB device type information of the first electronic device is obtained through the first wireless communication module, and the first USB device type information is sent to the second electronic device through the USB interface; wireless data communication is performed with the first electronic device through the first wireless communication module, and USB data communication is performed with the second electronic device according to the transmission requirements of the USB device type indicated by the first USB device type information; wherein, when the second electronic device accesses the Internet through the first electronic device, the type of the first electronic device indicated by the first USB device type information is a communication device; 当识别供电不来自所述USB接口时,控制所述通信转换装置通知所述第一电子设备进行枚举;通过所述USB接口获取所述第二电子设备的第二USB设备类型信息,并通过所述第一无线通信模块向所述第一电子设备发送所述第二USB设备类型信息;按照所述第二USB设备类型信息指示的USB设备类型的传输要求,与所述第二电子设备进行USB数据通信,并且,通过所述第一无线通信模块与所述第一电子设备进行无线数据通信。When it is identified that the power supply does not come from the USB interface, the communication conversion device is controlled to notify the first electronic device to perform enumeration; the second USB device type information of the second electronic device is obtained through the USB interface, and the second USB device type information is sent to the first electronic device through the first wireless communication module; USB data communication is performed with the second electronic device according to the transmission requirement of the USB device type indicated by the second USB device type information, and wireless data communication is performed with the first electronic device through the first wireless communication module. 2.根据权利要求1所述的装置,其特征在于,还包括第二无线通信模块,所述处理器还用于:2. The device according to claim 1, further comprising a second wireless communication module, wherein the processor is further configured to: 在通过所述第一无线通信模块与所述第一电子设备建立无线通信连接之前,通过所述第二无线通信模块向所述第一电子设备发送无线配置信息,所述无线配置信息用于所述第一无线通信模块与所述第一电子设备建立无线通信连接。Before establishing a wireless communication connection with the first electronic device through the first wireless communication module, wireless configuration information is sent to the first electronic device through the second wireless communication module, and the wireless configuration information is used for the first wireless communication module to establish a wireless communication connection with the first electronic device. 3.根据权利要求2所述的装置,其特征在于,所述第二无线通信模块具体为无线充电线圈。3. The device according to claim 2 is characterized in that the second wireless communication module is specifically a wireless charging coil. 4.根据权利要求3所述的装置,其特征在于,所述通信转换装置包括充电底座和USB线缆,所述无线充电线圈位于所述充电底座上。4. The device according to claim 3 is characterized in that the communication conversion device includes a charging base and a USB cable, and the wireless charging coil is located on the charging base. 5.根据权利要求4所述的装置,其特征在于,所述充电底座包括所述第一无线通信模块、所述USB接口和所述处理器。5. The device according to claim 4, characterized in that the charging base comprises the first wireless communication module, the USB interface and the processor. 6.根据权利要求4所述的装置,其特征在于,所述通信转换装置还包括USB接头,所述USB接头包括所述第一无线通信模块、所述USB接口和所述处理器。6 . The device according to claim 4 , wherein the communication conversion device further comprises a USB connector, and the USB connector comprises the first wireless communication module, the USB interface and the processor. 7.一种通信转换方法,其特征在于,应用于如权利要求1-6任一项所述的通信转换装置;所述通信转换方法包括:7. A communication conversion method, characterized in that it is applied to the communication conversion device according to any one of claims 1 to 6; the communication conversion method comprises: 当通过所述通信转换装置中的USB接口连接至第二电子设备时,通过所述通信转换装置中的第一无线通信模块与第一电子设备建立无线通信连接;所述第一无线通信模块用于与所述第一电子设备进行无线数据通信;所述第一电子设备不具有USB接口;When the second electronic device is connected via the USB interface in the communication conversion device, a wireless communication connection is established with the first electronic device via the first wireless communication module in the communication conversion device; the first wireless communication module is used to perform wireless data communication with the first electronic device; the first electronic device does not have a USB interface; 当识别供电来自所述USB接口时,控制所述通信转换装置通知所述第二电子设备进行枚举;通过所述第一无线通信模块获取所述第一电子设备的第一USB设备类型信息,并通过所述USB接口向所述第二电子设备发送所述第一USB设备类型信息;通过所述第一无线通信模块与所述第一电子设备进行无线数据通信,并按照所述第一USB设备类型信息指示的USB设备类型的传输要求,与所述第二电子设备进行USB数据通信;When it is identified that the power supply comes from the USB interface, control the communication conversion device to notify the second electronic device to perform enumeration; obtain the first USB device type information of the first electronic device through the first wireless communication module, and send the first USB device type information to the second electronic device through the USB interface; perform wireless data communication with the first electronic device through the first wireless communication module, and perform USB data communication with the second electronic device according to the transmission requirement of the USB device type indicated by the first USB device type information; 当识别供电不来自所述USB接口时,控制所述通信转换装置通知所述第一电子设备进行枚举;通过所述USB接口获取所述第二电子设备的第二USB设备类型信息,并通过所述第一无线通信模块向所述第一电子设备发送所述第二USB设备类型信息;按照所述第二USB设备类型信息指示的USB设备类型的传输要求,与所述第二电子设备进行USB数据通信,并且,通过所述第一无线通信模块与所述第一电子设备进行无线数据通信。When it is identified that the power supply does not come from the USB interface, the communication conversion device is controlled to notify the first electronic device to perform enumeration; the second USB device type information of the second electronic device is obtained through the USB interface, and the second USB device type information is sent to the first electronic device through the first wireless communication module; USB data communication is performed with the second electronic device in accordance with the transmission requirements of the USB device type indicated by the second USB device type information, and wireless data communication is performed with the first electronic device through the first wireless communication module. 8.根据权利要求7所述的方法,其特征在于,还包括:8. The method according to claim 7, further comprising: 在通过所述第一无线通信模块与所述第一电子设备建立无线通信连接之前,通过所述通信转换装置中的第二无线通信模块向所述第一电子设备发送无线配置信息,所述无线配置信息用于所述第一无线通信模块与所述第一电子设备建立无线通信连接。Before establishing a wireless communication connection with the first electronic device through the first wireless communication module, wireless configuration information is sent to the first electronic device through the second wireless communication module in the communication conversion device, and the wireless configuration information is used for the first wireless communication module to establish a wireless communication connection with the first electronic device. 9.一种电子设备,其特征在于,所述电子设备不具有USB接口,所述电子设备包括处理器、无线通信模块和信息获取模块,所述处理器用于:9. An electronic device, characterized in that the electronic device does not have a USB interface, and the electronic device comprises a processor, a wireless communication module and an information acquisition module, wherein the processor is used to: 通过所述信息获取模块获取无线配置信息;Acquire wireless configuration information through the information acquisition module; 根据所述无线配置信息,通过所述无线通信模块与如权利要求1-6任一项所述的通信转换装置建立无线通信连接;According to the wireless configuration information, establishing a wireless communication connection with the communication conversion device according to any one of claims 1 to 6 through the wireless communication module; 通过所述无线通信模块向所述通信转换装置发送所述电子设备的第一USB设备类型信息,或者,通过所述无线通信模块从所述通信转换装置接收第二电子设备的第二USB设备类型信息;所述第一USB设备类型信息或所述第二USB设备类型信息用于指示USB设备类型,所述通信转换装置用于按照所述USB设备类型的传输要求与所述第二电子设备通过USB接口进行通信;sending first USB device type information of the electronic device to the communication conversion device through the wireless communication module, or receiving second USB device type information of the second electronic device from the communication conversion device through the wireless communication module; the first USB device type information or the second USB device type information is used to indicate a USB device type, and the communication conversion device is used to communicate with the second electronic device through a USB interface according to a transmission requirement of the USB device type; 通过所述无线通信模块与所述通信转换装置进行无线数据通信,并按照所述第一USB设备类型信息指示的USB设备类型的传输要求,通过通信转换装置与所述第二电子设备进行USB数据通信;或者,按照所述第二USB设备类型信息指示的USB设备类型的传输要求,通过通信转换装置与所述第二电子设备进行USB数据通信。Wireless data communication is performed with the communication conversion device through the wireless communication module, and USB data communication is performed with the second electronic device through the communication conversion device in accordance with the transmission requirements of the USB device type indicated by the first USB device type information; or USB data communication is performed with the second electronic device through the communication conversion device in accordance with the transmission requirements of the USB device type indicated by the second USB device type information. 10.根据权利要求9所述的电子设备,其特征在于,所述信息获取模块为以下模块中的至少一项:无线充电线圈、近场通信模块、蓝牙模块、摄像头。10 . The electronic device according to claim 9 , wherein the information acquisition module is at least one of the following modules: a wireless charging coil, a near field communication module, a Bluetooth module, and a camera. 11.一种通信转换方法,其特征在于,应用于如权利要求9或10所述的电子设备;所述通信转换方法包括:11. A communication conversion method, characterized in that it is applied to the electronic device according to claim 9 or 10; the communication conversion method comprises: 通过所述电子设备中的信息获取模块获取无线配置信息;Acquiring wireless configuration information through an information acquisition module in the electronic device; 根据所述无线配置信息,通过电子设备中的无线通信模块与通信转换装置建立无线通信连接;According to the wireless configuration information, a wireless communication connection is established with the communication conversion device through a wireless communication module in the electronic device; 通过所述无线通信模块向所述通信转换装置发送所述电子设备的第一USB设备类型信息,或者,通过所述无线通信模块从所述通信转换装置接收第二电子设备的第二USB设备类型信息;所述第一USB设备类型信息或所述第二USB设备类型信息用于指示USB设备类型;Sending first USB device type information of the electronic device to the communication conversion device through the wireless communication module, or receiving second USB device type information of a second electronic device from the communication conversion device through the wireless communication module; the first USB device type information or the second USB device type information is used to indicate a USB device type; 通过所述无线通信模块与所述通信转换装置进行无线数据通信,并按照所述第一USB设备类型信息指示的USB设备类型的传输要求,通过通信转换装置与所述第二电子设备进行USB数据通信;或者,按照所述第二USB设备类型信息指示的USB设备类型的传输要求,通过通信转换装置与所述第二电子设备进行USB数据通信。Wireless data communication is performed with the communication conversion device through the wireless communication module, and USB data communication is performed with the second electronic device through the communication conversion device in accordance with the transmission requirements of the USB device type indicated by the first USB device type information; or USB data communication is performed with the second electronic device through the communication conversion device in accordance with the transmission requirements of the USB device type indicated by the second USB device type information. 12.一种通信转换系统,其特征在于,包括第二电子设备、如权利要求9或10所述的电子设备和如权利要求1-6任一项所述的通信转换装置;所述电子设备通过所述通信转换装置与所述第二电子设备进行数据通信。12. A communication conversion system, characterized in that it comprises a second electronic device, an electronic device as described in claim 9 or 10, and a communication conversion device as described in any one of claims 1-6; the electronic device performs data communication with the second electronic device through the communication conversion device. 13.一种计算机可读存储介质,其特征在于,包括指令,当所述指令在通信转换装置上执行时,使得所述通信转换装置执行如权利要求7或8所述的方法;当所述指令在电子设备上执行时,使得所述电子设备执行如权利要求11所述的方法。13. A computer-readable storage medium, characterized in that it includes instructions, which, when executed on a communication conversion device, cause the communication conversion device to execute the method as claimed in claim 7 or 8; when executed on an electronic device, cause the electronic device to execute the method as claimed in claim 11.
CN202311766123.1A 2023-12-21 2023-12-21 Communication conversion device, electronic equipment, system and method Active CN117440060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311766123.1A CN117440060B (en) 2023-12-21 2023-12-21 Communication conversion device, electronic equipment, system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311766123.1A CN117440060B (en) 2023-12-21 2023-12-21 Communication conversion device, electronic equipment, system and method

Publications (2)

Publication Number Publication Date
CN117440060A CN117440060A (en) 2024-01-23
CN117440060B true CN117440060B (en) 2024-05-17

Family

ID=89546544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311766123.1A Active CN117440060B (en) 2023-12-21 2023-12-21 Communication conversion device, electronic equipment, system and method

Country Status (1)

Country Link
CN (1) CN117440060B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383669A (en) * 2012-05-02 2013-11-06 三星电子株式会社 Method for identifying universal serial bus host, and electronic device thereof
CN207458042U (en) * 2017-11-10 2018-06-05 合肥联宝信息技术有限公司 A kind of electronic equipment
WO2020253754A1 (en) * 2019-06-19 2020-12-24 华为技术有限公司 Multi-terminal multimedia data communication method and system
CN114916093A (en) * 2021-02-07 2022-08-16 华为技术有限公司 Communication method, first electronic device and second electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383669A (en) * 2012-05-02 2013-11-06 三星电子株式会社 Method for identifying universal serial bus host, and electronic device thereof
CN207458042U (en) * 2017-11-10 2018-06-05 合肥联宝信息技术有限公司 A kind of electronic equipment
WO2020253754A1 (en) * 2019-06-19 2020-12-24 华为技术有限公司 Multi-terminal multimedia data communication method and system
CN114916093A (en) * 2021-02-07 2022-08-16 华为技术有限公司 Communication method, first electronic device and second electronic device

Also Published As

Publication number Publication date
CN117440060A (en) 2024-01-23

Similar Documents

Publication Publication Date Title
KR20200017302A (en) Apparatus and method for communicating by using bluetooth low energy
US12150188B2 (en) Electronic device for transmitting response message in Bluetooth network environment and method therefor
CN113194534B (en) A timing determination method and communication device
US20150065053A1 (en) Method of controlling short-range wireless communication and apparatus supporting the same
WO2023065931A1 (en) Method for charging electronic device, and electronic device
CN111758247B (en) Electronic devices and methods for performing antenna tuning
KR20150065410A (en) Access point connection method of electronic apparatus and electronic appparatus thereof
US11997706B2 (en) System and method for physical downlink control channel monitoring
TWI864299B (en) Network device and method for cross carrier scheduling
CN113853754A (en) Electronic device and method for displaying a query list of external electronic devices in a Bluetooth™ network environment
CN113518331B (en) Communication method and device
CN117335830B (en) Wireless communication circuit, bluetooth communication switching method and electronic device
US10284614B2 (en) Method for downloading contents of electronic device and electronic device thereof
US12232106B2 (en) Resource determining method, resource configuration method, terminal, and network device
CN117440060B (en) Communication conversion device, electronic equipment, system and method
CN116049070B (en) A camera module identification method and electronic equipment
US12349217B2 (en) Electronic device for transmitting data in bluetooth network environment, and method therefor
CN216625389U (en) Wireless charging equipment
CN114780029A (en) Device identification method and related device
CN117880885B (en) Audio playback optimization method and electronic device
CN117202143B (en) Connection parameter updating method, bluetooth device and readable storage medium
CN116056016B (en) Prototype information reporting method and electronic equipment
CN116662045B (en) Process name acquisition method, terminal equipment and storage medium
WO2023011216A1 (en) Device hot-plugging method and terminal device
CN113691979B (en) Wireless data transmission method, electronic device, system and storage medium

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
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address