WO2024093211A1 - Method and apparatus for acquiring offline data, and wireless communication module and storage medium - Google Patents

Method and apparatus for acquiring offline data, and wireless communication module and storage medium Download PDF

Info

Publication number
WO2024093211A1
WO2024093211A1 PCT/CN2023/096389 CN2023096389W WO2024093211A1 WO 2024093211 A1 WO2024093211 A1 WO 2024093211A1 CN 2023096389 W CN2023096389 W CN 2023096389W WO 2024093211 A1 WO2024093211 A1 WO 2024093211A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
data
offline
wireless communication
communication module
Prior art date
Application number
PCT/CN2023/096389
Other languages
French (fr)
Chinese (zh)
Inventor
蔡守明
陈栋
张桂芳
吴洪金
劳春峰
Original Assignee
青岛海尔空调器有限总公司
青岛海尔空调电子有限公司
海尔智家股份有限公司
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 青岛海尔空调器有限总公司, 青岛海尔空调电子有限公司, 海尔智家股份有限公司 filed Critical 青岛海尔空调器有限总公司
Publication of WO2024093211A1 publication Critical patent/WO2024093211A1/en

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C3/00Registering or indicating the condition or the working of machines or other apparatus, other than vehicles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]

Definitions

  • the present application relates to the field of computer technology, for example, to a method and device for acquiring offline data, a wireless communication module, and a storage medium.
  • the current wireless communication module After the current wireless communication module is bound to an electronic device, it is usually used as a channel for interaction between the server and the electronic device.
  • the wireless communication module transmits the query command issued by the server to the electronic device, and the server queries the operating data of the electronic device every 5 seconds, triggering the electronic device to feedback the operating data to the server.
  • the electronic device When the electronic device is offline, the electronic device will store the operating data once each time it receives a query command issued by the server. As the offline time accumulates, it is easy to run out of storage space.
  • the relevant technology discloses a location information reporting method, which is used for a device side, and the device side communicates with a server side, and is characterized in that the location information reporting method includes: obtaining the current network status; determining whether the current network status is unobstructed; if so, reporting the current location information of the device side to the server side; if not, storing the current location information of the device side in a local offline database of the device side to form offline location information, and continuing to execute the step of obtaining the current network status.
  • the server when an electronic device is offline, the server sends a query command to the electronic device through a wireless communication module every preset time period, triggering the electronic device to feedback operating data. Each time the electronic device receives a query command sent by the server, it stores the operating data. As the offline time accumulates, the storage space is likely to be insufficient.
  • the embodiments of the present disclosure provide a method and device for acquiring offline data, a wireless communication module, and a storage medium, so as to solve the problem of insufficient storage space when acquiring offline data of an electronic device.
  • the method for obtaining offline data is applied to a wireless communication module, and the wireless communication module is arranged in an electronic device.
  • the wireless communication module is used to store the operation data of the electronic device when it is offline; the method comprises: monitoring the electronic device and obtaining a monitoring result.
  • the monitoring result is that the electronic device is detected to be offline, querying the operation data of the electronic device and obtaining a query result.
  • querying the operating data of the electronic device to obtain the query result includes: determining the queried operating data and the query time as the query result.
  • the operating data of the electronic device is monitored, and when the operating data of the electronic device changes, the change in the operating data of the electronic device is obtained, including: obtaining the operating data after the change and the change time, and determining the operating data after the change and the change time as the change in the operating data of the electronic device.
  • storing the offline data includes: obtaining the offline time of the electronic device, and when the offline time exceeds a preset time period, overwriting the stored historical data with the offline data according to a preset overwriting logic.
  • the method further includes: monitoring the operation data of the electronic device, and determining the query result as offline data when the operation data of the electronic device has not changed. Storing the offline data.
  • the method further includes: when it is detected that the electronic device is online, uploading the offline data to a preset server.
  • the device for acquiring offline data is applied to a wireless communication module, and the wireless communication module is arranged in an electronic device.
  • the wireless communication module is used to store the operation data of the electronic device when it is offline;
  • the device comprises: a monitoring module, configured to monitor the electronic device and obtain a monitoring result.
  • a query module configured to query the operation data of the electronic device and obtain a query result when the monitoring result is that the electronic device is offline.
  • the acquisition module is configured to monitor the operation data of the electronic device and obtain a query result.
  • the electronic device detects the operation data of the electronic device, and when the operation data of the electronic device changes, obtains the change of the operation data of the electronic device.
  • the determination module is configured to determine the query result and the change as offline data.
  • the storage module is configured to store the offline data.
  • the apparatus for acquiring offline data includes: a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for acquiring offline data when executing the program instructions.
  • the wireless communication module includes: a wireless communication module body; the above-mentioned device for acquiring offline data is installed in the wireless communication module body.
  • the storage medium stores program instructions, and when the program instructions are run, the above-mentioned method for acquiring offline data is executed.
  • the method and device, wireless communication module, and storage medium for obtaining offline data can achieve the following technical effects: by monitoring the electronic device, a monitoring result is obtained.
  • the monitoring result is that the electronic device is detected to be offline
  • the operation data of the electronic device is queried to obtain a query result.
  • the operation data of the electronic device is monitored, and when the operation data of the electronic device changes, the change of the operation data of the electronic device is obtained.
  • the query result and the change are determined as offline data, and the offline data is stored. In this way, when the operation data of the electronic device changes, the change is determined as offline data and stored in the wireless communication module. It is avoided that the operation data of the electronic device is stored every time it is queried in the offline state, thereby saving storage space, so as to solve the problem of insufficient storage space when obtaining offline data of the electronic device.
  • FIG1 is a schematic diagram of a method for acquiring offline data provided by an embodiment of the present disclosure
  • FIG2 is a schematic diagram of another method for acquiring offline data provided by an embodiment of the present disclosure.
  • FIG3 is a schematic diagram of another method for acquiring offline data provided by an embodiment of the present disclosure.
  • FIG4 is a schematic diagram of the structure of a device for acquiring offline data provided by an embodiment of the present disclosure
  • FIG5 is a schematic diagram of the structure of another device for acquiring offline data provided by an embodiment of the present disclosure
  • FIG6 is a schematic diagram of the structure of a wireless communication module provided by an embodiment of the present disclosure.
  • the character "/" indicates that the preceding and following objects are in an "or" relationship.
  • A/B indicates: A or B.
  • a and/or B means: A or B, or, A and B.
  • correspondence may refer to an association relationship or a binding relationship.
  • correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
  • an embodiment of the present disclosure provides a method for acquiring offline data, which is applied to a wireless communication module.
  • the wireless communication module is arranged in an electronic device. When the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when it is offline.
  • the method includes:
  • Step S101 The wireless communication module monitors the electronic device to obtain monitoring results.
  • Step S102 When the monitoring result shows that the electronic device is offline, the wireless communication module queries the operation data of the electronic device to obtain the query result.
  • Step S103 The wireless communication module monitors the operating data of the electronic device, and obtains the change of the operating data of the electronic device when the operating data of the electronic device changes.
  • step S104 the wireless communication module determines the query result and the change status as offline data.
  • Step S105 the wireless communication module stores offline data.
  • the method for obtaining offline data is adopted to obtain monitoring results by monitoring the electronic device.
  • the monitoring result is that the electronic device is detected to be offline
  • query the operation data of the electronic device to obtain the query result.
  • Monitor the operation data of the electronic device and when the operation data of the electronic device changes, obtain the change of the operation data of the electronic device.
  • the wireless communication module is stored to avoid storing the operation data every time the electronic device is queried in an offline state, thereby saving storage space and solving the problem of insufficient storage space when obtaining offline data of the electronic device.
  • the operation data of the electronic device is the operation state of the electronic device.
  • the electronic device is, for example, an air conditioner, a washing machine, a purifier and other household appliances.
  • the electronic device is an air conditioner, and the operation state of the electronic device includes: a power-on state, a power-off state, a cooling state, a heating state or a dehumidification state, etc.
  • the wireless communication module when the electronic device is online, the wireless communication module is used to transmit the command sent by the server to the transmitting electronic device.
  • the wireless communication module is used to store the operation data of the electronic device when it is offline.
  • the wireless communication module queries the operation data of the electronic device to obtain the query result, including: the wireless communication module determines the queried operation data and the query time as the query result.
  • the operating data queried by the wireless communication module is the operating status of the electronic device when it just enters the offline state.
  • the wireless communication module monitors the operation data of the electronic device, and when the operation data of the electronic device changes, obtains the change of the operation data of the electronic device, including: the wireless communication module obtains the changed operation data and the change time.
  • the changed operation data and the change time are determined as the change of the operation data of the electronic device.
  • the wireless communication module after the wireless communication module obtains the query result, it continues to monitor the operation data of the electronic device and records the operation data of the electronic device when it changes, thereby obtaining the operation data after the change and the change time. In this way, the wireless communication module can collect and analyze the operation data of the electronic device after it goes offline.
  • the wireless communication module stores offline data, including: the wireless communication module obtains the offline time of the electronic device. When the offline time exceeds a preset time period, the stored historical data is overwritten with the offline data according to a preset overwriting logic. The preset time period is used to characterize the size of the storage space in the wireless communication module.
  • the storage space in the wireless communication module can store operating data of a preset time period. In this way, by adding the function of storing data in the wireless communication module, it is convenient to store offline data of the electronic device.
  • the wireless communication module stores offline data, including: the wireless communication module obtains offline time of the electronic device, and directly stores the offline data in the wireless communication module when the offline time does not exceed a preset time period.
  • the preset overwriting logic is to overwrite the oldest stored historical data with the latest offline data in the chronological order of the running data.
  • the storage space in the wireless communication module can store 3 days of operating data. If the electronic device has been offline for more than 3 days, the stored historical data of the first day is deleted and the operating data of the fourth day is stored.
  • the operation data stored in the electronic device at this time includes: the operation data of the second day, the operation data of the third day, and the operation data of the fourth day. This can overwrite the stored historical data, thereby saving storage space, so that the wireless communication module can store new operation data.
  • the method further includes: the wireless communication module monitors the operation data of the electronic device, and when the operation data of the electronic device does not change, determines the query result as offline data. Storing offline data.
  • the wireless communication module detects that the operation data of the electronic device has not changed, the operation data and query time in the query result are determined as offline data and stored.
  • the query time is the start time of the operation data.
  • an embodiment of the present disclosure provides a method for acquiring offline data, which is applied to a wireless communication module.
  • the wireless communication module is arranged in an electronic device. When the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when it is offline.
  • the method includes:
  • Step S201 The wireless communication module monitors the electronic device to obtain monitoring results.
  • Step S202 When the monitoring result shows that the electronic device is offline, the wireless communication module queries the operation data of the electronic device to obtain the query result.
  • step S203 the wireless communication module monitors the operating data of the electronic device and determines whether the operating data of the electronic device has changed; if the operating data of the electronic device has changed, step S204 is executed; or, if the operating data of the electronic device has not changed, step S206 is executed.
  • step S204 the wireless communication module obtains the change of the operation data of the electronic device, and then executes step S205.
  • step S205 the wireless communication module determines the query result and the change status as offline data, and then executes step S207.
  • step S206 the wireless communication module determines the query result as offline data, and then executes step S207.
  • Step S207 the wireless communication module stores offline data.
  • the change is determined as offline data and stored in the wireless communication module only when the operation data of the electronic device changes. This avoids storing the operation data every time the electronic device queries it in an offline state, thereby saving storage space and solving the problem of insufficient storage space when obtaining offline data of the electronic device.
  • the wireless communication module also includes: when the wireless communication module detects that the electronic device is online, the offline data is uploaded to a preset server. In this way, after the electronic device is reconnected to the network, the wireless communication module uploads the stored offline data to the server, thereby solving the problem of difficulty in obtaining the operation data of the electronic device after the electronic device is offline.
  • the present disclosure provides a method for obtaining offline data, which is applied to a wireless communication module.
  • the wireless communication module is arranged in the electronic device, and when the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when it is offline; the method comprises:
  • Step S301 The wireless communication module monitors the electronic device to obtain monitoring results.
  • Step S302 When the monitoring result shows that the electronic device is offline, the wireless communication module queries the operation data of the electronic device to obtain the query result.
  • Step S303 The wireless communication module monitors the operating data of the electronic device, and obtains the change of the operating data of the electronic device when the operating data of the electronic device changes.
  • step S304 the wireless communication module determines the query result and the change status as offline data.
  • Step S305 the wireless communication module stores offline data.
  • Step S306 When the wireless communication module detects that the electronic device is online, the wireless communication module uploads the offline data to a preset server.
  • the method for obtaining offline data provided by the embodiment of the present disclosure is adopted.
  • the change is determined as offline data and stored in the wireless communication module. This avoids storing the operating data every time the electronic device is queried in an offline state, thereby saving storage space, so as to solve the problem of insufficient storage space when obtaining offline data of the electronic device.
  • an embodiment of the present disclosure provides a device 200 for acquiring offline data, which is applied to a wireless communication module.
  • the wireless communication module is arranged in an electronic device. When the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when it is offline.
  • the device includes: a monitoring module 401, a query module 402, an acquisition module 403, a determination module 404, and a storage module 405.
  • the monitoring module 401 is configured to monitor the electronic device and obtain a monitoring result. And send the monitoring result to the query module.
  • the query module 402 is configured to receive the monitoring result sent by the monitoring module. When the monitoring result is that the electronic device is offline, query the operation data of the electronic device and obtain the query result.
  • the acquisition module 403 is configured to monitor the operation data of the electronic device, and when the operation data of the electronic device changes, obtain the change of the operation data of the electronic device. And send the change to the determination module.
  • the determination module 404 is configured to receive the query result sent by the query module and receive the change sent by the acquisition module. The query result and the change are determined as offline data. And send the offline data to the storage module.
  • the storage module 405 is configured to receive the offline data sent by the determination module and store the offline data.
  • the device for obtaining offline data is used to monitor the electronic device through the monitoring module to obtain the monitoring result.
  • the query module queries the operation data of the electronic device to obtain the query result.
  • the acquisition module monitors the operation data of the electronic device. In case of a change, the change of the operation data of the electronic device is obtained.
  • the determination module determines the query result and the change as offline data.
  • the storage module stores the offline data.
  • the query module is configured to query the operation data of the electronic device in the following manner to obtain the query result: determine the queried operation data and the query time as the query result.
  • the acquisition module is configured to monitor the operating data of the electronic device in the following manner, and when the operating data of the electronic device changes, obtain the change in the operating data of the electronic device: obtain the operating data after the change and the change time, and determine the operating data after the change and the change time as the change in the operating data of the electronic device.
  • the storage module is configured to store offline data in the following manner, including: obtaining offline time of the electronic device, and overwriting the stored historical data with offline data according to a preset overwriting logic when the offline time exceeds a preset period of time.
  • the storage module is further configured to query the operation data of the electronic device in the following manner, and after obtaining the query result: monitoring the operation data of the electronic device, and determining the query result as offline data when the operation data of the electronic device has not changed. Storing offline data.
  • the device for acquiring offline data also includes an uploading module, which is configured to store the offline data and upload the offline data to a preset server when it is detected that the electronic device is online.
  • an embodiment of the present disclosure provides a device 300 for acquiring offline data, including a processor 500 and a memory 501.
  • the device 300 for acquiring offline data may also include a communication interface 502 and a bus 503.
  • the processor 500, the communication interface 502, and the memory 501 may communicate with each other through the bus 503.
  • the communication interface 502 may be used for information transmission.
  • the processor 500 may call the logic instructions in the memory 501 to execute the method for acquiring offline data of the above embodiment.
  • the device for obtaining offline data is used to monitor the electronic device to obtain the monitoring result.
  • the monitoring result is that the electronic device is detected to be offline
  • the operation data of the electronic device is queried to obtain the query result.
  • the operation data of the electronic device is monitored, and when the operation data of the electronic device changes, the change of the operation data of the electronic device is obtained.
  • the query result and the change are determined as offline data, and the offline data is stored. In this way, only when the operation data of the electronic device changes, the change is determined as offline data and stored in the wireless communication module. It is avoided that the operation data of the electronic device is stored every time it is queried in the offline state, thereby saving storage space, so as to solve the problem of insufficient storage space when obtaining offline data of the electronic device.
  • logic instructions in the memory 501 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
  • the memory 501 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions/modules corresponding to the method in the embodiment of the present disclosure.
  • the processor 500 executes functional applications and data processing by running the program instructions/modules stored in the memory 501, that is, implementing the method for obtaining offline data in the above embodiment.
  • the memory 501 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc.
  • the memory 501 may include a high-speed random access memory and may also include a non-volatile memory.
  • an embodiment of the present disclosure provides a wireless communication module 100, including: a wireless communication module body, and the above-mentioned device 200 (300) for obtaining offline data, wherein the device 200 (300) for obtaining offline data is installed in the wireless communication module body.
  • the installation relationship described here is not limited to placement inside the product, but also includes installation connections with other components of the product, including but not limited to physical connections, electrical connections, or signal transmission connections. It can be understood by those skilled in the art that the device 200 (300) for obtaining offline data can be adapted to a feasible product body, thereby realizing other feasible embodiments.
  • the electronic device is monitored to obtain the monitoring result.
  • the monitoring result is that the electronic device is detected to be offline
  • the operation data of the electronic device is queried to obtain the query result.
  • the operation data of the electronic device is monitored, and when the operation data of the electronic device changes, the change of the operation data of the electronic device is obtained.
  • the query result and the change are determined as offline data, and the offline data is stored. In this way, when the operation data of the electronic device changes, the change is determined as offline data and stored in the wireless communication module. It is avoided that the operation data of the electronic device is stored every time it is queried in the offline state, thereby saving storage space, so as to solve the problem of insufficient storage space when obtaining offline data of the electronic device.
  • the wireless communication module includes a wireless network technology Wi-Fi module, a Bluetooth module, etc.
  • An embodiment of the present disclosure provides a storage medium storing program instructions, which, when executed, execute the above method for acquiring offline data.
  • An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a computer-readable storage medium.
  • the computer program includes program instructions.
  • the program instructions When the program instructions are executed by a computer, the computer executes the above-mentioned method for obtaining offline data.
  • the embodiment of the present disclosure provides a computer program.
  • the computer program When the computer program is executed by a computer, the computer is enabled to implement the above-mentioned method for acquiring offline data.
  • the computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
  • a storage medium includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure.
  • the aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.
  • the term “and/or” as used in this application refers to any and all possible combinations of one or more associated listings.
  • the term “comprise” and its variants “comprises” and/or including (comprising) refer to the existence of stated features, wholes, steps, operations, elements, and/or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and/or groups of these.
  • the elements defined by the sentence “comprising a " do not exclude the existence of other identical elements in the process, method or device comprising the elements.
  • each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other.
  • the relevant parts can refer to the description of the method part.
  • the disclosed methods and products can be implemented in other ways.
  • the device embodiments described above are only exemplary.
  • the division of the units can be only a logical function division. There can be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment.
  • the functional units in the embodiments disclosed herein may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for implementing the specified logical function.
  • the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The present application relates to the technical field of computers. Disclosed is a method for acquiring offline data, which is applied to a wireless communication module, wherein the wireless communication module is arranged in an electronic device, and when the electronic device is offline, the wireless communication module is used for storing operating data of the electronic device in an offline state. The method comprises: monitoring an electronic device to obtain a monitoring result; when the monitoring result is that the electronic device is monitored as being offline, querying operating data of the electronic device, so as to obtain a query result; monitoring the operating data of the electronic device, and when the operating data of the electronic device changes, acquiring a change condition of the operating data of the electronic device; and determining the query result and the change condition to be offline data, and storing the offline data. When an electronic device is offline, operating data is stored in a wireless communication module only when the operating data changes, thereby saving on storage space. Further disclosed in the present application are an apparatus for acquiring offline data, and a wireless communication module and a storage medium.

