CN115022980B - Method and device for randomly accessing terminal to network - Google Patents

Method and device for randomly accessing terminal to network Download PDF

Info

Publication number
CN115022980B
CN115022980B CN202210639265.0A CN202210639265A CN115022980B CN 115022980 B CN115022980 B CN 115022980B CN 202210639265 A CN202210639265 A CN 202210639265A CN 115022980 B CN115022980 B CN 115022980B
Authority
CN
China
Prior art keywords
terminal
gateway
network
target
information
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
CN202210639265.0A
Other languages
Chinese (zh)
Other versions
CN115022980A (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.)
School Of Military Management National Defense University Of People's Liberation Army Of China
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202210639265.0A priority Critical patent/CN115022980B/en
Publication of CN115022980A publication Critical patent/CN115022980A/en
Application granted granted Critical
Publication of CN115022980B publication Critical patent/CN115022980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/08Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access]
    • H04W74/0808Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access] using carrier sensing, e.g. as in CSMA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a method and a device for accessing a terminal to a network randomly, wherein the method comprises the following steps: sensing the real-time detection state of the terminal; judging whether the real-time detection state is in a non-network-access state or not to obtain a network-access judgment result; when the network access judgment result is yes, sending and acquiring gateway information broadcast; detecting whether gateway response information corresponding to the acquired gateway information broadcast is received or not to obtain a detection result; when the detection result is yes, dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information according to the gateway response information; the communication channel is used for data communication between the terminal and the target gateway. Therefore, the method and the device are beneficial to solving the problem that the network topology changes, the terminal cannot be quickly and safely accessed into the Internet of things, and meanwhile, the problem that the terminal (equipment) can be networked and communicated after being paired and authenticated for many times before being communicated with the gateway is solved, so that the efficient seamless access of the Internet of things network and the terminal (equipment) is realized.

Description

