CN117914933A - Internet of things networking method and terminal - Google Patents

Internet of things networking method and terminal Download PDF

Info

Publication number
CN117914933A
CN117914933A CN202410316143.7A CN202410316143A CN117914933A CN 117914933 A CN117914933 A CN 117914933A CN 202410316143 A CN202410316143 A CN 202410316143A CN 117914933 A CN117914933 A CN 117914933A
Authority
CN
China
Prior art keywords
upper computer
internet
service
things
message middleware
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.)
Granted
Application number
CN202410316143.7A
Other languages
Chinese (zh)
Other versions
CN117914933B (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.)
Fujian Times Nebula Technology Co Ltd
Original Assignee
Fujian Times Nebula 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 Fujian Times Nebula Technology Co Ltd filed Critical Fujian Times Nebula Technology Co Ltd
Priority to CN202410316143.7A priority Critical patent/CN117914933B/en
Publication of CN117914933A publication Critical patent/CN117914933A/en
Application granted granted Critical
Publication of CN117914933B publication Critical patent/CN117914933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/50Network services
    • H04L67/55Push-based network services
    • 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
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/2871Implementation details of single intermediate entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (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 invention discloses an Internet of things networking method and a terminal, which are characterized in that a targeted service distribution rule is generated by acquiring service types and data characteristics of subscription topics in a message middleware, an original upper computer is controlled to unsubscribe corresponding subscription topics according to the service distribution rule, the unsubscribed corresponding subscription topics are pushed to a new upper computer, networking under an Internet of things architecture is completed, and service loads are uniformly distributed to the original upper computer and the new upper computer, so that resource waste is avoided.

Description

Internet of things networking method and terminal
Technical Field
The invention relates to the field of data processing, in particular to an Internet of things networking method and a terminal.
Background
With popularization of the internet of things technology, various operation schemes related to the internet of things are more and more favored by markets, for example, operation schemes of large charging stations or multi-charging station networking in the new energy field, most of the operation schemes adopt modes of multi-medium-position machines and multi-upper-position machine networking operation, wherein the medium-position machines are responsible for data acquisition, and the upper-position machines are responsible for functions of data processing, data landing storage and the like; with the development of services, the original architecture cannot process newly added services, and a middle computer or an upper computer needs to be added to the original architecture to dynamically networking, but the networked services have the problem of unreasonable distribution, and the phenomenon of overload of part of upper computers or middle computers often occurs.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: the networking method and the terminal for the Internet of things are provided, and the problem of unbalanced networking load of the Internet of things is solved.
In order to solve the technical problems, the invention adopts the following technical scheme:
An internet of things networking method comprises the following steps:
s1, accessing a new upper computer;
s2, acquiring the service type and/or data characteristics of each subscription topic in the message middleware and generating a service distribution rule;
and S3, controlling the original upper computer to unsubscribe the corresponding subscription theme according to the service allocation rule and controlling the new upper computer to access the corresponding subscription theme.
In order to solve the technical problems, the invention adopts another technical scheme that:
An internet of things networking terminal comprising a memory, a processor and a computer program stored on the memory and operable on the processor, the processor executing the computer program to perform the steps of:
s1, accessing a new upper computer;
s2, acquiring the service type and/or data characteristics of each subscription topic in the message middleware and generating a service distribution rule;
and S3, controlling the original upper computer to unsubscribe the corresponding subscription theme according to the service allocation rule and controlling the new upper computer to access the corresponding subscription theme.
The invention has the beneficial effects that: the networking method and the terminal of the Internet of things are provided, a targeted service distribution rule is generated by acquiring the service type and the data characteristic of a subscription theme in a message middleware, an original upper computer is controlled to unsubscribe the corresponding subscription theme according to the service distribution rule, the unsubscribed corresponding subscription theme is pushed to a new upper computer, networking under the Internet of things architecture is completed, and service loads are distributed to the original upper computer and the new upper computer in a balanced mode, so that resource waste is avoided.
Drawings
Fig. 1 is a flowchart of an internet of things networking method in an embodiment of the present invention;
fig. 2 is a schematic diagram of a median networking of an internet of things networking method according to an embodiment of the present invention;
Fig. 3 is a schematic diagram of an upper computer networking of an internet of things networking method in an embodiment of the present invention;
fig. 4 is a schematic diagram of an internet of things networking terminal in an embodiment of the present invention;
Description of the reference numerals:
1. An Internet of things networking terminal; 2. a memory; 3. a processor.
Detailed Description
In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings.
In the Internet of things architecture, a mode of operation of a multi-middle computer and a multi-upper computer networking is adopted, data interaction is carried out between the middle computer and the upper computer through a message middleware, wherein the middle computer is connected with functional equipment and is responsible for data acquisition, and the upper computer is responsible for functions of data processing, data floor storage and the like.
Referring to fig. 1 to 3, an internet of things networking method includes the steps of:
s1, accessing a new upper computer;
s2, acquiring the service type and/or data characteristics of each subscription topic in the message middleware and generating a service distribution rule;
and S3, controlling the original upper computer to unsubscribe the corresponding subscription theme according to the service allocation rule and controlling the new upper computer to access the corresponding subscription theme.
From the above description, the beneficial effects of the invention are as follows: the method comprises the steps of generating a targeted service distribution rule by acquiring the service type and the data characteristic of a subscription topic in a message middleware, controlling an original upper computer to unsubscribe the corresponding subscription topic according to the service distribution rule, pushing the unsubscribed corresponding subscription topic to a new upper computer, completing networking under the architecture of the Internet of things, and uniformly distributing service loads to the original upper computer and the new upper computer, so that resource waste is avoided.
In the embodiment of the present invention, the step S2 specifically includes:
And acquiring the data receiving frequency and the data magnitude of each subscription theme in the message middleware, evaluating the load degree of the original upper computer, and generating a service distribution rule according to the load degree.
According to the description, the data receiving frequency and the data magnitude of each subscription subject in the message middleware are obtained by adopting a load priority principle, the load degree of the original upper computer is estimated based on the data, and if the load of the original upper computer is too high, a service distribution rule is established for the purpose of average load, and the load is balanced to the original upper computer and the new upper computer.
In the embodiment of the present invention, the step S2 specifically includes:
And acquiring the service type of each subscription theme in the message middleware, and performing service matching according to the characteristics of the upper computer to generate a service distribution rule.
From the above description, it can be known that, by adopting a configuration priority principle, the service type of each subscription topic in the message middleware is obtained, service matching is performed according to the characteristics of the new upper computer and the original upper computer, and a service allocation rule is generated, for example, the A topic service matches the characteristics of the new upper computer, and then all the A topics are allocated to the new upper computer; preferably, in the internet of things, according to actual running conditions, a distribution rule of a service theme is preset, and load balancing is performed after networking according to the distribution rule of the preset service theme.
In an embodiment of the present invention, step S1 further includes step S0:
and accessing the new median, and controlling the new median to push data to the message middleware.
As can be seen from the above description, when the service data is too much, the central processing unit is also subjected to networking processing, the central processing unit is newly added, and the new central processing unit is controlled to push data to the message middleware; specifically, after the new central computer is accessed, the upper computer in the architecture is notified, the processing module of the central computer is initialized, the subscription theme is distributed to the new central computer, and the central computer pushes data according to the distributed main body.
In an embodiment of the present invention, the message middleware is EMQX servers.
At present, most of the interaction between the middle computer and the upper computer is performed by adopting http, modbus, socket and other modes, and most of the communication modes have the problems of high performance, safety, realization complexity and the like in the aspect of data interaction. The http communication mode has the problems that data interaction is slow, bidirectional interaction communication between an upper computer and a middle computer is impossible, active pushing is impossible, multicasting is impossible and the like, and the real-time refreshing of the data only depends on timing polling, so that the timeliness is low and the performance is low; although the modbus communication mode solves the problem of equipment communication timeliness, the modbus communication mode needs to occupy hardware resources, faces high complexity of protocol design and high development cost, and is difficult to realize broadcasting capability, for example, in a multi-set equipment networking, wherein certain set of equipment triggers fire safety, and other equipment needs to be informed to trigger safety protection; the socket communication mode can effectively solve the defects of communication modes such as http and modbus, but in a multi-middle position and multi-upper position networking application scene, different sockets need to be connected with each other, each socket needs to be maintained in real time and a plurality of socket communication states, and the implementation difficulty is high. Based on the problems, by introducing EMQX service components and utilizing the characteristics of the service components, the efficient interaction of data between different terminals and the safe transmission of data in a multi-medium-position machine and multi-upper-position machine use scene are realized, and the functions of networking and off-network different terminals at any time along with the subsequent expansion of the service or the increase of the service demand can be completely dealt with, so that the networking difficulty is greatly reduced, the research and development cost is reduced, and the maintenance cost is reduced.
Referring to fig. 4, an internet of things networking terminal includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the steps are completed when the processor executes the computer program.
From the above description, it can be seen that an execution carrier of an internet of things networking method is provided; preferably, the processor further comprises a load balancing module, so as to generate the service allocation rule in the above steps.
The invention provides an Internet of things networking method and a terminal, which are mainly applied to realizing a load balancing and distributing function in the Internet of things networking process, and specifically described below with reference to the embodiment:
referring to fig. 1 to 3, a first embodiment of the present invention is as follows:
An internet of things networking method comprises the following steps:
s1, accessing a new upper computer;
S2, acquiring data receiving frequency and data magnitude of each subscription topic in EMQX servers, evaluating the load degree of the original upper computer, and generating a service distribution rule according to the load degree. And acquiring data receiving frequency and data magnitude of each subscription topic in the EMQX server by adopting a load priority principle, evaluating the load degree of the original upper computer based on the data, and if the load of the original upper computer is too high, establishing a service distribution rule with the aim of average load, and balancing the load to the original upper computer and the new upper computer.
And S3, controlling the original upper computer to unsubscribe the corresponding subscription theme and controlling the new upper computer to access the corresponding subscription theme according to the service allocation rule, completing networking under the Internet of things architecture, and uniformly distributing the service load to the original upper computer and the new upper computer, so that resource waste is avoided.
Referring to fig. 1 to 3, a second embodiment of the present invention is as follows:
An internet of things networking method comprises the following steps:
s1, accessing a new upper computer;
S2, acquiring the service type of each subscription topic in the EMQX server, and performing service matching according to the characteristics of the upper computer to generate a service distribution rule. And acquiring the service type of each subscription topic in the EMQX server by adopting a configuration priority principle, carrying out service matching according to the characteristics of the new upper computer and the original upper computer, generating a service distribution rule, preferably presetting the distribution rule of the service topic according to the actual running condition in the Internet of things, and carrying out load balancing according to the distribution rule of the preset service topic after networking.
And S3, controlling the original upper computer to unsubscribe the corresponding subscription theme and controlling the new upper computer to access the corresponding subscription theme according to the service allocation rule, completing networking under the Internet of things architecture, and uniformly distributing the service load to the original upper computer and the new upper computer, so that resource waste is avoided.
Referring to fig. 1 to 3, a third embodiment of the present invention is as follows:
on the basis of the first embodiment or the second embodiment, the step S1 further includes a step S0:
And accessing the new median, and controlling the new median to push data to the EMQX server. When the service data is too much, networking is carried out on the median, the median is newly added, and the new median is controlled to push data to EMQX servers; specifically, after the new central computer is accessed, the upper computer in the architecture is notified, the processing module of the central computer is initialized, the subscription theme is distributed to the new central computer, and the central computer pushes data according to the distributed main body.
Referring to fig. 4, a fourth embodiment of the present invention is as follows:
the internet of things networking terminal 1 comprises a memory 2, a processor 3 and a computer program stored on the memory 2 and capable of running on the processor 3, wherein the processor 3 comprises a load balancing module and completes the steps in the internet of things networking method in any one of the first to third embodiments.
In summary, according to the networking method and terminal for the internet of things provided by the invention, the service type and the data characteristic of the subscription topic in the message middleware are obtained, the targeted service allocation rule is generated, the original upper computer is controlled to unsubscribe the corresponding subscription topic according to the service allocation rule, the unsubscribed corresponding subscription topic is pushed to the new upper computer, networking under the architecture of the internet of things is completed, and the service load is uniformly distributed to the original upper computer and the new upper computer, so that resource waste is avoided.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.

Claims (10)

1. The networking method of the Internet of things is characterized by comprising the following steps of: the method comprises the following steps:
s1, accessing a new upper computer;
s2, acquiring the service type and/or data characteristics of each subscription topic in the message middleware and generating a service distribution rule;
and S3, controlling the original upper computer to unsubscribe the corresponding subscription theme according to the service allocation rule and controlling the new upper computer to access the corresponding subscription theme.
2. The networking method of the internet of things according to claim 1, wherein: the step S2 specifically comprises the following steps:
And acquiring the data receiving frequency and the data magnitude of each subscription theme in the message middleware, evaluating the load degree of the original upper computer, and generating a service distribution rule according to the load degree.
3. The networking method of the internet of things according to claim 1, wherein: the step S2 specifically comprises the following steps:
And acquiring the service type of each subscription theme in the message middleware, and performing service matching according to the characteristics of the upper computer to generate a service distribution rule.
4. The networking method of the internet of things according to claim 1, wherein: the step S1 further includes a step S0:
and accessing the new median, and controlling the new median to push data to the message middleware.
5. The networking method of the internet of things according to claim 1, wherein: the message middleware is EMQX servers.
6. The networking terminal of the Internet of things is characterized in that: comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor performing the following steps when the computer program is executed:
s1, accessing a new upper computer;
s2, acquiring the service type and/or data characteristics of each subscription topic in the message middleware and generating a service distribution rule;
and S3, controlling the original upper computer to unsubscribe the corresponding subscription theme according to the service allocation rule and controlling the new upper computer to access the corresponding subscription theme.
7. The internet of things networking terminal of claim 6, wherein: the step S2 specifically comprises the following steps:
And acquiring the data receiving frequency and the data magnitude of each subscription theme in the message middleware, evaluating the load degree of the original upper computer, and generating a service distribution rule according to the load degree.
8. The internet of things networking terminal of claim 6, wherein: the step S2 specifically comprises the following steps:
And acquiring the service type of each subscription theme in the message middleware, and performing service matching according to the characteristics of the upper computer to generate a service distribution rule.
9. The internet of things networking terminal of claim 6, wherein: the step S1 further includes a step S0:
and accessing the new median, and controlling the new median to push data to the message middleware.
10. The internet of things networking terminal of claim 6, wherein: the message middleware is EMQX servers.
CN202410316143.7A 2024-03-20 2024-03-20 Internet of things networking method and terminal Active CN117914933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410316143.7A CN117914933B (en) 2024-03-20 2024-03-20 Internet of things networking method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410316143.7A CN117914933B (en) 2024-03-20 2024-03-20 Internet of things networking method and terminal

Publications (2)

Publication Number Publication Date
CN117914933A true CN117914933A (en) 2024-04-19
CN117914933B CN117914933B (en) 2024-06-28

Family

ID=90686216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410316143.7A Active CN117914933B (en) 2024-03-20 2024-03-20 Internet of things networking method and terminal

Country Status (1)

Country Link
CN (1) CN117914933B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155295A (en) * 2006-09-28 2008-04-02 李典 Network flow media data distribution method based on area data buffer
CN105338061A (en) * 2015-09-29 2016-02-17 华中科技大学 Lightweight message oriented middleware realization method and system
CN107295045A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of message treatment method and device
CN108134746A (en) * 2017-12-19 2018-06-08 深圳交控科技有限公司 The processing method and processing device of rail traffic data
US20200260239A1 (en) * 2017-10-30 2020-08-13 Sk Telecom Co., Ltd. Method and apparatus for vehicle-to-vehicle message service
CN112948141A (en) * 2021-02-04 2021-06-11 北京淇瑀信息科技有限公司 Data processing method, device and system based on message middleware
CN113452787A (en) * 2021-06-28 2021-09-28 深圳市新龙鹏科技有限公司 Topic subscription forwarding management method, device, equipment and storage medium based on MQTT

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155295A (en) * 2006-09-28 2008-04-02 李典 Network flow media data distribution method based on area data buffer
CN105338061A (en) * 2015-09-29 2016-02-17 华中科技大学 Lightweight message oriented middleware realization method and system
CN107295045A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of message treatment method and device
US20200260239A1 (en) * 2017-10-30 2020-08-13 Sk Telecom Co., Ltd. Method and apparatus for vehicle-to-vehicle message service
CN108134746A (en) * 2017-12-19 2018-06-08 深圳交控科技有限公司 The processing method and processing device of rail traffic data
CN112948141A (en) * 2021-02-04 2021-06-11 北京淇瑀信息科技有限公司 Data processing method, device and system based on message middleware
CN113452787A (en) * 2021-06-28 2021-09-28 深圳市新龙鹏科技有限公司 Topic subscription forwarding management method, device, equipment and storage medium based on MQTT

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
朱思远: ""基于物联网EDSOA架构的分布式规则引擎的研究与实现"", 《中国优秀硕士学位论文全文数据库(信息科技I辑)》, 15 April 2018 (2018-04-15) *
李洋;: ""基于消息队列遥测传输协议的智能家居消息中间件设计"", 《计算机应用》, no. 1, 30 June 2018 (2018-06-30) *

Also Published As

Publication number Publication date
CN117914933B (en) 2024-06-28

Similar Documents

Publication Publication Date Title
CN111225069B (en) Distributed market data processing system and method
CN111580995A (en) Synchronous communication method and system of distributed cloud platform and Internet of things intelligent terminal based on MQTT asynchronous communication scene
CN113259415B (en) Network message processing method and device and network server
CN101064715A (en) Realization of embedded system based P2P technique
CN112968965A (en) Metadata service method, server and storage medium for NFV network node
CN112104679B (en) Method, apparatus, device and medium for processing hypertext transfer protocol request
CN111124717A (en) Message delivery method, system and computer storage medium
CN117914933B (en) Internet of things networking method and terminal
CN105072145A (en) IOT (Internet of Things) communication method and system
CN110868323A (en) Bandwidth control method, device, equipment and medium
CN115190139A (en) Multi-protocol-based load balancing energy big data acquisition system and method
CN102137158A (en) Method for sharing information equipment resources by utilizing equipment agent system
CN102316138A (en) Client end and load balance method
CN101552735A (en) Pluggable information bus device based on subscribing mode and realizing method thereof
CN104052723A (en) Information processing method and server
CN110891247B (en) Method, system, equipment and medium for client stateless access cluster
Hou et al. Design scheme for data transmission component of electric internet of things management platform
CN105187244A (en) Access management system of digital communication equipment supporting multiple management modes
CN111083237A (en) Cloud mobile phone distribution system and method
CN116755905B (en) Data interaction method, device, equipment and storage medium based on message queue
CN116361038B (en) Acceleration computing management method, system, equipment and storage medium
CN115086425B (en) Message transmission method, device, program product, medium and electronic equipment
CN113271229B (en) Equipment control method and device, storage equipment, safety equipment, switch, router and server
Chen et al. Collaborative Design and Implementation of Inter-provincial and Intra-provincial Power Settlement Business Based on Service Mesh
Wang et al. Optimization of Interactive Demand Response Information Model for Adjustable Load Platform

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