CN107248944B - Performance optimization system of intelligent household system control bus - Google Patents

Performance optimization system of intelligent household system control bus Download PDF

Info

Publication number
CN107248944B
CN107248944B CN201710627699.8A CN201710627699A CN107248944B CN 107248944 B CN107248944 B CN 107248944B CN 201710627699 A CN201710627699 A CN 201710627699A CN 107248944 B CN107248944 B CN 107248944B
Authority
CN
China
Prior art keywords
control information
information
sending
queue
sending 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.)
Active
Application number
CN201710627699.8A
Other languages
Chinese (zh)
Other versions
CN107248944A (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.)
Hangzhou Congpu Intelligent Technology Co ltd
Original Assignee
Hangzhou Congpu Intelligent 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 Hangzhou Congpu Intelligent Technology Co ltd filed Critical Hangzhou Congpu Intelligent Technology Co ltd
Priority to CN201710627699.8A priority Critical patent/CN107248944B/en
Publication of CN107248944A publication Critical patent/CN107248944A/en
Application granted granted Critical
Publication of CN107248944B publication Critical patent/CN107248944B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention belongs to the field of intelligent home furnishing, and particularly relates to a performance optimization system of an intelligent home furnishing system control bus. The system comprises a controller, wherein the controller is connected with a plurality of terminal modules through an RS485 bus; the controller includes: a logic core: generating control information, and sequentially putting the control information into a sending queue; sending a queue: storing control information, and arranging all information entering a sending module from a logic core according to the time sequence of putting the information into a sending queue; a sending module: control information is sent, a sending module is directly connected with an RS485 bus, when the sending module detects that the RS485 bus is in an idle state, a single piece of control information is taken out from the head of a sending queue and sent out through the RS485 bus, and a management module: and monitoring the sending queue and optimizing the control information in the sending queue. The invention has the beneficial effects that: the reliability of the intelligent home system is improved, delay and loss of system information interaction are reduced, and timeliness of system control is improved.

Description

