CN113141671A - Communication method and device of wifi device and computer readable storage medium - Google Patents

Communication method and device of wifi device and computer readable storage medium Download PDF

Info

Publication number
CN113141671A
CN113141671A CN202110444125.3A CN202110444125A CN113141671A CN 113141671 A CN113141671 A CN 113141671A CN 202110444125 A CN202110444125 A CN 202110444125A CN 113141671 A CN113141671 A CN 113141671A
Authority
CN
China
Prior art keywords
wifi
direct connection
information
opposite
wifi direct
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110444125.3A
Other languages
Chinese (zh)
Other versions
CN113141671B (en
Inventor
程志东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202110444125.3A priority Critical patent/CN113141671B/en
Publication of CN113141671A publication Critical patent/CN113141671A/en
Priority to PCT/CN2021/109290 priority patent/WO2022222299A1/en
Application granted granted Critical
Publication of CN113141671B publication Critical patent/CN113141671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A communication method of a wifi device comprises the following steps: receiving an account binding request initiated by a network configuration APP; interacting wifi direct connection information with an opposite-end wifi device, wherein the wifi direct connection information comprises device information of the wifi direct connection initiating device, capability support information of the wifi direct connection initiating device, device information of the opposite-end wifi device and capability support information of the opposite-end wifi device; if the capability support information of the wifi device at the opposite end indicates that the wifi device at the opposite end supports wifi direct connection, establishing a direct connection link with the wifi device at the opposite end supporting wifi direct connection according to the wifi direct connection information; and sending an instruction to the opposite-end wifi device supporting wifi direct connection through a direct connection link so as to enable the opposite-end wifi device supporting wifi direct connection to execute the instruction. The technical scheme of the application enables direct communication among a plurality of devices supporting wifi direct connection, avoids dependence on routing equipment or an AP, and is particularly suitable for a scene without a network.

Description

Communication method and device of wifi device and computer readable storage medium
Technical Field
The present invention relates to the field of wireless communications, and in particular, to a communication method and device for a wifi device, and a computer-readable storage medium.
Background
The wifi device is a variety of terminals capable of supporting wifi function, for example, a smart phone, etc., which can communicate with a terminal that also supports wifi function under a wireless network. Obviously, the premise that two wifi devices can communicate with each other is that the two wifi devices are in a wireless network, and a routing device or an Access Point (AP) therein serves as a "transfer station" of the two wifi devices to forward interaction information between the two wifi devices. However, when no wireless network exists in the field or the signal of the wireless network is poor, the wifi device cannot communicate with each other.
Disclosure of Invention
The application provides a communication method and device of wifi devices and a computer readable storage medium, so that direct communication among the wifi devices is achieved, and dependence on routing devices or APs is avoided.
On one hand, the application provides a communication method of wifi equipment, comprising:
interacting wifi direct connection information with an opposite-end wifi device, wherein the wifi direct connection information comprises device information of the wifi direct connection initiating device, capability support information of the wifi direct connection initiating device, device information of the opposite-end wifi device and capability support information of the opposite-end wifi device;
if the capability support information of the opposite-end wifi device indicates that the opposite-end wifi device supports wifi direct connection, establishing a direct connection link with the opposite-end wifi device according to the wifi direct connection message;
and sending an instruction to the opposite-end wifi device through the direct connection link so that the opposite-end wifi device executes the instruction.
On the other hand, this application provides a communication device of wifi equipment, includes:
the system comprises an interaction module, a processing module and a processing module, wherein the interaction module is used for interacting wifi direct connection information with an opposite-end wifi device, and the wifi direct connection information comprises device information of the wifi direct connection initiating device, capability support information of the wifi direct connection initiating device, device information of the opposite-end wifi device and capability support information of the opposite-end wifi device;
the link establishing module is used for establishing a direct link with the opposite-end wifi device supporting wifi direct connection according to the wifi direct connection message if the capability supporting information of the opposite-end wifi device indicates that the opposite-end wifi device supports wifi direct connection;
and the sending module is used for sending an instruction to the opposite-end wifi device supporting wifi direct connection through the direct connection link so that the opposite-end wifi device supporting wifi direct connection executes the instruction.
In a third aspect, the present application provides a communication apparatus of wifi device, including:
the system comprises an interaction module, a processing module and a processing module, wherein the interaction module is used for interacting wifi direct connection information with an opposite-end wifi device, and the wifi direct connection information comprises device information of the wifi direct connection initiating device, capability support information of the wifi direct connection initiating device, device information of the opposite-end wifi device and capability support information of the opposite-end wifi device;
the link establishing module is used for establishing a direct link with the opposite-end wifi device supporting wifi direct connection according to the wifi direct connection message if the capability supporting information of the opposite-end wifi device indicates that the opposite-end wifi device supports wifi direct connection;
and the sending module is used for sending an instruction to the opposite-end wifi device supporting wifi direct connection through the direct connection link so that the opposite-end wifi device executes the instruction.
In a fourth aspect, the present application provides a device, where the device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps of the technical solution of the communication method of the wifi device.
In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the above technical solution of the communication method of the wifi device.
According to the technical scheme, after the wifi direct connection message is interacted with the opposite-end wifi device, if the opposite-end wifi device supports wifi direct connection, the direct connection link of the opposite-end wifi device which supports wifi direct connection is established according to the wifi direct connection message, and then the instruction is sent to the opposite-end wifi device which supports wifi direct connection through the direct connection link, so that the opposite-end wifi device which supports wifi direct connection executes the instruction.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a communication method of a wifi device provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a communication apparatus of a wifi device provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an apparatus provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In this specification, adjectives such as first and second may only be used to distinguish one element or action from another, without necessarily requiring or implying any actual such relationship or order. References to an element or component or step (etc.) should not be construed as limited to only one of the element, component, or step, but rather to one or more of the element, component, or step, etc., where the context permits.
In the present specification, the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The application provides a communication method of wifi equipment, as shown in fig. 1, wifi direct connection initiating equipment is used as an execution main body for explanation, and the wifi direct connection initiating equipment is wifi equipment which supports wifi direct connection and actively initiates direct connection. The communication method of the wifi device illustrated in fig. 1 mainly includes steps S101 to S103, which are detailed as follows:
step S101: interacting wifi direct connection information with an opposite-end wifi device, wherein the wifi direct connection information comprises device information of the wifi direct connection initiating device, capability support information of the wifi direct connection initiating device, device information of the opposite-end wifi device and capability support information of the opposite-end wifi device.
In the embodiment of the application, the device information of the wifi direct connection initiating device includes information such as an identifier and/or a MAC address of the wifi direct connection initiating device, and the device information of the wifi device at the opposite end includes information such as an identifier and/or a MAC address of the wifi device at the opposite end, wherein the identifier may be a name and a type of the device, and the capability support information of the wifi device at the opposite end is used for indicating whether the wifi device at the opposite end supports wifi direct connection. Generally speaking, WiFi directly links initiating means through scanning all WiFi working signal a plurality of channels of 2.4G frequency channel promptly, then, this WiFi directly links initiating means and gets into the equipment stage, alternately gets into search state and interception state, if at a certain moment, this WiFi directly links initiating means and is in search state, and opposite end WiFi device is in interception state, then two equipment accomplish discovery each other promptly. In an embodiment of the present application, the wifi direct connection initiating device and the wifi device at the opposite end interacting wifi direct connection message may be: starting a Wifi device direct connection scanning function, and broadcasting device information of the Wifi direct connection initiating device and capability support information of the Wifi direct connection initiating device; and receiving a response message fed back by the directly-connectable wifi device, wherein the directly-connectable wifi device is an opposite-end wifi device supporting wifi direct connection, and the response message comprises device information and capability support information of the directly-connectable wifi device. When the wifi direct connection initiating device broadcasts the device information of the wifi direct connection initiating device and the capability support information of the wifi direct connection initiating device, the opposite end wifi device can receive the information. If the wifi equipment of the opposite terminal supports wifi direct connection, the wifi equipment of the opposite terminal serves as the wifi equipment capable of being directly connected to feed back a response message to the wifi direct connection initiating equipment, and the wifi direct connection is supported by equipment information and capability support information of the wifi equipment capable of being directly connected.
Step S102: if the capability support information of the wifi device at the opposite end indicates that the wifi device at the opposite end supports wifi direct connection, a direct connection link with the wifi device at the opposite end supporting wifi direct connection is established according to the wifi direct connection information.
In an embodiment of the present application, according to the wifi direct connection message, establishing a direct connection link with an opposite-end wifi device supporting wifi direct connection may be implemented through the following steps S1021 to S1023:
step S1021: and providing the group owner connection information to the directly-connectable wifi device.
Since WiFi direct connection is networking of a group initiated by WiFi direct connection initiating equipment actively, in the embodiment of the application, a group owner is the WiFi direct connection initiating equipment, and connection information of the group owner provided by the WiFi direct connection initiating equipment includes at least one or more of a related identifier of a basic service set, a shared key and a channel identifier of a working channel, wherein the related identifier is required by the WiFi direct connection initiating equipment when a WiFi direct connection link is established with the WiFi direct connection initiating equipment.
Step S1022: and receiving a connection request sent by the directly-connectable wifi device.
In the embodiment of the application, the connection request sent by the directly-connectable WiFi device is that the directly-connectable WiFi device performs device scanning according to the group owner connection information, and is sent after the directly-connectable WiFi device is scanned, so as to request the WiFi direct link to be established with the WiFi direct connection initiating device; the connection request sent by the directly connectable wifi device may be sent on a working channel negotiated with the wifi directly connected initiating device.
Step S1023: and establishing a direct connection link with the directly connectable wifi device according to a connection request sent by the directly connectable wifi device.
In another embodiment of the present application, according to the wifi direct connection message, establishing a direct connection link with an opposite wifi device supporting wifi direct connection may be implemented through the following steps S '1021 to S' 1023.
Step S' 1021: a head group is established.
As a group management terminal, namely a group owner, WiFi direct connection initiating equipment can automatically scan WiFi equipment within a signal range when being started, and if original WiFi equipment in a certain group is scanned, connection is automatically initiated to the scanned original WiFi equipment to form a first group. If not, prompting the user whether to use other groups stored currently, and if so, taking the other groups stored currently as the first group.
Step S' 1022: and allowing at least one WiFi direct connection device to join the head group according to the WiFi direct connection message.
Step S' 1023: and storing the information about the head group and the equipment information of all wifi equipment supporting wifi direct connection in the head group.
In this embodiment, the information of the head group includes connection information of the group created this time, and the device information includes a device name, a MAC address, an IP address, security information, signal strength, a channel, P2P IE, authentication information, and the like of the WiFi device serving as the group client.
It can be known from the foregoing embodiment of the present application that the WiFi direct connection initiating device acquires the other WiFi devices applying for joining the group and the device information of the WiFi direct connection initiating device itself, where the device information is a basis for forming the first group, and after the WiFi direct connection initiating device stores the device information and the group information, the WiFi direct connection initiating device can complete the construction based on the device information and the group information next time when reconstructing the group.
In order to reduce the manual input of device information or manual selection of the device end by the user, avoid the wifi to directly connect the complex operation of establishing the connection between the initiating device and the target wifi device end, and avoid the user to input complicated device information, the embodiment of the present application further includes: detecting whether the local wifi direct connection initiating equipment stores equipment information of historical wifi equipment supporting wifi direct connection and direct connection recording information of the historical wifi equipment and the wifi direct connection initiating equipment; if the local Wifi direct connection initiating device stores device information of historical Wifi devices supporting Wifi direct connection and direct connection recording information of the historical Wifi devices and the Wifi direct connection initiating device, starting a Wifi device direct connection scanning function of the Wifi direct connection initiating device so as to scan the Wifi devices supporting Wifi direct connection in a preset range; and establishing a direct link between the wifi direct connection initiating device and the wifi device existing in the wifi direct connection initiating device according to the device information of the historical wifi device. In the above embodiment, after the target device that is directly connected with wifi is established with the wifi direct connection initiating device is detected, the target device is stored as the historical wifi device that supports wifi direct connection.
In order to reduce the energy consumption, in the above embodiment of the present application, the method further includes: determining current wifi historical equipment for establishing a direct link with wifi direct connection initiating equipment at present; acquiring and analyzing interaction information of the wifi direct connection initiating device and each current historical wifi device in a past preset time length, and determining interaction heat of the wifi direct connection initiating device and each current historical wifi device; and closing a direct link between the current historical wifi device with the interaction heat degree smaller than a first threshold value and the wifi direct connection initiating device, and/or closing a direct link between the current historical wifi device with the interaction heat degree smaller than a second threshold value and the wifi direct connection initiating device, wherein the second threshold value is larger than the first threshold value. In the above embodiment, the interaction information mainly includes frequency, duration, transmission data amount, and the like of data interaction between the wifi direct connection initiating device and different current historical wifi devices, and the frequency, duration, and transmission data amount of the data interaction are positively correlated with the interaction heat, that is, the greater the data interaction frequency between the wifi direct connection initiating device and one current historical wifi device is, the higher the interaction heat between the wifi direct connection initiating device and the current historical wifi device is; similarly, the duration of data interaction between the wifi direct-connection initiating device and the current historical wifi device is longer, the interaction heat is higher, the transmission data volume is larger, and the interaction heat is higher. The frequency, duration and weight of positive correlation between the transmission data volume and the interaction heat of the data interaction can be set by the user according to the quotation scene or user requirements of the wifi direct connection initiating device and the current historical wifi device. When the interactive heat degree of the wifi direct connection initiating device and each current historical wifi device is smaller than a first threshold value, the fact that interaction of the wifi direct connection initiating device and the current historical wifi device is few is shown, the utilization rate of a wifi direct connection link between the wifi direct connection initiating device and the current historical wifi device is low, excessive electric quantity of the wifi direct connection initiating device and the current historical wifi device is consumed by continuously opening the wifi direct connection initiating device, therefore, the wifi direct connection link of the current historical wifi device and the wifi direct connection initiating device is closed, the electric quantity of the wifi direct connection initiating device and the current historical wifi device is saved, and the interactive heat degree of the wifi direct connection initiating device and the current historical wifi device is smaller than the first threshold value. When the interaction heat degree of the wifi direct connection initiating device and each current historical wifi device is smaller than a second threshold value and larger than or equal to a first threshold value, the fact that the interaction frequency of the wifi direct connection initiating device and each current historical wifi device is moderate is shown, the utilization rate of wifi direct connection links between the wifi direct connection initiating device and each current historical wifi device is low, more electric quantity of the wifi direct connection initiating device and each current historical wifi device is consumed by continuously starting the wifi direct connection initiating device, therefore, the wifi direct connection links between the wifi direct connection initiating device and each current historical wifi device with the dormancy interaction heat degree smaller than the second threshold value and larger than or equal to the first threshold value are awakened, the wifi direct connection links are awakened when interaction demands exist, and the electric quantity of the wifi direct connection initiating device and each current historical wifi device is further saved.
Step S103: sending an instruction to the opposite-end wifi device supporting wifi direct connection through a direct connection link with the opposite-end wifi device supporting wifi direct connection, so that the opposite-end wifi device supporting wifi direct connection executes the instruction.
In the embodiment of the application, the instructions sent to the wifi device at the opposite end supporting wifi direct connection include instructions for the wifi device at the opposite end supporting wifi direct connection to play music and/or a prompt tone, connect to a specified network such as a home network, and other actions, and the instructions may be encapsulated in a Vendor Specific Attribute (VSA) packet conforming to a wifi direct protocol. After receiving the VSA packet, the wifi device at the opposite end supporting wifi direct connection resolves the instruction in the VSA packet according to the wifi direct connection protocol and executes the instruction.
Known from the communication method of the wifi device illustrated in the above attached fig. 1, after interacting wifi direct connection message with the wifi device at the opposite end, if the wifi device at the opposite end supports wifi direct connection, then according to the wifi direct connection message, a direct connection link with the wifi device at the opposite end supporting wifi direct connection is established, and then through the direct connection link, an instruction is sent to the wifi device at the opposite end supporting wifi direct connection, so that the wifi device at the opposite end supporting wifi direct connection executes the instruction, therefore, the technical scheme of the present application enables direct communication between a plurality of devices supporting wifi direct connection, and dependence on routing devices or APs is removed, and the present application is particularly suitable for non-network scenes.
Referring to fig. 2, a communication apparatus of a wifi device provided in an embodiment of the present application is shown, where the apparatus may be a device supporting wifi direct connection or a functional module therein. The apparatus illustrated in fig. 2 may include an interaction module 201, a link establishment module 202, and a transmission module 203, which are detailed as follows:
the interaction module 201 is used for interacting wifi direct connection information with an opposite-end wifi device, wherein the wifi direct connection information comprises device information of the wifi direct connection initiating device, capability support information of the wifi direct connection initiating device, device information of the opposite-end wifi device and capability support information of the opposite-end wifi device;
the link establishing module 202 is configured to establish a direct connection link with an opposite-end wifi device supporting wifi direct connection according to the wifi direct connection message if capability support information of the opposite-end wifi device indicates that the opposite-end wifi device supports wifi direct connection;
the sending module 203 is configured to send an instruction to an opposite-end wifi device supporting wifi direct connection through a direct connection link, so that the opposite-end wifi device supporting wifi direct connection executes the instruction.
Optionally, the interaction module 201 illustrated in fig. 2 may include a broadcasting unit and a first receiving unit, where:
the broadcasting unit is used for starting a Wifi device direct connection scanning function, and broadcasting device information of the Wifi direct connection initiating device and capability support information of the Wifi direct connection initiating device;
the first receiving unit is used for receiving a response message fed back by the wifi device which can be directly connected, wherein the wifi device which can be directly connected is an opposite-end wifi device supporting wifi direct connection, and the response message comprises device information and capability support information of the wifi device which can be directly connected.
Optionally, the link establishing module 202 illustrated in fig. 2 may include a connection information providing unit, a second receiving unit, and a direct link connecting unit, where:
the connection information providing unit is used for providing group owner connection information for the directly-connectable wifi device;
the second receiving unit is used for receiving a connection request sent by the directly-connectable wifi device;
and the direct link connection unit is used for establishing a direct link with the direct-connection wifi device according to the connection request sent by the direct-connection wifi device.
Optionally, the link establishing module 202 illustrated in fig. 2 may include a group establishing unit, an adding group determining unit, and a storing unit, where:
a group establishing unit for establishing a head group;
the group adding determining unit is used for allowing at least one WiFi direct-connected device to be added into the head group according to the WiFi direct-connected message;
a storage unit for storing information about the head group and device information of all wifi devices supporting wifi direct connection in the head group
Optionally, the apparatus illustrated in fig. 2 may further include a detection module, a scanning function starting module, and a direct link establishing module, where:
the detection module is used for detecting whether the local wifi direct connection initiating device stores device information of historical wifi devices supporting wifi direct connection and direct connection record information of the historical wifi devices and the wifi direct connection initiating device;
the system comprises a scanning function starting module, a wireless fidelity (Wifi) device direct connection scanning module and a wireless fidelity (Wifi) device direct connection scanning module, wherein the scanning function starting module is used for starting a Wifi device direct connection scanning function of the Wifi direct connection initiating device if the Wifi direct connection initiating device locally stores device information of historical Wifi devices supporting Wifi direct connection and direct connection recording information of the historical Wifi devices and the Wifi direct connection initiating device so as to scan the Wifi devices supporting Wifi direct connection in a preset range;
and the direct link establishing module is used for establishing a direct link between the wifi direct connection initiating device and the wifi device existing in the wifi direct connection initiating device according to the device information of the historical wifi device.
Optionally, the apparatus illustrated in fig. 2 may further include a storage module, configured to, after detecting that the target device that is wifi-directly connected to the wifi direct connection initiating device is established, store the target device as a historical wifi device that supports wifi direct connection by the detection module.
Optionally, the apparatus illustrated in fig. 2 may further include a first determining module, a second determining module, and a link processing module, wherein:
the first determining module is used for determining current wifi historical equipment which establishes a direct link with wifi direct connection initiating equipment at present;
the second determining module is used for acquiring and analyzing the interaction information of the wifi direct connection initiating device and each current historical wifi device in the past preset time length, and determining the interaction heat degree of the wifi direct connection initiating device and each current historical wifi device;
the link processing module is used for closing a direct link between the current historical wifi device with the interaction heat degree smaller than a first threshold value and the wifi direct connection initiating device, and/or closing a direct link between the current historical wifi device with the interaction heat degree smaller than a second threshold value and the wifi direct connection initiating device, wherein the second threshold value is larger than the first threshold value.
Known from the communicator of the wifi equipment of above-mentioned attached figure 2 example, after with the mutual wifi direct connection message of opposite terminal wifi equipment, if the opposite terminal wifi equipment supports wifi directly to link directly, then according to wifi direct connection message, establish with the opposite terminal wifi equipment that supports wifi directly to link directly, this direct link of rethread is to the opposite terminal wifi equipment that supports wifi directly to send the instruction to supporting the opposite terminal wifi equipment that wifi directly links, so that support the opposite terminal wifi equipment execution instruction that wifi directly links, consequently, the technical scheme of this application makes can be at a plurality of direct communication that support wifi directly links between the equipment, remove the dependence to route equipment or AP from, be particularly suitable for the scene that does not have the network.
Fig. 3 is a schematic structural diagram of an apparatus provided in an embodiment of the present application. As shown in fig. 3, the apparatus 3 of this embodiment mainly includes: a processor 30, a memory 31 and a computer program 32 stored in the memory 31 and executable on the processor 30, for example a program of a communication method of a wifi device. The processor 30, when executing the computer program 32, implements the steps in the above-described communication method embodiments of the wifi device, such as the steps S101 to S103 shown in fig. 1. Alternatively, the processor 30, when executing the computer program 32, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the interaction module 201, the link establishment module 202, and the sending module 203 shown in fig. 2.
Illustratively, the computer program 32 of the communication method of the wifi device mainly includes: interacting wifi direct connection information with an opposite-end wifi device, wherein the wifi direct connection information comprises device information of the wifi direct connection initiating device, capability support information of the wifi direct connection initiating device, device information of the opposite-end wifi device and capability support information of the opposite-end wifi device; if the capability support information of the wifi device at the opposite end indicates that the wifi device at the opposite end supports wifi direct connection, establishing a direct connection link with the wifi device at the opposite end supporting wifi direct connection according to the wifi direct connection information; and sending an instruction to the opposite-end wifi device supporting wifi direct connection through a direct connection link so as to enable the opposite-end wifi device supporting wifi direct connection to execute the instruction.
The computer program 32 may be partitioned into one or more modules/units, which are stored in the memory 31 and executed by the processor 30 to accomplish the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 32 in the device 3. For example, the computer program 32 may be divided into functions of the interaction module 201, the link establishment module 202, and the transmission module 203 (modules in the virtual device), and the specific functions of each module are as follows: the interaction module 201 is used for interacting wifi direct connection information with an opposite-end wifi device, wherein the wifi direct connection information comprises device information of the wifi direct connection initiating device, capability support information of the wifi direct connection initiating device, device information of the opposite-end wifi device and capability support information of the opposite-end wifi device; the link establishing module 202 is configured to establish a direct connection link with an opposite-end wifi device supporting wifi direct connection according to the wifi direct connection message if capability support information of the opposite-end wifi device indicates that the opposite-end wifi device supports wifi direct connection; the sending module 203 is configured to send an instruction to an opposite-end wifi device supporting wifi direct connection through a direct connection link, so that the opposite-end wifi device supporting wifi direct connection executes the instruction.
The device 3 may include, but is not limited to, a processor 30, a memory 31. Those skilled in the art will appreciate that fig. 3 is merely an example of a device 3 and does not constitute a limitation of device 3 and may include more or fewer components than shown, or some components in combination, or different components, e.g., a computing device may also include input-output devices, network access devices, buses, etc.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may be an internal storage unit of the device 3, such as a hard disk or a memory of the device 3. The memory 31 may also be an external storage device of the device 3, such as a plug-in hard disk provided on the device 3, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 31 may also include both an internal storage unit of the device 3 and an external storage device. The memory 31 is used for storing computer programs and other programs and data required by the device. The memory 31 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as required to different functional units and modules, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/device and method may be implemented in other ways. For example, the above-described apparatus/device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a non-transitory computer readable storage medium. Based on such understanding, the present application may implement all or part of the processes in the method of the above embodiment, and may also instruct related hardware to complete through a computer program, where the computer program of the communication method of the wifi device may be stored in a computer-readable storage medium, and when being executed by a processor, the computer program may implement the steps of the above method embodiments, that is, interacting wifi direct connection message with the wifi device at the opposite end, where the wifi direct connection message includes device information of the wifi direct connection initiating device, capability support information of the wifi direct connection initiating device, device information of the wifi device at the opposite end, and capability support information of the wifi device at the opposite end; if the capability support information of the wifi device at the opposite end indicates that the wifi device at the opposite end supports wifi direct connection, establishing a direct connection link with the wifi device at the opposite end supporting wifi direct connection according to the wifi direct connection information; and sending an instruction to the opposite-end wifi device supporting wifi direct connection through a direct connection link so as to enable the opposite-end wifi device supporting wifi direct connection to execute the instruction. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The non-transitory computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the non-transitory computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, non-transitory computer readable media does not include electrical carrier signals and telecommunications signals as subject to legislation and patent practice. The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application. The above-mentioned embodiments, objects, technical solutions and advantages of the present application are described in further detail, it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present application, and are not intended to limit the scope of the present application, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present application should be included in the scope of the present invention.

Claims (10)

1. A communication method of a wifi device, the method comprising:
interacting wifi direct connection information with an opposite-end wifi device, wherein the wifi direct connection information comprises device information of the wifi direct connection initiating device, capability support information of the wifi direct connection initiating device, device information of the opposite-end wifi device and capability support information of the opposite-end wifi device;
if the capability support information of the opposite-end wifi device indicates that the opposite-end wifi device supports wifi direct connection, establishing a direct connection link with the opposite-end wifi device supporting wifi direct connection according to the wifi direct connection information;
and sending an instruction to the opposite-end wifi device supporting wifi direct connection through the direct connection link, so that the opposite-end wifi device supporting wifi direct connection executes the instruction.
2. The communication method of the wifi device of claim 1, wherein the interacting wifi direct message with the wifi device of the opposite end comprises:
starting a Wifi device direct connection scanning function, and broadcasting device information of the Wifi direct connection initiating device and capability support information of the Wifi direct connection initiating device;
receiving a response message fed back by the wifi device which can be directly connected, wherein the wifi device which can be directly connected is the opposite-end wifi device which supports wifi direct connection, and the response message comprises device information and capability support information of the wifi device which can be directly connected.
3. The communication method of the wifi device of claim 2, wherein the establishing a direct link with the wifi device of the opposite end supporting wifi direct connection according to the wifi direct connection message comprises:
providing group owner connection information to the directly connectable wifi device;
receiving a connection request sent by the directly-connectable wifi device;
and establishing the direct connection link with the direct connection wifi equipment according to the connection request sent by the direct connection wifi equipment.
4. The communication method of the wifi device of claim 2, wherein the establishing a direct link with the wifi device of the opposite end supporting wifi direct connection according to the wifi direct connection message comprises:
establishing a head group;
allowing at least one WiFi direct-connected device to join the head group according to the WiFi direct-connected message;
and saving the information about the head group and the equipment information of all wifi equipment supporting wifi direct connection in the head group.
5. The wifi device communication method according to any of claims 1 to 4, characterized in that the method further comprises:
detecting whether the local wifi direct connection initiating device stores device information of historical wifi devices supporting wifi direct connection and direct connection recording information of the historical wifi devices and the wifi direct connection initiating device;
if the device information of the historical Wifi device supporting Wifi direct connection and the direct connection recording information of the historical Wifi device and the Wifi direct connection initiating device are stored locally in the Wifi direct connection initiating device, starting a Wifi device direct connection scanning function of the Wifi direct connection initiating device so as to scan the Wifi device supporting Wifi direct connection in a preset range;
and establishing a direct connection link between the wifi direct connection initiating equipment and the wifi equipment existing in the wifi direct connection initiating equipment according to the equipment information of the historical wifi equipment.
6. The method of communicating of a wifi device of claim 5, the method further comprising: after detecting that target equipment which is directly connected with wifi is established by the wifi direct connection initiating equipment, storing the target equipment as historical wifi equipment which supports the wifi direct connection.
7. The method of communicating of a wifi device of claim 6, the method further comprising:
determining current wifi historical equipment which establishes a direct connection link with the wifi direct connection initiating equipment at present;
acquiring and analyzing interaction information of the wifi direct connection initiating device and each current historical wifi device in a past preset time length, and determining interaction heat of the wifi direct connection initiating device and each current historical wifi device;
closing the current historical wifi equipment with the interaction heat degree of which is smaller than the first threshold value and the direct link of the wifi direct connection initiating equipment, and/or sleeping the current historical wifi equipment with the interaction heat degree of which is smaller than the second threshold value and the direct link of the wifi direct connection initiating equipment, wherein the second threshold value is larger than the first threshold value.
8. A communication apparatus of a wifi device, the apparatus comprising:
the system comprises an interaction module, a processing module and a processing module, wherein the interaction module is used for interacting wifi direct connection information with an opposite-end wifi device, and the wifi direct connection information comprises device information of the wifi direct connection initiating device, capability support information of the wifi direct connection initiating device, device information of the opposite-end wifi device and capability support information of the opposite-end wifi device;
the link establishing module is used for establishing a direct link with the opposite-end wifi device supporting wifi direct connection according to the wifi direct connection message if the capability supporting information of the opposite-end wifi device indicates that the opposite-end wifi device supports wifi direct connection;
and the sending module is used for sending an instruction to the opposite-end wifi device supporting wifi direct connection through the direct connection link so that the opposite-end wifi device supporting wifi direct connection executes the instruction.
9. An apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202110444125.3A 2021-04-23 2021-04-23 Communication method and device of wifi device and computer readable storage medium Active CN113141671B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110444125.3A CN113141671B (en) 2021-04-23 2021-04-23 Communication method and device of wifi device and computer readable storage medium
PCT/CN2021/109290 WO2022222299A1 (en) 2021-04-23 2021-07-29 Communication method for wifi device, and device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110444125.3A CN113141671B (en) 2021-04-23 2021-04-23 Communication method and device of wifi device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113141671A true CN113141671A (en) 2021-07-20
CN113141671B CN113141671B (en) 2023-06-20

Family

ID=76812421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110444125.3A Active CN113141671B (en) 2021-04-23 2021-04-23 Communication method and device of wifi device and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN113141671B (en)
WO (1) WO2022222299A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143910A (en) * 2021-12-09 2022-03-04 惠州Tcl移动通信有限公司 Data transmission method, device and computer readable storage medium
CN115002939A (en) * 2022-07-18 2022-09-02 荣耀终端有限公司 Method and device for joining WiFi group
WO2022222299A1 (en) * 2021-04-23 2022-10-27 惠州Tcl云创科技有限公司 Communication method for wifi device, and device and computer-readable storage medium
CN117156396A (en) * 2023-09-13 2023-12-01 中航信移动科技有限公司 Communication method of networking scene terminal equipment, electronic equipment and storage medium

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594578A (en) * 2008-05-30 2009-12-02 深圳华为通信技术有限公司 The method for building up of direct connected link, station equipment and communication system
CN102076107A (en) * 2009-11-24 2011-05-25 索尼公司 Radio communication device, radio communication system, radio communication method, and program
CN102170639A (en) * 2011-05-11 2011-08-31 华南理工大学 Authentication method of distributed wireless Ad Hoc network
CN103067776A (en) * 2012-12-26 2013-04-24 Tcl集团股份有限公司 Program-pushing method and system, intelligent display device, cloud server
CN103702291A (en) * 2012-09-27 2014-04-02 中兴通讯股份有限公司 Wi-Fi (wireless fidelity)-based group establishing method and WiFi directly-connecting equipment
CN104782219A (en) * 2012-11-02 2015-07-15 高通股份有限公司 Systems, apparatus, and methods for range extension of wireless communication
CN105451366A (en) * 2014-08-21 2016-03-30 Tcl集团股份有限公司 Method and device for establishing TDLS link and near-field communication system
CN106105137A (en) * 2014-03-05 2016-11-09 高通股份有限公司 Terminal use is used to combine the destruction logging in detection key exchange encryption channel
CN106657950A (en) * 2016-09-29 2017-05-10 努比亚技术有限公司 Projection device management device, method and projection data sharing device
CN107409270A (en) * 2015-03-05 2017-11-28 三星电子株式会社 Method and apparatus for establishing the connection between equipment
CN107580766A (en) * 2015-06-09 2018-01-12 英特尔公司 The systems, devices and methods that group key for network is distributed
CN108684071A (en) * 2018-04-25 2018-10-19 东峡大通(北京)管理咨询有限公司 The power consumption control method and system of the device node of MESH network
CN110011795A (en) * 2019-04-12 2019-07-12 郑州轻工业学院 Symmetric group cryptographic key negotiation method based on block chain
CN110831005A (en) * 2019-11-11 2020-02-21 深圳创维数字技术有限公司 Device adding method of Mesh network, gateway device and storage medium
CN111479172A (en) * 2020-04-30 2020-07-31 广东艾诗凯奇智能科技有限公司 Information transmission method, electronic equipment and readable storage medium
CN111988471A (en) * 2020-08-27 2020-11-24 深圳市当智科技有限公司 Wireless phone system, wireless communication method and readable storage medium
CN112312586A (en) * 2019-08-02 2021-02-02 Oppo广东移动通信有限公司 WiFi direct connection establishing method, device, equipment and storage medium
CN112401838A (en) * 2020-11-16 2021-02-26 上海创功通讯技术有限公司 Method for detecting sleep state of wearable device and wearable device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7545771B2 (en) * 2003-01-29 2009-06-09 Xocyst Transfer Ag L.L.C. Independent direct link protocol
US20050108527A1 (en) * 2003-11-13 2005-05-19 Boris Ginzburg Method and apparatus to provide secured link
US9294904B2 (en) * 2014-01-31 2016-03-22 Sony Corporation IMS/RCS Wi-Fi direct support
US10951347B2 (en) * 2017-07-12 2021-03-16 Qualcomm Incorporated User equipment capability discovery in distributed wireless networks
CN112291742B (en) * 2019-07-25 2022-04-01 大唐移动通信设备有限公司 Direct communication method and device
CN113141671B (en) * 2021-04-23 2023-06-20 Tcl通讯(宁波)有限公司 Communication method and device of wifi device and computer readable storage medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594578A (en) * 2008-05-30 2009-12-02 深圳华为通信技术有限公司 The method for building up of direct connected link, station equipment and communication system
CN102076107A (en) * 2009-11-24 2011-05-25 索尼公司 Radio communication device, radio communication system, radio communication method, and program
CN102170639A (en) * 2011-05-11 2011-08-31 华南理工大学 Authentication method of distributed wireless Ad Hoc network
CN103702291A (en) * 2012-09-27 2014-04-02 中兴通讯股份有限公司 Wi-Fi (wireless fidelity)-based group establishing method and WiFi directly-connecting equipment
CN104782219A (en) * 2012-11-02 2015-07-15 高通股份有限公司 Systems, apparatus, and methods for range extension of wireless communication
CN103067776A (en) * 2012-12-26 2013-04-24 Tcl集团股份有限公司 Program-pushing method and system, intelligent display device, cloud server
CN106105137A (en) * 2014-03-05 2016-11-09 高通股份有限公司 Terminal use is used to combine the destruction logging in detection key exchange encryption channel
CN105451366A (en) * 2014-08-21 2016-03-30 Tcl集团股份有限公司 Method and device for establishing TDLS link and near-field communication system
CN107409270A (en) * 2015-03-05 2017-11-28 三星电子株式会社 Method and apparatus for establishing the connection between equipment
CN107580766A (en) * 2015-06-09 2018-01-12 英特尔公司 The systems, devices and methods that group key for network is distributed
CN106657950A (en) * 2016-09-29 2017-05-10 努比亚技术有限公司 Projection device management device, method and projection data sharing device
CN108684071A (en) * 2018-04-25 2018-10-19 东峡大通(北京)管理咨询有限公司 The power consumption control method and system of the device node of MESH network
CN110011795A (en) * 2019-04-12 2019-07-12 郑州轻工业学院 Symmetric group cryptographic key negotiation method based on block chain
CN112312586A (en) * 2019-08-02 2021-02-02 Oppo广东移动通信有限公司 WiFi direct connection establishing method, device, equipment and storage medium
CN110831005A (en) * 2019-11-11 2020-02-21 深圳创维数字技术有限公司 Device adding method of Mesh network, gateway device and storage medium
CN111479172A (en) * 2020-04-30 2020-07-31 广东艾诗凯奇智能科技有限公司 Information transmission method, electronic equipment and readable storage medium
CN111988471A (en) * 2020-08-27 2020-11-24 深圳市当智科技有限公司 Wireless phone system, wireless communication method and readable storage medium
CN112401838A (en) * 2020-11-16 2021-02-26 上海创功通讯技术有限公司 Method for detecting sleep state of wearable device and wearable device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222299A1 (en) * 2021-04-23 2022-10-27 惠州Tcl云创科技有限公司 Communication method for wifi device, and device and computer-readable storage medium
CN114143910A (en) * 2021-12-09 2022-03-04 惠州Tcl移动通信有限公司 Data transmission method, device and computer readable storage medium
CN115002939A (en) * 2022-07-18 2022-09-02 荣耀终端有限公司 Method and device for joining WiFi group
CN115002939B (en) * 2022-07-18 2022-10-04 荣耀终端有限公司 Method and device for joining WiFi group
CN117156396A (en) * 2023-09-13 2023-12-01 中航信移动科技有限公司 Communication method of networking scene terminal equipment, electronic equipment and storage medium
CN117156396B (en) * 2023-09-13 2024-05-31 中航信移动科技有限公司 Communication method of networking scene terminal equipment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113141671B (en) 2023-06-20
WO2022222299A1 (en) 2022-10-27

Similar Documents

Publication Publication Date Title
CN113141671B (en) Communication method and device of wifi device and computer readable storage medium
EP2803244B1 (en) Methods and apparatus for establishing a tunneled direct link setup (tdls) session between devices in a wireless network
CN103222287B (en) For the probe message that direct link connects
US9420631B2 (en) WLAN peer-to-peer group owner negotiation
CN110121902B (en) Communication establishment method and terminal
CN105100137B (en) A kind of method and electronic equipment of service discovery
WO2014183404A1 (en) Data transmission method, apparatus, system and terminal
CN102201846B (en) Wireless data transmission system and method based on soft AP (access point) technology
US11452156B2 (en) Configuration system, client device, embedded device configuration method, and storage medium
CN111885680A (en) Method, system and core equipment for establishing network connection
CN113596191A (en) Data processing method, network element equipment and readable storage medium
CN110602682A (en) Network management system and method based on Bluetooth BLE and mesh mixing
US20230300210A1 (en) Computing aware-session management method and communication apparatus
CN101247316A (en) Data sharing method of communication terminal
CN104936258A (en) Network access method, terminal and system
TW201737753A (en) Network access method, and associated equipment and system
CN108270745A (en) A kind of method for pushing of service customizing information, terminal and master control bluetooth equipment
JP2003289309A (en) Radio communication terminal
CN109195141B (en) Base station opening method and device, computer storage medium and equipment
WO2024067757A1 (en) Cross-terminal-communication device management method, system and apparatus based on bus, and medium
CN115669185A (en) Data transmission method, device and storage medium
CN115767531A (en) Bluetooth authentication method, device, electronic device and storage medium
CN113873554A (en) Method and system for acquiring and issuing synchronous configuration of Mesh networking
WO2018058385A1 (en) Network interworking method, network element, and system
CN110418430B (en) Application sending and receiving method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant