CN112543457B - Gateway switching binding method and device for terminal of Internet of things - Google Patents

Gateway switching binding method and device for terminal of Internet of things Download PDF

Info

Publication number
CN112543457B
CN112543457B CN202011326099.6A CN202011326099A CN112543457B CN 112543457 B CN112543457 B CN 112543457B CN 202011326099 A CN202011326099 A CN 202011326099A CN 112543457 B CN112543457 B CN 112543457B
Authority
CN
China
Prior art keywords
internet
things
terminal
communication relay
gateway
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
CN202011326099.6A
Other languages
Chinese (zh)
Other versions
CN112543457A (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.)
Guangzhou Jixiang Technology Co Ltd
Original Assignee
Guangzhou Jixiang Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Jixiang Technology Co Ltd filed Critical Guangzhou Jixiang Technology Co Ltd
Priority to CN202011326099.6A priority Critical patent/CN112543457B/en
Publication of CN112543457A publication Critical patent/CN112543457A/en
Application granted granted Critical
Publication of CN112543457B publication Critical patent/CN112543457B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • H04L61/2553Binding renewal aspects, e.g. using keep-alive messages
    • 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/10Protocols in which an application is distributed across nodes in the network
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/12Reselecting a serving backbone network switching or routing node

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a gateway switching and binding method and device for an Internet of things terminal. According to the technical scheme provided by the embodiment of the application, one or more test signals broadcast by the same Internet of things terminal are received through each Internet of things gateway, and a signal transmission quality list of the Internet of things terminal corresponding to each Internet of things gateway is generated; the cloud terminal selects an Internet of things gateway as a first communication relay of the Internet of things terminal and the cloud terminal based on the signal transmission quality list, so that the first communication relay and the Internet of things terminal perform service data transmission based on a first binding relationship and a first session key; and when the communication abnormality between the cloud and the first communication relay is detected, the cloud reselects one Internet of things gateway as a second communication relay of the Internet of things terminal based on the signal transmission quality list. By adopting the technical means, the signal transmission effect of the Internet of things system can be optimized, and the signal transmission safety and the signal transmission performance between the terminal of the Internet of things and the gateway can be guaranteed.

Description

