CN114079876B - Communication control method, communication control device, communication apparatus, and storage medium - Google Patents

Communication control method, communication control device, communication apparatus, and storage medium Download PDF

Info

Publication number
CN114079876B
CN114079876B CN202010802871.0A CN202010802871A CN114079876B CN 114079876 B CN114079876 B CN 114079876B CN 202010802871 A CN202010802871 A CN 202010802871A CN 114079876 B CN114079876 B CN 114079876B
Authority
CN
China
Prior art keywords
key information
master device
controlling
message
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010802871.0A
Other languages
Chinese (zh)
Other versions
CN114079876A (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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202010802871.0A priority Critical patent/CN114079876B/en
Publication of CN114079876A publication Critical patent/CN114079876A/en
Application granted granted Critical
Publication of CN114079876B publication Critical patent/CN114079876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security

Landscapes

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

Abstract

The application relates to a communication control method, a communication control device, a communication device and a storage medium. The method comprises the following steps: acquiring beacon frames sent by different NAN devices in a preset area range in real time; when detecting that the beacon frames of at least two NAN devices contain preset private mode information, pushing a main device designation message to a management terminal; receiving a master device identifier, wherein the master device identifier is obtained by determining a master device from at least two NAN devices by a management terminal according to a master device designated message; and acquiring the key information, and controlling the main equipment corresponding to the main equipment identifier to establish a private cluster according to the key information. By adopting the method, the preset private mode information is detected in the beacon frame of the NAN equipment, and the created cluster is encrypted through the key information, so that only the equipment with the corresponding authority can join the private cluster, and the communication security of the NAN equipment in the created private cluster is improved.

Description

Communication control method, communication control device, communication apparatus, and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication control method, an apparatus, a communication device, and a storage medium.
Background
With the development of communication technology, a NAN (Neighbor Awareness Networking) technology appears, where the NAN is a wireless local area network protocol proposed by a Wi-Fi alliance, authentication of the NAN is performed on the name of Wi-Fi Awareness, and the NAN is used to facilitate devices supporting the NAN to perceive other devices within a certain range.
By establishing a cluster, i.e., a group of NAN devices, signal frames are broadcast to each device in the group that can receive a specific channel, so as to maintain information awareness among the devices in the group. In the conventional technology, NAN devices may find or join any NAN cluster, which may easily cause information leakage of the NAN cluster, that is, the communication between the NAN devices in the conventional technology has a problem of low security.
Disclosure of Invention
In view of the above, it is necessary to provide a communication control method, apparatus, computer device, and storage medium capable of improving communication security.
A method of communication control, the method comprising:
acquiring beacon frames sent by different NAN devices in a preset area range in real time;
when detecting that beacon frames of at least two NAN devices contain preset private mode information, pushing a main device designation message to a management terminal;
receiving a master device identifier, wherein the master device identifier is obtained by the management terminal according to the master device designation message and determining a master device from the at least two NAN devices;
and acquiring key information, and controlling the main equipment corresponding to the main equipment identifier to establish a private cluster according to the key information.
In one embodiment, after the controlling the master device corresponding to the master device identifier to create the private cluster according to the key information, the method further includes:
receiving a group entering message initiated by a slave device, wherein the group entering message carries key information to be verified, and the slave device is a device other than the master device in the at least two NAN devices;
and when the key information to be verified is consistent with the key information, controlling the slave equipment to join the private cluster.
In one embodiment, after the controlling the master device corresponding to the master device identifier to create the private cluster according to the key information, the method further includes:
controlling the master device to push a group invitation message to a slave device, the group invitation message being derived by the master device according to the key information, the slave device being a device other than the master device of the at least two NAN devices;
controlling the slave device to join the private cluster when detecting that the slave device activates the group offer message.
In one embodiment, after the controlling the slave device to join the private cluster, the method further includes:
controlling the master device to send a first data frame to the slave device, wherein the first data frame is encrypted through the key information;
and controlling the slave equipment to decrypt the first data frame, generating a second data frame according to the decrypted first data frame, encrypting the second data frame through the key information, and sending the encrypted second data frame to the master equipment.
In one embodiment, the method further comprises:
when detecting that target equipment is in a signal coverage range of the main equipment, receiving a group entering message initiated by the target equipment, wherein the group entering message carries key information to be verified;
and when the key information to be verified is consistent with the key information, controlling the target equipment to join the private cluster.
In one embodiment, the method further comprises:
when detecting that target equipment is in a signal coverage range of the main equipment, controlling the main equipment to push a group invitation message to the target equipment, wherein the group invitation message is obtained by the main equipment according to the key information;
controlling the target device to join the private cluster when detecting that the target device activates the group invitation message.
A communication control apparatus, the apparatus comprising:
the beacon frame acquisition module is used for acquiring beacon frames sent by different NAN devices in a preset area range in real time;
the device management module is used for pushing a main device designation message to the management terminal when detecting that beacon frames of at least two NAN devices contain preset private mode information;
a master device obtaining module, configured to receive a master device identifier, where the master device identifier is obtained by the management terminal determining a master device from the at least two NAN devices according to the master device designation message;
and the private cluster creating module is used for acquiring key information and controlling the main equipment corresponding to the main equipment identifier to create a private cluster according to the key information.
A communication device comprising a memory and a processor, the memory storing a computer program, the processor when executing the computer program implementing the steps of:
acquiring beacon frames sent by different NAN devices in a preset area range in real time;
when detecting that beacon frames of at least two NAN devices contain preset private mode information, pushing a main device designation message to a management terminal;
receiving a master device identifier, wherein the master device identifier is obtained by the management terminal according to the master device designation message and determining a master device from the at least two NAN devices;
and acquiring key information, and controlling the main equipment corresponding to the main equipment identifier to establish a private cluster according to the key information.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring beacon frames sent by different NAN devices in a preset area range in real time;
when detecting that beacon frames of at least two NAN devices contain preset private mode information, pushing a main device designation message to a management terminal;
receiving a master device identifier, wherein the master device identifier is obtained by the management terminal according to the master device designation message and determining a master device from the at least two NAN devices;
and acquiring key information, and controlling the main equipment corresponding to the main equipment identifier to establish a private cluster according to the key information.
According to the communication control method, the communication control device, the communication equipment and the storage medium, the beacon frames sent by different NAN equipment in the preset area range are obtained in real time; when detecting that beacon frames of at least two NAN devices contain preset private mode information, pushing a main device designation message to a management terminal; receiving a master device identifier, wherein the master device identifier is obtained by determining a master device from at least two NAN devices by a management terminal according to a master device designated message; the method comprises the steps of obtaining key information, controlling the main device corresponding to the main device identification to create a private cluster according to the key information, detecting preset private mode information in a beacon frame of the NAN device, and encrypting the created cluster through the key information, so that only the device with the corresponding authority can join the private cluster, and the communication safety of the NAN device in the created private cluster is improved.
Drawings
FIG. 1 is a flow diagram illustrating a communication control method according to an embodiment;
FIG. 2 is a diagram of a beacon frame format in one embodiment;
FIG. 3 is a schematic diagram that illustrates the flow of private cluster creation in one embodiment;
FIG. 4 is a flow diagram that illustrates joining a private cluster, according to one embodiment;
FIG. 5 is a schematic diagram of a cluster in one embodiment;
FIG. 6 is a block diagram showing the structure of a communication control apparatus according to an embodiment;
fig. 7 is an internal structural diagram of a communication device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In an embodiment, as shown in fig. 1, a communication control method is provided, and this embodiment is illustrated by applying the method to a server, and it is understood that the method may also be applied to a management terminal, and may also be applied to a system including the management terminal and the server, and is implemented by interaction between the management terminal and the server. In this embodiment, the method includes the steps of:
and 102, acquiring beacon frames sent by different NAN devices in a preset area range in real time.
The beacon frame is used for announcing the existence of the neighbor aware network, the device sends the beacon frame, the range of the beacon frame is the service area of the neighbor aware network, and the communication between the devices needs to be carried out by the neighbor aware network, so the distance between the devices needing to communicate cannot be too far, otherwise, the devices cannot receive the beacons sent by each other, namely, the devices cannot communicate. The NAN equipment sends out beacon frames when entering a certain area, and the server detects the beacon frames in a preset area range in real time and judges whether different NAN equipment exists or not.
And 104, when detecting that the beacon frames of the at least two NAN devices contain preset private mode information, pushing a main device designation message to the management terminal.
A specific beacon frame format is shown in fig. 2, where FC refers to frame control, and is used to define the category of a frame, and occupies 2 bytes; duration refers to the length of time required for completing frame exchange, and occupies 2 bytes; A1-A3 refer to addresses, each occupying 6 bytes; ctrl (SC) refers to sequence control, used to filter repeated frames, occupying 2 bytes; time Stamp (TS) refers to a timestamp, taking 8 bytes; beacon Interval (BI) refers to a Beacon Interval, occupying 2 bytes; the capability is used for informing each party of the performance of the network when sending the beacon frame, and occupies 2 bytes; the NAN IE is used for identifying a private mode and is variable data; FCS refers to a frame check sequence, and takes 4 bytes. When the server detects that information representation corresponding to NAN IEs in beacon frames of at least two NAN devices supports a private mode, the server pushes a main device designation message to the management terminal.
And 106, receiving a master device identifier, wherein the master device identifier is obtained by determining the master device from the at least two NAN devices according to the master device designated message by the management terminal.
The management terminal specifies a master device from at least two NAN devices according to the master device specifying message, for example, the devices D1 and D2 are detected, and the administrator specifies the device D1 as the master device through an interactive interface of the management terminal, and then the device D2 is a slave device. The management terminal sends the master device identification (D1) specified by the administrator to the server, and the server knows that the device D1 is the master device.
And step 108, acquiring the key information, and controlling the main equipment corresponding to the main equipment identifier to create a private cluster according to the key information.
The server acquires the key information set by an administrator through an interactive interface of the management terminal, or the server acquires the set key information through an interactive interface of the device D1, and after the key information is acquired, the server controls the main device to create the private cluster, generates the unique identifier of the private cluster, and encrypts the private cluster based on the key information.
In the communication control method, beacon frames sent by different NAN devices in a preset area range are acquired in real time; when detecting that beacon frames of at least two NAN devices contain preset private mode information, pushing a main device designation message to a management terminal; receiving a master device identifier, wherein the master device identifier is obtained by determining a master device from at least two NAN devices by a management terminal according to a master device designated message; the method comprises the steps of obtaining key information, controlling the main device corresponding to the main device identification to create a private cluster according to the key information, detecting preset private mode information in a beacon frame of the NAN device, and encrypting the created cluster through the key information, so that only the device with the corresponding authority can join the private cluster, and the communication safety of the NAN device in the created private cluster is improved.
In one embodiment, after controlling the master device corresponding to the master device identifier to create the private cluster according to the key information, the method further includes: receiving a group entering message initiated by slave equipment, wherein the group entering message carries key information to be verified, and the slave equipment is equipment except for master equipment in at least two NAN equipment; and when the key information to be verified is consistent with the key information, controlling the slave equipment to join the private cluster. The slave device joins the private cluster created by the master device by inputting the key, and devices without the key or without the key pair cannot join the private cluster, so that the communication security of the private cluster is ensured.
In one embodiment, after controlling the master device corresponding to the master device identifier to create the private cluster according to the key information, the method further includes: the method comprises the steps that the master device is controlled to push an entering group invitation message to the slave device, the entering group invitation message is obtained by the master device according to key information, and the slave device is a device except the master device in at least two NAN devices; controlling the slave device to join the private cluster when the slave device activation of the group invitation message is detected. The slave device joins the private cluster created by the master device through the group invitation of the master device, and the device which does not receive the group invitation sent by the master device cannot join the private cluster, so that the communication security of the private cluster is ensured. The group invitation message pushed by the master device may specifically be a two-dimensional code generated according to the key information, and the slave device scans the two-dimensional code generated by the master device and joins the private cluster created by the master device.
In one embodiment, after controlling the slave device to join the private cluster, the method further includes: the method comprises the steps of controlling a master device to send a first data frame to a slave device, wherein the first data frame is encrypted through key information; the slave device is controlled to decrypt the first data frame, a second data frame is generated according to the decrypted first data frame, the second data frame is encrypted through the key information, and the encrypted second data frame is sent to the master device. The master device sends the data frame encrypted by the key information to carry out data communication with the slave device, the slave device can read the data sent by the master device after decoding by using the key information, and the data is also encrypted by using the key information and then sent when being fed back to the master device, so that the communication safety of information interaction between the master device and the slave device can be ensured.
In one embodiment, the communication control method further comprises: when detecting that the target equipment is in the signal coverage range of the main equipment, receiving an entering group message initiated by the target equipment, wherein the entering group message carries the information of a key to be verified; and when the key information to be verified is consistent with the key information, controlling the target equipment to join the private cluster. When other devices enter the coverage range of the private cluster, the devices can join the private cluster created by the master device in a key input mode.
In one embodiment, the communication control method further comprises: when detecting that the target equipment is in the signal coverage range of the main equipment, controlling the main equipment to push an incoming group invitation message to the target equipment, wherein the incoming group invitation message is obtained by the main equipment according to the key information; and controlling the target equipment to join the private cluster when detecting that the target equipment activates the group invitation message. When other devices enter the coverage range of the private cluster, the device can join the private cluster created by the master device through the group invitation of the master device.
The application also provides an application scene, and the application scene applies the communication control method. Specifically, the creation flow of the private cluster is as shown in fig. 3, and the communication control method is applied in the application scenario as follows: the two pNAN devices D1 and D2 realize mutual discovery through the beacon frame or the cluster identifier carrying the private mode information, the pNAN devices refer to devices supporting the private mode, and when the devices D1 and D2 discover each other, namely when the server detects that the beacon frames of the devices D1 and D2 contain the preset private mode information, the master device appoints a message to the management terminal. The user brakes one of the devices through the management terminal as a master device, for example, designates D1 as the master device, the server receives a master device identifier fed back by the management terminal, acquires the key information, and the control device D1 creates the private cluster according to the key information. The device D2 may join the private cluster by inputting a key or by scanning a two-dimensional code generated by the device D1 according to the key information. Device D2 may also join the private cluster by receiving the group offer message pushed by D1, activating the group offer message. The device D1 sends a management frame encrypted by using the key K, the management frame can be decrypted only by the device D2 with the key K, in the created private cluster, the device D1 sends a discovery beacon and a synchronization beacon carrying private mode information, the synchronization information is encrypted, and the device D2 receives the beacon carrying the private mode information.
The application also provides an application scenario, and the application scenario applies the communication control method. Specifically, the procedure of joining the private cluster is shown in fig. 4, and the communication control method is applied in the application scenario as follows: and D1 receives the beacon frame which is sent by the pNAN device D3 and carries the private mode information and is added with the cluster identifier or D3 receives the beacon frame which is sent by D1 and carries the private mode information and is created with the cluster identifier, and the D3 is judged to enter the signal coverage range of the device D1. When the D3 enters a signal coverage range of the device D1 and the added cluster identifier is different from the created cluster identifier, the server receives a group entering message initiated by the D3, wherein the group entering message carries the key information to be verified; and when the key information to be verified is consistent with the key information of the D1, the control device D3 is added into the private cluster created by the D1. Or when detecting that the D3 enters the signal coverage of the device D1, the server controls the main device to push a group invitation message to the device D3, wherein the group invitation message is obtained by the device D1 according to the key information; when detecting that device D3 activates the group offer message, controlling device D3 to join the privacy cluster created by D1.
The communication control method can realize that one cluster A comprising a plurality of devices and another cluster B comprising a plurality of devices are independent from each other, namely, the information of each independent cluster cannot be accessed, the cluster is shown in fig. 5, and one device can belong to both the cluster A and the cluster B so as to ensure the communication safety between the cluster devices. The communication control method can be applied to a conference perception scene, and all devices in a conference room, such as televisions, projectors, mobile devices and the like, can perceive the existence of each other based on a neighbor perception network. When a user wishes to project a screen of a mobile phone through a television/projector or to transfer data between devices, only users who are in the same meeting room and join a particular cluster can access the screen or the transferred data, and thus there is no need to worry about privacy or security issues. The communication control method can also be applied to order perception scenes, taking a coffee shop as an example, by creating a private cluster in the coffee shop, a user can receive order prompting information on a mobile phone, and after a merchant receives an order, the user can be separated from the private cluster and switched to a NAN public mode. The communication control method can also be applied to an attendance perception scene, the user can complete attendance by scanning the two-dimensional code generated by the NAN main equipment through the user terminal, and in addition, the NAN main equipment can serve as a router with NAN function for equipment verification. The communication control method can also be applied to a learning group perception scene, for example, students who study in a library can establish an information sharing private cluster to realize information sharing such as notes.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in fig. 1 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In one embodiment, as shown in fig. 6, there is provided a communication control apparatus including: a beacon frame acquisition module 602, a device management module 604, a master device acquisition module 606, and a privacy cluster creation module 608, wherein:
a beacon frame acquiring module 602, configured to acquire, in real time, beacon frames sent by different NAN devices within a preset area range;
the device management module 604 is configured to, when it is detected that beacon frames of at least two NAN devices include preset private mode information, push a master device designation message to the management terminal;
a master device obtaining module 606, configured to receive a master device identifier, where the master device identifier is obtained by the management terminal determining a master device from the at least two NAN devices according to the master device specifying message;
the private cluster creating module 608 is configured to obtain key information, and control the master device corresponding to the master device identifier to create a private cluster according to the key information.
In one embodiment, the communication control apparatus further includes: the device comprises an in-group message receiving module, a group sending module and a group receiving module, wherein the in-group message receiving module is used for receiving an in-group message initiated by a slave device, the in-group message carries key information to be verified, and the slave device is a device except a master device in at least two NAN devices; and the private cluster adding module is used for controlling the slave equipment to be added into the private cluster when the key information to be verified is consistent with the key information.
In one embodiment, the communication control apparatus further includes: the group entering module is used for controlling the master device to push a group entering invitation message to the slave device, the group entering invitation message is obtained by the master device according to the key information, and the slave device is a device except the master device in the at least two NAN devices; controlling the slave device to join the private cluster when the slave device activation of the group invitation message is detected.
In one embodiment, the communication control apparatus further includes: the data transmission module is used for controlling the master equipment to send a first data frame to the slave equipment, wherein the first data frame is encrypted through the key information; the slave device is controlled to decrypt the first data frame, a second data frame is generated according to the decrypted first data frame, the second data frame is encrypted through the key information, and the encrypted second data frame is sent to the master device.
In one embodiment, the communication control apparatus further includes: the key control module is used for receiving an entering group message initiated by the target equipment when the target equipment is detected to be in the signal coverage range of the main equipment, wherein the entering group message carries the key information to be verified; and when the key information to be verified is consistent with the key information, controlling the target equipment to join the private cluster.
In one embodiment, the communication control apparatus further includes: the invitation control module is used for controlling the main equipment to push a group invitation message to the target equipment when the target equipment is detected to be in the signal coverage range of the main equipment, wherein the group invitation message is obtained by the main equipment according to the key information; and controlling the target equipment to join the private cluster when detecting that the target equipment activates the group invitation message.
For specific limitations of the communication control device, reference may be made to the above limitations of the communication control method, which are not described herein again. The respective modules in the above communication control apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a communication device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The communication device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the communication device is configured to provide computing and control capabilities. The memory of the communication device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the communication device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a communication control method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a communication device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: acquiring beacon frames sent by different NAN devices in a preset area range in real time; when detecting that beacon frames of at least two NAN devices contain preset private mode information, pushing a main device designation message to a management terminal; receiving a master device identifier, wherein the master device identifier is obtained by determining a master device from at least two NAN devices by a management terminal according to a master device designated message; and acquiring the key information, and controlling the main equipment corresponding to the main equipment identifier to establish a private cluster according to the key information.
In one embodiment, the processor when executing the computer program further performs the steps of: receiving a group entering message initiated by slave equipment, wherein the group entering message carries key information to be verified, and the slave equipment is equipment except for master equipment in at least two NAN (neighbor access network) equipment; and when the key information to be verified is consistent with the key information, controlling the slave equipment to join the private cluster.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the method comprises the steps that a master device is controlled to push a group invitation message to a slave device, the group invitation message is obtained by the master device according to key information, and the slave device is a device except the master device in at least two NAN devices; controlling the slave device to join the private cluster when the slave device activation of the group invitation message is detected.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the method comprises the steps that a master device is controlled to send a first data frame to a slave device, wherein the first data frame is encrypted through key information; the slave device is controlled to decrypt the first data frame, a second data frame is generated according to the decrypted first data frame, the second data frame is encrypted through the key information, and the encrypted second data frame is sent to the master device.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when detecting that the target equipment is in the coverage area of the private cluster and a beacon frame of the target equipment contains preset private mode information, receiving an entering group message initiated by the target equipment, wherein the entering group message carries the information of a key to be verified; and when the key information to be verified is consistent with the key information, controlling the target equipment to join the private cluster.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when detecting that the target equipment is in the coverage area of the private cluster and a beacon frame of the target equipment contains preset private mode information, controlling the main equipment to push a group invitation message to the target equipment, wherein the group invitation message is obtained by the main equipment according to the key information; and when detecting that the target equipment activates the group invitation message, controlling the target equipment to join the private cluster.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring beacon frames sent by different NAN devices in a preset area range in real time; when detecting that the beacon frames of at least two NAN devices contain preset private mode information, pushing a main device designation message to a management terminal; receiving a master device identifier, wherein the master device identifier is obtained by determining a master device from at least two NAN devices by a management terminal according to a master device designation message; and acquiring the key information, and controlling the main equipment corresponding to the main equipment identifier to establish a private cluster according to the key information.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a group entering message initiated by slave equipment, wherein the group entering message carries key information to be verified, and the slave equipment is equipment except for master equipment in at least two NAN (neighbor access network) equipment; and when the key information to be verified is consistent with the key information, controlling the slave equipment to join the private cluster.
In one embodiment, the computer program when executed by the processor further performs the steps of: the method comprises the steps that the master device is controlled to push an entering group invitation message to the slave device, the entering group invitation message is obtained by the master device according to key information, and the slave device is a device except the master device in at least two NAN devices; controlling the slave device to join the private cluster when the slave device activation of the group invitation message is detected.
In one embodiment, the computer program when executed by the processor further performs the steps of: the method comprises the steps that a master device is controlled to send a first data frame to a slave device, wherein the first data frame is encrypted through key information; the slave device is controlled to decrypt the first data frame, a second data frame is generated according to the decrypted first data frame, the second data frame is encrypted through the key information, and the encrypted second data frame is sent to the master device.
In one embodiment, the computer program when executed by the processor further performs the steps of: when detecting that the target equipment is in the coverage area of the private cluster and a beacon frame of the target equipment contains preset private mode information, receiving an entering group message initiated by the target equipment, wherein the entering group message carries the information of a key to be verified; and when the key information to be verified is consistent with the key information, controlling the target equipment to join the private cluster.
In one embodiment, the computer program when executed by the processor further performs the steps of: when detecting that the target equipment is in the coverage area of the private cluster and a beacon frame of the target equipment contains preset private mode information, controlling the main equipment to push a group invitation message to the target equipment, wherein the group invitation message is obtained by the main equipment according to the key information; and controlling the target equipment to join the private cluster when detecting that the target equipment activates the group invitation message.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), for example.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of communication control, the method comprising:
acquiring beacon frames sent by different NAN devices in a preset area range in real time;
when detecting that beacon frames of at least two NAN devices contain preset private mode information, pushing a main device designation message to a management terminal;
receiving a master device identifier, wherein the master device identifier is obtained by the management terminal according to the master device designation message and determining a master device from the at least two NAN devices;
and acquiring key information, and controlling the main equipment corresponding to the main equipment identifier to establish a private cluster according to the key information.
2. The method of claim 1, wherein after the controlling the master device corresponding to the master device identifier to create the private cluster according to the key information, the method further comprises:
receiving a group entering message initiated by a slave device, wherein the group entering message carries key information to be verified, and the slave device is a device other than the master device in the at least two NAN devices;
and when the key information to be verified is consistent with the key information, controlling the slave equipment to join the private cluster.
3. The method of claim 1, wherein after the controlling the master device corresponding to the master device identifier to create the private cluster according to the key information, the method further comprises:
controlling the master device to push a group invitation message to a slave device, the group invitation message being obtained by the master device according to the key information, the slave device being a device other than the master device of the at least two NAN devices;
controlling the slave device to join the private cluster when detecting that the slave device activates the group offer message.
4. The method of claim 2 or 3, wherein after the controlling the slave device to join the private cluster, further comprising:
controlling the master device to send a first data frame to the slave device, wherein the first data frame is encrypted through the key information;
and controlling the slave equipment to decrypt the first data frame, generating a second data frame according to the decrypted first data frame, encrypting the second data frame through the key information, and sending the encrypted second data frame to the master equipment.
5. The method of claim 1, further comprising:
when detecting that target equipment is in a signal coverage range of the main equipment, receiving an entering group message initiated by the target equipment, wherein the entering group message carries key information to be verified;
and when the key information to be verified is consistent with the key information, controlling the target equipment to join the private cluster.
6. The method of claim 1, further comprising:
when detecting that the target equipment is in the signal coverage range of the main equipment, controlling the main equipment to push a group invitation message to the target equipment, wherein the group invitation message is obtained by the main equipment according to the key information;
controlling the target device to join the private cluster when detecting that the target device activates the group invitation message.
7. A communication control apparatus, characterized in that the apparatus comprises:
the beacon frame acquisition module is used for acquiring beacon frames sent by different NAN devices in a preset area range in real time;
the device management module is used for pushing a main device designation message to the management terminal when detecting that beacon frames of at least two NAN devices contain preset private mode information;
a master device obtaining module, configured to receive a master device identifier, where the master device identifier is obtained by the management terminal according to the master device designation message and determining a master device from the at least two NAN devices;
and the private cluster creating module is used for acquiring key information and controlling the main equipment corresponding to the main equipment identifier to create a private cluster according to the key information.
8. The apparatus of claim 7, further comprising:
a group entry message receiving module, configured to receive a group entry message initiated by a slave device, where the group entry message carries key information to be verified, and the slave device is a device other than the master device in the at least two NAN devices;
and the private cluster adding module is used for controlling the slave equipment to be added into the private cluster when the key information to be verified is consistent with the key information.
9. A communication device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on 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 6.
CN202010802871.0A 2020-08-11 2020-08-11 Communication control method, communication control device, communication apparatus, and storage medium Active CN114079876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010802871.0A CN114079876B (en) 2020-08-11 2020-08-11 Communication control method, communication control device, communication apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010802871.0A CN114079876B (en) 2020-08-11 2020-08-11 Communication control method, communication control device, communication apparatus, and storage medium

