CN112153164B - Global Internet of things equipment access method, device, system and terminal equipment - Google Patents

Global Internet of things equipment access method, device, system and terminal equipment Download PDF

Info

Publication number
CN112153164B
CN112153164B CN202011326177.2A CN202011326177A CN112153164B CN 112153164 B CN112153164 B CN 112153164B CN 202011326177 A CN202011326177 A CN 202011326177A CN 112153164 B CN112153164 B CN 112153164B
Authority
CN
China
Prior art keywords
global internet
service server
things equipment
things
target service
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
CN202011326177.2A
Other languages
Chinese (zh)
Other versions
CN112153164A (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.)
Changsha Rootcloud Technology Co ltd
Rootcloud Technology Co Ltd
Original Assignee
Changsha Rootcloud 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 Changsha Rootcloud Technology Co ltd filed Critical Changsha Rootcloud Technology Co ltd
Priority to CN202011326177.2A priority Critical patent/CN112153164B/en
Publication of CN112153164A publication Critical patent/CN112153164A/en
Application granted granted Critical
Publication of CN112153164B publication Critical patent/CN112153164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1021Server selection for load balancing based on client or server locations
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • 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
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Abstract

The embodiment of the invention provides a global Internet of things equipment access method, a device, a system and terminal equipment, wherein the method is applied to a main server and comprises the following steps: receiving related position information sent by global Internet of things equipment, wherein the related position information comprises GPS positioning data of the global Internet of things equipment and base station position data connected with the global Internet of things equipment; calculating the actual position of the global Internet of things equipment according to the base station positioning data and the GPS positioning data corresponding to the base station position data; selecting a target service server from the actual positions of the global Internet of things equipment, the actual positions of the candidate service servers and the load state; and sending the site address of the target service server to the global Internet of things equipment to serve as a gateway to be accessed. The technical scheme of the invention can realize automatic access management of global Internet of things equipment, does not need human adjustment even if the position is changed, and can ensure better data transmission speed with an accessed service server.

Description

