Method, system, electronic device and storage medium for temperature broadcast

文档序号:132466 发布日期:2021-10-22 浏览:14次 中文

阅读说明:本技术 温度播报的方法、系统、电子装置及存储介质 (Method, system, electronic device and storage medium for temperature broadcast ) 是由 陈吉 王健 徐伟 于 2021-06-10 设计创作,主要内容包括:本申请涉及一种温度播报的方法、系统、电子装置及存储介质,涉及温度技术监控领域,其中,该温度播报的方法包括:获取触发信号,响应触发信号获取历史温度集;将历史温度集中的历史温度进行分组以得到一个以上的历史温度组,历史温度组中的历史温度根据采样时间排列;分别生成与历史温度组对应的温度数据组,对于任意温度数据组,各个温度数据均符合其中,C-(i)为第i个温度数据,A-(i)为第i个历史温度,n为温度数据组中温度数据的总数;分别生成与温度数据组对应的温度帧,并利用蓝牙广播配合播报各个温度帧。本申请减少温度帧中温度数据所占字节数,提高了温度播报效率。(The application relates to a method, a system, an electronic device and a storage medium for temperature broadcast, which relate to the field of temperature technical monitoring, wherein the method for temperature broadcast comprises the following steps: acquiring a trigger signal, and responding to the trigger signal to acquire a historical temperature set; grouping the historical temperatures in the historical temperature set to obtain more than one historical temperature group, wherein the historical temperatures in the historical temperature group are arranged according to sampling time; respectively generating temperature data groups corresponding to the historical temperature groups, wherein for any temperature data group, each temperature data accords with Wherein, C i Is the ith temperature data, A i The ith historical temperature is n, and the n is the total number of the temperature data in the temperature data group; respectively generating temperature frames corresponding to the temperature data sets, and using Bluetooth broadcastAnd broadcasting each temperature frame. The method and the device reduce the number of bytes occupied by temperature data in the temperature frame, and improve the temperature broadcasting efficiency.)

1. A method of temperature reporting, the method comprising:

acquiring a trigger signal, and responding to the trigger signal to acquire a historical temperature set;

grouping historical temperatures in the historical temperature set to obtain more than one historical temperature group, wherein the historical temperatures in the historical temperature group are arranged according to sampling time;

respectively generating temperature data groups corresponding to the historical temperature groups, wherein for any temperature data group, each temperature data accords withWherein, CiIs the ith temperature data, AiIs the ith historical temperature, n is the temperatureThe total number of temperature data in the data set;

and respectively generating temperature frames corresponding to the temperature data groups, and broadcasting the temperature frames by utilizing the matching of Bluetooth broadcasting.

2. The method of claim 1, wherein for any temperature data set, prior to generating a temperature frame corresponding to the temperature data set, the method further comprises:

adjusting the temperature data set by using an adjustment formula set, wherein the adjustment formula set comprises: wherein X, Y are preset values C'iAdjusted temperature data;

and replacing the adjusted temperature data set with the original temperature data set.

3. The method of claim 1, further comprising:

responding to the trigger signal to inquire the battery power and the temperature at the current moment, and generating an information frame based on the battery power and the temperature at the current moment;

and broadcasting the information frame by utilizing the Bluetooth broadcast in a matching way.

4. The method of claim 3, wherein the Bluetooth goes to sleep after the information frame or the temperature frame is broadcasted.

5. The method according to any one of claims 1 to 4, wherein the historical temperature set is updated at a time interval T, and the historical temperature set update corresponding to any time period comprises:

acquiring the temperature collected in the any time period, and forming a selectable temperature group;

obtaining a selected temperature according to the selectable temperature group, wherein the selected temperature is any one of the highest temperature, the lowest temperature and the average temperature in the selectable temperature group;

and adjusting the selected temperature to be historical temperature and storing the historical temperature in the historical temperature set, and clearing the historical temperature with the earliest collection time in the historical temperature set.

6. The method of claim 5, further comprising:

selecting R continuous time periods related to the historical temperature set updating and forming a time interval S;

and in the time interval S, generating R trigger signals by taking the time interval T as a period.

7. The method according to any one of claims 1 to 4, wherein the temperature frame further comprises a broadcast ordinal, wherein the broadcast ordinal is generated based on the ranking of the temperature data set, and the temperature frame is broadcast based on the broadcast ordinal by using a Bluetooth broadcast coordination sequence.

8. A system for temperature reporting is characterized in that the system comprises a sending end and a receiving end:

