CN117098253A - Networking method and device - Google Patents

Networking method and device Download PDF

Info

Publication number
CN117098253A
CN117098253A CN202210511168.3A CN202210511168A CN117098253A CN 117098253 A CN117098253 A CN 117098253A CN 202210511168 A CN202210511168 A CN 202210511168A CN 117098253 A CN117098253 A CN 117098253A
Authority
CN
China
Prior art keywords
communication device
information
communication
network
master
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
CN202210511168.3A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210511168.3A priority Critical patent/CN117098253A/en
Publication of CN117098253A publication Critical patent/CN117098253A/en
Pending legal-status Critical Current

Links

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
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20Master-slave selection or change arrangements

Abstract

The embodiment of the application provides a networking method and device, wherein the method comprises the following steps: the master communication device obtains first information including device information of a plurality of first communication devices within the first virtual sub-network, the master communication device being a communication device elected from the plurality of first communication devices. The master communication device transmits the first information to a second communication device within a second virtual sub-network that is trusted with each other, wherein the second communication device is a communication device connected to a network on which the master communication device is connected. According to the networking method and device provided by the application, the second communication equipment can be networked with the main communication equipment only, so that the equipment information of all communication equipment in the first virtual sub-network can be obtained, the networking time delay can be reduced, and the networking time can be reduced. And the second communication device only needs to keep constant connection with the main communication device, so that the occupation of resources can be saved.

Description