Method and device for randomly accessing terminal to network
Technical Field
The invention relates to the technical field of networking of the Internet of things, in particular to a method and a device for accessing a terminal to a network randomly.
Background
The technology of the internet of things is rapidly changed at present, perception means of terminals (equipment) are increasingly enriched, communication scenes of the internet of things show various and complex trends, and the existing wireless networking mode of the internet of things generally depends on a single and special data link network to realize data communication of the terminals (equipment). The internet of things depends on a wireless network provided by a single gateway, networking and communication are carried out after a terminal (equipment) and the gateway are paired, resources such as the terminal and the network are centrally managed on the gateway, and a single-point fault is easy to occur under the condition that the gateway is abnormal, so that data communication of the terminal (equipment) is influenced; meanwhile, under the influence of factors such as transmission capability, range and working occasion of wireless signals, the conventional terminal (equipment) can only perform networking, authentication and data communication in an area near a paired gateway, and the terminal (equipment) cannot be quickly accessed to the internet of things network after position movement and network topology change are severe, so that data communication is realized. Therefore, the method and the device for accessing the network by the terminal at any time are provided, so that the problem that the terminal cannot be quickly and safely accessed to the Internet of things under the condition of network topology change is solved, the problem that networking and communication can be carried out after the terminal (equipment) needs to be paired and authenticated for multiple times before communicating with the gateway is solved, and efficient seamless access of the Internet of things network and the terminal (equipment) is realized.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method and a device for randomly accessing a terminal to a network, which can dynamically establish a network relationship between a gateway and the terminal through the gateway and a platform by sensing the network access state of the terminal, are favorable for solving the situation of network topology change, ensure that the terminal cannot be quickly and safely accessed to the internet of things, simultaneously solve the problem that the terminal (equipment) and the gateway need to be paired and authenticated for many times before communication, and realize efficient seamless access of the internet of things network and the terminal (equipment).
In order to solve the above technical problem, a first aspect of an embodiment of the present invention discloses a method for a terminal to randomly access a network, where the method includes:
sensing the real-time detection state of the terminal;
judging whether the real-time detection state is in a non-network-access state or not to obtain a network-access judgment result;
when the network access judgment result is yes, sending and acquiring gateway information broadcast;
detecting whether gateway response information corresponding to the acquired gateway information broadcast is received or not to obtain a detection result; the gateway response message comprises at least one target gateway;
when the detection result is yes, dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the gateway response information; the communication channel is used for data communication between the terminal and the target gateway.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the dynamically establishing, according to the gateway response information, a communication channel of the terminal and a target gateway corresponding to the gateway response information includes:
generating registration request information according to the gateway response information; the registration request information comprises a terminal network identifier, and/or equipment type, and/or equipment data, and/or a target gateway;
acquiring first registered list information corresponding to the target gateway; the first registered list information comprises first registered network identifications of all network-accessed terminals which access a target network through the target gateway;
judging whether all first registered network identifications in the first registered list information are first target network identifications matched with the terminal network identifications in the registration request information or not to obtain a first judgment result;
when the first judgment result is yes, clearing and releasing resources occupied by the terminal in the target network, and reallocating first network access and communication resources corresponding to the terminal;
according to the first network access and communication resources, dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information;
when the first judgment result is negative, acquiring second registered list information corresponding to a target platform corresponding to the target gateway; the second registered list information comprises second registered network identifications of all the accessed terminals in the same target network with the target platform; the second registered information list information includes the first registered list information;
and dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information according to the second registered list information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the dynamically establishing, according to the first network access and the communication resource, a communication channel between the terminal and a target gateway corresponding to the gateway response information includes:
recording and reporting a first terminal access state according to the first network access and communication resources;
and dynamically loading a protocol module according to the access state of the first terminal so as to establish a communication channel of the terminal and a target gateway corresponding to the gateway response information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the dynamically establishing, according to the second registered list information, a communication channel between the terminal and a target gateway corresponding to the gateway response information includes:
judging whether all second registered network identifications in the second registered list information are second target network identifications matched with the terminal network identifications in the registration request information or not to obtain a second judgment result;
when the second judgment result is yes, dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the second target network identifier;
when the second judgment result is negative, reporting registration information corresponding to the terminal;
acquiring registrable terminal list information; the registrable terminal list information is maintained by the target platform;
and dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information according to the registration information and the registrable terminal list information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the dynamically establishing, according to the second target network identifier, a communication channel between the terminal and a target gateway corresponding to the gateway response information includes:
determining an accessed gateway according to the second target network identifier; the accessed gateway and the target gateway are connected with the target network; the accessed gateway and the target gateway are not identical;
clearing the terminal access information in the accessed gateway; the terminal network access information comprises state information of the terminal in the accessed gateway, and/or data information of the terminal in the accessed gateway, and/or protocol information of the terminal in the accessed gateway;
reallocating second network access and communication resources using the target platform;
updating the network topology information of the terminal in the target network according to the second network access and communication resources;
recording and reporting a second terminal access state according to the network topology information;
and dynamically loading a protocol module according to the access state of the second terminal so as to establish a communication channel of the terminal and a target gateway corresponding to the gateway response information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the dynamically establishing, according to the registration information and the registrable terminal list information, a communication channel of the terminal and a target gateway corresponding to the gateway response information includes:
judging whether the registration information is matched with the registrable terminal list information or not to obtain a third judgment result;
when the third judgment result is yes, utilizing the target platform to redistribute third network access and communication resources;
updating the network topology information of the terminal in the target network according to the third network access and communication resources;
recording and reporting a third terminal access state according to the network topology information;
and dynamically loading a protocol module according to the access state of the third terminal so as to establish a communication channel of the terminal and a target gateway corresponding to the gateway response information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the dynamically establishing, according to the gateway response information, a communication channel of a target gateway corresponding to the gateway response information and the terminal, the method further includes:
detecting whether gateway fault information is received; the gateway fault information represents that the target gateway does not work normally;
and when detecting and receiving the gateway fault information, updating the target gateway by using the gateway fault information, and triggering and executing the real-time detection state of the sensing terminal.
The second aspect of the embodiment of the invention discloses a device for accessing a terminal to a network randomly, which comprises:
the sensing module is used for sensing the real-time detection state of the terminal;
the judging module is used for judging whether the real-time detection state is in a non-network-access state or not to obtain a network access judging result;
the sending module is used for sending and acquiring gateway information broadcast when the network access judgment result is yes;
the detection module is used for detecting whether gateway response information corresponding to the acquired gateway information broadcast is received or not to obtain a detection result; the gateway response message comprises at least one target gateway;
the communication channel module is used for dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information according to the gateway response information when the detection result is yes; the communication channel is used for data communication between the terminal and the target gateway.
As a specific implementation manner of this optional implementation manner, in the second aspect of the embodiment of the present invention, a specific manner in which the communication channel module dynamically establishes, according to the gateway response information, a communication channel of a target gateway corresponding to the gateway response information and the terminal is as follows:
generating registration request information according to the gateway response information; the registration request information comprises a terminal network identifier, and/or equipment type, and/or equipment data, and/or a target gateway;
acquiring first registered list information corresponding to the target gateway; the first registered list information comprises first registered network identifications of all network-accessed terminals which access a target network through the target gateway;
judging whether all first registered network identifications in the first registered list information are first target network identifications matched with the terminal network identifications in the registration request information or not to obtain a first judgment result;
when the first judgment result is yes, clearing and releasing resources occupied by the terminal in the target network, and reallocating first network access and communication resources corresponding to the terminal;
according to the first network access and communication resources, dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information;
when the first judgment result is negative, acquiring second registered list information corresponding to a target platform corresponding to the target gateway; the second registered list information comprises second registered network identifications of all the accessed terminals in the same target network with the target platform; the second registered information list information includes the first registered list information;
and dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information according to the second registered list information.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, a specific manner of dynamically establishing, by the communication channel module according to the first network access and the communication resource, a communication channel of the target gateway corresponding to the terminal and the gateway response information is:
recording and reporting a first terminal access state according to the first network access and communication resources;
and dynamically loading a protocol module according to the access state of the first terminal so as to establish a communication channel of the terminal and a target gateway corresponding to the gateway response information.
As a specific implementation manner, in the second aspect of the embodiment of the present invention, the specific manner of dynamically establishing, by the communication channel module according to the second registered list information, a communication channel of the target gateway corresponding to the gateway response information by the terminal is as follows:
judging whether all second registered network identifications in the second registered list information are second target network identifications matched with the terminal network identifications in the registration request information or not to obtain a second judgment result;
when the second judgment result is yes, dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the second target network identifier;
when the second judgment result is negative, reporting registration information corresponding to the terminal;
acquiring registrable terminal list information; the registrable terminal list information is maintained by the target platform;
and dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information according to the registration information and the registrable terminal list information.
As a specific implementation manner, in the second aspect of the embodiment of the present invention, the specific manner in which the communication channel module dynamically establishes, according to the second target network identifier, a communication channel of the target gateway corresponding to the terminal and the gateway response information is:
determining an accessed gateway according to the second target network identifier; the accessed gateway and the target gateway are connected with the target network; the accessed gateway and the target gateway are not identical;
clearing the terminal access information in the accessed gateway; the terminal network access information comprises state information of the terminal in the accessed gateway, and/or data information of the terminal in the accessed gateway, and/or protocol information of the terminal in the accessed gateway;
reallocating second network access and communication resources using the target platform;
updating the network topology information of the terminal in the target network according to the second network access and communication resources;
recording and reporting the access state of a second terminal according to the network topology information;
and dynamically loading a protocol module according to the access state of the second terminal so as to establish a communication channel of the terminal and a target gateway corresponding to the gateway response information.
As a specific implementation manner of this optional implementation manner, in the second aspect of the embodiment of the present invention, the specific manner in which the communication channel module dynamically establishes, according to the registration information and the registrable terminal list information, a communication channel of a target gateway corresponding to the terminal and the gateway response information is as follows:
judging whether the registration information is matched with the registrable terminal list information or not to obtain a third judgment result;
when the third judgment result is yes, utilizing the target platform to redistribute third network access and communication resources;
updating the network topology information of the terminal in the target network according to the third network access and communication resources;
recording and reporting a third terminal access state according to the network topology information;
and dynamically loading a protocol module according to the access state of the third terminal so as to establish a communication channel of the terminal and a target gateway corresponding to the gateway response information.
As a kind of this optional implementation manner, in the second aspect of the embodiment of the present invention, after the communication channel module dynamically establishes, according to the gateway response information, a communication channel of a target gateway corresponding to the gateway response information and the terminal, the apparatus further includes:
the receiving module is used for detecting whether gateway fault information is received or not; the gateway fault information represents that the target gateway does not work normally;
and the updating module is used for updating the target gateway by using the gateway fault information and triggering and executing the real-time detection state of the sensing terminal when detecting and receiving the gateway fault information.
The third aspect of the present invention discloses another apparatus for a terminal to randomly access a network, the apparatus comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute part or all of the steps of the method for the terminal to randomly access the network disclosed by the first aspect of the embodiment of the invention.
A fourth aspect of the present invention discloses a computer storage medium, where the computer storage medium stores computer instructions, and when the computer instructions are called, the computer instructions are used to execute some or all of the steps in the method for a terminal to randomly access a network disclosed in the first aspect of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the real-time detection state of the terminal is sensed; judging whether the real-time detection state is in a non-network-access state or not to obtain a network-access judgment result; when the network access judgment result is yes, sending and acquiring gateway information broadcast; detecting whether gateway response information corresponding to the acquired gateway information broadcast is received or not to obtain a detection result; the gateway response message comprises at least one target gateway; when the detection result is yes, dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information according to the gateway response information; the communication channel is used for data communication between the terminal and the target gateway. Therefore, the method and the device are beneficial to solving the problem that the network topology changes, the terminal cannot be quickly and safely accessed into the Internet of things, and meanwhile, the problem that networking and communication can be carried out after the terminal (equipment) needs to be paired and authenticated for many times before communicating with the gateway is solved, and efficient seamless access of the Internet of things network and the terminal (equipment) is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for a terminal to randomly access a network according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another method for a terminal to randomly access a network according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for a terminal to randomly access a network according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another apparatus for randomly accessing a terminal to a network according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another apparatus for randomly accessing a terminal to a network according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or apparatus that comprises a list of steps or elements is not limited to those listed but may alternatively include other steps or elements not listed or inherent to such process, method, product, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The invention discloses a method and a device for accessing a terminal to a network at random, which can dynamically establish a network relationship between a gateway and the terminal through the gateway and a platform by sensing the network access state of the terminal, are favorable for solving the problem of network topology change, and the terminal can not access the Internet of things quickly and safely, and simultaneously solve the problem that networking and communication can be carried out after multiple pairing and authentication are needed before the communication between the terminal (equipment) and the gateway, thereby realizing the high-efficiency seamless access of the Internet of things network and the terminal (equipment). The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for a terminal to randomly access a network according to an embodiment of the present invention. The method for randomly accessing the terminal to the network described in fig. 1 is applied to a networking system of an internet of things, such as a local server or a cloud server for managing the randomly accessed terminal to the network, and the embodiment of the present invention is not limited thereto. As shown in fig. 1, the method for the terminal to randomly access the network may include the following operations:
101. and sensing the real-time detection state of the terminal.
102. And judging whether the real-time detection state is in a non-network-access state or not to obtain a network access judgment result.
103. And when the network access judgment result is yes, sending and acquiring gateway information broadcast.
104. And detecting whether gateway response information corresponding to the acquired gateway information broadcast is received or not to obtain a detection result.
In this embodiment of the present invention, the gateway response message includes at least one target gateway.
105. And when the detection result is yes, dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information according to the gateway response information.
In the embodiment of the present invention, the communication channel is used for data communication between the terminal and the target gateway.
Optionally, the target network includes a plurality of gateways and platforms.
Optionally, the terminal requests the target gateway to access the target network, and the target gateway itself and the target platform request the checking of the networking relationship of the terminal to determine whether to allow or deny the terminal to access the target network, so as to dynamically establish the network relationship between the target gateway and the terminal, and notify other gateways through the target platform to delete the original network relationship of the terminal, and release resources.
Optionally, the sending and acquiring gateway information broadcast is continuously sent by the terminal to a plurality of networks in a queue.
Optionally, when receiving the gateway response information corresponding to the acquired gateway information broadcast, the terminal stops sending the acquired gateway information broadcast.
Therefore, the method for randomly accessing the terminal to the network, which is described in the embodiment of the invention, can dynamically establish the network relationship between the gateway and the terminal through the gateway and the platform by sensing the network access state of the terminal, so that the problem that the network topology changes can be solved, the terminal cannot be quickly and safely accessed to the internet of things, the problem that the terminal (equipment) can be networked and communicated after being paired and authenticated for many times before communicating with the gateway can be solved, and the efficient seamless access of the internet of things network and the terminal (equipment) can be realized.
In an optional embodiment, the dynamically establishing, according to the gateway response information, a communication channel of the target gateway corresponding to the terminal and the gateway response information includes:
generating registration request information according to the gateway response information; the registration request information comprises a terminal network identifier, and/or equipment type, and/or equipment data, and/or a target gateway;
acquiring first registered list information corresponding to a target gateway; the first registered list information comprises first registered network identifications of all the accessed terminals which have accessed the target network through the target gateway;
judging whether all first registered network identifications in the first registered list information are first target network identifications matched with the terminal network identifications in the registration request information or not to obtain a first judgment result;
when the first judgment result is yes, clearing and releasing resources occupied by the terminal in the target network, and reallocating first network access and communication resources corresponding to the terminal;
according to the first network access and communication resources, dynamically establishing a communication channel of a target gateway corresponding to the terminal and the gateway response information;
when the first judgment result is negative, acquiring second registered list information corresponding to a target platform corresponding to the target gateway; the second registered list information comprises second registered network identifications of all the accessed terminals in the same target network with the target platform; the second registered information list information includes the first registered list information;
and dynamically establishing a communication channel of the target gateway corresponding to the response information of the terminal and the gateway according to the second registered list information.
Optionally, the method for randomly accessing the terminal to the network adopts a target platform authentication and target gateway cooperation mode, so that a complex pairing process is realized when the terminal is accessed to the target network for communication, and the non-sensitive random access of the terminal is realized.
Therefore, the method for randomly accessing the terminal into the network can dynamically establish a communication channel of the terminal and a target gateway corresponding to the gateway response information according to the gateway response information, is beneficial to solving the situation of network topology change, and the terminal can not quickly and safely access the internet of things, and simultaneously solves the problem that the terminal (equipment) can perform networking and communication after multiple pairing and authentication are required before the terminal (equipment) and the gateway are communicated, thereby realizing efficient seamless access of the internet of things network and the terminal (equipment).
In another optional embodiment, the dynamically establishing, according to the first network access and the communication resource, a communication channel of the target gateway corresponding to the terminal and the gateway response information includes:
recording and reporting a first terminal access state according to the first network access and communication resources;
and dynamically loading a protocol module according to the access state of the first terminal so as to establish a communication channel of the target gateway corresponding to the response information of the terminal and the gateway.
Optionally, the recording and reporting the access state of the first terminal are completed by the terminal.
Optionally, the dynamic loading protocol module is completed by the target gateway.
Therefore, the method for accessing the terminal to the network at any time can dynamically establish the communication channel of the terminal and the target gateway corresponding to the gateway response information according to the first network access and the communication resources, is beneficial to solving the situation of network topology change, the terminal cannot be quickly and safely accessed to the internet of things, simultaneously solves the problem that the terminal (equipment) can be networked and communicated after being paired and authenticated for multiple times before communicating with the gateway, and realizes efficient seamless access of the internet of things network and the terminal (equipment).
In yet another optional embodiment, the dynamically establishing, according to the second registered list information, a communication channel of the target gateway corresponding to the terminal and the gateway response information includes:
judging whether all second registered network identifications in the second registered list information are second target network identifications matched with the terminal network identifications in the registration request information or not to obtain a second judgment result;
when the second judgment result is yes, dynamically establishing a communication channel of the target gateway corresponding to the terminal and the gateway response information according to the second target network identifier;
when the second judgment result is negative, reporting the corresponding registration information of the terminal;
acquiring registrable terminal list information; the registrable terminal list information is maintained by the target platform;
and dynamically establishing a communication channel of the target gateway corresponding to the response information of the terminal and the gateway according to the registration information and the registrable terminal list information.
Optionally, the method for randomly accessing the terminal to the network adopts a mode of cooperation of a plurality of gateways and platforms and cooperative networking, and adopts an active and passive combination mode on the network access and network exit of the terminal, so as to quickly release wireless resources and realize mobile, convenient and flexible access of the terminal.
Therefore, the method for randomly accessing the terminal to the network can dynamically establish the communication channel of the terminal and the target gateway corresponding to the gateway response information according to the second registered list information, is more beneficial to solving the situation of network topology change, the terminal cannot be quickly and safely accessed to the internet of things, and simultaneously solves the problem that the terminal (equipment) can be networked and communicated after being paired and authenticated for multiple times before communicating with the gateway, so that the efficient seamless access of the internet of things network and the terminal (equipment) is realized.
In another optional embodiment, the above dynamically establishing, according to the second target network identifier, a communication channel of the target gateway corresponding to the terminal and the gateway response information includes:
determining an accessed gateway according to the second target network identifier; the accessed gateway is connected with the target gateway and a target network; the accessed gateway is not identical to the target gateway;
clearing the network access information of the terminal in the accessed gateway; the terminal network access information comprises state information of the terminal in the accessed gateway, and/or data information of the terminal in the accessed gateway, and/or protocol information of the terminal in the accessed gateway;
reallocating second network access and communication resources using the target platform;
updating network topology information of the terminal in the target network according to the second network access and the communication resource;
recording and reporting the access state of the second terminal according to the network topology information;
and dynamically loading a protocol module according to the access state of the second terminal so as to establish a communication channel of the target gateway corresponding to the response information of the terminal and the gateway.
Therefore, the method for randomly accessing the terminal to the network can dynamically establish a communication channel of the terminal and a target gateway corresponding to the gateway response information according to the second target network identifier, which is more beneficial to solving the situation of network topology change, the terminal cannot be quickly and safely accessed to the internet of things, and meanwhile, the problem that the terminal (equipment) can be networked and communicated after being paired and authenticated for multiple times before communicating with the gateway is solved, and the efficient seamless access of the internet of things network and the terminal (equipment) is realized.
In an optional embodiment, the dynamically establishing, according to the registration information and the registrable terminal list information, a communication channel of the target gateway corresponding to the terminal and the gateway response information includes:
judging whether the registration information is matched with the registrable terminal list information to obtain a third judgment result;
when the third judgment result is yes, reallocating third network access and communication resources by using the target platform;
updating network topology information of the terminal in the target network according to the third network access and the communication resource;
recording and reporting the access state of the third terminal according to the network topology information;
and dynamically loading a protocol module according to the access state of the third terminal so as to establish a communication channel of the target gateway corresponding to the terminal and the gateway response information.
Optionally, when the third determination result is negative, the terminal is forced to quit the network, and the released resources are cleared.
Therefore, the method for randomly accessing the terminal to the network, which is described in the embodiment of the invention, can dynamically establish a communication channel of the terminal and the target gateway corresponding to the gateway response information according to the registration information and the registrable terminal list information, so that the problem that the terminal cannot be quickly and safely accessed to the internet of things due to the fact that the terminal cannot be quickly and safely accessed to the internet of things is solved, the problem that the terminal (equipment) can be networked and communicated after being paired and authenticated for many times before the terminal (equipment) is communicated with the gateway is solved, and the efficient seamless access of the internet of things network and the terminal (equipment) is realized.
Example two
Referring to fig. 2, fig. 2 is a flowchart illustrating another method for a terminal to randomly access a network according to an embodiment of the present invention. The method for randomly accessing the terminal to the network described in fig. 2 is applied to a networking system of an internet of things, such as a local server or a cloud server for managing the randomly accessed terminal to the network, and the embodiment of the present invention is not limited thereto. As shown in fig. 2, the method for the terminal to randomly access the network may include the following operations:
201. and sensing the real-time detection state of the terminal.
202. And judging whether the real-time detection state is in a non-network-access state or not to obtain a network-access judgment result.
203. And when the network access judgment result is yes, sending and acquiring the gateway information broadcast.
204. And detecting whether gateway response information corresponding to the acquired gateway information broadcast is received or not to obtain a detection result.
205. And when the detection result is yes, dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information according to the gateway response information.
206. And detecting whether gateway failure information is received.
207. And when detecting and receiving the gateway fault information, updating the target gateway by using the gateway fault information, and triggering and executing the real-time detection state of the sensing terminal.
In the embodiment of the present invention, for specific technical details and technical noun explanations of step 201 to step 202, reference may be made to the detailed description of step 101 to step 102 in the first embodiment, and details are not repeated in the embodiment of the present invention.
Optionally, the failure information of the gateway is detected, and the target gateway is updated by using the failure information of the gateway, so that the paralysis of the network caused by the single-point failure of the gateway can be avoided, when the gateway fails, the gateway can be quickly restored by only replacing the gateway, and an efficient networking scheme of the internet of things is realized.
Therefore, the method for randomly accessing the terminal to the network, which is described in the embodiment of the invention, can dynamically establish the network relationship between the gateway and the terminal through the gateway and the platform by sensing the network access state of the terminal, so that the problem that the network topology changes can be solved, the terminal cannot be quickly and safely accessed to the internet of things, the problem that the terminal (equipment) can be networked and communicated after being paired and authenticated for many times before communicating with the gateway can be solved, and the efficient seamless access of the internet of things network and the terminal (equipment) can be realized.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a device for a terminal to randomly access a network according to an embodiment of the present invention. The apparatus described in fig. 3 may be applied to a networking system of an internet of things, such as a local server or a cloud server for managing a terminal randomly accessing a network, and the embodiment of the present invention is not limited thereto. As shown in fig. 3, the apparatus may include:
the sensing module 301 is used for sensing the real-time detection state of the terminal;
the judging module 302 is configured to judge whether the real-time detection state is in an unconnected state, and obtain a network connection judging result;
a sending module 303, configured to send and acquire a gateway information broadcast when the network access determination result is yes;
the detection module 304 is configured to detect whether gateway response information corresponding to the acquired gateway information broadcast is received, so as to obtain a detection result; the gateway response message comprises at least one target gateway;
a communication channel module 305, configured to dynamically establish, according to the gateway response information, a communication channel of a target gateway corresponding to the gateway response information for the terminal when the detection result is yes; the communication channel is used for data communication between the terminal and the target gateway.
It can be seen that, by implementing the device for accessing the terminal to the network at any time as described in fig. 3, the network relationship between the gateway and the terminal can be dynamically established through the gateway and the platform by sensing the network access state of the terminal, which is beneficial to solving the situation of network topology change, the terminal cannot quickly and safely access the internet of things, and meanwhile, the problem that the terminal (device) can perform networking and communication after multiple pairing and authentication are required before communication between the terminal (device) and the gateway is solved, thereby realizing efficient seamless access between the internet of things network and the terminal (device).
In another alternative embodiment, as shown in fig. 4, the specific manner for the communication channel module 305 to dynamically establish, according to the gateway response information, the communication channel of the target gateway corresponding to the gateway response information by the terminal is as follows:
generating registration request information according to the gateway response information; the registration request information comprises a terminal network identifier, and/or equipment type, and/or equipment data, and/or a target gateway;
acquiring first registered list information corresponding to a target gateway; the first registered list information comprises first registered network identifications of all the accessed terminals which have accessed the target network through the target gateway;
judging whether all first registered network identifications in the first registered list information are first target network identifications matched with the terminal network identifications in the registration request information or not to obtain a first judgment result;
when the first judgment result is yes, clearing and releasing resources occupied by the terminal in the target network, and reallocating first network access and communication resources corresponding to the terminal;
according to the first network access and communication resources, dynamically establishing a communication channel of a target gateway corresponding to the terminal and the gateway response information;
when the first judgment result is negative, acquiring second registered list information corresponding to a target platform corresponding to the target gateway; the second registered list information comprises second registered network identifications of all the accessed terminals in the same target network with the target platform; the second registered information list information includes the first registered list information;
and dynamically establishing a communication channel of the target gateway corresponding to the response information of the terminal and the gateway according to the second registered list information.
It can be seen that, by implementing the device for accessing the network at any time by the terminal described in fig. 4, a communication channel of the target gateway corresponding to the terminal and the gateway response information can be dynamically established according to the gateway response information, which is beneficial to solving the situation of network topology change, and the terminal cannot be quickly and safely accessed to the internet of things, and meanwhile, the problem that the terminal (device) can be networked and communicated after being paired and authenticated for many times before communicating with the gateway is solved, and thus, the efficient seamless access of the internet of things network and the terminal (device) is realized.
In yet another alternative embodiment, as shown in fig. 4, the specific way for the communication channel module 305 to dynamically establish the communication channel of the target gateway corresponding to the terminal and the gateway response information according to the first network access and the communication resource is as follows:
recording and reporting a first terminal access state according to the first network access and communication resources;
and dynamically loading a protocol module according to the access state of the first terminal so as to establish a communication channel of the target gateway corresponding to the response information of the terminal and the gateway.
It can be seen that, by implementing the device for accessing the terminal to the network at any time as described in fig. 4, a communication channel of the target gateway corresponding to the response information of the terminal and the gateway can be dynamically established according to the first network access and the communication resource, which is beneficial to solving the situation of network topology change, and the terminal cannot be quickly and safely accessed to the internet of things, and meanwhile, the problem that the terminal (device) can be networked and communicated after being paired and authenticated for many times before communicating with the gateway is solved, and thus, the efficient seamless access of the internet of things network and the terminal (device) is realized.
In yet another alternative embodiment, as shown in fig. 4, the specific way for the communication channel module 305 to dynamically establish the communication channel of the target gateway corresponding to the terminal and the gateway response information according to the second registered list information is as follows:
judging whether all second registered network identifications in the second registered list information are second target network identifications matched with the terminal network identifications in the registration request information or not to obtain a second judgment result;
when the second judgment result is yes, dynamically establishing a communication channel of a target gateway corresponding to the terminal and the gateway response information according to the second target network identifier;
when the second judgment result is negative, reporting the corresponding registration information of the terminal;
acquiring registrable terminal list information; the registrable terminal list information is maintained by the target platform;
and dynamically establishing a communication channel of the target gateway corresponding to the response information of the terminal and the gateway according to the registration information and the registrable terminal list information.
It can be seen that, by implementing the device for randomly accessing the terminal to the network described in fig. 4, the communication channel of the target gateway corresponding to the terminal and the gateway response information can be dynamically established according to the second registered list information, which is more beneficial to solving the situation of network topology change, and the terminal cannot be quickly and safely accessed to the internet of things, and meanwhile, the problem that the terminal (device) and the gateway need to be paired and authenticated for many times before communication so as to perform networking and communication is solved, thereby realizing efficient seamless access of the internet of things network and the terminal (device).
In yet another alternative embodiment, as shown in fig. 4, the specific way for the communication channel module 305 to dynamically establish the communication channel of the target gateway corresponding to the terminal and the gateway response information according to the second target network identifier is as follows:
determining an accessed gateway according to the second target network identifier; the accessed gateway is connected with a target gateway and a target network; the accessed gateway is not identical to the target gateway;
clearing the network access information of the terminal in the accessed gateway; the terminal network access information comprises state information of the terminal in the accessed gateway, and/or data information of the terminal in the accessed gateway, and/or protocol information of the terminal in the accessed gateway;
reallocating second network access and communication resources using the target platform;
updating network topology information of the terminal in the target network according to the second network access and the communication resource;
recording and reporting the access state of the second terminal according to the network topology information;
and dynamically loading a protocol module according to the access state of the second terminal so as to establish a communication channel of the target gateway corresponding to the response information of the terminal and the gateway.
It can be seen that, by implementing the device for accessing the terminal to the network at any time as described in fig. 4, the communication channel of the target gateway corresponding to the response information of the terminal and the gateway can be dynamically established according to the second target network identifier, which is more beneficial to solving the situation of network topology change, and the terminal cannot be quickly and safely accessed to the internet of things, and meanwhile, the problem that the terminal (device) can be networked and communicated after being paired and authenticated for many times before communicating with the gateway is solved, and thus, the efficient seamless access of the internet of things network and the terminal (device) is realized.
In yet another alternative embodiment, as shown in fig. 4, the specific way for the communication channel module 305 to dynamically establish the communication channel of the target gateway corresponding to the terminal and the gateway response information according to the registration information and the registrable terminal list information is as follows:
judging whether the registration information is matched with the registrable terminal list information or not to obtain a third judgment result;
when the third judgment result is yes, utilizing the target platform to redistribute third network access and communication resources;
updating network topology information of the terminal in the target network according to the third network access and the communication resource;
recording and reporting a third terminal access state according to the network topology information;
and dynamically loading a protocol module according to the access state of the third terminal so as to establish a communication channel of the target gateway corresponding to the response information of the terminal and the gateway.
It can be seen that, by implementing the device for accessing the terminal to the network at any time as described in fig. 4, a communication channel of a target gateway corresponding to the response information of the terminal and the gateway can be dynamically established according to the registration information and the registrable terminal list information, which is more beneficial to solving the situation of network topology change, the terminal cannot be quickly and safely accessed to the internet of things, and meanwhile, the problem that the terminal (device) can be networked and communicated after being paired and authenticated for many times before communicating with the gateway is solved, thereby realizing efficient seamless access of the internet of things network and the terminal (device).
In yet another alternative embodiment, as shown in fig. 4, after the communication channel module 305 dynamically establishes, according to the gateway response message, a communication channel of the target gateway corresponding to the gateway response message, the apparatus further includes:
a receiving module 306, configured to detect whether gateway failure information is received; the gateway fault information represents that the target gateway does not work normally;
and an updating module 307, configured to update the target gateway with the gateway failure information when detecting that the gateway failure information is received, and trigger to execute a real-time detection state of the sensing terminal.
It can be seen that, by implementing the device for accessing the terminal to the network at any time as described in fig. 4, the network relationship between the gateway and the terminal can be dynamically established through the gateway and the platform by sensing the network access state of the terminal, which is beneficial to solving the situation of network topology change, the terminal cannot quickly and safely access the internet of things, and meanwhile, the problem that the terminal (device) can perform networking and communication after multiple pairing and authentication are required before communication between the terminal (device) and the gateway is solved, thereby realizing efficient seamless access between the internet of things network and the terminal (device).
Example four
Referring to fig. 5, fig. 5 is a schematic structural diagram of another apparatus for randomly accessing a terminal to a network according to an embodiment of the present invention. The apparatus described in fig. 5 may be applied to an internet of things networking system, such as a local server or a cloud server for managing a terminal randomly accessing a network, which is not limited in the embodiment of the present invention. As shown in fig. 5, the apparatus may include:
a memory 401 storing executable program code;
a processor 402 coupled with the memory 401;
the processor 402 invokes executable program code stored in the memory 401 to perform the steps of the method for a terminal to randomly access a network as described in the first or second embodiment.
EXAMPLE five
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps of the method for randomly accessing the terminal to the network, which is described in the first embodiment or the second embodiment.
EXAMPLE six
The embodiment of the invention discloses a computer program product, which comprises a non-transitory computer readable storage medium storing a computer program, wherein the computer program is operable to make a computer execute the steps of the method for the terminal to randomly access the network described in the first embodiment or the second embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above technical solutions may essentially or in part contribute to the prior art, be embodied in the form of a software product, which may be stored in a computer-readable storage medium, including a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable Programmable Read-Only Memory (EEPROM), an optical Disc-Read (CD-ROM) or other storage medium capable of storing data, a magnetic tape, or any other computer-readable medium capable of storing data.
Finally, it should be noted that: the method and apparatus for a terminal to randomly access a network disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used for illustrating the technical solutions of the present invention, rather than limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (5)

