Data processing method and mirror server
By managing memory blocks and using low-power communication protocols through a mirror server, the problem of shortened battery life in low-power wireless personal area network systems is solved, enabling efficient data transmission and storage in electronic devices and extending device uptime.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-23
- Publication Date
- 2026-03-24
AI Technical Summary
Electronic devices in low-power wireless personal area network systems need to operate for extended periods without battery replacement. Data transmission consumes power, leading to shortened battery life. How can we effectively manage and store historical sensor data to reduce power consumption?
A mirror server is used to receive and store sensing data. The memory blocks are managed through a flip-flop mechanism and a catch-up mechanism to reduce the data transmission frequency of electronic devices. The low-power communication protocol and catch-up mechanism are combined to ensure data consistency.
By using mirror servers to assist in storing and processing historical sensing data, electronic devices only need to periodically transmit current sensing data, significantly saving power consumption and extending battery life.
Smart Images

Figure CN117331900B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to a data processing method, and in particular, to a data processing method and a mirror server for a low-power wireless personal area network system. BACKGROUND
[0002] The low-power wireless personal area network system can include at least one electronic device to generate sensing data such as temperature, humidity, air quality, soil quality, or gas usage. In addition, a user can wish to obtain historical sensing data of the electronic device, and thus how to store and process the historical sensing data of the electronic device becomes an important issue in the field. Generally, the electronic device of the low-power wireless personal area network system is a battery-powered device, and the user can further wish the battery-powered device to operate for more than 10 years without replacing the battery. However, data transmission consumes power, and if the electronic device transmits more sensing data for the historical sensing data that the user wishes to obtain, more power is consumed by the data transmission, which increases the power consumption of the electronic device and reduces the life of the battery.
[0003] Therefore, there is a need to provide a data processing method and a mirror server to solve the above problems. SUMMARY
[0004] To overcome the deficiencies of the prior art, the embodiments of the present application provide a data processing method for a low-power wireless personal area network system. The low-power wireless personal area network system includes electronic devices and a mirror server in communication with each other. The mirror server includes a memory. The data processing method includes configuring the mirror server to: receive sensing data generated and transmitted by the electronic devices at every interval time, and store the sensing data in memory blocks of the memory indexed as a first time segment, wherein the memory blocks further include N memory blocks indexed as a second time segment one unit time before the first time segment to an N+1 time segment N unit times before the first time segment, N is an integer greater than 1, and according to the interval time, the electronic devices generate the last piece of sensing data of the first time segment at a specific time; and determine whether the last piece of sensing data of the first time segment is received within a fault-tolerant time segment between the first time segment and the next time segment, and in response to determining that the last piece of sensing data of the first time segment is received within the fault-tolerant time segment, triggering a flip mechanism to move the sensing data stored in the memory blocks indexed as the k+1 time segment k unit times before the first time segment to the memory blocks indexed as the k+2 time segment k+1 unit times before the first time segment, and then move the sensing data stored in the memory blocks indexed as the first time segment to the memory blocks indexed as the second time segment, wherein k is an integer from N-1 to 1.
[0005] In addition, the embodiment of the present application provides a mirror server for a low-power wireless personal area network system. The low-power wireless personal area network system further comprises an electronic device, and the mirror server comprises a memory, a communication circuit and a processing circuit. The memory comprises a plurality of memory blocks. The communication circuit is used to be communicatively connected with the electronic device, receive sensing data generated and transmitted by the electronic device at every interval time, and store the sensing data in the memory blocks indexed as a first time section. The memory blocks further comprise N memory blocks indexed as a second time section to an N+1 time section, which are 1 unit time before the first time section, N is an integer greater than 1, and according to the interval time, the electronic device generates the last piece of sensing data of the first time section at a specific time. The processing circuit is used to determine whether the last piece of sensing data of the first time section is received within a fault-tolerant time section between the first time section and a next time section, and in response to determining that the last piece of sensing data of the first time section is received within the fault-tolerant time section, the processing circuit triggers a flip mechanism to move the sensing data stored in the memory blocks indexed as a k+1 time section, which is k unit time before the first time section, to the memory blocks indexed as a k+2 time section, which is k+1 unit time before the first time section, and then move the sensing data stored in the memory blocks indexed as the first time section to the memory blocks indexed as the second time section, wherein k is an integer from N-1 to 1.
[0006] The data processing method and the mirror server for the low-power wireless personal area network system provided by the present application can assist the mirror server to store and process the historical sensing data of the electronic device, so that the electronic device only needs to periodically transmit the currently generated sensing data to the mirror server, thereby saving the power required for transmitting a large amount of data.
[0007] For a more detailed understanding of the features and technical contents of the present application, please refer to the following detailed description of the present application and the accompanying drawings. However, the provided drawings are only used for reference and illustration, and are not used to limit the present application. BRIEF DESCRIPTION OF DRAWINGS
[0008] Figure 1 is a schematic diagram of a low-power wireless personal area network system provided by the embodiment of the present application.
[0009] Figure 2 is a step flowchart of a data processing method provided by the embodiment of the present application.
[0010] Figure 3 is a schematic diagram of memory blocks under the flip mechanism triggered by the mirror server provided by the embodiment of the present application.
[0011] Figure 4 is a flow chart of a step of determining whether the mirror server has received the last sensing data of the first day within the fault-tolerant time period.
[0012] Figure 5 is a schematic diagram of the mirror server triggering the inheritance mechanism.
[0013] Figure 6 is a functional block diagram of the mirror server.
[0014] Main component symbol explanation:
[0015] 1 Low power wireless personal area network system
[0016] 10, 20 Electronic device
[0017] SD Sensing data
[0018] 12 Mirror server
[0019] AS Request information
[0020] AL Alarm information
[0021] 14 User device
[0022] RE Read information
[0023] IH Inheritance information
[0024] S210-S240, S410-S440 Step flow
[0025] 120 Memory
[0026] 120_0-120_M Memory blocks
[0027] 122 Communication circuit
[0028] 124 Processing circuit DETAILED DESCRIPTION
[0029] The following is a description of the embodiments of the present application by means of specific embodiments, and those skilled in the art can understand the advantages and effects of the present application from the content provided in the description. The present application can be implemented or applied by other different embodiments, and each detail in the description can be modified and changed based on different viewpoints and applications without departing from the concept of the present application. In addition, the drawings of the present application are only simple schematic illustrations and are not drawn according to the actual size, and it is declared in advance. The following embodiments will further illustrate the related technical content of the present application, but the content provided is not intended to limit the protection scope of the present application.
[0030] Referring to Figure 1 , Figure 1 is a schematic diagram of a low power wireless personal area network system according to an embodiment of the present application. As shown in Figure 1 , the low power wireless personal area network system 1 comprises an electronic device 10. It is noted that the electronic device in the present embodiment is only used as an example of one for the convenience of the following description, but the present application does not limit the number of electronic devices in the low power wireless personal area network system 1. In other embodiments, the low power wireless personal area network system 1 can also comprise a plurality of electronic devices. In addition, the electronic device 10 in the present embodiment can be an electronic device powered by a battery or solar energy, such as a gas meter, which can comprise a gas flow sensor and a network communication module for generating sensing data SD of gas usage, but the present application is not limited thereto.
[0031] In particular, the electronic device 10 is configured to generate the sensing data SD at every interval time, and according to the interval time, the electronic device 10 generates the last piece of sensing data SD of the day at midnight 12 o'clock of the day. For example, in the case of an interval time of 4 hours, the electronic device 10 can generate the first to fifth pieces of sensing data SD of the day at 4 o'clock, 8 o'clock, 12 o'clock, 4 o'clock and 8 o'clock of the day, respectively, and generate the last piece (i.e. the sixth piece) of sensing data SD of the day at midnight 12 o'clock of the day. However, data transmission consumes power, and if the electronic device 10 transmits more pieces of sensing data SD to the user device 14 for the historical sensing data that the user device 14 wants to obtain, more power will be consumed for data transmission, which increases the power consumption of the electronic device 10 and reduces the life of its battery.
[0032] To solve the above problem, the present application provides a mirror server 12 in the low power wireless personal area network system 1 for collecting and storing the sensing data SD from the electronic device 10 (i.e. the low power wireless personal area network system 1 comprises the electronic device 10 and the mirror server 12 in communication with each other), and in response to the request of the user device 14, the mirror server 12 can directly provide the sensing data SD stored therein to the user device 14, so that the user device 14 does not need to obtain the sensing data SD from the electronic device 10.
[0033] In other words, the mirror server 12 can assist in storing and processing the historical sensing data of the electronic device 10. Since the mirror server 12 has already stored and processed the historical sensing data, the electronic device 10 only needs to periodically transmit the sensing data SD currently generated by it to the mirror server 12, so that the electronic device 10 can save the power required for transmitting a large amount of data.
[0034] More specifically, in the present application, the electronic device 10 can be configured to transmit the sensed data SD to the mirror server 12 immediately after the sensed data SD is generated. In addition, in order to reduce power consumption, the electronic device 10 will keep its network communication module in an off state most of the time, so that the user device 14 cannot retrieve the sensed data SD from the electronic device 10 at any time. In contrast, since the power supply of the mirror server 12 is provided by the mains, the communication circuit of the mirror server 12 can be kept in an on state, so that the user device 14 can also retrieve the sensed data SD from the mirror server 12 at any time.
[0035] On the other hand, the electronic device 10 is packet-based for data transmission, and the retrieval of historical sensed data usually uses time stamps as indexes. However, in order to also save power for data transmission, in the present application, the payload of the packet transmitted by the electronic device 10 can also be limited to only include the content of the sensed data SD, without including the time stamp recording the time when the sensed data SD is generated. Therefore, the present application designs a rollover mechanism on the mirror server 12, so that the mirror server 12 can store and process the historical sensed data of the electronic device 10 without having to transmit the time stamp from the electronic device 10. Please refer to Figure 2 , Figure 2 is a step flowchart of the data processing method provided by an embodiment of the present application.
[0036] More specifically, the mirror server 12 includes a memory, and the data processing method includes configuring the mirror server 12 to perform Figure 2 the steps of receiving the sensed data SD generated and transmitted by the electronic device 10 at every interval time, and storing the sensed data SD in a plurality of memory blocks of the memory indexed as the memory block of the current day. The memory blocks can also include N memory blocks indexed as the memory block of the previous 1 day to the previous N day, N being an integer greater than 1. It should be understood that the memory block indexed as the current day is used to store the sensed data SD of the current day, and the memory block indexed as the previous 1 day is used to store the sensed data SD of the previous 1 day, and so on, and the memory block indexed as the previous N day is used to store the sensed data SD of the previous N day.
[0037] However, at the end of the day, the sensing data SD of the previous N-1 day becomes the sensing data SD of the previous N day, and so on, the sensing data SD of the previous 1 day becomes the sensing data SD of the previous 2 day, and the sensing data SD of the current day becomes the sensing data SD of the previous 1 day, so that the mirror server 12 can trigger the flipping mechanism to move the sensing data SD of the previous N-1 day from the memory block indexed to the previous N-1 day to the memory block indexed to the previous N day for storage to become the sensing data SD of the previous N day, and so on, to move the sensing data SD of the previous 1 day from the memory block indexed to the previous 1 day to the memory block indexed to the previous 2 day for storage to become the sensing data SD of the previous 2 day, and then to move the sensing data SD of the current day from the memory block indexed to the current day to the memory block indexed to the previous 1 day for storage to become the sensing data SD of the previous 1 day.
[0038] In addition, although the electronic device 10 is configured to transmit the sensing data SD of the last transaction of the current day to the mirror server 12 at midnight of the current day, due to transmission delay or time bias between the mirror server 12 and the electronic device 10 (i.e. the clock time of the mirror server 12 can be faster or slower than the clock time of the electronic device 10), the mirror server 12 can receive the sensing data SD of the last transaction of the current day in advance or delay, so that the present application defines a fault-tolerant time section between the two adjacent days. The length of the fault-tolerant time section is less than the interval time, and can preferably be 2% of the interval time, but the present application is not limited thereto. For example, in the case where the length of the fault-tolerant time section is 10 minutes, it can be known that the fault-tolerant time section between the two adjacent days is from 11:55 in the afternoon of the first day to 12:05 in the morning of the second day, but the present application is not limited thereto. It should be understood that the so-called first day is the earlier one of the two adjacent days.
[0039] In other words, if the mirror server 12 does not receive the last piece of sensing data SD of the first day within the fault tolerance time period between the first day and the second day of the adjacent two days, the mirror server 12 will wait for a further period of time, and thus the mirror server 12 will trigger the rollover mechanism after the further period of time. In addition, if the mirror server 12 receives the last piece of sensing data SD of the first day within the fault tolerance time period between the first day and the second day of the adjacent two days, the mirror server 12 can determine the end of the first day and directly trigger the rollover mechanism. Since packet loss is inevitable in a wireless network, the present application further provides a catch-up mechanism at the mirror server 12 to ensure the consistency of the data between the mirror server 12 and the electronic device 10. That is, if the mirror server 12 does not receive the last piece of sensing data SD of the first day within the fault tolerance time period between the first day and the second day of the adjacent two days, the mirror server 12 can trigger the catch-up mechanism to request the electronic device 10 to retransmit the sensing data SD of the first day in addition to triggering the rollover mechanism.
[0040] In summary, in step S220, the mirror server 12 determines whether the last piece of sensing data SD of the first day of the adjacent two days is received within the fault tolerance time period between the adjacent two days. If yes, in step S230, the mirror server 12 triggers the rollover mechanism to move the sensing data SD stored in the memory block indexed as the kth day to the memory block indexed as the (k+1)th day, and then move the sensing data SD stored in the memory block indexed as the current day to the memory block indexed as the (k-1)th day. If no, in step S240, the mirror server 12 triggers the catch-up mechanism to transmit a request information AS to the electronic device 10 to request the electronic device 10 to retransmit the sensing data SD of the first day, and triggers the rollover mechanism to move the sensing data SD stored in the memory block indexed as the kth day to the memory block indexed as the (k+1)th day, and then move the sensing data SD stored in the memory block indexed as the current day to the memory block indexed as the (k-1)th day. It should be understood that k is an integer from N-1 to 1.
[0041] For further understanding of the present application, reference can be made to the following detailed description together with the drawings in which Figure 3 , Figure 3 is a schematic diagram of the memory blocks at the mirror server triggering the rollover mechanism according to an embodiment of the present application. For the convenience of the following description, Figure 3 The embodiment of the present application can assume that the memory block indexed as the current day only stores one piece of sensing data SD of the gas usage of the current day, and the memory block indexed as the (k-1)th day only stores one piece of sensing data SD of the gas usage of the (k-1)th day, and so on, and the memory block indexed as the (N-1)th day only stores one piece of sensing data SD of the gas usage of the (N-1)th day. As shown in Figure 3As shown, when May 31, 2021 is the first day of two consecutive days, when the mirror server 12 triggers the flip mechanism, the gas consumption 14 stored in the memory block indexed as N-1 days ago can be moved to the memory block indexed as N days ago. Similarly, the gas consumption 10 stored in the memory block indexed as 1 day ago can be moved to the memory block indexed as 2 days ago. Then, the gas consumption 11 of May 31, 2021 can be moved from the memory block indexed as the current day to the memory block indexed as the previous day. The memory block indexed as the current day can then be used to store the sensing data SD of June 1, 2021.
[0042] Additionally, the memory blocks of mirror server 12 may also include multiple memory blocks indexed as current week, previous week to previous N weeks, current month, and previous month to previous N months. Therefore, when mirror server 12 triggers the flip mechanism, mirror server 12 may also update the data in the multiple memory blocks indexed as current week, previous week to previous N weeks, current month, and previous month to previous N months accordingly, based on the first day of each of two adjacent days being the day of the week and the day of the month.
[0043] For example, Figure 3 An embodiment can assume that the memory block indexed to the current week stores only one record of gas usage for that week, and the memory block indexed to the previous week stores only one record of gas usage for the previous week, and so on, with the memory block indexed to the previous N weeks storing only one record of gas usage for the previous N weeks. Therefore, as Figure 3 As shown, when mirror server 12 triggers the flip mechanism, in response to May 31, 2021 being a Monday of the week, mirror server 12 can store the gas consumption 11 of May 31 in the memory block indexed to the current week, and maintain the data in the N memory blocks indexed to the previous week 1 to the previous N weeks.
[0044] Similarly, Figure 3 The embodiment can assume that the memory block indexed to the current month only stores the gas consumption of the current month, and the memory block indexed to the previous month only stores the gas consumption of the previous month, and so on, with the memory block indexed to the previous N months only storing the gas consumption of the previous N months.
[0045] Therefore, as Figure 3As shown, when the mirror server 12 triggers the rollover mechanism, in response to May 31, 2021 being the last day of the month, the mirror server 12 can first add the gas usage 11 on May 31 to the gas usage stored in the memory block indexed as the current month to obtain the new gas usage 400 for the current month, and then move the gas usage 407 stored in the memory block indexed as the N-1th month to the memory block indexed as the Nth month, and so on, to move the gas usage 410 stored in the memory block indexed as the 1st month to the memory block indexed as the 2nd month, and then the new gas usage 400 for the current month can be moved from the memory block indexed as the current month to the memory block indexed as the 1st month.
[0046] Please note that, Figure 3 Each memory block of the memory 20 only stores one piece of data as the gas usage, which is used as an example and is not intended to limit the present application. In other embodiments, each memory block can further include multiple pages for storing multiple pieces of sensing data SD. For example, the memory block indexed as the current day can include multiple pages for storing the first to sixth pieces of sensing data SD generated by the electronic device 10 at 4 a.m., 8 a.m., 12 noon, 4 p.m., 8 p.m., and 12 midnight of the current day, respectively.
[0047] Therefore, although the mirror server 12 has received the last piece of sensing data SD of the first day between two adjacent days in the fault-tolerant time segment, the mirror server 12 can still determine whether all pieces of sensing data SD of the first day have been received by counting. If not, for example, only five pieces of sensing data SD of the first day have been received, the mirror server 12 can also trigger the catch-up mechanism to transmit the request information AS to the electronic device 10 to request the electronic device 10 to retransmit the sensing data SD of the first day.
[0048] Specifically, the mirror server 12 can also determine the time points at which the electronic device 10 generates sensing data SD in the first day by performing statistics on historical sensing data (e.g., accumulated sensing data SD of one or more days), so that the request information AS transmitted by the mirror server 12 can include a start time information and an end time information, and the mirror server 12 can determine the start time information and the end time information according to the earliest time and the latest time corresponding to the part of the sensing data SD of the first day that has not been received.
[0049] In other words, the data processing method can further include configuring the mirror server 12 to determine the earliest time and the latest time corresponding to the part of the sensing data of the first day that has not been received, and determine the start time information and the end time information included in the request information AS according to the earliest time and the latest time.
[0050] For example, by performing statistics on the historical sensing data, the mirror server 12 can know that the electronic device 10 will generate sensing data SD at 4 AM, 8 AM, 12 PM, 4 PM, 8 PM and 12 AM on May 31, 2021. Therefore, if the mirror server 12 judges that it has not received the second and fifth pieces of sensing data SD generated by the electronic device 10 at 8 AM and 8 PM on May 31, 2021, the mirror server 12 can determine the start time information and the end time information of the request information AS according to 8 AM and 8 PM on May 31, 2021, to request the electronic device 10 to retransmit the sensing data SD from 8 AM to 8 PM on May 31, 2021.
[0051] In the present embodiment, the data processing method can further comprise configuring the mirror server 12 to transmit the sensing data SD to the user device 14 in response to receiving the read information RE transmitted by the user device 14. In addition, the electronic device 10 and the mirror server 12 transmit the sensing data SD and the request information AS based on a first communication protocol with low power consumption characteristics (e.g. ZigBee), and the mirror server 12 and the user device 14 transmit the sensing data SD and the read information RE based on a second communication protocol which is an Internet protocol (e.g. Wi-Fi).
[0052] Therefore, the Internet protocol can help the user device 14 to obtain the sensing data SD of the electronic device 10 from the mirror server 12, regardless of whether the user device 14 is located in the low-power wireless personal area network system 1. In addition, in the case where the first communication protocol is ZigBee, the start time information and the end time information of the aforementioned request information AS can be recorded in the command payload of the ZCL (ZigBee Cluster Library) frame, and are respectively represented by 4 bytes, but the present application is not limited thereto.
[0053] Further, please refer to Figure 4 , Figure 4 is a flowchart of the step of judging by the mirror server whether the last piece of sensing data of the first day in the fault-tolerant time segment has been received. As shown in Figure 4As shown, in step S410, the mirror server 12 judges whether the time is in the fault-tolerant time section between two adjacent days (e.g. 11:55 pm of the first day to 12:05 am of the second day of two adjacent days). If yes, the mirror server 12 performs step S420; if not, the mirror server 12 returns to perform step S410 until the time is in the fault-tolerant time section between two adjacent days. In step S420, the mirror server 12 judges whether the flip mechanism has been triggered for the sensing data SD of the first day (e.g. May 31, 2021). If not, the mirror server 12 performs step S430; if yes, the mirror server 12 returns to perform step S410. It is noted that step S420 is a step designed to avoid the mirror server 12 repeatedly triggering the flip mechanism within the fault-tolerant time section.
[0054] In particular, since the electronic device 10 can repeatedly transmit the last piece of sensing data SD of the first day by mistake, the mirror server 12 can also repeatedly receive the last piece of sensing data SD of the first day within the fault-tolerant time section, therefore step S420 is designed to avoid the mirror server 12 repeatedly triggering the flip mechanism within the fault-tolerant time section. Next, in step S430, the mirror server 12 judges whether the last piece of sensing data SD of the first day is received from the electronic device 10. If yes, the mirror server 12 performs step S230; if not, the mirror server 12 performs step S440. In step S440, the mirror server 12 judges whether the time is after the fault-tolerant time section. If not, the mirror server 12 returns to perform step S430; if yes, the mirror server 12 performs step S240. It is noted that, Figure 4 The step flow of the mirror server 12 is only an example and is not used to limit the present application.
[0055] On the other hand, although the electronic device 10 only needs to periodically transmit its currently generated sensing data SD to the mirror server 12 to save a large amount of data transmission power, the electronic device 10 can still have a failure situation. Therefore, the present application also designs an inheritance mechanism on the mirror server 12, so that the sensing data SD of the existing electronic device 10 can be transferred to another electronic device newly deployed on the low-power wireless personal area network system 1.
[0056] Please refer to Figure 5 , Figure 5 is a schematic diagram of the mirror server triggering the inheritance mechanism provided by the embodiment of the present application. As Figure 5As shown, the mirror server 12 can determine whether the time that the electronic device 10 does not transmit the sensing data SD exceeds a predetermined time (e.g., 2 days). If yes, the mirror server 12 can transmit an alert information AL to the user device 14 to notify the user of the user device 14 that the electronic device 10 can have an abnormal condition. In response to receiving the alert information AL transmitted by the mirror server 12, the user of the user device 14 can check and repair the electronic device 10 to eliminate the abnormal condition.
[0057] In other words, the data processing method can further include configuring the mirror server 12 to determine whether the time that the electronic device 10 does not transmit the sensing data SD exceeds a predetermined time, and in response to determining that the time that the electronic device 10 does not transmit the sensing data SD exceeds the predetermined time, transmitting an alert information AL to the user device 14.
[0058] Then, if it is determined through the check and repair that the electronic device 10 has a failure, the user of the user device 14 can replace the electronic device 10 with an electronic device 20, and after the electronic device 10 is replaced with the electronic device 20, the user device 14 can transmit an inheritance information IH to the mirror server 12. In response to receiving the inheritance information IH transmitted by the user device 14, the mirror server 12 can trigger an inheritance mechanism to transmit the stored sensing data SD of the electronic device 10 to the electronic device 20.
[0059] In other words, the data processing method can further include configuring the mirror server 12 to, in response to receiving the inheritance information IH transmitted by the user device 14, trigger an inheritance mechanism to transmit the stored sensing data SD of the electronic device 10 to the electronic device 20. Thus, through the inheritance mechanism, the electronic device 20 can be able to take over the sensing data SD obtained by the electronic device 10, continue to generate and transmit the sensing data SD to the mirror server 12 at every interval time, and can avoid losing the historical sensing data due to the failure of the electronic device 10.
[0060] Finally, please refer to Figure 6 , Figure 6 is a functional block diagram of the mirror server provided by an embodiment of the present application. As shown in Figure 6 , the mirror server 12 includes a memory 120, a communication circuit 122, and a processing circuit 124. The memory 120 includes a plurality of memory blocks 120_0-120_M, and M is an integer greater than or equal to N. The communication circuit 122 and the processing circuit 124 can be implemented by hardware in combination with software and / or firmware, but the present application does not limit the specific implementation manner of the communication circuit 122 and the processing circuit 124.
[0061] In addition, the communication circuit 122 and the processing circuit 124 can be integrated or separately arranged, but the present application is not limited thereto. The communication circuit 122 is used to communicate with the electronic device 10, receive the sensing data SD generated and transmitted by the electronic device 10 at every interval time, and store the sensing data SD in the memory block 120_0~120_M indexed as the memory block 120_0 of the current day. As described above, the memory blocks 120_0~120_M can also include the memory blocks 120_1~120_N indexed as the previous 1st day to the previous Nth day.
[0062] The processing circuit 124 is used to determine whether the last piece of sensing data SD of the first day of the adjacent two days (for example, May 31, 2021 and June 1, 2021) is received within the fault-tolerant time segment between the adjacent two days, and in response to determining that the last piece of sensing data SD of the first day is received within the fault-tolerant time segment, the processing circuit 124 can trigger the flip mechanism to move the sensing data SD stored in the memory block 120_k indexed as the previous kth day to the memory block 120_k+1 indexed as the previous (k+1)th day, and then move the sensing data SD stored in the memory block 120_0 indexed as the current day to the memory block 120_1 indexed as the previous 1st day.
[0063] In addition, in response to determining that the last piece of sensing data SD of the first day is not received within the fault-tolerant time segment, the processing circuit 124 can trigger the catch-up mechanism to transmit a request information AS to the electronic device 10 through the communication circuit 122 to request the electronic device 10 to retransmit the sensing data SD of the first day, and trigger the flip mechanism to move the sensing data SD stored in the memory block 120_k indexed as the previous kth day to the memory block 120_k+1 indexed as the previous (k+1)th day, and then move the sensing data SD stored in the memory block 120_0 indexed as the current day to the memory block 120_1 indexed as the previous 1st day.
[0064] Further, in response to the communication circuit 122 receiving the read information RE transmitted by the user device 14, the processing circuit 124 can transmit the sensed data SD to the user device 14 via the communication circuit 122. In addition, the processing circuit 124 can also determine whether the time that the electronic device 10 has not transmitted the sensed data SD exceeds a predetermined time, and in response to determining that the time that the electronic device 10 has not transmitted the sensed data SD exceeds the predetermined time, the processing circuit 124 can transmit the alert information AL to the user device 14 via the communication circuit 122. Then, in response to receiving the inheritance information IH transmitted by the user device 14, the processing circuit 124 can trigger the inheritance mechanism to transmit the stored sensed data SD of the electronic device 10 to another electronic device via the communication circuit 122. Since the details of the operation of the mirror server 12 have been described in the foregoing embodiments, they will not be described again here.
[0065] It should be noted that the foregoing storage manner of the sensed data SD of the electronic device 10 is not limited to taking a day as a unit of time. Alternatively, the day to the Nth day described in the present specification can be replaced by periodic time segments, and the present application is not limited to the length of the periodic time segments. Therefore, in other embodiments, the index name of the memory block 120_0 can be changed to a first time segment, and the index name of the memory block 120_1 can be changed to a second time segment that is 1 unit of time before the first time segment, and so on, and the index name of the memory block 120_N can be changed to an N+1th time segment that is N units of time before the first time segment. Similarly, the midnight 12 o'clock described in the present specification can be changed to a specific time, i.e., the electronic device 10 generates the last piece of sensed data SD of the first time segment at the specific time.
[0066] In other words, in other embodiments, the communication circuit 122 can receive the sensed data SD generated and transmitted by the electronic device 10 at every interval time, and store the sensed data SD in the memory block 120_0 indexed as the first time segment. The processing circuit 124 can determine whether the last piece of sensed data SD of the first time segment is received within a fault tolerance time segment between the first time segment and the next time segment. In response to determining that the last piece of sensed data SD of the first time segment is received within the fault tolerance time segment, the processing circuit 124 can trigger the flip mechanism to move the sensed data SD stored in the memory block 120_k indexed as the k+1th time segment that is k units of time before the first time segment to the memory block 120_k+1 indexed as the k+2th time segment that is k+1 units of time before the first time segment, and then move the sensed data SD stored in the memory block 120_0 indexed as the first time segment to the memory block 120_1 indexed as the second time segment.
[0067] In addition, in response to determining that the sensing data SD of the last piece of the first time segment is not received within the fault-tolerant time segment, the processing circuit 124 can trigger a catch-up mechanism to transmit a request information AS to the electronic device 10 through the communication circuit 122 to request the electronic device 10 to retransmit the sensing data SD of the first time segment, and trigger a flip mechanism to move the sensing data SD stored in the memory block 120_k indexed to the k+1 time segment before the first time segment by k units of time to be stored in the memory block 120_k+1 indexed to the k+2 time segment before the first time segment by k+1 units of time, and then move the sensing data SD stored in the memory block 120_0 indexed to the first time segment to be stored in the memory block 120_1 indexed to the second time segment.
[0068] It can be seen that, Figure 2 and Figure 4 The steps in the above embodiments can be modified in various manners based on the above modifications without departing from the spirit of the present application. Specifically, the step S210 can be modified to receive the sensing data generated and transmitted by the electronic device at every interval time, and store the sensing data in the memory block indexed to the first time segment. Secondly, the step S220 can be modified to determine whether the sensing data of the last piece of the first time segment is received within the fault-tolerant time segment between the first time segment and the next time segment.
[0069] In addition, the step S230 can be modified to trigger a flip mechanism to move the sensing data stored in the memory block indexed to the k+1 time segment before the first time segment by k units of time to be stored in the memory block indexed to the k+2 time segment before the first time segment by k+1 units of time, and then move the sensing data stored in the memory block indexed to the first time segment to be stored in the memory block indexed to the second time segment. Conversely, the step S240 can be modified to trigger a catch-up mechanism to transmit a request information to the electronic device to request the electronic device to retransmit the sensing data of the first time segment, and trigger a flip mechanism to move the sensing data stored in the memory block indexed to the k+1 time segment before the first time segment by k units of time to be stored in the memory block indexed to the k+2 time segment before the first time segment by k+1 units of time, and then move the sensing data stored in the memory block indexed to the first time segment to be stored in the memory block indexed to the second time segment.
[0070] On the other hand, the technical content of step S410 can be modified to determine whether the time is in a fault tolerance time segment between the first time segment and the next time segment. Secondly, the technical content of step S420 can be modified to determine whether a flip mechanism has been triggered for the sensed data of the first time segment. Then, the technical content of step S430 can be modified to determine whether the sensed data of the last entry of the first time segment is received from the electronic device. Since the relevant details have been described as in the foregoing embodiments, they will not be described here.
[0071] In summary, one of the beneficial effects of the present application is that the data processing method and mirror server for low-power wireless personal area network system provided by the present application can assist the mirror server to store and process the historical sensed data of the electronic device, so that the electronic device only needs to periodically transmit the currently generated sensed data to the mirror server, so that the electronic device can save the power required for transmitting a large amount of data.
[0072] The above provided content is only the preferred feasible embodiment of the present application, and does not limit the scope of the claims of the present application, so any equivalent technical changes made by applying the content of the specification and drawings of the present application are included in the scope of the claims of the present application.
Claims
1. A data processing method for a low-power wireless personal area network (LPPN) system, wherein the LPPN system includes an electronic device and a mirror server communicatively connected to each other, the mirror server including a memory, and the data processing method includes configuring the mirror server to: The system receives and transmits sensing data generated by the electronic device at regular intervals, and stores the sensing data in a memory block indexed as a first time segment within a plurality of memory blocks in the memory. These memory blocks also include N memory blocks indexed as a second time segment from one unit time before the first time segment to an (N+1)th time segment from N units time before the first time segment, where N is an integer greater than 1. Based on the interval, the electronic device generates the last piece of sensing data for the first time segment at a specific time. Determine whether the last piece of sensing data of the first time segment has been received within a fault-tolerant time segment between the first time segment and the next time segment. In response to determining that the last piece of sensing data of the first time segment has been received within the fault-tolerant time segment, trigger a flipping mechanism to move the sensing data stored in the memory blocks indexed as k units before the first time segment to the memory block indexed as k+1 units before the first time segment to the memory block indexed as k+2 units before the first time segment. Then, move the sensing data stored in the memory block indexed as the first time segment to the memory block indexed as the second time segment, where k is an integer from N-1 to 1.
2. The data processing method as described in claim 1, further comprising configuring the mirror server to: In response to the determination that the last piece of sensing data for the first time segment was not received within the fault tolerance time interval, a catch-up mechanism is triggered to transmit a request message to the electronic device to request the electronic device to retransmit the sensing data for the first time segment, and a flip mechanism is triggered to move the sensing data stored in the memory block of the (k+1)th time segment indexed k units before the first time segment to the memory block of the (k+2)th time segment indexed k+1 units before the first time segment, and then move the sensing data stored in the memory block indexed in the first time segment to the memory block indexed in the second time segment, wherein the length of the fault tolerance time interval is less than the interval time.
3. The data processing method as described in claim 2, further comprising configuring the mirror server to: In response to receiving a read information transmitted by a user equipment, the sensing data is transmitted to the user equipment, wherein the electronic device and the mirror server transmit the sensing data and the request information based on a first communication protocol, and the mirror server and the user equipment transmit the sensing data and the read information based on a second communication protocol.
4. The data processing method as described in claim 3, further comprising configuring the mirror server to: Determine the earliest and latest times corresponding to the portion of the sensing data that was not received in the first time segment, and determine the start time information and end time information included in the request information based on the earliest and latest times.
5. The data processing method as described in claim 4, further comprising configuring the mirror server to: Determine whether the electronic device has not transmitted the sensing data for a period of time exceeding a predetermined time, and in response to determining that the electronic device has not transmitted the sensing data for a period of time exceeding the predetermined time, transmit an alarm message to the user device.
6. The data processing method as described in claim 5, further comprising configuring the mirror server to: In response to receiving a succession message transmitted by the user equipment, a succession mechanism is triggered to transmit the stored sensor data of the electronic device to another electronic device.
7. A mirror server for a low-power wireless personal area network (LPLAN) system, wherein the LPLAN system further includes an electronic device, and the mirror server comprises: A memory, comprising multiple memory blocks; A communication circuit is configured to communicate with the electronic device, receive sensing data generated and transmitted by the electronic device at regular intervals, and store the sensing data in memory blocks indexed as a first time segment. These memory blocks also include N memory blocks indexed as a second time segment from one unit before the first time segment to an (N+1)th time segment from N units before the first time segment, where N is an integer greater than 1. Based on the interval, the electronic device generates the last piece of sensing data for the first time segment at a specific time. A processing circuit is configured to determine whether the last piece of sensing data of the first time segment has been received within a fault-tolerant time interval between the first time segment and the next time segment, and in response to determining that the last piece of sensing data of the first time segment has been received within the fault-tolerant time interval, the processing circuit triggers a flip mechanism to move the sensing data stored in the memory blocks indexed as k units before the first time segment to a memory block indexed as k+1 units before the first time segment to a memory block indexed as k+2 units before the first time segment, and then move the sensing data stored in the memory block indexed as the first time segment to the memory block indexed as the second time segment, where k is an integer from N-1 to 1.
8. The mirror server of claim 7, wherein in response to determining that the last piece of the sensing data of the first time segment has not been received within the fault tolerance time interval, the processing circuit triggers a catch-up mechanism to transmit a request message to the electronic device via the communication circuit to request the electronic device to retransmit the sensing data of the first time segment, and triggers the flipping mechanism to move the sensing data already stored in the memory block of the (k+1)th time segment indexed k units before the first time segment to the memory block of the (k+2)th time segment indexed k+1 units before the first time segment, and then moves the sensing data already stored in the memory block indexed in the first time segment to the memory block indexed in the second time segment, wherein the length of the fault tolerance time interval is less than the interval time.
9. The mirror server of claim 8, wherein in response to the communication circuit receiving a read information transmitted by a user equipment, the processing circuit transmits the sensing data to the user equipment via the communication circuit; and The electronic device and the mirror server transmit the sensing data and the request information based on a first communication protocol, while the mirror server and the user device transmit the sensing data and the read information based on a second communication protocol.
10. The mirror server of claim 9, wherein the processing circuit is further configured to determine an earliest time and a latest time corresponding to a portion of the sensing data that was not received in the first time segment, and to determine a start time information and an end time information included in the request information based on the earliest time and the latest time.
11. The mirror server of claim 10, wherein the processing circuit is further configured to determine whether the time during which the electronic device has not transmitted the sensing data exceeds a predetermined time, and in response to determining that the time during which the electronic device has not transmitted the sensing data exceeds the predetermined time, the processing circuit transmits an alarm message to the user device through the communication circuit.
12. The mirror server of claim 11, wherein in response to receiving inheritance information transmitted by the user equipment, the processing circuit triggers an inheritance mechanism to transmit the stored sensing data of the electronic device to another electronic device via the communication circuit.
Citation Information
Patent Citations
Time-hopping video data processing method and device, medium and electronic equipment
CN112579820A
Efficient storage and retrieval for wearable-device data
TW201723867A