CN116056258A - Networking processing method and device and electronic equipment - Google Patents

Networking processing method and device and electronic equipment Download PDF

Info

Publication number
CN116056258A
CN116056258A CN202211732757.0A CN202211732757A CN116056258A CN 116056258 A CN116056258 A CN 116056258A CN 202211732757 A CN202211732757 A CN 202211732757A CN 116056258 A CN116056258 A CN 116056258A
Authority
CN
China
Prior art keywords
networking
inheritance
slave
master device
broadcast message
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.)
Pending
Application number
CN202211732757.0A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202211732757.0A priority Critical patent/CN116056258A/en
Publication of CN116056258A publication Critical patent/CN116056258A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • 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
    • 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)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a networking processing method, a networking processing device and electronic equipment, wherein under a certain networking environment, a master device can determine a first slave device meeting the inheritance condition of the master device from a plurality of slave devices; after the master device inheritance identification configured for the first slave device is obtained, a broadcast message is sent to the plurality of slave devices, for example, the broadcast message sent to the first slave device contains the master device inheritance identification, so that when the networking update condition is met, the first slave device with the master device inheritance identification processes networking connection among the plurality of networking devices.

Description

Networking processing method and device and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a networking processing method, a device, and an electronic device.
Background
In the interconnection scenario of multiple device networking, a master-slave mode is generally adopted to perform device networking, which device is a master device and which device is a slave device is often required to be configured in multiple devices to be networked, so that the networking efficiency among the devices is affected.
In order to improve the above problem, a voting mode among devices is adopted to determine master and slave devices in a plurality of devices, which often requires a great deal of time to negotiate among the plurality of devices, and reduces networking efficiency.
Disclosure of Invention
In order to solve the technical problems, the application provides the following technical scheme:
the application provides a networking processing method which is applied to a main device, and the method comprises the following steps:
determining a first slave device meeting the inheritance condition of the master device from a plurality of slave devices;
obtaining a master inheritance identity configured for the first slave device;
sending broadcast messages to the plurality of slave devices; the broadcast message sent to the first slave device contains the master device inheritance identifier, so that when a networking update condition is met, the first slave device with the master device inheritance identifier processes networking connection among a plurality of networking devices.
Optionally, the method further comprises:
obtaining data to be backed up of the main equipment;
and adding the data to be backed up to a broadcast message sent to the first slave device so as to enable the first slave device to synchronize the data to be backed up of the master device.
Optionally, sending broadcast messages to the plurality of slave devices includes:
transmitting a broadcast message containing the master device inheritance identification to the plurality of slave devices; or alternatively, the process may be performed,
the first slave device is sent to the second slave device by the broadcast message containing the master device inheritance identification; the second slave device refers to a slave device other than the first slave device among the plurality of slave devices.
Optionally, the determining, from the plurality of slave devices, a first slave device that meets the master device inheritance condition includes:
obtaining networking characteristic data of each of a plurality of slave devices;
and determining a first slave device meeting the inheritance condition of the master device according to the networking characteristic data.
Optionally, the method further comprises:
performing hard encryption processing on at least the main equipment inheritance identifier by utilizing a preset hardware encryption characteristic to obtain a corresponding encrypted file;
and processing the encrypted file according to a preset frame structure of a Bluetooth BLE broadcasting mode to obtain a broadcasting message containing the encrypted file.
The application also provides a networking processing method which is applied to the first networking device, and the method comprises the following steps:
detecting that networking updating conditions are met, wherein the first networking equipment has a main equipment inheritance identifier, and determining the first networking equipment as main equipment; the master device inheritance identification is determined based on the master device inheritance condition when the networking updating condition is not met;
creating a networking access point and obtaining an access identifier of the networking access point;
sending a network access broadcast message to a second networking device without the main device inheritance identification; the network access broadcast message at least comprises the access identifier.
Optionally, the method further comprises:
if the first networking device does not have the master device inheritance identification, determining that the first networking device is a slave device;
receiving a network access broadcast message sent by the determined master device; the network access broadcast message at least comprises an access identifier of a networking access point created by the determined master device;
and sending a response broadcast message to the determined master device according to the access identifier so as to access the networking access point.
Optionally, the method further comprises:
obtaining a preset hardware encryption characteristic of the main equipment in the network-access broadcast message according to a preset frame structure of a Bluetooth BLE broadcasting mode;
and decrypting the encrypted file contained in the network access broadcast message by utilizing the preset hardware encryption characteristic to obtain the access identifier of the networking access point created by the master equipment.
Optionally, in the case that the first networking device has a master device inheritance identifier, the method further includes:
determining that at least one third networking device has the main device inheritance identification, sending a first election broadcast message to the third networking device, and receiving a third election broadcast message sent by the third networking device; the first election broadcast message comprises first networking characteristic data capable of representing networking capability of the first networking device, and the third election broadcast message comprises third networking characteristic data representing networking capability of a corresponding third networking device;
Determining that the first networking feature data is higher than the third networking feature data; or the first networking feature data is equal to the third networking feature data, but the first broadcast time contained in the first election broadcast message is earlier than the third broadcast time contained in the third election broadcast message, and the step of executing the step of determining that the first networking device is the main device.
Optionally, the method further comprises: determining that the first networking feature data is lower than the third networking feature data; or the first networking feature data is equal to the third networking feature data, but the first broadcasting time contained in the first election broadcasting message is later than the third broadcasting time contained in the third election broadcasting message, the first election broadcasting message is stopped from being sent, and the networking broadcasting message sent by the third networking device which is determined to be the main device is received.
The application also provides a networking processing device, which is applied to the main equipment and comprises:
the first slave device determining module is used for determining a first slave device meeting the inheritance condition of the master device from the plurality of slave devices;
the master device inheritance identification obtaining module is used for obtaining a master device inheritance identification configured for the first slave device;
The broadcast message sending module is used for sending broadcast messages to the plurality of slave devices; the broadcast message sent to the first slave device contains the master device inheritance identifier, so that when a networking update condition is met, the first slave device with the master device inheritance identifier processes networking connection among a plurality of networking devices.
The application also provides a networking processing device, which is applied to the first networking equipment, and comprises:
the main equipment determining module is used for detecting that networking updating conditions are met, the first networking equipment is provided with a main equipment inheritance identifier, and the first networking equipment is determined to be the main equipment; the master device inheritance identification is determined based on the master device inheritance condition when the networking updating condition is not met;
the creation module is used for creating a networking access point;
an access identifier obtaining module, configured to obtain an access identifier of the networking access point;
the network access broadcast message sending module is used for sending a network access broadcast message to a second networking device which does not have the main device inheritance identification; the network access broadcast message at least comprises the access identifier.
The application also provides electronic equipment, which comprises:
A communication module;
and the processing device is used for realizing the networking processing method.
Therefore, the application provides a networking processing method, a networking processing device and electronic equipment, and in a certain networking environment, a master device can determine a first slave device meeting the inheritance condition of the master device from a plurality of slave devices; after the master device inheritance identification configured for the first slave device is obtained, a broadcast message is sent to the plurality of slave devices, for example, the broadcast message sent to the first slave device contains the master device inheritance identification, so that when the networking update condition is met, the first slave device with the master device inheritance identification processes networking connection among the plurality of networking devices.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of an alternative example of a networking method proposed in the present application;
FIG. 2 is a schematic flow chart of yet another alternative example of the networking processing method proposed in the present application;
FIG. 3 is a schematic flow chart of another alternative example of the networking processing method proposed in the present application;
FIG. 4 is a schematic flow chart of yet another alternative example of the networking processing method proposed in the present application;
FIG. 5 is a schematic flow chart of another alternative example of the networking processing method proposed in the present application;
FIG. 6 is a flow chart of yet another alternative example of a networking method presented herein;
FIG. 7 is a schematic structural diagram of an alternative example of a networking device according to the present application;
FIG. 8 is a schematic structural diagram of another alternative example of a networking device according to the present application;
fig. 9 is a schematic structural diagram of an alternative example of an electronic device suitable for the networking processing method proposed in the present application.
Detailed Description
Aiming at the technical problems described in the background art, the application provides that under the networking environment of the current multi-device interconnection, the first slave device meeting the inheritance condition of the master device is selected by the master device to serve as the master device of the next networking, so that under the condition that the master device is disconnected under the current networking environment or the master device needs to be identified again, the first slave device determined by the master device of the last networking is used as the master device, a networking access point is created, surrounding slave devices are informed to access the networking access point, the networking environment of the multi-device interconnection is quickly built, and compared with the processing mode that a plurality of devices spend a large amount of mutual voting of the master devices, the inheritance type networking processing method provided by the application greatly improves the networking efficiency.
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, a flowchart of an optional example of a networking processing method provided in the present application may be applied to a master device in a certain multi-device internet environment, where the master device may include, but is not limited to, a terminal such as a smart phone, an intelligent home/home appliance, a notebook computer, or a network device (such as a wireless router), and when the device is first networked, a master device of a plurality of devices participating in the networking may be determined by adopting a voting or a disqualified voting based on a device networking capability, and in a later dynamic networking application, the master device may quickly implement the next networking by adopting the networking processing method provided in the present application. As shown in fig. 1, the networking processing method may include:
Step S11, determining a first slave device meeting the inheritance condition of the master device from a plurality of slave devices;
in combination with the above description of the technical solution of the present application, the present application hopes that during the next networking, an election link can be omitted, and a network can be quickly rebuilt, and it is proposed that, in the current device internet environment, the master device selects the first slave device that is to be the master device for the next networking according to the preset configured master device inheritance condition. Therefore, the inheritance condition of the master device can be the basis for judging whether the slave device in the current network environment can become the master device of the next networking, and the inheritance condition content of the master device is not limited.
Optionally, in order to ensure the performance of the next networking and improve the robustness of the whole device interconnection network environment, when the host device inheritance condition is configured, the networking capability of the device can be considered, and in general, the stronger the networking capability of the host device, the more efficient the dynamic networking, and the better the performance of the constructed networking network. Therefore, the slave device with the strongest networking capability can be selected as the master device of the next networking and is recorded as the first slave device in the current networking network environment.
In still other embodiments, after obtaining the device information of each slave device in the current network environment, the master device may select a slave device with a specific function or capable of becoming a core device as a master device of the next network, and even select a slave device capable of meeting the communication requirement, the device application requirement and the like as a first slave device in combination with the communication requirement, the device application requirement and the like of the network to become the master device of the next network.
It should be noted that, the method for implementing how the master device selects the next master device for networking, that is, the first slave device, is not limited, including but not limited to the several implementation manners described above, and according to needs, multiple implementation manners may be combined to obtain a new implementation manner of selecting the first slave device, which is not described in detail in the application.
Step S12, obtaining a master device inheritance identification configured for a first slave device;
after the above analysis is performed, the master device selects the first slave device that can become the master device of the next networking, so that, for convenience in the next networking, each networking device participating in the networking can identify whether the master device determines itself to become the master device of the current networking, or even learn which device is the master device determined last time to become the master device of the current networking. The master device in the current networking network can set a master device inheritance identifier, for example, the master device can be used for marking the master device to be the next networking, for example, a specific flag bit is configured to record the master device inheritance identifier, and the content of the master device inheritance identifier and the configuration implementation mode are not limited in the application.
Based on the above, the master device can configure the master device inheritance identification for the selected first slave device, and can subsequently learn which device is the first slave device, namely the master device for the next networking through the master device inheritance identification content. It can be seen that the configured master inheritance identity may be different for different first slaves, but is not limited thereto.
Optionally, after the first slave device is selected, the master device determines the attribute of the inherited master device and becomes the device of the master device of the next networking, so that the master device can also determine whether the first slave device is selected by configuring the inherited identifier of the master device, and only the configured inherited identifier of the master device needs to be sent to the selected first slave device. It can be seen that in this embodiment, the master inheritance identity of the master device for different first slave device configurations may be the same.
Step S13, sending broadcast messages to a plurality of slave devices; the broadcast message sent to the first slave device contains the master device inheritance identification, so that when the networking update condition is met, the first slave device with the master device inheritance identification processes networking connection among a plurality of networking devices.
In any device interconnection network environment, the master device can periodically send broadcast messages to the slave devices, and communication connection between the master device and each slave device is maintained, so that the slave devices can know that the master device in the network environment is not disconnected according to the communication connection. Of course, the master device can also realize the control of any slave device by sending broadcast messages according to the control requirement, so as to meet the requirement of multi-device interconnection application.
Based on the above, after the master device determines the first slave device according to the method described above, surrounding slave devices can be informed to directly know the master device information of the next networking, or when the next networking is performed, whether the networking device is the master device of the current networking or not is determined by detecting whether the device itself has the master device inheritance identification or not.
Therefore, after the master device configures the master device inheritance identifier, the master device inheritance identifier is added to at least a broadcast message sent to the first slave device, so that the first slave device records the content of the broadcast message, and in the next networking process, the first slave device can detect whether the master device inheritance identifier is provided to determine whether the master device is the master device of the current networking, so that when the networking update condition is met, the master device of the previous networking is disconnected (if most slave devices exceed a preset duration and do not receive the broadcast message sent by the master device, etc.), or under the condition that the content of the master device, etc. needs to be re-authenticated due to certain factors, the first slave device can create a networking access point for notifying other networking devices around to access, and a networking environment is built.
Therefore, in the embodiment of the application, the master device directly selects the first slave device capable of becoming the next networking master device from the slave devices in the current multi-device internet environment, the situation of selecting the inherited master device is indicated by configuring the inherited identifier of the master device, and each slave device receiving the broadcast message knows whether the slave device is the next networking master device or not by sending the broadcast message containing the inherited identifier of the master device, so that under the condition that networking update conditions are met and the master-slave device needs to be authenticated again, the first slave device with the inherited identifier of the master device becomes the master device, and voting master device does not need to take a large amount of time, thereby greatly improving networking efficiency and saving resources consumed by networking.
Referring to fig. 2, a flowchart of another alternative example of the networking processing method proposed in the present application may still be applicable to a master device in an existing multi-device interconnection networking environment, as shown in fig. 2, where the method may include:
step S21, obtaining networking characteristic data of each of a plurality of slave devices;
in combination with the above description regarding the inheritance condition of the master device, in some embodiments, the application proposes to select the first slave device according to the networking capability of each slave device, that is, the inheritance condition of the master device is related to the networking capability of the slave device, for example, the slave device with the highest networking capability is selected from each slave device in the current network environment to become the master device of the next networking.
Therefore, in order to obtain the networking capability of each slave device, the networking capability of each slave device may be calculated according to the configuration information of each slave device, for example, the computing capability, the memory capacity, the bandwidth capacity, and the like, and then the networking capability of each slave device is calculated in combination with the contribution value/influence degree of each capability to the networking capability, for example, the networking capability of each slave device is represented by means of the networking score.
Optionally, for the multidimensional capability capable of representing the networking capability of the networking device, configuring the corresponding networking weight, calculating to obtain a corresponding dimension capability value according to configuration information of each dimension capability (such as CPU computing capability, memory capacity MT, bandwidth capacity BT and the like), and obtaining the networking score of the device in a weighted summation mode.
Illustratively, taking the above example of multiple dimension capability as an example, corresponding to any slave device in the current network environment, the slave device may obtain its own networking score and construct its networking feature data according to, but not limited to, the following method: CPU computing capability ct=cpu processing frequency CV CPU core number CN capability weight 0.6; memory capacity mt=content available capacity MV 0.6; bandwidth capacity bt=available bandwidth BV of the network card 0.5, and networking weights about the three dimension capacities of the CPU computing capacity CT, the memory capacity MT, and the bandwidth capacity BT of the device may be 0.5, 0.3, and 0.2 in order. Based on this, the slave device's networking score et=ct×0.5+mt×0.3+bt×0.2.
The capacity weights can be comprehensively determined by experience/experimental configuration and can be combined with the equipment type and various factors such as functions, configuration applications and the like, and the numerical values of the capacity weights are not limited in the application and are not limited to the numerical values listed in the example. The slave device can obtain networking characteristic data according to the networking score, CPU processing frequency, CPU core number, content available capacity MV, network card available bandwidth BV and other configuration information, and then the slave device and the master device feed back the obtained networking characteristic data to the master device in a broadcast message/response broadcast message mode, so that the master device can obtain the networking characteristic data of each slave device in the current network environment.
In still other embodiments, the networking feature data that the slave device has to characterize its networking capability may also be composed of multi-dimensional configuration information such as available network bandwidth capacity and rate, resolution, refresh rate and/or sharpness of image output, audio output with sound effects such as treble, bass, dolby or combination, total memory capacity and available capacity, device type or other information. Because the network environment has different requirements on different dimension capacities of the equipment, networking weights of the different dimension capacities can be configured for accurately obtaining networking capacities, and networking scores of the slave equipment are comprehensively calculated, so that corresponding networking characteristic data are constructed accordingly, and the implementation process is not described in detail in the application.
It should be understood that the dimensions of the capabilities of different types of devices may be different, and parameters of the same capability may also be different, so that networking capabilities of different devices may be different, and the networking feature data obtained according to, but not limited to, the method described above may be different, and multiple slave devices may also obtain the networking feature data in different manners, which is not limited in this embodiment. Under the condition that the slave device detects that the configuration of the slave device changes, networking characteristic data can be updated in time according to the method described above, and the updated networking characteristic data is reported to the master device in the current network environment, and the implementation process is not described in detail in the application.
Step S22, determining a first slave device meeting the inheritance condition of the master device according to the networking characteristic data;
after the master device obtains networking feature data of the plurality of slave devices, the networking feature data can be compared, and a first slave device meeting the inheritance condition of the master device can be selected. If the slave device with the highest networking score is determined to be the first slave device through comparison, if the slave device with the highest networking score is a plurality of slave devices, the dimension capability of the highest networking weight can be further compared, the slave device with the highest dimension capability is further selected from the dimension capability to be the first slave device and the like, or the configuration parameters of the specific dimension capability contained in the networking characteristic data of each slave device are analyzed, the slave device with the higher configuration parameters is selected to be the first slave device and the like, and the inheritance condition of the master device can be flexibly configured according to the actual requirement, so that the networking characteristic data of each slave device is analyzed according to the inheritance condition of the master device, and the first slave device is determined.
Step S23, obtaining a master device inheritance identification configured for the first slave device;
regarding the implementation procedure of step S23, reference may be made to the description of the corresponding portion of the above embodiment, which is not repeated in this embodiment.
Step S24, obtaining data to be backed up of the main equipment;
step S25, adding the master device inheritance identification and the data to be backed up to a broadcast message sent to the first slave device, so that the first slave device synchronizes the data to be backed up of the master device, and processing networking connection among a plurality of networking devices when networking update conditions are met.
In this embodiment of the present application, after determining that the master device of the next networking is the first slave device, the master device may backup its own important information to the first slave device, where the important information is not easy to be lost during the next negotiation, and the master device may still obtain the key information inherited this time in the next networking, and record the key information as the data to be backed up.
The data to be backed up that the master device needs to backup by the first slave device may include, but is not limited to: the device identification of the master device, the device identification of each slave device in the current network environment, the relevant information of the service executed by the master device in the current network environment, the important configuration information of the master device, and the like. In this way, when networking is performed next time, the primary device of the next time networking can configure the networking network environment according to the information to be backed up, and send networking messages to other devices according to the device identifiers of other devices in the backup information, or verify whether the networking device sending the request for network access responding to the networking messages is allowed to access the network or not.
In order to improve the transmission safety of the backup data, the backup data can be encrypted and then added to the broadcast message to be sent to each slave device in the current network environment. Optionally, the host device inheritance identifier configured by the host device may be encrypted and then broadcast, which does not limit the encryption processing method, and may use a specific security chip or an encryption tool or an external encryption device of the electronic device, etc. to perform hard encryption processing on the data to be backed up and the host device inheritance identifier, which waits for the encrypted content, and the implementation process is not described in detail in the present application.
In addition, the detailed description of the implementation process of negotiation communication between the master device and each slave device through a broadcast message is omitted. It should be understood that, because other slave devices (i.e., the second slave device) except the first slave device in the current network environment may not need to synchronously backup the data to be backed up of the master device, the content of the broadcast message sent by the master device to each slave device is different, that is, the broadcast message sent to the first slave device includes the data to be backed up, but the broadcast message sent to the second slave device may not need to include the data to be backed up.
Based on the analysis, when the devices start to perform device interconnection/dynamic networking due to the disconnection of the master device in the current network environment or the need of re-authenticating the master device and slave devices, whether the device has the master device inheritance identification or not can be detected according to the content of the broadcast message sent by the last master device, or which device has the master device inheritance identification, and the fact that the device does not have the master device inheritance identification is determined, but other devices have the master device inheritance identification, the device can wait for the device with the master device inheritance identification (namely the first slave device) to send a network-entering message, and is directly connected with the first slave device which becomes the master device, so that a great amount of time is not required to perform multi-device voting, and the networking efficiency is greatly improved.
In addition, the first slave device inherits the data to be backed up of the last master device, can rapidly configure the network environment according to the data to be backed up, and verifies whether the request access device is allowed to access the network of the current network, so that illegal devices are prevented from accessing the network of the current network, and the safety of the network environment is improved.
Referring to fig. 3, a flowchart of another alternative example of the networking processing method proposed in the present application may still be applicable to a master device in an existing multi-device interconnection networking environment, as shown in fig. 3, where the method may include:
Step S31, determining a first slave device meeting the inheritance condition of the master device from a plurality of slave devices;
step S32, obtaining a master device inheritance identification configured for a first slave device;
regarding the implementation procedure of step S31 and step S32, reference may be made to the description of the corresponding parts of the above embodiments, which are not described herein.
Step S33, at least carrying out hard encryption processing on the main equipment inheritance identifier by utilizing the preset hardware encryption characteristics to obtain a corresponding encrypted file;
step S34, processing the encrypted file according to a preset frame structure of a Bluetooth BLE broadcasting mode to obtain a broadcasting message containing the encrypted file;
in order to ensure the security of the interaction process between devices, for example, the main device inherits the identifier, the data to be backed up waits for the broadcast content, a security chip (for example, an RJMU401 chip, etc. which can be configured with an SM4 hardware encryption algorithm) can be used to encrypt and protect the broadcast content, and then a broadcast message is generated and sent.
Alternatively, the master device may perform the hard encryption processing on each content to be broadcasted as listed above by using a preset hard encryption feature such as a bluetooth MAC (Media Access Control Address media access control address) address, and obtain a corresponding encrypted file, and then perform the serialization processing to obtain a broadcast message, and send the broadcast message to the slave device.
In some embodiments, the preset frame structure of the bluetooth BLE broadcasting mode may be a 31-byte data frame structure, and a 31-byte election message is formed by combining the message type and the content to be broadcast. The information to be broadcast generally includes, in addition to the above-mentioned master device inheritance identifier, device information of the first device, such as one or more of a device type, a device manufacturer, a device nickname, a bluetooth address, an account ID, and the like, as the case may be.
For example, the 31 byte data frame structure of the election packet may sequentially include: three areas, namely 3 bytes of broadcast identification flags, 4 bytes of device identification uuid and 24 bytes of service data. Each area may initially include a length (obtained according to a function len) and a device type (obtained according to a function type) of each data type, and for the 24-byte data area, may further include a 2-byte data identifier UUID, and 20-byte data frame content, such as a total frame number and a frame header of a current frame; a 6 byte bluetooth address; a device nickname; some platform ID account information, etc. For a data identification UUID may include an 8-bit version number recorded by 1 byte, the first four bits representing a large version number and the last four bits representing a small version number; in the 8-bit version number of the adjacent other byte record, the first four bits represent the manufacturer, the last four bits represent the device type, etc. However, the method is not limited to the preset frame structure described in the present embodiment, and may be adaptively adjusted according to actual requirements.
Based on the above, in the process of reporting the contents such as self networking feature data, device identification and the like corresponding to each slave device in the current network environment, even the response network access message sent when accessing the master device in the current network environment, the preset frame structure construction of the Bluetooth BLE broadcast can also be adopted.
Corresponding to the broadcast message with the 31-byte frame structure sent by the master device, the message including 31-byte bluetooth response data fed back by the slave device has a message structure according to a data type length which can be 1 byte, a device type of 1 byte, 2-byte data uuid, a 1-byte 8-bit device state, 25-byte customized service data and a 1-byte reserved area (which can record corresponding contents according to actual requirements). Wherein, for 2-byte data uuid, the device type may include 1-byte device type (for example, 0x01 represents a mobile phone, 0x02 represents a tablet computer, 0x03 represents a personal computer device PC, 0x04 represents an IOT internet of things device, etc., as the case may be), and another byte records the functions supported by the device sending the message (for example, 0x01 represents a fast transmission function, 0x02 represents a screen of the first operating system device to the second operating system device, 0x03 represents a screen of the second operating system device to the first operating system device, 0x04 represents co-screen company, 0x05 represents a device control function, etc., as the case may be); for the 8-bit device state, the first two bits can record the connection state (e.g. 00 indicates unconnected, 01 indicates connected, and 10 indicates abnormal connection), and the last two bits can record whether encryption, 5G and the like are supported respectively.
In summary, under a certain network environment, each device forming the network can perform mutual transmission alliance in a Bluetooth BLE broadcasting mode, so that the slave device can inform the master device of own networking characteristic data, such as device type, capability identification/configuration parameters and the like, and the master device informs the slave device of broadcast content of a first slave device and the like selected by the slave device, thereby improving the capability of carrying the content by Bluetooth BLE broadcasting. The above examples describe the content of the data area, which can support synchronous login of the platform ID account number between devices, support unification of the platform ID account number, and automatically establish connection, and the master device can wake up other devices by broadcasting a wake-up instruction to realize management and control of other devices.
And step S35, the broadcast message is sent to the plurality of slave devices, so that when the networking update condition is met, the first slave device with the master device inheritance identification processes networking connection among the plurality of networking devices.
In this embodiment of the present application, after the master device selects the first slave device of the next networking, the first slave device may be added to the broadcast message to inform surrounding slave devices after performing encryption processing according to the method described above, where the broadcast message may include the device identifier of the first slave device with the master device inherited identifier, but is not limited to this content. In this way, each networking device can detect whether the networking device has the master inheritance identity or not under the condition that the master device is disconnected or the master device and the slave device need to be re-authenticated, and if the networking device does not have the master inheritance identity, the networking device records the first slave device to be connected and provided with the master inheritance identity.
Based on the method, any networking device can read the device identifier of the device with the master device inherited identifier, compare the device identifier with the device identifier of the networking device itself, if the device identifier is the same, the networking device itself is the first slave device determined by the last master device, and can create a networking access point to inform other networking devices of access; if the information is different, the information is not the first slave device determined by the last master device, and only the master device with the master device inheritance identification needs to wait for sending the network access message and directly connect the master device, so that the networking efficiency is greatly improved.
In still other embodiments, the master device may also include a broadcast message that inherits the identity of the master device to the first slave device (the broadcast message may also include data to be backed up of the master device, etc. if needed), and send a broadcast message that does not include the inherited identity of the master device to the second slave device; the second slave device refers to a slave device except the first slave device among the plurality of slave devices in the current network environment. Therefore, when networking is performed next time, the first slave device can detect the master device inheritance identification to become the master device, the second slave device cannot detect the master device inheritance identification to be used as the slave device, and the subsequent processing process is similar and is not described in detail in the application.
Referring to fig. 4, a flowchart of another alternative example of a networking processing method provided in the present application may be suitable for a case where a master device in a previous network environment is disconnected or a master device needs to be authenticated again, and any networking device with networking capability that needs to participate in the present networking is recorded as a first networking device, where, as shown in fig. 4, the networking processing method executed by the first networking device may include:
step S41, detecting that networking updating conditions are met, wherein the first networking equipment has a main equipment inheritance identifier, and determining the first networking equipment as main equipment;
in connection with the above description of the networking processing method on the master device side, when the master device inheritance identifier does not meet the networking update condition, that is, when the master device is not disconnected or the master device needs to be authenticated again last time, based on the determination of the master device inheritance condition, the process of obtaining the master device inheritance identifier may refer to the description of the corresponding portion of the above embodiment, which is not described in detail herein.
Step S42, creating a networking access point and obtaining an access identifier of the networking access point;
step S43, sending a network access broadcast message to a second networking device without a main device inheritance identification; the network access broadcast message at least comprises an access identifier.
In the embodiment of the present application, under the condition that the network needs to be re-established, the first networking device determines that the first networking device has the master device inheritance identifier sent by the last master device, that is, the first slave device indicated by the master device inheritance identifier is the first networking device, and can directly serve as the master device to create a networking access point (such as a wireless network hotspot) to notify other networking devices of access. In the process, the first networking device can inform other networking devices around through a BLE multi-frame broadcasting path of the identity of the master device with the inherited identity of the master device, the identity of the master device with the identity of the master device, and the like, so that the networking devices can compare the identity of the master device for sending the message from the network access broadcast with the identity of the device for sending the message (i.e. the master device can obtain the identity of the master device by communicating with the master device), determine whether the device for sending the message is the master device, and the like, and the implementation process is not described in detail in the application.
Optionally, the second networking device without the master device inheritance identifier is a slave device, whether the second networking device is the master device or the slave device in the last networking network environment, after the first slave device is selected, the last master device sends the device identifier to each slave device, so that each device in the network environment knows which device is the master device of the next networking, and when the networking is performed this time, after the second networking device receives the networking broadcast message, the second networking device can verify whether the device sending the message is the master device by comparing the device identifier of the device sending the message with the stored device identifier of the first slave device with the master device inheritance identifier sent by the last master device, thereby improving the networking security.
In the networking process, the time for each networking device to start dynamic networking may be different, the time for the received network access broadcast message sent by the master device is also inconsistent, and for the network access broadcast message subsequently sent by the master device to the networking device (i.e. slave device), the number of slave devices accessed by the current networking access point and corresponding device identifiers may be configured, and even the device information may also be included, so that the networking device to be accessed subsequently may determine whether to access according to the time, and the flexibility and the judgment reliability of whether the slave device participates in networking may be improved.
Referring to fig. 5, for a flowchart of another alternative example of the networking processing method proposed in the present application, the implementation process of the networking processing method may still be described from the first networking device side, as shown in fig. 5, and the method may include:
step S51, detecting that the networking updating condition is met, and the first networking device does not have a master device inheritance identifier, and determining that the first networking device is a slave device;
step S52, receiving the determined network access broadcast message sent by the master device; the network access broadcast message at least comprises the determined access identifier of the networking access point created by the master equipment;
In combination with the description of the corresponding part of the foregoing embodiment, according to the foregoing detection method, the first networking device determines that the first networking device does not have a master device inheritance identifier, if the master device inheritance identifier sent by the last master device is not received, that is, the device with the master device inheritance identifier sent by the last master device is not the first networking device, such as inconsistent device identifiers, where the first networking device determines that the first networking device is a slave device, waits for the master device to send an access broadcast message, and accesses the master device.
In practical application, after the first networking device receives the networking broadcast message, the first networking device may perform identity authentication on the networking device sending the networking broadcast message according to the recorded device identifier of the device with the host device inherited identifier sent by the last host device, to determine whether the networking device is the host device, and if the networking device sending the networking broadcast message is the host device, then perform subsequent access operation, thereby improving the networking security of the device.
Step S53, obtaining the preset hardware encryption characteristic of the main equipment in the network-access broadcast message according to the preset frame structure of the Bluetooth BLE broadcast mode;
Step S54, decrypting the encrypted file contained in the network broadcast message by utilizing the preset hardware encryption characteristic to obtain the access identifier of the networking access point created by the main equipment;
step S55, according to the access identifier, a response broadcast message is sent to the determined master device to access the networking access point with the access identifier created by the master device.
In the embodiment of the present application, the network-access broadcast message may be constructed by using a preset frame structure in a bluetooth BLE broadcast manner, and the implementation process may refer to the description of the corresponding portion of the above embodiment, but is not limited to this message construction method.
In addition, for the security of data transmission, the above-described hard encryption method may be used, but is not limited to, and each data to be transmitted is encrypted and then added to the data area of the message, so that the implementation process will not be described in detail in the present application. Based on the above, after the slave device receives the network access broadcast message, a corresponding decryption method can be adopted to decrypt the encrypted file of the data area to obtain the message content such as the required access identifier, the device information and the like, and after identity authentication is performed according to the scheme described above, the network access point with the transmitted access identifier is accessed to realize the connection between the first network device and the master device. The connection implementation process between other networking devices and the master device is similar, and is not described in detail herein.
Referring to fig. 6, for a flowchart of another alternative example of the networking processing method proposed in the present application, the implementation process of the networking processing method may still be described from the first networking device side in this embodiment, as shown in fig. 6, and the method may include:
step S61, detecting that the networking updating condition is met, and determining that the first networking device and at least one third networking device have main device inheritance identifiers;
step S62, a first election broadcast message is sent to a third networking device, and the third election broadcast message sent by the third networking device is received; the first election broadcast message comprises first networking characteristic data capable of representing networking capability of the first networking equipment, and the third election broadcast message comprises third networking characteristic data representing networking capability of the corresponding third networking equipment;
in the process that the master device selects the master device of the next networking, namely the first slave device, a plurality of slave devices may be selected to be the first slave devices, in this case, when the next networking is performed, the networking capability comparison may be performed by the plurality of first slave devices, so as to determine the master device.
Based on this, under the condition that the last networking master device drops or needs to re-authenticate the master device, according to the above-described master device detection method, it is determined that the first networking device and at least one third networking device are both the first slave devices designated by the last master device, the current networking master device can be selected among the several networking devices, and other second networking devices without the master device inherited identification become slave devices, waiting for connection with the master device.
Therefore, each networking device with the host device inheritance identifier can inform itself of networking capability by sending an election broadcast message, and can be characterized by corresponding networking feature data, and regarding the method for acquiring the networking feature data, reference may be made to the description of the corresponding part of the above embodiment, which is not described in detail herein.
Step S63, determining whether the first networking feature is higher than the third networking feature data, if so, proceeding to step S64; if higher, step S66 is performed, and if lower, step S68 is performed;
step S64, a first broadcast time contained in a first election broadcast message and a third broadcast time contained in a third election broadcast message are obtained;
step S65, determining whether the first broadcast time is earlier than the third broadcast time, if so, proceeding to step S66; if not, executing step S68;
in summary, from a plurality of first slave devices designated by the last master device, in the process of selecting the master device, the first slave device with the strongest networking capability can be selected as the master device through comparison of networking feature data, if the networking capability is basically the same, the first slave device with the highest participation in dynamic networking can be further selected as the master device, and of course, the dimension capability with higher networking weight in the networking feature data can be compared, the first slave device with stronger dimension capability can be selected, and the like, so that the implementation process is similar, and the detailed description of the application is omitted.
Optionally, in order to improve security, the security chip may be used to encrypt the broadcast time and then write the encrypted broadcast time into a position corresponding to the selected report, for example, the first packet position or the data area of the preset frame structure described above, so as to avoid an attack performed after the illegal device determines the main device through the broadcast time. The encryption implementation method of the broadcasting time is not limited.
Step S66, determining the first networking equipment as main equipment, creating a networking access point and obtaining an access identifier of the networking access point;
step S67, sending a network access broadcast message to a third networking device and a second networking device without a main device inheritance identifier; the network access broadcast message at least comprises an access identifier;
step S68, determining the first networking device as a slave device, stopping sending the first election broadcast message, and receiving the network access broadcast message sent by the third networking device determined as the master device;
step S69, according to the access identifier contained in the network access broadcast message, sending a response broadcast message to the third networking device which is determined to be the master device, so as to access the networking access point which is created by the third networking device and has the access identifier.
Regarding the processing procedure after the networking device is determined to be the master device or the slave device, reference may be made to the description of the corresponding portion of the above embodiment, which is not repeated herein.
It should be understood that, according to the networking method described above, after determining the master device of the current networking, other networking devices access to the networking access point created by the master device, and use itself as a slave device, and before disconnecting the networking access point, the slave device may not need to perform bluetooth BLE broadcast, and may not need to interact with the external device (i.e. other devices outside the network environment) to form information such as a networking score, a master-slave device identifier, and so on, where these information may exist in the current network environment.
Referring to fig. 7, a schematic structural diagram of an alternative example of a networking processing apparatus proposed in the present application, where the apparatus may be applied to a host device, as shown in fig. 7, includes:
a first slave device determining module 71, configured to determine, from a plurality of slave devices, a first slave device that satisfies a master device inheritance condition;
a master inheritance identity obtaining module 72, configured to obtain a master inheritance identity configured for the first slave device;
a broadcast message sending module 73, configured to send broadcast messages to the plurality of slave devices; the broadcast message sent to the first slave device contains the master device inheritance identifier, so that when a networking update condition is met, the first slave device with the master device inheritance identifier processes networking connection among a plurality of networking devices.
In some embodiments, the apparatus may further include:
the data to be backed up obtaining module is used for obtaining the data to be backed up of the main equipment;
and the broadcast message obtaining module is used for adding the data to be backed up to a broadcast message sent to the first slave device so as to enable the first slave device to synchronize the data to be backed up of the master device.
In still other embodiments, the broadcast message sending module 73 may include:
a first sending unit, configured to send broadcast messages containing the inherited identifier of the master device to the plurality of slave devices; or alternatively, the process may be performed,
the second sending unit is used for sending the broadcast message which does not contain the master device inheritance identification to the second slave device; the second slave device refers to a slave device other than the first slave device among the plurality of slave devices.
In still other embodiments, the first slave device determining module 71 may include:
the network characteristic data obtaining unit is used for obtaining the network characteristic data of each of the plurality of slave devices;
and the first determining unit is used for determining a first slave device meeting the inheritance condition of the master device according to the networking characteristic data.
On the basis of the networking processing apparatus described in the above embodiments, the apparatus may further include:
the encryption module is used for carrying out hard encryption processing on at least the main equipment inheritance identifier by utilizing the preset hardware encryption characteristics to obtain a corresponding encrypted file;
and the broadcast message obtaining module is used for processing the encrypted file according to a preset frame structure of a Bluetooth BLE broadcasting mode to obtain a broadcast message containing the encrypted file.
Referring to fig. 8, a schematic structural diagram of another alternative example of a networking processing apparatus proposed in the present application, where the apparatus may be applied to a first networking device, as shown in fig. 8, and the apparatus includes:
the master device determining module 81 is configured to detect that a networking update condition is satisfied, and the first networking device has a master device inheritance identifier, and determine that the first networking device is a master device; the master device inheritance identification is determined based on the master device inheritance condition when the networking updating condition is not met;
a creation module 82 for creating a networking access point;
an access identifier obtaining module 83, configured to obtain an access identifier of the networking access point;
a network access broadcast message sending module 84, configured to send a network access broadcast message to a second networking device that does not have the host device inheritance identifier; the network access broadcast message at least comprises the access identifier.
In some embodiments, the networking processing apparatus at the first networking device side may further include:
the slave device determining module is used for determining the first networking device as a slave device under the condition that the first networking device does not have the master device inherited identification;
the network access broadcast message receiving module is used for receiving the network access broadcast message sent by the determined main equipment; the network access broadcast message at least comprises an access identifier of a networking access point created by the determined master device;
and the response broadcast message sending module is used for sending a response broadcast message to the determined master equipment according to the access identifier so as to access the networking access point.
In still other embodiments, the networking processing apparatus at the first networking device side may further include:
the preset hardware encryption characteristic obtaining module is used for obtaining the preset hardware encryption characteristic of the main equipment in the network broadcast message according to a preset frame structure of a Bluetooth BLE broadcasting mode;
the decryption module is used for decrypting the encrypted file contained in the network access broadcast message by utilizing the preset hardware encryption characteristic to obtain the access of the networking access point created by the master equipment
In still other embodiments, the networking processing apparatus at the first networking device side may further include:
The election broadcast message receiving and transmitting module is used for determining that the first networking equipment and at least one third networking equipment have the main equipment inheritance identification, sending a first election broadcast message to the third networking equipment, and receiving a third election broadcast message sent by the third networking equipment;
the first election broadcast message comprises first networking characteristic data capable of representing networking capability of the first networking equipment, and the third election broadcast message comprises third networking characteristic data representing networking capability of corresponding third networking equipment;
a first comparison determining module, configured to determine that the first networking feature data is higher than the third networking feature data; or the first networking feature data is equal to the third networking feature data, but the first broadcast time contained in the first election broadcast message is earlier than the third broadcast time contained in the third election broadcast message, and the master device determining module 81 is triggered to determine that the first networking device is the master device;
a second comparison determination module configured to determine that the first networking feature data is lower than the third networking feature data; or the first networking feature data is equal to the third networking feature data, but the first broadcasting time contained in the first election broadcasting message is later than the third broadcasting time contained in the third election broadcasting message;
And the network access broadcast message receiving module is used for stopping sending the first election broadcast message and receiving the network access broadcast message sent by the third networking equipment which is determined to be the main equipment.
It should be noted that, regarding the various modules, units, and the like in the foregoing embodiments of the apparatus, the various modules and units may be stored as program modules in a memory, and the processor executes the program modules stored in the memory to implement corresponding functions, and regarding the functions implemented by each program module and the combination thereof, and the achieved technical effects, reference may be made to descriptions of corresponding parts of the foregoing method embodiments, which are not repeated herein.
The present application also provides a computer readable storage medium having stored thereon a computer program which can be invoked and loaded by a processor to implement the steps of the dynamic networking method described in the above embodiments.
Referring to fig. 9, for a schematic structural diagram of an alternative example of an electronic device suitable for the networking processing method proposed in the present application, the product types of the electronic device may refer to descriptions of corresponding parts of the foregoing embodiments, where the electronic device is intended to participate in dynamic networking, the electronic device may be referred to as a networking device, and in different scenarios, the electronic device may be a master device or a first networking device or a second networking device or a third networking device, etc., as shown in fig. 9, the electronic device may include a communication module 91 and a processing apparatus 92, where:
The communication module 91 may include, but is not limited to, a wireless communication module supporting a wireless communication system such as a bluetooth module, a WIFI module, a 5G/6G (fifth generation mobile communication network/sixth generation mobile communication network) module, a GPRS module, or a wired communication module supporting a wired communication system such as a wired network interface; according to the requirement, the electronic device can also comprise interfaces supporting the data interaction of the internal components of the electronic device, such as a USB interface, an I/O interface, a serial/parallel interface and the like, and can be determined according to the actual requirement.
The processing device 92 may be configured to implement the networking processing method described in the method embodiment corresponding to the device side when the electronic device is a main device or a first networking device, and the implementation process may refer to the description of the corresponding portion of the foregoing embodiment, which is not described in detail in this embodiment.
Optionally, the processing device 92 may include a memory and a processor, where the memory may store networking feature data, various packets, self-important data, generated information such as a host device inheritance identifier, and a program for implementing a networking processing method executed by an electronic device with different identities (such as a host device or a first networking device) set forth in the present application, and the processor may be configured to execute the program to implement a networking processing method on a corresponding side set forth in the present application.
The memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device or other volatile solid-state storage device. The processor may be a central processing unit (Central Processing Unit, CPU), application-specific integrated circuit (ASIC), digital Signal Processor (DSP), application-specific integrated circuit (ASIC), ready-made programmable gate array (FPGA), or other programmable logic device, etc., and may be determined according to practical situations.
It should be understood that the structure of the electronic device shown in fig. 9 is not limited to the electronic device in the embodiment of the present application, and in practical application, the electronic device may include more components than those shown in fig. 9, or may combine some components, such as at least one input component of a touch sensing unit, a keyboard, a mouse, a camera, a pickup, and the like, that senses a touch event on a touch display panel; at least one output component such as a display, speaker, vibration mechanism, light, etc.; an antenna; a sensor module; the power module and the like can be determined according to the equipment type and the functional requirement of the electronic equipment, and are not listed here.
Finally, it should be noted that, in the embodiments described above, unless the context clearly indicates otherwise, the words "a," "an," "the," and/or "the" are not to be construed as limiting, but rather as including the singular, as well. In general, the terms "comprises" and "comprising" merely indicate that the steps and elements are explicitly identified, and they do not constitute an exclusive list, as other steps or elements may be included in a method or apparatus. The inclusion of an element defined by the phrase "comprising one … …" does not exclude the presence of additional identical elements in a process, method, article, or apparatus that comprises an element.
Wherein, in the description of the embodiments of the present application, "/" means or is meant unless otherwise indicated, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
The terms "first," "second," and the like, herein are used for descriptive purposes only and are not necessarily for distinguishing one operation, element or module from another, and not necessarily for describing or implying any actual such relationship or order between such elements, elements or modules. And is not to be taken as indicating or implying a relative importance or implying that the number of technical features indicated is such that the features defining "first", "second" or "a" may explicitly or implicitly include one or more such features.
In this specification, each embodiment is described in a progressive or parallel manner, and each embodiment is mainly described by a difference from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. The apparatus, medium, and electronic device disclosed in the embodiments correspond to the methods disclosed in the embodiments, so that the description is relatively simple, and the relevant parts refer to the description of the method section.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. A networking processing method applied to a master device, the method comprising:
determining a first slave device meeting the inheritance condition of the master device from a plurality of slave devices;
obtaining a master inheritance identity configured for the first slave device;
Sending broadcast messages to the plurality of slave devices; the broadcast message sent to the first slave device contains the master device inheritance identifier, so that when a networking update condition is met, the first slave device with the master device inheritance identifier processes networking connection among a plurality of networking devices.
2. The method of claim 1, the method further comprising:
obtaining data to be backed up of the main equipment;
and adding the data to be backed up to a broadcast message sent to the first slave device so as to enable the first slave device to synchronize the data to be backed up of the master device.
3. The method of claim 1, sending a broadcast message to the plurality of slave devices, comprising:
transmitting a broadcast message containing the master device inheritance identification to the plurality of slave devices; or alternatively, the process may be performed,
the first slave device is sent to the second slave device by the broadcast message containing the master device inheritance identification; the second slave device refers to a slave device other than the first slave device among the plurality of slave devices.
4. The method of claim 1, the determining, from the plurality of slaves, a first slave that satisfies a master inheritance condition, comprising:
Obtaining networking characteristic data of each of a plurality of slave devices;
and determining a first slave device meeting the inheritance condition of the master device according to the networking characteristic data.
5. The method of any one of claims 1-4, further comprising:
performing hard encryption processing on at least the main equipment inheritance identifier by utilizing a preset hardware encryption characteristic to obtain a corresponding encrypted file;
and processing the encrypted file according to a preset frame structure of a Bluetooth BLE broadcasting mode to obtain a broadcasting message containing the encrypted file.
6. A networking processing method applied to a first networking device, the method comprising:
detecting that networking updating conditions are met, wherein the first networking equipment has a main equipment inheritance identifier, and determining the first networking equipment as main equipment; the master device inheritance identification is determined based on the master device inheritance condition when the networking updating condition is not met;
creating a networking access point and obtaining an access identifier of the networking access point;
sending a network access broadcast message to a second networking device without the main device inheritance identification; the network access broadcast message at least comprises the access identifier.
7. The method of claim 6, the method further comprising:
If the first networking device does not have the master device inheritance identification, determining that the first networking device is a slave device;
receiving a network access broadcast message sent by the determined master device; the network access broadcast message at least comprises an access identifier of a networking access point created by the determined master device;
and sending a response broadcast message to the determined master device according to the access identifier so as to access the networking access point.
8. The method of claim 7, the method further comprising:
obtaining a preset hardware encryption characteristic of the main equipment in the network-access broadcast message according to a preset frame structure of a Bluetooth BLE broadcasting mode;
and decrypting the encrypted file contained in the network access broadcast message by utilizing the preset hardware encryption characteristic to obtain the access identifier of the networking access point created by the master equipment.
9. The method of claim 6, in the case where the first networking device has a master inheritance identity, the method further comprising:
determining that at least one third networking device has the main device inheritance identification, sending a first election broadcast message to the third networking device, and receiving a third election broadcast message sent by the third networking device; the first election broadcast message comprises first networking characteristic data capable of representing networking capability of the first networking device, and the third election broadcast message comprises third networking characteristic data representing networking capability of a corresponding third networking device;
Determining that the first networking feature data is higher than the third networking feature data; or the first networking feature data is equal to the third networking feature data, but the first broadcast time contained in the first election broadcast message is earlier than the third broadcast time contained in the third election broadcast message, and the step of executing the step of determining that the first networking device is the main device.
10. The method of claim 9, the method further comprising:
determining that the first networking feature data is lower than the third networking feature data; or the first networking feature data is equal to the third networking feature data, but the first broadcasting time contained in the first election broadcasting message is later than the third broadcasting time contained in the third election broadcasting message, the first election broadcasting message is stopped from being sent, and the networking broadcasting message sent by the third networking device which is determined to be the main device is received.
11. A networking processing apparatus for application to a host device, the apparatus comprising:
the first slave device determining module is used for determining a first slave device meeting the inheritance condition of the master device from the plurality of slave devices;
the master device inheritance identification obtaining module is used for obtaining a master device inheritance identification configured for the first slave device;
The broadcast message sending module is used for sending broadcast messages to the plurality of slave devices; the broadcast message sent to the first slave device contains the master device inheritance identifier, so that when a networking update condition is met, the first slave device with the master device inheritance identifier processes networking connection among a plurality of networking devices.
12. A networking processing apparatus for application to a first networking device, the apparatus comprising:
the main equipment determining module is used for detecting that networking updating conditions are met, the first networking equipment is provided with a main equipment inheritance identifier, and the first networking equipment is determined to be the main equipment; the master device inheritance identification is determined based on the master device inheritance condition when the networking updating condition is not met;
the creation module is used for creating a networking access point;
an access identifier obtaining module, configured to obtain an access identifier of the networking access point;
the network access broadcast message sending module is used for sending a network access broadcast message to a second networking device which does not have the main device inheritance identification; the network access broadcast message at least comprises the access identifier.
13. An electronic device, comprising:
A communication module;
processing means for implementing a networking processing method according to any one of claims 1 to 10.
CN202211732757.0A 2022-12-30 2022-12-30 Networking processing method and device and electronic equipment Pending CN116056258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211732757.0A CN116056258A (en) 2022-12-30 2022-12-30 Networking processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211732757.0A CN116056258A (en) 2022-12-30 2022-12-30 Networking processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116056258A true CN116056258A (en) 2023-05-02