the sending end is used for executing the method of any one of claims 1 to 7; and the receiving end receives the temperature frame, restores the temperature data in the temperature frame into historical temperature, and cooperatively stores the historical temperature in a temperature database.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the method for temperature report according to any one of claims 1 to 7.

10. A storage medium having a computer program stored therein, wherein the computer program is configured to execute the method of the temperature report according to any one of claims 1 to 7 when the computer program runs.

Technical Field

The present disclosure relates to the field of temperature monitoring technologies, and in particular, to a method, a system, an electronic device, and a storage medium for temperature broadcast.

Background

Along with the popularization and application of the Bluetooth wireless communication technology, the one-way timing broadcast of data is realized by utilizing Bluetooth broadcast, and the method is widely applied to the field of temperature monitoring.

In the related art, a module with a bluetooth wireless communication technology is installed on a temperature monitoring device, and accordingly, the temperature monitoring device sends a temperature frame to a receiving device via the bluetooth wireless communication technology, wherein the temperature frame carries a history temperature, and the number of history temperatures carried by one temperature frame is small due to the fact that the history temperature occupies a large number of bytes, so that the temperature monitoring device sends the temperature frame for a large number of times, and the temperature playing efficiency is low.

At present, no effective solution is provided for the problem of low temperature broadcasting efficiency caused by more bytes occupied by historical temperature in a temperature frame in the related technology.

Disclosure of Invention

The embodiment of the application provides a method, a system, an electronic device and a storage medium for temperature broadcasting, and in the process of temperature broadcasting by using Bluetooth broadcasting, the frequency of generating and sending temperature frames can be reduced, so that the playing efficiency of a historical temperature set is improved, and the power consumption of temperature monitoring equipment is further reduced.

In a first aspect, an embodiment of the present application provides a method for temperature broadcast, where the method includes:

acquiring a trigger signal, and responding to the trigger signal to acquire a historical temperature set;

grouping historical temperatures in the historical temperature set to obtain more than one historical temperature group, wherein the historical temperatures in the historical temperature group are arranged according to sampling time;

respectively generating temperature data groups corresponding to the historical temperature groups, wherein for any temperature data group, each temperature data accords withWherein, CiIs the ith temperature data, AiIs the ith historical temperature, and n is the temperature in the temperature data setThe total number of data;

and respectively generating temperature frames corresponding to the temperature data groups, and broadcasting the temperature frames by utilizing the matching of Bluetooth broadcasting.

In some embodiments, for any temperature data set, before generating a temperature frame corresponding to the temperature data set, the method further comprises:

adjusting the temperature data set by using an adjustment formula set, wherein the adjustment formula set comprises:

wherein X, Y are preset values C'iAdjusted temperature data;

and replacing the adjusted temperature data set with the original temperature data set.

In some of these embodiments, the method further comprises:

responding to the trigger signal to inquire the battery power and the temperature at the current moment, and generating an information frame based on the battery power and the temperature at the current moment;

and broadcasting the information frame by utilizing the Bluetooth broadcast in a matching way.

In some embodiments, the bluetooth enters a sleep state after the information frame or the temperature frame is broadcasted.

In some embodiments, the historical temperature set is updated at time intervals T, and the historical temperature set update corresponding to any time period includes:

acquiring the temperature collected in the any time period, and forming a selectable temperature group;

obtaining a selected temperature according to the selectable temperature group, wherein the selected temperature is any one of the highest temperature, the lowest temperature and the average temperature in the selectable temperature group;

and adjusting the selected temperature to be historical temperature and storing the historical temperature in the historical temperature set, and clearing the historical temperature with the earliest collection time in the historical temperature set.

In some of these embodiments, the method further comprises:

selecting R continuous time periods related to the historical temperature set updating and forming a time interval S;

and in the time interval S, generating R trigger signals by taking the time interval T as a period.

In some embodiments, the temperature frame further includes a broadcast ordinal, wherein the broadcast ordinal is generated based on a ranking of the temperature data set, and the temperature frame is broadcast based on the broadcast ordinal by using a bluetooth broadcast coordination sequence.

In a second aspect, an embodiment of the present application provides a system for temperature broadcast, the system includes a sending end and a receiving end:

the sending end is configured to execute the method for temperature broadcast according to the first aspect; and the receiving end receives the temperature frame, restores the temperature data in the temperature frame into historical temperature, and cooperatively stores the historical temperature in a temperature database.

In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements the method for temperature broadcast according to the first aspect.

In a fourth aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for temperature broadcast according to the first aspect.