Networking method and device
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a networking method and device.
Background
The distributed soft bus can provide uniform distributed communication capability for seamless interconnection of communication devices, and can quickly discover and connect the communication devices so as to efficiently transmit tasks and data. However, with the continuous development of multi-device cooperative technology, in a scenario where the number of communication devices that need to be networked is large, an excessively long networking time is often required, and interference is also generated between different communication devices, so that the use of users is affected.
Therefore, in the networking scenario of multiple communication devices, how to reduce networking time, save resources, and avoid interference between communication devices in the networking process is a current urgent problem to be solved.
Disclosure of Invention
The embodiment of the application provides a networking method and device, which can reduce networking time and avoid excessive consumption of resources.
In a first aspect, a method for networking is provided, including: the method comprises the steps that a master communication device obtains first information, wherein the first information comprises device information of a plurality of first communication devices in a first virtual subnet, and the master communication device is one of the plurality of first communication devices; the master communication device sends the first information to a second communication device in a second virtual sub-network, wherein the master communication device and the second communication device trust each other, and the second communication device is a communication device connected to a network where the master communication device is located.
In the embodiment of the application, the new communication device (the second communication device) can acquire the device information of all communication devices (a plurality of first communication devices) in the virtual sub-network only by networking with the main communication device in the virtual sub-network. The time delay can be effectively reduced, so that the networking time is reduced; and avoids interference that may occur when a new communication device is networked with all communication devices within the virtual sub-network.
With reference to the first aspect, in certain implementation manners of the first aspect, the obtaining, by the master communication device, first information includes: the primary communication device receives first information from a plurality of first communication devices within a first virtual subnet.
With reference to the first aspect, in certain implementation manners of the first aspect, before the primary communication device sends the first information to the second communication device in the second virtual subnet, the primary communication device receives second information from the second communication device, where the second information is used for the primary communication device to discover with the second communication device, and the second information includes an identifier of the second communication device.
In the embodiment of the application, the main communication equipment and the second communication equipment are mutually discovered, so that the main communication equipment and the second communication equipment can conveniently complete networking in the subsequent process.
With reference to the first aspect, in certain implementations of the first aspect, the master communication device receives third information from the second communication device, the third information including device information of the second communication device; the master communication device stores the third information.
In the embodiment of the application, the main communication device stores the device information of the second communication device, so that after networking is completed, all communication devices in the first virtual sub-network can interact with the second communication device through upper-layer service according to actual conditions.
With reference to the first aspect, in certain implementation manners of the first aspect, before the master communication device receives the second information from the second communication device, the master communication device listens for a change in the internet protocol address IP; the primary communication device determines, based on the IP change, a network in which the secondary communication device is connected to the primary communication device.
In the embodiment of the application, the master communication device determines that a new communication device needs to be networked by monitoring the change of the network or the change of the Bluetooth state, so that the master communication device and the new communication device can be found out mutually.
With reference to the first aspect, in certain implementations of the first aspect, the device information of the first communication device includes at least one of: device status information, device type information, device address information; or, the device information of the second communication device includes at least one of: device status information, device type information, device address information.
In a second aspect, a method for networking is provided, including: the second communication device in the second virtual sub-network receives first information from the master communication device, wherein the first information comprises device information of a plurality of first communication devices in the first virtual sub-network, the master communication device is one of the plurality of first communication devices, the second communication device and the master communication device trust each other, and the second communication device is a communication device connected to a network where the master communication device is located.
With reference to the second aspect, in certain implementations of the second aspect, before the second communication device in the second virtual subnet receives the first information from the master communication device, the second communication device sends second information to the master communication device, where the second information is used for mutual discovery of the second communication device and the master communication device, and the second information includes an identifier of the second communication device.
With reference to the second aspect, in certain implementations of the second aspect, the second communication device sends the third information to the master communication device, the third information including device information of the second communication device.
With reference to the second aspect, in certain implementations of the second aspect, the second communication device is in business interaction with the plurality of first communication devices.
With reference to the second aspect, in certain implementations of the second aspect, the second communication device stores the first information.
With reference to the second aspect, in certain implementations of the second aspect, the device information of the first communication device includes at least one of: device status information, device type information, device address information; or, the device information of the second communication device includes at least one of: device status information, device type information, device address information.
In a third aspect, there is provided a communication apparatus comprising: a transceiver unit, configured to obtain first information, where the first information includes device information of a plurality of first communication devices in a first virtual subnet, and the apparatus is one of the plurality of first communication devices; the transceiver unit is further configured to send the first information to a second communication device in a second virtual subnet, where the master communication device and the second communication device trust each other, and the second communication device is a communication device connected to a network where the apparatus is located.
With reference to the third aspect, in some implementations of the third aspect, the transceiver unit is specifically configured to receive first information from a plurality of first communication devices in the first virtual subnet.
With reference to the third aspect, in some implementations of the third aspect, the transceiver unit is further configured to receive second information from a second communication device, where the second information is used for the apparatus to discover the second communication device, and the second information includes an identifier of the second communication device.
With reference to the third aspect, in certain implementations of the third aspect, the apparatus further includes a storage unit, where the transceiver unit is further configured to receive third information from the second communication device, where the third information includes device information of the second communication device; the storage unit is used for storing the third information.
With reference to the third aspect, in some implementations of the third aspect, the apparatus further includes a listening unit and a processing unit, where the listening unit is configured to listen to a change in an internet protocol address IP; the processing unit is configured to determine, according to the IP change, a network in which the second communication device is connected to the apparatus.
With reference to the third aspect, in certain implementations of the third aspect, the device information of the first communication device includes at least one of: device status information, device type information, device address information; or, the device information of the second communication device includes at least one of: device status information, device type information, device address information.
In a fourth aspect, there is provided a communication apparatus comprising: and the receiving and transmitting unit is used for receiving first information from a main communication device, the first information comprises device information of a plurality of first communication devices in a first virtual sub-network, the main communication device is one of the plurality of first communication devices, the device in a second virtual sub-network and the main communication device trust each other, and the device is connected to a network where the main communication device is located.
With reference to the fourth aspect, in some implementations of the fourth aspect, the transceiver unit is further configured to send second information to the master communication device, where the second information is used for mutual discovery of the apparatus and the master communication device, and the second information includes an identifier of the apparatus.
With reference to the fourth aspect, in some implementations of the fourth aspect, the transceiver unit is further configured to send the third information to the master communication device, where the third information includes device information of the apparatus.
With reference to the fourth aspect, in some implementations of the fourth aspect, the transceiver unit is further configured to interact with the plurality of first communication devices.
With reference to the fourth aspect, in some implementations of the fourth aspect, the apparatus further includes a storage unit, where the storage unit is configured to store the first information.
With reference to the fourth aspect, in certain implementations of the fourth aspect, the device information of the first communication device includes at least one of: device status information, device type information, device address information; or, the device information of the apparatus includes at least one of: device status information, device type information, device address information.
In a fifth aspect, there is provided a communication apparatus comprising: a processor coupled with a memory for storing a computer program for running the computer program to cause the communication device to perform the method as in the first aspect and any one of its possible implementations described above, or to cause the communication device to perform the method as in the second aspect and any one of its possible implementations described above.
With reference to the fifth aspect, in certain implementations of the fifth aspect, the communication device further includes one or more of the memory and a transceiver for receiving signals and/or transmitting signals.
In a sixth aspect, there is provided a computer readable storage medium comprising a computer program or instructions which, when run on a computer, cause a method as in the first aspect and any one of its possible implementations to be performed or cause a method as in the second aspect and any one of its possible implementations to be performed.
A seventh aspect provides a computer program product, characterized in that the computer program product comprises a computer program or instructions which, when run on a computer, cause the method as in the first aspect and any one of its possible implementations to be performed or cause the method as in the second aspect and any one of its possible implementations to be performed.
In an eighth aspect, there is provided a computer program which, when run on a computer, causes the method as in the first aspect and any one of its possible implementations to be performed or causes the method as in the second aspect and any one of its possible implementations to be performed.
In a ninth aspect, a networking system is provided comprising the first communication device, the primary communication device and the second communication device above.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a scenario where a networking method provided by an embodiment of the present application is applicable.
Fig. 3 is a schematic flow chart of a networking method according to an embodiment of the present application.
Fig. 4 is a schematic flow chart of a networking method according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a communication device according to an embodiment of the present application.
Fig. 6 is a schematic flow of a networking method according to an embodiment of the present application.
Fig. 7 is an exemplary block diagram of a communication device according to an embodiment of the present application.
Fig. 8 is an exemplary structural diagram of a communication device according to another embodiment of the present application.
Fig. 9 is a schematic structural diagram of an apparatus provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
The terminology used in the following examples is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include, for example, "one or more" such forms of expression, unless the context clearly indicates to the contrary. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one, two or more than two. The term "and/or" is used to describe an association relationship of associated objects, meaning that there may be three relationships; for example, a and/or B may represent: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Embodiments of an electronic device, a user interface for such an electronic device, and for using such an electronic device are described below. It should be appreciated that the electronic device may be any of the communication devices in the embodiments of the present application. In some embodiments, the electronic device may be a device that also includes other functions such as a personal digital assistant and/or a voicePortable electronic devices with music player functions, such as cell phones, tablet computers, wearable electronic devices with wireless communication functions (e.g., smart watches), and the like. Exemplary embodiments of the portable electronic device include, but are not limited to, a Harmony OS, Or other operating system. The portable electronic device may also be other portable electronic devices such as a laptop computer (laptop) or the like. It should also be appreciated that in other embodiments, the electronic device described above may not be a portable electronic device, but rather a desktop computer.
By way of example, fig. 1 shows a schematic diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity greater than or equal to a first pressure threshold acts on the alarm clock application icon, an instruction to newly create an alarm clock is executed.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc. For example, when the mobile phone detects a touch operation of a user on the screen locking interface, the mobile phone can collect fingerprint information of the user through the fingerprint sensor 180H and match the collected fingerprint information with fingerprint information preset in the mobile phone. If the matching is successful, the mobile phone can enter the non-screen locking interface from the screen locking interface.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
In the following, some terms in the embodiments of the present application are explained for easy understanding by those skilled in the art.
Distributed soft bus
The distributed soft bus can provide uniform distributed communication capability for seamless interconnection between communication devices, and can quickly discover and connect the communication devices so as to efficiently transmit tasks and data.
The HarmonyOS is connected with different communication devices through a distributed soft bus technology, so that multiple communication modes can be realized, the communication devices can be communicated with each other efficiently and conveniently, and a user just like using one communication device. The distributed soft bus may comprise four parts in a logical architecture: discovery, connection, networking, and transport. The four parts can be separated and cooperated in service logic, and the goal of distributed soft bus communication is achieved by constructing a distributed communication framework. The following is a brief introduction of four parts of a distributed soft bus:
1. discovery of
Through the discovery technique of the distributed soft bus, any communication device can discover the existence of its peripheral distributed communication devices. Any communication device may be an active or passive party or both.
Specifically, the discovery technology of the distributed soft bus supports the discovery of communication equipment through different media such as Bluetooth, ethernet, wi-Fi and the like; support selection of an appropriate discovery medium based on capabilities of different communication devices; and the discovery strategies such as proper discovery frequency, scanning period and the like are supported to be provided according to the characteristics and service requirements of the communication equipment.
2. Connection
Any one communication device can be connected with other peripheral distributed communication devices through the connection technology of the distributed soft bus. The distributed soft bus selects the appropriate communication medium and the most appropriate communication connection technology according to the capabilities and traffic demands of the distributed communication device. And a communication link is established between the communication devices, so that subsequent networking and transmission are facilitated.
3. Networking system
By means of the distributed networking technology, any communication device can form a network with distributed communication devices with different communication capabilities. Networking is such that a communication device distributed network is not limited to a single or one-to-one communication connection. The distributed networking may form a dynamic network of communication devices involved in a current scenario (home scenario, industrial manufacturing scenario, etc.).
In a dynamic network of networking, the communication capability and the service capability of each communication device can be effectively managed. When any communication equipment in the networking has service requirements, the communication equipment can provide information of the communication equipment required by the service at any time through the network of the distributed soft bus, and the establishment of a service channel is supported.
4. Transmission of
The transmission technology of the distributed soft bus can provide the transmission capability of service data for any communication equipment in the current scene. The transmission technology of the distributed soft bus can abstract the business data and the service quality (quality of service, qoS) and provide proper transmission service according to the network load and the capability of the communication equipment. The transmission technology can ensure the transmission quality of multiple services in the whole distributed network while ensuring the communication appeal of a single service.
The Harmonyos distributed soft bus abstracts the transferred data into four data models: messages, bytes, files, and streams. Based on different data models, the distributed soft bus can pertinently construct a proper transmission scheme and Qos strategy. Wherein, the message can be used for transmitting short data (such as control instructions) with extremely high real-time and reliability requirements; bytes, which can be used for basic service data transmission with low requirement on time delay; the file can be used for transmitting and synchronizing the file between communication devices, and a larger transmission bandwidth is required, but the real-time requirement is not high; the stream can be used for transmitting audio and video streams, and requires high bandwidth and low time delay.
Under the existing networking method, the new communication equipment needs to be networked with all communication equipment in the current scene, and the networking time is too long, so that the use of users is affected. At the same time, in order to ensure keep alive between communication devices, the new communication device also needs to keep constant connection with all communication devices in the network and periodically transmit data. This can result in consumption of a significant amount of unnecessary resources and power consumption by the communication device, as well as unnecessary waste of air interface resources.
Therefore, the embodiment of the application provides a networking method which can be used for communication equipment, and can realize a networking mode with small time delay and small occupied resources under the condition of large quantity of communication equipment in the networking.
Fig. 2 is a schematic diagram of a scenario where the networking method provided by the embodiment of the present application is applicable. The scene can be an intelligent family scene or a mine automatic acquisition scene. In mine automation acquisition scenarios, there are typically hundreds of racks on the coal face. When a new communication device needs to be networked, the new communication device needs to be networked with hundreds of brackets respectively, which is too long in time consumption and also needs to consume a large amount of resources. Fig. 2 shows a networking scenario for smart home. It is understood that the plurality of first communication devices are located in the same local area network, and the plurality of first communication devices may be various intelligent terminal devices. The plurality of first communication devices has completed the networking, illustratively and is divided into first virtual subnets. When the second communication device accesses the current local area network as a new communication device, the second communication device only needs to be networked with a master communication device of the plurality of first communication devices, and only needs to be always connected with the master communication device. Thus, the time required by networking of the new communication equipment can be reduced, and resources required by keep-alive are saved.
Fig. 3 shows a schematic flow chart of a networking method according to an embodiment of the present application. The method is applicable to the system architecture shown in fig. 2. The method comprises the following specific steps:
s301, the master communication device acquires the first information.
It will be appreciated that the first information includes device information for a plurality of first communication devices within the first virtual sub-network, the master communication device being one of the plurality of first communication devices. The first virtual sub-network is only a virtual sub-network which is logically divided, and the basis for dividing the virtual sub-network under different scenes can be different. Logic for dividing the virtual subnets may be preconfigured, and one or more virtual subnets may be divided according to actual situations.
In some embodiments, a primary communication device receives first information from a plurality of first communication devices within a first virtual subnet. That is, the master communication device may collect the first information of the plurality of first communication devices.
In some embodiments, in a home scenario, virtual subnets may be partitioned by device type or physical distance of the devices. For example, all intelligent terminals in a living room may be divided into one virtual subnet, and all intelligent terminals in a bedroom may be divided into one virtual subnet.
In some embodiments, the primary communication device is within the same virtual subnet as the plurality of first communication devices. The master communication device trusts with all communication devices within the same virtual subnet.
In some embodiments, when there is only one communication device within a virtual subnet, the communication device is the master device.
In some embodiments, when there are multiple communication devices within a virtual subnet, the multiple communication devices elect one communication device as the master communication device. The master communication device may be elected according to a random algorithm or a memory space of the communication device. The method for electing the master communication device is not limited by the embodiment of the application. A new primary communication device may be elected from within the virtual sub-network while the current primary communication device is offline.
S302, the primary communication device sends first information, and accordingly, the secondary communication device receives the first information.
It should be appreciated that the second communication device is partitioned into a second virtual sub-network. The primary communication device and the secondary communication device trust each other. That is, the plurality of first communication apparatuses and the second communication apparatus trust each other, and for a detailed description, please refer to step S402 later. The second communication device stores the first information. The second communication device may be networked with the plurality of first communication devices through the master communication device. The second communication device may be understood as a new communication device under the network where the access master communication device is located.
In some embodiments, the primary communication device receives second information sent by the second communication device before the primary communication device sends the first information to the second communication device, the second information being for the primary communication device and the second communication device to discover each other, the second information including an identification of the second communication device. Discovery may be understood as active discovery or passive discovery. Wherein the second information may be transmitted by the second communication device via a constrained application protocol (Constrained Application Protocol, COAP) broadcast message, or a bluetooth low energy (Bluetooth Low Energy, BLE) broadcast message. It will be appreciated that the second information may be received by a plurality of first communication devices within the first virtual sub-network, but processed by the master communication device.
In some embodiments, the master communication device receives third information sent by the second communication device, the third information including device information of the second communication device. The master communication device stores the third information.
In some embodiments, the master communication device listens for a change in the internet protocol address (Internet Protocol Address, IP) before the master communication device receives the second information sent by the second communication device; the primary communication device determines, based on the IP change, the network in which the secondary communication device is connected to the primary communication device. Illustratively, the IP change may be caused by the turning on or off of the WLAN; or may be caused by the plugging of ethernet; but may also be caused by Wi-Fi turning on or off.
In some embodiments, the device information of the first communication device includes at least one of: device status information, device type information, device address information; or, the device information of the second communication device includes at least one of: device status information, device type information, device address information. The master communication device stores device information of the second communication device. The second communication device stores device information of the plurality of first communication devices. Therefore, after networking is completed, the first communication device and the second communication device can realize service interaction according to actual needs.
In some embodiments, multiple virtual subnets may be divided, where each virtual subnet has a primary communication device, and when a second communication device may be often connected to a specific primary communication device according to actual needs, the second communication device may be often connected to one primary communication device or may be often connected to multiple primary communication devices, which embodiments of the present application are not limited in this respect.
The networking method provided by the embodiment of the application ensures that the new communication equipment (second communication equipment) can acquire the equipment information of all communication equipment (for example, the first communication equipment in the first virtual sub-network) in the virtual sub-network only by networking with the main communication equipment in the virtual sub-network, thereby effectively reducing the time delay and the networking time. On the other hand, in order to keep alive, the second communication device only needs to keep constant connection with the main communication device, and does not need to keep constant connection with all communication devices in the virtual sub-network, so that occupation of resources can be effectively saved.
To facilitate understanding of the networking method, a schematic flow chart of a networking method is shown in FIG. 4. The method specifically comprises the following steps:
s401, the second communication device is found.
It should be appreciated that the listening module in the first communication device listens for IP changes. The discovery module in the first communication device transmits a broadcast message that can be used to discover the second communication device. The first communication device is any communication device in the network, and any communication device in the network may include a monitoring module. The second communication device may be a new communication device that needs to join the network in which the first communication device is located.
Illustratively, the IP change may be caused by the turning on or off of the WLAN; or may be caused by the plugging of ethernet; but may also be caused by Wi-Fi turning on or off. The monitoring module may also monitor the state change of bluetooth. The application does not limit the information specifically monitored by the monitoring module of the first communication equipment.
Illustratively, the type of broadcast message sent by the discovery module may be a COAP broadcast message, a BLE broadcast message, or the like. The embodiment of the present application is not limited thereto.
S402, trusted authentication.
It should be appreciated that upon the first communication device discovering the second communication device, a state machine module in the first communication device instructs the authentication module to perform trusted authentication.
By way of example, the mode of trusted authentication may be in a variety of ways including, but not limited to, confirming whether the second communication device is trusted based on a trust ring mechanism (hicain). For ease of understanding, a second communication device that is the same as the user account of the first communication device may be considered trusted.
The first communication device and the second communication device confirm that they are mutually trusted, exchange device information with each other, and store the device information in the ledger module of the first communication device and the second communication device. Illustratively, the device information of the first communication device includes at least one of: device status information, device type information, device address information; the device information of the second communication device includes at least one of: device status information, device type information, device address information.
S403, service interaction.
It should be appreciated that after the first communication device and the second device confirm mutual trust, the state machine modules of the first communication device and the second communication device notify the upper layer, that is, the first communication module and the second communication device may perform service interaction.
S404, keeping the device alive.
It will be appreciated that the first communication device and the second communication device may be normally connected via a transmission control protocol (Transmission Control Protocol, TCP), and that the keep-alive of the first communication device and the second communication device may be achieved via the normally connected. Illustratively, the first communication device and the second communication device may detect each other whether the counterpart communication device may normally communicate, whether circulation may be performed, and so on.
Based on the above steps, networking between trusted communication devices can be achieved, and specifically, fig. 5 shows a schematic diagram of a communication device, taking a first communication device 500 as an example. The first communication device 500 comprises a traffic module 501, a state machine module 502, a listening module 503, a discovery module 504, a ledger module 505 and an authentication module 506. It should be understood that the second communication device or any communication device within the network may comprise modules as shown in fig. 5. The account book module may be a storage module or a storage unit, and the authentication module and the discovery module may be a processing module or a processing unit, which may be used to implement various processing operations performed by the communication device.
The monitoring module 503 is configured to implement the monitoring of the change of the network or the change of the bluetooth state in step S401.
The discovery module 504 is configured to implement the sending of the broadcast message in step S401 described above, and discover a new communication device. Specifically, the discovery module 504 may include an active discovery module and a passive discovery module, that is, the communication device may be used as a device actively accessing the network, send a broadcast message, and also may be used as any communication device in the network, and receive a broadcast message sent by a new communication device.
The authentication module 506 is configured to perform mutual trusted authentication of the first communication device and the second communication device in step S402. Specifically, when the user account of the first communication device authenticates the second communication device is the same as the user account of the first communication device, the first communication device confirms that the second communication device is trusted.
Ledger module 505 is configured to implement that the first communication device or the second communication device stores the communication device information exchanged with each other in step S302.
The state machine module 502 may be understood as a control module and may include a first state machine module, a second state machine module, and a third state machine module. Wherein the first state machine module is configured to: the control authentication module 506 initiates trusted authentication. When the trusted authentication is completed, the second state machine is configured to: the control ledger module 505 exchanges communication device information and stores the communication device information. After the communication device information exchange is completed, the third state machine is used for: the upper service module 501 is notified, and after networking is completed, the communication devices can interact with each other through the service module.
The service module 501 is configured to implement the service interaction in step S403. The service module 501 is an upper module, and may perform service interaction according to specific requirements of the communication device.
Fig. 6 is a schematic flow chart of a networking method according to an embodiment of the present application, where a first communication device is located in the same virtual subnet as a main communication device, the main communication device is selected from a plurality of first communication devices, and a second communication device is a new communication device that needs to be networked. The first communication device may be one or more. When there are multiple virtual subnets, there are also multiple primary communication devices, one within each virtual subnet. The method comprises the following specific steps:
s601, the master communication device listens for IP changes.
It should be appreciated that the primary communication device may listen for changes in IP based on ethernet plug, wi-Fi on or off, WLAN on or off. When the master communication device monitors the IP change, the discovery module is invoked, and the master communication device may perform the following step S602.
S602, the master communication device or the first communication device receives the second information, and accordingly, the second communication device transmits the second information.
It should be appreciated that the second information may be a broadcast message that may be received by both the primary communication device and the first communication device within one virtual subnet. The primary communication device parses the received second information.
S603, the master communication device and the second communication device discover each other.
It should be understood that the discovery module in the master communication device and the second communication device performs this step S603, and the master communication device discovers the second communication device, and the second communication device discovers the master communication device. The details are as described in the above step S401, and will not be repeated here.
S604, the main communication device and the second communication device are in trusted authentication.
It will be appreciated that the primary communication device and the secondary communication device trust each other, that is, the first communication device and the second communication device trust each other as well. Communication connection can be established between the communication devices which trust each other, and service interaction can be performed. The details are as described in the above step S402, and will not be repeated here.
S605, the master communication device receives the third information, and accordingly, the second communication device transmits the third information.
S606, the master communication device stores the third information.
It should be understood that the third information includes device information of the second communication device. The main communication device can realize subsequent service interaction according to the third information.
S607, the first communication device transmits the first information, and accordingly, the master communication device acquires the first information.
It should be understood that the manner in which the primary communication device obtains the first information may be transmitted by the primary communication device, and the present application is not limited to a specific method in which the primary communication device obtains the first information, and step S607 is only exemplary of one method in which the primary communication device obtains the first information.
S608, the master communication device transmits the first information, and accordingly, the second communication device receives the first information.
S609, the second communication device stores the first information.
It should be understood that the first information includes device information of the first communication device. The master communication device is elected from the first communication device, and thus the first information also includes device information of the master communication device. The second communication device can implement subsequent service interaction according to the first information.
And S610, the first communication device and the main communication device interact with the second communication device in a service mode.
The details are as described in the above step S403, and will not be repeated here.
S611, the primary communication device is kept alive with the second communication device.
The details are as described in the above step S404, and will not be repeated here.
It should be noted that, the execution of the step S605 and the step S608 is not limited in sequence, and the step S605 may be executed first and then the step S608 may be executed; step S608 may be executed first, and then step S605 may be executed; or step S605 and step S608 are executed simultaneously; and are not limited.
It should be noted that, the execution of the step S601 and the step S607 is not limited in sequence, and the step S601 may be executed first, and then the step S607 may be executed; step S607 may be performed first, and then step S601 may be performed; or step S601 and step S607 are performed simultaneously; and are not limited.
Fig. 7 shows a schematic structural diagram of a communication apparatus 700 according to an embodiment of the present application. The communication apparatus 700 may be a first communication device, a main communication device, or a second communication device, or may be an apparatus in the first communication device, the main communication device, or the second communication device, or may be an apparatus that can be used in a matching manner with the first communication device, the main communication device, or the second communication device. In a possible implementation, the communication apparatus 700 may include modules or units corresponding to one to perform the method/operation/step/action performed by the first communication device, the main communication device, or the second communication device in the foregoing method embodiments, where the units may be implemented by using hardware circuits, or by using software, or by using hardware circuits in combination with software. In one possible implementation, the communication device 700 includes: a processing unit 710 and a transceiver unit 720. It should be understood that the communication device shown in fig. 7 is only an example, and may include other units, or units similar in function to the respective units in fig. 7, or may not necessarily include all units in fig. 7.
It should be noted that, the processing unit in the embodiment of the present application may also be referred to as a processing module, and the transceiver unit may also be referred to as a transceiver unit (module).
Fig. 8 shows a communication apparatus 800 according to an embodiment of the present application, where the communication apparatus 800 may be the first communication device, the main communication device, or the second communication device described in fig. 6. The apparatus may include a processor 810 and a transceiver 830. The apparatus may include a process 810 and a transceiver 830. The transceiver may include a transmitter and/or a receiver. Optionally, the apparatus may further include a memory 820, and the processor 810, the transceiver 830, and the memory 820 are in communication with each other through an internal connection path. The related functions implemented by the processing unit 710 in fig. 7 may be implemented by the processor 810, and the related functions implemented by the transceiver unit 720 may be implemented by the processor 810 controlling the transceiver 830.
In the alternative, processor 810 may be a CPU, microprocessor, ASIC, special purpose processor, or one or more integrated circuits that perform the techniques of embodiments of the present application. In the alternative, a processor may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions). For example, a baseband processor, or a central processing unit. The baseband processor may be used to process communication protocols and communication data, and the central processor may be used to control a communication apparatus (e.g., a network device, a terminal device, or a chip, etc.), execute a software program, and process data of the software program.
Alternatively, the processor 810 may include one or more processors, such as one or more CPUs, which in the case of a single-core CPU or multi-core CPU.
The transceiver 830 is configured to transmit and receive data and/or signals, and to receive data and/or signals. The transceiver may include a transmitter for transmitting data and/or signals and a receiver for receiving data and/or signals.
The memory 820 includes, but is not limited to, random access memory (random access memory, RAM), read-only memory (ROM), erasable programmable memory (erasable programmable read only memory, EPROM), and compact disc read-only memory (compact disc read, CD-ROM), the memory 820 for storing related instructions and data. The memory 820 is used to store computer programs or instructions and data for the network device, either as a separate device or integrated in the processor 810.
In a specific implementation, as an embodiment, the communication apparatus 800 may further include an output device and an input device. The output device communicates with the processor 810 and can display information in a variety of ways. For example, the output device may be a liquid crystal display (liquid crystal display, LCD), a light emitting diode (light emitting diode, LED) display device, a Cathode Ray Tube (CRT) display device, or a projector, etc. The input device(s) is in communication with the processor 810 and may receive user input in a variety of ways. For example, the input device may be a book mouse, a keyboard, a touch screen device, a sensing device, or the like.
It will be appreciated that fig. 8 shows only a simplified design of a communication device. In practical applications, the apparatus may also include other necessary elements, including but not limited to any number of transceivers, processors, controllers, memories, etc., and all terminal devices capable of implementing the present application are within the scope of the present application.
In one possible design, the apparatus 800 may be a chip, such as a communication chip usable in a first communication device, a primary communication device, or a secondary communication device, for implementing the functionality associated with the processor 810 in the first communication device, the primary communication device, or the secondary communication device. The chip can be a thread programmable gate array, an application specific integrated chip, a system chip, a central processing unit, a network processor, a digital signal processing circuit, a microcontroller which can realize related functions, and can also adopt a programmable controller or other integrated chips. The chip may optionally include one or more memories for storing computer programs or instructions which, when executed, cause the processor to perform the corresponding functions.
As shown in fig. 9, an apparatus 900 is further provided in the embodiment of the present application, which may be used to implement the functions of the first communication device, the main communication device, or the second communication device in the above method, where the apparatus 900 may be a communication apparatus or a chip in the communication apparatus. The communication device includes:
At least one input-output interface 910 and logic circuitry 920. The input/output interface 910 may be an input/output circuit, an input interface, an output interface, etc. Logic 920 may be a signal processor, chip, or other integrated circuit that may implement the methods of the present application.
The logic 920 is configured to perform some or all of the steps of any one of the methods provided in the embodiments of the present application. For example, when the apparatus is a first communication device, the method is used to perform the steps performed by the first communication device in the various possible implementations of the method embodiments described above. When the apparatus is a master communication device, the method is used to perform steps performed by the master communication device in the various possible implementation methods in the method embodiments described above. When the apparatus is a second communication device, the method is used to perform the steps performed by the second communication device in the various possible implementation methods in the method embodiments described above.
The embodiment of the application also provides a device which can be the first communication equipment, the main communication equipment or the second communication equipment or a logic circuit. The apparatus may be configured to perform the actions performed by one communication device, a primary communication device, or a secondary communication device in the above-described method embodiments.
The present application also provides a computer readable storage medium storing one or more programs or instructions which, when executed on a computer, cause the computer to perform the method described in the above embodiments.
The embodiments of the present application also provide a computer program comprising a program or instructions which, when executed by a computer, enable the computer to perform the corresponding flow of the method of the embodiments described above.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
It should be understood that the first, second, and various numerical numbers referred to herein are merely descriptive convenience and are not intended to limit the scope of embodiments of the present application.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (28)

