CN110225005A - A kind of smart machine control method and system based on Netty network frame - Google Patents

A kind of smart machine control method and system based on Netty network frame Download PDF

Info

Publication number
CN110225005A
CN110225005A CN201910445346.5A CN201910445346A CN110225005A CN 110225005 A CN110225005 A CN 110225005A CN 201910445346 A CN201910445346 A CN 201910445346A CN 110225005 A CN110225005 A CN 110225005A
Authority
CN
China
Prior art keywords
message
rabbitmq
gateway
queue
control
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.)
Pending
Application number
CN201910445346.5A
Other languages
Chinese (zh)
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.)
Guangdong Zhuo Zhuo Technology Co Ltd
Original Assignee
Guangdong Zhuo Zhuo 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 Guangdong Zhuo Zhuo Technology Co Ltd filed Critical Guangdong Zhuo Zhuo Technology Co Ltd
Priority to CN201910445346.5A priority Critical patent/CN110225005A/en
Publication of CN110225005A publication Critical patent/CN110225005A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/30Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention proposes a kind of smart machine control method and system based on Netty network frame, and this method is: building socket network connection by netty network frame, and monitors customized queue in rabbitMQ;If that is, customized queue can then trigger monitor, and recall corresponding monitor after judging according to obtained content it was found that receiving the message of user's transmission in queue;Corresponding command parameter is parsed by monitor, control command is then generated and is sent in the queue of rabbitMQ, the queue is then monitored by gateway;Gateway has listened to message and can then parse and execute the control command.It includes the Cloud Server of rabbitMQ message-oriented middleware, control device, gateway, several smart machines and the application above method to the system, and the Cloud Server realizes the monitoring to custom queuing in rabbitMQ message-oriented middleware;The control device realizes the connection with user terminal or communication device, the gateway bridge joint control device and smart machine by the rabbitMQ message-oriented middleware.

Description

A kind of smart machine control method and system based on Netty network frame
Technical field
The present invention relates to a kind of smart machine control methods and system based on Netty network frame.
Background technique
Smart machine controls network and provides technical foundation for the networking of equipment and close, long-range control, but existing intelligence is set Standby control program is mostly attached by TCP network, and control mode is provided in the form of interface, and gateway links and with number The unstable situation of bigger delay and link is had according to reporting, if message queue not being used to send and receive message, The control command of user, which is sent to, realizes that a whole process for control can consume very more time, controls the success rate ratio of equipment Lower, user experience is poor, the project plan comparison trouble of equipment information management.
Summary of the invention
Defect exists in the prior art to overcome, the present invention proposes a kind of smart machine control based on Netty network frame Method and system processed, particular technique content are as follows:
A kind of smart machine control method based on Netty network frame comprising have:
Step 1 builds socket network connection by netty network frame, and monitors customized queue in rabbitMQ;
Step 2, if receiving the message of user's transmission in discovery queue, i.e., customized queue can then trigger monitor, And corresponding monitor is recalled after judging according to obtained content;
Step 3 parses corresponding command parameter by monitor, then generates control command and is sent in the queue of rabbitMQ, Then the queue is monitored by gateway;Gateway has listened to message and can then parse and execute the control command;
The rabbitMQ is message-oriented middleware, i.e. advanced message queue protocol AMQP.
A kind of Control System of Intelligent based on Netty network frame comprising rabbitMQ message-oriented middleware, middle control Device, gateway, several smart machines and application claim 1 the method Cloud Server, the Cloud Server have pair The interface of rabbitMQ message-oriented middleware is connect to realize the monitoring to custom queuing in rabbitMQ message-oriented middleware;In described Control device realizes the connection with user terminal or communication device by the rabbitMQ message-oriented middleware, controls in the gateway bridge joint Device and smart machine;The Cloud Server, rabbitMQ message-oriented middleware, control device and gateway pass through netty network frame Frame builds socket network connection.
The Cloud Server has equipment information management module and device control module, and the equipment information management module is used It is managed in the facility information to the smart machine under gateway;The device control module is for executing message sink and hair It send, the parsing of control command is forwarded to gateway, to realize the control to smart machine.
The beneficial effects of the present invention are: setting up an Intelligent control center by message center of rabbitMQ, opened all Pass all gathers, and according to the wish of user, very easily manipulates various household equipments.Netty network frame and rebbitMQ Combination reduce the delay that message transmission and data report, by the information of the sub- equipment under cloud server management gateway, And the function (such as: addition scene, task, infrared) of gateway is controlled or modified by cloud.
Detailed description of the invention
Fig. 1 is the configuration diagram of the Control System of Intelligent of the invention based on Netty network frame.
Specific embodiment
As follows in conjunction with attached drawing 1, application scheme is further described:
In this example, Androidapp is user role, and feibi is the Cloud Server of the application, and rabbitmq is message-oriented middleware, Gateway, that is, gateway;
A kind of Control System of Intelligent based on Netty network frame comprising rabbitMQ message-oriented middleware, middle control dress It sets, gateway, several smart machines and Cloud Server, the Cloud Server have the interface of docking rabbitMQ message-oriented middleware To realize the monitoring to custom queuing in rabbitMQ message-oriented middleware;The control device passes through the rabbitMQ message The connection of Middleware implementation and user terminal or communication device, the gateway bridge joint control device and smart machine;The cloud service Device, rabbitMQ message-oriented middleware, control device and gateway build socket network connection by netty network frame.It is described Cloud Server has equipment information management module and device control module, and the equipment information management module is used under gateway The facility information of smart machine is managed;The device control module is for executing message sink and transmission, by control command Parsing be forwarded to gateway, to realize control to smart machine.
The Cloud Server applies the smart machine control method based on Netty network frame comprising has:
Step 1 builds socket network connection by netty network frame, and monitors customized queue in rabbitMQ;
Step 2, if receiving the message of user's transmission in discovery queue, i.e., customized queue can then trigger monitor, And corresponding monitor is recalled after judging according to obtained content;
Step 3 parses corresponding command parameter by monitor, then generates control command and is sent in the queue of rabbitMQ, Then the queue is monitored by gateway;Gateway has listened to message and can then parse and execute the control command;Such as: switch control, The monitor of switch control can then be called later by being resolved to order, then generate the order of switch control, sent life and arrived In the corresponding queue of rabbitMQ, gateway listen in queue have control command will resolve command, thus according to order control Smart machine under gateway.
The application network communication has used Netty network frame, and Netty is frame of being increased income by the java that JBOSS is provided Frame.Netty provides asynchronous, event driven web application frame and tool, quickly to develop high-performance, highly reliable The network server and client-side program of property.Netty is a client based on NIO, Server Programming frame, is used Netty may insure you quickly and simply develop a network application, such as realize the client of certain agreement, server-side Using.Netty is equivalent to the simplified and streaming programming development process of network application, such as: based on TCP's and UDP Socket service development.Message transmission has used rabbitMQ;This is the open source for realizing advanced message queue protocol (AMQP) Message broker software (also known as message-oriented middleware).
It is that above-mentioned preferred embodiment should be regarded as application scheme embodiment for example, all with application scheme thunder Same, approximate or technology deduction, replacement, improvement for making based on this etc., are regarded as the protection scope of this patent.

