Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

High concurrent communication method and system using Proactor mode for intelligent lighting system

A lighting system and communication method technology, applied in transmission systems, inter-program communication, instruments, etc., can solve problems such as decreased communication efficiency, poor maintainability, and decreased select scanning efficiency, and achieves clear and concise calling, short development cycle, The effect of efficient communication

Active Publication Date: 2019-03-19
NARI TECH CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The TPC model is a stable and monitorable communication model, usually creating an independent process for each client, but as the system scale increases, when the number of connections exceeds one thousand, due to the excessive number of processes, the management Expensive to monitor and monitor, poor maintainability
The operating system kernel spends a lot of time context switching, managing and scheduling these threads takes more time than the thread execution itself
[0008] The select model is limited by the maximum number of open descriptors (FD_SETSIZE) of the process. The linux2.6 version is 1024. For tens of thousands of user connection requests, even if the parameters are modified to forcibly increase FD_SETSIZE, the efficiency of select scanning drops rapidly, resulting in Decreased communication efficiency
[0009] Multiplexing technologies such as Poll and epoll models are not efficient in processing control information when a single process handles a large number of Tcp connections, and often require multiple threads, which increases the complexity of system management and active-standby redundancy.
[0010] In some landscape lighting control systems, the communication networks of the existing building access systems are not the same, there are optical fiber dedicated networks, public networks, 4G wireless networks, etc., and the communication status and stability of various networks are also very different, such as The stability and efficiency of the fiber-optic private network are very high, the public network is affected by the communication peak, the link stability of the 4G wireless network is not high, and the communication link is frequently disconnected
The interface communication technology of the traditional monitoring system is not suitable for such a complex network environment

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • High concurrent communication method and system using Proactor mode for intelligent lighting system
  • High concurrent communication method and system using Proactor mode for intelligent lighting system
  • High concurrent communication method and system using Proactor mode for intelligent lighting system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The present invention will be further described below in conjunction with the accompanying drawings. The following examples are only used to illustrate the technical solution of the present invention more clearly, but not to limit the protection scope of the present invention.

[0041] A high-concurrency communication method of the Proactor mode in a smart lighting system, establishes a communication class CmultiServer based on the kernel event notification mechanism Proactor mode, and the communication class CmultiServer encapsulates unified member variables and member methods for different operating systems; based on asynchronous, event-driven and callback The function provides an event loop and an I / O-based callback mechanism; the communication class CmultiServer is based on the IOCP thread and epoll thread that use the thread pool to handle the asynchronous I / O request mechanism.

[0042] The communication algorithm library is provided in the form of a C++ dynamic l...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a high concurrent communication method using a Proactor mode for an intelligent lighting system. The method comprises the steps of: establishing a communication class CmultiServer based on a kernel event notification mechanism Proactor mode, and the communication class CmultiServer encapsulating unified member variables and member methods; providing, according to asynchronous, event driven and callback functions, an event loop and an I / O based callback mechanism; providing an event loop and an I / O-based callback mechanism by using the asynchronous, the event-driven andthe programming style of the callback functions; the communication class encapsulating unified member variables and member methods for different operating systems; and logically sorting each device, designing a hash storage manner, and storing data efficiently and accurately. According to the high concurrent communication method and the system using the Proactor mode for the intelligent lighting system, Tcp connections can be established for thousands of data terminals; the status is maintained, the data is adopted and the control commands are issued to achieve high concurrent communication using Proactor mode of the interface communication layer of landscape lighting systems.

Description

technical field [0001] The invention relates to the field of landscape lighting control systems and is applied to landscape lighting systems. Background technique [0002] With the development of urbanization and the construction of regional lighting such as landmark buildings and urban landscape belts, the urban landscape lighting control system has developed rapidly, from the lighting control of a single building to the integrated lighting control of the park. The integrated control of landscape lighting in natural scenery belts (such as along the Pearl River) is also under construction. The traditional lighting system facing a single building cannot meet the needs. The new landscape lighting system combines three-remote power distribution monitoring and landscape lighting control into one. It adopts a three-layer control architecture of master control, sub-control, and equipment to collect all information in the landscape area in real time. Building lighting and energy c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06G06F9/54
CPCG06F9/542G06F9/545H04L69/162H04L69/163
Inventor 鹿中龙徐超华寅飞孟凡辉郝明明
Owner NARI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products