Global Internet of things equipment access method, device, system and terminal equipment
Technical Field
The invention relates to the technical field of global Internet of things, in particular to a global Internet of things equipment access method, device and system and terminal equipment.
Background
In the internet of things system, the gateway often plays an important role, for example, the gateway can be used as an access gateway to be responsible for data access of the internet of things device, and then data transmission, calculation, processing and the like are performed. The gateway can enable the networking equipment under different networks to carry out normal communication and background data collection, so that the real potential of the Internet of things can be fully excavated.
However, in the prior art, no matter where the internet of things device is located on the earth, a designated gateway at a fixed location is accessed, especially for global internet of things devices that need to move across regions, for example, if the internet of things device is located in country a but needs to transmit the collected operating condition data back to country B, real-time processing of device data compliance needs to be completed, which greatly increases device performance overhead. In addition, at present, gateway access of global internet of things equipment is often managed through manual access, for example, the month is located in country a, and the next month may need to be transported to country C for use; after a period of time, the user may need to transport the terminal back to country A again, and the operation of manual access management is complicated due to the fact that the position of the device is constantly changed.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, an apparatus, a system and a terminal device for global internet of things device access to overcome the deficiencies in the prior art.
The embodiment of the invention provides a global Internet of things equipment access method, which is applied to a main server and comprises the following steps:
receiving related position information sent by global Internet of things equipment, wherein the related position information comprises GPS positioning data of the global Internet of things equipment and base station position data connected with the global Internet of things equipment;
and performing equipment positioning calculation according to the base station position data to obtain base station positioning data, and calculating the actual position of the global Internet of things equipment according to the following formula:
Figure 403622DEST_PATH_IMAGE001
selecting a target service server from the actual positions of the global Internet of things equipment, the actual positions of a plurality of candidate service servers and the load state;
and sending the site address of the target service server to the global Internet of things equipment, wherein the target service server is used as a gateway to be accessed of the global Internet of things equipment.
In one embodiment, the selecting a target service server from the actual locations of the global internet of things devices, the actual locations of the candidate service servers, and the load states includes:
calculating the physical distance between each candidate service server and the global Internet of things equipment according to the actual positions of the global Internet of things equipment and the candidate service servers, and acquiring a physical distance score corresponding to each physical distance;
acquiring the current load state score of each candidate service server;
calculating the access index of each candidate service server according to a preset formula, wherein the preset formula is as follows: access index =1- (preset distance weight physical distance score + preset load weight load status score);
and selecting the candidate service server with the maximum access index as a target service server.
In one embodiment, the global internet of things device access method further includes:
and if the GPS positioning data or the base station position data are abnormally received, calculating the actual position of the global Internet of things equipment according to the received GPS positioning data or the received base station position data.
In one embodiment, the global internet of things device access method further includes:
and if receiving the updated relevant position information sent by the global Internet of things equipment, reselecting a target service server from the candidate service servers according to the step of selecting the target service server.
The embodiment of the invention also provides a global Internet of things equipment access method, which is applied to global Internet of things equipment and comprises the following steps:
sending related position information to a main server, wherein the related position information comprises GPS positioning data of the global Internet of things equipment and base station position data connected with the global Internet of things equipment, so that the main server performs equipment positioning calculation according to the base station position data to obtain base station positioning data, and calculates the actual position of the global Internet of things equipment according to the following formula:
Figure 992866DEST_PATH_IMAGE001
receiving response information which is sent by the main server and contains a site address of a target service server, wherein the target service server is selected and determined according to the actual position of the global Internet of things equipment, the actual positions of a plurality of candidate service servers and the load state;
and sending an access request to the site address for accessing the target service server.
In one embodiment, after accessing the target traffic server, the method further comprises:
if the response time of the currently accessed target service server is detected to exceed a preset delay time threshold, sending a test message to a plurality of service servers of the prestored corresponding site addresses;
and selecting one service server with the shortest response time length from the response time lengths of the service servers to the test message for access.
In one embodiment, before sending the relevant location information to the main server, the method further comprises:
and judging whether the relevant position information can be acquired or not, if so, executing the operation of sending the relevant position information, otherwise, sending a test message to a plurality of service servers of the prestored corresponding site addresses, and selecting one service server with the shortest response time length from the service servers according to the response time lengths of the service servers to the test message for access.
The embodiment of the invention also provides a global Internet of things equipment access system, which comprises global Internet of things equipment and a main server, wherein the main server is in communication connection with the global Internet of things equipment;
the global Internet of things equipment is used for sending related position information to a main server, and the related position information comprises GPS positioning data of the global Internet of things equipment and position data of a base station connected with the global Internet of things equipment;
the main server is used for performing equipment positioning calculation according to the base station position data to obtain base station positioning data, and calculating the actual position of the global Internet of things equipment according to the following formula:
Figure 38183DEST_PATH_IMAGE001
selecting a target service server from the actual positions of the global Internet of things equipment, the actual positions of a plurality of candidate service servers and the load state;
the main server is further configured to send the site address of the target service server to the global internet of things device, so that the global internet of things device is accessed to the target service server according to the site address.
The embodiment of the invention also provides a global Internet of things equipment access device, which is applied to a main server and comprises the following components:
the receiving module is used for receiving related position information sent by global Internet of things equipment, wherein the related position information comprises GPS positioning data of the global Internet of things equipment and base station position data connected with the global Internet of things equipment;
the determining module is used for performing equipment positioning calculation according to the base station position data to obtain base station positioning data, and calculating the actual position of the global internet of things equipment according to the following formula:
Figure 964550DEST_PATH_IMAGE001
the selecting module is used for selecting a target service server from the actual positions of the global Internet of things equipment, the actual positions of the candidate service servers and the load state;
and the sending module is used for sending the site address of the target service server to the global internet of things equipment, and the target service server is used as a gateway to be accessed of the global internet of things equipment.
The embodiment of the present invention further provides a terminal device, which includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the computer program to implement the above global internet of things device access method.
Embodiments of the present invention also provide a readable storage medium, which stores a computer program, and when the computer program is executed, the computer program implements the global internet of things device access method.
The embodiment of the invention has the following advantages:
the global Internet of things equipment access method of the embodiment of the invention sends the position information of the global Internet of things equipment to the main server, and the main server selects the most appropriate service server as the access gateway by comprehensively considering the position, the load state and the like of each service server.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 shows a flow diagram of a global internet of things device access method according to embodiment 1 of the present invention;
fig. 2 is a schematic application diagram of a global internet of things device access method according to embodiment 1 of the present invention;
fig. 3 is a schematic flowchart illustrating a process of selecting a target service server in the global internet of things device access method according to embodiment 1 of the present invention;
fig. 4 is a flowchart illustrating a global internet of things device access method according to embodiment 2 of the present invention;
fig. 5 shows another flowchart of a global internet of things device access method according to embodiment 2 of the present invention;
fig. 6 is a schematic workflow diagram of a global internet of things device access system according to an embodiment of the present invention;
fig. 7 shows a schematic structural diagram of a global internet of things device access apparatus according to an embodiment of the present invention.
Description of the main element symbols:
10-global internet of things equipment; 20-a primary server; 30-a service server; 301-candidate service servers; 302-target service server; 100-global internet of things equipment access device; 110-a receiving module; 120-a determination module; 130-selecting module; 140-sending module.
Detailed Description
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.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Example 1
Referring to fig. 1, the present embodiment provides a global internet of things device access method, which can be applied to access management of global internet of things devices 10 in an internet of things system as shown in fig. 2. By the method, the global Internet of things equipment 10 can be automatically accessed to the corresponding gateway, and further, the transmission of the working condition data of the equipment and the like can be realized. Even if the position of the global internet of things device 10 changes, manual access switching processing or the like is not required.
In this embodiment, the global internet of things device 10 refers to an internet of things terminal product capable of working in different country regions, can be accessed to various device controllers, supports device operating condition data acquisition, and can upload the acquired data to the cloud end through the global internet of things. The main server 20 is generally a computer with high-speed CPU computing capability, and is generally assigned with a fixed access domain name, and based on the internet of things device access platform, it may store and analyze device data of the accessed global internet of things device 10, so as to implement intelligent control and the like. In this embodiment, no matter which country the global internet of things device 10 moves to, it can access the main server 20 through the fixed domain name. The service server 30 is usually deployed in the country region involved in the service, for example, it may be deployed in different country regions of china, germany, usa, etc. Of course, in the same country, only one service server may be deployed, or multiple service servers may be deployed, which may depend on service requirements and the like. Notably, each service server 30 can interface to the internet of things device access platform through a global communication network. In this embodiment, the service server 30 is connected to the global internet of things device 10 corresponding to the service area, so that the data transmission speed of the global internet of things device 10 can be increased, and the problem of the communication speed between the global internet of things device 10 and the access platform due to different country areas can be solved.
The following describes the access method of the global internet of things device in detail.
Step S110, receiving related location information sent by the global internet of things device 10, where the related location information includes GPS positioning data of the global internet of things device 10 and location data of a base station to which the global internet of things device is connected.
Illustratively, when a global internet of things device 10 needs gateway access, information related to its own location is sent to the host server 20, so that the host server 20 can determine the location of the global internet of things device 10, and then select an appropriate gateway to be accessed from the known plurality of service servers 30.
In one embodiment, for example, the relevant location information may be the location data obtained by a global GPS positioning module in the global internet of things device 10, and the location data of the base station to which the global internet of things device 10 is connected, and generally, the location of the global internet of things device 10 may be determined by obtaining the location data of three connected base stations. The base station may include a base station of a current country region, or may include base stations connected across country regions.
It should be noted that before the global internet of things device 10 sends the relevant location information, the global internet of things device 10 should have established a connection relationship with the main server 20 and perform a device authentication operation, that is, the main server 20 performs step S110 after performing an authentication operation on the global internet of things device 10. The current Internet of things equipment is ensured to be legal registered equipment under the Internet of things equipment access platform through equipment authentication operation, and the access or attack of fake equipment and the like can be effectively prevented, so that the safety of an Internet of things system is ensured and the like.
Step S120, performing device positioning calculation according to the base station location data to obtain base station positioning data, and calculating an actual location of the global internet of things device 10 according to a formula.
Considering that the global GPS positioning mode has high positioning speed and high accuracy, but is greatly influenced by natural environmental factors such as weather, and the base station positioning mode is not influenced by environmental factors such as weather and high buildings, but in the position without the base station, because of global positioning, the error range is larger. For this reason, in this embodiment, the accurate location information of the global internet of things device 10 is jointly acquired through two different positioning data. For the convenience of distinguishing from the GPS positioning data, the actual position data of the global internet of things device 10 calculated based on the position data of the base station is recorded as the base station positioning data so as to be unified with the measurement standard of the GPS positioning data.
Exemplarily, the actual position of the global internet of things device 10 will be calculated according to the following formula:
Figure 185447DEST_PATH_IMAGE002
the first preset positioning weight and the second preset positioning weight may be preset, and may be specifically set according to an actual service instance, for example, the number of base stations in the service area, the area weather, and the like may be considered. It is understood that by combining two positioning data to determine the actual position of the global internet of things device 10, the positioning accuracy can be improved.
Considering that the natural environment such as weather in some countries may be very bad, or the fundamental wave positioning cannot be performed in some remote places without base stations, the GPS positioning data or the base station position data may be received abnormally. Optionally, if the related information only includes the received GPS positioning data, the GPS positioning data may be used as the actual position of the global internet of things device 10; alternatively, if the relevant location information only includes the location data of the plurality of connected base stations, the actual location of the global internet of things device 10 may be calculated by a three-point positioning algorithm according to the location data of the base stations. Of course, if the two kinds of data are received abnormally, the main server 20 will be used as its gateway to be accessed or the global internet of things device 10 will be accessed to a service server set by default in the system.
Step S130, selecting a target service server 302 from the actual positions of the global internet of things devices 10 and the actual positions and load states of the candidate service servers 301. Wherein, the target service server 302 is used as a gateway to be accessed of the global internet of things device 10.
In this embodiment, the main server 20 stores relevant information of each service server in advance, such as a site address, an actual geographic location, availability, a load status, and the like of the service server. The candidate service server 301 mainly refers to a currently available service server.
Exemplarily, when the target service server 302 is selected, the location and the load state of each candidate service server 301 are comprehensively considered, so that a situation that the response is slow due to a large load of the accessed service server can be prevented, and the data transmission rate of the global internet of things device 10 is ensured.
In one embodiment, as shown in fig. 3, the selecting of the target service server 302 includes:
step S210, calculating a physical distance between each candidate service server 301 and the global internet of things device 10 according to the actual positions of the global internet of things device 10 and each candidate service server 301, where the physical distance is used to calculate a physical distance score.
In this embodiment, the physical distance mainly refers to a straight-line distance from the global internet of things device 10 to each candidate server. Illustratively, the physical distance between the global internet of things device 10 and each candidate service server 301 can be calculated through the corresponding actual position, and then a physical distance score of each physical distance is calculated. Generally, the closer the physical distance, the smaller the physical distance score; conversely, the greater the physical distance score. In one embodiment, the physical distance corresponding to each candidate service server 301 may be normalized by presetting a maximum physical distance, so as to obtain a physical distance score corresponding to each candidate service server 301 with the maximum physical distance as a reference. It will be appreciated that by performing the normalization process on the same basis, the problem of inconsistent scores between physical distances for different levels can be avoided.
For example, if there are candidate service servers A, B and C and the corresponding physical distances are 5km, 80km, and 150km, respectively, and the maximum physical distance is 500km, then the physical distance scores corresponding to candidate service servers A, B and C, respectively, are obtained by the normalization process, which is 1, 16, and 30, respectively, and the normalized data is converted to a percentage numerical representation.
In step S220, the current load status score of each candidate service server 301 is obtained.
The load status score may be obtained, for example, by the load level or load rate of each candidate traffic server 301. For example, the load rate of a candidate service server is 40%, i.e., the load status score is 40. It can be understood that the less the load, the better the state, and the smaller the corresponding load rate, i.e. the smaller the score of the loaded state; conversely, if the load is more, the load status score is also greater. Generally, if the load mounted by the service server is more, the required processing resources are often needed more, and for the equipment in the internet of things, this easily causes that the service server may not be able to process the message of the equipment in the internet of things in time, and further, response delay occurs.
Step S230, calculating an access index of each candidate service server 301 according to a preset formula.
Exemplarily, after obtaining the physical distance score and the load status score of each candidate service server 301, the access index of each candidate service server 301 may be obtained by calculating according to the following preset formula. The preset distance weight and the preset load weight can be determined according to actual service conditions, empirical values obtained through multiple tests and the like, and the preset formula is as follows:
access index =1- (preset distance weight physical distance score + preset load weight load status score).
Step S240, selecting the candidate service server with the largest access index as the target service server 302.
Then, after calculating the access index to each candidate service server 301 separately, the target service server 302 with the largest access index may be the one that is needed. It can be understood that, for a service server with a closer physical distance and a lower load degree, the corresponding access index will be higher, which means that the service server is more suitable to be an access gateway of the global internet of things device 10. Generally, the closer the physical distance between the internet of things device and the service server is, the shorter the data transmission time is, i.e. the faster the data transmission efficiency is. When the load rate of the service server is lower, the speed of the service server responding to the global internet of things equipment is higher. In the embodiment, when the service server to be accessed is selected, the selection result is not appropriate due to only considering the nearest distance or the load condition by comprehensively considering the global geographic position and the load degree.
Step S140, sending the site address of the target service server 302 to the global internet of things device 10.
Exemplarily, after the target service server 302 is determined, the site address thereof is sent to the global internet of things device 10, so that the global internet of things device 10 sends an access request and performs device access.
Considering that the position of the global internet of things device 10 may move, in order to ensure that the global internet of things device 10 can always be in a better access state, the global internet of things device 10 will send an updated relevant position to the main server 20, so that the main server 20 determines whether to select a new target service server 302. Further optionally, the global internet of things device access method further includes:
if the updated relevant position information sent by the global internet of things device 10 is received, a target service server 302 is reselected from the candidate service servers 301 according to the step of selecting the target service server 302.
It can be understood that, by using the updated location information to relocate the global internet of things device 10 and then selecting a most suitable target service server 302 according to the updated actual location, the data transmission rate of the global internet of things device 10 can be in a higher state, and the like.
According to the global Internet of things equipment access method, the global Internet of things equipment sends the position information of the global Internet of things equipment to the main server, and the main server selects the most appropriate service server for access by comprehensively considering the position factors and the load states of the service servers, so that the automatic access management of the global Internet of things equipment can be realized, and the access is not adjusted manually even if the position changes; because the actual position and the load condition are taken as the priority conditions, a most suitable service server is selected as an access gateway, and the better data transmission speed and the like can be ensured.
Example 2
Referring to fig. 4, the present embodiment provides a global internet of things device access method, which is applied to a global internet of things device 10, and the global internet of things device access method includes:
step S310, sending relevant location information to the main server 20, where the relevant location information includes GPS positioning data of the global internet of things device 10 and base station location data connected to the global internet of things device 10, so that the main server 20 performs device positioning calculation according to the base station location data to obtain base station positioning data, and calculates an actual location of the global internet of things device 10 according to the formula in embodiment 1.
It is understood that the relevant location information is the same as the relevant location information received by the main server 20 in the above embodiment 1, and the obtaining and the content of the relevant location information can be referred to the above embodiment 1, so that the description is not repeated here.
Step S320, receiving response information including the site address of the target service server 302 sent by the main server 20, where the target service server 302 is selected and determined according to the actual location of the global internet of things device 10, the actual locations of the plurality of candidate service servers 301, and the load status.
Exemplarily, when the host server 20 integrates the location information and the load status of each service server to select a target service server 302, the host server 20 will send the site address of the target service server 302 to the global internet of things device 10. For a specific selection process of the target service server 302, reference may be made to the above embodiment 1, and therefore, a description thereof is not repeated here.
Step S330, sending an access request to the site address for accessing the target service server 302.
Illustratively, after acquiring the site address, the global internet of things device 10 sends an access request message to the target service server 302. It should be understood that after establishing a connection with the target service server 302, the global internet of things device 10 generally needs to perform device authentication, that is, the service server will verify device information of the global internet of things device, so as to ensure that the global internet of things device is a legal registered device under the internet of things device access platform. And after the authentication is successful, the equipment working condition data transmission and the like can be normally sent. The operating condition data herein mainly refers to data related to business acquired by the global internet of things device 10 through sensors or the like or acquired by other means.
In addition, when the global internet of things device 10 is successfully accessed to the target service server 302 and the authentication is successful, the global internet of things device 10 will start timing after sending the device working condition data each time, and determine whether the time length from the last sending of the device working condition data exceeds the preset time length before sending the device working condition data the next time; and if so, re-sending the equipment authentication request, and sending corresponding equipment working condition data after receiving the message of successful authentication.
It can be understood that, in view of security, when the global internet of things device 10 does not send data for a long time, the access platform of the internet of things device may delete the access information of the device in time, and therefore, an authentication operation is required each time after data is not transmitted for a long time, which may prevent the service server from being exposed, and may also prevent hackers and the like from attacking the service server and even the entire access platform of the internet of things device through the global internet of things device 10, thereby improving system security.
Optionally, as shown in fig. 5, after accessing the target service server 302, the global internet of things device access method further includes:
step S340, access the target service server 302.
Step S350, detecting whether the response time of the currently accessed target service server 302 exceeds a preset delay time threshold. If yes, step S360 is executed, otherwise, the current access state is maintained.
Step S360, sending test messages to a plurality of service servers of the pre-stored corresponding site addresses.
Exemplarily, the global internet of things device 10 may store a manually inputted or accessed service server in advance, and if the currently accessed service server fails to respond in time (i.e., response time is out), an attempt may be made to access a new service server.
Step S370, selecting one service server with the shortest response time from the response time of each service server to the test message for accessing.
Exemplarily, each service server usually returns a response message after receiving the test message, so the global internet of things device 10 may be selected according to the response duration of each service server, and preferentially selects the one with the shortest response duration as the new access gateway.
Considering that if the global internet of things device 10 cannot acquire information related to itself, for example, the external weather environment is too poor, and the number of connected base stations is limited, optionally, the global internet of things device 10 further includes, before sending the relevant location information to the main server 20: judging whether the relevant position information can be acquired or not; if so, executing the operation of sending the related position information, otherwise, sending a test message to a plurality of service servers of the pre-stored corresponding site addresses, and selecting one service server with the shortest response time length from the response time lengths of the service servers to the test message for access.
It is understood that the global internet of things device access method of the present embodiment is the same as the method principle of the above embodiment 1, and the alternatives of the above embodiment 1 are also applicable to the present embodiment, so the description is not repeated here.
Example 3
Referring to fig. 6, the present embodiment provides a global internet of things access system, including: global internet of things device 10 and main server 20, wherein main server 20 is connected with global internet of things device 10 in communication mode.
Exemplarily, the global internet of things device 10 is configured to send relevant location information to the main server 20, where the relevant location information includes GPS positioning data of the global internet of things device and base station location data connected to the global internet of things device.
The main server 20 is configured to perform device location calculation according to the base station location data to obtain base station location data, and calculate an actual location of the global internet of things device according to the following formula:
Figure 539068DEST_PATH_IMAGE003
and selecting a target service server 302 from the actual positions of the global internet of things devices 10, the actual positions of the candidate service servers 301 and the load states, wherein the target service server 302 is to be used as an access gateway of the global internet of things devices 10. In addition, the main server 20 is further configured to send the site address of the target service server 302 to the global internet of things device 10, so that the global internet of things device 10 accesses the target service server 302 according to the site address.
It is to be understood that the steps performed by the main server 20 and the global internet of things device 10 in the above embodiments 1 or 2 correspond to the functions of the main server 20 and the global internet of things device 10 in the present embodiment, and the alternatives in the above embodiments 1 and 2 are also applicable to the present embodiment, so that the description is not repeated here.
Example 4
Referring to fig. 7, the present embodiment provides a global internet of things access apparatus 100, which is applied to a main server 20, and the global internet of things access apparatus 100 includes:
a receiving module 110, configured to receive related location information sent by a global internet of things device 10, where the related location information includes GPS location data of the global internet of things device and location data of a base station connected to the global internet of things device.
A determining module 120, configured to perform device location calculation according to the base station location data to obtain base station location data, and calculate an actual location of the global internet of things device according to the following formula:
Figure 947047DEST_PATH_IMAGE001
a selecting module 130, configured to select a target service server 302 according to the actual location of the global internet of things device 10, the actual locations of the candidate service servers 301, and the load state, where the target service server 302 is used as an access gateway of the global internet of things device 10.
And a sending module 140, configured to send the site address of the target service server 302 to the global internet of things device 10.
It is to be understood that the functions of the global internet of things device access apparatus 100 of the present embodiment correspond to the steps of the global internet of things device access method of the above embodiment 1, and the options of the above embodiment 1 are also applicable to the present embodiment.
The invention also provides a terminal device, which can be a main server or a global internet of things device, exemplarily comprising a memory and a processor, wherein the memory stores a computer program, and the processor enables the terminal device to execute the global internet of things device access method by running the computer program.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data (such as location information and the like) created according to the use of the terminal 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 volatile solid state storage device.
The invention also provides a readable storage medium for storing a computer program used in the terminal device.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a terminal device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (9)