1. A method of networking, comprising:
the method comprises the steps that a master communication device obtains first information, wherein the first information comprises device information of a plurality of first communication devices in a first virtual subnet, and the master communication device is one of the plurality of first communication devices;
the master communication device sends the first information to a second communication device in a second virtual sub-network, wherein the master communication device and the second communication device trust each other, and the second communication device is a communication device connected to a network where the master communication device is located.
2. The method of claim 1, wherein the master communication device obtaining the first information comprises:
the primary communication device receives first information from a plurality of first communication devices within a first virtual subnet.
3. The method according to claim 1 or 2, wherein before the primary communication device sends the first information to the second communication device within the second virtual sub-network, the method further comprises:
the master communication device receives second information from a second communication device, the second information being used for the master communication device and the second communication device to discover each other, the second information including an identification of the second communication device.
4. A method according to any one of claims 1 to 3, further comprising: the master communication device receiving third information from the second communication device, the third information including device information of the second communication device;
the master communication device stores the third information.
5. A method according to claim 3, wherein before the primary communication device receives the second information from the secondary communication device, the method further comprises:
the master communication device monitors that the IP address changes;
and the master communication equipment determines the network where the second communication equipment is connected to the master communication equipment according to the IP change.
6. The method according to any of claims 1 to 5, wherein the device information of the first communication device comprises at least one of:
device status information, device type information, device address information; or alternatively, the first and second heat exchangers may be,
the device information of the second communication device includes at least one of:
device status information, device type information, device address information.
7. A method of networking, comprising:
the second communication device in the second virtual sub-network receives first information from the main communication device, wherein the first information comprises device information of a plurality of first communication devices in the first virtual sub-network, the main communication device is one of the plurality of first communication devices, the second communication device and the main communication device trust each other, and the second communication device is a communication device connected to a network where the main communication device is located.
8. The method of claim 7, wherein prior to the second communication device within the second virtual sub-network receiving the first information from the master communication device, the method further comprises:
the second communication device sends second information to the main communication device, the second information is used for the second communication device to find out with the main communication device, and the second information comprises the identification of the second communication device.
9. The method according to claim 7 or 8, characterized in that the method further comprises: the second communication device sends the third information to the master communication device, wherein the third information comprises device information of the second communication device.
10. The method according to any one of claims 7 to 9, further comprising:
the second communication device is in business interaction with the plurality of first communication devices.
11. The method according to any one of claims 7 to 10, further comprising:
the second communication device stores the first information.
12. The method according to any of claims 6 to 10, wherein the device information of the first communication device comprises at least one of:
Device status information, device type information, device address information; or alternatively, the first and second heat exchangers may be,
the device information of the second communication device includes at least one of:
device status information, device type information, device address information.
13. A communication device, comprising:
a transceiver unit, configured to obtain first information, where the first information includes device information of a plurality of first communication devices in a first virtual subnet, and the apparatus is one of the plurality of first communication devices;
the transceiver unit is further configured to send the first information to a second communication device in a second virtual subnet, where the apparatus and the second communication device trust each other, and the second communication device is a communication device connected to a network where the apparatus is located.
14. The method of claim 13, wherein the step of determining the position of the probe is performed,
the receiving and transmitting unit is specifically configured to receive first information from a plurality of first communication devices in the first virtual subnet.
15. The device according to claim 13 or 14, wherein,
the transceiver unit is further configured to receive second information from a second communication device, where the second information is used for the device to discover the second communication device, and the second information includes an identifier of the second communication device.
16. The device according to claim 13 to 15, further comprising a storage unit, wherein,
the transceiver unit is further configured to receive third information from the second communication device, where the third information includes device information of the second communication device;
the storage unit is used for storing the third information.
17. The apparatus according to any one of claims 13 to 16, further comprising a listening unit and a processing unit, wherein,
the monitoring unit is used for monitoring that the IP address changes;
and the processing unit is used for determining that the second communication equipment is connected to the network where the device is positioned according to the change of the IP.
18. The apparatus according to any one of claims 13 to 17, wherein the device information of the first communication device comprises at least one of:
device status information, device type information, device address information; or alternatively, the first and second heat exchangers may be,
the device information of the second communication device includes at least one of:
device status information, device type information, device address information.
19. A communication device, comprising:
And the receiving and transmitting unit is used for receiving first information from a main communication device, wherein the first information comprises device information of a plurality of first communication devices in a first virtual sub-network, the main communication device is one of the plurality of first communication devices, the device in a second virtual sub-network and the main communication device trust each other, and the device is connected to a network where the main communication device is located.
20. The apparatus of claim 19, wherein the device comprises a plurality of sensors,
the transceiver unit is further configured to send second information to the master communication device, where the second information is used for the device and the master communication device to discover each other, and the second information includes an identifier of the device.
21. The device according to claim 19 or 20, wherein,
the transceiver unit is further configured to send the third information to the primary communication device, where the third information includes device information of the apparatus.
22. The device according to any one of claims 19 to 21, wherein,
the transceiver unit is further configured to interact with the plurality of first communication devices.
23. The device according to any one of claims 19 to 22, further comprising a storage unit, wherein,
The storage unit is used for storing the first information.
24. The apparatus according to any one of claims 19 to 23, wherein the device information of the first communication device comprises at least one of:
device status information, device type information, device address information; or alternatively, the first and second heat exchangers may be,
the device information of the apparatus includes at least one of:
device status information, device type information, device address information.
25. A communication device, comprising: a processor coupled with a memory for storing a computer program, the processor for running the computer program to cause the communication device to perform the method of any one of claims 1 to 6, 7 to 12.
26. The communication device of claim 25, further comprising one or more of the memory and a transceiver for receiving signals and/or transmitting signals.
27. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a computer program or instructions which, when run on a computer, cause the method of any one of claims 1 to 6, 7 to 12 to be performed.
28. A computer program product, characterized in that the computer program product comprises a computer program or instructions which, when run on a computer, cause the method according to any one of claims 1 to 6, 7 to 12 to be performed.
CN202210511168.3A 2022-05-11 2022-05-11 Networking method and device Pending CN117098253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210511168.3A CN117098253A (en) 2022-05-11 2022-05-11 Networking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210511168.3A CN117098253A (en) 2022-05-11 2022-05-11 Networking method and device