Claims (3)

1. a kind of smart machine control method based on Netty network frame, it is characterised in that: include
Step 1 builds socket network connection by netty network frame, and monitors customized queue in rabbitMQ;
Step 2, if receiving the message of user's transmission in discovery queue, i.e., customized queue can then trigger monitor, And corresponding monitor is recalled after judging according to obtained content;
Step 3 parses corresponding command parameter by monitor, then generates control command and is sent in the queue of rabbitMQ, Then the queue is monitored by gateway;Gateway has listened to message and can then parse and execute the control command;
The rabbitMQ is message-oriented middleware, i.e. advanced message queue protocol AMQP.
2. a kind of Control System of Intelligent based on Netty network frame, it is characterised in that: among rabbitMQ message Part, control device, gateway, several smart machines and the Cloud Server using claim 1 the method, the Cloud Server Interface with docking rabbitMQ message-oriented middleware is to realize the monitoring to custom queuing in rabbitMQ message-oriented middleware; The control device realizes the connection with user terminal or communication device, the gateway bridge by the rabbitMQ message-oriented middleware Connect control device and smart machine;The Cloud Server, rabbitMQ message-oriented middleware, control device and gateway pass through netty Network frame builds socket network connection.
3. the Control System of Intelligent according to claim 2 based on Netty network frame, it is characterised in that: described Cloud Server has equipment information management module and device control module, and the equipment information management module is used under gateway The facility information of smart machine is managed;The device control module is for executing message sink and transmission, by control command Parsing be forwarded to gateway, to realize control to smart machine.
CN201910445346.5A 2019-05-27 2019-05-27 A kind of smart machine control method and system based on Netty network frame Pending CN110225005A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910445346.5A CN110225005A (en) 2019-05-27 2019-05-27 A kind of smart machine control method and system based on Netty network frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910445346.5A CN110225005A (en) 2019-05-27 2019-05-27 A kind of smart machine control method and system based on Netty network frame

Publications (1)

Publication Number Publication Date
CN110225005A true CN110225005A (en) 2019-09-10

Family

ID=67818045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910445346.5A Pending CN110225005A (en) 2019-05-27 2019-05-27 A kind of smart machine control method and system based on Netty network frame

Country Status (1)