Description

用于获取离线数据的方法及装置、无线通信模组、存储介质Method and device for acquiring offline data, wireless communication module, and storage medium
本申请基于申请号为202211347334.7、申请日为2022年10月31日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with application number 202211347334.7 and application date October 31, 2022, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference.
技术领域Technical Field
本申请涉及计算机技术领域,例如涉及一种用于获取离线数据的方法及装置、无线通信模组、存储介质。The present application relates to the field of computer technology, for example, to a method and device for acquiring offline data, a wireless communication module, and a storage medium.
背景技术Background technique
目前的无线通信模组在绑定了电子设备后,通常是作为服务器与电子设备间交互的一种通道。为了便于服务器及时获取电子设备的运行数据,相关技术中在电子设备在线的情况下,无线通信模组将服务器下发的查询命令传输给电子设备,服务器每隔5s就查询一次电子设备的运行数据,触发电子设备反馈运行数据给服务器。在电子设备离线的情况下,电子设备每接收到一次服务器下发的查询命令时,都会存储一次运行数据,随着离线时间的累计容易出现存储空间不够用的情况。After the current wireless communication module is bound to an electronic device, it is usually used as a channel for interaction between the server and the electronic device. In order to facilitate the server to obtain the operating data of the electronic device in a timely manner, in the relevant technology, when the electronic device is online, the wireless communication module transmits the query command issued by the server to the electronic device, and the server queries the operating data of the electronic device every 5 seconds, triggering the electronic device to feedback the operating data to the server. When the electronic device is offline, the electronic device will store the operating data once each time it receives a query command issued by the server. As the offline time accumulates, it is easy to run out of storage space.
为了解决电子设备对于离线数据的存储空间的需求,相关技术公开了一种位置信息上报方法,用于设备端,所述设备端与服务端通信,其特征在于,所述位置信息上报方法包括:获取当前网络状态;判断所述当前网络状态是否为畅通状态;若是,将所述设备端的当前位置信息上报给所述服务端;若否,将所述设备端的当前位置信息存储在所述设备端的本地离线数据库中以形成离线位置信息,并继续执行所述获取当前网络状态的步骤。In order to solve the demand of electronic devices for storage space of offline data, the relevant technology discloses a location information reporting method, which is used for a device side, and the device side communicates with a server side, and is characterized in that the location information reporting method includes: obtaining the current network status; determining whether the current network status is unobstructed; if so, reporting the current location information of the device side to the server side; if not, storing the current location information of the device side in a local offline database of the device side to form offline location information, and continuing to execute the step of obtaining the current network status.
在实现本公开实施例的过程中,发现相关技术中至少存在如下问题:In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
相关技术中在电子设备处于离线状态时,服务器通过无线通信模组每隔预设时间段下发一次查询命令给电子设备,触发电子设备反馈运行数据。而在电子设备每接收到一次服务器下发的查询命令时,都会存储一次运行数据,随着离线时间的累计容易出现存储空间不够用的情况。In the related art, when an electronic device is offline, the server sends a query command to the electronic device through a wireless communication module every preset time period, triggering the electronic device to feedback operating data. Each time the electronic device receives a query command sent by the server, it stores the operating data. As the offline time accumulates, the storage space is likely to be insufficient.
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本申请的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field.
发明内容 Summary of the invention
为了对披露的实施例的一些方面有基本的理解,下面给出了简单的概括。所述概括不是泛泛评述,也不是要确定关键/重要组成元素或描绘这些实施例的保护范围,而是作为后面的详细说明的序言。In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key/critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
本公开实施例提供了一种用于获取离线数据的方法及装置、无线通信模组、存储介质,以能够解决在获取电子设备的离线数据时存储空间不够用的问题。The embodiments of the present disclosure provide a method and device for acquiring offline data, a wireless communication module, and a storage medium, so as to solve the problem of insufficient storage space when acquiring offline data of an electronic device.
在一些实施例中,所述用于获取离线数据的方法,应用于无线通信模组,所述无线通信模组设置在电子设备内,在所述电子设备离线的情况下,所述无线通信模组用于存储所述电子设备处于离线状态时的运行数据;所述方法包括:对所述电子设备进行监测,获得监测结果。在所述监测结果为监测到所述电子设备离线的情况下,查询所述电子设备的运行数据,获得查询结果。监测所述电子设备的运行数据,在所述电子设备的运行数据发生变化的情况下,获取所述电子设备的运行数据的变化情况。将所述查询结果和所述变化情况确定为离线数据,存储所述离线数据。In some embodiments, the method for obtaining offline data is applied to a wireless communication module, and the wireless communication module is arranged in an electronic device. When the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when it is offline; the method comprises: monitoring the electronic device and obtaining a monitoring result. When the monitoring result is that the electronic device is detected to be offline, querying the operation data of the electronic device and obtaining a query result. Monitoring the operation data of the electronic device, and obtaining the change of the operation data of the electronic device when the operation data of the electronic device changes. Determining the query result and the change as offline data, and storing the offline data.
在一些实施例中,查询所述电子设备的运行数据,获得查询结果,包括:将查询到的运行数据和查询时间确定为查询结果。In some embodiments, querying the operating data of the electronic device to obtain the query result includes: determining the queried operating data and the query time as the query result.
在一些实施例中,监测所述电子设备的运行数据,在所述电子设备的运行数据发生变化的情况下,获取所述电子设备的运行数据的变化情况,包括:获取发生变化后的运行数据和变化时间,将所述发生变化后的运行数据和所述变化时间确定为所述电子设备的运行数据的变化情况。In some embodiments, the operating data of the electronic device is monitored, and when the operating data of the electronic device changes, the change in the operating data of the electronic device is obtained, including: obtaining the operating data after the change and the change time, and determining the operating data after the change and the change time as the change in the operating data of the electronic device.
在一些实施例中,存储所述离线数据,包括:获取所述电子设备的已离线时间。在所述已离线时间超过预设时间段的情况下,按照预设的覆盖逻辑利用所述离线数据对已存储的历史数据进行覆盖。In some embodiments, storing the offline data includes: obtaining the offline time of the electronic device, and when the offline time exceeds a preset time period, overwriting the stored historical data with the offline data according to a preset overwriting logic.
在一些实施例中,查询所述电子设备的运行数据,获得查询结果后,还包括:监测所述电子设备的运行数据,在所述电子设备的运行数据没有发生变化的情况下,将所述查询结果确定为离线数据。存储所述离线数据。In some embodiments, after querying the operation data of the electronic device and obtaining the query result, the method further includes: monitoring the operation data of the electronic device, and determining the query result as offline data when the operation data of the electronic device has not changed. Storing the offline data.
在一些实施例中,存储所述离线数据后,还包括:在监测到所述电子设备在线的情况下,将所述离线数据上传给预设的服务器。In some embodiments, after storing the offline data, the method further includes: when it is detected that the electronic device is online, uploading the offline data to a preset server.
在一些实施例中,所述用于获取离线数据的装置,应用于无线通信模组,所述无线通信模组设置在电子设备内,在所述电子设备离线的情况下,所述无线通信模组用于存储所述电子设备处于离线状态时的运行数据;所述装置包括:监测模块,被配置为对所述电子设备进行监测,获得监测结果。查询模块,被配置为在所述监测结果为监测到所述电子设备离线的情况下,查询所述电子设备的运行数据,获得查询结果。获取模块,被配置为监 测所述电子设备的运行数据,在所述电子设备的运行数据发生变化的情况下,获取所述电子设备的运行数据的变化情况。确定模块,被配置为将所述查询结果和所述变化情况确定为离线数据。存储模块,被配置为存储所述离线数据。In some embodiments, the device for acquiring offline data is applied to a wireless communication module, and the wireless communication module is arranged in an electronic device. When the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when it is offline; the device comprises: a monitoring module, configured to monitor the electronic device and obtain a monitoring result. A query module, configured to query the operation data of the electronic device and obtain a query result when the monitoring result is that the electronic device is offline. The acquisition module is configured to monitor the operation data of the electronic device and obtain a query result. The electronic device detects the operation data of the electronic device, and when the operation data of the electronic device changes, obtains the change of the operation data of the electronic device. The determination module is configured to determine the query result and the change as offline data. The storage module is configured to store the offline data.
在一些实施例中,所述用于获取离线数据的装置包括:处理器和存储有程序指令的存储器,所述处理器被配置为在执行所述程序指令时,执行上述用于获取离线数据的方法。In some embodiments, the apparatus for acquiring offline data includes: a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for acquiring offline data when executing the program instructions.
在一些实施例中,所述无线通信模组包括:无线通信模组本体;上述的用于获取离线数据的装置,被安装于所述无线通信模组本体。In some embodiments, the wireless communication module includes: a wireless communication module body; the above-mentioned device for acquiring offline data is installed in the wireless communication module body.
在一些实施例中,所述存储介质存储有程序指令,所述程序指令在运行时,执行上述的用于获取离线数据的方法。In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the above-mentioned method for acquiring offline data is executed.
本公开实施例提供的用于获取离线数据的方法及装置、无线通信模组、存储介质,可以实现以下技术效果:通过对电子设备进行监测,获得监测结果。在监测结果为监测到电子设备离线的情况下,查询电子设备的运行数据,获得查询结果。监测电子设备的运行数据,在电子设备的运行数据发生变化的情况下,获取电子设备的运行数据的变化情况。将查询结果和变化情况确定为离线数据,存储离线数据。这样,通过在电子设备的运行数据发生变化的情况下,才将变化情况确定为离线数据并存储到无线通信模组。避免了电子设备在离线状态下每查询一次运行数据就存储一次,从而节省存储空间,以能够解决在获取电子设备的离线数据时存储空间不够用的问题。The method and device, wireless communication module, and storage medium for obtaining offline data provided by the embodiments of the present disclosure can achieve the following technical effects: by monitoring the electronic device, a monitoring result is obtained. When the monitoring result is that the electronic device is detected to be offline, the operation data of the electronic device is queried to obtain a query result. The operation data of the electronic device is monitored, and when the operation data of the electronic device changes, the change of the operation data of the electronic device is obtained. The query result and the change are determined as offline data, and the offline data is stored. In this way, when the operation data of the electronic device changes, the change is determined as offline data and stored in the wireless communication module. It is avoided that the operation data of the electronic device is stored every time it is queried in the offline state, thereby saving storage space, so as to solve the problem of insufficient storage space when obtaining offline data of the electronic device.
以上的总体描述和下文中的描述仅是示例性和解释性的,不用于限制本申请。The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
一个或多个实施例通过与之对应的附图进行示例性说明,这些示例性说明和附图并不构成对实施例的限定,附图中具有相同参考数字标号的元件示为类似的元件,附图不构成比例限制,并且其中:One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
图1是本公开实施例提供的一个用于获取离线数据的方法的示意图;FIG1 is a schematic diagram of a method for acquiring offline data provided by an embodiment of the present disclosure;
图2是本公开实施例提供的另一个用于获取离线数据的方法的示意图;FIG2 is a schematic diagram of another method for acquiring offline data provided by an embodiment of the present disclosure;
图3是本公开实施例提供的另一个用于获取离线数据的方法的示意图;FIG3 is a schematic diagram of another method for acquiring offline data provided by an embodiment of the present disclosure;
图4是本公开实施例提供的一个用于获取离线数据的装置的结构示意图;FIG4 is a schematic diagram of the structure of a device for acquiring offline data provided by an embodiment of the present disclosure;
图5是本公开实施例提供的另一个用于获取离线数据的装置的结构示意图;FIG5 is a schematic diagram of the structure of another device for acquiring offline data provided by an embodiment of the present disclosure;
图6是本公开实施例提供的一个无线通信模组的结构示意图。FIG6 is a schematic diagram of the structure of a wireless communication module provided by an embodiment of the present disclosure.
具体实施方式 Detailed ways
为了能够更加详尽地了解本公开实施例的特点与技术内容,下面结合附图对本公开实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本公开实施例。在以下的技术描述中,为方便解释起见,通过多个细节以提供对所披露实施例的充分理解。然而,在没有这些细节的情况下,一个或多个实施例仍然可以实施。在其它情况下,为简化附图,熟知的结构和装置可以简化展示。In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
本公开实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开实施例的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
除非另有说明,术语“多个”表示两个或两个以上。Unless otherwise stated, the term "plurality" means two or more.
本公开实施例中,字符“/”表示前后对象是一种“或”的关系。例如,A/B表示:A或B。In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an "or" relationship. For example, A/B indicates: A or B.
术语“和/或”是一种描述对象的关联关系,表示可以存在三种关系。例如,A和/或B,表示:A或B,或,A和B这三种关系。The term "and/or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and/or B means: A or B, or, A and B.
术语“对应”可以指的是一种关联关系或绑定关系,A与B相对应指的是A与B之间是一种关联关系或绑定关系。The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
结合图1所示,本公开实施例提供一种用于获取离线数据的方法,应用于无线通信模组,无线通信模组设置在电子设备内,在电子设备离线的情况下,无线通信模组用于存储电子设备处于离线状态时的运行数据;该方法包括:As shown in FIG1 , an embodiment of the present disclosure provides a method for acquiring offline data, which is applied to a wireless communication module. The wireless communication module is arranged in an electronic device. When the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when it is offline. The method includes:
步骤S101,无线通信模组对电子设备进行监测,获得监测结果。Step S101: The wireless communication module monitors the electronic device to obtain monitoring results.
步骤S102,无线通信模组在监测结果为监测到电子设备离线的情况下,查询电子设备的运行数据,获得查询结果。Step S102: When the monitoring result shows that the electronic device is offline, the wireless communication module queries the operation data of the electronic device to obtain the query result.
步骤S103,无线通信模组监测电子设备的运行数据,在电子设备的运行数据发生变化的情况下,获取电子设备的运行数据的变化情况。Step S103: The wireless communication module monitors the operating data of the electronic device, and obtains the change of the operating data of the electronic device when the operating data of the electronic device changes.
步骤S104,无线通信模组将查询结果和变化情况确定为离线数据。In step S104, the wireless communication module determines the query result and the change status as offline data.
步骤S105,无线通信模组存储离线数据。Step S105: the wireless communication module stores offline data.
采用本公开实施例提供的用于获取离线数据的方法,通过对电子设备进行监测,获得监测结果。在监测结果为监测到电子设备离线的情况下,查询电子设备的运行数据,获得查询结果。监测电子设备的运行数据,在电子设备的运行数据发生变化的情况下,获取电子设备的运行数据的变化情况。将查询结果和变化情况确定为离线数据,存储离线数据。这样,通过在电子设备的运行数据发生变化的情况下,才将变化情况确定为离线数据并存 储到无线通信模组。避免了电子设备在离线状态下每查询一次运行数据就存储一次,从而节省存储空间,以能够解决在获取电子设备的离线数据时存储空间不够用的问题。The method for obtaining offline data provided by the embodiment of the present disclosure is adopted to obtain monitoring results by monitoring the electronic device. When the monitoring result is that the electronic device is detected to be offline, query the operation data of the electronic device to obtain the query result. Monitor the operation data of the electronic device, and when the operation data of the electronic device changes, obtain the change of the operation data of the electronic device. Determine the query result and the change as offline data, and store the offline data. In this way, when the operation data of the electronic device changes, the change is determined as offline data and stored. The wireless communication module is stored to avoid storing the operation data every time the electronic device is queried in an offline state, thereby saving storage space and solving the problem of insufficient storage space when obtaining offline data of the electronic device.
可选地,电子设备的运行数据为电子设备的运行状态。电子设备例如:空调器、洗衣机、净化器等家电设备。在一些实施例中,电子设备为空调器,则电子设备的运行状态包括:开机状态、关机状态、制冷状态、制热状态或除湿状态等。Optionally, the operation data of the electronic device is the operation state of the electronic device. The electronic device is, for example, an air conditioner, a washing machine, a purifier and other household appliances. In some embodiments, the electronic device is an air conditioner, and the operation state of the electronic device includes: a power-on state, a power-off state, a cooling state, a heating state or a dehumidification state, etc.
在一些实施例中,在电子设备在线的情况下,无线通信模组用于将服务器下发的命令给传输电子设备。在电子设备离线的情况下,无线通信模组用于存储电子设备处于离线状态时的运行数据。In some embodiments, when the electronic device is online, the wireless communication module is used to transmit the command sent by the server to the transmitting electronic device. When the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when it is offline.
进一步的,无线通信模组查询电子设备的运行数据,获得查询结果,包括:无线通信模组将查询到的运行数据和查询时间确定为查询结果。Furthermore, the wireless communication module queries the operation data of the electronic device to obtain the query result, including: the wireless communication module determines the queried operation data and the query time as the query result.
在一些实施例中,在电子设备离线后,无线通信模组查询到的运行数据为电子设备刚进入离线状态时的运行状态。In some embodiments, after the electronic device goes offline, the operating data queried by the wireless communication module is the operating status of the electronic device when it just enters the offline state.
进一步的,无线通信模组监测电子设备的运行数据,在电子设备的运行数据发生变化的情况下,获取电子设备的运行数据的变化情况,包括:无线通信模组获取发生变化后的运行数据和变化时间。将发生变化后的运行数据和变化时间确定为电子设备的运行数据的变化情况。Furthermore, the wireless communication module monitors the operation data of the electronic device, and when the operation data of the electronic device changes, obtains the change of the operation data of the electronic device, including: the wireless communication module obtains the changed operation data and the change time. The changed operation data and the change time are determined as the change of the operation data of the electronic device.
在一些实施例中,在无线通信模组获取到查询结果后,继续对电子设备的运行数据进行监测,在电子设备的运行数据发生变化的情况下进行记录,从而获得发生变化后的运行数据和变化时间。这样,通过无线通信模组能够对电子设备离线后的运行数据进行采集并进行分析处理,In some embodiments, after the wireless communication module obtains the query result, it continues to monitor the operation data of the electronic device and records the operation data of the electronic device when it changes, thereby obtaining the operation data after the change and the change time. In this way, the wireless communication module can collect and analyze the operation data of the electronic device after it goes offline.
可选地,无线通信模组存储离线数据,包括:无线通信模组获取电子设备的已离线时间。在已离线时间超过预设时间段的情况下,按照预设的覆盖逻辑利用离线数据对已存储的历史数据进行覆盖。其中,预设时间段用于表征无线通信模组中的存储空间的大小。在一些实施例中,无线通信模组中的存储空间能够存储预设时间段长度的运行数据。这样,通过在无线通信模组中增加存储数据的功能,便于对电子设备的离线数据进行存储。Optionally, the wireless communication module stores offline data, including: the wireless communication module obtains the offline time of the electronic device. When the offline time exceeds a preset time period, the stored historical data is overwritten with the offline data according to a preset overwriting logic. The preset time period is used to characterize the size of the storage space in the wireless communication module. In some embodiments, the storage space in the wireless communication module can store operating data of a preset time period. In this way, by adding the function of storing data in the wireless communication module, it is convenient to store offline data of the electronic device.
可选地,无线通信模组存储离线数据,包括:无线通信模组获取电子设备的已离线时间。在已离线时间未超过预设时间段的情况下,直接将离线数据存储到无线通信模组中。Optionally, the wireless communication module stores offline data, including: the wireless communication module obtains offline time of the electronic device, and directly stores the offline data in the wireless communication module when the offline time does not exceed a preset time period.
在一些实施例中,预设的覆盖逻辑为按照运行数据的时间先后顺序,利用最新的离线数据对存储时间最早的历史数据进行覆盖。In some embodiments, the preset overwriting logic is to overwrite the oldest stored historical data with the latest offline data in the chronological order of the running data.
在一些实施例中,无线通信模组中的存储空间能够3天的运行数据。在电子设备的已离线时间超过3天的情况下,则删除存储的第1天的历史数据,将第4天的运行数据进行 存储。此时电子设备中存储的运行数据包括:第2天的运行数据、第3天的运行数据和第4天的运行数据。这样能够覆盖已存储的历史数据,从而节省出存储空间,使得无线通信模组能够存储新的运行数据。In some embodiments, the storage space in the wireless communication module can store 3 days of operating data. If the electronic device has been offline for more than 3 days, the stored historical data of the first day is deleted and the operating data of the fourth day is stored. The operation data stored in the electronic device at this time includes: the operation data of the second day, the operation data of the third day, and the operation data of the fourth day. This can overwrite the stored historical data, thereby saving storage space, so that the wireless communication module can store new operation data.
进一步的,无线通信模组查询电子设备的运行数据,获得查询结果后,还包括:无线通信模组监测电子设备的运行数据,在电子设备的运行数据没有发生变化的情况下,将查询结果确定为离线数据。存储离线数据。Furthermore, after the wireless communication module queries the operation data of the electronic device and obtains the query result, the method further includes: the wireless communication module monitors the operation data of the electronic device, and when the operation data of the electronic device does not change, determines the query result as offline data. Storing offline data.
在一些实施例中,在电子设备离线后,在无线通信模组监测到电子设备的运行数据没有发生变化的情况下,则将查询结果中的运行数据和查询时间确定各位离线数据并进行存储。其中,查询时间为该运行数据的开始时间。In some embodiments, after the electronic device is offline, if the wireless communication module detects that the operation data of the electronic device has not changed, the operation data and query time in the query result are determined as offline data and stored. The query time is the start time of the operation data.
结合图2所示,本公开实施例提供一种用于获取离线数据的方法,应用于无线通信模组,无线通信模组设置在电子设备内,在电子设备离线的情况下,无线通信模组用于存储电子设备处于离线状态时的运行数据;该方法包括:As shown in FIG. 2 , an embodiment of the present disclosure provides a method for acquiring offline data, which is applied to a wireless communication module. The wireless communication module is arranged in an electronic device. When the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when it is offline. The method includes:
步骤S201,无线通信模组对电子设备进行监测,获得监测结果。Step S201: The wireless communication module monitors the electronic device to obtain monitoring results.
步骤S202,无线通信模组在监测结果为监测到电子设备离线的情况下,查询电子设备的运行数据,获得查询结果。Step S202: When the monitoring result shows that the electronic device is offline, the wireless communication module queries the operation data of the electronic device to obtain the query result.
步骤S203,无线通信模组监测电子设备的运行数据,判断电子设备的运行数据是否发生变化;在电子设备的运行数据发生变化的情况下,执行步骤S204;或,在电子设备的运行数据未发生变化的情况下,执行步骤S206。In step S203, the wireless communication module monitors the operating data of the electronic device and determines whether the operating data of the electronic device has changed; if the operating data of the electronic device has changed, step S204 is executed; or, if the operating data of the electronic device has not changed, step S206 is executed.
步骤S204,无线通信模组获取电子设备的运行数据的变化情况。然后执行步骤S205。In step S204, the wireless communication module obtains the change of the operation data of the electronic device, and then executes step S205.
步骤S205,无线通信模组将查询结果和变化情况确定为离线数据。然后执行步骤S207。In step S205, the wireless communication module determines the query result and the change status as offline data, and then executes step S207.
步骤S206,无线通信模组将查询结果确定为离线数据。然后执行步骤S207。In step S206, the wireless communication module determines the query result as offline data, and then executes step S207.
步骤S207,无线通信模组存储离线数据。Step S207: the wireless communication module stores offline data.
采用本公开实施例提供的用于获取离线数据的方法,通过在电子设备的运行数据发生变化的情况下,才将变化情况确定为离线数据并存储到无线通信模组。避免了电子设备在离线状态下每查询一次运行数据就存储一次,从而节省存储空间,以能够解决在获取电子设备的离线数据时存储空间不够用的问题。By adopting the method for obtaining offline data provided by the embodiment of the present disclosure, the change is determined as offline data and stored in the wireless communication module only when the operation data of the electronic device changes. This avoids storing the operation data every time the electronic device queries it in an offline state, thereby saving storage space and solving the problem of insufficient storage space when obtaining offline data of the electronic device.
进一步的,无线通信模组存储离线数据后,还包括:无线通信模组在监测到电子设备在线的情况下,将离线数据上传给预设的服务器。这样,通过在电子设备重新联网在线后,无线通信模组将存储的离线数据上传给服务器,解决了在电子设备离线后难以获取电子设备的运行数据的问题。Furthermore, after the wireless communication module stores the offline data, the wireless communication module also includes: when the wireless communication module detects that the electronic device is online, the offline data is uploaded to a preset server. In this way, after the electronic device is reconnected to the network, the wireless communication module uploads the stored offline data to the server, thereby solving the problem of difficulty in obtaining the operation data of the electronic device after the electronic device is offline.
结合图3所示,本公开实施例提供一种用于获取离线数据的方法,应用于无线通信模 组,无线通信模组设置在电子设备内,在电子设备离线的情况下,无线通信模组用于存储电子设备处于离线状态时的运行数据;该方法包括:In conjunction with FIG3, the present disclosure provides a method for obtaining offline data, which is applied to a wireless communication module. The wireless communication module is arranged in the electronic device, and when the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when it is offline; the method comprises:
步骤S301,无线通信模组对电子设备进行监测,获得监测结果。Step S301: The wireless communication module monitors the electronic device to obtain monitoring results.
步骤S302,无线通信模组在监测结果为监测到电子设备离线的情况下,查询电子设备的运行数据,获得查询结果。Step S302: When the monitoring result shows that the electronic device is offline, the wireless communication module queries the operation data of the electronic device to obtain the query result.
步骤S303,无线通信模组监测电子设备的运行数据,在电子设备的运行数据发生变化的情况下,获取电子设备的运行数据的变化情况。Step S303: The wireless communication module monitors the operating data of the electronic device, and obtains the change of the operating data of the electronic device when the operating data of the electronic device changes.
步骤S304,无线通信模组将查询结果和变化情况确定为离线数据。In step S304, the wireless communication module determines the query result and the change status as offline data.
步骤S305,无线通信模组存储离线数据。Step S305: the wireless communication module stores offline data.
步骤S306,无线通信模组在监测到电子设备在线的情况下,将离线数据上传给预设的服务器。Step S306: When the wireless communication module detects that the electronic device is online, the wireless communication module uploads the offline data to a preset server.
采用本公开实施例提供的用于获取离线数据的方法,通过在电子设备的运行数据发生变化的情况下,才将变化情况确定为离线数据并存储到无线通信模组。避免了电子设备在离线状态下每查询一次运行数据就存储一次,从而节省存储空间,以能够解决在获取电子设备的离线数据时存储空间不够用的问题。同时,通过在电子设备重新联网处于在线状态时,将存储的离线数据上传给服务器,便于服务器获取电子设备处于离线状态这段时间内的运行数据。The method for obtaining offline data provided by the embodiment of the present disclosure is adopted. When the operating data of the electronic device changes, the change is determined as offline data and stored in the wireless communication module. This avoids storing the operating data every time the electronic device is queried in an offline state, thereby saving storage space, so as to solve the problem of insufficient storage space when obtaining offline data of the electronic device. At the same time, by uploading the stored offline data to the server when the electronic device is reconnected to the network and is in an online state, it is convenient for the server to obtain the operating data of the electronic device during the period when it is offline.
结合图4所示,本公开实施例提供一种用于获取离线数据的装置200,应用于无线通信模组,无线通信模组设置在电子设备内,在电子设备离线的情况下,无线通信模组用于存储电子设备处于离线状态时的运行数据。该装置包括:监测模块401、查询模块402、获取模块403、确定模块404和存储模块405。监测模块401被配置为对电子设备进行监测,获得监测结果。并将监测结果发送给查询模块。查询模块402被配置为接收监测模块发送的监测结果。在监测结果为监测到电子设备离线的情况下,查询电子设备的运行数据,获得查询结果。并将查询结果发送给确定模块。获取模块403被配置为监测电子设备的运行数据,在电子设备的运行数据发生变化的情况下,获取电子设备的运行数据的变化情况。并将变化情况发送给确定模块。确定模块404被配置为接收查询模块发送的查询结果,接收获取模块发送的变化情况。将查询结果和变化情况确定为离线数据。并将离线数据发送给存储模块。存储模块405被配置为接收确定模块发送的离线数据,并存储离线数据。As shown in FIG. 4 , an embodiment of the present disclosure provides a device 200 for acquiring offline data, which is applied to a wireless communication module. The wireless communication module is arranged in an electronic device. When the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when it is offline. The device includes: a monitoring module 401, a query module 402, an acquisition module 403, a determination module 404, and a storage module 405. The monitoring module 401 is configured to monitor the electronic device and obtain a monitoring result. And send the monitoring result to the query module. The query module 402 is configured to receive the monitoring result sent by the monitoring module. When the monitoring result is that the electronic device is offline, query the operation data of the electronic device and obtain the query result. And send the query result to the determination module. The acquisition module 403 is configured to monitor the operation data of the electronic device, and when the operation data of the electronic device changes, obtain the change of the operation data of the electronic device. And send the change to the determination module. The determination module 404 is configured to receive the query result sent by the query module and receive the change sent by the acquisition module. The query result and the change are determined as offline data. And send the offline data to the storage module. The storage module 405 is configured to receive the offline data sent by the determination module and store the offline data.
采用本公开实施例提供的用于获取离线数据的装置,通过监测模块对电子设备进行监测,获得监测结果。查询模块在监测结果为监测到电子设备离线的情况下,查询电子设备的运行数据,获得查询结果。获取模块监测电子设备的运行数据,在电子设备的运行数据 发生变化的情况下,获取电子设备的运行数据的变化情况。确定模块将查询结果和变化情况确定为离线数据。存储模块存储离线数据。The device for obtaining offline data provided by the embodiment of the present disclosure is used to monitor the electronic device through the monitoring module to obtain the monitoring result. When the monitoring result is that the electronic device is detected to be offline, the query module queries the operation data of the electronic device to obtain the query result. The acquisition module monitors the operation data of the electronic device. In case of a change, the change of the operation data of the electronic device is obtained. The determination module determines the query result and the change as offline data. The storage module stores the offline data.
进一步的,查询模块被配置为通过以下方式查询电子设备的运行数据,获得查询结果:将查询到的运行数据和查询时间确定为查询结果。Further, the query module is configured to query the operation data of the electronic device in the following manner to obtain the query result: determine the queried operation data and the query time as the query result.
进一步的,获取模块被配置为通过以下方式监测电子设备的运行数据,在电子设备的运行数据发生变化的情况下,获取电子设备的运行数据的变化情况:获取发生变化后的运行数据和变化时间,将发生变化后的运行数据和变化时间确定为电子设备的运行数据的变化情况。Furthermore, the acquisition module is configured to monitor the operating data of the electronic device in the following manner, and when the operating data of the electronic device changes, obtain the change in the operating data of the electronic device: obtain the operating data after the change and the change time, and determine the operating data after the change and the change time as the change in the operating data of the electronic device.
进一步的,存储模块被配置为通过以下方式存储离线数据,包括:获取电子设备的已离线时间。在已离线时间超过预设时间段的情况下,按照预设的覆盖逻辑利用离线数据对已存储的历史数据进行覆盖。Furthermore, the storage module is configured to store offline data in the following manner, including: obtaining offline time of the electronic device, and overwriting the stored historical data with offline data according to a preset overwriting logic when the offline time exceeds a preset period of time.
进一步的,存储模块还被配置为通过以下方式查询电子设备的运行数据,获得查询结果后:监测电子设备的运行数据,在电子设备的运行数据没有发生变化的情况下,将查询结果确定为离线数据。存储离线数据。Furthermore, the storage module is further configured to query the operation data of the electronic device in the following manner, and after obtaining the query result: monitoring the operation data of the electronic device, and determining the query result as offline data when the operation data of the electronic device has not changed. Storing offline data.
进一步的,用于获取离线数据的装置还包括上传模块,上传模块被配置为存储离线数据后,在监测到电子设备在线的情况下,将离线数据上传给预设的服务器。Furthermore, the device for acquiring offline data also includes an uploading module, which is configured to store the offline data and upload the offline data to a preset server when it is detected that the electronic device is online.
结合图5所示,本公开实施例提供一种用于获取离线数据的装置300,包括处理器(processor)500和存储器(memory)501。可选地,用于获取离线数据的装置300还可以包括通信接口(Communication Interface)502和总线503。其中,处理器500、通信接口502、存储器501可以通过总线503完成相互间的通信。通信接口502可以用于信息传输。处理器500可以调用存储器501中的逻辑指令,以执行上述实施例的用于获取离线数据的方法。As shown in FIG5 , an embodiment of the present disclosure provides a device 300 for acquiring offline data, including a processor 500 and a memory 501. Optionally, the device 300 for acquiring offline data may also include a communication interface 502 and a bus 503. The processor 500, the communication interface 502, and the memory 501 may communicate with each other through the bus 503. The communication interface 502 may be used for information transmission. The processor 500 may call the logic instructions in the memory 501 to execute the method for acquiring offline data of the above embodiment.
采用本公开实施例提供的用于获取离线数据的装置,通过对电子设备进行监测,获得监测结果。在监测结果为监测到电子设备离线的情况下,查询电子设备的运行数据,获得查询结果。监测电子设备的运行数据,在电子设备的运行数据发生变化的情况下,获取电子设备的运行数据的变化情况。将查询结果和变化情况确定为离线数据,存储离线数据。这样,通过在电子设备的运行数据发生变化的情况下,才将变化情况确定为离线数据并存储到无线通信模组。避免了电子设备在离线状态下每查询一次运行数据就存储一次,从而节省存储空间,以能够解决在获取电子设备的离线数据时存储空间不够用的问题。The device for obtaining offline data provided by the embodiment of the present disclosure is used to monitor the electronic device to obtain the monitoring result. When the monitoring result is that the electronic device is detected to be offline, the operation data of the electronic device is queried to obtain the query result. The operation data of the electronic device is monitored, and when the operation data of the electronic device changes, the change of the operation data of the electronic device is obtained. The query result and the change are determined as offline data, and the offline data is stored. In this way, only when the operation data of the electronic device changes, the change is determined as offline data and stored in the wireless communication module. It is avoided that the operation data of the electronic device is stored every time it is queried in the offline state, thereby saving storage space, so as to solve the problem of insufficient storage space when obtaining offline data of the electronic device.
此外,上述的存储器501中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。 In addition, the logic instructions in the memory 501 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
存储器501作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令/模块。处理器500通过运行存储在存储器501中的程序指令/模块,从而执行功能应用以及数据处理,即实现上述实施例中用于获取离线数据的方法。The memory 501 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions/modules corresponding to the method in the embodiment of the present disclosure. The processor 500 executes functional applications and data processing by running the program instructions/modules stored in the memory 501, that is, implementing the method for obtaining offline data in the above embodiment.
存储器501可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器501可以包括高速随机存取存储器,还可以包括非易失性存储器。The memory 501 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 501 may include a high-speed random access memory and may also include a non-volatile memory.
结合图6所示,本公开实施例提供了一种无线通信模组100,包括:无线通信模组本体,以及上述的用于获取离线数据的装置200(300),用于获取离线数据的装置200(300)被安装于所述无线通信模组本体。这里所表述的安装关系,并不仅限于在产品内部放置,还包括了与产品的其他元器件的安装连接,包括但不限于物理连接、电性连接或者信号传输连接等。本领域技术人员可以理解的是,用于获取离线数据的装置200(300)可以适配于可行的产品主体,进而实现其他可行的实施例。As shown in FIG6 , an embodiment of the present disclosure provides a wireless communication module 100, including: a wireless communication module body, and the above-mentioned device 200 (300) for obtaining offline data, wherein the device 200 (300) for obtaining offline data is installed in the wireless communication module body. The installation relationship described here is not limited to placement inside the product, but also includes installation connections with other components of the product, including but not limited to physical connections, electrical connections, or signal transmission connections. It can be understood by those skilled in the art that the device 200 (300) for obtaining offline data can be adapted to a feasible product body, thereby realizing other feasible embodiments.
采用本公开实施例提供的无线通信模组,通过对电子设备进行监测,获得监测结果。在监测结果为监测到电子设备离线的情况下,查询电子设备的运行数据,获得查询结果。监测电子设备的运行数据,在电子设备的运行数据发生变化的情况下,获取电子设备的运行数据的变化情况。将查询结果和变化情况确定为离线数据,存储离线数据。这样,通过在电子设备的运行数据发生变化的情况下,才将变化情况确定为离线数据并存储到无线通信模组。避免了电子设备在离线状态下每查询一次运行数据就存储一次,从而节省存储空间,以能够解决在获取电子设备的离线数据时存储空间不够用的问题。By adopting the wireless communication module provided by the embodiment of the present disclosure, the electronic device is monitored to obtain the monitoring result. When the monitoring result is that the electronic device is detected to be offline, the operation data of the electronic device is queried to obtain the query result. The operation data of the electronic device is monitored, and when the operation data of the electronic device changes, the change of the operation data of the electronic device is obtained. The query result and the change are determined as offline data, and the offline data is stored. In this way, when the operation data of the electronic device changes, the change is determined as offline data and stored in the wireless communication module. It is avoided that the operation data of the electronic device is stored every time it is queried in the offline state, thereby saving storage space, so as to solve the problem of insufficient storage space when obtaining offline data of the electronic device.
可选地,无线通信模块包括无线网络技术Wi-Fi模组、蓝牙模组等。Optionally, the wireless communication module includes a wireless network technology Wi-Fi module, a Bluetooth module, etc.
本公开实施例提供了一种存储介质,存储有程序指令,程序指令在运行时,执行上述用于获取离线数据的方法。An embodiment of the present disclosure provides a storage medium storing program instructions, which, when executed, execute the above method for acquiring offline data.
本公开实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述用于获取离线数据的方法。An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the above-mentioned method for obtaining offline data.
本公开实施例提供了一种计算机程序,当所述计算机程序被计算机执行时,使所述计算机实现上述用于获取离线数据的方法。The embodiment of the present disclosure provides a computer program. When the computer program is executed by a computer, the computer is enabled to implement the above-mentioned method for acquiring offline data.
上述的计算机可读存储介质可以是暂态计算机可读存储介质,也可以是非暂态计算机可读存储介质。The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
本公开实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在 一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product. The computer software product is stored in A storage medium includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.
以上描述和附图充分地示出了本公开的实施例,以使本领域的技术人员能够实践它们。其他实施例可以包括结构的、逻辑的、电气的、过程的以及其他的改变。实施例仅代表可能的变化。除非明确要求,否则单独的部件和功能是可选的,并且操作的顺序可以变化。一些实施例的部分和特征可以被包括在或替换其他实施例的部分和特征。而且,本申请中使用的用词仅用于描述实施例并且不用于限制权利要求。如在实施例以及权利要求的描述中使用的,除非上下文清楚地表明,否则单数形式的“一个”(a)、“一个”(an)和“所述”(the)旨在同样包括复数形式。类似地,如在本申请中所使用的术语“和/或”是指包含一个或一个以上相关联的列出的任何以及所有可能的组合。另外,当用于本申请中时,术语“包括”(comprise)及其变型“包括”(comprises)和/或包括(comprising)等指陈述的特征、整体、步骤、操作、元素,和/或组件的存在,但不排除一个或一个以上其它特征、整体、步骤、操作、元素、组件和/或这些的分组的存在或添加。在没有更多限制的情况下,由语句“包括一个…”限定的要素,并不排除在包括所述要素的过程、方法或者设备中还存在另外的相同要素。本文中,每个实施例重点说明的可以是与其他实施例的不同之处,各个实施例之间相同相似部分可以互相参见。对于实施例公开的方法、产品等而言,如果其与实施例公开的方法部分相对应,那么相关之处可以参见方法部分的描述。The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and/or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and/or including (comprising) refer to the existence of stated features, wholes, steps, operations, elements, and/or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and/or groups of these. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
本领域技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,可以取决于技术方案的特定应用和设计约束条件。所述技术人员可以对每个特定的应用来使用不同方法以实现所描述的功能,但是这种实现不应认为超出本公开实施例的范围。所述技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
本文所披露的实施例中,所揭露的方法、产品(包括但不限于装置、设备等),可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,可以仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外, 所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例。另外,在本公开实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only exemplary. For example, the division of the units can be only a logical function division. There can be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, The mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, the functional units in the embodiments disclosed herein may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
附图中的流程图和框图显示了根据本公开实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这可以依所涉及的功能而定。在附图中的流程图和框图所对应的描述中,不同的方框所对应的操作或步骤也可以以不同于描述中所披露的顺序发生,有时不同的操作或步骤之间不存在特定的顺序。例如,两个连续的操作或步骤实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这可以依所涉及的功能而定。框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。 The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to the embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each box in the block diagram and/or flowchart, and the combination of boxes in the block diagram and/or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