Performance optimization system of intelligent household system control bus
Technical Field
The invention belongs to the field of intelligent home furnishing, and particularly relates to a performance optimization system of an intelligent home furnishing system control bus.
Background
The intelligent home is characterized in that a home is used as a platform, and devices related to home life are integrated by utilizing a comprehensive wiring technology, a network communication technology, a safety precaution technology, an automatic control technology and the like, so that an efficient home facility and home daily affair management system is constructed. The smart home enables a user to manage home devices by a more convenient means, for example, the home devices are controlled by a touch screen, a handheld remote controller, a telephone and the internet, and scene operation can be executed, so that a plurality of devices are linked; on the other hand, various devices in the smart home can communicate with each other, and can interactively operate according to different states without command of a user, so that convenience, efficiency, safety and comfort are brought to the user to the greatest extent.
The intelligent home system generally comprises a plurality of controllers and terminal module equipment, the controllers are used as cores, the terminal modules are used as nodes, and RS485 buses can be used for connecting the controllers and the terminal modules to form a network. When the system works, the controller can send a control request to the terminal module through the data bus, and the terminal module completes an expected control action so as to complete the control flow of the system; meanwhile, the terminal module can also send the acquired information to the controller through a data bus, so that the monitoring of the external environment is completed.
When the intelligent home control system is used for engineering wiring, a long-distance control bus, such as an RS485 bus, is often required to be used. To reduce the electromagnetic interference experienced on the bus, lower bus transmission baud rates are typically used, such as 9600, 38400, and the like. However, at lower baud rates, the rate at which data is transmitted is more limited. Meanwhile, based on reasons such as a bus inherent transmission mode and the like, a request is usually initiated by the intelligent home controller, and the terminal module responds to a reply after receiving the request to complete one-time information interaction. In some application scenarios, the controller needs to send a large number of requests to several terminal modules in a short time. At this time, due to the limitation of the low-rate communication efficiency of the bus, a large number of requests are accumulated on the sending interface of the smart home controller, and packet loss and the like can be caused under the limit condition.
Disclosure of Invention
Aiming at the situations, the performance optimization system of the control bus of the intelligent home system is provided for solving the technical problem of low bus communication efficiency caused by information blocking due to low bus communication efficiency.
In order to solve the technical problems, the technical scheme of the invention is as follows: a performance optimization system of an intelligent home system control bus comprises a controller, wherein the controller is connected with a plurality of terminal modules through an RS485 bus; the controller includes:
a logic core: generating control information, and sequentially putting the control information into a sending queue;
sending a queue: storing control information, and arranging all information entering a sending module from a logic core according to the time sequence of putting the information into a sending queue;
a sending module: the method comprises the steps that control information is sent, a sending module is directly connected with an RS485 bus, when the sending module detects that the RS485 bus is in an idle state, a single piece of control information is taken out from the head of a sending queue and sent out through the RS485 bus, a terminal module is waited for replying information, and then a single communication interaction process is completed;
a management module: and monitoring the sending queue and optimizing the control information in the sending queue.
Due to the arrangement of the logic core, the sending queue, the sending module and the management module in the controller, the control information sent to the same target terminal module in unit time is sorted and combined, the interaction times between the controller and the terminal module equipment are reduced, the data information amount of single interaction is increased, and the performance of the intelligent home control bus is effectively improved.
Preferably, when the control information enters the sending queue, the management module establishes a connection relationship between the control information and the adjacent information belonging to one terminal module, so that the management module finds the next adjacent message belonging to the same terminal module through one information at the head of the queue.
And establishing connection relations between the control information which is jointly sent to one terminal module in sequence, wherein the connection relations are only positioned between two adjacent control information which are jointly sent to one terminal module, and preparation is made for the subsequent optimization action.
Preferably, the management module detects the information amount of the sending queue, if the total amount of information in the sending queue is smaller than the optimization threshold amount, the optimization action is not performed, if the total amount of information in the sending queue exceeds the optimization threshold amount, the optimization flow is started, and the optimization threshold amount depends on the load capacity of the RS485 bus.
When the RS485 bus is in the load capacity, the optimization action is not selected, and only when the load capacity is exceeded, the optimization action is carried out, so that the efficiency of the optimization action is maximized.
Preferably, the management module monitors the sending queue at a fixed time interval, takes out the control information at the head of the message queue, scans the sending queue from head to tail in sequence, compares the taken-out control information with other control information in the sending queue, and starts an optimization process if the time interval between the control information in the current sending queue and the taken-out control information is less than or equal to T time; and if the time interval between the control information in the current sending queue and the taken-out control information is more than T time, stopping the optimization process.
By controlling the time T, the management module only optimizes the control information at the time T, and the time T can be set by a user, so that the user can set the time according to the situation.
Preferably, the management module records an amplitude value of increase or decrease of information in the transmission queue in a current period of time to dynamically adjust the value of T, wherein the value of T is increased if the information in the transmission queue increases, and the value of T is decreased if the information in the transmission queue decreases, and the amplitude value is larger, and the variation amplitude of the value of T is larger.
The management module dynamically adjusts the value of T according to the amplitude value of the increase or decrease of the information in the sending queue in the current section, so that the value of T is dynamically changed along with the amount of the information in the sending queue all the time, and the sending queue is optimized when the sending queue needs to be optimized most.
Preferably, when the management module starts the optimization process, the management module counts the number of control information sent to each terminal module in the sending queue, determines the terminal module to be optimized, and sequentially searches backwards from the head of the sending queue until finding the first message corresponding to the terminal module.
The number of the control information sent to each terminal module is counted, optimization action is selected to be carried out on the terminal modules exceeding a certain number according to actual conditions, or the terminal module is determined due to the importance of the terminal module at the moment, optimization is carried out on the terminal module, and the first control information of the terminal module is found.
Preferably, after the management module determines a terminal module that needs to be optimized, the management module starts an optimization process, starts with a first message corresponding to the terminal module, and when a next message corresponding to the terminal module is found, incorporates the content included in the current control information into the next control information, and removes the current control information from the sending queue, and sequentially circulates until a last message of the terminal module is found.
After the terminal module needing to be optimized is determined, the control information which is sent to the same terminal module together is optimized according to the connection relation of the control information, the content contained in the current control information is sequentially merged into the next control information from the first control information, the current control information is removed from the sending queue at the same time, and the control information is circulated in sequence until the last information of the terminal module is found, so that the number of the control information is reduced, the interaction times between a controller and terminal module equipment are further reduced, and the data information amount of single interaction is increased.
The invention has the beneficial effects that: the reliability of the intelligent home system is improved, delay and loss of system information interaction are reduced, and timeliness of system control is improved.
Drawings
FIG. 1 is a diagram of the connection relationship between a controller and a terminal module according to the present invention;
FIG. 2 is a diagram of the internal structure of the controller according to the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the drawings. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The performance optimization system of the control bus of the smart home system shown in fig. 1 and 2 comprises a controller, wherein the controller is connected with a plurality of terminal modules through an RS485 bus; the controller includes:
a logic core: generating control information, and sequentially putting the control information into a sending queue;
sending a queue: storing control information, and arranging all information entering a sending module from a logic core according to the time sequence of putting the information into a sending queue;
a sending module: the method comprises the steps that control information is sent, a sending module is directly connected with an RS485 bus, when the sending module detects that the RS485 bus is in an idle state, a single piece of control information is taken out from the head of a sending queue and sent out through the RS485 bus, a terminal module is waited for replying information, and then a single communication interaction process is completed;
a management module: and monitoring the sending queue and optimizing the control information in the sending queue.
Due to the arrangement of the logic core, the sending queue, the sending module and the management module in the controller, the control information sent to the same target terminal module in unit time is sorted and combined, the interaction times between the controller and the terminal module equipment are reduced, the data information amount of single interaction is increased, and the performance of the intelligent home control bus is effectively improved.
Preferably, when the control information enters the sending queue, the management module establishes a connection relationship between the control information and the adjacent information belonging to one terminal module, so that the management module finds the next adjacent message belonging to the same terminal module through one information at the head of the queue.
And establishing connection relations between the control information which is jointly sent to one terminal module in sequence, wherein the connection relations are only positioned between two adjacent control information which are jointly sent to one terminal module, and preparation is made for the subsequent optimization action.
Preferably, the management module detects the information amount of the sending queue, if the total amount of information in the sending queue is smaller than the optimization threshold amount, the optimization action is not performed, if the total amount of information in the sending queue exceeds the optimization threshold amount, the optimization flow is started, and the optimization threshold amount depends on the load capacity of the RS485 bus.
When the RS485 bus is in the load capacity, the optimization action is not selected, and only when the load capacity is exceeded, the optimization action is carried out, so that the efficiency of the optimization action is maximized.
Preferably, the management module monitors the sending queue at a fixed time interval, takes out the control information at the head of the message queue, scans the sending queue from head to tail in sequence, compares the taken-out control information with other control information in the sending queue, and starts an optimization process if the time interval between the control information in the current sending queue and the taken-out control information is less than or equal to T time; and if the time interval between the control information in the current sending queue and the taken-out control information is more than T time, stopping the optimization process.
By controlling the time T, the management module only optimizes the control information at the time T, and the time T can be set by a user, so that the user can set the time according to the situation.
Preferably, the management module records the value of the amplitude by which the information in the transmission queue increases or decreases in the current period (represented by △ T) to dynamically adjust the value of T, wherein the value of T increases if the information in the transmission queue increases, the value of T decreases if the information in the transmission queue decreases, and the larger the amplitude value is, the larger the variation amplitude of T is.
The management module dynamically adjusts the value of T according to the value of the amplitude of the increase or decrease of the information in the transmission queue within a period of time △ T (a constant period of time, which can be freely set), so that the value of T dynamically changes with the amount of information in the transmission queue all the time, and the transmission queue is optimized when the optimization is needed most.
Preferably, when the management module starts the optimization process, the management module counts the number of control information sent to each terminal module in the sending queue, determines the terminal module to be optimized, and sequentially searches backwards from the head of the sending queue until finding the first message corresponding to the terminal module.
The number of the control information sent to each terminal module is counted, optimization action is selected to be carried out on the terminal modules exceeding a certain number according to actual conditions, or the terminal module is determined due to the importance of the terminal module at the moment, optimization is carried out on the terminal module, and the first control information of the terminal module is found.
Preferably, after the management module determines a terminal module that needs to be optimized, the management module starts an optimization process, starts with a first message corresponding to the terminal module, and when a next message corresponding to the terminal module is found, incorporates the content included in the current control information into the next control information, and removes the current control information from the sending queue, and sequentially circulates until a last message of the terminal module is found.
After the terminal module needing to be optimized is determined, the control information which is sent to the same terminal module together is optimized according to the connection relation of the control information, the content contained in the current control information is sequentially merged into the next control information from the first control information, the current control information is removed from the sending queue at the same time, and the control information is circulated in sequence until the last information of the terminal module is found, so that the number of the control information is reduced, the interaction times between a controller and terminal module equipment are further reduced, and the data information amount of single interaction is increased.
The invention has the beneficial effects that: the reliability of the intelligent home system is improved, delay and loss of system information interaction are reduced, and timeliness of system control is improved.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, and the scope of protection is still within the scope of the invention.