Compared with the related art, the invention has the beneficial effects that: in the process of broadcasting the temperature by using the Bluetooth broadcast, the historical temperature can be stored in the temperature data group in the form of a temperature value and a temperature difference value, and a corresponding temperature frame is generated.

Drawings

The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:

fig. 1 is a flowchart of a method for temperature reporting according to an embodiment of the present application;

fig. 2 is a flowchart of another temperature reporting method according to an embodiment of the present application;

FIG. 3 is a flow chart illustrating historical temperature set updates according to an embodiment of the present application;

fig. 4 is a timing chart of broadcast using bluetooth according to an embodiment of the present application;

fig. 5 is a block diagram of a system for temperature broadcast according to an embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.

Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.

Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.

The embodiment provides a method for temperature broadcasting, which is used for solving the problem of low efficiency of temperature broadcasting caused by more bytes occupied by historical temperatures in a temperature frame.

Fig. 1 is a flowchart of a temperature reporting method according to an embodiment of the present application, and as shown in fig. 1, the method includes steps S101 to S104.

Step S101, acquiring a trigger signal, and acquiring a historical temperature set in response to the trigger signal.

And step S102, grouping the historical temperatures in the historical temperature set to obtain more than one historical temperature group, wherein the historical temperatures in the historical temperature group are arranged according to the sampling time.

Step S103, respectively generating temperature data groups corresponding to the historical temperature groups, wherein for any temperature data group, each temperature data accords withWherein, CiIs the ith temperature data, AiIs the ith historical temperature and n is the total number of temperature data in the temperature data set.

And step S104, respectively generating temperature frames corresponding to the temperature data sets, and broadcasting the temperature frames by utilizing the Bluetooth broadcasting in a matched manner.

To sum up, in the process of using bluetooth broadcast to broadcast the temperature, the historical temperature can be stored in the temperature data set in the form of temperature value and temperature difference value, and generate the corresponding temperature frame, because the temperature difference value occupies less bytes in the temperature frame compared to the temperature value, under the condition that the total amount of the preset bytes provided for the temperature data in the temperature frame is the same, the temperature frame of the invention can transmit more temperature data, so the generated and sent temperature frame is less, thereby improving the playing efficiency of the historical temperature set, and further reducing the power consumption of the temperature monitoring device.

It should be noted that, in step S103, in the case that i is equal to 1, the first temperature data in any temperature data group is the historical temperature, and accordingly, the generated temperature frame also carries the historical temperature at the first of the temperature data groups, where, for example, two consecutive temperature data groups are selected, the first temperature data of the previous temperature data group is the historical temperature, the other temperature data is the temperature difference, the temperature data of the next temperature data group is the temperature difference, and the first temperature difference of the next temperature data group is generated based on the last historical temperature of the previous historical temperature group, and accordingly, the two consecutive temperature frames are generated, and when the last temperature data in the previous temperature frame is incorrect, the first temperature data in the next temperature frame may be incorrect, but the first temperature data adopted by the two temperature data groups are both the historical temperatures, the temperature frames generated by the two temperature data groups can be ensured to be in an independent state, and under the condition that the temperature data in one temperature frame is wrong, the influence on other temperature frames can not be generated, and accordingly, the probability of mutual influence of the temperature data in different temperature frames is reduced.

The method is performed based on an execution device, which may be a sending end, a server, a cloud server, a processor, or the like, but the execution device is not limited to the above type. The executing device is preferably the transmitting end.

As an alternative embodiment, the trigger signal may be generated by the execution device, or may be generated by an external device that establishes a communication connection with the execution device.

As an alternative embodiment, in step S102 and step S103, the number of historical temperatures in the historical temperature group, the number of temperature data in the temperature data group, and the number of temperature data carried by the temperature frame are the same.

As an optional embodiment, in step S104, since the number of bytes occupied by the temperature difference is a single byte and the number of bytes occupied by the historical temperature is a double byte, the number of bytes occupied by the temperature data can be reduced by using the single byte of temperature data on the premise of ensuring the completeness of the temperature data, and the temperature frame can carry more temperature data. For example, in a temperature frame, in a case that the total preset number of bytes of temperature data is 11, the temperature data that can be carried by the temperature frame of the embodiment of the present application may include one historical temperature and 9 temperature differences (i.e., 10 temperature data), while in the related art, the temperature frame may only carry 5 historical temperatures (i.e., 5 temperature data), and here, the temperature frame of the embodiment of the present application may carry 5 more temperature data, thereby improving the playing efficiency of the historical temperature set.

