Data reading method and system of household intelligent gateway

The invention provides a data reading method and system for a home intelligent gateway. The data reading method comprises the following steps: firstly, generating a JSON (JavaScript Object Notation) database; acquiring a current time interval according to the current read instruction starting time a...

Full description

Saved in:
Bibliographic Details
Main Authors LEI PENG, GUO ZHONGLEI, MA ZHEN, ZHANG XINDI, SHAO CHANGLI
Format Patent
LanguageChinese
English
Published 02.08.2024
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention provides a data reading method and system for a home intelligent gateway. The data reading method comprises the following steps: firstly, generating a JSON (JavaScript Object Notation) database; acquiring a current time interval according to the current read instruction starting time and the last read instruction ending time; obtaining current cache aging time according to the last read instruction time consumption, wherein the current cache aging time is in direct proportion to the last read instruction time consumption; when the current time interval is less than the current cache aging time, reading data from the JSON database and sending the data in a JSON message form; and when the current time interval is greater than the cache aging time, reading the data through a bottom layer interface, adding the data into a JSON database, and sending the data in a JSON message form. According to the method, the current cache aging time is dynamically adjusted along with the time used by the last read
Bibliography:Application Number: CN202310096046