Claims (5)

1. The utility model provides a performance optimization system of intelligence home systems control bus which characterized by: the system comprises a controller, wherein the controller is connected with a plurality of terminal modules through an RS485 bus; the controller includes:
a logic core: generating control information, and sequentially putting the control information into a sending queue;
sending a queue: storing control information, and arranging all information entering a sending module from a logic core according to the time sequence of putting the information into a sending queue;
a sending module: the method comprises the steps that control information is sent, a sending module is directly connected with an RS485 bus, when the sending module detects that the RS485 bus is in an idle state, a single piece of control information is taken out from the head of a sending queue and sent out through the RS485 bus, a terminal module is waited for replying information, and then a single communication interaction process is completed;
a management module: monitoring a sending queue and optimizing control information in the sending queue; the management module monitors the sending queue at a fixed time interval, takes out the control information at the head of the sending queue, scans the sending queue from head to tail in sequence, compares the taken-out control information with other control information in the sending queue, and starts an optimization process if the time interval between the control information in the current sending queue and the taken-out control information is less than or equal to T time; if the time interval between the control information in the current sending queue and the taken-out control information is greater than T time, stopping the optimization process; the management module records an amplitude value of increase or decrease of information in the transmission queue in a current period of time to dynamically adjust the value of T, if the information in the transmission queue increases, the value of T increases, and if the information in the transmission queue decreases, the value of T decreases, and the amplitude value is larger, and the variation amplitude of the value of T is larger.
2. The system of claim 1, wherein the system comprises: when the control information enters the sending queue, the management module establishes the connection relation between the control information and the adjacent information of the control information and the adjacent information belonging to one terminal module, so that the management module finds the next adjacent information belonging to the same terminal module through one information at the head of the queue.
3. The system of claim 1, wherein the system comprises: the management module detects the information quantity of the sending queue, if the total quantity of the information in the sending queue is smaller than the optimization threshold quantity, optimization action is not carried out, if the total quantity of the information in the sending queue exceeds the optimization threshold quantity, an optimization flow is started, and the optimization threshold quantity depends on the load capacity of the RS485 bus.
4. The system of claim 2, wherein the system comprises: when the management module starts the optimization process, the management module counts the number of control information sent to each terminal module in the sending queue, determines the terminal module to be optimized, and sequentially searches backwards from the head of the sending queue until finding the first information corresponding to the terminal module.
5. The system of claim 4, wherein the system comprises: and after the management module determines a terminal module to be optimized, starting an optimization process, starting with the first information corresponding to the terminal module, merging the content contained in the current control information into the next control information when the next information corresponding to the terminal module is found, removing the current control information from the sending queue, and sequentially circulating until the last information of the terminal module is found.
CN201710627699.8A 2017-07-28 2017-07-28 Performance optimization system of intelligent household system control bus Active CN107248944B (en)

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 CN107248944A (en) 2017-10-13
CN107248944B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114583B (en) * 2021-04-12 2022-10-04 深圳市欧瑞博科技股份有限公司 Intelligent gateway control method and device and computer readable storage medium