As an alternative embodiment, in step S104, the temperature frame further includes an announcement ordinal, which may be generated according to the embodiment related to the historical temperature ranks in the temperature data set in step S102. For example, the number of the temperature data in each temperature data group is 10, a total number of the historical temperatures is 240 in the historical temperature set, the 240 historical temperatures are ranked according to the acquisition time, the historical temperatures from the first place to the tenth place generate a historical temperature group, the historical temperature group is labeled as 1, the historical temperatures from the eleventh place to the twentieth place generate a historical temperature group, the historical temperature group is labeled as 2, the 24 historical temperature groups and the corresponding 24 labels are sequentially obtained according to the method, and the labels are the ordinal numbers in the generated corresponding temperature frames. The transmitting end can broadcast from 1 to 24 by using the bluetooth broadcast based on the broadcast ordinal number. Based on this broadcast ordinal cooperation bluetooth broadcast, the receiving terminal can be based on the broadcast ordinal and check whether the temperature frame has the condition of not sending, if there is the condition of not sending in the temperature frame, find the serial number that does not send the temperature frame and correspond to feed back the serial number to the transmitting terminal, remind the transmitting terminal to carry out the reissue of temperature frame. In conclusion, the temperature frames are broadcasted based on the broadcast ordinal number, and the integrity of the temperature data in the transmission process can be ensured.

In some of these embodiments, for any temperature data set, the method further comprises adjusting the temperature data set prior to generating the temperature frame corresponding to the temperature data set.

Fig. 2 is a flowchart of another temperature broadcast method according to an embodiment of the present application, and as shown in fig. 2, the method includes steps S201 to S206.

Step S201, acquiring a trigger signal, and acquiring a historical temperature set in response to the trigger signal.

Step S202, grouping the historical temperatures in the historical temperature set to obtain more than one historical temperature group, wherein the historical temperatures in the historical temperature group are arranged according to the sampling time.

In step S203, temperature data sets corresponding to the historical temperature sets are generated, and it should be noted that the step may refer to step S103, which is not to be mentioned here.

Step S204, adjusting the temperature data set by using an adjustment formula set, where the adjustment formula set may include:

wherein X, Y are preset values C'iFor adjusted temperature data, WiAnd the correction value is the correction value corresponding to the ith temperature data. It should be noted here that, since the temperature difference only occupies one byte in several temperature frames, the temperature difference should be in the range of X to Y, and once the temperature difference exceeds the range, the temperature data or the storage error in the temperature frame cannot be stored, but the receiving end performs the reduction according to the formula in step S103, which may cause errors from the position to the last temperature data, and in the worst case, may cause errors in 9 temperature data in one temperature frame. Here, it can be explained by taking the example in the step S104, if the previous three historical temperatures in the historical temperature group are 32 ℃, 40 ℃ and 42 ℃ in sequence, the temperature data in the corresponding original temperature data group should be 32, 8 and 2 in sequence, but the end points of the preset range are X being-6.35, Y being 6.4, and the second temperature data 8 is out of the preset range, at this time, the temperature data group needs to be adjusted, and the adjustment formula can obtain Wi0, 1.6 and 0 in sequence, and correspondingly, the adjusted temperature data are 32, 6.4 and 3.6 in sequence. The temperature data restored by the receiving end are 32 ℃, 38.4 ℃ and 42 ℃ in sequence, and compared with the three temperature data in the historical temperature group, at least the third temperature data can be restored to be the correct historical temperature, so that the temperature broadcasting method has certain error correction capability on the basis of improving the playing efficiency of the historical temperature set.

And step S205, replacing the adjusted temperature data set with the original temperature data set. That is, the temperature data set used for generating the temperature frame in step S104 is the adjusted temperature data set.

And step S206, respectively generating temperature frames corresponding to the temperature data sets, and broadcasting the temperature frames by utilizing the Bluetooth broadcasting in a matched manner.

In conclusion, the method adjusts the temperature data set, so that the problem that the temperature data in the temperature frame are wrong when one or more temperature data in the temperature data set exceed the preset range can be solved, the temperature broadcasting method has certain error correction capability, and accordingly, the receiving end sets the reduction method corresponding to the transmitting end, and the temperature data corresponding to the temperature difference value which does not exceed the preset range in the temperature frame can be accurately reduced.

