CN117440060B - Communication conversion device, electronic equipment, system and method - Google Patents
Communication conversion device, electronic equipment, system and method Download PDFInfo
- 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
- usb
- electronic device
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 485
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 205
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000005540 biological transmission Effects 0.000 claims description 52
- 230000006870 function Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 14
- 230000008569 process Effects 0.000 description 13
- 238000004590 computer program Methods 0.000 description 6
- 238000007726 management method Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 230000005236 sound signal Effects 0.000 description 5
- 238000013461 design Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal 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
The application discloses a communication conversion device, electronic equipment, a system and a method, and relates to the field of wireless communication. The communication conversion device includes: the device comprises a first wireless communication module, a USB interface and a processor; the first wireless communication module is used for carrying out wireless data communication with the first electronic equipment; the processor is used for: when the USB interface is connected to the second electronic equipment, wireless communication connection is established between the USB interface and the first electronic equipment through the first wireless communication module; acquiring first USB device type information of first electronic equipment through a first wireless communication module, and sending the first USB device type information to second electronic equipment through a USB interface; or acquiring 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.
Description
Technical Field
Embodiments of the present application relate to the field of wireless communications, and in particular, to a communication conversion device, an electronic device, a system, and a method.
Background
At present, electronic devices are generally provided with a universal serial bus (universal serial bus, USB) interface, and the USB interface can affect the waterproof performance, dustproof performance and plugging life of the electronic devices and occupy the space of a motherboard, which is not beneficial to the ultrathin electronic devices, so that the USB interface is cancelled as a trend of development of the current electronic devices, however, the USB interface is cancelled to cause data transmission failure.
Disclosure of Invention
The embodiment of the application provides a communication conversion device, electronic equipment, a system and a method, which are used for solving the problem that data cannot be transmitted under the condition that the electronic equipment cancels a USB interface.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme:
in a first aspect, the present application provides a communication conversion apparatus comprising: the device comprises a first wireless communication module, a USB interface and a processor; the first wireless communication module is used for carrying out wireless data communication with the first electronic equipment, and the first electronic equipment is not provided with a USB interface; the processor is used for: when the USB interface is connected to the second electronic equipment, wireless communication connection is established between the USB interface and the first electronic equipment through the first wireless communication module; acquiring first USB device type information of first electronic equipment through a first wireless communication module, and sending the first USB device type information to second electronic equipment through a USB interface; or acquiring 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; carrying out wireless data communication with the first electronic equipment through the first wireless communication module, and carrying out USB data communication with the second electronic equipment according to the transmission requirement of the USB equipment type indicated by the first USB equipment type information; or according to the transmission requirement of the USB device type indicated by the second USB device type information, carrying out USB data communication with the second electronic device, and carrying out wireless data communication with the first electronic device through the first wireless communication module.
The communication conversion device provided by the embodiment of the application can perform wireless data communication with the first electronic equipment, and forwards the first USB equipment type information of the first electronic equipment to the second electronic equipment, so that the communication conversion device and the second electronic equipment perform USB data communication according to the transmission requirement of the USB equipment type indicated by the first USB equipment type information, thereby realizing the conversion of wireless data communication and USB data communication; or the communication conversion device and the second electronic equipment perform USB data communication according to the transmission requirement of the USB equipment type indicated by the second USB equipment type information, and the second USB equipment type information of the second electronic equipment is forwarded to the first electronic equipment so as to realize conversion of wireless data communication and USB data communication. Under the condition that the first electronic equipment cancels the USB interface, the communication conversion device provided by the embodiment of the application can realize the data communication function between the first electronic equipment and the second electronic equipment. The communication conversion device automatically maps to the corresponding USB equipment according to the USB equipment type indicated by the first USB equipment type information or the second USB equipment type information, and when a user uses the communication conversion device to carry out data transmission, no additional driver and application software are required to be installed, so that user experience is improved.
In a possible implementation manner of the first aspect, the communication conversion apparatus further includes a second wireless communication module, and the processor is further configured to: before the wireless communication connection is established 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 establishing the wireless communication connection between the first wireless communication module and the first electronic device.
In the implementation manner, the first electronic device performs identity verification with the communication conversion device by acquiring the wireless configuration information, so as to establish wireless communication connection between the first wireless communication module and 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 manner, when the communication conversion device is a wireless charging device, the wireless charging coil in the wireless charging device may be used as the second wireless communication module to send wireless configuration information to the first electronic device.
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.
In one possible implementation manner of the first aspect, the charging base includes a first wireless communication module, a USB interface, and a processor.
In this implementation manner, 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 is connected to the second electronic device by using a universal cable.
In a possible implementation manner of the first aspect, the communication conversion device further includes a USB connector, where the USB connector includes a first wireless communication module, a USB interface, and a processor.
In this implementation manner, the first wireless communication module, the USB interface and the processor may be integrated on a USB connector of the wireless charging device, the charging base may be a conventional charging base, and the communication conversion device is connected to the second electronic device by using a dedicated cable.
In one possible implementation manner of the first aspect, the processor is specifically configured to: when the power supply is identified to come from the USB interface, 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.
In this implementation, the first electronic device is a slave device to USB communication and the second electronic device is a master device to USB communication (e.g., a personal computer (personal computer, PC) device). The second electronic device supplies power to the communication conversion device through the USB interface, and at this time, the processor can recognize that the power supply is from the USB interface.
In one possible implementation manner of the first aspect, the processor is specifically configured to: and when the power supply is identified not to come from the USB interface, acquiring 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.
In this implementation, the first electronic device is a master device for USB communication and the second electronic device is a slave device for USB communication (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 the wireless charging coil or supplies power to the communication conversion device through other power supplies, and at the moment, the processor can recognize that the power supply is not from the USB interface.
In a second aspect, the present application provides a communication conversion method applied to the communication conversion device as in the first aspect and any implementation manner thereof, where the communication conversion method includes: when the communication conversion device is connected to the second electronic equipment through the USB interface, establishing wireless communication connection with the first electronic equipment through the first wireless communication module in the communication conversion device; the first wireless communication module is used for carrying out wireless data communication with the first electronic equipment; the first electronic device does not have a USB interface; acquiring first USB device type information of first electronic equipment through a first wireless communication module, and sending the first USB device type information to second electronic equipment through a USB interface; or acquiring 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; carrying out wireless data communication with the first electronic equipment through the first wireless communication module, and carrying out USB data communication with the second electronic equipment according to the transmission requirement of the USB equipment type indicated by the first USB equipment type information; or according to the transmission requirement of the USB device type indicated by the second USB device type information, carrying out USB data communication with the second electronic device, and carrying out wireless data communication with the first electronic device through the first wireless communication module.
In a possible implementation manner of the second aspect, the method further includes: before the wireless communication connection is established between the first wireless communication module and the first electronic device, wireless configuration information is sent to the first electronic device through a second wireless communication module in the communication conversion device, and the wireless configuration information is used for establishing the wireless communication connection between the first wireless communication module and the first electronic device.
In a possible implementation manner of the second aspect, the acquiring, by using the first wireless communication module, the first USB device type information of the first electronic device, and sending, by using the USB interface, the first USB device type information to the second electronic device, includes: when the power supply is identified to come from the USB interface, 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.
In a possible implementation manner of the second aspect, the acquiring, through the USB interface, second USB device type information of the second electronic device, and sending, through the first wireless communication module, the second USB device type information to the first electronic device, specifically includes: and when the power supply is identified not to come from the USB interface, acquiring 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.
In a third aspect, the present application provides an electronic device, the electronic device not having a USB interface, the electronic device including a processor, a wireless communication module, and an information acquisition module, the processor configured to: acquiring wireless configuration information through an information acquisition module; according to the wireless configuration information, establishing wireless communication connection with the communication conversion device through the wireless communication module; transmitting 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 communication conversion device is used for communicating with the second electronic equipment through a USB interface according to the transmission requirement of the USB equipment type; the wireless data communication is carried out with the communication conversion device through the wireless communication module, and USB data communication is carried out with the second electronic device through the communication conversion device according to the transmission requirement of the USB device type indicated by the first USB device type information; or according to the transmission requirement of the USB device type indicated by the second USB device type information, carrying out USB data communication with the second electronic device through the communication conversion device.
In a possible implementation manner of the third aspect, the information obtaining module is at least one of the following modules: wireless charging coil, near field communication module, bluetooth module, camera.
In a fourth aspect, the present application provides a communication conversion method applied to the electronic device as in the third aspect and any implementation manner thereof, where the communication conversion method includes: acquiring wireless configuration information through an information acquisition module in the electronic equipment; according to the wireless configuration information, establishing wireless communication connection with a communication conversion device through a wireless communication module in the electronic equipment; transmitting 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 for indicating the USB device type; the wireless data communication is carried out with the communication conversion device through the wireless communication module, and USB data communication is carried out with the second electronic device through the communication conversion device according to the transmission requirement of the USB device type indicated by the first USB device type information; or according to the transmission requirement of the USB device type indicated by the second USB device type information, carrying out USB data communication with the second electronic device through the communication conversion device.
In a fifth aspect, the present application provides a communication conversion system comprising a second electronic device, an electronic device as in the third aspect and any implementation thereof, and a communication conversion apparatus as in the first aspect and any implementation thereof; the electronic device communicates data with the second electronic device through the communication conversion device.
In a sixth aspect, the present application provides a computer readable storage medium comprising instructions which, when executed on a communication conversion device, cause the communication conversion device to perform the method of the second aspect and any implementation thereof; the instructions, when executed on an electronic device, cause the electronic device to perform the method as described in the fourth aspect.
In a seventh aspect, the present application provides a computer program product comprising instructions which, when run on an electronic device as described above, cause the electronic device to perform the method of the second aspect and any implementation thereof.
In an eighth aspect, a chip system is provided, the chip system comprising a processor for supporting an electronic device to implement the functionality referred to in the second aspect above. In one possible design, the device may further include interface circuitry that may be used to receive signals from other devices (e.g., memory) or to send signals to other devices (e.g., a communication interface). The system-on-chip may include a chip, and may also include other discrete devices.
The technical effects of the second to eighth aspects are referred to the technical effects of the first aspect and any of its embodiments and are not repeated here.
Drawings
Fig. 1 is a schematic structural diagram of a communication conversion system according to an embodiment of the present application;
Fig. 2 is a schematic structural diagram of a first electronic device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a communication conversion device according to an embodiment of the present application;
FIG. 4 is a second schematic diagram of a communication conversion system according to an embodiment of the present application;
FIG. 5 is a third schematic diagram of a communication conversion system according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a communication conversion system according to an embodiment of the present application;
fig. 7 is a schematic diagram of a communication conversion system according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a communication conversion system according to an embodiment of the present application;
fig. 9 is a schematic flow chart of a communication conversion method according to an embodiment of the present application;
FIG. 10 is a second flow chart of a communication conversion method according to the embodiment of the application;
FIG. 11 is a schematic diagram of a user interface of a first electronic device according to an embodiment of the present application;
FIG. 12 is a schematic diagram of a communication switching system according to an embodiment of the present application;
Fig. 13 is a schematic structural diagram of a communication conversion system according to an embodiment of the present application;
fig. 14 is a diagram illustrating a communication conversion system according to an embodiment of the present application;
FIG. 15 is a third flow chart of a communication conversion method according to the embodiment of the application;
FIG. 16 is a flowchart of a communication conversion method according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of a chip system according to an embodiment of the present application.
Detailed Description
Some concepts to which the present application relates will be described first.
The terms "first," "second," and the like, in accordance with embodiments of the present application, are used solely for the purpose of distinguishing between similar features and not necessarily for the purpose of indicating a relative importance, number, sequence, or the like.
The terms "exemplary" or "such as" and the like, as used in relation to embodiments of the present application, are used to denote examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
The terms "coupled" and "connected" in accordance with embodiments of the application are to be construed broadly, and may refer, for example, to a physical direct connection, or to an indirect connection via electronic devices, such as, for example, electrical resistance, inductance, capacitance, or other electrical devices.
At present, the electronic equipment is generally provided with a USB interface, the USB interface can be used as a data transmission interface, the USB interfaces of the two electronic equipment are connected through a USB cable, and wired data transmission between the two electronic equipment can be realized. However, setting the USB interface may affect the waterproof performance, the dustproof performance and the plugging life of the electronic device, and may also occupy the motherboard space, which is not beneficial to the ultrathin electronic device, so canceling the USB interface is a trend of developing the current electronic device.
If the USB interface is canceled, the data transmission function of the electronic equipment is required to be realized in a wireless data communication mode. In the prior art, when two electronic devices perform wireless data communication, the two electronic devices are required to be installed with an adaptive application program or driver in advance and then connected manually by a user.
To this end, as shown in fig. 1, an embodiment of the present application provides a communication conversion system including a first electronic device 20, a second electronic device 30, and a communication conversion apparatus 10. The first electronic device 20 is an electronic device that cancels the USB interface. The second electronic device 30 is a device that performs data transmission with the first electronic device 20. The communication conversion apparatus 10 is configured to establish a wireless communication connection with the first electronic device 20 and a USB communication connection with the second electronic device 30.
The first electronic device 20 may act as a slave to USB communication and the second electronic device 30 as a master to 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 notebook computer, etc. Alternatively, the first electronic device 20 may be a master device for USB communication, and the second electronic device 30 may be a slave device for USB communication (or referred to as OTG device). 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 disk, a USB mouse, a USB keyboard, a U shield, etc.
When the first electronic device 20 is used as a slave device of USB communication and the second electronic device 30 is used as a master device of USB communication, the communication conversion device 10 notifies the second electronic device 30 to perform enumeration, and during the enumeration process, the communication conversion device 10 is responsible for communication between the first electronic device 20 and the second electronic device 30. For example, the communication conversion apparatus 10 acquires USB device type information of the first electronic device 20 from the first electronic device 20 through a wireless communication connection, and transmits to the second electronic device 30 through a USB communication connection. At this time, the communication conversion apparatus 10 is mapped to the USB device indicated by the USB device type information, and is responsible for data communication between the first electronic device 20 and the second electronic device 30.
When the first electronic device 20 is used as a master device for USB communication and the second electronic device 30 is used as a slave device for USB communication, the communication conversion device 10 notifies the first electronic device 20 to perform enumeration, and during the enumeration process, the communication conversion device 10 is responsible for communication between the first electronic device 20 and the second electronic device 30. For example, the communication conversion apparatus 10 acquires USB device type information of the second electronic device 30 from the second electronic device 30 through a USB communication connection, and transmits to the first electronic device 20 through a wireless communication connection. At this time, the communication conversion apparatus 10 is mapped to the USB device indicated by the USB device type information, and is responsible for data communication between the first electronic device 20 and the second electronic device 30.
The enumeration process of the USB communication means that, after the slave device of the USB communication is connected to the master device, the master device communicates with the slave device through the enumeration process to obtain USB device type information of the slave device, thereby knowing what type of USB device the slave device is, and loading a corresponding driver. The entire process from the connection of the slave device to the master device to the end of enumeration includes the following state changes: connection state, power supply state, default state, address state, configuration state, and suspend state. During the enumeration process, the master and slave negotiate to determine functionally relevant configuration items, all of which are provided in the form of descriptors, including device descriptors, configuration descriptors, string descriptors, interface descriptors, endpoint descriptors, device definition descriptors. When the relevant function parameters are configured, the master device and the slave device can realize relevant functions according to specific USB device types.
The USB device types specified by the USB bus specification are shown in table 1:
TABLE 1
Taking the first electronic device 20 as an example of a mobile phone, fig. 2 shows one 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, keys 290, a motor 291, an indicator 292, a camera 293, a display 294, a subscriber identity module (subscriber identification module, SIM) card interface 295, and the like.
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the first electronic device 20. In other embodiments of the application, the first electronic device 20 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units such as, for example: processor 210 may be a field programmable gate array (field programmable GATE ARRAY, FPGA), application SPECIFIC INTEGRATED Circuit (ASIC), system on chip (SoC), application processor (application processor, AP), graphics processor (graphics processing unit, GPU), image signal processor (IMAGE SIGNAL processor, ISP), or the like. Wherein the different processing units may be separate devices or may be integrated in one or more processors. A memory may also be provided in the processor 210 for storing computer instructions and data.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SanDisk (Micro SD) card, to enable expansion of the memory capabilities of the first electronic device 20. The external memory card communicates with the processor 210 through an external memory interface 220 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
Internal memory 230 may be used to store computer-executable program code that includes computer instructions. The processor 210 executes various functional applications of the first electronic device 20 and data processing by executing computer instructions stored in the internal memory 230.
The wireless communication function of the first electronic device 20 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, a modem processor, a baseband processor, and the like. The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the first electronic device 20 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas.
The mobile communication module 250 may provide a solution for wireless communication including 2G/3G/4G/5G or the like for use on the first electronic device 20. The wireless communication module 260 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), etc., as applied on the first electronic device 20.
The first electronic device 20 may implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, an application processor, and the like. The audio module 270 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. Speaker 270A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. A receiver 270B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. Microphone 270C, also referred to as a "microphone" or "microphone," is used to convert sound signals into electrical signals. The first electronic device 20 may be provided with at least one microphone 270C. The earphone interface 270D is for connecting a wired earphone.
The sensor module 280 may include a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, an angle sensor, and the like.
Keys 290 include a power on key, a volume key, etc. The keys 290 may be mechanical keys or touch keys. The motor 291 may generate a vibration alert. The motor 291 may be used for incoming call vibration alerting or for touch vibration feedback. The indicator 292 may be an indicator light, which may be used to indicate a state of charge, a change in power, or an indication message, missed call, notification, etc. The SIM card interface 295 is for interfacing with a SIM card. The SIM card may be inserted into the SIM card interface 295 or removed from the SIM card interface 295 to enable contact and separation from the first electronic device 20.
The first electronic device 20 may implement a photographing function through an ISP, a camera 293, a video codec, a GPU, a display 294, an application processor, and the like. The ISP is used to process the data fed back by the camera 293. The first electronic device 20 may implement display functions through a GPU, a display screen 294, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor. The display 294 is used to display images, videos, and the like. The display 294 includes a display panel.
The power management module 240 is configured to receive a wireless charging input from a wireless charging coil 242 of the first electronic device 20. The power management module 240 may also power 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 294, the camera 293, the wireless communication module 260, and the like. The power management module 240 may also be configured to monitor parameters such as capacity, voltage, number of battery cycles, battery state of health (leakage, impedance) of the battery 241. In other embodiments, the power management module 240 may also be disposed in the processor 210.
Fig. 3 shows a schematic structural diagram of a communication conversion device 10 according to 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.
The first wireless communication module 101 is configured to establish a wireless communication connection (e.g., a Wi-Fi connection) with a first electronic device (e.g., the first electronic device 20 in fig. 1), and is configured to implement a function of transmitting a large amount of data.
The second wireless communication module 102 is configured to transmit a small amount of data such as wireless configuration information, where the wireless configuration information is used for authentication between the first electronic device and the communication conversion device 10, and after authentication is completed between the first electronic device and the communication conversion device 10, the first electronic device establishes a wireless communication connection with the first wireless communication module 101.
Specifically, the wireless configuration information includes information such as Wi-Fi service set identification (SERVICE SET IDENTIFIER, SSID), wi-Fi password, media access control (MEDIA ACCESS control, MAC) address, and the like. Wherein, SSID is the name of the first wireless communication module 101, and when the first electronic device recognizes 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 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 secure data transmission. The MAC address, also referred to as a physical address, is used to identify the communication conversion device 10 to ensure that the data can be accurately sent to the target device.
The first USB interface 103 is used to connect a second electronic device (for example, the second electronic device 30 in fig. 1), and may enable the second electronic device to supply power to the communication conversion apparatus 10, or enable the first electronic device or other power source to supply power to the second electronic device through the communication conversion apparatus 10; and, the first USB interface 103 is further configured to implement a data transmission function.
The first processor 104 is configured to implement a conversion between wireless data communication and USB data communication. When the first electronic device is a slave device for USB communication and the second electronic device is a master device for USB communication, the first processor 104 receives data from the first electronic device over the wireless communication connection and sends the data to the second electronic device over the USB communication connection. When the first electronic device is a master device for USB communication and the second electronic device is a slave device for USB communication, the first processor 104 receives data from the second electronic device via the USB communication connection and sends the data to the first electronic device via the wireless communication connection.
It should be understood that the configuration illustrated in the embodiment of the present application does not constitute a specific limitation on the communication conversion apparatus 10. In other embodiments of the present application, communication conversion device 10 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
As shown in fig. 4 and 5, taking the first electronic device 20 as a slave device (e.g., a mobile phone) for USB communication and the second electronic device 30 as a master device (e.g., a PC device) for USB communication as an example, the communication conversion apparatus 10 may be a wireless charging apparatus. The communication conversion device 10 includes a charging cradle a and a USB cable B. The wireless charging coil in charging dock a may be used to transmit wireless charging parameters according to a wireless charging protocol, as well as to transmit wireless configuration information as the second wireless communication module 102 to the first electronic device 20.
As shown in fig. 4, in one possible embodiment, the USB cable B may be a dedicated cable, in this embodiment, the communication conversion apparatus 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 the second USB interface 301 in the second electronic device 30.
In another possible embodiment, as shown in fig. 5, 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.
As shown in fig. 4 and 5, the first electronic device 20 includes a battery 201, a charge and discharge module 202, a third wireless communication module 203, a second processor 204, and a wireless charging coil 205 (the wireless charging coil 205 may acquire wireless configuration information as an information acquisition module). Wherein the second processor 204 controls the charge-discharge module 202 to charge the battery 201 with the electric energy from the wireless charging coil 205; in addition, the second processor 204 controls the charge-discharge module 202 to receive 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 apparatus 10 complete the 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 apparatus 10.
As shown in fig. 6 to 8, taking the example that the first electronic device 20 is a slave device (e.g., a mobile phone) for USB communication and the second electronic device 30 is a master device (e.g., a PC device) for USB communication, the communication conversion apparatus 10 may not be a wireless charging apparatus. At this time, the first electronic device 20 may also acquire the wireless configuration information of the communication conversion apparatus 10 by other wireless means.
As shown in fig. 6, in one possible implementation, the first electronic device 20 further includes an NFC module 206 (the NFC module 206 may obtain wireless configuration information as an information obtaining module), and the second wireless communication module 102 may also be a near field communication (NEAR FIELD communication) module. The NFC module 206 in the first electronic device 20 obtains wireless configuration information by communicating with the second wireless communication module 102.
As shown in fig. 7, in a possible embodiment, the first electronic device 20 further includes a bluetooth module 207 (the bluetooth module 207 may be used as an information acquisition module to acquire wireless configuration information), and the second wireless communication module 102 may be a bluetooth module. The bluetooth module 207 in the first electronic device 20 acquires wireless configuration information by communicating with the second wireless communication module 102.
As shown in fig. 8, in a possible embodiment, the first electronic device 20 further includes a camera 208 (the camera 208 may be used as an information acquisition module to acquire wireless configuration information), and the two-dimensional code 105 is disposed on the communication conversion apparatus 10. The first electronic device 20 scans the two-dimensional code 105 on the communication conversion apparatus 10 through the camera 208 to acquire wireless configuration information.
Taking the example that the first electronic device 20 shown in fig. 4-8 is a slave device (e.g. a mobile phone) for USB communication and the second electronic device 30 is a master device (e.g. a PC device) for USB communication, the above-mentioned wireless communication system may execute a communication conversion method as shown in fig. 9, and the method specifically includes steps S101-S105:
In step S101, after the communication conversion device 10 is powered on, the first processor 104 recognizes that the power is supplied from the first USB interface 103.
When the first USB interface 103 of the communication conversion apparatus 10 is connected to the second USB interface 301 of the second electronic device 30, the second electronic device 30 may supply power to the communication conversion apparatus 10 through the second USB interface 301 and the first USB interface 103, so that the communication conversion apparatus 10 is powered on, and at this time, the first processor 104 in the communication conversion apparatus 10 may recognize that the power supply is from the first USB interface 103.
Step S102, the first electronic device 20 obtains wireless configuration information.
The wireless configuration information may be preconfigured on the first electronic device 20, or the first electronic device 20 acquires the wireless configuration information from the communication conversion apparatus 10 by wireless.
Further, in the case where the first electronic device 20 acquires the wireless configuration information from the communication conversion apparatus 10 by wireless, the first electronic device 20 may actively acquire the wireless configuration information from the communication conversion apparatus 10 by wireless, or the communication conversion apparatus 10 may actively transmit the wireless configuration information to the first electronic device 20 by wireless.
For the first electronic device 20 to actively acquire wireless configuration information from the communication conversion apparatus 10 by wireless: the first electronic device 20 may acquire the wireless configuration information from the communication conversion apparatus 10 in such a manner that the NFC tag of the near field communication module in the communication conversion apparatus 10 is identified by the near field communication module 206 as shown in fig. 6. Or the first electronic device 20 may acquire the wireless configuration information from the communication conversion apparatus 10 in such a manner that the two-dimensional code 105 is scanned by the camera 208 as shown in fig. 8.
For the communication conversion apparatus 10 to actively transmit wireless configuration information to the first electronic device 20 by wireless: the communication conversion device 10 may be provided with a key, and when the user presses the key, the communication conversion device 10 is triggered to transmit 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. Or the communication switching device 10 transmits the wireless configuration information to the first electronic device 20 through the wireless charging coil shown in fig. 4 or 5 or through the bluetooth module shown in fig. 7 by continuously broadcasting.
As shown in fig. 10, the communication conversion apparatus 10 transmits wireless configuration information to the first electronic device 20 through the wireless charging coil shown in fig. 4 or fig. 5, specifically including steps S1021 to S1024:
S1021, the wireless charging coil in the charging base a broadcasts a PING token packet to determine that the communication conversion apparatus 10 establishes a wireless communication connection with the first electronic device 20 through the wireless charging coil.
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.
If the first electronic device 20 is proximate to the charging dock a such that the wireless charging coil 205 of the first electronic device 20 is electromagnetically coupled to the wireless charging coil of the charging dock a, the first electronic device 20 may detect the wireless charging coil and receive the PING token packet through the wireless charging coil 205.
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 deferral (STALL) message is fed back through the wireless charging coil 205.
If the communication conversion apparatus 10 receives the ACK message, it may be determined that the communication conversion apparatus 10 establishes a wireless communication connection with the first electronic device 20 through the wireless charging coil, and S1023 is performed. If the communication conversion device 10 receives a NAK message or a start message, a wireless charging procedure is performed.
S1023, performing BC1.2 detection on the first USB interface 103 to determine that the communication conversion device 10 establishes USB communication connection with the second electronic device 30 through the first USB interface 103.
S1024, the communication conversion apparatus 10 transmits the wireless configuration information to the first electronic device 20 through the wireless charging coil.
The communication conversion device 10 may use a custom wireless communication protocol to send wireless configuration information to the first electronic device through the wireless charging coil.
In step S103, the communication conversion apparatus 10 establishes a wireless communication connection with the first electronic device 20 through the first wireless communication module 101.
When the communication conversion apparatus 10 completes authentication with the first electronic device 20 through the wireless configuration information (including information such as SSID, wi-Fi password, and MAC address), the first processor 104 controls the first wireless communication module 101 to establish a wireless communication connection with the first electronic device 20.
Illustratively, when the first wireless communication module 101 is a Wi-Fi module, authentication may be performed by a Wi-Fi password. When the first electronic device 20 inputs the correct Wi-Fi password, the first wireless communication module 101 may 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, and the like.
In step S104, the communication conversion apparatus 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.
As shown in S1041 of fig. 10, the communication conversion apparatus 10 notifies the second electronic device 30 to perform enumeration. In the enumeration process, the communication conversion apparatus 10 acquires 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 the USB device type information to the second electronic device 30 through the first USB interface 103. Wherein the first USB device type information indicates the device types supported by the first electronic device 20, with specific reference to the table 1.
For example, 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 storage device (mass storage device), where the storage device mainly includes an optical drive, a usb disk, a U-shield, a mobile hard disk, and so on. When the second electronic device 30 is surfing the internet through the first electronic device 20, the device type supported by the first electronic device 20 may be a communication device (communications device) mainly including a modem (modem).
In step S105, the communication conversion apparatus 10 and the second electronic device 30 perform USB data communication in accordance with the transmission requirement of the USB device type indicated by the first USB device type information, and the communication conversion apparatus 10 performs wireless data communication with the first electronic device 20 through the wireless communication connection of the first wireless communication module 101.
The communication conversion device 10 is configured to convert wireless data communication and USB data communication, and forward data to establish a data communication link between the first electronic device 20 and the second electronic device 30, so as to realize data communication between the first electronic device 20 and the second electronic device 30.
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 may perform control transmission, so that the second electronic device 30 obtains information and status of the first electronic device 20. Through the data interaction, the second electronic device 30 can learn various device information such as how many data interfaces the first electronic device 20 has and how many available endpoints.
When the USB device type indicated by the first USB device type information is a storage device such as a USB disk, the first electronic device 20 and the second electronic device 30 may perform batch transmission. The batch transmission is unidirectional transmission and is mainly used for transmitting a large amount of data, the transmission mode has no requirement on data transmission time, but the accuracy of the data must be ensured, when the USB bus is busy, the transmission rate is slower, and when the USB bus is idle, the transmission rate is faster.
When the USB device type indicated by the first USB device type information is a language device such as a microphone, a sound box, or an image device such as a scanner, a digital camera, or a monitor device such as a display, the first electronic device 20 and the second electronic device 30 may also perform isochronous transmission. The speed of isochronous transmission is constant, and a large amount of data can be transmitted, but the success of each transmission can not be ensured because of no error control, and the method is suitable for the data transmission of audio and video.
As shown in fig. 11, when the communication conversion apparatus 10 is a wireless charging apparatus, a user may implement a USB communication function with a second electronic device using the wireless charging apparatus by selecting a function option of a transmission file in a USB connection manner at a user interface of the first electronic device 20.
As shown in fig. 12 and 13, taking the first electronic device 20 as a master device (e.g., a mobile phone) for USB communication and the second electronic device 30 as a slave device (e.g., an OTG device) for USB communication as an example, the communication conversion apparatus 10 may be a wireless charging apparatus. Wherein, as shown in fig. 12, in one possible implementation, the USB cable B may be a dedicated cable, and in this implementation, the first wireless communication module 101, the first USB interface 103, and the first processor 104 may be integrated on the USB connector C. In another possible embodiment, as shown in fig. 13, the first wireless communication module 101, the first USB interface 103, and the first processor 104 may be integrated on the charging dock a.
As shown in fig. 14, taking the first electronic device 20 as a master device (e.g., a mobile phone) for USB communication and the second electronic device 30 as a slave device (e.g., an OTG device) for USB communication as an example, the communication conversion apparatus 10 may not be a wireless charging apparatus.
Taking the example that the first electronic device 20 shown in fig. 12-14 is a master device (e.g. a mobile phone) for USB communication and the second electronic device 30 is a slave device (e.g. an OTG device) for USB communication, the above-mentioned wireless communication system may execute a communication conversion method shown in fig. 15, and the method specifically includes steps S201-S205:
In step S201, after the communication conversion device 10 is powered on, the first processor 104 recognizes that the power supply is not from the first USB interface 103.
Since the OTG device requires the external device to supply power thereto, in one possible embodiment, as shown in fig. 12 and 13, when the communication conversion apparatus 10 is a wireless charging apparatus, and the first electronic device 20 and the wireless charging apparatus support wireless reverse charging (the first electronic device 20 charges the wireless charging apparatus), the user sets the first electronic device 20 to a wireless reverse charging mode as shown in S2011 of fig. 16. At this time, the first electronic device 20 may supply power to the communication conversion apparatus 10 through the wireless charging coil, so that the communication conversion apparatus 10 is powered on, and at this time, the first processor 104 in the communication conversion apparatus 10 may recognize that the power supply is from the wireless charging coil.
In another possible embodiment, as shown in fig. 14, when the communication conversion device 10 is not a wireless charging device, or the first electronic apparatus 20 and the wireless charging device do not support wireless reverse charging, other power sources may also be used to supply power to the communication conversion device 10.
Step S202, the first electronic device 20 obtains wireless configuration information.
The first electronic device 20 may actively acquire the wireless configuration information from the communication conversion apparatus 10 in a wireless manner, for example, as shown in fig. 14, the first electronic device 20 may acquire the wireless configuration information from the communication conversion apparatus 10 by identifying an NFC tag of the near field communication module in the communication conversion apparatus 10 using the near field communication module 206 as an information acquisition module.
The communication conversion apparatus 10 may actively transmit the wireless configuration information to the first electronic device 20 in a wireless manner, for example, as shown in fig. 16, the communication conversion apparatus 10 transmits the wireless configuration information to the first electronic device 20 through the wireless charging coil shown in fig. 12 and 13, specifically including steps S2021-S2022:
S2021, the communication conversion apparatus 10 detects whether an OTG device is connected.
When the OTG device is connected to the communication conversion apparatus 10 through the second USB interface 301 and the first USB interface 103, the first processor 104 in the communication conversion apparatus 10 may detect that the OTG device is connected, and perform S2022. Otherwise, the communication conversion apparatus 10 supplies power to the outside using the power supplied from the first electronic device 20.
S2022, the communication conversion apparatus 10 transmits the wireless configuration information to the first electronic device 20 through the wireless charging coil.
In step S203, the communication conversion apparatus 10 establishes a wireless communication connection with the first electronic device 20 through the first wireless communication module 101.
In step S204, the communication conversion apparatus 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.
As shown in S2041 of fig. 16, the communication conversion apparatus 10 notifies the first electronic device 20 to perform enumeration. In the enumeration process, the communication conversion apparatus 10 acquires 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 the USB device type information to the first electronic device 20 through the first wireless communication module 101. The second USB device type information indicates a device type supported by the second electronic device 30, where the device type supported by the second electronic device 30 may be a storage device such as a USB disk, a U shield, a mobile hard disk, or may be a man-machine interaction device such as a USB mouse, a USB keyboard, or the like.
In step S205, the communication conversion apparatus 10 and the second electronic device 30 perform USB data communication according to the transmission requirement of the USB device type indicated by the second USB device type information, and the communication conversion apparatus 10 performs wireless data communication with the first electronic device 20 through the wireless communication connection of the first wireless communication module 101.
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 need to perform control transmission, so that the first electronic device 20 obtains information and status of the second electronic device 30.
When the USB device type indicated by the second USB device type information is a storage device such as a USB disk, the first electronic device 20 and the second electronic device 30 may perform batch transmission.
When the USB device type indicated by the second USB device type information is a man-machine interaction device such as a USB keyboard, a USB mouse, etc., the first electronic device 20 and the second electronic device 30 may perform interrupt transmission. The interrupt transmission has a small amount of transmit-receive data, typically a periodic transmission.
The communication conversion device provided by the embodiment of the application can perform wireless data communication with the first electronic equipment, and forwards the first USB equipment type information of the first electronic equipment to the second electronic equipment, so that the communication conversion device and the second electronic equipment perform USB data communication according to the transmission requirement of the USB equipment type indicated by the first USB equipment type information, thereby realizing the conversion of wireless data communication and USB data communication; or the communication conversion device and the second electronic equipment perform USB data communication according to the transmission requirement of the USB equipment type indicated by the second USB equipment type information, and the second USB equipment type information of the second electronic equipment is forwarded to the first electronic equipment so as to realize conversion of wireless data communication and USB data communication.
Based on the communication conversion device provided by the embodiment of the application, the function of carrying out data communication with the second electronic device under the condition that the first electronic device cancels the USB interface can be realized by executing the communication conversion method provided by the embodiment of the application. In the embodiment of the 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, and a user does not need to additionally install drive and application software when using the communication conversion device for data transmission, so that the user experience is improved.
As shown in fig. 17, the embodiment of the application further provides a chip system. The system on chip 170 includes at least one processor 1701 and at least one interface circuit 1702. The at least one processor 1701 and the at least one interface circuit 1702 may be interconnected by wires. The processor 1701 is configured to support a communication conversion device or a first electronic apparatus to implement the steps of the above-described method embodiments, e.g., the method shown in fig. 9, 10, 15, 16, and at least one interface circuit 1702 may be configured to receive signals from other devices (e.g., memory) or to transmit signals to other devices (e.g., a communication interface). The system-on-chip may include a chip, and may also include other discrete devices.
Embodiments of the present application also provide a computer-readable storage medium including instructions that, when executed on the above-described communication conversion apparatus or first electronic device, cause the communication conversion apparatus or first electronic device to perform the steps in the above-described method embodiments, for example, perform the methods shown in fig. 9,10, 15, and 16.
The embodiments of the present application also provide a computer program product comprising instructions which, when run on the above-mentioned communication conversion apparatus or first electronic device, cause the communication conversion apparatus or first electronic device to perform the steps of the above-mentioned method embodiments, for example, to perform the methods shown in fig. 9, 10, 15, 16.
Technical effects concerning the computer-readable storage medium, the computer program product refer to technical effects of the previous method embodiments.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, 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 various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system, apparatus and module may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, e.g., the division of modules is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple modules or components may be combined or integrated into another device, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, indirect coupling or communication connection of devices or modules, electrical, mechanical, or other form.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physically separate, i.e., may be located in one device, or may be distributed over 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 the embodiments of the present application may be integrated in one device, or each module may exist alone physically, or two or more modules may be integrated in one device.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may 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 processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. 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 one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (Solid STATE DISK, SSD)), etc.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (13)
1. The communication conversion device is characterized by being used for supporting data communication between a first electronic device and a second electronic device or supporting the second electronic device to surf the internet through the first electronic device; the first electronic device does not have a USB interface; the communication conversion device includes: the device comprises a first wireless communication module, a Universal Serial Bus (USB) interface and a processor; the first wireless communication module is used for carrying out wireless data communication with the first electronic equipment; the processor is configured to:
When the USB interface is connected to the second electronic equipment, wireless communication connection is established between the USB interface and the first electronic equipment through the first wireless communication module;
When the power supply is identified to come from the USB interface, controlling the communication conversion device to inform the second electronic equipment to enumerate; acquiring 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; carrying out wireless data communication with the first electronic equipment through the first wireless communication module, and carrying out USB data communication with the second electronic equipment according to the transmission requirement of the USB equipment type indicated by the first USB equipment type information; when the second electronic device is connected to the internet through the first electronic device, the first electronic device type indicated by the first USB device type information is communication equipment;
When the fact that power supply is not from the USB interface is recognized, controlling the communication conversion device to inform the first electronic equipment to enumerate; acquiring 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; and according to the transmission requirement of the USB equipment type indicated by the second USB equipment type information, carrying out USB data communication with the second electronic equipment, and carrying out wireless data communication with the first electronic equipment through the first wireless communication module.
2. The apparatus of claim 1, further comprising a second wireless communication module, the processor further configured to:
Before the wireless communication connection is established between the first wireless communication module and the first electronic device, wireless configuration information is sent to the first electronic device through the second wireless communication module, and the wireless configuration information is used for establishing the wireless communication connection between the first wireless communication module and the first electronic device.
3. The device according to claim 2, wherein the second wireless communication module is in particular a wireless charging coil.
4. A device according to claim 3, wherein the communication conversion device comprises a charging base and a USB cable, the wireless charging coil being located on the charging base.
5. The apparatus of claim 4, wherein the charging dock comprises the first wireless communication module, the USB interface, and the processor.
6. The apparatus of claim 4, wherein the communication conversion apparatus further comprises a USB connector comprising the first wireless communication module, the USB interface, and the processor.
7. A communication conversion method, characterized by being applied to the communication conversion apparatus according to any one of claims 1 to 6; the communication conversion method comprises the following steps:
When the communication conversion device is connected to the second electronic equipment through the USB interface, establishing wireless communication connection with the first electronic equipment through the first wireless communication module in the communication conversion device; the first wireless communication module is used for carrying out wireless data communication with the first electronic equipment; the first electronic device does not have a USB interface;
When the power supply is identified to come from the USB interface, controlling the communication conversion device to inform the second electronic equipment to enumerate; acquiring 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; carrying out wireless data communication with the first electronic equipment through the first wireless communication module, and carrying out USB data communication with the second electronic equipment according to the transmission requirement of the USB equipment type indicated by the first USB equipment type information;
When the fact that power supply is not from the USB interface is recognized, controlling the communication conversion device to inform the first electronic equipment to enumerate; acquiring 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; and according to the transmission requirement of the USB equipment type indicated by the second USB equipment type information, carrying out USB data communication with the second electronic equipment, and carrying out wireless data communication with the first electronic equipment through the first wireless communication module.
8. The method as recited in claim 7, further comprising:
Before the wireless communication connection is established between the first wireless communication module and the first electronic device, wireless configuration information is sent to the first electronic device through a second wireless communication module in the communication conversion device, and the wireless configuration information is used for establishing the wireless communication connection between the first wireless communication module and the first electronic device.
9. An electronic device, wherein the electronic device does not have a USB interface, the electronic device comprising a processor, a wireless communication module, and an information acquisition module, the processor configured to:
Acquiring wireless configuration information through the information acquisition module;
establishing a wireless communication connection with the communication conversion device according to any one of claims 1-6 through the wireless communication module according to the wireless configuration information;
Transmitting 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 for indicating the USB device type, and the communication conversion device is used for communicating with the second electronic device through a USB interface according to the transmission requirement of the USB device type;
the wireless communication module is used for carrying out wireless data communication with the communication conversion device, and carrying out USB data communication with the second electronic device through the communication conversion device according to the transmission requirement of the USB device type indicated by the first USB device type information; or according to the transmission requirement of the USB equipment type indicated by the second USB equipment type information, carrying out USB data communication with the second electronic equipment through a communication conversion device.
10. The electronic device of claim 9, wherein the information acquisition module is at least one of: wireless charging coil, near field communication module, bluetooth module, camera.
11. A communication conversion method, characterized by being applied to the electronic device according to claim 9 or 10; the communication conversion method comprises the following steps:
acquiring wireless configuration information through an information acquisition module in the electronic equipment;
According to the wireless configuration information, establishing wireless communication connection with a communication conversion device through a wireless communication module in the electronic equipment;
Transmitting 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 for indicating a USB device type;
the wireless communication module is used for carrying out wireless data communication with the communication conversion device, and carrying out USB data communication with the second electronic device through the communication conversion device according to the transmission requirement of the USB device type indicated by the first USB device type information; or according to the transmission requirement of the USB equipment type indicated by the second USB equipment type information, carrying out USB data communication with the second electronic equipment through a communication conversion device.
12. A communication conversion system comprising a second electronic device, an electronic device according to claim 9 or 10, and a communication conversion apparatus according to any one of claims 1 to 6; and the electronic equipment performs data communication with the second electronic equipment through the communication conversion device.
13. A computer readable storage medium comprising instructions which, when executed on a communication conversion device, cause the communication conversion device to perform the method of claim 7 or 8; the instructions, when executed on an electronic device, cause the electronic device to perform the method of claim 11.
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)
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 |
-
2023
- 2023-12-21 CN CN202311766123.1A patent/CN117440060B/en active Active
Patent Citations (4)
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 |
---|---|---|
CN108695921B (en) | Data backup method, wireless charging device, mobile terminal and storage medium | |
CN112534843B (en) | Apparatus and method for communication by using bluetooth low energy | |
CN113498124B (en) | SIM card and eSIM card switching method and electronic equipment | |
CN108540193B (en) | Front-end module supporting device-to-device communication using multiple frequency bands and electronic device | |
US20150065053A1 (en) | Method of controlling short-range wireless communication and apparatus supporting the same | |
KR102107132B1 (en) | Access point connection method of electronic apparatus and electronic appparatus thereof | |
EP2206312A2 (en) | Pairing exchange | |
US10002528B2 (en) | IR communication method and electronic device thereof | |
WO2023065931A1 (en) | Method for charging electronic device, and electronic device | |
CN110188542A (en) | A kind of terminal device starting method and apparatus | |
CN111523633B (en) | Data transmission method, multifunctional card and electronic equipment | |
CN113853754A (en) | In the bluetoothTMElectronic device and method for displaying external electronic device query list in network environment | |
AU2014315883A1 (en) | Method of controlling short-range wireless communication and apparatus supporting the same | |
KR101277657B1 (en) | Method for handling input event between external device and mobile terminal docking thereat | |
KR102240526B1 (en) | Contents download method of electronic apparatus and electronic appparatus thereof | |
WO2021093767A1 (en) | Resource determination method, resource configuration method, terminal, and network device | |
CN113518331B (en) | Communication method and device | |
CN117335830B (en) | Wireless communication circuit, bluetooth communication switching method and electronic equipment | |
CN117440060B (en) | Communication conversion device, electronic equipment, system and method | |
CN202077108U (en) | Wireless scanning system based on Bluetooth technology | |
EP4287763A2 (en) | Electronic device for reducing power consumption in network on basis of wi-fi direct protocol, and method related thereto | |
WO2023134341A1 (en) | Wireless charging device | |
CN112713627B (en) | Voltage control method, voltage control device, storage medium, and electronic apparatus | |
CN116737356B (en) | Memory management method and electronic equipment | |
CN114817102B (en) | Connection control method and device |
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 |