1. A method for a terminal to randomly access a network, the method comprising:
sensing the real-time detection state of the terminal;
judging whether the real-time detection state is in a non-network-access state or not to obtain a network-access judgment result;
when the network access judgment result is yes, sending and acquiring gateway information broadcast;
detecting whether gateway response information corresponding to the acquired gateway information broadcast is received or not to obtain a detection result; the gateway response message comprises at least one target gateway;
when the detection result is yes, dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the gateway response information; the communication channel is used for data communication between the terminal and the target gateway;
wherein, the dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the gateway response information includes:
generating registration request information according to the gateway response information; the registration request information comprises a terminal network identifier, a device type, device data and a target gateway;
acquiring first registered list information corresponding to the target gateway; the first registered list information comprises first registered network identifications of all network-accessed terminals which access a target network through the target gateway;
judging whether all first registered network identifications in the first registered list information are first target network identifications matched with the terminal network identifications in the registration request information or not to obtain a first judgment result;
when the first judgment result is yes, clearing and releasing resources occupied by the terminal in the target network, and reallocating first network access and communication resources corresponding to the terminal;
according to the first network access and communication resources, dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information;
wherein, the dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the first network access and communication resources comprises:
recording and reporting a first terminal access state according to the first network access and communication resources;
a protocol module is dynamically loaded according to the access state of the first terminal so as to establish a communication channel of the terminal and a target gateway corresponding to the gateway response information;
when the first judgment result is negative, acquiring second registered list information corresponding to a target platform corresponding to the target gateway; the second registered list information comprises second registered network identifications of all the accessed terminals in the same target network with the target platform; the second registered information list information includes the first registered list information;
according to the second registered list information, dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information;
wherein, the dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the second registered list information includes:
judging whether all second registered network identifiers in the second registered list information are second target network identifiers matched with the terminal network identifiers in the registration request information or not to obtain a second judgment result;
when the second judgment result is yes, dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the second target network identifier;
wherein, the dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the second target network identifier includes:
determining an accessed gateway according to the second target network identifier; the accessed gateway and the target gateway are connected to the target network; the accessed gateway and the target gateway are not identical;
clearing the terminal access information in the accessed gateway; the terminal network access information comprises state information of the terminal in the accessed gateway, and/or data information of the terminal in the accessed gateway, and/or protocol information of the terminal in the accessed gateway;
reallocating second network access and communication resources using the target platform;
updating the network topology information of the terminal in the target network according to the second network access and communication resources;
recording and reporting a second terminal access state according to the network topology information;
dynamically loading a protocol module according to the access state of the second terminal so as to establish a communication channel between the terminal and a target gateway corresponding to the gateway response information;
when the second judgment result is negative, reporting registration information corresponding to the terminal;
acquiring registrable terminal list information; the registrable terminal list information is maintained by the target platform;
according to the registration information and the registrable terminal list information, dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information;
wherein, the dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the registration information and the registrable terminal list information includes:
judging whether the registration information is matched with the registrable terminal list information or not to obtain a third judgment result;
when the third judgment result is yes, utilizing the target platform to redistribute a third network access and communication resource;
updating the network topology information of the terminal in the target network according to the third network access and communication resources;
recording and reporting a third terminal access state according to the network topology information;
and dynamically loading a protocol module according to the access state of the third terminal so as to establish a communication channel of the terminal and a target gateway corresponding to the gateway response information.
2. The method for randomly accessing to the network by the terminal according to claim 1, wherein after the dynamically establishing the communication channel between the terminal and the target gateway corresponding to the gateway response message according to the gateway response message, the method further comprises:
detecting whether gateway fault information is received; the gateway fault information represents that the target gateway does not work normally;
and when detecting and receiving the gateway fault information, updating the target gateway by using the gateway fault information, and triggering and executing the real-time detection state of the sensing terminal.
3. An apparatus for a terminal to randomly access a network, the apparatus comprising:
the sensing module is used for sensing the real-time detection state of the terminal;
the judging module is used for judging whether the real-time detection state is in a non-network-access state or not to obtain a network-access judging result;
the sending module is used for sending and acquiring gateway information broadcast when the network access judgment result is yes;
the detection module is used for detecting whether gateway response information corresponding to the acquired gateway information broadcast is received or not to obtain a detection result; the gateway response message comprises at least one target gateway;
the communication channel module is used for dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information according to the gateway response information when the detection result is yes; the communication channel is used for data communication between the terminal and the target gateway;
wherein, the dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the gateway response information includes:
generating registration request information according to the gateway response information; the registration request information comprises a terminal network identifier, a device type, device data and a target gateway;
acquiring first registered list information corresponding to the target gateway; the first registered list information comprises first registered network identifications of all network-accessed terminals which access a target network through the target gateway;
judging whether all first registered network identifications in the first registered list information are first target network identifications matched with the terminal network identifications in the registration request information or not to obtain a first judgment result;
when the first judgment result is yes, clearing and releasing resources occupied by the terminal in the target network, and reallocating first network access and communication resources corresponding to the terminal;
according to the first network access and communication resources, dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information;
wherein, the dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the first network access and the communication resource includes:
recording and reporting a first terminal access state according to the first network access and communication resources;
a protocol module is dynamically loaded according to the access state of the first terminal so as to establish a communication channel of the terminal and a target gateway corresponding to the gateway response information;
when the first judgment result is negative, acquiring second registered list information corresponding to a target platform corresponding to the target gateway; the second registered list information comprises second registered network identifications of all the accessed terminals in the same target network with the target platform; the second registered information list information includes the first registered list information;
according to the second registered list information, dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information;
wherein, the dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the second registered list information includes:
judging whether all second registered network identifications in the second registered list information are second target network identifications matched with the terminal network identifications in the registration request information or not to obtain a second judgment result;
when the second judgment result is yes, dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the second target network identifier;
wherein, the dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the second target network identifier includes:
determining an accessed gateway according to the second target network identifier; the accessed gateway and the target gateway are connected to the target network; the accessed gateway and the target gateway are not identical;
clearing the terminal access information in the accessed gateway; the terminal network access information comprises state information of the terminal in the accessed gateway, and/or data information of the terminal in the accessed gateway, and/or protocol information of the terminal in the accessed gateway;
reallocating second network access and communication resources using the target platform;
updating the network topology information of the terminal in the target network according to the second network access and communication resources;
recording and reporting a second terminal access state according to the network topology information;
dynamically loading a protocol module according to the access state of the second terminal so as to establish a communication channel between the terminal and a target gateway corresponding to the gateway response information;
when the second judgment result is negative, reporting registration information corresponding to the terminal;
acquiring registrable terminal list information; the registrable terminal list information is maintained by the target platform;
according to the registration information and the registrable terminal list information, dynamically establishing a communication channel of the terminal and a target gateway corresponding to the gateway response information;
wherein, the dynamically establishing a communication channel between the terminal and a target gateway corresponding to the gateway response information according to the registration information and the registrable terminal list information includes:
judging whether the registration information is matched with the registrable terminal list information or not to obtain a third judgment result;
when the third judgment result is yes, utilizing the target platform to redistribute a third network access and communication resource;
updating the network topology information of the terminal in the target network according to the third network access and communication resources;
recording and reporting a third terminal access state according to the network topology information;
and dynamically loading a protocol module according to the access state of the third terminal so as to establish a communication channel of the terminal and a target gateway corresponding to the gateway response information.
4. An apparatus for a terminal to randomly access a network, the apparatus comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor invokes the executable program code stored in the memory to perform the method of terminal opportunistic access to a network according to any of the claims 1-2.
5. A computer storage medium, characterized in that it stores computer instructions which, when invoked, are adapted to perform a method of terminal opportunistic access to a network according to any of claims 1-2.
CN202210639265.0A 2022-06-07 2022-06-07 Method and device for randomly accessing terminal to network Active CN115022980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210639265.0A CN115022980B (en) 2022-06-07 2022-06-07 Method and device for randomly accessing terminal to network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210639265.0A CN115022980B (en) 2022-06-07 2022-06-07 Method and device for randomly accessing terminal to network