Country Link
CN (1) CN110225005A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586115A (en) * 2020-04-26 2020-08-25 特瓦特能源科技有限公司 Data transmission system and method
CN113411250A (en) * 2021-06-03 2021-09-17 重庆锐云科技有限公司 Real-time message processing method, system, equipment and storage medium
CN114815707A (en) * 2022-05-17 2022-07-29 重庆伏特猫科技有限公司 Intelligent device control method and system based on Netty network framework
CN115022375A (en) * 2022-06-28 2022-09-06 雷沃工程机械集团有限公司 Excavator Tbox equipment downlink instruction compiling method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859134A (en) * 2009-04-09 2010-10-13 广州市聚晖电子科技有限公司 Intelligent home appliance remote control system and method
CN103309752A (en) * 2013-05-22 2013-09-18 北京奇虎科技有限公司 Method and system for communication between components and communication processor
CN106933589A (en) * 2017-03-13 2017-07-07 车智互联(北京)科技有限公司 A kind of message queue component based on configuration and its integrated method
CN106992908A (en) * 2017-03-31 2017-07-28 上海斐讯数据通信技术有限公司 A kind of intelligent household management system and its management method
CN108989157A (en) * 2017-06-05 2018-12-11 北京京东尚科信息技术有限公司 Method, apparatus for smart machine control
CN109039881A (en) * 2018-09-05 2018-12-18 苏州蓝蜘蛛智能科技有限公司 A kind of intelligent power distribution monitoring management system and information-pushing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859134A (en) * 2009-04-09 2010-10-13 广州市聚晖电子科技有限公司 Intelligent home appliance remote control system and method
CN103309752A (en) * 2013-05-22 2013-09-18 北京奇虎科技有限公司 Method and system for communication between components and communication processor
CN106933589A (en) * 2017-03-13 2017-07-07 车智互联(北京)科技有限公司 A kind of message queue component based on configuration and its integrated method
CN106992908A (en) * 2017-03-31 2017-07-28 上海斐讯数据通信技术有限公司 A kind of intelligent household management system and its management method
CN108989157A (en) * 2017-06-05 2018-12-11 北京京东尚科信息技术有限公司 Method, apparatus for smart machine control
CN109039881A (en) * 2018-09-05 2018-12-18 苏州蓝蜘蛛智能科技有限公司 A kind of intelligent power distribution monitoring management system and information-pushing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曾一昕: "《社交网络服务》", 31 March 2013, 武汉大学出版社 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586115A (en) * 2020-04-26 2020-08-25 特瓦特能源科技有限公司 Data transmission system and method
CN113411250A (en) * 2021-06-03 2021-09-17 重庆锐云科技有限公司 Real-time message processing method, system, equipment and storage medium
CN113411250B (en) * 2021-06-03 2023-01-24 重庆锐云科技有限公司 Real-time message processing method, system, equipment and storage medium
CN114815707A (en) * 2022-05-17 2022-07-29 重庆伏特猫科技有限公司 Intelligent device control method and system based on Netty network framework
CN115022375A (en) * 2022-06-28 2022-09-06 雷沃工程机械集团有限公司 Excavator Tbox equipment downlink instruction compiling method

Similar Documents

Publication Publication Date Title
CN110225005A (en) A kind of smart machine control method and system based on Netty network frame
CN111586599B (en) Network auxiliary information providing method and related equipment
CN114567620B (en) Digital model and physical equipment matching system and method based on MQTT protocol
CN109327493A (en) A kind of remote medical monitoring system based on cloud and monitoring method
CN105610888A (en) Method of using socket to push message based on Android and system thereof
AU2014323952B2 (en) Method, device, and storage medium for deep packet inspection control
CN104009938A (en) Method and system for long connections based on router level
CN108833565B (en) Method and device for monitoring server, server and storage medium
CN103002049A (en) Network transmission system of large quantities of data
CN113572853A (en) Method and system for forming Internet of things cloud platform based on MQTT
CN104010001A (en) Method and system for carrying out connection communication on same networking requests in mobile terminal
CN113992646B (en) Internet of things equipment protocol integration method and system
CN114979133B (en) Deployment method and device for converged communication cloud platform
CN112019622A (en) Flow control method, system, equipment and readable storage medium
CN105072148B (en) Method and device for establishing connection with terminal
Tripathi et al. Broker clustering enabled lightweight communication in iot using mqtt
CN102332989A (en) Method for sending configuration information and service boards
CN106130787B (en) Service processing system based on software defined network
CN102238571B (en) Apparatus of Internet of Things machine to machine/man (M2M) business processing, system and method thereof
CN110958291B (en) Industrial vehicle data transmission system and method
CN103475506B (en) Multiple equipment management control method and system
CN116319729A (en) Robot control method, device, server, system and storage medium
CN112800604B (en) Simulation method, device, equipment and storage medium applied to industrial detection
CN112714153B (en) Processing method and device compatible with multiple TCPs (Transmission control protocol) based on Internet of things system
CN114143903A (en) Method, device, equipment and medium for configuring network slice PDU session

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190910