1. A global Internet of things equipment access method is applied to a main server and comprises the following steps:
receiving related position information sent by global Internet of things equipment, wherein the related position information comprises GPS positioning data of the global Internet of things equipment and base station position data connected with the global Internet of things equipment;
and performing equipment positioning calculation according to the base station position data to obtain base station positioning data, and calculating the actual position of the global Internet of things equipment according to the following formula:
Figure 80345DEST_PATH_IMAGE001
selecting a target service server from the actual positions of the global Internet of things equipment, the actual positions of a plurality of candidate service servers and the load state;
sending the site address of the target service server to the global Internet of things equipment, wherein the target service server is used as a gateway to be accessed of the global Internet of things equipment;
wherein, the selecting a target service server according to the actual position of the global internet of things device, the actual positions of the candidate service servers and the load state comprises:
calculating the physical distance between each candidate service server and the global Internet of things equipment according to the actual positions of the global Internet of things equipment and the candidate service servers, and acquiring a physical distance score corresponding to each physical distance;
acquiring the current load state score of each candidate service server;
calculating the access index of each candidate service server according to a preset formula, wherein the preset formula is as follows: access index =1- (preset distance weight physical distance score + preset load weight load status score);
and selecting the candidate service server with the maximum access index as a target service server.
2. The global internet of things device access method according to claim 1, further comprising:
and if the GPS positioning data or the base station position data are abnormally received, calculating the actual position of the global Internet of things equipment according to the received GPS positioning data or the received base station position data.
3. A global Internet of things equipment access method is applied to global Internet of things equipment, and comprises the following steps:
sending related position information to a main server, wherein the related position information comprises GPS positioning data of the global Internet of things equipment and base station position data connected with the global Internet of things equipment, so that the main server performs equipment positioning calculation according to the base station position data to obtain base station positioning data, and calculates the actual position of the global Internet of things equipment according to the following formula:
Figure 902807DEST_PATH_IMAGE001
receiving response information which is sent by the main server and contains a site address of a target service server, wherein the target service server is selected and determined according to the actual position of the global Internet of things equipment, the actual positions of a plurality of candidate service servers and the load state;
the determination of the target service server comprises the following steps:
calculating the physical distance between each candidate service server and the global Internet of things equipment according to the actual positions of the global Internet of things equipment and the candidate service servers, and acquiring a physical distance score corresponding to each physical distance;
acquiring the current load state score of each candidate service server;
calculating the access index of each candidate service server according to a preset formula, wherein the preset formula is as follows: access index =1- (preset distance weight physical distance score + preset load weight load status score);
selecting the candidate service server with the largest access index as a target service server;
and sending an access request to the site address for accessing the target service server.
4. The global internet of things device access method of claim 3, wherein after accessing the target service server, the method further comprises:
if the response time of the currently accessed target service server is detected to exceed a preset delay time threshold, sending a test message to a plurality of service servers of the prestored corresponding site addresses;
and selecting one service server with the shortest response time length from the response time lengths of the service servers to the test message for access.
5. The global internet of things device access method of claim 3, wherein before sending the relevant location information to the host server, the method further comprises:
and judging whether the relevant position information can be acquired or not, if so, executing the operation of sending the relevant position information, otherwise, sending a test message to a plurality of service servers of the prestored corresponding site addresses, and selecting one service server with the shortest response time length from the service servers according to the response time lengths of the service servers to the test message for access.
6. The global Internet of things equipment access system is characterized by comprising global Internet of things equipment and a main server, wherein the main server is in communication connection with the global Internet of things equipment;
the global Internet of things equipment is used for sending related position information to a main server, and the related position information comprises GPS positioning data of the global Internet of things equipment and position data of a base station connected with the global Internet of things equipment;
the main server is used for performing equipment positioning calculation according to the base station position data to obtain base station positioning data, and calculating the actual position of the global Internet of things equipment according to the following formula:
Figure 356791DEST_PATH_IMAGE001
selecting a target service server from the actual positions of the global Internet of things equipment, the actual positions of a plurality of candidate service servers and the load state;
wherein, the selecting a target service server according to the actual position of the global internet of things device, the actual positions of the candidate service servers and the load state comprises:
calculating the physical distance between each candidate service server and the global Internet of things equipment according to the actual positions of the global Internet of things equipment and the candidate service servers, and acquiring a physical distance score corresponding to each physical distance;
acquiring the current load state score of each candidate service server;
calculating the access index of each candidate service server according to a preset formula, wherein the preset formula is as follows: access index =1- (preset distance weight physical distance score + preset load weight load status score);
selecting the candidate service server with the largest access index as a target service server;
the main server is further configured to send the site address of the target service server to the global internet of things device, so that the global internet of things device is accessed to the target service server according to the site address.
7. A global Internet of things equipment access device is characterized in that the device is applied to a main server and comprises:
the receiving module is used for receiving related position information sent by global Internet of things equipment, wherein the related position information comprises GPS positioning data of the global Internet of things equipment and base station position data connected with the global Internet of things equipment;
the determining module is used for performing equipment positioning calculation according to the base station position data to obtain base station positioning data, and calculating the actual position of the global internet of things equipment according to the following formula:
Figure 555691DEST_PATH_IMAGE001
the selecting module is used for selecting a target service server from the actual positions of the global Internet of things equipment, the actual positions of the candidate service servers and the load state;
wherein, the selecting a target service server according to the actual position of the global internet of things device, the actual positions of the candidate service servers and the load state comprises:
calculating the physical distance between each candidate service server and the global Internet of things equipment according to the actual positions of the global Internet of things equipment and the candidate service servers, and acquiring a physical distance score corresponding to each physical distance; acquiring the current load state score of each candidate service server; calculating the access index of each candidate service server according to a preset formula, wherein the preset formula is as follows: access index =1- (preset distance weight physical distance score + preset load weight load status score); selecting the candidate service server with the largest access index as a target service server;
and the sending module is used for sending the site address of the target service server to the global internet of things equipment, and the target service server is used as a gateway to be accessed of the global internet of things equipment.
8. A terminal device comprising a processor and a memory, the memory storing a computer program, the processor being configured to execute the computer program to implement the global internet of things device access method according to any one of claims 1 to 5.
9. A readable storage medium, in which a computer program is stored, which when executed implements the global internet of things device access method of any one of claims 1 to 5.
CN202011326177.2A 2020-11-24 2020-11-24 Global Internet of things equipment access method, device, system and terminal equipment Active CN112153164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011326177.2A CN112153164B (en) 2020-11-24 2020-11-24 Global Internet of things equipment access method, device, system and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011326177.2A CN112153164B (en) 2020-11-24 2020-11-24 Global Internet of things equipment access method, device, system and terminal equipment