It should be noted that, in step S203, when i is greater than 1, the temperature data in the temperature data group is calculated based on the adjacent historical temperatures, and since the acquisition times of the adjacent historical temperatures are close, the historical temperatures are also close, and the probability that the obtained temperature difference exceeds the range of X to Y is also reduced, and accordingly, the temperature data in the generated temperature frame is more accurate.

In some of these embodiments, the historical temperature set is updated at intervals of time T.

Fig. 3 is a flowchart of historical temperature set update according to an embodiment of the present application, and as shown in fig. 3, the flowchart includes steps S301 to S303.

Step S301, acquiring the temperatures collected in the arbitrary time period, and forming a selectable temperature group. Specifically, the time may be divided within the arbitrary time period, preferably, the time is divided at equal time intervals t, and the temperature is collected at each time, so that the maximum temperature, the minimum temperature, the average temperature, and the like within the arbitrary time period can be obtained.

And step S302, obtaining a selected temperature according to the selectable temperature group, wherein the selected temperature is any one of the highest temperature, the lowest temperature and the average temperature of the selectable temperature group. Of course, the selected temperature is not limited to the above type.

And step S303, adjusting the selected temperature to be temperature data, storing the temperature data in a historical temperature set, and clearing the temperature data which is collected earliest in the historical temperature set. For example, T may be 5 minutes, the historical temperature set may store 240 temperature data in total, and it takes 20 hours to update all the temperature data in the historical temperature set, and the transmission period of the historical temperature set should be less than or equal to 20 hours.

Further, R consecutive time periods related to the historical temperature set update are selected and constitute a time interval S, where fig. 4 is a timing chart of a method for temperature broadcast according to an embodiment of the present application, and referring to fig. 4, 2 (i.e., R ═ 2) consecutive time periods are selected and constitute a time interval S, where the time interval S includes T1-T2; and generating 2 trigger signals in the time interval S by taking the time interval T as a period, wherein in the time interval T1, a first trigger signal is generated, a historical temperature set is acquired, a corresponding temperature frame is obtained, then the historical temperature set is updated, and in the time interval T2, a second trigger signal is generated, an updated historical temperature set is acquired, and a corresponding temperature frame is obtained.

The description may be made in combination with the embodiments of the temperature data sets and the temperature frames in step S103 and step S104, where T may be 5 minutes, R may be 2, the time interval S is 10 minutes, T may be 12S, 10 temperature data are carried in the temperature frames, the total number of the temperature data sets may be 24, in the time interval T1, a first trigger signal is obtained, the temperature frames are sent every 12S according to the broadcast ordinal number, and 240 temperature data are all broadcast in 5 minutes; during time interval T2, a second trigger is obtained to report all 240 temperature data after the historical temperature set is matched for temperature data update.

Since the grouping rule and the temperature frame generation rule remain unchanged, but the first historical temperature of the updated historical temperature set is changed relative to the historical temperature set before updating, so that the first historical temperature (the temperature data stored in the form of the historical temperature) of each temperature frame is also changed, and thus, in the time interval T1, the receiving end can obtain 24 temperature frames which comprise 24 historical temperatures and 240-24 temperature difference values and then restore the respective temperature difference values to the historical temperatures, and in the time interval T2, the receiving end can receive 24 temperature frames which comprise 24 historical temperatures and 240-24 temperature difference values and then restore the respective temperature difference values to the historical temperatures, so that the receiving end can obtain 2 types of historical temperatures, one type is the historical temperatures directly stored in the temperature frames and the historical temperatures obtained through restoration, at this time, the historical temperature directly stored in the temperature frame can be selected for storage, the other type is two historical temperatures which are obtained through reduction and correspond to the historical temperature set, at this time, under the condition that the two historical temperatures are the same, the temperature difference is correct and is stored as the historical temperature, if the two historical temperatures are different, at least one of the two historical temperatures is wrong, and the receiving end can select the temperature difference with higher accuracy as the historical temperature for storage by setting a corresponding program.

In some of these embodiments, the method further comprises: and responding to the trigger signal to inquire the battery power and the temperature at the current moment and generate an information frame. The sending time of the information frame may be as shown in fig. 4, specifically, the information frame may be broadcasted by using bluetooth broadcast, where it is worth to be noted that, in the process of completely sending the historical temperature set once, the information frame needs to be sent once, preferably, the information frame is sent earlier than the temperature frame, and a sending time interval between the information frame and a nearby temperature frame is the same as a sending time interval between adjacent temperature frames. The information carried in the information frame also includes attribute information fixed by bluetooth broadcast, universal unique identifier uuid (universal unique identifier) indicating broadcast purpose, serial number of the device, temperature at the time corresponding to the response trigger signal, firmware version, etc. The battery power that this information frame carried is used for reflecting bluetooth device's electric quantity in service behavior, and the receiving terminal can receive battery power data and reply to the in service behavior of battery, can guarantee that the bluetooth device of sending end is in normal use state, guarantees that the temperature report is in normal operating condition to the duty cycle of temperature report system has been prolonged.