Publications (2)

Publication Number Publication Date
CN114079876A CN114079876A (en) 2022-02-22
CN114079876B true CN114079876B (en) 2022-11-15

Family

ID=80279983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010802871.0A Active CN114079876B (en) 2020-08-11 2020-08-11 Communication control method, communication control device, communication apparatus, and storage medium

Country Status (1)

Country Link
CN (1) CN114079876B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108541044B (en) * 2013-08-13 2019-12-24 华为终端有限公司 Method and device for joining proximity-aware network device group
US20180359633A1 (en) * 2017-06-12 2018-12-13 Apple Inc. Neighbor Awareness Networking Device Pairing
CN108260188B (en) * 2018-02-28 2021-02-19 惠州Tcl移动通信有限公司 Wi-Fi connection control method and system
CN109474896B (en) * 2018-11-16 2022-04-22 Tcl移动通信科技(宁波)有限公司 Decentralized block chain implementation method, decentralized block chain implementation system and storage medium

Also Published As

Publication number Publication date
CN114079876A (en) 2022-02-22

Similar Documents

Publication Publication Date Title
US20220029975A1 (en) Authentication and authorization in proximity based service communication using a group key
US7987360B2 (en) Method for implementing grouping devices and interacting among grouped devices
US10277939B2 (en) System and device for interacting with a remote presentation
US11233817B2 (en) Methods and apparatus for end device discovering another end device
CN111212426B (en) Terminal access method, terminal, micro base station and access system
CN109413194B (en) User information cloud cooperative processing and transferring method for mobile communication system
WO2023280194A1 (en) Network connection management method and apparatus, readable medium, program product, and electronic device
CN112600820B (en) Network connection method, device, computer equipment and storage medium
EP3528468A1 (en) Profile information sharing
US20220053334A1 (en) Using a network requirements field to provide a station access to a network
JP2014509468A (en) Method and system for out-of-band delivery of wireless network credentials
EP4055860B1 (en) Open access in neutral host network environments
WO2016112677A1 (en) Discovery service code checking processing method and device, and discovery service code checking method and device
WO2021051922A1 (en) Method for transmitting data in group, terminal and computer-readable storage medium
KR20220076491A (en) Provisioning a wireless network using a pre-shared key
CN1953446A (en) A communication system and method
CN111093196B (en) Method for 5G user terminal to access 5G network, user terminal equipment and medium
CN114079876B (en) Communication control method, communication control device, communication apparatus, and storage medium
WO2020147854A1 (en) Authentication method, apparatus and system, and storage medium
CN115426178B (en) Calling method, calling device, electronic equipment and computer readable medium
CN116235524A (en) Secure communication method and device
EP2779721A1 (en) Method of privacy preserving during a device to device social networking
CN106162515B (en) Method, device and system for machine type communication safety communication
WO2023045472A1 (en) Communication method, apparatus and system
CN111147269B (en) Access point configuration method, networking system, access point and storage medium

Legal Events

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