Publications (2)

Publication Number Publication Date
CN112153164A CN112153164A (en) 2020-12-29
CN112153164B true CN112153164B (en) 2021-02-26

Family

ID=73887289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011326177.2A Active CN112153164B (en) 2020-11-24 2020-11-24 Global Internet of things equipment access method, device, system and terminal equipment

Country Status (1)

Country Link
CN (1) CN112153164B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114244888A (en) * 2021-12-10 2022-03-25 珠海格力电器股份有限公司 Method and device for connecting equipment and server and connecting system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529460A (en) * 2003-10-14 2004-09-15 北京邮电大学 Whole load equalizing method based on global network positioning
WO2020072222A1 (en) * 2018-10-04 2020-04-09 Cisco Technology, Inc. Placement of container workloads triggered by network traffic for efficient computing at network edge devices

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040260766A1 (en) * 2003-06-18 2004-12-23 Barros Mark A. System for location based internet access and method therefore
CN107896235B (en) * 2016-09-29 2021-01-29 腾讯科技(深圳)有限公司 Information pushing method and device, network access equipment, terminal and social server
CN106899657B (en) * 2017-01-16 2021-08-31 东南大学常州研究院 High-concurrency access method for GPS (Global positioning System) moving target positioning and tracking system
CN111049710A (en) * 2019-11-20 2020-04-21 视联动力信息技术股份有限公司 Method and device for accessing server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529460A (en) * 2003-10-14 2004-09-15 北京邮电大学 Whole load equalizing method based on global network positioning
WO2020072222A1 (en) * 2018-10-04 2020-04-09 Cisco Technology, Inc. Placement of container workloads triggered by network traffic for efficient computing at network edge devices