Citations (3)

* 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
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195997B (en) * 2010-03-12 2015-08-19 陈海韵 Based on the Intelligent home monitoring system operation method of WIFI and http technology
CN102904943B (en) * 2012-09-28 2015-07-08 无锡江南计算技术研究所 Cluster computing system hybrid communication method based on embedded processor memory interface
KR20150128346A (en) * 2014-05-09 2015-11-18 삼성전자주식회사 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

Patent Citations (3)

* 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
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

Also Published As

Publication number Publication date
CN107248944A (en) 2017-10-13

Similar Documents

Publication Publication Date Title
CN112332889B (en) Data transmission method and device, power line communication network and power system
EP2678750B1 (en) Queuing access to a shared power supply
CN101521454B (en) Parallel current sharing implementation method and supply units
CN106027308B (en) A kind of spaceborne 1553B bus communication optimization method
WO2018001230A1 (en) Dynamic link aggregation implementation method and device and computer storage medium
CN109228954B (en) Charging pile energy management method and system and charging pile group system
CN113286002B (en) Power data transmission method based on multi-priority queue
CN107248944B (en) Performance optimization system of intelligent household system control bus
CN104516478A (en) Throttling device power
CN110320813B (en) Power management method and device for Internet of things equipment
CN106656711B (en) A kind of predefined method of token bus time slot
CN103916972A (en) RTS/CTS starting method and device
CN111835626B (en) LoRa communication method, loRa server gateway and readable storage medium
CN116729188A (en) Method and system for distributing multi-section power of direct current charging pile
CN113905075B (en) Control system and method for cloud robot in 5G environment
CN103237358B (en) A kind of for joining with the GPRS network access optimization method of telecommunication
CN106961368A (en) A kind of household electrical appliances Cloud Server method of work and household electrical appliances cloud server system method of work
CN111800823B (en) Priority-based power wireless terminal data transmission method and device
CN103812215A (en) Intermediate power management device and related power-management method
CN112512131A (en) Power saving method and system for data transmission
EP3879745A1 (en) A high-voltage pulse generator and a communication method therefor
CN111404167A (en) Demand response-oriented household user load rapid regulation and control method
CN103747510A (en) Data transmission method and system for reducing power consumption of WIFI (wireless fidelity) module
CN101212248A (en) Uplink scheduling information report method in radio communication system
CN102629942B (en) Cradle head control method, corresponding system and centralized cradle head control node

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