Further, the information carried in the temperature frame further includes: temperature corresponding to the time of sending the temperature frame, attribute information fixed by bluetooth broadcast, a universally Unique identifier uuid (universal Unique identifier) indicating the broadcast purpose, a serial number of the device, etc., wherein the time of sending the temperature frame can be referred to fig. 4, which is not described herein. Preferably, for an arbitrary time interval T within the time interval S, the number of the temperature frames may be denoted as K, and in combination with that an information frame needs to be sent once within the arbitrary time interval T, (K +1) times of real-time temperature needs to be saved, so that T/(K +1) times, that is, the real-time temperatures carried by the data frame and the temperature frame are both collected by the collecting device at the current time temperature, and accordingly, on one hand, the receiving end may presume the first temperature data in the historical temperature set after the arbitrary time interval T to quickly distinguish whether the executing device updates the historical temperature set.

As an optional embodiment, the method may further include: the information frame may be transmitted at a time earlier than the temperature frame. For example, referring to fig. 4, in the time interval T corresponding to the trigger signal, the rest of the data are temperature frames except that the first data is an information frame.

In some of these embodiments, the temperature frame is sent more than once over any bluetooth channel. Specifically, in the process of using bluetooth broadcast to broadcast the temperature, the temperature data is susceptible to obstacles such as buildings, transmission distances, and other factors in the bluetooth channel, and when the temperature frame is sent using bluetooth broadcast, the situation that the temperature frame is not received by the receiving end may occur. Therefore, the temperature frame is sent for multiple times in any channel corresponding to the Bluetooth broadcast, and the times can be set according to actual requirements, so that the receiving end can be ensured to completely receive the temperature frame, and the temperature data can be accurately restored.

In some embodiments, the bluetooth broadcast may enter a sleep state after the temperature frame or information frame is sent. After the Bluetooth broadcast stops broadcasting of the current temperature frame or the information frame, the Bluetooth broadcast enters a dormant state, the Bluetooth broadcast acquires the temperature frame or the next information frame of the next ordinal number in the dormant state, and then the Bluetooth broadcast is started to enter a working state for broadcasting. Because the Bluetooth broadcast of the embodiment of the application stops the original broadcast content first, enters the dormant state to set the new broadcast content, and then completes the temperature broadcast.

It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.

The embodiment also provides a system for temperature broadcast. Fig. 5 is a block diagram of a system for temperature broadcast according to an embodiment of the present application, and as shown in fig. 5, the system includes a transmitting end 51 and a receiving end 52.

The transmitting terminal 52 is configured to execute the method for broadcasting the temperature shown in any of the above embodiments or embodiment groups; the receiving end 52 is configured to receive the temperature frame or the information frame, restore the temperature difference in the temperature frame to a historical temperature, and store the historical temperature in the temperature database in a matching manner.

The present embodiment also provides an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.

Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.

Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:

acquiring a trigger signal, and responding to the trigger signal to acquire a historical temperature set;

grouping the historical temperatures in the historical temperature set to obtain more than one historical temperature group, wherein the historical temperatures in the historical temperature group are arranged according to sampling time;

respectively generating temperature numbers corresponding to the historical temperature groupsAccording to the group, for any temperature data group, each temperature data accords withWherein, CiIs the ith temperature data, AiThe ith historical temperature is n, and the n is the total number of the temperature data in the temperature data group;

and respectively generating temperature frames corresponding to the temperature data groups, and broadcasting the temperature frames by utilizing the matching of Bluetooth broadcasting.

In addition, by combining the method for broadcasting the temperature in the above embodiment, the embodiment of the present application can provide a storage medium to implement. The storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements any of the above-described method for network user role identification.

It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again. The sending end and the receiving end can be functional modules or program modules, and can be realized by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

It should be understood by those skilled in the art that various features of the above-described embodiments can be combined in any combination, and for the sake of brevity, all possible combinations of features in the above-described embodiments are not described in detail, but rather, all combinations of features which are not inconsistent with each other should be construed as being within the scope of the present disclosure.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种医用实时监测无线传输智能体温贴

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!