Publications (2)

Publication Number Publication Date
CN115022980A CN115022980A (en) 2022-09-06
CN115022980B true CN115022980B (en) 2022-12-23

Family

ID=83072395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210639265.0A Active CN115022980B (en) 2022-06-07 2022-06-07 Method and device for randomly accessing terminal to network

Country Status (1)

Country Link
CN (1) CN115022980B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116436905B (en) * 2023-04-19 2023-11-28 广州市迪士普音响科技有限公司 Network broadcast communication method and device, storage medium and computer equipment
CN117478449B (en) * 2023-12-28 2024-03-15 珠海格力电器股份有限公司 Control method and device of third party equipment, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767715A (en) * 2014-01-03 2015-07-08 华为技术有限公司 Network access control method and equipment
CN106059837A (en) * 2016-07-29 2016-10-26 海尔优家智能科技(北京)有限公司 Device network access configuration method and device, and cloud platform
CN108769009A (en) * 2018-05-28 2018-11-06 深圳和而泰数据资源与云技术有限公司 Data communications method, smart machine and intelligent gateway
WO2021218317A1 (en) * 2020-04-29 2021-11-04 京东方科技集团股份有限公司 Network reentry method for mobile terminal after network disconnection, and related device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767715A (en) * 2014-01-03 2015-07-08 华为技术有限公司 Network access control method and equipment
CN106059837A (en) * 2016-07-29 2016-10-26 海尔优家智能科技(北京)有限公司 Device network access configuration method and device, and cloud platform
CN108769009A (en) * 2018-05-28 2018-11-06 深圳和而泰数据资源与云技术有限公司 Data communications method, smart machine and intelligent gateway
WO2021218317A1 (en) * 2020-04-29 2021-11-04 京东方科技集团股份有限公司 Network reentry method for mobile terminal after network disconnection, and related device

