WO2022068513A1 - Procédé de communication sans fil et dispositif terminal - Google Patents
Procédé de communication sans fil et dispositif terminal Download PDFInfo
- Publication number
- WO2022068513A1 WO2022068513A1 PCT/CN2021/116120 CN2021116120W WO2022068513A1 WO 2022068513 A1 WO2022068513 A1 WO 2022068513A1 CN 2021116120 W CN2021116120 W CN 2021116120W WO 2022068513 A1 WO2022068513 A1 WO 2022068513A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal device
- target
- message
- pointing
- information
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
Definitions
- the present application relates to the field of communication technologies, and in particular, to a wireless communication method and terminal device.
- Wireless fidelity direct is a peer-to-peer (P2P) connection technology.
- P2P peer-to-peer
- terminal devices can be connected without access point (AP) participation.
- AP access point
- discover each other and establish a point-to-point connection and then perform data transmission between devices based on the established P2P connection.
- the current process of data transmission based on the P2P connection is generally complicated.
- the present application provides a wireless communication method and terminal device for reducing the complexity of a data transmission process based on a P2P connection.
- an embodiment of the present application provides a wireless communication method, which is applied to a first terminal device, including:
- the first terminal device searches for the second terminal device that satisfies its own filtering conditions based on the filtering information, it establishes a Wi-Fi P2P connection with the second terminal device.
- the Wi-Fi direct connection process is simpler, so the complexity of the data transmission process based on P2P connection can be reduced; it can also reduce resource requirements and expand the scope of application; in addition, the terminal equipment can be searched by filtering information. Filter, which can also filter out irrelevant terminal equipment, improve search efficiency and security.
- the method further includes: if a probe request message carrying filtering information of a third terminal device is received, and the filtering information of the first terminal device is the same as that of the first terminal device If the filtering information of the three terminal devices match, it is determined that the wireless fidelity point-to-point connection between the first terminal device and the third terminal device has been established, and a message containing the first terminal device and the third terminal device is sent to the third terminal device The probe response message of the filter information of the terminal device.
- the filtering information includes at least one of the following information: account information, group information, user input information, and short-range communication identification information, and the input information includes text message or voice message.
- account information e.g., account information, group information, user input information, and short-range communication identification information
- the input information includes text message or voice message.
- the method further includes:
- IP Internet Protocol
- Data transmission is performed with the target terminal device based on the virtual IP address.
- the first message sent by the first terminal device to the target terminal device and the second message received from the target terminal device excluding IP address information
- the first terminal device adds virtual IP address information to the data packet corresponding to the second message transmitted to the network layer, and the destination IP address in the virtual IP address information is the virtual IP address of the first terminal device, and the source IP address in the virtual IP address information is the virtual IP address of the target terminal device that sends the second message.
- the method further includes:
- the captured video image is transmitted to a target terminal device, where the target terminal device is a terminal device that has established a Wi-Fi point-to-point connection with the first terminal device;
- video calls between multiple devices can be easily realized; and this video call method does not rely on base station signals, so in some areas with weak or no mobile communication signals, the above-mentioned method is used to make video calls. It can better meet user needs; in addition, the above video calling method does not occupy mobile data traffic, so it can also save traffic resources.
- the displaying the video image captured by the target terminal device includes: if the target terminal device includes multiple, displaying in the main window the video image captured by one of the target terminal devices The video image is displayed in the floating sub-window, and the video image collected by other target terminal devices is displayed, wherein the size of the main window is larger than the size of the sub-window.
- the filtering information includes the pointing orientation of the device, and the pointing orientations of any two terminal devices that match the filtering information are opposite, and the method further includes:
- an embodiment of the present application provides a wireless communication method, which is applied to a first terminal device, including:
- each received response message carries the pointing orientation of the corresponding second terminal device
- a target device is determined from the at least one second terminal device, and the pointing orientation of the target device is different from that of the first terminal device.
- the pointing direction is relative;
- the first target file is shared with the target device.
- the technical solution provided by this embodiment automatically determines the target device through an alignment operation, so that the user can quickly share files with the aligned terminal device through a simple sharing operation, thereby reducing the complexity of the data transmission process based on the P2P connection. Improve the convenience for users to share files.
- the sharing operation is a touch operation or a gesture operation.
- the target device is located within a first preset range around the first terminal device. In this way, some devices that are too far away from the first terminal device can be filtered out, thereby improving the accuracy of data sharing.
- each of the received response messages further carries the device location of the corresponding second terminal device, and the corresponding device location of the second terminal device is also carried in the received response message, and the corresponding device position of the second terminal device is also carried according to the pointing direction of the first terminal device.
- the pointing azimuth of the second terminal device, and determining the target device from the at least one second terminal device including:
- the second terminal device that sends the response message is determined as the target device.
- the sharing of the first target file with the target device includes:
- the first target file is transmitted to the target device.
- the second terminal device can inform the first terminal device whether to receive the first target file through whether a resource request message occurs, which can improve the flexibility of file sharing.
- the method further includes: if the target device is not determined, prompting that there is no target device. In this way, it is convenient for the user to know the determination of the device, and the user experience is improved.
- the target device when the target device is located in a second preset range with the pointing line of the first terminal device as the center line, and the pointing azimuth is opposite to the pointing direction of the first terminal device
- the azimuth angle between the azimuths is within a preset angle range, it is determined that the pointing azimuth of the target device is opposite to the pointing azimuth of the first terminal device.
- the method further includes:
- a response message is sent to the second terminal device that sent the first notification message, and the sent response message carries the pointing direction of the first terminal device ;
- the second target file is received.
- an embodiment of the present application provides a wireless communication apparatus, which is applied to a first terminal device, including:
- a communication module configured to broadcast a probe request message carrying the filtering information of the first terminal device
- a processing module configured to, if the communication module receives a probe response message carrying the filtering information of the second terminal device, and the filtering information of the first terminal device matches the filtering information of the second terminal device, then It is determined that a Wi-Fi point-to-point connection between the first terminal device and the second terminal device has been established.
- the processing module is further configured to: if the communication module receives the probe request message carrying the filtering information of the third terminal device, and the first terminal device's If the filtering information matches the filtering information of the third terminal device, it is determined that the wireless fidelity point-to-point connection between the first terminal device and the third terminal device has been established, and the wireless fidelity point-to-point connection is established to the third terminal device.
- a probe response message carrying the filtering information of the first terminal device.
- the filtering information includes at least one of the following information: account information, group information, user input information, and short-range communication identification information, and the input information includes text message or voice message.
- the processing module is further configured to:
- the target terminal device is a terminal device that has established a wireless fidelity point-to-point connection with the first terminal device
- Data transmission is performed with the target terminal device based on the virtual IP address.
- the first message sent by the first terminal device to the target terminal device and the second message received from the target terminal device excluding IP address information
- the first terminal device adds virtual IP address information to the data packet corresponding to the second message transmitted to the network layer, and the destination IP address in the virtual IP address information is the virtual IP address of the first terminal device, and the source IP address in the virtual IP address information is the virtual IP address of the target terminal device that sends the second message.
- the device further includes:
- a display module configured to display a first interface in response to a user's triggering operation of the video call function before the broadcast of the detection request message carrying the filtering information of the first terminal device;
- an input module configured to receive a filter information setting operation performed by a user on the first interface
- the processing module is further configured to: determine the filtering information of the first terminal device in response to the filtering information setting operation;
- the communication module is further configured to: after the wireless fidelity point-to-point connection is established, transmit the collected video image to a target terminal device, where the target terminal device has established a wireless fidelity point-to-point connection with the first terminal device terminal equipment;
- the display module is further configured to: display after the communication module receives the video image collected by the target terminal device.
- the display module is specifically configured to: if the target terminal device includes multiple, display the video image collected by one of the target terminal devices in the main window, and display the video image collected by one of the target terminal devices in the main window, Video images collected by other target terminal devices are displayed in the sub-window, wherein the size of the main window is larger than the size of the sub-window.
- the filtering information includes the pointing azimuth of the device, and the pointing azimuths of any two terminal devices matching the filtering information are opposite, and the communication module is further configured to:
- an embodiment of the present application provides a wireless communication apparatus, which is applied to a first terminal device and includes: a communication module, an input module, and a processing module, wherein:
- the communication module is used for: establishing a wireless communication connection with at least one second terminal device;
- the input module is used for: receiving a user's sharing operation on the first target file
- the processing module is configured to: in response to the user's sharing operation on the first target file, broadcast the first notification message corresponding to the first target file through the communication module;
- the communication module is further configured to: receive a response message sent by the at least one second terminal device, and each received response message carries the pointing azimuth of the corresponding second terminal device;
- the processing module is further configured to: determine a target device from the at least one second terminal device according to the pointing orientation of the first terminal device and the pointing orientation of each of the second terminal devices; and after determining the target device In the case of the target device, the first target file is shared with the target device through the communication module, and the pointing orientation of the target device is opposite to the pointing orientation of the first terminal device.
- the sharing operation is a touch operation or a gesture operation.
- the target device is located within a first preset range around the first terminal device.
- each of the received response messages also carries the device location of the corresponding second terminal device, and the processing module is specifically configured to:
- the second terminal device that sends the response message is determined as the target device.
- the communication module is specifically configured to:
- the first target file is transmitted to the target device.
- the processing module is further configured to: if the target device is not determined, prompt that there is no target device.
- the processing module is specifically configured to: when the target device is located in a second preset range with the pointing line of the first terminal device as the center line, and the pointing azimuth is the same as the first When the azimuth included angle between the opposite azimuths of the pointing direction of a terminal device is within a preset angle range, it is determined that the pointing azimuth of the target device is opposite to the pointing azimuth of the first terminal device.
- the communication module is further configured to:
- a response message is sent to the second terminal device that sent the first notification message, and the sent response message carries the pointing direction of the first terminal device ;
- the second target file is received.
- an embodiment of the present application provides a terminal device, including: a memory and a processor, where the memory is used to store a computer program; the processor is used to execute the method described in the first aspect or the second aspect when the computer program is invoked.
- an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the method described in the first aspect or the second aspect.
- an embodiment of the present application provides a computer program product that, when the computer program product runs on a terminal device, enables the terminal device to execute the method described in the first aspect or the second aspect.
- an embodiment of the present application provides a chip system, including a processor, where the processor is coupled to a memory, and the processor executes a computer program stored in the memory, so as to implement the first aspect or the second aspect above Methods.
- the chip system may be a single chip or a chip module composed of multiple chips.
- the methods described in the first aspect and the second aspect can be combined with each other to form a new implementation.
- the second terminal device described in the second aspect can also include the method in the first aspect.
- the third terminal device, that is, the second terminal device described in the second aspect may be represented by the target terminal device described in the first aspect; in addition, for the beneficial effects of the third to eighth aspects, reference may be made to the above The relevant descriptions in the first aspect and the second aspect are not repeated here.
- FIG. 1 is a schematic diagram of a system architecture of a wireless communication method provided by an embodiment of the present application
- FIG. 2 is a schematic diagram of an application interface provided by an embodiment of the present application.
- FIG. 3 is a schematic flowchart of a device discovery process provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of an application scenario provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of another application scenario provided by an embodiment of the present application.
- FIG. 6 is a schematic flowchart of a wireless communication method provided by an embodiment of the present application.
- FIG. 7 is a schematic diagram of another application interface provided by an embodiment of the present application.
- FIG. 8 is a schematic diagram of another application interface provided by an embodiment of the present application.
- FIG. 9 is a schematic diagram of some application interfaces provided by the embodiments of the present application.
- FIG. 10 is a schematic flowchart of a filtering search provided by an embodiment of the present application.
- FIG. 11 is a schematic diagram of a frame structure of a probe request frame and a probe response frame provided by an embodiment of the present application;
- FIG. 12 is a schematic diagram of another application interface provided by an embodiment of the present application.
- FIG. 13 is a schematic diagram of another application interface provided by an embodiment of the present application.
- FIG. 14 is a schematic diagram of a message structure provided by an embodiment of the present application.
- FIG. 15 is a schematic diagram of another application interface provided by an embodiment of the present application.
- 16 is a schematic diagram of another application interface provided by an embodiment of the present application.
- FIG. 17 is a schematic diagram of a file sharing provided by an embodiment of the present application.
- FIG. 18 is a schematic flowchart of a file sharing process provided by an embodiment of the present application.
- 19 is a schematic diagram of an application scenario of file sharing provided by an embodiment of the present application.
- 20 is a schematic diagram of address information of each message in file sharing provided by the embodiment of the present application.
- 21 is a schematic diagram of determining a location range of a target device according to an embodiment of the present application.
- FIG. 22 is another schematic diagram of file sharing provided by an embodiment of the present application.
- FIG. 23 is another schematic diagram of file sharing provided by an embodiment of the present application.
- FIG. 24 is a schematic structural diagram of a wireless communication apparatus provided by an embodiment of the present application.
- FIG. 25 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
- the application scenarios of the embodiments of the present application are introduced.
- the technical solutions provided in the embodiments of the present application may be applicable to various Wi-Fi P2P connection scenarios.
- the Wi-Fi direct connection scenario is used as an example for illustrative description in this embodiment.
- FIG. 1 is a schematic diagram of a system architecture of a wireless communication method provided by an embodiment of the present application.
- the system may include multiple terminal devices (three are used as an example in the figure for illustration), and each terminal device Wi-Fi direct connection can be established between them, and data can be shared with each other through the established connection.
- the terminal device may be a mobile phone 1100, a tablet computer (pad) 1200, a TV 1300 shown in FIG. 1, or a large-screen device, a desktop computer, a notebook, or a wearable device that is not shown that supports Wi-Fi Direct connected terminal equipment.
- a standard Wi-Fi direct connection technology can be used to establish a wireless connection between terminal devices, that is, a group can be established between terminal devices.
- a group can be established between terminal devices.
- one of the terminal devices acts as a group owner.
- GO group owner.
- GC group clients
- a Wi-Fi direct connection is established between GO and each GC.
- connection establishment process between the GO and any GC may include processes such as device discovery and group formation.
- the two devices discover each other through the device discovery process, and the GO negotiation and Exchange security configuration information.
- FIG. 2 is a schematic diagram of an application interface provided by an embodiment of the present application.
- the user can click the Wi-Fi direct connection option 101 in the Wi-Fi setting interface 10 Fi Direct interface 20, activate the Wi-Fi Direct function.
- the terminal device will initiate a device discovery process to search for Wi-Fi Direct devices around, as shown in (b) in Figure 2, the available device bar 202 can display "Searching", etc.
- a message prompts the user to search for available Wi-Fi Direct devices.
- the Wi-Fi direct connection interface 20 the user can edit the name of the Wi-Fi direct connection device of the local end through the device name option 2011 in the my device bar 201, as shown in FIG. 2, the Wi-Fi of the mobile phone 1100 The name of the directly connected device is "AAA".
- the following takes two terminal devices (respectively a first terminal device and a second terminal device) as an example to describe the Wi-Fi Direct connection establishment process.
- FIG. 3 is a schematic flowchart of a device discovery process provided by an embodiment of the present application.
- the device discovery process may include: a scan phase (scan phase) and a discovery phase (find phase).
- the terminal device After the device discovery process is started, the terminal device (including the first terminal device and the second terminal device) will first enter the scanning phase. In this phase, the terminal device sends a probe request (Probe Request) on all frequency bands it supports. ) frame, the terminal device does not process the probe request frame from other devices in this stage, it can receive the probe response (Probe Response) frame, and find other terminal devices in the listening state.
- Probe Request a probe request
- Probe Response probe response
- the terminal device After the scanning phase is completed, the terminal device enters the discovery phase. During this phase, the end device switches back and forth between the listen state and the search state.
- the terminal device randomly selects a frequency band in the frequency bands 1, 6 and 11 (that is, ch1, ch6 and ch11 in the figure, called social channel) as the listening frequency band (listen channel), and monitors the detection request. frame and reply to the probe response frame accordingly.
- the monitoring frequency band of the first terminal device is 1, and the monitoring frequency band of the second terminal device is 6.
- the terminal device enters the search state after listening for a period of time.
- the terminal device will send probe request frames on frequency bands 1, 6 and 11 respectively.
- the frame sent by one party can be received by the other party.
- the second terminal device monitors the probe request frame sent by the first terminal device on ch6 on ch6, and sends the frame to the first terminal device on ch6.
- a terminal device replies with a probe response frame accordingly.
- the terminal device After the terminal device completes the interaction between the probe request frame and the probe response frame, that is, it discovers the Wi-Fi Direct device, and can store the device information of the peer device, including the media access control (MAC) address, device type (device type) ) and device name, etc.
- MAC media access control
- device type device type
- device name etc.
- the terminal device searches for a Wi-Fi Direct device, it will update the interface to display the searched Wi-Fi Direct device.
- BBB the device name of the pad 1200
- CCC the device name of the TV 1300.
- the user can select a Wi-Fi Direct device in this interface to establish a connection with it. For example, as shown in (c) and (d) in Figure 2, the user can click "BBB" to establish a connection with it.
- the terminal device can carry out a group establishment process (starting to establish a group in the corresponding figure) to prepare to construct a Group, and the process can include GO negotiation (GO negotiation, GON) Process and security provisioning process. Among them, the GON process is used to negotiate who will do the GO. After the GON process is executed, the security configuration process is performed. This process mainly uses the Wi-Fi simple configuration (WSC) protocol to negotiate security configuration information.
- WSC Wi-Fi simple configuration
- the GC applies to the GO for an internet protocol (IP) address, and the GO starts a dynamic host configuration protocol (DHCP) server to assign an IP address to the GC.
- IP internet protocol
- DHCP dynamic host configuration protocol
- the terminal device can update the connection status and inform the user that the connection is successful. For example, as shown in (d) in FIG. 2 , the connection status of the updated "BBB" is "connected". After the group is disbanded, the IP address of the GC can be released.
- GO and GC can also invite other terminal devices to join the group through the P2P invitation (P2P invitation) process; during the device discovery process, the terminal device can also activate a previously established permanent through the P2P invitation process.
- P2P invitation P2P invitation
- Group persistent group
- the user can stop the search by clicking the stop icon 203 in the Wi-Fi Direct interface 20 during the search process; as shown in (d) of FIG. 2 , the user can also start the device discovery process again by clicking the search icon 204 in the Wi-Fi Direct interface 20 after the search is over.
- the default IP address of GO is 192.168.49.1, that is, the IP address of GO in any group is 192.168.49.1, so the IP addresses of GO in different groups overlap and may interfere with each other, thus A condition that causes an unstable connection to the end device.
- FIG. 4 is a schematic diagram of an application scenario provided by an embodiment of the present application. For example, as shown in FIG. 4 , A1, B1, and C1 are a group, A2, B2, C2, and D2 are a group, and A1 and A2 are respectively The GO of the respective group, the default IP address of both is 192.168.49.1.
- FIG. 5 is a schematic diagram of another application scenario provided by the embodiment of the present application.
- A3, B3 and C3 are a group, and the three share data with each other, wherein A3 is GO; during the sharing process, A3 leaves , D3 wants to join the group. Since A3 is a GO, after it leaves, the group is disbanded, B3 and C3 cannot continue to share data, and D3 cannot obtain an IP address in time, so it cannot participate in data sharing. B3, C3 and D3 need to re-share Form a group to continue sharing data.
- the device discovery, negotiation and connection process in the Wi-Fi Direct protocol is complex, requires too many resources, and has high system overhead, which is too heavy for thin devices; All the surrounding terminal devices are in the device discovery state, so the search efficiency is low, and the operation interface corresponding to the search results is not simple enough, and if irrelevant terminal devices are searched and connected by mistake, there may be security risks.
- the embodiments of the present application provide a lightweight wireless communication method, which mainly simplifies the Wi-Fi direct connection protocol and process, cuts out the group establishment and P2P invitation process, and adopts a decentralized method for group management. , that is, peer-to-peer connection of devices at both ends, cancel the role distinction between GO and GC; and IP address management can also be decentralized, cancel the unified management and allocation of GC IP addresses, virtualize IP addresses, and locally manage this by terminal devices.
- the virtual IP address of the end and the opposite end, the data is forwarded by the data link layer to solve the problem that the IP address of the GO overlaps and the automatic connection of the terminal device is unstable; in addition, during the device discovery process, the terminal device is searched and filtered to Improve search efficiency and security, and optimize the operation interface.
- the technical solution will be described in detail below.
- FIG. 6 is a schematic flowchart of a wireless communication method provided by an embodiment of the present application. As shown in FIG. 6 , the wireless communication method provided by this embodiment may include the following steps:
- the first terminal device searches for a second terminal device that satisfies the filter condition of the local end in response to the user's connection triggering operation.
- the first terminal device sets the Wi-Fi direct connection state between it and the searched second terminal device to a connected state.
- the user can enable the Wi-Fi Direct function through a connection trigger operation, where the connection trigger operation can be a user trigger operation on the target system function.
- the connection trigger operation can be a user trigger operation on the target system function.
- the user can, as shown in (a) of FIG. 2, Click the Wi-Fi direct connection option in the Wi-Fi setting interface to enable the Wi-Fi direct connection function;
- the first terminal device can also provide shortcut options, such as shown in Figure 7, which can be found in A Wi-Fi direct connection icon is provided in the pull-down notification bar, and users can click the icon to enable the Wi-Fi direct connection function.
- the Wi-Fi direct connection function can only be turned on when the Wi-Fi function is turned on.
- the terminal device when receiving a connection trigger operation from the user, can automatically turn on the Wi-Fi function when the Wi-Fi function is not turned on.
- the Wi-Fi direct connection function is enabled; the user may also be prompted to enable the Wi-Fi direct connection function after the user authorizes the Wi-Fi function to be enabled.
- the target APP or target function when the user starts a target application (application, APP) or target function, the target APP or target function is triggered to automatically enable the Wi-Fi direct connection function. For example, after the user clicks the gallery icon to open the gallery, the gallery automatically enables the Wi-Fi direct connection function; for another example, when the user clicks the video call function to initiate a video call, the video call function automatically enables the Wi-Fi direct connection function to search for available Wi-Fi -Fi Direct device to establish connection.
- target application is not limited to the above-mentioned gallery, and may also be a file management APP or other instant messaging APP, etc., which is not particularly limited in this embodiment of the present application.
- the user may enable the Wi-Fi direct connection function by inputting a voice command, which is not particularly limited in this embodiment.
- the connection trigger operation may also be a click operation of the search icon in the Wi-Fi Direct interface after the user clicks the Wi-Fi Direct option to open the Wi-Fi Direct interface.
- the first terminal device After the first terminal device detects the user's connection triggering operation, it can respond to the operation and enter the device discovery process to filter and search to search for the second terminal device that satisfies the filter conditions of the local end, where the filter conditions can be preset by the system For example, the first terminal device automatically searches for the second terminal device that is logged into the same system account; in order to improve the flexibility of the user, the first terminal device may also provide a filter condition setting function for the user to independently set the filter condition.
- the Wi-Fi Direct interface 20 may also include a filter condition option 203 , and the user can click The filter condition option 203 opens the filter condition interface 40; as shown in (b) of FIG.
- the filtering conditions may include system account filtering, group filtering, password filtering, voice filtering, and near field communication (NFC) filtering, etc.
- the filtering condition interface 40 Switch controls 401 to 405 corresponding to each filter condition may be provided, and the user may select to enable one or more filter conditions through these switch controls, that is, the filter conditions may include one or more.
- the first terminal device can automatically search for a second terminal device that logs into the same system account as the first terminal device during the search process.
- the embodiment of the present application is not limited to filtering system accounts, and other accounts may also be filtered during specific implementation.
- the group name editing option 4021 can be set in the column where the group filtering option is located, so that the user can edit the specific conditions of the group filtering.
- the specific conditions of the group filtering can also be the group number. and other group identification information, which is not particularly limited in this embodiment of the present application.
- the first terminal device can automatically search for the second terminal device in the target group selected by the user during the search process. For example, the user sets the group name in the group filter to be a family group, and the first terminal device searches the terminal devices (ie, the second terminal device) of each member in the family group.
- a password editing option 4031 can be set in the column where the password filtering option is located, and the user can set a password through this option while enabling password filtering. If password filtering is enabled, the first terminal device can automatically search for the second terminal device with the same password set during the search process.
- the embodiment of the present application is not limited to filtering passwords, and during specific implementation, text information may also be filtered.
- the first terminal device can automatically collect the voice information input by the user after the Wi-Fi direct connection function is enabled, generate filtering information according to the collected voice information, and then automatically search for detection during the search process.
- the second terminal device carrying the same filtering information in the message.
- any user around the terminal device can send voice information, and each terminal device can collect the voice information, and generate a filter based on the voice information. Filter information corresponding to the condition.
- the user can perform a "touch" operation between the first terminal device and the second terminal device that needs to establish a connection; the first terminal device can collect to the NFC information of the second terminal device (for example, it may be an NFC identifier), and then the second terminal device corresponding to the collected NFC information can be searched during the search process.
- the first terminal device may generate filtering information according to the NFC information of the local end and the collected NFC information.
- the first terminal device can also perform processes such as device discovery and negotiation according to the standard Wi-Fi Direct protocol to establish a connection.
- the first terminal device may provide filtering functions corresponding to the above-mentioned various filtering conditions for the target application to invoke, and the target application automatically enables at least one filtering function after enabling the Wi-Fi Direct function, for example , after the user opens the gallery, the gallery activates the system account filtering function while enabling the Wi-Fi direct connection function, and searches for the second terminal device logged in the same system account; for another example, after the user enables the video call function, he can input voice to initiate a video For calls and video calls, when the Wi-Fi direct connection function is enabled, the voice filter function is activated, and the voice input by the user is used as a filter condition to filter and search; alternatively, the target APP or target function can also provide the activation option of the filter function The user can activate the corresponding filtering function by clicking the activation option.
- the following takes the target function as the video calling function as an example to illustrate the process of enabling the Wi-Fi direct connection function and the filtering function of the user.
- FIG. 9 is a schematic diagram of some application interfaces provided by the embodiments of the present application.
- a video call icon 3012 can be provided in the pull-down notification bar, and the user can click the icon to enable the video call function.
- the Wi-Fi direct connection function can be automatically turned on as described above, or as shown in (b) in Figure 9, the user can be prompted to authorize the Wi-Fi direct connection function and the Wi-Fi function to be turned on. .
- the video call function can provide various filters corresponding to the filter function Conditional startup options: system account filtering option 001, group filtering option 002, password filtering option 003, voice filtering option 004, and NFC filtering option 005, wherein, for the system account filtering option 001, after the user clicks, the first terminal device is It can search for available Wi-Fi direct devices to establish a connection; for group filter option 002 and password filter option 003, after the user selects, the video call function can provide an input interface for users to enter group information or password information; for voice filter option 004 and NFC filter option 005, after the user selects, the first terminal device may prompt the user to input voice information or perform a "tap" operation.
- the user can click the password filtering option 003, and then enter a password in the pop-up input interface, where the number of digits of the password can be as shown in the figure
- the default is 4 bits, and the number of bits is not limited.
- video call function can also be displayed to the user in the form of an APP, and the specific implementation form is not particularly limited in this embodiment.
- the search process of the first terminal device and the second terminal device will be described in detail below.
- the first terminal device may carry the filtering information corresponding to the filtering conditions in the detection message, and the detection message may include a detection request message and a detection request response message, wherein the detection request message may specifically be a detection request frame, and the detection request response
- the message may specifically be a probe response frame, that is, the first terminal device may carry filter information in the probe request frame and the probe response frame;
- the filter information may be the system account number, group ID, password, voice information or NFC information in the above filter conditions
- the filtering information may also be character information generated according to the above-mentioned information such as system account number, group identification, password, voice information or NFC information.
- FIG. 10 is a schematic flowchart of filtering and searching provided by this embodiment of the application. The method may include the following steps:
- the first terminal device broadcasts a probe request frame carrying the first filtering information.
- the filter condition may also be set in the second terminal device, and the specific setting process is similar to the filter condition setting process of the first terminal device, which will not be repeated here.
- the filtering information corresponding to the filtering condition in the first terminal device is referred to as the first filtering information
- the filtering information corresponding to the filtering condition in the second terminal device is referred to as the second filtering information.
- the first terminal device may broadcast the probe request frame on all channels or social channels as described above.
- the first terminal device may carry the first filter information in the probe request frame, so that the second terminal device can reply with a response message when the filter conditions are satisfied, so as to Inform the first terminal device that it meets the filtering conditions.
- FIG. 11 is a schematic diagram of a frame structure of a probe request frame and a probe response frame provided by an embodiment of the application.
- the probe request frame may include a MAC header, a frame body, and a frame check.
- the sequence (frame check sequence, FCS) field in which the MAC frame header may include some frame control information and address information, etc.; the frame body represents the data field, which is the payload; FCS is used to ensure the integrity of the frame data.
- the first filtering information may be carried in the frame body.
- a characteristic parameter (character code) field may be added to the frame body, and the first filtering information may be indicated by this field, wherein the characteristic parameter field may be located in any arbitrary position of the frame body. Location.
- the second terminal device After receiving the probe request frame, the second terminal device determines whether the first filter information carried in the probe request frame matches the second filter information, and if so, it is determined that the first terminal device satisfies the local filter condition.
- the second terminal device may be similar to the first terminal device, and responds to the user's connection triggering operation to enable the Wi-Fi direct connection function.
- the specific process is similar to that of the first terminal device to enable the Wi-Fi direct connection function, which will not be repeated here. .
- the second terminal device may monitor the probe request frame on the monitor frequency band as described above. If the second terminal device monitors the detection request frame, it can extract the first filter information in it, compare it with the filter information corresponding to the filter conditions of the local end (ie the second filter information), and determine whether the first terminal device complies with the local end's filter information. filter conditions. If the first filtering information matches the second filtering information, it means that the first terminal device complies with the filtering conditions of the second terminal device; if the first filtering information does not match the second filtering information, the second terminal device can discard the detection request frame, refusing to connect with the first terminal device.
- the second terminal device returns a probe response frame carrying the second filtering information to the first terminal device.
- the second terminal device may reply to the probe response frame accordingly to inform the first terminal device that the two filter conditions are consistent, that is, the first terminal device and the The second terminal devices meet the filtering conditions of the peer end.
- confirmation information may also be carried in the probe response frame to inform the first terminal device that the filtering conditions of the two are consistent.
- the second terminal device may also carry the second filtering information in the frame, so as to inform the first terminal device of the filtering conditions of the local end.
- the probe response frame may include MAC frame header, frame body and FCS fields. Similar to the first filter information, the second filter information may be carried in the frame body of the probe response frame. Similarly, the probe response frame may contain the second filter information. A feature parameter field is added to the frame body of the frame, through which the second filtering information is indicated, wherein the feature parameter field can be located at any position in the frame body.
- the probe request frame and the probe response frame may also carry device information such as the device identification, device name, device type, and MAC address of the local device for identification by the peer device.
- the first terminal device After receiving the probe response frame, the first terminal device determines whether the second filter information carried in the probe response frame matches the first filter information, and if so, determines that the second terminal device satisfies the local filter condition.
- the first terminal device may determine that the second terminal device satisfies the filtering conditions of the local end.
- the probe response frame can carry the second filter information, and correspondingly, the first terminal device can extract the second filter information, the filter information corresponding to the filter conditions of the local end (that is, the first terminal device). filter information) to compare, and based on the comparison result, determine whether the second terminal device complies with the filtering conditions of the local end.
- the first terminal device may discard the probe response frame and refuse to connect with the second terminal device.
- the process of the first terminal device judging whether the first filter information matches the second filter information is similar to the process of judging the filter information by the second terminal device, and details are not described herein again.
- the two communicating parties are in the same local area network and can communicate with each other directly through the physical layer and the data link layer. Therefore, in this embodiment, when data transmission is performed between terminal devices, the data packets may not be included in the data packets. Carrying the IP address, it communicates through the physical layer and the data link layer. Correspondingly, the IP address allocation process can be cut out, and then the group establishment process and the P2P invitation process can be cut out.
- the first terminal device searches for a second terminal device that satisfies the filtering conditions, it can indicate that the connection is established successfully, and the Wi-Fi Direct connection status of the searched second terminal device can be displayed as a connected state. Similarly, The Wi-Fi Direct connection status of the first terminal device may also be displayed as a connected state on the searched second terminal device.
- the second terminal device searched by the first terminal device may include one or more.
- the first terminal device and the second terminal device are only for the purpose of distinguishing the description.
- it can be used as the first terminal device or as the second terminal device, that is, the first terminal device and the second terminal device. Both terminal devices can have the functions of each other.
- the first terminal device it can also receive probe request frames broadcast by other terminal devices (referred to as third terminal devices). If the information matches, it can be determined that the third terminal device satisfies the filtering conditions of the local end, and can return a probe response frame carrying the first filtering information to the third terminal device; correspondingly, the third terminal device can judge its own filtering information.
- any terminal device can use the search process performed by the first terminal device shown in FIG. 10 and/or the search process performed by the second terminal device to establish a Wi-Fi direct connection with other terminal devices.
- the user can also click the file management icon 5 of the three terminal devices to open the file management APP, and the file management APP automatically starts the Wi-Fi direct connection function; aaa and bbb can be based on the same
- the system accounts (filtered information) of the 2s can search each other to establish a connection, and ccc cannot establish a connection with aaa and bbb.
- the user can view the connected Wi-Fi Direct devices in the other device bar 501 of the file management interface 50 corresponding to the file management icon 5, wherein the user can click the file management interface
- the browse icon 502 of 50 opens the browse interface to browse files on the local computer and other devices.
- the other device bar 501 can be located in the browse interface; the file management interface 50 can also provide other functional controls such as a search box.
- the first terminal device and the second terminal device can locally generate virtual IP addresses for both parties, where the virtual IP address is only valid locally, and when data transmission is performed, the first message sent to the outside The IP address may not be carried in the message.
- the second terminal device may add the virtual IP address to the data packet transmitted to the network layer for identification by the network layer, wherein the destination IP address is the second message.
- the virtual IP address of the terminal device, and the source virtual IP address is the virtual IP address of the first terminal device; similarly, when the second terminal device returns the second message to the first terminal device, the second message may not carry the IP address, and the first After receiving the second message returned by the second terminal device, a terminal device adds a virtual IP address for identification by the network layer, wherein the destination IP address is the virtual IP address of the first terminal device, and the source virtual IP address is the first virtual IP address. 2. The virtual IP address of the terminal device.
- FIG. 14 is a schematic diagram of a message structure provided by an embodiment of the present application.
- the data packet header of the network layer includes an IP address
- the data of the data link layer The packet header contains the MAC address
- the Ethernet payload part contains the IP address and the IP payload;
- the above-mentioned unicast message contains the first terminal device in the data packet corresponding to the network layer and the virtual IP address of the second terminal device
- the header of the data packet corresponding to the data link layer contains the MAC address
- the Ethernet payload part does not contain IP address information.
- the terminal device can add a multicast address to the IP header of the multicast message when sending, where the destination IP address can be the multicast IP address, and the source IP address can be the agreed virtual IP address; optional Yes, multicast messages can also be similar to unicast messages, and do not carry an IP address when sent out.
- the setting method of the broadcast message is similar to that of the multicast message, and will not be repeated here.
- the terminal device can generate a virtual IP address according to the MAC address or other device information. For example, the terminal device can generate its own virtual IP address according to its own MAC address after the Wi-Fi Direct function is activated. Afterwards, the virtual IP address of the peer device is generated according to the MAC address of the peer device.
- A1, B1 and C1 can set the same filter condition (for example, enter the same password), so that Wi-Fi can be established between each of the three Fi direct connection to share resources with each other; similarly, A2, B2, C2 and D2 can also set the same filter conditions to establish Wi-Fi direct connection with each other for resource sharing.
- Each terminal device communicates with each other through their own unique MAC addresses, and the virtual IP address is managed locally, thus reducing the phenomenon of connection errors and effectively improving the connection stability between the terminal devices.
- A3, B3 and C3 can set the same filter condition (for example, log in to the same system account), and establish a connection between them; if A3 leaves during the sharing process, D3 wants to join, on the one hand , due to the peer-to-peer connection between A3, B3 and C3, the departure of A3 does not affect the connection between B3 and C3; on the other hand, D3 can use the same filter conditions to search for B3 and C3, and establish a connection with B3 and C3, Therefore, data can continue to be shared among B3, C3 and D3, which further improves the connection stability between terminal devices.
- the same filter condition for example, log in to the same system account
- connection process of Wi-Fi direct connection is simplified, and the group establishment and P2P invitation process are cut out, thus reducing the complexity of Wi-Fi direct connection, thereby reducing resource requirements and expanding Scope of application;
- device discovery terminal devices are searched and filtered through filter conditions, which can filter out irrelevant terminal devices, improve search efficiency and security, and only display the searched ones that meet the filter conditions on the interface. terminal equipment, thus also optimizing the operator interface.
- the first terminal device and the second terminal device After the first terminal device and the second terminal device establish a Wi-Fi direct connection, they can share files with each other, make video calls, edit across devices, wirelessly cast a screen, or remotely control each other through the Wi-Fi direct connection.
- the following is an exemplary description by taking video calls and file sharing as examples.
- each user can use the video call process shown in Figure 9 to establish a video call connection, and continue to take password filtering as an example, as shown in (a) in Figure 15, after the user enters the password "1122" and clicks After the confirmation option 0031 is confirmed, the first terminal device starts to search for available Wi-Fi Direct devices to establish a connection; it is assumed that the user of the second terminal device inputs the same password "1122" in the same way, as shown in Figure 15 ( As shown in b), the first terminal device can establish a connection with the second terminal device, and conduct a video call through the connection, that is, transmit the collected video stream based on the established Wi-Fi direct connection.
- the video call interface can provide the option of hanging up and switching to voice as shown in the figure; or when multiple second terminal devices are connected, the main window can display the data collected by one of the second terminal devices. and display the video images of other second terminal devices in the sub-window, so that the user can switch the video images displayed in the main window, wherein the size of the sub-window is smaller than that of the main window, and it can be suspended on the main window show.
- the terminal equipment ie the first terminal equipment held by each user can display another Video images collected by terminal devices (ie, second terminal devices) held by two users; among the video images collected by the two second terminal devices, one is displayed in the main window, and the other is displayed in the sub-window. Assuming that the first terminal device shown in FIG.
- the first terminal device first establishes a video call connection with the terminal device held by user 2, and then establishes a video call connection with the terminal device held by user 3, Then as shown in (b) in Figure 15, the first terminal device can display the video image collected by the terminal device held by user 2 in the main window, and the video image collected by the terminal device held by user 3 in the sub-window; Click the sub-window to switch the video image displayed in the main window to the video image collected by the terminal device held by user 3 .
- the video image (not shown) collected by the first terminal device can also be displayed on the first terminal device in another sub-window, and the user can also click on the sub-window to switch the video image displayed in the main window to the first terminal device.
- the video image collected by the terminal device; the first terminal device can also display the video image collected by the terminal device that established the connection last by default in the main window, that is, the first terminal device can also display the video image collected by the terminal device held by user 3 in the main window by default. video image.
- user 1 and user 3 can establish a Wi-Fi direct connection with the terminal devices of user 1 and user 3 respectively.
- user 1 and user 3 can The communication is performed through the terminal device of the user 2, that is, the terminal device of the user 2 can be used as an intermediate device for communication, so as to realize long-distance communication.
- the above video call method does not rely on base station signals, and can make video calls anytime and anywhere. Therefore, in some areas with weak or no mobile communication signals, the above methods can be used to make video calls to better meet user needs;
- the video call method does not occupy mobile data traffic, so it can also save traffic resources.
- the user can select the terminal device bbb that he wants to access in the other device column 501; as shown in FIG. 16
- the accessible files may include the latest files, pictures, videos, Audio, document and other types of files
- the files under each type of file can include multiple folders, for example, as shown in the figure, video files include all video folders, camera folders, screen recording folders, download folders, WeChat folder and QQ folder, etc.
- FIG. 17 is a schematic diagram of a file sharing provided by an embodiment of the present application.
- the user can select the target image S to be shared on the first terminal device, and then click the sharing option 6 to open the sharing Interface 60; as shown in (b) of FIG. 17, the sharing interface 60 may include other sharing icons such as WeChat icon 601, Wi-Fi Direct icon 602, Bluetooth icon 603, and QQ icon 604, and the user can select Wi-Fi Direct Connect icon 602, open the Wi-Fi Direct device selection interface 70; as shown in (c) of FIG.
- the user can select a target from the connected second terminal device device bbb to share the target image S to the selected target device bbb; as shown in (d) of FIG. 17 , after the user selects the target device bbb, the target device bbb can pop up a dialog box 80 asking the user whether to accept it.
- the accept option 801 in the dialog box 80 may be clicked to accept the target picture S, or the reject option 802 may be clicked to reject the reception of the target picture S.
- the user can also share files with the first terminal device through the second terminal device.
- the shared files are not limited to pictures, but can also be other types of files such as video, audio or documents.
- An exemplary description is given as an example; in addition, when selecting a target file to be shared, it may be a click operation, or other selection operations such as a long press operation.
- the embodiment of the present application provides another file sharing method, which mainly automatically determines the target device through an alignment operation, so that the user can quickly share files to the aligned terminal device through a simple sharing operation.
- the two parties can share files with each other.
- the first terminal device shares files with the connected second terminal device as an example for description.
- the first terminal device can detect the user's touch operation on the target file, and if the operation is detected, it can respond to the operation and share the target file with the target device in the connected second terminal device, wherein, The pointing orientation of the target device is opposite to the pointing orientation of the first terminal device.
- FIG. 18 is a schematic diagram of a file sharing process provided by this embodiment of the present application. As shown in FIG. 18 , the process may include the following steps:
- the first terminal device In response to the user's sharing operation on the selected target file, the first terminal device broadcasts a first notification message corresponding to the target file.
- the sharing operation may be a touch operation or a gesture operation, wherein the touch operation may be a screen sliding operation, such as an upward sliding operation on a target area of the screen (such as the top of the screen), or other predefined operations such as a combo operation
- the gesture operation may be a sliding gesture or other predefined gestures, which are not particularly limited in this embodiment of the present application.
- the target file may include one or more, and the user can select the target file by clicking and/or long-pressing.
- FIG. 19 is a schematic diagram of an application scenario of file sharing provided by an embodiment of the application.
- the scenario includes a mobile phone A2100, a mobile phone B2200, a large-screen device 2300, and a pad2400, wherein the mobile phone A2100 represents the first terminal device, which Wi-Fi direct connection is established with mobile phone B2200, large-screen device 2300 and pad2400 (second terminal device) respectively.
- the user can select a file on the mobile phone, point the mobile phone to the pad2400, and then share the file to the pad2400 through the sharing operation.
- the user can also point the mobile phone A2100 to the large-screen device 2300 and share files to the large-screen device 2300; and the mobile phone A2100, mobile phone B2200, large-screen device 2300 and pad2400 can all discover each other.
- the other party establishes a Wi-Fi direct connection, and the user can also share files with other connected terminal devices through the pad2400 or the mobile phone B2200.
- Figure 19 is just an example of sharing files with the pad2400 through the mobile phone A2100. The interaction process between terminal devices is described below by taking the scenario shown in FIG. 19 as an example.
- the first terminal device may broadcast a notification message (referred to as a first notification message) to notify each second terminal device.
- a notification message referred to as a first notification message
- the first notification message may carry a file identifier of the target file, such as a file name (the file name is also used as an example in the following description) to inform each second terminal device that the first terminal device will share the target file.
- a file identifier of the target file such as a file name (the file name is also used as an example in the following description) to inform each second terminal device that the first terminal device will share the target file.
- the first notification message may also carry the pointing direction of the first terminal device to identify the first notification message. For example, if the user has successively performed multiple sharing operations on the same target file, each sharing operation is aimed at a different first notification message.
- the first terminal device broadcasts a plurality of first notification messages correspondingly, and the first notification messages can be distinguished by the pointing direction of the first terminal device carried in the first notification message.
- the first notification message may be a broadcast message.
- the first notification message may also be a multicast message.
- 20 is a schematic diagram of address information of each message in file sharing provided by the embodiment of the present application.
- the destination MAC address in the first notification message may be a multicast MAC address
- the source MAC address is the MAC address of mobile phone A.
- the second terminal device returns a response message corresponding to the first notification message.
- each second terminal device may return a response message to the first terminal device.
- the response message may carry the pointing azimuth of the corresponding second terminal device, so that the first terminal device can determine the pointing relationship with the second terminal device.
- the pointing azimuth can be measured by the azimuth sensor.
- the response message may also carry a file name, so that the first terminal device can determine which first notification message the second terminal device replies to. For example, if the user has successively performed multiple sharing operations on the first terminal device to share different target files, the first terminal device correspondingly broadcasts multiple first notification messages, and each second terminal device receives each first notification message after receiving the respective first notification messages. , each first notification message may be responded to, and the file name may be carried in the response message to inform the first terminal device which first notification message it responded to.
- the response message may also carry the pointing direction of the first terminal device to further identify the response message.
- the user has successively performed multiple sharing operations on the same target file, and each sharing operation is aimed at a different target file.
- the second terminal device the first terminal device broadcasts a plurality of first notification messages correspondingly; after each second terminal device receives each first notification message, it can respond to each first notification message, and carry the message in the response message.
- the above file name and the pointing direction of the first terminal device are used to inform the first terminal device which first notification message it responds to.
- the target device may be located within a preset range (referred to as the first preset range) around the first terminal device, and the response message may also carry the device location of the corresponding second terminal device, so that The first terminal device determines the target device based on the position, wherein the preset range may be a spherical area centered on the first terminal device, that is, the distance between the target device and the first terminal device does not exceed a preset distance; the The preset range may also be a columnar area centered on the first terminal device, that is, the position of the target device relative to the first terminal device may be limited in the horizontal and vertical directions respectively.
- the specific size of the preset range may be set as required, which is not particularly limited in this embodiment; the device location may be obtained through a global positioning system (global positioning system, GPS) module and/or a map application.
- GPS global positioning system
- the destination MAC address in the returned reply message is the MAC address of the mobile phone A, and the source MAC address is the MAC address of the mobile phone B;
- the large-screen device 2300 receives the first notification
- the destination MAC address in the returned reply message is the MAC address of mobile phone A, and the source MAC address is the MAC address of the large-screen device;
- the pad2400 receives the first notification message, the destination MAC address in the returned reply message is that of mobile phone A.
- the source MAC address is the MAC address of the pad.
- the first terminal device After receiving the response message returned by each second terminal device, the first terminal device determines from the second terminal device according to the pointing bearing of the first terminal device corresponding to the sharing operation and the pointing bearing of the second terminal device in the response message target device.
- the first terminal device may, according to the pointing orientation of the first terminal device when receiving the user's sharing operation on the target file and the pointing orientation of the second terminal device in the response message, The pointing relationship between the first terminal device and each second terminal device is determined, and the second terminal device opposite to the pointing azimuth of the first terminal device is used as the target device.
- the pointing direction of the first terminal device may be recorded when the user's sharing operation on the target file is received, and if the response message carries the pointing direction of the first terminal device, the direction of the first terminal device in the response message may be directly
- the pointing azimuth and the pointing azimuth of the second terminal device are used to determine the pointing relationship between the two.
- the response message carries the device location of the corresponding second terminal device, when the first terminal device determines the target device, in addition to the above-mentioned determination of the pointing relationship between the first terminal device and each second terminal device, it can also According to the device position of the first terminal device and the device position of the second terminal device, the positional relationship between the first terminal device and each second terminal device is determined; the device position of the second terminal device is located at the device with the first terminal device When the position is within a preset range of the center, and the pointing orientation is opposite to the pointing orientation of the first terminal device, the second terminal device is determined as the target device.
- the positional relationship between the first terminal device and the second terminal device may be corrected in combination with ranging technologies such as round trip time (round trip time, RTT) ranging.
- the device positions of the first terminal device and the second terminal device may be used for determination.
- 21 is a schematic diagram of determining the location range of a target device provided by an embodiment of the present application. As shown in FIG. 21 , point O is the device location of the first terminal device.
- the second terminal device is located on the pointing line of the first terminal device, and If the pointing azimuth is consistent with the reverse azimuth of the pointing azimuth of the first terminal equipment, it can be considered that the pointing azimuth of the second terminal equipment is opposite to the pointing azimuth of the first terminal equipment, wherein the pointing line of the first terminal equipment is the same as that of the first terminal equipment.
- the position of the device is the starting point and extends along the pointing azimuth of the first terminal device.
- a certain pointing error may be allowed.
- the second terminal device is located within a preset range (referred to as the second preset range) with the pointing line of the first terminal device as the center line, and the pointing azimuth is opposite to the pointing direction of the first terminal device If the azimuth included angle between the azimuths is within the preset angle range, it can be considered that the pointing azimuth of the second terminal device is opposite to the pointing azimuth of the first terminal device.
- the second preset range may be a cylindrical area or a square cylindrical area, that is, the position of the target device relative to the pointing line of the first terminal device may be limited in the horizontal and vertical directions.
- the sizes of the second preset range and the preset angle range can be set as required, which are not particularly limited in this embodiment. It should be noted that, FIG. 21 takes the horizontal direction as an example to illustrate the position range of the target device, and the position range in the vertical direction is not shown.
- the device positions of each terminal device are on the same horizontal plane, the preset angle range is 15°, and the true north position is 0°.
- the pointing orientation of the mobile phone A2100 is 30° north by east (ie 30°)
- the pointing orientation of the mobile phone B2200 is 35° south west (ie 215°)
- the pointing orientation of the large-screen device 2300 is due south position (ie 180°)
- the pointing orientation of pad2400 is 40° south-west (ie 220°)
- the large-screen device 2300 and pad2400 are located in the first preset range around the mobile phone A2100
- the mobile phone B2200 is located in the first preset range around the mobile phone A2100 Outside the preset range
- the mobile phone B2200 and pad2400 are located within the second preset range with the pointing line of the mobile phone A2100 as the center line
- the large-screen device 2300 is located outside the second preset range
- the pad2400 is located in the first preset range around the mobile phone A2100; the reverse direction of the pointing azimuth of the mobile phone A2100 is 30° west by south (ie 210°), and the pointing azimuth (220°) of the pad2400 is the same as the mobile phone A2100.
- the azimuth angle (10°) between the reverse azimuth (210°) of the pointing azimuth is less than the preset angle range (15°), and the pad2400 is located in the second preset range with the pointing line of the mobile phone A2100 as the center line , therefore, the mobile phone A2100 can determine the pad2400 as the target device and share the picture A with it.
- the azimuth angle (5°) between the pointing azimuth (215°) of the mobile phone B2200 and the reverse azimuth (210°) of the mobile phone A2100 is smaller than the preset angle range (15°), and the mobile phone B2200 is located at the same position as the mobile phone A2100.
- the pointing line is within the second preset range of the center line, but the cell phone B2200 is outside the first preset range around the cell phone A2100, so the cell phone B2200 is not determined as the target device of the cell phone A2100.
- the large-screen device 2300 is located within the first preset range around the mobile phone A2100, but the large-screen device 2300 is located outside the second preset range with the pointing line of the mobile phone A2100 as the center line, and the pointing azimuth of the large-screen device 2300 (180°) ) and the reverse azimuth (210°) of the pointing azimuth of the mobile phone A2100 (30°) is greater than the preset angle range (15°), therefore, the large-screen device 2300 is not determined as the target device of the mobile phone A2100 .
- the above target device determination process can also be performed in the second terminal device, that is, when the first terminal device sends the first notification message to the second terminal device, the device location and Pointing direction, after receiving the second terminal device, it can judge whether the local end is the target device, and then return the judgment result to the first terminal device.
- the first terminal device may prompt the user that there is no target device, where the prompting manner may be a text prompt or a voice prompt.
- the first terminal device determines the target device, it sends a second notification message corresponding to the target file to the target device.
- the first terminal device determines the target device, it can share the target file with the target device.
- the target device may first check whether the target file is stored locally, and then request resources from the first terminal device if the target file is not stored.
- the first terminal device may first send a notification message (referred to as a second notification message) to the target device, and the second notification message may carry the file name of the target file to inform the target The target file to be shared by the device, so as to facilitate subsequent viewing operations by the target device.
- a notification message referred to as a second notification message
- the target device If the target device receives the second notification message, it checks whether the target file is stored.
- the target device After receiving the second notification message, the target device can check whether the target file is stored locally according to the file name carried in the second notification message.
- the target device may load and display the target file for the user to view; or may also display prompt information to prompt the user that the target file to be shared by the first terminal device is locally stored.
- the target device determines that no target file is stored, it sends a resource request message corresponding to the target file to the first terminal device.
- the target device may send a resource request message to the first terminal device to request the first terminal device to transmit the target file.
- the resource request message may carry the file name of the target file, so that the first terminal device can identify the target file to be sent.
- the target device can ask the user whether to receive the target file in a pop-up dialog box as shown in (d) in Figure 17.
- the target device can also not pop up the above-mentioned dialog box. If the user does not want to receive the target file, The second terminal device may not be aligned with the first terminal device, so that the solution can also be directly applied to other terminal devices that are inconvenient for users to operate, such as large-screen devices. Unified file sharing scheme.
- the first terminal device After receiving the resource request message, the first terminal device sends the target file to the target device.
- the target device receives the target file.
- FIG. 22 is another schematic diagram of file sharing provided by an embodiment of the present application.
- the mobile phone A2100 shares a picture A (target file) with the pad2400 (target device) as an example for illustration.
- the pad2400 receives the picture A After that, you can load and display picture A for the user to view; of course, pad2400 can also display a prompt message to remind the user that the target file has been received.
- FIG. 23 is another schematic diagram of file sharing provided by an embodiment of the present application.
- the mobile phone A2100 shares multiple pictures (target files) with the pad2400 (target device) as an example for illustration.
- the pad2400 target device
- FIG. 23 shows in (a) in Figure 23, after the user opens the picture selection interface by long-pressing, click to select picture A, picture B and picture C, and then share these pictures to the aligned pad2400 by sliding up on the top of the screen ;
- the pad receives picture A, picture B and picture C, it can load and display a picture finally received, such as picture C, for the user to view;
- pad2400 also A prompt message can be displayed to inform the user that the target file has been received.
- the above shows the process of the first terminal device sharing the target file (called the first target file) with the second terminal device.
- the second terminal device can also share the file with the first terminal device (called the second target file).
- target file the specific sharing process is similar to the process of the first terminal device sharing the first target file with the second terminal device, and details are not repeated here.
- the first terminal device and the second terminal device before they can also establish a Wi-Fi direct connection by using an azimuth filtering method, that is, the filtering information carried in the detection message can include the terminal device.
- the first terminal device can use the above method of determining the target device to search for the second terminal device that satisfies the local filter conditions, and the second terminal device that establishes the connection is the target After the connection is established, the device may directly share the target file with the second terminal device that establishes the connection without performing the above steps of determining the target device (ie, steps S210-S230).
- the above file sharing method can also be applied to other wireless communication scenarios, that is, the wireless communication connection established between the first terminal device and the second terminal device is not limited to Wi-Fi direct connection, but also Bluetooth or other short-range communication. connect.
- the target device is automatically determined through the alignment operation, so that the user can quickly share the file to the aligned terminal device through a simple sharing operation, thereby effectively improving the convenience for the user to share the file.
- an embodiment of the present application provides a wireless communication device, which corresponds to the foregoing method embodiment.
- this device embodiment does not refer to the foregoing method embodiment.
- the detailed contents are described one by one, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiments.
- FIG. 24 is a schematic structural diagram of a wireless communication apparatus provided by an embodiment of the present application, and the apparatus may be applied to the terminal equipment involved in the foregoing embodiment.
- the apparatus provided in this embodiment may include: an input module 201 , a communication module 202 , a processing module 203 , and a display module 204 .
- the input module 201 is used to receive user input on the display interface of the terminal device, such as touch input, voice input, gesture input, etc.
- the input module 201 is used to support the terminal device to perform steps S110 and S210 in the above method embodiments Processes related to receiving user actions and/or other processes for the techniques described herein.
- the input module can be a touch screen or other hardware or a combination of hardware and software.
- the communication module 202 is configured to support the terminal device to perform operations related to message transmission in steps S110, S111-S114, and S210-S280 in the above method embodiments and/or other processes for the techniques described herein.
- the processing module 203 is configured to support the terminal device to perform operations related to data processing in steps S110, S120, S111-S114, and S210-S280 in the above method embodiments and/or other processes for the techniques described herein.
- the display module 204 is configured to support the terminal device to perform operations related to interface display in steps S120, S210, and S280 in the above method embodiments and/or other processes for the techniques described herein.
- the apparatus provided in this embodiment may execute the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
- FIG. 25 is a schematic structural diagram of the terminal device provided by an embodiment of the present application.
- the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
- SIM Subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
- the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the terminal device 100 .
- the terminal device 100 may include more or less components than those shown in the drawings, or combine some components, or separate some components, or arrange different components.
- the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (sraphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
- application processor application processor, AP
- modem processor graphics processor
- GPU graphics processor
- image signal processor image signal processor
- ISP image signal processor
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- the controller may be the nerve center and command center of the terminal device 100 .
- the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
- the processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transceiver
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may contain multiple sets of I2C buses.
- the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
- the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the terminal device 100 .
- the I2S interface can be used for audio communication.
- the processor 110 may contain multiple sets of I2S buses.
- the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
- the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
- the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
- the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
- the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus used for asynchronous communication.
- the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
- the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
- the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
- the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
- MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
- the processor 110 communicates with the camera 193 through the CSI interface, so as to realize the shooting function of the terminal device 100 .
- the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the terminal device 100 .
- the GPIO interface can be configured by software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
- the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
- the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. This interface can also be used to connect other terminal devices, such as AR devices.
- the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the terminal device 100 .
- the terminal device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
- the charging management module 140 is used to receive charging input from the charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
- the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the terminal device through the power management module 141 .
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
- the power management module 141 may also be provided in the processor 110 .
- the power management module 141 and the charging management module 140 may also be provided in the same device.
- the wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in terminal device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the terminal device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
- the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
- the modem processor may be a stand-alone device.
- the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide applications on the terminal device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellites System
- frequency modulation frequency modulation, FM
- NFC near field communication
- infrared technology infrared, IR
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves
- the antenna 1 of the terminal device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Synchronous Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN , NFC, FM, and/or IR technology, etc.
- the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GNSS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi satellite system) -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
- global positioning system global positioning system, GPS
- global navigation satellite system global navigation satellite system, GNSS
- Beidou navigation satellite system beidou navigation satellite system, BDS
- quasi-zenith satellite system quadsi satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the terminal device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
- Display screen 194 is used to display images, videos, and the like.
- Display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
- LED organic light-emitting diode
- AMOLED organic light-emitting diode
- FLED flexible light-emitting diode
- Mini LED Micro LED
- quantum dot light emitting diode quantum dot light emitting diodes, QLED
- the terminal device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
- the terminal device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
- the ISP is used to process the data fed back by the camera 193 .
- the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be provided in the camera 193 .
- Camera 193 is used to capture still images or video.
- the object is projected through the lens to generate an optical image onto the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
- the terminal device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
- a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, and the like.
- Video codecs are used to compress or decompress digital video.
- the terminal device 100 may support one or more video codecs.
- the terminal device 100 can play or record videos in various encoding formats, for example, moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
- MPEG moving picture experts group
- the NPU is a neural-network (NN) computing processor.
- NN neural-network
- Applications such as intelligent cognition of the terminal device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100 .
- the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
- Internal memory 121 may be used to store computer executable program code, which includes instructions.
- the processor 110 executes various functional applications and data processing of the terminal device 100 by executing the instructions stored in the internal memory 121 .
- the internal memory 121 may include a storage program area and a storage data area.
- the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
- the storage data area may store data (such as audio data, phone book, etc.) created during the use of the terminal device 100 and the like.
- the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
- the terminal device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
- the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
- Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
- the terminal device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
- the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
- the terminal device 100 answers a call or a voice message, the voice can be answered by placing the receiver 170B close to the human ear.
- the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
- the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
- the terminal device 100 may be provided with at least one microphone 170C.
- the terminal device 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals.
- the terminal device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
- the earphone jack 170D is used to connect wired earphones.
- the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association of the USA
- the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
- the pressure sensor 180A may be provided on the display screen 194 .
- the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
- the terminal device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
- the terminal device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
- touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
- the gyro sensor 180B may be used to determine the motion attitude of the terminal device 100 .
- the angular velocity of the end device 100 about three axes ie, the x, y and z axes
- the gyro sensor 180B can be used for image stabilization.
- the gyro sensor 180B detects the shaking angle of the terminal device 100, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to offset the shaking of the terminal device 100 through reverse motion to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
- the air pressure sensor 180C is used to measure air pressure.
- the terminal device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
- the magnetic sensor 180D includes a Hall sensor.
- the terminal device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
- the terminal device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes).
- the magnitude and direction of gravity can be detected when the terminal device 100 is stationary. It can also be used to identify the posture of terminal devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
- the terminal device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
- Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
- the light emitting diodes may be infrared light emitting diodes.
- the terminal device 100 emits infrared light to the outside through the light emitting diode.
- the terminal device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100 . When insufficient reflected light is detected, the terminal device 100 may determine that there is no object near the terminal device 100 .
- the terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
- Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
- the ambient light sensor 180L is used to sense ambient light brightness.
- the terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket, so as to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints.
- the terminal device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.
- the temperature sensor 180J is used to detect the temperature.
- the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
- the terminal device 100 when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid abnormal shutdown of the terminal device 100 caused by the low temperature.
- the terminal device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- Touch sensor 180K also called “touch panel”.
- the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to touch operations may be provided through display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the terminal device 100 , which is different from the position where the display screen 194 is located.
- the bone conduction sensor 180M can acquire vibration signals.
- the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
- the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
- the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
- the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
- the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
- the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
- the terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100 .
- Motor 191 can generate vibrating cues.
- the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
- touch operations acting on different applications can correspond to different vibration feedback effects.
- the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
- Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
- the SIM card interface 195 is used to connect a SIM card.
- the SIM card can be contacted and separated from the terminal device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
- the terminal device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
- the SIM card interface 195 can also be compatible with different types of SIM cards.
- the SIM card interface 195 is also compatible with external memory cards.
- the terminal device 100 interacts with the network through the SIM card to realize functions such as calls and data communication.
- the terminal device 100 adopts an eSIM, that is, an embedded SIM card.
- the eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100 .
- the terminal device provided in this embodiment may execute the foregoing method embodiments, and the implementation principle and technical effect thereof are similar, and details are not described herein again.
- Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the foregoing method embodiment is implemented.
- the embodiments of the present application further provide a computer program product, when the computer program product runs on a terminal device, the terminal device executes the method described in the above method embodiments.
- An embodiment of the present application further provides a chip system, including a processor, where the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the method described in the above method embodiments.
- the chip system may be a single chip or a chip module composed of multiple chips.
- the computer program product includes one or more computer instructions.
- the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
- the computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions can be sent from one website site, computer, server or data center to another website site, computer, server or data center for transmission.
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
- the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, or a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)), and the like.
- the process can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium.
- the program When the program is executed , which may include the processes of the foregoing method embodiments.
- the aforementioned storage medium may include: ROM or random storage memory RAM, magnetic disks or optical disks and other mediums that can store program codes.
- the disclosed apparatus/device and method may be implemented in other manners.
- the apparatus/equipment embodiments described above are only illustrative.
- the division of the modules or units is only a logical function division.
- the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
- plural means two or more than two.
- “At least one of the following” or similar expressions refers to any combination of these items, including any combination of single or plural items.
- at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c may be single or multiple.
- the term “if” may be contextually interpreted as “when” or “once” or “in response to determining” or “in response to detecting “.
- the phrases “if it is determined” or “if the [described condition or event] is detected” may be interpreted, depending on the context, to mean “once it is determined” or “in response to the determination” or “once the [described condition or event] is detected. ]” or “in response to detection of the [described condition or event]”.
- references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
- appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
- the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
La présente invention se rapporte au domaine technique des communications, et concerne un procédé de communication sans fil et un dispositif terminal. Le procédé comprend les étapes suivantes : un premier dispositif terminal diffuse un message de demande de sonde contenant des informations de filtrage du premier dispositif terminal ; si un message de réponse de sonde contenant des informations de filtrage d'un second dispositif terminal est reçu et que les informations de filtrage du premier dispositif de terminal correspondent aux informations de filtrage du second dispositif terminal, déterminer qu'une connexion Wi-Fi de poste à poste (P2P) entre le premier dispositif terminal et le second dispositif terminal est établie ; et en réponse à une opération de partage d'un utilisateur concernant un fichier cible, partager le fichier cible avec un dispositif cible dans un dispositif terminal connecté, la direction de pointage du dispositif cible étant opposée à celle du premier dispositif terminal. Selon la solution technique fournie par la présente invention, le procédé de connexion P2P Wi-Fi est simple, et un utilisateur peut partager rapidement un fichier avec un dispositif terminal cible au moyen d'une simple opération de partage, ce qui réduit la complexité d'un processus de transmission de données basé sur une connexion P2P.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011063160.2 | 2020-09-30 | ||
CN202011063160.2A CN114339709A (zh) | 2020-09-30 | 2020-09-30 | 无线通信方法和终端设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022068513A1 true WO2022068513A1 (fr) | 2022-04-07 |
Family
ID=80949612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/116120 WO2022068513A1 (fr) | 2020-09-30 | 2021-09-02 | Procédé de communication sans fil et dispositif terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114339709A (fr) |
WO (1) | WO2022068513A1 (fr) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114928900A (zh) * | 2022-07-18 | 2022-08-19 | 荣耀终端有限公司 | 通过WiFi直接连接进行传输的方法和装置 |
CN115002939A (zh) * | 2022-07-18 | 2022-09-02 | 荣耀终端有限公司 | 加入WiFi群组的方法和装置 |
CN116684517A (zh) * | 2022-09-29 | 2023-09-01 | 荣耀终端有限公司 | 发送响应消息的方法和装置 |
CN117615466A (zh) * | 2023-01-04 | 2024-02-27 | 广州星际悦动股份有限公司 | 口腔护理设备与终端的连接控制方法、装置、设备及介质 |
CN118233435A (zh) * | 2024-05-25 | 2024-06-21 | 荣耀终端有限公司 | 一种呼叫处理方法及相关装置 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114826591A (zh) * | 2022-05-26 | 2022-07-29 | 京东方科技集团股份有限公司 | 一种跨设备的数据传输方法、系统及终端 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105682182A (zh) * | 2014-11-19 | 2016-06-15 | 中国移动通信集团公司 | 一种设备发现与设备连接方法、设备及系统 |
CN105979307A (zh) * | 2015-11-06 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | 移动终端与显示设备之间的一键连接方法及系统 |
CN106535301A (zh) * | 2016-12-30 | 2017-03-22 | 珠海赛纳打印科技股份有限公司 | 建立通信连接的方法、设备及系统 |
CN108377286A (zh) * | 2016-10-28 | 2018-08-07 | 中兴通讯股份有限公司 | 一种数据传输的方法及装置 |
CN111328051A (zh) * | 2020-02-25 | 2020-06-23 | 上海银基信息安全技术股份有限公司 | 数字钥匙分享方法、装置、电子设备及存储介质 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9730252B2 (en) * | 2015-03-11 | 2017-08-08 | Qualcomm Incorporated | Quick connection between customized softap and STA |
WO2020042119A1 (fr) * | 2018-08-30 | 2020-03-05 | 华为技术有限公司 | Procédé et dispositif de transmission de message |
CN111314400B (zh) * | 2018-12-11 | 2023-05-19 | 中兴通讯股份有限公司 | 车辆数据处理方法、装置、计算机设备和存储介质 |
CN110995665B (zh) * | 2019-11-15 | 2023-04-18 | 北京小米移动软件有限公司 | 配网方法及装置、电子设备及存储介质 |
-
2020
- 2020-09-30 CN CN202011063160.2A patent/CN114339709A/zh active Pending
-
2021
- 2021-09-02 WO PCT/CN2021/116120 patent/WO2022068513A1/fr active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105682182A (zh) * | 2014-11-19 | 2016-06-15 | 中国移动通信集团公司 | 一种设备发现与设备连接方法、设备及系统 |
CN105979307A (zh) * | 2015-11-06 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | 移动终端与显示设备之间的一键连接方法及系统 |
CN108377286A (zh) * | 2016-10-28 | 2018-08-07 | 中兴通讯股份有限公司 | 一种数据传输的方法及装置 |
CN106535301A (zh) * | 2016-12-30 | 2017-03-22 | 珠海赛纳打印科技股份有限公司 | 建立通信连接的方法、设备及系统 |
CN111328051A (zh) * | 2020-02-25 | 2020-06-23 | 上海银基信息安全技术股份有限公司 | 数字钥匙分享方法、装置、电子设备及存储介质 |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114928900A (zh) * | 2022-07-18 | 2022-08-19 | 荣耀终端有限公司 | 通过WiFi直接连接进行传输的方法和装置 |
CN115002939A (zh) * | 2022-07-18 | 2022-09-02 | 荣耀终端有限公司 | 加入WiFi群组的方法和装置 |
CN115002939B (zh) * | 2022-07-18 | 2022-10-04 | 荣耀终端有限公司 | 加入WiFi群组的方法和装置 |
CN114928900B (zh) * | 2022-07-18 | 2022-10-04 | 荣耀终端有限公司 | 通过WiFi直接连接进行传输的方法和装置 |
CN116684517A (zh) * | 2022-09-29 | 2023-09-01 | 荣耀终端有限公司 | 发送响应消息的方法和装置 |
CN117615466A (zh) * | 2023-01-04 | 2024-02-27 | 广州星际悦动股份有限公司 | 口腔护理设备与终端的连接控制方法、装置、设备及介质 |
CN117615466B (zh) * | 2023-01-04 | 2024-05-03 | 广州星际悦动股份有限公司 | 口腔护理设备与终端的连接控制方法、装置、设备及介质 |
CN118233435A (zh) * | 2024-05-25 | 2024-06-21 | 荣耀终端有限公司 | 一种呼叫处理方法及相关装置 |
Also Published As
Publication number | Publication date |
---|---|
CN114339709A (zh) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021027616A1 (fr) | Dispositif terminal, procédé et système pour réaliser une projection sur écran par toucher unique par télécommande | |
WO2020224486A1 (fr) | Procédé, dispositif et système d'appel | |
WO2022068513A1 (fr) | Procédé de communication sans fil et dispositif terminal | |
WO2021036835A1 (fr) | Procédé et système de recherche bluetooth, et appareil associé | |
US20220039179A1 (en) | Bluetooth Connection Method and Device | |
WO2021082829A1 (fr) | Procédé de connexion bluetooth et appareil associé | |
WO2021175268A1 (fr) | Procédé et appareil pour partager un point d'accès sans fil de réseau mobile, et dispositif de partage de point d'accès sans fil | |
WO2021175300A1 (fr) | Procédé et appareil de transmission de données, dispositif électronique et support de stockage lisible | |
CN110198362B (zh) | 一种在联系人中添加智能家居设备的方法及系统 | |
WO2020042119A1 (fr) | Procédé et dispositif de transmission de message | |
EP4250075A1 (fr) | Procédé de partage de contenu, dispositif électronique et support de stockage | |
WO2021027623A1 (fr) | Procédé de découverte de capacité de dispositif et dispositif p2p | |
WO2021218544A1 (fr) | Système de fourniture de connexion sans fil, procédé et appareil électronique | |
WO2022042265A1 (fr) | Procédé de communication, dispositif terminal et support de stockage | |
WO2021197071A1 (fr) | Système et procédé de communication sans fil | |
EP4247030A1 (fr) | Procédé de distribution de dispositif réseau, terminal mobile et support de stockage | |
WO2022089515A1 (fr) | Procédé de double connexion wi-fi et dispositif électronique | |
CN113498108A (zh) | 基于业务类型调整数据传输策略的芯片、设备以及方法 | |
JP2022501968A (ja) | ファイル転送方法および電子デバイス | |
CN113365274B (zh) | 一种网络接入方法和电子设备 | |
US12041026B2 (en) | Reverse address resolution method and electronic device | |
WO2022160967A1 (fr) | Procédé de communication, dispositif mobile, dispositif électronique et support de stockage lisible par ordinateur | |
WO2023051204A1 (fr) | Procédé d'interconnexion de dispositifs, dispositif électronique et support de stockage | |
EP4362507A1 (fr) | Système et procédé de communication | |
WO2023024889A1 (fr) | Premier dispositif électronique, second dispositif électronique et procédé de capture d'écran |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21874174 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21874174 Country of ref document: EP Kind code of ref document: A1 |