Gateway switching binding method and device for terminal of Internet of things
Technical Field
The embodiment of the application relates to the technical field of Internet of things, in particular to a gateway switching and binding method and device for an Internet of things terminal.
Background
At present, the technology of the internet of things is applied to building a communication network in various fields in life. Generally, in the internet of things systems in these fields, various wireless networking methods are generally used to perform networking within a certain area, and then several data concentrators or intelligent gateways are arranged at appropriate positions. However, for an internet of things system with a large network coverage and a relatively long communication distance, when a terminal of the internet of things communicates with a gateway of the related internet of things, the terminal of the internet of things is affected by signal deep fading, which easily causes situations such as unstable signal transmission and poor signal quality. Moreover, the transmission process of the signals lacks security management, and related information is easy to steal and steal.
Disclosure of Invention
The embodiment of the application provides a gateway switching and binding method and device for an Internet of things terminal, which can optimize the signal transmission effect of an Internet of things system and guarantee the signal transmission safety and signal transmission performance between the Internet of things terminal and a gateway.
In a first aspect, an embodiment of the present application provides a gateway handover binding method for an internet of things terminal, including:
each Internet of things gateway receives one or more test signals broadcast by the same Internet of things terminal, determines signal transmission quality information of the test signals, summarizes the signal transmission quality information to a cloud end, and generates a signal transmission quality list of the Internet of things terminal corresponding to each Internet of things gateway;
the cloud terminal selects one Internet of things gateway as a first communication relay of the Internet of things terminal and the cloud terminal based on the signal transmission quality list, a first binding relationship between the first communication relay and the Internet of things terminal is established, a corresponding first session key is configured for the binding relationship, the first binding relationship and the first session key are issued to the first communication relay, the first communication relay forwards the first binding relationship and the first session key to the Internet of things terminal, and the first communication relay and the Internet of things terminal perform service data transmission based on the first binding relationship and the first session key;
when the communication abnormality between the cloud and the first communication relay is detected, the cloud reselects one Internet of things gateway as a second communication relay of the Internet of things terminal based on the signal transmission quality list to construct a second binding relationship, configures a corresponding second session key, issues the second binding relationship and the second session key to the second communication relay, and forwards the second binding relationship and the second session key to the Internet of things terminal through the second communication relay, so that the second communication relay and the Internet of things terminal perform service data transmission based on the second binding relationship and the second session key.
Further, after the first binding relationship between the first communication relay and the terminal of the internet of things is constructed, the method further includes:
the cloud end counts the first binding relations and determines the binding number of the Internet of things terminals bound by the Internet of things gateways;
and periodically sleeping the Internet of things gateway which is not bound with the Internet of things terminal based on the binding quantity.
Further, after counting the first binding relationships at the cloud and determining the binding number of the internet of things terminals bound by the internet of things gateways, the method further includes:
and determining the Internet of things gateways of which the binding number is lower than a set number threshold value as sleeping gateways, reselecting communication relays for the Internet of things terminals bound with the sleeping gateways, and sleeping the sleeping gateways periodically.
Further, after the issuing the first binding relationship and the first session key to the first communication relay and the forwarding the first binding relationship and the first session key to the internet of things terminal by the first communication relay, the method further includes:
and the cloud sends the new first session key to the first communication relay every other preset security management period, and the first communication relay forwards the new first session key to the terminal of the Internet of things for updating the first session key.
Further, detecting that the communication abnormality occurs between the cloud and the first communication relay includes:
and carrying out error rate detection according to the service data uploaded to the cloud end by the first communication relay, and judging whether the first communication relay is abnormal in communication or not based on an error rate detection result.
Further, after the second communication relay and the internet of things terminal perform service data transmission based on the second binding relationship and the second session key, the method further includes:
and when the communication abnormality of the cloud and the second communication relay is detected, reselecting the communication relay for the corresponding Internet of things terminal.
Further, after the signal transmission quality information is gathered to a cloud end and a signal transmission quality list of each internet of things gateway corresponding to the internet of things terminal is generated, the method further includes:
and updating the signal transmission quality list according to the corresponding signal transmission quality information reported by each Internet of things gateway every other set period.
In a second aspect, an embodiment of the present application provides a gateway switching and binding device for an internet of things terminal, including:
the system comprises a test module, a network management module and a network management module, wherein the test module is used for receiving one or more test signals broadcast by the same Internet of things terminal through each Internet of things gateway, determining signal transmission quality information of the test signals, summarizing the signal transmission quality information to a cloud end, and generating a signal transmission quality list of the Internet of things terminal corresponding to each Internet of things gateway;
the binding module is used for selecting one Internet of things gateway as a first communication relay of the Internet of things terminal and the cloud end through the cloud end based on the signal transmission quality list, constructing a first binding relationship between the first communication relay and the Internet of things terminal, configuring a corresponding first session key for the binding relationship, sending the first binding relationship and the first session key to the first communication relay, and forwarding the first binding relationship and the first session key to the Internet of things terminal through the first communication relay, wherein the first communication relay and the Internet of things terminal perform service data transmission based on the first binding relationship and the first session key;
the switching module is used for reselecting one Internet of things gateway as a second communication relay of the Internet of things terminal based on the signal transmission quality list when the communication abnormity between the cloud and the first communication relay is detected, constructing a second binding relationship, configuring a corresponding second session key, issuing the second binding relationship and the second session key to the second communication relay, and forwarding the second binding relationship and the second session key to the Internet of things terminal by the second communication relay so that the second communication relay and the Internet of things terminal perform service data transmission based on the second binding relationship and the second session key.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the gateway handover binding method of the terminal of the internet of things according to the first aspect.
In a fourth aspect, the present embodiments provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the gateway handover binding method for an internet of things terminal according to the first aspect.
According to the method and the device, one or more test signals broadcast by the same Internet of things terminal are received through each Internet of things gateway, the signal transmission quality information of the test signals is determined, the signal transmission quality information is collected to the cloud end, and a signal transmission quality list of the Internet of things terminal corresponding to each Internet of things gateway is generated; the method comprises the steps that the cloud terminal selects an Internet of things gateway as a first communication relay of the Internet of things terminal and the cloud terminal based on a signal transmission quality list, a first binding relation between the first communication relay and the Internet of things terminal is established, a corresponding first session key is configured for the binding relation, the first binding relation and the first session key are issued to the first communication relay, the first binding relation and the first session key are forwarded to the Internet of things terminal by the first communication relay, and the first communication relay and the Internet of things terminal perform service data transmission based on the first binding relation and the first session key; when the communication abnormality between the cloud and the first communication relay is detected, the cloud reselects one Internet of things gateway as a second communication relay of the Internet of things terminal based on the signal transmission quality list, a second binding relationship is established, a corresponding second session key is configured, the second binding relationship and the second session key are issued to the second communication relay, and the second binding relationship and the second session key are forwarded to the Internet of things terminal by the second communication relay, so that the second communication relay and the Internet of things terminal perform service data transmission based on the second binding relationship and the second session key. By adopting the technical means, the signal transmission effect of the Internet of things system can be optimized, and the signal transmission safety and the signal transmission performance between the terminal of the Internet of things and the gateway can be guaranteed.
Drawings
Fig. 1 is a flowchart of a gateway handover binding method for an internet of things terminal according to an embodiment of the present application;
fig. 2 is a schematic diagram of testing signals of an internet of things terminal in the first embodiment of the present application;
fig. 3 is a schematic diagram of service data transmission based on a first relay in the first embodiment of the present application;
fig. 4 is a flowchart illustrating selection of a gateway dormancy of an internet of things according to an embodiment of the present application;
fig. 5 is a schematic diagram of service data transmission based on a second relay in the first embodiment of the present application;
fig. 6 is a flow chart of service data transmission in a first practical example of the present application;
fig. 7 is a schematic structural diagram of a gateway handover binding apparatus of an internet of things terminal according to a second embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The first embodiment is as follows:
fig. 1 is a flowchart of a gateway switching and binding method for an internet of things terminal according to an embodiment of the present invention, where the gateway switching and binding method for an internet of things terminal provided in this embodiment may be executed by a gateway switching and binding device for an internet of things terminal, the gateway switching and binding device for an internet of things terminal may be implemented in a software and/or hardware manner, and the gateway switching and binding device for an internet of things terminal may be formed by two or more physical entities or may be formed by one physical entity. Generally, the gateway switching and binding device of the terminal of the internet of things can be a system of the internet of things.
The following description will be given by taking an internet of things system as an example of a main body for executing a gateway switching and binding method of an internet of things terminal. Referring to fig. 1, the gateway switching and binding method for the terminal of the internet of things specifically includes:
s110, each Internet of things gateway receives one or more test signals broadcast by the same Internet of things terminal, determines signal transmission quality information of the test signals, collects the signal transmission quality information to a cloud end, and generates a signal transmission quality list of each Internet of things gateway corresponding to the Internet of things terminal.
The gateway switching and binding method of the Internet of things terminal aims to determine the Internet of things gateway with the best signal transmission performance with the Internet of things terminal through signal testing, then the Internet of things terminal is bound with the Internet of things gateway, and then the subsequent Internet of things terminal conducts signal transmission with the Internet of things gateway as a communication relay and a cloud end to conduct related services of an Internet of things system. And when the binding relationship is established, corresponding session keys are further configured for the two, so that the safety of signal transmission between the two is ensured.
Specifically, the internet of things system of the embodiment of the application comprises a cloud end, a plurality of internet of things gateways and a plurality of internet of things terminals, and each internet of things terminal selects the internet of things gateway to bind according to signal testing, and then performs signal transmission. It can be understood that, generally speaking, an internet of things terminal may include a plurality of internet of things gateways in a communication range, and in order to optimize a signal transmission effect and reduce an influence of signal attenuation, the internet of things terminal needs to select an internet of things gateway with the best signal transmission performance from the plurality of internet of things gateways through a signal test to bind, so as to provide a better signal transmission effect. When signal testing is performed, referring to fig. 2, in the embodiment of the application, the test signal is broadcasted by the internet of things terminal 11 in the communication range, correspondingly, all the internet of things gateways 12 in the communication range of the internet of things terminal 11 can receive the test signal, further process the test signal, measure and calculate signal transmission quality information, and upload the signal transmission quality information to the cloud end 13, so that the cloud end 13 selects one internet of things gateway 12 from the plurality of internet of things gateways 12 according to the signal transmission quality information to bind the internet of things terminal 11.
And corresponding to each Internet of things gateway, after receiving the test signals sent by the same Internet of things terminal, representing the signal transmission performance between the gateway and the Internet of things terminal by measuring and calculating the signal transmission quality information of each test signal according to the signal transmission quality information. The signal transmission quality information of the test signal is determined by the signal reception power, the signal reception strength, the channel instantaneous quality value, and/or the interference signal strength of the corresponding diversity antenna. Wherein the channel instantaneous quality value represents the channel quality, channel matrix feedback, signal response and/or interference information for the corresponding diversity antenna. And measuring the various types of parameters through the corresponding test signals and the antenna parameters. Further, in order to quantize the signal transmission quality information, a calculation formula of the signal transmission quality information is provided to quantize the signal quality of the test signal, and the calculation formula of the signal transmission quality information is:
f=ω1P+ω2d13h+ω4d2
where f is signal transmission quality information, P is signal reception power, and d1For signal received strength, h is the instantaneous quality value of the channel, d2For interfering signal strength, omega1,ω2,ω3And ω4The influence factors are determined according to actual tests and can be set according to actual influence of various types of parameters on signal transmission quality information. Based on the signal transmission quality information calculation formula, the signal transmission quality information of each test signal can be determined. It should be noted that, in practical applications, according to different signal quality evaluation criteria, a plurality of different manners may be selected to evaluate the signal quality of each test signal, and a corresponding quantization formula is set accordingly. The above formula is only one calculation method for calculating the signal transmission quality information according to the embodiment of the present application, and various different measurement and calculation formulas may be selected according to actual measurement and calculation requirements, which is not described herein again.
Further, signal transmission quality information determined based on each internet of things gateway is uploaded to a cloud end, the signal transmission quality information is collected through the cloud end, a signal transmission quality list is constructed based on the signal transmission quality information, and the signal transmission quality list represents the signal transmission performance of the internet of things terminal and among the internet of things gateways. It can be understood that the larger the value of the signal transmission quality information is, the better the signal transmission performance of the internet of things gateway and the corresponding internet of things terminal is.
In one embodiment, based on the constructed signal transmission quality list, the cloud updates the signal transmission quality list according to the corresponding signal transmission quality information reported by each internet of things gateway every other set period. It can be understood that, in order to ensure that the test of the signal transmission quality information has real-time performance, the signal transmission quality list can visually represent the signal transmission quality information in the recent period of time, and by updating the signal transmission quality list in real time, the accuracy of the construction of the binding relationship can be ensured, and the service data transmission effect between the terminal of the internet of things and the gateway of the corresponding internet of things is optimized.
It should be noted that, when the gateway of the internet of things measures and calculates the signal transmission quality information according to the test signal, the gateway of the internet of things may also measure and calculate the signal transmission quality information according to the plurality of test signals by extracting the corresponding plurality of test signals, so as to avoid the accidental situation of the test result caused by a single test signal, and ensure that the test result is stable and effective. Specifically, signal transmission quality information is calculated through a plurality of test signals, and an average value is obtained according to the value of each signal transmission quality information, so that final signal transmission quality information is obtained.
S120, the cloud terminal selects one Internet of things gateway as a first communication relay of the Internet of things terminal and the cloud terminal based on the signal transmission quality list, a first binding relationship between the first communication relay and the Internet of things terminal is established, a corresponding first session key is configured for the binding relationship, the first binding relationship and the first session key are issued to the first communication relay, the first communication relay forwards the first binding relationship and the first session key to the Internet of things terminal, and the first communication relay and the Internet of things terminal perform service data transmission based on the first binding relationship and the first session key.
Further, based on the signal transmission quality list determined in step S110, the cloud selects a corresponding internet of things gateway with optimal signal transmission quality information from the signal transmission quality list as a communication relay between the corresponding internet of things terminal and the cloud, and defines the communication relay as a first communication relay. And further constructing a binding relationship between the first communication relay and the Internet of things terminal, wherein the binding relationship is used for indicating that the Internet of things terminal is bound with the first communication relay. Referring to fig. 3, based on the binding relationship, the related service data of the subsequent internet of things terminal 11 is uploaded to the internet of things gateway 12 selected as the first communication relay, and is uploaded to the cloud 13 by the first communication relay. Similarly, based on the binding relationship, the cloud 13 also forwards the relevant information to the internet of things terminal 11 through the first communication relay when the relevant information needs to be sent. Specifically, the binding relationship includes I P information of the first communication relay and the terminal of the internet of things, so that the first communication relay and the terminal of the internet of things can clearly identify I P addresses of each other, and accordingly data communication is performed. In addition, while the binding relationship is sent, the first communication relay and the first session key of the terminal of the internet of things are synchronously sent to the first communication relay, and the first session key is transmitted to the terminal of the internet of things by the first communication relay. When the subsequent first communication relay and the terminal of the Internet of things transmit signals, the encryption key of the first session key is used for encrypting and transmitting the signals, and the decryption key is used for decrypting the signals corresponding to the signal receiving end, so that the encryption transmission of the signals is realized, and the safety of the signal transmission is guaranteed.
In one embodiment, for the internet of things gateway which is not bound with the internet of things terminal, in order to save energy consumption of the internet of things system, the part of the internet of things gateway is controlled to be in periodic dormancy, so that system energy consumption management is optimized. Referring to fig. 4, the process of selecting the internet of things gateway dormancy includes:
s121, the cloud end counts the first binding relations, and determines the binding number of the Internet of things terminals bound by the Internet of things gateways;
and S122, periodically sleeping the Internet of things gateway which is not bound with the Internet of things terminal based on the binding quantity.
Specifically, based on a first binding relationship which is constructed in advance, the cloud end can determine the binding number of the internet of things terminals bound by the internet of things gateways by counting the binding relationship between the internet of things terminals and the internet of things gateways. If the binding number of a certain internet of things gateway is zero, the fact that the internet of things gateway does not serve as a communication relay to transmit service data currently is indicated, and at the moment, the part of the internet of things gateway is dormant periodically, so that the energy consumption of the part of the internet of things gateway can be saved, and the energy consumption management of the system is optimized.
In addition, in order to further save the energy consumption of the system, based on the counted binding number of the internet of things gateways, the internet of things gateways of which the binding number is lower than a set number threshold are determined to be used as dormant gateways, communication relays are reselected for the internet of things terminals bound with the dormant gateways, and the dormant gateways are dormant periodically. It can be understood that if the number of the internet of things terminals bound by one internet of things gateway is small (that is, lower than a set number threshold), communication relays can be reselected for the internet of things terminals bound by the part of internet of things gateways, and the part of internet of things gateways are set to sleep periodically, so that the energy consumption management of the system is further optimized.
In addition, in an embodiment, the cloud sends the new first session key to the first communication relay every other preset security management period, and the first communication relay forwards the new first session key to the internet of things terminal to update the first session key. Specifically, the first session key is periodically updated, so that the signal transmission safety between the terminal of the internet of things and the first communication relay can be further guaranteed, the difficulty of signal breaking is increased, the problems of information stealing, embezzlement and the like can be effectively avoided, and the signal transmission effect is optimized.
S130, when the communication abnormality between the cloud and the first communication relay is detected, the cloud reselects one Internet of things gateway as a second communication relay of the Internet of things terminal based on the signal transmission quality list to construct a second binding relationship, configures a corresponding second session key, issues the second binding relationship and the second session key to the second communication relay, and forwards the second binding relationship and the second session key to the Internet of things terminal through the second communication relay, so that the second communication relay and the Internet of things terminal perform service data transmission based on the second binding relationship and the second session key.
After that, the internet of things terminal transmits service data with the cloud end through the first communication relay, the cloud end detects whether the first communication relay is abnormal in communication or not in real time when the cloud end transmits page number data with the first communication relay, and the internet of things terminal communication relay is reselected based on an abnormal detection result. And carrying out error rate detection according to the service data uploaded to the cloud end by the first communication relay, and judging whether the first communication relay is abnormal in communication or not based on an error rate detection result. It can be understood that, if it is detected that the error rate of the current service data is higher than the set error rate threshold, it is considered that the error rate of the current service data is too high, and the first communication relay is abnormal in communication, and a communication relay needs to be selected for the corresponding internet of things terminal again.
Referring to fig. 5, when a communication abnormality occurs in one of the internet of things gateways 12 and the cloud 13 that are selected as the first communication relay, the cloud 13 queries the signal transmission quality list, reselects one of the internet of things gateways (except the first communication relay) with the largest signal transmission quality information from the signal transmission quality list as the second communication relay of the internet of things terminal, constructs a second binding relationship, configures a corresponding second session key, issues the second binding relationship and the second session key to the second communication relay, and forwards the second binding relationship and the second session key to the internet of things terminal through the second communication relay, so that the second communication relay and the internet of things terminal perform service data transmission based on the second binding relationship and the second session key. It can be understood that, according to the established second binding relationship, the cloud end can unbind the original first binding relationship of the internet of things terminal, so as to avoid the condition that service data transmission is disordered.
Further, when the internet of things terminal transmits service data through a second relay and a cloud, and when the fact that the communication between the cloud and the second communication relay is abnormal is detected, the communication relay is reselected for the corresponding internet of things terminal. Referring to the selection mode of the second communication relay, the embodiment of the application reselects the communication relay for service data transmission for the terminal of the internet of things. In some embodiments, if the communication link between the original first communication relay and the cloud returns to normal, the cloud may select the original first communication relay to be bound with the internet of things terminal again, so that the selection efficiency of the communication relay may be increased, and the transmission quality of the service data may be guaranteed.
Referring to fig. 6, receiving one or more test signals broadcast by the same internet of things terminal through each internet of things gateway, determining signal transmission quality information of the test signals, summarizing the signal transmission quality information to a cloud, and generating a signal transmission quality list of the internet of things terminal corresponding to each internet of things gateway; the method comprises the steps that the cloud terminal selects an Internet of things gateway as a first communication relay of the Internet of things terminal and the cloud terminal based on a signal transmission quality list, a first binding relation between the first communication relay and the Internet of things terminal is established, a corresponding first session key is configured for the binding relation, the first binding relation and the first session key are issued to the first communication relay, the first binding relation and the first session key are forwarded to the Internet of things terminal by the first communication relay, and the first communication relay and the Internet of things terminal perform service data transmission based on the first binding relation and the first session key; when the communication abnormality between the cloud and the first communication relay is detected, the cloud reselects one Internet of things gateway as a second communication relay of the Internet of things terminal based on the signal transmission quality list, a second binding relationship is established, a corresponding second session key is configured, the second binding relationship and the second session key are issued to the second communication relay, and the second binding relationship and the second session key are forwarded to the Internet of things terminal by the second communication relay, so that the second communication relay and the Internet of things terminal perform service data transmission based on the second binding relationship and the second session key. And updating the session key by setting a period, and updating the signal transmission quality list by setting the period so as to ensure the real-time performance of data. By adopting the technical means, the signal transmission effect of the Internet of things system can be optimized, and the signal transmission safety and the signal transmission performance between the terminal of the Internet of things and the gateway can be guaranteed.
Example two:
on the basis of the foregoing embodiment, fig. 7 is a schematic structural diagram of a gateway switching and binding device of an internet of things terminal according to a second embodiment of the present application. Referring to fig. 7, the gateway switching and binding device for an internet of things terminal provided in this embodiment specifically includes: a test module 21, a binding module 22 and a switching module 23.
The testing module 21 is configured to receive one or more testing signals broadcast by the same internet of things terminal through each internet of things gateway, determine signal transmission quality information of the testing signals, collect the signal transmission quality information to a cloud, and generate a signal transmission quality list of the internet of things terminal corresponding to each internet of things gateway;
the binding module 22 is configured to select one internet of things gateway as a first communication relay between the internet of things terminal and the cloud through the cloud based on the signal transmission quality list, construct a first binding relationship between the first communication relay and the internet of things terminal, configure a corresponding first session key for the binding relationship, send the first binding relationship and the first session key to the first communication relay, and forward the first binding relationship and the first session key to the internet of things terminal through the first communication relay, where the first communication relay and the internet of things terminal perform service data transmission based on the first binding relationship and the first session key;
the switching module 23 is configured to, when it is detected that communication between the cloud and the first communication relay is abnormal, reselect one of the internet of things gateways as a second communication relay of the internet of things terminal based on the signal transmission quality list by the cloud, construct a second binding relationship, configure a corresponding second session key, send the second binding relationship and the second session key to the second communication relay, and forward the second binding relationship and the second session key to the internet of things terminal by the second communication relay, so that the second communication relay and the internet of things terminal perform service data transmission based on the second binding relationship and the second session key.
Receiving one or more test signals broadcast by the same Internet of things terminal through each Internet of things gateway, determining signal transmission quality information of the test signals, summarizing the signal transmission quality information to a cloud end, and generating a signal transmission quality list of the Internet of things terminal corresponding to each Internet of things gateway; the method comprises the steps that the cloud terminal selects an Internet of things gateway as a first communication relay of the Internet of things terminal and the cloud terminal based on a signal transmission quality list, a first binding relation between the first communication relay and the Internet of things terminal is established, a corresponding first session key is configured for the binding relation, the first binding relation and the first session key are issued to the first communication relay, the first binding relation and the first session key are forwarded to the Internet of things terminal by the first communication relay, and the first communication relay and the Internet of things terminal perform service data transmission based on the first binding relation and the first session key; when the communication abnormality between the cloud and the first communication relay is detected, the cloud reselects one Internet of things gateway as a second communication relay of the Internet of things terminal based on the signal transmission quality list, a second binding relationship is established, a corresponding second session key is configured, the second binding relationship and the second session key are issued to the second communication relay, and the second binding relationship and the second session key are forwarded to the Internet of things terminal by the second communication relay, so that the second communication relay and the Internet of things terminal perform service data transmission based on the second binding relationship and the second session key. By adopting the technical means, the signal transmission effect of the Internet of things system can be optimized, and the signal transmission safety and the signal transmission performance between the terminal of the Internet of things and the gateway can be guaranteed.
The gateway switching and binding device for the terminal of the internet of things provided by the second embodiment of the present application can be used for executing the gateway switching and binding method for the terminal of the internet of things provided by the first embodiment of the present application, and has corresponding functions and beneficial effects.
Example three:
an embodiment of the present application provides an electronic device, and with reference to fig. 8, the electronic device includes: a processor 31, a memory 32, a communication module 33, an input device 34, and an output device 35. The number of processors in the electronic device may be one or more, and the number of memories in the electronic device may be one or more. The processor, memory, communication module, input device, and output device of the electronic device may be connected by a bus or other means.
The memory 32 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the gateway handover binding method of the terminal of the internet of things according to any embodiment of the present application (for example, a test module, a binding module, and a handover module in the gateway handover binding apparatus of the terminal of the internet of things). The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication module 33 is used for data transmission.
The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory, that is, the gateway switching and binding method of the internet of things terminal is realized.
The input device 34 may be used to receive entered numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 35 may include a display device such as a display screen.
The electronic device provided by the embodiment can be used for executing the gateway switching and binding method of the internet of things terminal provided by the embodiment, and has corresponding functions and beneficial effects.
Example four:
an embodiment of the present application further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a gateway handover binding method for an internet of things terminal, where the gateway handover binding method for the internet of things terminal includes: each Internet of things gateway receives one or more test signals broadcast by the same Internet of things terminal, determines signal transmission quality information of the test signals, summarizes the signal transmission quality information to a cloud end, and generates a signal transmission quality list of the Internet of things terminal corresponding to each Internet of things gateway; the cloud terminal selects one Internet of things gateway as a first communication relay of the Internet of things terminal and the cloud terminal based on the signal transmission quality list, a first binding relationship between the first communication relay and the Internet of things terminal is established, a corresponding first session key is configured for the binding relationship, the first binding relationship and the first session key are issued to the first communication relay, the first communication relay forwards the first binding relationship and the first session key to the Internet of things terminal, and the first communication relay and the Internet of things terminal perform service data transmission based on the first binding relationship and the first session key; when the communication abnormality between the cloud and the first communication relay is detected, the cloud reselects one Internet of things gateway as a second communication relay of the Internet of things terminal based on the signal transmission quality list to construct a second binding relationship, configures a corresponding second session key, issues the second binding relationship and the second session key to the second communication relay, and forwards the second binding relationship and the second session key to the Internet of things terminal through the second communication relay, so that the second communication relay and the Internet of things terminal perform service data transmission based on the second binding relationship and the second session key.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations, e.g., in different computer systems connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present application is not limited to the above-described gateway handover binding method for the terminal of the internet of things, and may also perform related operations in the gateway handover binding method for the terminal of the internet of things provided in any embodiments of the present application.
The gateway switching and binding device, the storage medium, and the electronic device of the terminal of the internet of things provided in the embodiments may execute the gateway switching and binding method of the terminal of the internet of things provided in any embodiment of the present application, and reference may be made to the gateway switching and binding method of the terminal of the internet of things provided in any embodiment of the present application without detailed technical details described in the embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. A gateway switching binding method for an Internet of things terminal is characterized by comprising the following steps:
each Internet of things gateway receives one or more test signals broadcast by the same Internet of things terminal, determines signal transmission quality information of the test signals, summarizes the signal transmission quality information to a cloud end, and generates a signal transmission quality list of the Internet of things terminal corresponding to each Internet of things gateway;
the cloud terminal selects one Internet of things gateway as a first communication relay of the Internet of things terminal and the cloud terminal based on the signal transmission quality list, a first binding relationship between the first communication relay and the Internet of things terminal is established, a corresponding first session key is configured for the binding relationship, the first binding relationship and the first session key are issued to the first communication relay, the first communication relay forwards the first binding relationship and the first session key to the Internet of things terminal, and the first communication relay and the Internet of things terminal perform service data transmission based on the first binding relationship and the first session key;
when the communication abnormality between the cloud and the first communication relay is detected, the cloud reselects one Internet of things gateway as a second communication relay of the Internet of things terminal based on the signal transmission quality list to construct a second binding relationship, configures a corresponding second session key, issues the second binding relationship and the second session key to the second communication relay, and forwards the second binding relationship and the second session key to the Internet of things terminal through the second communication relay, so that the second communication relay and the Internet of things terminal perform service data transmission based on the second binding relationship and the second session key.
2. The gateway handover binding method of the terminal of the internet of things according to claim 1, further comprising, after constructing the first binding relationship between the first communication relay and the terminal of the internet of things:
the cloud end counts the first binding relations and determines the binding number of the Internet of things terminals bound by the Internet of things gateways;
and periodically sleeping the Internet of things gateway which is not bound with the Internet of things terminal based on the binding quantity.
3. The gateway switching and binding method for the internet of things terminal according to claim 2, wherein after the cloud calculates each first binding relationship and determines the binding number of the internet of things terminals bound to each internet of things gateway, the method further comprises:
and determining the Internet of things gateways of which the binding number is lower than a set number threshold value as sleeping gateways, reselecting communication relays for the Internet of things terminals bound with the sleeping gateways, and sleeping the sleeping gateways periodically.
4. The gateway handover binding method of the terminal of the internet of things of claim 1, wherein after the first binding relationship and the first session key are issued to the first relay for communication and the first relay for communication forwards the first binding relationship and the first session key to the terminal of the internet of things, the method further comprises:
and the cloud sends the new first session key to the first communication relay every other preset security management period, and the first communication relay forwards the new first session key to the terminal of the Internet of things for updating the first session key.
5. The gateway switching binding method of the internet of things terminal according to claim 1, wherein detecting that the communication between the cloud and the first communication relay is abnormal comprises:
and carrying out error rate detection according to the service data uploaded to the cloud end by the first communication relay, and judging whether the first communication relay is abnormal in communication or not based on an error rate detection result.
6. The gateway handover binding method of the terminal in the internet of things according to claim 1, wherein after the second communication relay and the terminal in the internet of things perform service data transmission based on the second binding relationship and the second session key, the method further comprises:
and when the communication abnormality of the cloud and the second communication relay is detected, reselecting the communication relay for the corresponding Internet of things terminal.
7. The gateway switching and binding method for the terminal of the internet of things according to claim 1, wherein after the signal transmission quality information is collected to a cloud end and a signal transmission quality list corresponding to each gateway of the internet of things is generated for the terminal of the internet of things, the method further comprises:
and updating the signal transmission quality list according to the corresponding signal transmission quality information reported by each Internet of things gateway every other set period.
8. The utility model provides a gateway switching binding apparatus at thing networking terminal which characterized in that includes:
the system comprises a test module, a network management module and a network management module, wherein the test module is used for receiving one or more test signals broadcast by the same Internet of things terminal through each Internet of things gateway, determining signal transmission quality information of the test signals, summarizing the signal transmission quality information to a cloud end, and generating a signal transmission quality list of the Internet of things terminal corresponding to each Internet of things gateway;
the binding module is used for selecting one Internet of things gateway as a first communication relay of the Internet of things terminal and the cloud end through the cloud end based on the signal transmission quality list, constructing a first binding relationship between the first communication relay and the Internet of things terminal, configuring a corresponding first session key for the binding relationship, sending the first binding relationship and the first session key to the first communication relay, and forwarding the first binding relationship and the first session key to the Internet of things terminal through the first communication relay, wherein the first communication relay and the Internet of things terminal perform service data transmission based on the first binding relationship and the first session key;
the switching module is used for reselecting one Internet of things gateway as a second communication relay of the Internet of things terminal based on the signal transmission quality list when the communication abnormity between the cloud and the first communication relay is detected, constructing a second binding relationship, configuring a corresponding second session key, issuing the second binding relationship and the second session key to the second communication relay, and forwarding the second binding relationship and the second session key to the Internet of things terminal by the second communication relay so that the second communication relay and the Internet of things terminal perform service data transmission based on the second binding relationship and the second session key.
9. An electronic device, comprising:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the gateway handover binding method of the internet of things terminal as recited in any one of claims 1-7.
10. A storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the gateway handover binding method for an internet of things terminal according to any one of claims 1 to 7.
CN202011326099.6A 2020-11-23 2020-11-23 Gateway switching binding method and device for terminal of Internet of things Active CN112543457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011326099.6A CN112543457B (en) 2020-11-23 2020-11-23 Gateway switching binding method and device for terminal of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011326099.6A CN112543457B (en) 2020-11-23 2020-11-23 Gateway switching binding method and device for terminal of Internet of things