Claims (12)

  1. 一种用于获取离线数据的方法,其特征在于,应用于无线通信模组,所述无线通信模组设置在电子设备内,在所述电子设备离线的情况下,所述无线通信模组用于存储所述电子设备处于离线状态时的运行数据;所述方法包括:A method for acquiring offline data, characterized in that it is applied to a wireless communication module, the wireless communication module is arranged in an electronic device, and when the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when it is in an offline state; the method comprises:
    对所述电子设备进行监测,获得监测结果;Monitoring the electronic device to obtain monitoring results;
    在所述监测结果为监测到所述电子设备离线的情况下,查询所述电子设备的运行数据,获得查询结果;When the monitoring result is that the electronic device is detected to be offline, querying the operation data of the electronic device to obtain a query result;
    监测所述电子设备的运行数据,在所述电子设备的运行数据发生变化的情况下,获取所述电子设备的运行数据的变化情况;monitoring the operating data of the electronic device, and obtaining the change of the operating data of the electronic device when the operating data of the electronic device changes;
    将所述查询结果和所述变化情况确定为离线数据;Determine the query result and the change as offline data;
    存储所述离线数据。The offline data is stored.
  2. 根据权利要求1所述的方法,其特征在于,查询所述电子设备的运行数据,获得查询结果,包括:The method according to claim 1, characterized in that querying the operation data of the electronic device to obtain the query result comprises:
    将查询到的运行数据和查询时间确定为查询结果。The queried operating data and query time are determined as the query result.
  3. 根据权利要求1或2所述的方法,其特征在于,监测所述电子设备的运行数据,在所述电子设备的运行数据发生变化的情况下,获取所述电子设备的运行数据的变化情况,包括:The method according to claim 1 or 2, characterized in that monitoring the operating data of the electronic device and obtaining the change of the operating data of the electronic device when the operating data of the electronic device changes, comprises:
    获取发生变化后的运行数据和变化时间;Obtain the running data and change time after the change;
    将所述发生变化后的运行数据和所述变化时间确定为所述电子设备的运行数据的变化情况。The changed operating data and the change time are determined as the change status of the operating data of the electronic device.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,存储所述离线数据,包括:The method according to any one of claims 1 to 3, characterized in that storing the offline data comprises:
    获取所述电子设备的已离线时间;Obtaining offline time of the electronic device;
    在所述已离线时间超过预设时间段的情况下,按照预设的覆盖逻辑利用所述离线数据对已存储的历史数据进行覆盖。When the offline time exceeds a preset time period, the stored historical data is overwritten with the offline data according to a preset overwriting logic.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,查询所述电子设备的运行数据,获得查询结果后,还包括:The method according to any one of claims 1 to 4, characterized in that after querying the operation data of the electronic device and obtaining the query result, it also includes:
    监测所述电子设备的运行数据,在所述电子设备的运行数据没有发生变化的情况下,将所述查询结果确定为离线数据;monitoring the operation data of the electronic device, and determining the query result as offline data when the operation data of the electronic device has not changed;
    存储所述离线数据。The offline data is stored.
  6. 根据权利要求1至5任一项所述的方法,其特征在于,存储所述离线数据后, 还包括:The method according to any one of claims 1 to 5, characterized in that after storing the offline data, Also includes:
    在监测到所述电子设备在线的情况下,将所述离线数据上传给预设的服务器。When it is detected that the electronic device is online, the offline data is uploaded to a preset server.
  7. 一种用于获取离线数据的装置,应用于无线通信模组,所述无线通信模组设置在电子设备内,在所述电子设备离线的情况下,所述无线通信模组用于存储所述电子设备处于离线状态时的运行数据;所述装置包括:A device for acquiring offline data is applied to a wireless communication module, wherein the wireless communication module is arranged in an electronic device, and when the electronic device is offline, the wireless communication module is used to store the operation data of the electronic device when the electronic device is in an offline state; the device comprises:
    监测模块,被配置为对所述电子设备进行监测,获得监测结果;A monitoring module, configured to monitor the electronic device and obtain monitoring results;
    查询模块,被配置为在所述监测结果为监测到所述电子设备离线的情况下,查询所述电子设备的运行数据,获得查询结果;A query module, configured to query the operation data of the electronic device to obtain a query result when the monitoring result is that the electronic device is detected to be offline;
    获取模块,被配置为监测所述电子设备的运行数据,在所述电子设备的运行数据发生变化的情况下,获取所述电子设备的运行数据的变化情况;an acquisition module, configured to monitor the operation data of the electronic device, and acquire the change of the operation data of the electronic device when the operation data of the electronic device changes;
    确定模块,被配置为将所述查询结果和所述变化情况确定为离线数据;A determination module, configured to determine the query result and the change status as offline data;
    存储模块,被配置为存储所述离线数据。The storage module is configured to store the offline data.
  8. 一种用于获取离线数据的装置,包括处理器和存储有程序指令的存储器,其特征在于,所述处理器被配置为在运行所述程序指令时,执行如权利要求1至6任一项所述的用于获取离线数据的方法。A device for acquiring offline data comprises a processor and a memory storing program instructions, wherein the processor is configured to execute the method for acquiring offline data according to any one of claims 1 to 6 when running the program instructions.
  9. 一种无线通信模组,其特征在于,包括:A wireless communication module, characterized by comprising:
    无线通信模组本体;Wireless communication module body;
    如权利要求7或8所述的用于获取离线数据的装置,被安装于所述无线通信模组本体。The device for acquiring offline data as described in claim 7 or 8 is installed on the wireless communication module body.
  10. 一种存储介质,存储有程序指令,其特征在于,所述程序指令在运行时,执行如权利要求1至6任一项所述的用于获取离线数据的方法。A storage medium storing program instructions, characterized in that when the program instructions are run, the method for acquiring offline data according to any one of claims 1 to 6 is executed.
  11. 一种计算机程序,当所述计算机程序被计算机执行时,使所述计算机实现如权利要求1至6任一项所述的用于获取离线数据的方法。A computer program, when executed by a computer, enables the computer to implement the method for acquiring offline data according to any one of claims 1 to 6.
  12. 一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机指令,当所述程序指令被计算机执行时,使所述计算机实现如权利要求1至6任一项所述的用于获取离线数据的方法。 A computer program product, comprising computer instructions stored on a computer-readable storage medium, and when the program instructions are executed by a computer, the computer is enabled to implement the method for acquiring offline data according to any one of claims 1 to 6.