Family

ID=86123160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211732757.0A Pending CN116056258A (en) 2022-12-30 2022-12-30 Networking processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116056258A (en)

Similar Documents

Publication Publication Date Title
US11741210B2 (en) Proximity unlock and lock operations for electronic devices
US9801120B2 (en) Client-initiated tethering for electronic devices
KR101697414B1 (en) Shared network access via a peer-to-peer link
JP5437496B2 (en) Method and apparatus for soliciting activation of a protected wireless network
JP6386069B2 (en) Connection management method, apparatus, electronic equipment, program, and recording medium
US8151280B2 (en) Simple and dynamic configuration of network devices
US10187474B2 (en) Method and device for resource sharing between devices
US10524110B1 (en) Affirmative pairing systems and methods for devices
US9900919B1 (en) Adaptive beacon rate system
JP2017532837A (en) System and method for pre-association service discovery
CN101288063A (en) Wireless device discovery and configuration
WO2022166755A1 (en) Information processing methods, devices, and storage medium
EP2811690B1 (en) Method and apparatus for managing wireless docking network
EP3833153B1 (en) Network connection methods and devices
US20220167440A1 (en) Previous connection status report
JP4856700B2 (en) Establishing a wireless universal serial bus (WUSB) connection via a trusted medium
CN116056258A (en) Networking processing method and device and electronic equipment
WO2021081784A1 (en) Power supply method, device and system, and storage medium
CN116017630A (en) Dynamic networking method and device and electronic equipment
WO2022147843A1 (en) Access authentication method and apparatus
US20240048990A1 (en) Bluetooth connection method and system, intelligent terminal, and computer storage medium
US20070026845A1 (en) Communication apparatus and method
CN116367151A (en) Networking authentication method, device and equipment
CN117412402A (en) Screen projection method, device, storage medium and screen projector
CN116321249A (en) Processing method and device

Legal Events

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