CN114500612B - Method and device for local networking of Internet of things, electronic equipment and storage medium - Google Patents

Method and device for local networking of Internet of things, electronic equipment and storage medium Download PDF

Info

Publication number
CN114500612B
CN114500612B CN202210355457.9A CN202210355457A CN114500612B CN 114500612 B CN114500612 B CN 114500612B CN 202210355457 A CN202210355457 A CN 202210355457A CN 114500612 B CN114500612 B CN 114500612B
Authority
CN
China
Prior art keywords
local
information
equipment
networking
network domain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210355457.9A
Other languages
Chinese (zh)
Other versions
CN114500612A (en
Inventor
仇庆宇
李淼
巨东敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Aisino Corp
Original Assignee
Shenzhen Aisino Corp
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 Shenzhen Aisino Corp filed Critical Shenzhen Aisino Corp
Priority to CN202210355457.9A priority Critical patent/CN114500612B/en
Publication of CN114500612A publication Critical patent/CN114500612A/en
Application granted granted Critical
Publication of CN114500612B publication Critical patent/CN114500612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application is applicable to the technical field of the Internet of things, and provides a method and a device for local networking of the Internet of things, electronic equipment and a storage medium. The method comprises the following steps: acquiring networking information of local equipment, wherein the networking information comprises equipment identification, equipment type and equipment control function of the local equipment; acquiring network domain identification information of a network domain to which the local equipment belongs according to the equipment identification of each local equipment; according to the network domain identification information, a common local identity is established for local equipment belonging to the same network domain; and controlling the local router to access each local device, and transmitting the device control function corresponding to each local device to other local devices with the same local identity. The method and the device have the advantages that the local devices in the same network domain are bound, the local devices in the same network domain are made to know the control functions of other local devices, and the appropriate local devices can be selected to communicate or control the local devices according to the known control functions.

Description

Method and device for local networking of Internet of things, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of the Internet of things, and particularly relates to a method and device for local networking of the Internet of things, electronic equipment and a storage medium.
Background
Currently, the internet of things in operation generally adopts a cloud server to store the binding relationship among the devices of the internet of things so as to realize the mutual communication or the mutual control among the devices of the internet of things.
For example, after being triggered by smoke exceeding a preset concentration, the smoke sensor finds a corresponding alarm device through a binding relationship stored in the cloud server, and sends a control instruction to the alarm device, so that the alarm device gives an alarm in a sound mode, a light mode or the like.
However, the binding time is too long in the networking mode of the cloud server, and once the cloud server stops service or communication between each piece of internet-of-things equipment and the cloud server is interrupted, all pieces of internet-of-things equipment cannot communicate with each other or can be controlled mutually, so that the internet of things system is broken down.
Disclosure of Invention
The embodiment of the application provides a method and a device for local networking of the Internet of things, electronic equipment and a storage medium, which can solve at least part of the problems.
In a first aspect, an embodiment of the present application provides a method for local networking of an internet of things, where the method includes:
acquiring networking information of local equipment, wherein the networking information comprises equipment identification, equipment type and equipment control function of the local equipment;
acquiring network domain identification information of a network domain to which the local equipment belongs according to the equipment identification of each local equipment;
according to the network domain identification information, establishing a common local identity for the local equipment belonging to the same network domain;
and controlling a local router to access each local device, and transmitting the device control function corresponding to each local device to other local devices with the same local identity.
It should be understood that, the common local identity is created for the local devices belonging to the same network domain, which plays a role in binding the local devices in the same network domain, and on one hand, the local devices in the same network domain can be distinguished from the local devices in other network domains, so as to facilitate communication inside the local devices in the same network domain; on the other hand, other devices, such as a gateway, can conveniently identify local devices in the network domain; the local router is controlled to access each local device, the device control function corresponding to each local device is transmitted to other local devices with the same local identity, so that the local devices in the same network domain know the control functions of the other local devices, and when the local devices need to communicate with the other local devices or control the other local devices, the local devices can be selected to communicate or control the local devices according to the known control functions.
Optionally, before the step of obtaining networking information of the local device, the method further includes:
periodically searching for device information of the local device through a local router;
extracting the device identification, the device type and the device control function of each local device from the device information searched by the local router;
adding the device identification, the device type, and the device control function of each of the local devices to the networking information.
Optionally, the network domain identification information is frequency band information of the local device.
Optionally, the step of creating a common local identity for local devices belonging to the same network domain according to the network domain identification information includes:
extracting the first character of the equipment identifier of each local equipment according to a first preset sequence aiming at the local equipment belonging to the same network domain;
and splicing the first characters into a first character string according to the first preset sequence, and taking the first character string as the common local identity of the local devices belonging to the same network domain.
Optionally, the step of controlling the local router to access each local device and transmit the device control function corresponding to each local device to other local devices having the same local identity includes:
in the networking information, sequentially acquiring target networking information corresponding to each local device;
according to the target networking information, the router is utilized to sequentially access other local equipment with the same local identity identifier as the local identity identifier in the target networking information;
and sending all the networking information of the local equipment corresponding to the same local identity to each local equipment corresponding to the same local identity so as to indicate the local equipment to update the networking information in the equipment.
Optionally, after the step of obtaining networking information of the local device, the method further includes:
and outputting display information to local display equipment, wherein the display information comprises the number of the local equipment participating in networking in each network domain.
Optionally, before the step of obtaining networking information of the local device, the method further includes:
acquiring a control relation among the local devices;
and distributing the same network domain identification information for the local equipment with the control relation.
Optionally, the step of creating a common local identity for local devices belonging to the same network domain according to the network domain identification information includes:
acquiring an identification character string corresponding to the equipment identification of each local equipment belonging to the same network domain;
splicing the identification character strings into a first combined character string according to a second preset sequence;
acquiring a function character string corresponding to the equipment control function of each local equipment belonging to the same network domain;
adding the functional character strings according to the second preset sequence after the first combined character string;
acquiring a network domain character string corresponding to the network domain identification information common to the local devices belonging to the same network domain;
adding the network domain character string after the first combined character string;
and taking the first combined character string as the local identity.
In a second aspect, an embodiment of the present application provides an apparatus for local networking of an internet of things, including:
the networking information acquisition module is used for acquiring networking information of the local equipment, wherein the networking information comprises equipment identification, equipment type and equipment control function of the local equipment;
a network domain identification information obtaining module, configured to obtain, according to the device identifier of each local device, network domain identification information of a network domain to which the local device belongs;
the local identity identification creating module is used for creating a common local identity identification for the local equipment belonging to the same network domain according to the network domain identification information;
and the control function transmission module is used for controlling a local router to access each local device and transmitting the device control function corresponding to each local device to other local devices with the same local identity.
Optionally, the device for local networking of the internet of things further includes:
the device information searching module is used for periodically searching the device information of the local device through a local router;
a networking information extraction module, configured to extract the device identifier, the device type, and the device control function of each local device from device information searched by the local router;
and the networking information adding module is used for adding the equipment identifier, the equipment type and the equipment control function of each local equipment to the networking information.
Optionally, the network domain identification information is frequency band information of the local device.
Optionally, the local identity creating module includes:
the first character extraction module is used for extracting the first character of the equipment identifier of each local equipment according to a first preset sequence aiming at the local equipment belonging to the same network domain;
and the first character string acquisition module is used for splicing the first characters into a first character string according to the first preset sequence, and taking the first character string as a common local identity of the local devices belonging to the same network domain.
Optionally, the control function transmitting module includes:
the target networking information acquisition module is used for sequentially acquiring target networking information corresponding to each local device in the networking information;
the local equipment access module is used for sequentially accessing other local equipment with the same local identity identifier as the local equipment in the target networking information by using the router according to the target networking information;
and the local equipment networking information updating module is used for sending the networking information of all the local equipment corresponding to the same local identity to each local equipment corresponding to the same local identity so as to indicate the local equipment to update the networking information in the local equipment.
Optionally, the device for local networking of the internet of things further includes:
and the information display module is used for outputting display information to local display equipment, wherein the display information comprises the number of the local equipment participating in networking in each network domain.
Optionally, the device for local networking of the internet of things further includes:
the control relation acquisition module is used for acquiring the control relation among the local devices;
and the network domain identification information distribution module is used for distributing the same network domain identification information for the local equipment with the control relationship.
Optionally, the local identity creating module includes:
an identification character string obtaining module, configured to obtain an identification character string corresponding to the device identifier of each local device belonging to the same domain;
the first combined character string acquisition module is used for splicing the identification character strings into a first combined character string according to a second preset sequence;
a function string obtaining module, configured to obtain a function string corresponding to the device control function of each local device belonging to the same domain;
the function character string adding module is used for adding the function character strings according to the second preset sequence after the first combined character string;
a domain character string acquisition module, configured to acquire a domain character string corresponding to the domain identification information common to the local devices belonging to the same domain;
a network domain character string adding module, configured to add the network domain character string after the first combined character string;
and the local identity identification determining module is used for taking the first combined character string as the local identity identification.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the computer program, when executed by the processor, implementing the method steps of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including: the computer readable storage medium stores a computer program which, when executed by a processor, performs the method steps of the first aspect described above.
In a fifth aspect, embodiments of the present application provide a computer program product, which, when run on an electronic device, causes the electronic device to perform the method steps of the first aspect.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
Fig. 1 is a schematic flowchart of a method for local networking of the internet of things according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for local networking of the internet of things according to another embodiment of the present application;
fig. 3 is a schematic flowchart of a method for local networking of the internet of things according to another embodiment of the present application;
fig. 4 is a schematic flowchart of a method for local networking of the internet of things according to another embodiment of the present application;
fig. 5 is a schematic flowchart of a method for local networking of the internet of things according to another embodiment of the present application;
fig. 6 is a schematic flowchart of a method for local networking of the internet of things according to another embodiment of the present application;
fig. 7 is a schematic flow chart of a local networking system of the internet of things according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an apparatus for local networking of the internet of things according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an apparatus for local networking of the internet of things according to another embodiment of the present application;
fig. 10 is a schematic structural diagram of an apparatus for local networking of the internet of things according to another embodiment of the present application;
fig. 11 is a schematic structural diagram of an apparatus for local networking of the internet of things according to another embodiment of the present application;
fig. 12 is a schematic structural diagram of an apparatus for local networking of the internet of things according to another embodiment of the present application;
fig. 13 is a schematic structural diagram of an apparatus for local networking of the internet of things according to another embodiment of the present application;
fig. 14 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Before describing the method for local networking of the internet of things provided by the embodiment of the present application, in order to facilitate understanding of the embodiment of the present application, the following description is made on related concepts related to the embodiment of the present application.
The internet of things is that any object or process needing monitoring, connection and interaction is collected in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors, laser scanners and the like, various required information such as sound, light, heat, electricity, mechanics, chemistry, biology, positions and the like is collected, ubiquitous connection of objects and objects, and ubiquitous connection of objects and people are realized through various possible network accesses, and intelligent sensing, identification and management of the objects and the processes are realized. The internet of things is an information bearer based on the internet, a traditional telecommunication network and the like, and all common physical objects which can be independently addressed form an interconnected network.
The local device may be an internet of things device working locally at the user. For example, the internet of things equipment working in local places such as rooms, buildings, factories and venues where users are located. The local device may be an internet of things device connected to a local gateway or a local router, and the local device may communicate with the cloud server through the local gateway or the local router. The local device may be directly connected to the local gateway or the local router, and the local device may also be connected to the local gateway or the local router in a cascading manner. The connection here may be a wired connection or a wireless connection. The local device may be a camera, a smoke sensor, an alarm, a sound, an electrically controlled curtain, an intelligent door lock, and the like, which are only examples and are not limited in this application.
The networking information is information for establishing a local internet of things equipment network. Each local device may communicate with other local devices using information in the networking information. Networking information includes, but is not limited to, device identification, device type, and control function information.
Device identification includes, but is not limited to, device code, device name, MAC address of the device, etc. may be used to uniquely identify the local device.
The device type is used to identify the kind of the internet of things device. Such as smoke sensors, alarms, temperature sensors, intelligent air conditioners, etc.
The device control function is used to identify functions that an internet-of-things device can perform. For example, the smoke sensor may perform a feedback function when smoke exceeds a preset concentration, and the alarm may perform an alarm function after receiving feedback from the smoke sensor; the temperature sensor can perform a temperature feedback function, and the intelligent air conditioner performs a cooling or heating function after receiving the temperature fed back by the temperature sensor.
The network domain is a network range divided according to the modes of the working frequency band of the equipment, the control relation of the equipment, the naming mode of the equipment, the geographical position of the equipment, the communication protocol of the equipment, the address range of the equipment and the like.
For example, the local devices operating in the same operating frequency band may be divided into the same domain, and the local devices operating in different frequency bands may be divided into different domains.
For another example, local devices having a control relationship with each other may be divided into the same network domain according to the device control relationship division. For example, the smoke sensor may perform a feedback function when smoke exceeds a preset concentration, and the alarm may perform an alarm function after receiving the feedback from the smoke sensor. Therefore, the smoke sensor and the alarm have a control relation, and the smoke sensor and the alarm can be divided into the same network domain.
For another example, devices using a uniform naming scheme may be partitioned into the same network domain. Such as local devices collectively named "WL-XXX", each device's name has a prefix "WL", where "XXX" is information that distinguishes between different local devices.
As another example, the domain is divided according to a preset address range, and the address may be an IP address.
The network domain identification information is used for identifying a network domain to which the local device belongs. The local devices with the same domain identification information are in the same domain. For example, by dividing different network domains by the local device operating frequency band. The WiFi device may operate in a 2.4G frequency band or a 5G frequency band, and the local device operating in the 2.4G frequency band cannot directly communicate with the device operating in the 5G frequency band, and generally needs to communicate through a router and other devices. Therefore, the local devices operating in the 2.4G frequency band may be divided into one network domain, and the local devices operating in the 5G frequency band may be divided into another network domain. In this case, the domain identification information may be frequency band information of the local device, for example, a character string such as "2.4G" or "5G" may be used as the frequency band information to identify the frequency band.
In another example, the same domain identifier may be allocated to a plurality of local devices having a device control relationship, so as to divide the plurality of local devices having a device control relationship into the same domain. For example, the network domain identification information of the local devices is configured as a character string "wk", which represents that the devices have a temperature control relationship.
The cloud server is a computing device which provides computing resources based on the virtualization technology of the internet.
A gateway is a computer system or device that acts as a switch-operative. The gateway is a translator which is used between two systems with different communication protocols, data formats or languages and even completely different architectures, and the gateway simply transmits information, but the gateway repacks the received information to adapt to the requirements of a target system. Popular and popular are in a form of a point, and a person walking from one room to another room must pass through a door. Similarly, sending information from one network to another must also pass through a "gateway," which is a gateway. As the name implies, a Gateway (Gateway) is a "Gateway" that connects one network to another, i.e., a network Gateway.
The router is a network device that stores and forwards packets between different networks, and may also be used as a gateway.
Example one
Fig. 1 illustrates a method for local networking of the internet of things provided in an embodiment of the present application, which may be implemented by software and/or hardware of an electronic device communicatively connected to a local device. The electronic device may be a gateway, a router, a server, etc. As shown in fig. 1, the method includes steps S110 to S140. The specific realization principle of each step is as follows:
s110, obtaining networking information of the local equipment, wherein the networking information comprises equipment identification, equipment type and equipment control function of the local equipment.
In some embodiments, the electronic device may obtain networking information of the local device in real time. For example, when the electronic device receives a networking instruction, or detects a networking trigger condition, the networking information of the local device is acquired in real time.
The networking instruction includes, but is not limited to, a networking instruction sent by another device to the electronic device, and may also be a networking instruction received by the electronic device through a user interaction interface thereof.
The networking triggering condition includes, but is not limited to, detecting a communication interruption between the cloud server and the local network, or detecting a triggering condition such as timeout of a networking timer.
In some specific examples, the obtaining, by the electronic device, networking information of the local device in real time includes: device information of the local device is searched for by the local router. And extracting the equipment identifier, the equipment type and the equipment control function of each local equipment from the equipment information searched by the local router, and constructing local networking information by using the searched equipment identifier, equipment type and equipment control function of each local equipment.
The local networking information may be in the form of a data table formed by device information of local devices such as device identifiers, device types, device control functions, and the like, and each row of the data table corresponds to networking information of one local device. The local networking information may also be in the form of a relational or non-relational database, which is not specifically limited in this application.
In other embodiments, the electronic device obtains networking information of the local device, which may be stored in a storage medium communicatively coupled to the electronic device. Correspondingly, before the step of obtaining networking information of the local equipment, equipment information of the local equipment is periodically searched through the local router; extracting the device identification, the device type and the device control function of each local device from the device information searched by the local router; adding the device identification, the device type, and the device control function of each of the local devices to the networking information. See in particular the corresponding embodiment of fig. 2.
S120, according to the device identifier of each local device, obtaining the domain identifier information of the domain to which the local device belongs.
In some embodiments, the network domain identification information may be frequency band information in which the local device operates. For example, the electronic device may obtain, according to the device identifier of each local device, the network domain identifier information of the network domain to which the local device belongs, in the following manner: the electronic device communicates with the local device through the router, the device response can be obtained when the local device is accessed in the 2.4G frequency band according to the device identifier, the device response cannot be obtained when the local device is accessed in the 5G frequency band according to the device identifier, the device can be determined to work in the 2.4G frequency band, and based on the determination, the local network domain identifier information of the device is determined to be 2.4G.
In other embodiments, the electronic device may pre-store device information for each local device in a storage medium communicatively coupled thereto. The device information includes network domain identification information corresponding to the device identification. The electronic device may obtain, according to the device identifier of each local device, network domain identifier information of a network domain to which the local device belongs by querying pre-stored device information of the local device. The pre-saving of the device information of each local device may be pre-configured through a configuration interface provided by the electronic device.
In other embodiments, the electronic device may configure the same domain identifier for a plurality of local devices having a device control relationship. The network domain identification information may be a common code number of a plurality of local devices having a control relationship. For example, a "wk" string is used as a domain identifier to indicate that the local devices in the domain have a temperature control relationship.
S130, according to the network domain identification information, a common local identity is established for the local equipment belonging to the same network domain.
In some embodiments, the electronic device creates a common local identity for local devices belonging to the same domain according to the domain identification information, and may combine device identifications of local devices corresponding to the same domain identification information to form a common local identity of local devices corresponding to the same domain identification information. Or extracting the characters at the appointed positions of the device identifiers of the local devices corresponding to the same domain identifier information and combining the extracted characters to form the common local identity identifier of the local devices corresponding to the same domain identifier information. The networking information corresponding to the local devices corresponding to the same network domain identification information can be combined to form a local identity identifier common to the local devices corresponding to the same network domain identification information. Reference is made to the following examples.
S140, controlling a local router to access each local device, and transmitting the device control function corresponding to each local device to other local devices having the same local id.
In some embodiments, before the step of controlling, by the electronic device, the local router to access each local device, and transmitting the device control function of each local device to other local devices having the same local identity, the networking information may further be augmented by adding the domain identification information and the local identity corresponding to each device to the networking information. The step of the electronic device controlling a local router to access each local device and transmitting the device control function corresponding to each local device to other local devices having the same local identity includes: sequentially acquiring target networking information corresponding to each local device in the networking information; according to the target networking information, sequentially accessing local equipment with the same local identity identifier as the local equipment in the target networking information by using the router; and sending all the networking information of the local equipment corresponding to the same local identity to the local equipment corresponding to the same local identity so as to indicate the local equipment to update the networking information in the equipment. Specifically, the electronic device may obtain all the networking information of the local device corresponding to the same local identity, generate a networking mapping table (see table 1), send the networking mapping table to each local device corresponding to the local identity, and replace an old networking mapping table that is originally pre-stored in the local device after each local device receives the networking mapping table.
It should be understood that, in the present application, a common local identity is created for local devices belonging to the same network domain, that is, local devices having the same network domain identifier, which plays a role in binding the same network domain device, on one hand, the local devices in the same network domain can be distinguished from local devices in other network domains, so as to facilitate communication inside the local devices in the same network domain, and on the other hand, other devices, such as a gateway, can also facilitate identification of the local devices in the network domain; the local router is controlled to access each local device, the device control function of each local device is transmitted to the local device with the same local identity, and the device control function corresponding to each local device is transmitted to other local devices with the same local identity, so that the local devices in the same network domain know the device control functions of other local devices, and can select proper local devices to communicate or control according to the known device control functions when needing to communicate with other same devices or control other devices.
Example two
On the basis of the embodiment of the method for local networking of the internet of things shown in fig. 1, as shown in fig. 2, before acquiring the networking information of the local device in step S110, the method further includes steps S210 and S230
S210, periodically searching the local device information through the local router.
In some embodiments, the electronic device searches for a local device through the router and obtains device information of the local device. In one specific example, the period for periodically searching for device information of the local device may be 2000 seconds.
In some embodiments, the device information of the local device may be pre-configured in the electronic device, and if the local router searches for a local device connected thereto, the router obtains a device identifier of the local device, and the electronic device further extracts pre-stored device information through the device identifier.
S220, extracting the device identifier, the device type, and the device control function of each local device from the device information searched by the local router.
S230, adding the device identifier, the device type, and the device control function of each local device to the networking information, and adding the device identifier, the device type, and the device control function of each local device to the networking information.
In some embodiments, networking information is pre-stored in the electronic device, and after device information of the local device is searched each time, if the device information of the local device is searched, the device identifier, the device type, and the device control function of each local device are extracted and added to the pre-stored networking information.
For example, a data table formed by information such as device identifiers, device types, and device control functions of each device of networking information may be added to the end of the data table by the device identifier, the device type, and the device control function searched this time.
It should be understood that, the electronic device periodically searches the device information of the local device through the local router, extracts the device identifier, the device type and the device control function of each local device from the device information searched by the local router, adds the device identifier, the device type and the device control function to the networking information, can prepare the networking information in advance, and can realize communication between the local devices by using the networking information prepared in advance and fast networking if the electronic device receives a networking instruction or detects a networking trigger condition. For example, when a communication interruption between the cloud server and the local network is detected, the communication between the local devices can be immediately realized by using networking information prepared in advance.
EXAMPLE III
On the basis of the embodiment of the method for local networking of the internet of things shown in fig. 1, as shown in fig. 3, step S130 is to create a common local identity for local devices belonging to the same network domain according to the network domain identification information, and includes steps S310 and S320.
S310, for the local devices belonging to the same network domain, extracting the first character of the device identifier of each local device according to a first preset sequence.
S320, splicing the first characters into a first character string according to the first preset sequence, and taking the first character string as the common local identity of the local devices belonging to the same network domain.
Table 1:
local identity Device identification Type of device Device control function Frequency band
YB Yanwu11 Smoke sensor Feedback 2.4G
YB Baojin22 Alarm device Alarm device 2.4G
In a specific example, as shown in table 1, the electronic device constructs a networking mapping table by using networking information. The first preset order may be an order of the networking map. Local equipment belonging to the network domain of the 2.4G frequency band comprises a smoke sensor Yanwu11 and an alarm Baojin 22. In the order of the networking map, the first letter "Y" of Yanwu11 and the first letter "B" of bao jin22 are extracted.
And splicing the Y and the B according to the sequence of the networking mapping table to form a YB, and taking the YB as a common local identity identifier of local equipment of the network domain of the 2.4G frequency band.
Table 2:
local identity Device identification Type of device Device control function Frequency band
WK Wendu55 Temperature sensor Feedback 5G
WK Kongtiao33 Intelligent air conditioner Refrigerating/heating 5G
In another specific example, as shown in table 2, the electronic device constructs a networking mapping table using networking information. The first preset order may be an order of the networking map. Local devices belonging to the same network domain of the 5G frequency band include a smoke sensor Wendu55 and an alarm Kongtiao 33. In the order of the networking map, the initials "W" of Wendu55 and "K" of Kongtiao33 are extracted.
And splicing the W and the K according to the sequence of the networking mapping table to form the WK, and taking the WK as a common local identity identifier of local equipment of the network domain of the 5G frequency band.
It can be understood that the local identity is obtained by splicing the first characters of the device identifiers belonging to the same network domain, unique identification information different from that of other network domains can be created conveniently, and the probability of generating conflicting local identity is reduced.
Example four
On the basis of the embodiment of the method for local networking of the internet of things shown in fig. 1, as shown in fig. 4, before the step of obtaining networking information of the local device, the method further includes steps S410 and S420:
and S410, acquiring the control relationship among the local devices.
And S420, distributing the same domain identification information for the local equipment with the control relationship.
There is a control and controlled control relationship between some local devices. For example, the smoke sensor may perform a feedback function when smoke exceeds a preset concentration, and the alarm may perform an alarm function after receiving the feedback from the smoke sensor. Therefore, the smoke sensor and the alarm have a control relation, and the smoke sensor and the alarm can be divided into the same network domain. And dividing the local devices with the control relationship into the same network domain in a mode of distributing the same network domain identification information to the local devices with the control relationship.
In some embodiments, the obtaining, by the electronic device, the control relationship between the local devices includes obtaining, by the electronic device, control information of the internet of things transmitted between the local devices and the cloud server. The electronic equipment analyzes the control information of the internet of things, and determines a corresponding relation between local equipment sending the control information and local equipment receiving the control information, wherein the corresponding relation comprises an association relation between the equipment control function of the local equipment sending the control information and the equipment control function of the local equipment receiving the control information.
For example, the electronic device obtains control information of each internet of things transmitted between the local device and the cloud server. The electronic equipment analyzes the equipment information, the equipment type and the equipment control function field, the sender identification and the receiver identification in the control information of the Internet of things. As shown in table 1, there is a relationship between the "feedback" device control function of the smoke sensor Yanwu11 and the device control function "alarm" of the alarm Baojin 22. That is to say, the smoke sensor generates a feedback signal after being triggered by smoke and is used for controlling the alarm to give an alarm, and then the smoke sensor and the alarm have a control relationship.
It can be understood that the electronic device obtains the control information of each internet of things transmitted between the local device and the cloud server in advance, obtains the control relationship between the local devices by analyzing the control information of each internet of things, gives the same domain identification to the local devices with the control relationship, and can divide the local devices with the control relationship into the same domain. When the communication interruption between the local network and the cloud server occurs, the electronic device divides the local devices with the control relationship into the same network domain for networking by using the method provided by the implementation, so that the communication or control between the local devices can be quickly realized, and the condition that all the local devices are broken down due to the communication interruption with the cloud server is avoided.
In other embodiments, the same domain identification information may also be configured in advance in the electronic device for the local device having the control relationship through the configuration interface.
EXAMPLE five
On the basis of the embodiment of the method for local networking of the internet of things shown in fig. 1 or fig. 4, as shown in fig. 5, step S130 is to create a common local identity for the local devices belonging to the same network domain according to the network domain identification information, and includes steps S510 to S570.
S510, obtaining an identification character string corresponding to the device identification of each local device belonging to the same network domain.
S520, splicing the identification character strings into a first combined character string according to a second preset sequence.
S530, acquiring a function character string corresponding to the equipment control function of each local equipment belonging to the same network domain.
And S540, adding the functional character strings according to the second preset sequence after the first combined character string.
S550, acquiring a network domain character string corresponding to the network domain identification information common to the local devices belonging to the same network domain.
And S560, adding the network domain character string after the first combined character string.
S570, using the first combined character string as the local identity.
For example, the smoke sensor Yanwu11 and the alarm Baojin22 in table 1 are in the same 2.4G frequency band network domain. In this embodiment, the way of creating the common local identity is different from the third embodiment. In the embodiment, the smoke sensor Yanwu11 and the alarm Baojin22 have a control relationship, so that the two devices can be divided into smoke alarm network domains, and the network domain identification information can be set to be "ywbj".
First, the identification strings corresponding to the device identifications of the local devices, namely, "Yanwu 11" and "bao jin 22" are acquired.
The second preset order may be a precedence order of the control relationship. And splicing the identification character strings into a first combined character string according to a second preset sequence, specifically combining the Yanwu11 and the Baojin22 into a Yanwu11 Baojin22 according to the sequence of the control relation of the smoke sensor Yanwu11 and the alarm Baojin 22.
The device control function corresponding character strings of the two devices are then acquired, for example, "fankui" and "Baojin", respectively, and the character strings corresponding to the device control functions are added to "Yanwu 11 Baojin 22" to form "Yanwu 11 Baojin22 fankui Baojin".
Finally, after acquiring the common network domain identification information of the network domains where the two devices are located, namely, "ywbj", and adding the obtained information to "Yanwu 11 baijin 22 fankui baiojing", we obtain "Yanwu 11 baijin 22 fankui baiojing ywbj". The character string "Yanwu 11 baijin 22 fankui baijin ywbj" is used as the local identity of each device in the smoke alarm network domain.
The local identity is used for indicating any local equipment to retrieve associated local equipment having a control relation with the local equipment through the local identity when the local equipment detects that a trigger condition of the local equipment is met, and controlling the associated local equipment according to a prompt of a function character string in the local identity.
After the local identity formed by the first combined character string is created, each local device receives the networking information and the local identity at the same time. When any local device detects that the triggering condition of the local device is met, retrieving associated local devices having a control relation with the local device through the local identity, and controlling the associated local devices according to the prompt of the functional character string in the local identity.
It can be understood that, by combining the networking information of the devices with the control relationship into the first combined character string and sending the first combined character string to each local device with the control relationship, the local device can quickly retrieve the associated device and control the associated local device according to the prompt of the function character string. Therefore, the response speed of the Internet of things formed by the local equipment is improved.
EXAMPLE six
On the basis of the embodiment of the method for local networking of the internet of things shown in fig. 1, as shown in fig. 6, after the networking information of the local device is acquired in step S110, the method further includes step S610.
S610, display information is output to local display equipment, and the display information comprises the number of the local equipment participating in networking in each network domain.
In some embodiments, the electronic device obtains networking information of the local devices, and obtains the number of local devices participating in networking in each network domain in the networking information. After the electronic equipment acquires networking information of local equipment, the electronic equipment outputs the display information to local display equipment so that the local display equipment can display the number of the local equipment participating in networking in each network domain.
It can be understood that the display information is output through the local device, so that the user can quickly know the condition of local networking, and the user can conveniently troubleshoot faults when the communication terminal with the cloud server occurs.
EXAMPLE seven
In order to better understand the present application, the present application provides a more detailed implementation in combination with the above embodiments. The data memory or the file memory referred to in this embodiment is only one implementation manner, and those skilled in the art can implement the corresponding functions of the memory by using the variable in software or the database under the teaching of the embodiment of this application.
The data acquisition memory in the embodiment may be understood as acquiring data or information in the data memory; obtaining the file storage may be understood as obtaining data or information in the file storage. In the present exemplary embodiment, the numbering of the data memories or file memories, for example data memory 03 or file memory 09, is used only to distinguish between different memories or file memories and is not used to limit the priority or order of the memories or file memories.
Fig. 7 illustrates a system flow of a local networking system provided in an embodiment of the present application, where the local networking system is configured to implement a local networking method. The local networking system is divided into six subunits according to functions, which are respectively: the device comprises a searching equipment unit, a frequency band judging unit, a local identity identification creating unit, a networking access unit and a display unit. The following sub-units respectively illustrate the working process of the local networking system.
1. A search device unit:
when the searching device unit is executed, each local device is already connected to the local router, and information of each device, such as device identification, device type, device control function, and the like, is identified through the local router.
After the searching unit is started, the following steps are executed:
the method comprises the following steps: the searching device unit acquires device information of all local devices searched by the local router, and stores the device information in the file storage 02.
Step two:
(case one) if the searching device unit detects that the number of device information in the file storage 02 is 0, the searching device unit executes step six, that is, if the searching for the local device fails, the device needs to be acquired again.
(case two) if the searching device unit detects that the number of device information in the file storage 02 is not 0, the searching device unit creates a networking information acquisition mode, sets a networking information acquisition start identifier to be 1, stores the value in the data storage 03, and executes the step three.
It should be noted that the above two cases are alternative, if the file storage 02 has device information content, the networking information acquisition mode is created, and the device information is acquired, otherwise, the networking information acquisition mode is ended.
The following is the mode of acquiring networking information:
step three: if the searching device unit detects that the data in the data storage 03 is not 0, the searching device unit starts a mode for acquiring networking information.
The searching device unit obtains the file storage 02, identifies the device identifier in the file storage 02, and stores the device information corresponding to the device identifier in the data storage 04.
The searching device unit obtains the device type in the data storage 04 and stores the device type in the data storage 05; the search device unit acquires the device control function in the data storage 04, and saves it to the data storage 06; the searching device unit acquires the data storages 04, 05, 06 and saves the information of the data storages 04, 05, 06 to the file storage 09.
That is, the file storage 09 holds a networking map (networking information) containing device identifications, device types, and device control functions.
It should be noted that the device-related information searched in this example is continuously stored in the original networking mapping table data of the file storage 09, and the original data is not overwritten.
Step four: the searching apparatus unit obtains the file storage 02, addresses the start information of the next apparatus identifier of the file storage 02, and saves the file storage 02.
It should be understood that all the device information that needs to be networked is stored in the file storage 02, and after all the information of one device is obtained, the information of a second device needs to be obtained, so all the information after the second device needs to be saved in the file storage 02 again, which is convenient for circularly obtaining different devices.
Step five: if the number of device information in the file storage 02 acquired by the searching device unit is not 0, the searching device unit executes step two.
If the number of device information in the file storage 02 acquired by the searching device unit is 0, setting an end identifier 0 for acquiring networking information (note that, when the networking information is initially acquired, the identifier is 1, and after the end, the identifier is reset to 0), saving the data storage 03, and executing the step six by the searching device unit.
It can be understood that if the file storage 02 has the device information, the process goes to step two to continue to obtain the device information, and if the file storage 02 has no device information, the process ends, and the device information does not need to be obtained.
Step six:
(case 1) the search device unit acquires that the data in the data storage 03 is equal to 0, and the data storage 09 is not equal to 0, and the search device unit sets the device search completion flag to 1, and stores it in the data storage 10, at which time, the device information of each device has been acquired. The searching device unit sends an instruction to start executing the frequency band judging module.
(case 2) the data in the searching device unit acquisition data storage 03 is equal to 0, and the data storage 09 is equal to 0, and the networking system ends the acquisition device information mode.
The local networking system starts the device search unit every 2000 seconds.
2. A frequency band judging unit:
taking WiFi as an example, a WiFi system has two frequency bands of 2.4G and 5G, and the task that the frequency band determination unit needs to execute is to obtain the WiFi use frequency band of each device.
After the local networking system starts the frequency band judging unit, the frequency band judging unit establishes an equipment frequency band obtaining mode.
Device frequency band acquisition mode:
the method comprises the following steps: if the frequency band judging unit detects that the data in the data memory 10 is less than 1, the local networking system ends the process of the frequency band judging unit.
If the frequency band determination unit detects that the data in the data storage 10 is equal to 1, which indicates that the device search is completed, the frequency band determination unit obtains the file storage 09 (the file storage 09 stores the networking mapping table, that is, networking information), and stores the networking mapping table in the file storage 09 to the file storage 20, so that the subsequent operation can be facilitated, and changes in the networking mapping table can be reduced.
Step two: the frequency band determination unit obtains the first device identifier in the file storage 20 and stores it in the data storage 21. The frequency band judging unit obtains the radio frequency band corresponding to the data memory 21, and stores the frequency band information to the data memory 22.
It can be understood that the device identifier is unique, and all devices can be found by using the device identifier, and then the device frequency band information is obtained: 2.4G or 5G.
Step three: the frequency band judging unit obtains the data memory 21 and finds the same device identifier in the file memory 09, and the frequency band judging unit obtains the data memory 22 and stores the data in the data memory in the 'frequency band' field corresponding to the same device identifier in the file memory 09. That is, the used frequency band of the local device is obtained and stored in the frequency band field of the mapping table.
Step four: the frequency band determination unit acquires the file memory 20, and addresses the next device identification start information saving file memory 20. It should be noted that, the address is not stored here, but all information after the next device identifier is stored, so that all devices can be conveniently and cyclically acquired.
Step five:
if the frequency band determining unit detects that the number of device information in the file storage 20 is not 0, the frequency band determining unit executes step two. That is, all devices do not complete acquisition, and need to jump to step two to continue acquisition.
If the frequency band determination unit detects that the number of device information in the file storage 20 is 0, the frequency band determination unit sets the frequency band acquisition completion flag to 1, and stores it in the storage 23. And the frequency band judging unit ends the equipment frequency band obtaining mode. At this time, the frequency band information of all devices has already been acquired.
The frequency band judging unit acquires that the memory 23 is equal to 1, and the frequency band judging unit creates a networking frequency band judging classification mode:
networking frequency band judging and classifying mode:
the method comprises the following steps: the frequency band judging unit acquires all information of the first device in the file memory 09 and stores the information in the file memory 24, and the frequency band judging unit acquires the frequency band information in the file memory 24 and stores the information in the data memory 25.
Step two: if the data in the data memory 25 acquired by the frequency band judging unit is 2.4G, the frequency band judging unit acquires the data in the file memory 24 and stores the data in the file memory 26 to form a mapping table corresponding to the 2.4G networking device, the acquired new information does not cover the original mapping table, and then the new information is stored below the mapping table. The 2.4G networking count is accumulated to 1, and is stored in the data storage 08 (i.e., the number of local devices in the 2.4G band).
If the frequency band determining unit obtains that the data in the data storage 25 is 5G, the frequency band determining unit obtains that the file storage 24 stores a file storage 26-1 (5G networking device mapping table). The 5G networking count is accumulated to 1, and is stored in the data storage 08-1 (i.e., the number of local devices in the 5G band).
Step three: the frequency band determination unit acquires the file storage 09, addresses the next device identification start information, and saves the file storage 09.
Step four:
and the frequency band judging unit detects that the networking information number in the file storage 09 is not equal to 0, and the frequency band judging unit executes the first step.
The frequency band judging unit detects that the networking information number in the file storage 09 is equal to 0, and the frequency band judging unit ends the networking frequency band judging and classifying mode.
And the local networking system finishes the process of the frequency band judging unit.
3. A local identity creation unit:
the local networking system starts a local identity identification creating unit.
The local ID creation unit acquires data of the file storage 26 and saves it to the file storage 36, and the local ID creation unit acquires data of the file storage 26-1 and saves it to the file storage 36-1.
It will be appreciated that the use of file store 36 and file store 36-1 to maintain mapping tables avoids changing the original mapping tables for subsequent operations, and the local id creation unit creates data store 30 (maintaining the locally unique id for the 2.4G network) and data store 30-1 (maintaining the locally unique id for the 5G network).
The local identity identification creating unit creates a parallel processing mode of the devices corresponding to the two frequency bands.
The first mode is as follows: 2.4G local identity creation mode.
The method comprises the following steps: when the local id creating unit detects that the file storage 36 (the file storage 36 stores the networking mapping table, see table 1) is equal to 0, the local networking system ends the 2.4G local id creating unit.
The local id creating unit detects that the networking information number in the file storage 36 is not 0, and the local id creating unit obtains the first character of the first device id in the file storage 36 and stores the first character in the data storage 31.
Step two: the local identity creation unit retrieves the memory 30 and stores it in the data memory 30 or in the data memory 31 (or operation). The local ID creation unit acquires the memory 30, shifts left the memory 30 by one bit, stores the data memory 30 (the local ID is YB0 in this case)
Step three: the local id creation unit obtains the file storage 36 to address the next device id start information saving file storage 36.
Step four: if the local id creating unit detects that the networking information number in the file storage 36 is non-zero, the local id creating unit executes the step one.
If the local id creating unit detects that the networking information number in the file storage 36 is equal to zero and the data storage 30 is not equal to zero, the local id creating unit acquires the data storage 30, shifts the data storage 30 to the right by one bit to store the data storage 30 (the last bit of the YB0 is removed, and the local id is the YB at this time), and the local id creating unit acquires the file storage 26 and updates the local unique id to be the data storage 30.
The local identity creation unit ends the local identity creation mode of the 2.4G frequency band.
And a second mode: 5G local identity creation mode.
The method comprises the following steps: the local identity creation unit detects that the file storage 36-1 (the file storage 36-1 stores a networking mapping table, see table 2) is equal to 0, and the local networking system ends the 5G local identity creation unit.
The local identity identification creating unit detects that the networking information number in the file storage 36-1 is not 0, the local identity identification creating unit acquires the file storage 36-1, and stores the first character of the first equipment identification in the data storage 31-1.
Step two: the local identity creation unit retrieves the memory 30-1, either adds (or operates) it to the data memory 31-1, and saves it to the data memory 30-1. The local identity creation unit retrieves the memory 30-1 and shifts it one bit to the left to save it to the data memory 30-1. (local identity here WK 0)
Step three: the local id creation unit obtains the next device id start information addressed by the file storage 36-1 and stores the next device id start information in the file storage 36-1.
Step four: the local id creating unit detects that the networking information count in the file storage 36-1 is not 0, and the local id creating unit executes step one.
The local ID creation unit detects that the networking information number in the file storage 36-1 is equal to 0 and the data storage 30-1 is not equal to 0, the local ID creation unit obtains the right shift of the data storage 30-1 by one bit and stores the right shift to the data storage 30-1 (the last bit of the WK0 is removed, and the local ID is the WK at this time), and the local ID creation unit obtains the file storage 26-1 and updates the local unique ID to be the data storage 30-1.
And the local identity mark creating unit ends the local identity mark creating mode of the 5G frequency band.
The local identity identification creating unit acquires the file memory 26 and updates the file memory 26-1 to the local router, and the local identity identification creating unit sets the local unique identity creation success identification 1 to store the data memory 32.
The local networking system finishes the flow of the local identity creating unit.
4. Networking access unit:
the networking access unit is used for allowing local devices to mutually access other devices which know the same local.
The local networking system starts a networking access unit.
When the networking access unit detects that the data in the data memory 32 is equal to 1, the networking access unit creates two parallel modes corresponding to the 2.4G frequency band and the 5G frequency band.
In a first mode: 2.4G local device access mode.
The method comprises the following steps: the networking access unit acquires the file memory 26 and saves the data of the file memory 26 to the file memory 40.
Step two: the networking access unit obtains the information of the first device in the file storage 40, stores it in the file storage 41 (the information of the first device in the networking mapping table, see table 1), and the networking access unit obtains the information of the file storage 41, and according to this information, the networking access unit sequentially accesses all the devices in the file storage 26 by using the local gateway, lets all the devices in the file storage 26 know the device control function in the file storage 41, and updates the file storage 26. It is noted that the device itself to which the current memory 41 corresponds is not accessed, since the purpose is to let other local devices know the device to which the memory 41 corresponds.
Step three: the networking access unit obtains the file memory 40 and addresses the next device identification start information to save the file memory 40.
Step four: and the networking access unit detects that the networking information number in the file storage 40 is not 0, and then the networking access unit executes the step two. At this point there is still equipment and the cycle needs to continue.
When the networking access unit detects that the networking information number in the file storage 40 is equal to 0, the networking access unit transmits the file storage 26 to each local device through the local router, and updates the networking device mapping table of each device.
At this time, all the devices in the 2.4G frequency band are processed, and the networking access unit ends the 2.4G local device access mode.
And a second mode: 5G local device access mode.
The method comprises the following steps: the networking access unit acquires the file memory 26-1 and saves the data of the file memory 26-1 to the file memory 40-1.
Step two: the networking access unit acquires the information of the first device in the file storage 40-1, stores the information in the file storage 41-1 (the information of the first device in the networking mapping table, see table 2), and the networking access unit acquires the information of the file storage 41-1, sequentially accesses all the devices in the file storage 26-1 by using the local gateway according to the information, lets all the devices in the file storage 26-1 know the device control function in the file storage 41-1, and updates the file storage 26-1.
Step three: the networking access unit obtains the file memory 40-1 and addresses the next device identification starting information to store the file memory 40-1.
Step four: and the networking access unit detects that the networking information number in the file storage 40-1 is not 0, and then the networking access unit executes the step two. At this point there is still equipment and the cycle needs to continue.
When the networking access unit detects that the networking information number in the file storage 40-1 is equal to 0, the networking access unit transmits the file storage 26-1 to each local device through the local router, and updates the networking device mapping table of each device.
At this time, all the devices in the 5G band are processed, and the networking access unit ends the 5G local device access mode.
The local networking system finishes the process of the networking access unit.
5. A display unit:
and if the networking is detected to be completed, the local networking system starts the display unit.
The presentation unit acquisition data store 08 presents a total of 08 (e.g., 2) devices of the networking at the local presentation device.
The presentation unit obtains the data storage 08-1 to present a total number of devices 08-1 (for example, 2) of the networking at the local presentation device.
Example eight
Corresponding to the method for local networking of the internet of things shown in fig. 1, fig. 8 shows an apparatus for local networking of the internet of things provided in an embodiment of the present application, where the apparatus includes:
a networking information obtaining module M810, configured to obtain networking information of the local device, where the networking information includes a device identifier, a device type, and a device control function of the local device.
A network domain identification information obtaining module M820, configured to obtain, according to the device identifier of each local device, network domain identification information of a network domain to which the local device belongs.
A local identity identifier creating module M830, configured to create a common local identity identifier for the local devices belonging to the same network domain according to the network domain identifier information.
A control function transmitting module M840, configured to control a local router to access each local device, and transmit the device control function corresponding to each local device to other local devices having the same local identity.
Optionally, as shown in fig. 9, the apparatus for local networking of the internet of things further includes:
a device information searching module M910, configured to periodically search for device information of the local device through a local router.
A networking information extracting module M920, configured to extract the device identifier, the device type, and the device control function of each local device from the device information searched by the local router.
A networking information adding module M930, configured to add the device identifier, the device type, and the device control function of each local device to the networking information.
Optionally, the network domain identification information is frequency band information of the local device.
Optionally, as shown in fig. 10, the local identity creating module M830 includes:
the first character extracting module M1010 is configured to, for the local devices belonging to the same network domain, extract the first character of the device identifier of each local device according to a first preset order.
A first character string obtaining module M1020, configured to splice the first characters into a first character string according to the first preset order, and use the first character string as a common local identity of the local devices belonging to the same domain.
Optionally, the control function transmitting module includes:
and the target networking information acquisition module is used for sequentially acquiring the target networking information corresponding to each local device in the networking information.
The local equipment access module is used for sequentially accessing other local equipment with the same local identity identifier as the local equipment in the target networking information by using the router according to the target networking information;
and the local equipment networking information updating module is used for sending all the networking information of the local equipment corresponding to the same local identity to each local equipment corresponding to the same local identity so as to indicate the local equipment to update the networking information in the equipment.
Optionally, as shown in fig. 11, the device for local networking of the internet of things further includes:
the information display module M1110 is configured to output display information to local display devices, where the display information includes the number of the local devices participating in networking in each network domain.
Optionally, as shown in fig. 12, the apparatus for local networking of the internet of things further includes:
a control relationship obtaining module M1210, configured to obtain a control relationship between the local devices;
a network domain identification information allocating module M1220, configured to allocate the same network domain identification information to the local device having the control relationship.
Optionally, as shown in fig. 13, the local identity creating module M830 includes:
an identification character string obtaining module M1310, configured to obtain an identification character string corresponding to the device identifier of each local device belonging to the same domain;
a first combined character string obtaining module M1320, configured to splice the identification character strings into a first combined character string according to a second preset order;
a function string obtaining module M1330, configured to obtain a function string corresponding to the device control function of each local device belonging to the same domain;
a function string adding module M1340, configured to add the function string according to the second preset order after the first combined string;
a domain character string obtaining module M1350, configured to obtain a domain character string corresponding to the domain identification information that is common to the local devices belonging to the same domain;
a network domain character string adding module M1360 configured to add the network domain character string after the first combined character string;
a local identity identification determining module M1370, configured to use the first combined character string as the local identity identification, where the local identity identification is used to indicate that, when any local device detects that a trigger condition of the local device is satisfied, an associated local device having a control relationship with the local device is retrieved through the local identity identification, and the associated local device is controlled according to a prompt of a function character string in the local identity identification.
It is understood that various embodiments and combinations of the embodiments in the above embodiments and their advantages are also applicable to this embodiment, and are not described herein again.
Example nine
Fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 14, the electronic device D10 of this embodiment includes: at least one processor D100 (only one is shown in fig. 14), a memory D101, and a computer program D102 stored in the memory D101 and operable on the at least one processor D100, wherein the processor D100 implements the steps of any of the method embodiments described above when executing the computer program D102.
Processor D100 may be a Central Processing Unit (CPU), and Processor D100 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage D101 may be an internal storage unit of the electronic device D10 in some embodiments, such as a hard disk or a memory of the electronic device D10. The memory D101 may also be an external storage device of the electronic device D10 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device D10. Further, the memory D101 may also include both an internal storage unit and an external storage device of the electronic device D10. The memory D101 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer programs. The memory D101 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above devices/units, the specific functions and technical effects thereof based on the same concept as those of the method embodiment of the present application can be specifically referred to the method embodiment portion, and are not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments may be implemented.
Embodiments of the present application provide a computer program product, which when executed on an electronic device, enables the electronic device to implement the steps in the above method embodiments.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (8)

1. A method for local networking of the Internet of things, the method comprising:
acquiring networking information of local equipment, wherein the networking information comprises equipment identification, equipment type and equipment control function of the local equipment;
acquiring network domain identification information of a network domain to which the local equipment belongs according to the equipment identification of each local equipment;
according to the network domain identification information, establishing a common local identity for the local equipment belonging to the same network domain;
controlling a local router to access each local device, and transmitting the device control function corresponding to each local device to other local devices with the same local identity;
before the step of obtaining networking information of the local device, the method further includes: acquiring a control relation among the local devices; distributing the same network domain identification information for the local equipment with the control relation;
acquiring a control relationship between the local devices, including: acquiring control information of each internet of things transmitted between each local device and a cloud server; analyzing the control information of the Internet of things, and determining the corresponding relation between the local equipment for sending the control information and the local equipment for receiving the control information; wherein the corresponding relationship includes an association relationship between the device control function of the local device that transmits the control information and the device control function of the local device that receives the control information;
the step of controlling the local router to access each local device and transmit the device control function corresponding to each local device to other local devices having the same local id includes: sequentially acquiring target networking information corresponding to each local device in the networking information; according to the target networking information, the router is utilized to sequentially access other local equipment with the same local identity identifier as the local identity identifier in the target networking information; and sending networking information of all the local equipment corresponding to the same local identity to each local equipment corresponding to the same local identity so as to indicate the local equipment to update the networking information in the equipment.
2. The method for local networking of the internet of things of claim 1, wherein prior to the step of obtaining networking information of a local device, the method further comprises:
periodically searching for device information of the local device through a local router;
extracting the device identification, the device type and the device control function of each local device from the device information searched by the local router;
adding the device identification, the device type, and the device control function of each of the local devices to the networking information.
3. The method for local networking of the internet of things as claimed in claim 1 or 2, wherein the network domain identification information is frequency band information of the local device.
4. The method for local networking of the internet of things according to claim 1, wherein the step of creating a common local identity for the local devices belonging to the same network domain according to the network domain identification information comprises:
extracting the first character of the equipment identifier of each local equipment according to a first preset sequence aiming at the local equipment belonging to the same network domain;
and splicing the first characters into a first character string according to the first preset sequence, and taking the first character string as the common local identity of the local devices belonging to the same network domain.
5. The method for local networking of the internet of things of claim 1, wherein after the step of obtaining networking information for a local device, the method further comprises:
and outputting display information to local display equipment, wherein the display information comprises the number of the local equipment participating in networking in each network domain.
6. An apparatus for local networking of internet of things, the apparatus comprising:
the networking information acquisition module is used for acquiring networking information of the local equipment, wherein the networking information comprises equipment identification, equipment type and equipment control function of the local equipment;
a network domain identification information obtaining module, configured to obtain, according to the device identifier of each local device, network domain identification information of a network domain to which the local device belongs;
the local identity identification creating module is used for creating a common local identity identification for the local equipment belonging to the same network domain according to the network domain identification information;
a control function transmission module, configured to control a local router to access each local device, and transmit the device control function corresponding to each local device to other local devices having the same local identity;
before the step of obtaining networking information of the local device, the apparatus further comprises a control relationship obtaining module and a network domain identification information distribution module: the control relation acquisition module is used for acquiring the control relation among the local devices; the network domain identification information distribution module is used for distributing the same network domain identification information for the local equipment with the control relationship; acquiring a control relationship between the local devices, including: acquiring control information of each internet of things transmitted between each local device and a cloud server; analyzing the control information of the Internet of things, and determining the corresponding relation between the local equipment for sending the control information and the local equipment for receiving the control information; wherein the corresponding relationship includes an association relationship between the device control function of the local device that transmits the control information and the device control function of the local device that receives the control information;
the control function transmitting module is configured to control the local router to access each local device, and transmit the device control function corresponding to each local device to other local devices having the same local identity, and specifically configured to: sequentially acquiring target networking information corresponding to each local device in the networking information; according to the target networking information, the router is utilized to sequentially access other local equipment with the same local identity identifier as the local identity identifier in the target networking information; and sending networking information of all the local equipment corresponding to the same local identity to each local equipment corresponding to the same local identity so as to indicate the local equipment to update the networking information in the equipment.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the method for local networking of the internet of things as claimed in any one of claims 1 to 5.
8. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out a method of local networking of the internet of things according to any one of claims 1 to 5.
CN202210355457.9A 2022-04-06 2022-04-06 Method and device for local networking of Internet of things, electronic equipment and storage medium Active CN114500612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210355457.9A CN114500612B (en) 2022-04-06 2022-04-06 Method and device for local networking of Internet of things, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210355457.9A CN114500612B (en) 2022-04-06 2022-04-06 Method and device for local networking of Internet of things, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114500612A CN114500612A (en) 2022-05-13
CN114500612B true CN114500612B (en) 2022-07-05

Family

ID=81488958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210355457.9A Active CN114500612B (en) 2022-04-06 2022-04-06 Method and device for local networking of Internet of things, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114500612B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106137213A (en) * 2016-07-27 2016-11-23 西南大学 There is radio physiological sign detection equipment and the network-building method of intelligent recognition function
CN106211211A (en) * 2016-07-27 2016-12-07 西南大学 There is equipment identification and the wireless gateway device of information recognizing function, analytic and network-building method
CN108776883A (en) * 2018-07-05 2018-11-09 深圳航天信息有限公司 A kind of intelligent warehouse management system
CN108810129A (en) * 2018-06-06 2018-11-13 朔联科技(上海)有限公司 Internet of Things network control system and method, terminal device and local network services equipment
KR20180135294A (en) * 2017-06-12 2018-12-20 주식회사 한솔아이오티 smart signboard controller using LoRa
CN111541593A (en) * 2020-04-16 2020-08-14 杭州鸿雁电器有限公司 Home management method, home management system and computer readable storage medium
CN112153090A (en) * 2019-06-27 2020-12-29 北京微云智联科技有限公司 Control method and device of Internet of things equipment, gateway and readable storage medium
CN112596406A (en) * 2020-12-18 2021-04-02 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent equipment, control panel and storage medium
CN112764350A (en) * 2019-11-04 2021-05-07 佛山市云米电器科技有限公司 Control method and device of intelligent household equipment and storage medium
CN113132967A (en) * 2019-12-31 2021-07-16 佛山市云米电器科技有限公司 Fusion networking method, device, system and computer readable storage medium
CN113440863A (en) * 2021-07-19 2021-09-28 网易(杭州)网络有限公司 Method and device for processing multiplayer online game, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5550981A (en) * 1994-06-21 1996-08-27 At&T Global Information Solutions Company Dynamic binding of network identities to locally-meaningful identities in computer networks
CN101483675B (en) * 2008-01-11 2012-07-04 华为技术有限公司 Network appliance searching method and network appliance
FR3031208B1 (en) * 2014-12-31 2018-02-02 Bull Sas BOX OF COMMUNICATION AND MANAGEMENT OF EQUIPMENT
CN110428580B (en) * 2019-07-03 2021-03-02 智慧式有限公司 Household safety intelligent control method
CN111818155A (en) * 2020-07-07 2020-10-23 腾讯科技(深圳)有限公司 Equipment control method and device based on Internet of things and computer program product

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106137213A (en) * 2016-07-27 2016-11-23 西南大学 There is radio physiological sign detection equipment and the network-building method of intelligent recognition function
CN106211211A (en) * 2016-07-27 2016-12-07 西南大学 There is equipment identification and the wireless gateway device of information recognizing function, analytic and network-building method
KR20180135294A (en) * 2017-06-12 2018-12-20 주식회사 한솔아이오티 smart signboard controller using LoRa
CN108810129A (en) * 2018-06-06 2018-11-13 朔联科技(上海)有限公司 Internet of Things network control system and method, terminal device and local network services equipment
CN108776883A (en) * 2018-07-05 2018-11-09 深圳航天信息有限公司 A kind of intelligent warehouse management system
CN112153090A (en) * 2019-06-27 2020-12-29 北京微云智联科技有限公司 Control method and device of Internet of things equipment, gateway and readable storage medium
CN112764350A (en) * 2019-11-04 2021-05-07 佛山市云米电器科技有限公司 Control method and device of intelligent household equipment and storage medium
CN113132967A (en) * 2019-12-31 2021-07-16 佛山市云米电器科技有限公司 Fusion networking method, device, system and computer readable storage medium
CN111541593A (en) * 2020-04-16 2020-08-14 杭州鸿雁电器有限公司 Home management method, home management system and computer readable storage medium
CN112596406A (en) * 2020-12-18 2021-04-02 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent equipment, control panel and storage medium
CN113440863A (en) * 2021-07-19 2021-09-28 网易(杭州)网络有限公司 Method and device for processing multiplayer online game, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于CAN总线的计算机监控节点的设计;朴立华等;《河北工业科技》;20031230;第20卷(第6期);全文 *

Also Published As

Publication number Publication date
CN114500612A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
US10715482B2 (en) Wide area service discovery for internet of things
CN110113345B (en) Automatic asset discovery method based on flow of Internet of things
CN110830575B (en) Data transmission method and control system of intelligent household equipment and intelligent gateway equipment
EP3370371A1 (en) System and method for identifying wireless terminal type in router network bridge mode
CN109729183B (en) Request processing method, device, equipment and storage medium
JPWO2008152807A1 (en) MAC address deduplication method, network device management system, server and information device
US8334755B2 (en) Method for recognizing radio frequency identification tag reader and apparatus thereof
CN110740490A (en) Terminal network access method, gateway equipment, system, storage medium and device
CN111225430A (en) Method, device, equipment and system for acquiring SSID of router
CN109819498A (en) A kind of smart machine, the automatic distribution method and system of smart machine
CN100471148C (en) Apparatus and method for establishing network
CN103327378A (en) Data output method, data output program, and terminal device
WO2015151184A1 (en) Communication system, communication method, relay device, and communication program
CN104506450A (en) Media resource feedback method and device
CN111641996B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
CN111107064B (en) Terminal equipment identification method, device, equipment and readable storage medium
CN113489811A (en) IPv6 flow processing method and device, electronic equipment and computer readable storage medium
KR20180094644A (en) Method and apparatus for configuration dns name
CN114423066B (en) Networking control method and device for data communication
CN109673011B (en) Mobile terminal identity information correlation analysis method and device
CN114500612B (en) Method and device for local networking of Internet of things, electronic equipment and storage medium
CN112738019B (en) Method and device for displaying device information, storage medium and electronic device
CN113573254A (en) Networking control method and device for smart home, control equipment and storage medium
JP2017011487A (en) Information processing system, control program of information processing system and method for controlling information processing system
KR101109549B1 (en) Apparatus and method for sensor node management based on metadata

Legal Events

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