PCT/CN2023/096389 2022-10-31 2023-05-25 Method and apparatus for acquiring offline data, and wireless communication module and storage medium WO2024093211A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211347334.7A CN117997951A (en) 2022-10-31 2022-10-31 Method and device for acquiring offline data, wireless communication module and storage medium
CN202211347334.7 2022-10-31

Publications (1)

Publication Number Publication Date
WO2024093211A1 true WO2024093211A1 (en) 2024-05-10

Family

ID=90898092

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/096389 WO2024093211A1 (en) 2022-10-31 2023-05-25 Method and apparatus for acquiring offline data, and wireless communication module and storage medium

Country Status (2)

Country Link
CN (1) CN117997951A (en)
WO (1) WO2024093211A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050041898A (en) * 2003-10-30 2005-05-04 주식회사 오토브레인 Data backup system and method, and recording medium thereof
CN113407623A (en) * 2021-05-31 2021-09-17 北京达佳互联信息技术有限公司 Data processing method and device and server
CN113559502A (en) * 2021-07-27 2021-10-29 Oppo广东移动通信有限公司 Game offline processing method and device, storage medium and electronic equipment
CN113596884A (en) * 2021-08-19 2021-11-02 深圳创维数字技术有限公司 Equipment state monitoring method, equipment state monitoring device and readable storage medium
CN114090631A (en) * 2021-11-02 2022-02-25 杭州网易云音乐科技有限公司 Data query method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050041898A (en) * 2003-10-30 2005-05-04 주식회사 오토브레인 Data backup system and method, and recording medium thereof
CN113407623A (en) * 2021-05-31 2021-09-17 北京达佳互联信息技术有限公司 Data processing method and device and server
CN113559502A (en) * 2021-07-27 2021-10-29 Oppo广东移动通信有限公司 Game offline processing method and device, storage medium and electronic equipment
CN113596884A (en) * 2021-08-19 2021-11-02 深圳创维数字技术有限公司 Equipment state monitoring method, equipment state monitoring device and readable storage medium
CN114090631A (en) * 2021-11-02 2022-02-25 杭州网易云音乐科技有限公司 Data query method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN117997951A (en) 2024-05-07