Publications (2)

Publication Number Publication Date
CN112543457A CN112543457A (en) 2021-03-23
CN112543457B true CN112543457B (en) 2021-09-03

Family

ID=75014742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011326099.6A Active CN112543457B (en) 2020-11-23 2020-11-23 Gateway switching binding method and device for terminal of Internet of things

Country Status (1)

Country Link
CN (1) CN112543457B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113038423B (en) * 2021-05-27 2021-08-20 北京踏歌智行科技有限公司 Intelligent strip mine multimode communication system selection method based on road cloud cooperation
CN113660109A (en) * 2021-07-06 2021-11-16 深圳市联洲国际技术有限公司 Gateway switching method, device, terminal equipment and computer readable storage medium
CN113595992B (en) * 2021-07-07 2023-03-28 青岛海尔科技有限公司 Secure binding method and system, storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146337A (en) * 2006-09-15 2008-03-19 华为技术有限公司 Random access method and system for new access nodes
CN102387564A (en) * 2011-11-08 2012-03-21 中国联合网络通信集团有限公司 Internet of things access method, device and gateway
CN104717225A (en) * 2015-03-30 2015-06-17 中国联合网络通信集团有限公司 Internet of Things gateway access authentication method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146337A (en) * 2006-09-15 2008-03-19 华为技术有限公司 Random access method and system for new access nodes
CN102387564A (en) * 2011-11-08 2012-03-21 中国联合网络通信集团有限公司 Internet of things access method, device and gateway
CN104717225A (en) * 2015-03-30 2015-06-17 中国联合网络通信集团有限公司 Internet of Things gateway access authentication method and system