Also Published As

Publication number Publication date
CN115022980A (en) 2022-09-06

Similar Documents

Publication Publication Date Title
CN115022980B (en) Method and device for randomly accessing terminal to network
EP3632145B1 (en) Subscription management service data feeds
CN110417915B (en) Push message transmission method and device, storage medium and electronic equipment
US9137623B2 (en) Method and system for realizing concurrent access of multi-kinds of bearer protocols on machine-to-machine (M2M) platform
US20040186918A1 (en) Method and apparatus for dispatching incoming data in a multi-application terminal
US20200100111A1 (en) Connection establishment method, device, and system
EP1947806A1 (en) A method and system for service trace and service trace terminal, network element
WO2017121478A1 (en) User equipment selection for mobile edge computing
CN111083718A (en) Session management method, network function and network system
CN108183950A (en) A kind of network equipment establishes the method and device of connection
CN112423331B (en) Fault diagnosis method and device
CN100479380C (en) Network device managing method, network device and network managing system
CN113206814A (en) Network event processing method and device and readable storage medium
CN111147422B (en) Method and device for controlling connection between terminal and network
CN107659903A (en) The method and system opened automatically for realizing VoLTE business
CN113423120A (en) Data distribution processing method and device based on private network terminal and electronic equipment
CN110995829B (en) Instance calling method and device and computer storage medium
CN111093238B (en) Wireless network control method and device, storage medium and electronic equipment
US20210378051A1 (en) Radio Barrier Processing Method And Network Device
CN112671914B (en) IOT (Internet of things) equipment communication method and system based on actor model
CN113873491A (en) Communication apparatus, system, and computer-readable storage medium
KR101737893B1 (en) WIPS Sensor and Terminal block Method Using The Same
CN109462423B (en) Method, device, equipment and medium for checking data transmission unit
CN114071453A (en) Information processing method, device, equipment and readable storage medium
CN105050116A (en) Business processing method in mobile communication system and access network equipment

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
TR01 Transfer of patent right

Effective date of registration: 20240131

Address after: 100091 School of military management, No. 3 academy a, hongshankou, Haidian District, Beijing

Patentee after: School of Military Management National Defense University of the People's Liberation Army of China

Country or region after: China

Address before: 100091 School of military management, No. 3 academy a, hongshankou, Haidian District, Beijing

Patentee before: Xia Wenxiang

Country or region before: China

TR01 Transfer of patent right