Publications (1)

Publication Number Publication Date
CN117098253A true CN117098253A (en) 2023-11-21

Family

ID=88777844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210511168.3A Pending CN117098253A (en) 2022-05-11 2022-05-11 Networking method and device

Country Status (1)

Country Link
CN (1) CN117098253A (en)

Similar Documents

Publication Publication Date Title
CN115209195B (en) Terminal equipment, method and system for realizing one touch screen through remote controller
US20220039179A1 (en) Bluetooth Connection Method and Device
US11825539B2 (en) Bluetooth connection method and electronic device
EP4024918B1 (en) Bluetooth connection method and related apparatus
WO2021043219A1 (en) Bluetooth reconnection method and related apparatus
EP4213512A1 (en) Screen projection method and system, and electronic device
WO2021043198A1 (en) Bluetooth pairing method, and related device
CN112954819B (en) Equipment networking method, electronic equipment and system
CN114339709A (en) Wireless communication method and terminal device
CN113038627B (en) File sharing method, mobile device and computer storage medium
WO2022042265A1 (en) Communication method, terminal device, and storage medium
WO2021027623A1 (en) Device capability discovery method and p2p device
CN117098253A (en) Networking method and device
CN112469014A (en) Method and electronic equipment for configuring Bluetooth connection parameters
WO2023051204A1 (en) Cross-device connection method, electronic device and storage medium
CN114285737B (en) Method and device for configuring device
WO2023165513A1 (en) Communication method, electronic device, and apparatus
CN114980238B (en) Wi-Fi access method and related equipment
WO2023236670A1 (en) Data transmission management method, electronic device and storage medium
WO2024051718A1 (en) Data synchronization method, and related apparatus and system
CN117014377A (en) Congestion control negotiation method, electronic equipment and storage medium
CN116367123A (en) Wi-Fi P2P-based data transmission method and electronic equipment
CN114980238A (en) Wi-Fi access method and related equipment
CN115802326A (en) Bluetooth connection method and electronic equipment
CN115703006A (en) Equipment connection method, device and system

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