Also Published As

Publication number Publication date
CN112543457A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN112543457B (en) Gateway switching binding method and device for terminal of Internet of things
Michelinakis et al. Dissecting energy consumption of nb-iot devices empirically
US9002389B2 (en) Method, apparatus, and terminal for determining transmission mode
Medagliani et al. Energy-efficient mobile target detection in wireless sensor networks with random node deployment and partial coverage
Zheng et al. Bulk data dissemination in wireless sensor networks: analysis, implications and improvement
JP2016500495A (en) Intelligent network operation
CN107113644A (en) A kind of signal processing method and relevant device
KR20220163428A (en) Energy saving setting method and device, energy saving method and device, communication node, storage medium
CN112769760B (en) Signal receiving and processing method and device
CN112367409B (en) Internet of things node data transmission control method and device
CN112532382B (en) Internet of things gateway selection method and device based on signal transmission safety management
CN112532287B (en) Communication relay selection method and device for terminal of Internet of things, electronic equipment and storage medium
CN114760182B (en) Intelligent cable with temperature data acquisition function
CN112804118B (en) Data transmission method and device based on intelligent ammeter data jump transmission link
CN112953826B (en) Data skip selection method and device for Internet of things terminal
CN112532291B (en) Power consumption management method and device for multi-antenna diversity reception, electronic equipment and storage medium
CN112468248B (en) Cognitive radio frequency spectrum detection method based on power wireless private network
CN112601261A (en) Internet of things signal transmission mode selection method and device
CA3202898A1 (en) Optimized route for time-critical traffic in mesh network
CN112532285B (en) Diversity antenna self-adaptive selection method and device based on regional signal test
CN109495946B (en) Data transmission method and device of wireless sensor network
CN112511207B (en) Multi-antenna diversity transmission method and device based on power consumption management, electronic equipment and storage medium
CN112543046B (en) Signal receiving mode setting method and device based on gateway replacement
CN112532288B (en) Diversity combining selection method and device for gateway of Internet of things
CN112436878B (en) Signal receiving mode switching method and device based on service type

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