Similar Documents

Publication Publication Date Title
US20120198252A1 (en) System and Method for Managing and Detecting Server Power Connections
CN106502814B (en) Method and device for recording error information of PCIE (peripheral component interface express) equipment
CN104346264A (en) System and method for processing system event logs
CN103136083A (en) Test device and test method of universal serial bus
CN105306860A (en) Video recording data storage method and device
CN105739668A (en) Power management method and power management system of notebook computers
US20130116801A1 (en) System, method and recording medium for driving a programmable logic controller
CN108234189B (en) Alarm data processing method and device
CN106403188A (en) Air-conditioner maintenance method and device
CN106155797A (en) Terminal unit and the changing method of performance mode thereof
JP6599064B1 (en) Data delivery control device, method, and program
WO2024093211A1 (en) Method and apparatus for acquiring offline data, and wireless communication module and storage medium
CN103778024A (en) Server system and message processing method thereof
KR20170009029A (en) INDUSTRIAL IoT SERVICE SYSTEM BASED ON CLOUD
CN110247886B (en) Efficient time series data communication
CN111324504B (en) Method and device for monitoring running state of power communication network
JP5089716B2 (en) Data collection device, air conditioning device, data collection system, data collection method and program
CN107133189B (en) Isolated communication structure for machine instrument
CN111130920B (en) Hardware information acquisition method, device, server and storage medium
CN114116275A (en) Terminal abnormity repairing method and device, storage medium and electronic equipment
JP5466277B1 (en) Portable storage device
CN104714776A (en) Electronic device and baseboard management controller input simplified system and simplified method
CN110413480A (en) Processing method and processing device for robot operating status
WO2024078072A1 (en) Method and apparatus for controlling air conditioner, electronic device and storage medium
CN109947221A (en) A kind of method of server radiating regulation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23884151

Country of ref document: EP

Kind code of ref document: A1