CN107248944A - A kind of performance optimization system of intelligent domestic system controlling bus - Google Patents
A kind of performance optimization system of intelligent domestic system controlling bus Download PDFInfo
- Publication number
- CN107248944A CN107248944A CN201710627699.8A CN201710627699A CN107248944A CN 107248944 A CN107248944 A CN 107248944A CN 201710627699 A CN201710627699 A CN 201710627699A CN 107248944 A CN107248944 A CN 107248944A
- Authority
- CN
- China
- Prior art keywords
- control information
- transmit queue
- information
- module
- queue
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
- H04L12/40013—Details regarding a bus controller
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Telephonic Communication Services (AREA)
- Selective Calling Equipment (AREA)
Abstract
The invention belongs to smart home field, the performance optimization method and system of more specifically to a kind of intelligent domestic system controlling bus.Including controller, the controller is connected by RS485 buses with several terminal modules;The controller includes:Logic core:Control information is produced, and control information is sequentially placed into transmit queue;Transmit queue:Control information is preserved, all information for entering sending module from logic core are arranged successively by transmit queue time sequencing is put into;Sending module:Control information is sent, sending module is directly connected with RS485 buses, when sending module, which detects RS485 buses, is in idle state, take out wall scroll control information from transmit queue head and sent by RS485 buses, management module:Monitoring transmission queue, and the control information in transmit queue is optimized.The beneficial effects of the invention are as follows:The reliability of intelligent domestic system is improved, delay and the loss of system information interaction is reduced, improves the ageing of system control.
Description
Technical field
The invention belongs to smart home field, more specifically to a kind of performance of intelligent domestic system controlling bus is excellent
Change system.
Background technology
Smart home be using house as platform, using comprehensive wiring technology, the network communications technology, security precautions technology, from
The relevant integration of equipments of life staying idle at home is built efficient housing facilities and the management of family's routine matter by dynamicization control technology etc.
System.Smart home allows user to manage household equipment with more easily means, such as, passes through touch-screen, hand-held remote controller, electricity
Words, internet control housed device, can more perform scene operation, make multiple equipment formation linkage;On the other hand, intelligent family
Various equipment in residence can be communicated each other, it is not necessary to which user commander can also run according to different state interactions, so as to give
User brings farthest convenient, efficient, safety and comfortable.
Intelligent domestic system is typically made up of several controllers and terminal module equipment, using controller as core, terminal
Module is node, and RS485 buses can be used to connect networking each other.When system works, controller can pass through data/address bus
Control data is issued into terminal module, expected controlling behavior is completed by terminal module, to complete the control flow of system;Together
When, the information collected by data/address bus can also be issued controller by terminal module, thus complete the monitoring of external environment condition.
Intelligent home control system is when engineering is connected up, it is often necessary to use long-distance control bus, and such as RS485 is total
Line.In order to reduce the electromagnetic interference being subject in bus, usually using relatively low bus transfer baud rate, such as 9600,38400
Deng.But information is transmitted under relatively low baud rate, the speed of transmission data can be limited by larger.It is simultaneously solid based on bus
There are the reasons such as transmission means, request is generally initiated by the intelligent domestic appliance controller, and terminal module replys reply after receiving the request,
Complete primary information interaction.Under some application scenarios, controller needs to send a large amount of requests in a short time to several ends
End module.Now, because bus low rate communication efficiency is limited, request meeting bulk deposition is in the intelligent domestic appliance controller transmission interface
On, the generation for situations such as packet loss can be caused under limiting case.
The content of the invention
For case above, to solve due to information occlusion caused by bus communication inefficiency, caused by bus lead to
A kind of performance optimization system for the intelligent domestic system controlling bus believed the technical problem of inefficiency and provided.
In order to solve the above-mentioned technical problem, the technical scheme is that:A kind of property of intelligent domestic system controlling bus
System, including controller can be optimized, the controller is connected by RS485 buses with several terminal modules;The controller
Including:
Logic core:Control information is produced, and control information is sequentially placed into transmit queue;
Transmit queue:Control information is preserved, it is all to enter the information of sending module by being put into transmit queue from logic core
Time sequencing is arranged successively;
Sending module:Control information is sent, sending module is directly connected with RS485 buses, when sending module is detected
When RS485 buses are in idle state, take out wall scroll control information from transmit queue head and sent by RS485 buses, and
Terminal module return information is waited, single communication interaction flow is then completed;
Management module:Monitoring transmission queue, and the control information in transmit queue is optimized.
Due to the setting of logic core in controller, transmit queue, sending module and management module, pass through to arrange and merge
The control information of same target terminal module is sent in unit interval, interacting between reduction controller and terminal module equipment is secondary
Number, the data message amount of increase single interaction, effectively improves the performance of Intelligent housing bus.
Preferably, the management module is when control information enters transmit queue, it is established that the control information and the control
The annexation that information processed is belonged between the neighbor information of a terminal module, makes management module one by queue head
Information finds adjacent next message for belonging to a terminal module.
The control information for being sent to a terminal module jointly is established a connection successively, and annexation is only positioned at
Adjacent two are sent between the control information of a terminal module jointly, and the optimization action after being is prepared.
Preferably, management module detects the information content of transmit queue, if the informational capacity in transmit queue is less than excellent
When changing threshold number, acted without optimization, if the informational capacity of transmit queue exceedes optimization threshold number, starting guide stream
Journey, optimization threshold number depends on the load capacity of RS485 buses.
During so that RS485 buses are in load capacity, optimization is not selected to act, only when more than load capacity,
Optimize action so that the efficiency of optimization action reaches maximization.
Preferably, management module takes out the control positioned at message queue head with Fixed Time Interval monitoring transmission queue
Information processed, and transmit queue is from first to last scanned successively, with other control information in the control information and transmit queue of taking-up
It is compared, if the time interval of control information of the control information in currently transmitted queue with taking out is less than or equal to T time
When, starting guide flow;If the time interval of control information of the control information with taking out in currently transmitted queue is more than T time
When, stop Optimizing Flow.
By control time T, management module is set only to be optimized to the control information in T time, time T can voluntarily be set
Put so that user's according to circumstances sets itself.
Preferably, management module records ought for the previous period in interior transmit queue information increase or reduction range value
Dynamically to adjust T value, if information increases in transmit queue, the increase of T values, if information reduces in transmit queue, T values subtract
It is small, and range value is bigger, and the amplitude of fluctuation of T values is bigger.
Management module dynamically adjusts T's according to the range value when information growth or reduction in the transmit queue in the last period
Value so that dynamic changes T values with the information content in transmit queue all the time, makes transmit queue be carried out when needing most optimization
Optimization.
Preferably, during the management module starting guide flow, each end is sent in management module statistics transmit queue
The quantity of the control information of end module, it is determined that the terminal module optimized is needed, and since the head of transmit queue successively backward
Find until find first to should terminal module message.
Statistics is sent to the quantity of the control information of each terminal module, according to actual conditions, selects to more than a fixed number
The terminal module of amount optimizes action, or also can because of now terminal module importance, and determine this terminal module, and
Selection is optimized to this terminal module, finds first control information of this terminal module.
Preferably, the management module determines after the terminal module that needs optimize that starting guide flow is right with first
Should the message of terminal module be starting, when look for should terminal module next message when, by current control information
Comprising content be incorporated in next control information, while current control information is removed from transmit queue, and circulate successively,
Untill finding last message of the terminal module.
Determine after the terminal module for needing to optimize, the control information of same terminal module will be jointly sent to, according to
Its annexation is optimized, since first control information, is successively incorporated to down the content included in current control information
In one control information, while current control information is removed from transmit queue, and circulate successively, until finding the terminal mould
Untill last message of block, the number of control information is reduced, and then reduce the friendship between controller and terminal module equipment
Mutual number of times, the data message amount of increase single interaction.
The beneficial effects of the invention are as follows:The reliability of intelligent domestic system is improved, prolonging for system information interaction is reduced
Slow and loss, improves the ageing of system control.
Brief description of the drawings
Fig. 1 is controller of the present invention and terminal module annexation figure;
Fig. 2 is the internal structure graph of a relation of controller of the present invention.
Embodiment
The embodiment to the present invention is described further below in conjunction with the accompanying drawings.Herein it should be noted that for
The explanation of these embodiments is used to help understand the present invention, but does not constitute limitation of the invention.In addition, disclosed below
As long as each of the invention embodiment in involved technical characteristic do not constitute conflict each other and can just be mutually combined.
A kind of performance optimization system of intelligent domestic system controlling bus as shown in Figure 1, 2, including controller, the control
Device processed is connected by RS485 buses with several terminal modules;The controller includes:
Logic core:Control information is produced, and control information is sequentially placed into transmit queue;
Transmit queue:Control information is preserved, it is all to enter the information of sending module by being put into transmit queue from logic core
Time sequencing is arranged successively;
Sending module:Control information is sent, sending module is directly connected with RS485 buses, when sending module is detected
When RS485 buses are in idle state, take out wall scroll control information from transmit queue head and sent by RS485 buses, and
Terminal module return information is waited, single communication interaction flow is then completed;
Management module:Monitoring transmission queue, and the control information in transmit queue is optimized.
Due to the setting of logic core in controller, transmit queue, sending module and management module, pass through to arrange and merge
The control information of same target terminal module is sent in unit interval, interacting between reduction controller and terminal module equipment is secondary
Number, the data message amount of increase single interaction, effectively improves the performance of Intelligent housing bus.
Preferably, the management module is when control information enters transmit queue, it is established that the control information and the control
The annexation that information processed is belonged between the neighbor information of a terminal module, makes management module one by queue head
Information finds adjacent next message for belonging to a terminal module.
The control information for being sent to a terminal module jointly is established a connection successively, and annexation is only positioned at
Adjacent two are sent between the control information of a terminal module jointly, and the optimization action after being is prepared.
Preferably, management module detects the information content of transmit queue, if the informational capacity in transmit queue is less than excellent
When changing threshold number, acted without optimization, if the informational capacity of transmit queue exceedes optimization threshold number, starting guide stream
Journey, optimization threshold number depends on the load capacity of RS485 buses.
During so that RS485 buses are in load capacity, optimization is not selected to act, only when more than load capacity,
Optimize action so that the efficiency of optimization action reaches maximization.
Preferably, management module takes out the control positioned at message queue head with Fixed Time Interval monitoring transmission queue
Information processed, and transmit queue is from first to last scanned successively, with other control information in the control information and transmit queue of taking-up
It is compared, if the time interval of control information of the control information in currently transmitted queue with taking out is less than or equal to T time
When, starting guide flow;If the time interval of control information of the control information with taking out in currently transmitted queue is more than T time
When, stop Optimizing Flow.
By control time T, management module is set only to be optimized to the control information in T time, time T can voluntarily be set
Put so that user's according to circumstances sets itself.
Preferably, management module records (ought be represented for the previous period with △ t) in transmit queue in information increase
Or the range value of reduction dynamically adjusts T value, if information increases in transmit queue, T values increase, if information in transmit queue
Reduce, then T values reduce, and range value is bigger, and the amplitude of fluctuation of T values is bigger.
Management module is according to information in the transmit queue in a period of time △ t (constant a period of time can freely set)
Increase or the range value of reduction dynamically adjusts T value so that T values dynamically change with the information content in transmit queue all the time
Become, transmit queue is optimized when needing most optimization.
Preferably, during the management module starting guide flow, each end is sent in management module statistics transmit queue
The quantity of the control information of end module, it is determined that the terminal module optimized is needed, and since the head of transmit queue successively backward
Find until find first to should terminal module message.
Statistics is sent to the quantity of the control information of each terminal module, according to actual conditions, selects to more than a fixed number
The terminal module of amount optimizes action, or also can because of now terminal module importance, and determine this terminal module, and
Selection is optimized to this terminal module, finds first control information of this terminal module.
Preferably, the management module determines after the terminal module that needs optimize that starting guide flow is right with first
Should the message of terminal module be starting, when look for should terminal module next message when, by current control information
Comprising content be incorporated in next control information, while current control information is removed from transmit queue, and circulate successively,
Untill finding last message of the terminal module.
Determine after the terminal module for needing to optimize, the control information of same terminal module will be jointly sent to, according to
Its annexation is optimized, since first control information, is successively incorporated to down the content included in current control information
In one control information, while current control information is removed from transmit queue, and circulate successively, until finding the terminal mould
Untill last message of block, the number of control information is reduced, and then reduce the friendship between controller and terminal module equipment
Mutual number of times, the data message amount of increase single interaction.
The beneficial effects of the invention are as follows:The reliability of intelligent domestic system is improved, prolonging for system information interaction is reduced
Slow and loss, improves the ageing of system control.
Embodiments of the present invention are explained in detail above in association with accompanying drawing, but the invention is not restricted to described implementation
Mode.For a person skilled in the art, in the case where not departing from the principle of the invention and spirit, to these embodiments
A variety of change, modification, replacement and modification are carried out, are still fallen within protection scope of the present invention.
Claims (7)
1. a kind of performance optimization system of intelligent domestic system controlling bus, it is characterized in that:Including controller, the controller leads to
RS485 buses are crossed with several terminal modules to be connected;The controller includes:
Logic core:Control information is produced, and control information is sequentially placed into transmit queue;
Transmit queue:Control information is preserved, it is all to enter the information of sending module by being put into the transmit queue time from logic core
Order is arranged successively;
Sending module:Control information is sent, sending module is directly connected with RS485 buses, to detect RS485 total when sending module
When line is in idle state, takes out wall scroll control information from transmit queue head and sent by RS485 buses, and wait terminal
Module return information, then completes single communication interaction flow;
Management module:Monitoring transmission queue, and the control information in transmit queue is optimized.
2. a kind of performance optimization system of intelligent domestic system controlling bus according to claim 1, it is characterized in that:It is described
Management module is when control information enters transmit queue, it is established that the control information belongs to a terminal mould with the control information
Annexation between the neighbor information of block, makes management module be found by an information of queue head adjacent next same
Belong to the message of a terminal module.
3. a kind of performance optimization system of intelligent domestic system controlling bus according to claim 1, it is characterized in that:Management
Module detects the information content of transmit queue, if the informational capacity in transmit queue is less than optimization threshold number, without excellent
Change is acted, if the informational capacity of transmit queue exceedes optimization threshold number, and starting guide flow, optimization threshold number is depended on
The load capacity of RS485 buses.
4. a kind of performance optimization system of intelligent domestic system controlling bus according to claim 1, it is characterized in that:Management
Module takes out the control information positioned at message queue head with Fixed Time Interval monitoring transmission queue, and from first to last successively
Transmit queue is scanned, is compared with other control information in the control information and transmit queue of taking-up, if currently transmitted team
When the time interval of control information of the control information with taking out in row is less than or equal to T time, starting guide flow;If current
When the time interval of control information of the control information with taking out in transmit queue is more than T time, stop Optimizing Flow.
5. a kind of performance optimization system of intelligent domestic system controlling bus according to claim 4, it is characterized in that:Management
Module record ought information increases in interior transmit queue for the previous period or the range value of reduction dynamically adjusts T value, if hair
Information in queue is sent to increase, then T values increase, if information reduces in transmit queue, T values reduce, and range value is bigger, T values
Amplitude of fluctuation it is bigger.
6. a kind of performance optimization system of intelligent domestic system controlling bus according to claim 2, it is characterized in that:It is described
During management module starting guide flow, the number of the control information of each terminal module is sent in management module statistics transmit queue
Amount, it is determined that needing the terminal module optimized, and finds right up to finding first backward successively since the head of transmit queue
Should terminal module message.
7. a kind of performance optimization system of intelligent domestic system controlling bus according to claim 6, it is characterized in that:It is described
Management module determine need optimize terminal module after, starting guide flow, using first to should terminal module message as
Starting, when look for should terminal module next message when, the content included in current control information is incorporated to next
In control information, while current control information is removed from transmit queue, and circulate successively, until finding the terminal module
Untill last message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710627699.8A CN107248944B (en) | 2017-07-28 | 2017-07-28 | Performance optimization system of intelligent household system control bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710627699.8A CN107248944B (en) | 2017-07-28 | 2017-07-28 | Performance optimization system of intelligent household system control bus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107248944A true CN107248944A (en) | 2017-10-13 |
CN107248944B CN107248944B (en) | 2020-05-12 |
Family
ID=60012479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710627699.8A Active CN107248944B (en) | 2017-07-28 | 2017-07-28 | Performance optimization system of intelligent household system control bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107248944B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113114583A (en) * | 2021-04-12 | 2021-07-13 | 深圳市欧瑞博科技股份有限公司 | Intelligent gateway control method and device and computer readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101859134A (en) * | 2009-04-09 | 2010-10-13 | 广州市聚晖电子科技有限公司 | Intelligent home appliance remote control system and method |
CN102195997A (en) * | 2010-03-12 | 2011-09-21 | 陈海韵 | Smart home monitoring system based on wireless fidelity (WIFI) and hyper text transport protocol (http) technologies and running method thereof |
CN102904943A (en) * | 2012-09-28 | 2013-01-30 | 无锡江南计算技术研究所 | Cluster computing system hybrid communication method based on embedded processor memory interface |
EP2943040A1 (en) * | 2014-05-09 | 2015-11-11 | Samsung Electronics Co., Ltd | Apparatus and method for auto link change in wireless communication device |
CN105159102A (en) * | 2015-07-30 | 2015-12-16 | 北京京东尚科信息技术有限公司 | Smart home appliance, smart home appliance system and method thereof |
CN106027341A (en) * | 2016-06-21 | 2016-10-12 | 杭州古北电子科技有限公司 | Control method of smart home device |
CN106713018A (en) * | 2016-12-08 | 2017-05-24 | 中国电信股份有限公司物联网分公司 | Message queue business data scheduling method and message queue implementation method |
-
2017
- 2017-07-28 CN CN201710627699.8A patent/CN107248944B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101859134A (en) * | 2009-04-09 | 2010-10-13 | 广州市聚晖电子科技有限公司 | Intelligent home appliance remote control system and method |
CN102195997A (en) * | 2010-03-12 | 2011-09-21 | 陈海韵 | Smart home monitoring system based on wireless fidelity (WIFI) and hyper text transport protocol (http) technologies and running method thereof |
CN102904943A (en) * | 2012-09-28 | 2013-01-30 | 无锡江南计算技术研究所 | Cluster computing system hybrid communication method based on embedded processor memory interface |
EP2943040A1 (en) * | 2014-05-09 | 2015-11-11 | Samsung Electronics Co., Ltd | Apparatus and method for auto link change in wireless communication device |
CN105159102A (en) * | 2015-07-30 | 2015-12-16 | 北京京东尚科信息技术有限公司 | Smart home appliance, smart home appliance system and method thereof |
CN106027341A (en) * | 2016-06-21 | 2016-10-12 | 杭州古北电子科技有限公司 | Control method of smart home device |
CN106713018A (en) * | 2016-12-08 | 2017-05-24 | 中国电信股份有限公司物联网分公司 | Message queue business data scheduling method and message queue implementation method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113114583A (en) * | 2021-04-12 | 2021-07-13 | 深圳市欧瑞博科技股份有限公司 | Intelligent gateway control method and device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107248944B (en) | 2020-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112332889B (en) | Data transmission method and device, power line communication network and power system | |
CN203086496U (en) | Intelligent household system | |
CN104247284B (en) | Method for visiting channels in g3 power line communications networks | |
CN106850271B (en) | Power distribution master station and terminal communication network fault studying and judging method | |
CN102868598A (en) | Control device and control method | |
EP3142293B1 (en) | Reverse power supply management method, apparatus and system | |
CN112902294B (en) | Capacity-increase-free electric heating control method and system | |
CN103997530A (en) | Communication system of elevator internet of things and data sending method | |
CN107659456A (en) | A kind of data collision transmission method based on RS485 communications | |
CN107248944A (en) | A kind of performance optimization system of intelligent domestic system controlling bus | |
CN112880001B (en) | Plug-and-play capacity-increasing-free electric heating control method and system | |
CN109120535B (en) | Optical communication network system of self-organizing topology and topology self-organizing method thereof | |
CN213126062U (en) | Intelligent wireless router and intelligent home system | |
CN111800823B (en) | Priority-based power wireless terminal data transmission method and device | |
CN109005093B (en) | Intelligent household appliance energy-saving method and system based on remote wireless control | |
CN202976515U (en) | Parking lot parking stall monitoring system | |
CN202856760U (en) | Communication manager with ring network function | |
CN106878447B (en) | Data acquisition system based on ZigBee communication | |
CN211457372U (en) | Intelligent well cluster field communication system | |
CN103747510A (en) | Data transmission method and system for reducing power consumption of WIFI (wireless fidelity) module | |
CN212933292U (en) | Remote supervisory system based on Internet of things | |
CN103457865A (en) | Communication device and multi-protocol multichannel hierarchical data transmission method | |
CN211744481U (en) | Communication management device for supporting short message sending, on-demand and issuing control | |
CN117743446B (en) | Data conversion method and system based on multi-data transmission link aggregation | |
CN209250638U (en) | End node devices, relay controller and wireless communication network |
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 |