Also Published As

Publication number Publication date
CN112153164A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
EP3262552B1 (en) Methods, apparatus, and systems for identity authentication
EP3429278B1 (en) Wi-fi hot spot recommendation method and terminal
WO2016082582A1 (en) Method and system for sharing traffic of terminal
CN107182098B (en) Method and equipment for realizing switching of user equipment between wireless access points
CN111756644B (en) Hot spot current limiting method, system, equipment and storage medium
CN104767837A (en) Method and device for identifying proxy IP address
WO2016180210A1 (en) Method and apparatus for accessing wifi network
CN111401844A (en) Data sharing cooperative office method and data sharing platform based on Internet of things
JP2023550806A (en) Federated learning participant selection methods, equipment, equipment, and storage media
CN112153164B (en) Global Internet of things equipment access method, device, system and terminal equipment
CN105099858A (en) Network instant messaging session method and system
CN104902033B (en) Log in address recording method and device
CN110913038B (en) IP address determination method, device, server and computer readable storage medium
CN110460486B (en) Service node monitoring method and system
CN110677683B (en) Video storage and video access method and distributed storage and video access system
CN107547221B (en) Method and equipment for providing log information
CN110460487B (en) Service node monitoring method and system and service node
CN112422604A (en) File uploading method, device and system and computer equipment
CN107708136B (en) High-speed rail cell identification method and device
CN106535102A (en) Mobile terminal positioning method and mobile terminal
CN114466321B (en) Message sending method and device, electronic equipment and storage medium
CN112367384B (en) Kafka cluster-based dynamic speed limiting method and device and computer equipment
CN114124797B (en) Server routing method and device, electronic equipment and storage medium
CN115442260B (en) Data transmission method, terminal device and storage medium
CN112653717B (en) Multi-cloud cooperation distributed system and application distribution method

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

Effective date of registration: 20210507

Address after: No.1, 3rd floor, R & D building, Sany industrial city, No.1, Sany Road, Changsha Economic and Technological Development Zone, Changsha, Hunan 410000

Patentee after: CHANGSHA ROOTCLOUD TECHNOLOGY Co.,Ltd.

Patentee after: Shugen Internet Co.,Ltd.

Address before: No.1, 3rd floor, R & D building, Sany industrial city, No.1, Sany Road, Changsha Economic and Technological Development Zone, Changsha, Hunan 410000

Patentee before: CHANGSHA ROOTCLOUD TECHNOLOGY Co.,Ltd.