A method for a body temperature earphone to report data to a smart phone

By detecting the monitoring mode of the smartphone and managing RAM memory resources, the problem of data accumulation and disconnection of body temperature earphones under sniff mode is solved, and efficient data transmission and continuous monitoring are achieved.

CN114422890BActive Publication Date: 2025-07-29COSONIC INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111497207.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-09
Publication Date
2025-07-29
Estimated Expiration
2041-12-09

AI Technical Summary

Technical Problem

Body temperature headphones are in sniff mode monitoring mode when the smartphone is in sniff mode monitoring mode, mismatch in data interaction rates leads to data accumulation and insufficient memory, resulting in disconnection.

Method used

After the body temperature headset is connected to the smartphone, the monitoring mode status of the smartphone is detected. If it is in sniff mode, an exit command will be issued and data will be sent when the RAM memory resources are sufficient, otherwise the transmission will be suspended; if the RAM memory is insufficient, the transmission will be suspended and the timing will be retryed.

Benefits of technology

Improve the efficiency of obtaining body temperature headphone data by smartphones, preventing data accumulation and insufficient memory, ensuring continuity, and providing more intuitive body temperature and behavioral monitoring data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114422890B_ABST
    Figure CN114422890B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for a body temperature earphone to report data to a smart phone, including: S1. Determine whether to allow reporting data to the smart phone. If so, proceed to step S2; if not, return. S2. Determine whether the smart phone is in sniff mode. If so, issue a command of "not allowing entry into sniff mode and exiting sniff mode simultaneously", and proceed to step S3; if not, proceed to step S3. S3. Determine whether the storage resources of the RAM memory are sufficient. If so, proceed to step S4; if not, pause data transmission. S4. Retrieve data from the FLASH memory. S5. Apply for storage resources from the RAM memory for data transmission. S6. Store the data in the memory block of the RAM memory. S7. Report the data to the smart phone. S8. Release the storage resources of the RAM memory and return. The present invention enables the smart phone to obtain the data of the body temperature earphone more efficiently, facilitating the intuitive provision of body temperature and behavior operation monitoring data to the user, preventing data from accumulating on the body temperature earphone side when the smart phone is in sniff mode, and preventing disconnection due to insufficient memory of the body temperature earphone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of body temperature earphones, and particularly to a method for a body temperature earphone to report data to a smart phone. Background Art

[0002] A body temperature earphone refers to a body temperature earphone with a body temperature measurement function. The body temperature earphone accurately measures the body temperature on the eardrum or in the ear canal through a body temperature sensor (such as an infrared sensor), stores it in a flash memory, and then transmits the data to a smart phone through a wireless transmission module so that the user can detect the body temperature.

[0003] The body temperature earphone reports the acquired data to the smart phone when there is no service to avoid affecting the normal use of the body temperature earphone. However, when the smart phone is in the sniff mode at this time, the data interaction time between some chip smart phones and the body temperature earphone will become slower (interact once every X ms, and the rate is much slower than the reporting rate of the body temperature earphone). The smart phone requests the body temperature earphone to send a 1-slot packet, that is, it requires the body temperature earphone side to send it with a 3DH1 packet. Each packet has a maximum of only dozens of bytes. If it is not sent completely, it will be sent in the next time slot, that is, after X ms. Because the reporting data rate of the body temperature earphone is much greater than the interaction rate between the smart phone and the body temperature earphone at the data interaction time interval, the data that is not sent in time accumulates on the body temperature earphone side, and this situation will cause the body temperature earphone to disconnect due to insufficient memory.

[0004] As Figure 1 shown, it is a flowchart of a body temperature earphone reporting data to a smart phone in the prior art, and its steps are as follows:

[0005] S1. Determine whether the body temperature earphone is allowed to report data to the smart phone. If so, go to step S2; if not, return to the initial state;

[0006] S2. The body temperature earphone retrieves the data to be sent from the FLASH memory;

[0007] S3. The body temperature earphone applies to the RAM memory for a memory block to send data;

[0008] S4. The RAM memory determines whether the storage resources are sufficient. If so, go to step S5; if not, go to step S8;

[0009] S5. The storage resources of the RAM memory are sufficient, and the data packet is stored in the RAM memory;

[0010] S6. The body temperature earphone reports data to the smart phone through CCMP;

[0011] S7. After the data reporting is completed, the RAM memory releases the memory block storage resources, and the body temperature earphone returns to the initial state;

[0012] The storage resources of the S8.RAM memory are insufficient, and the application for storage resources from the RAM memory fails. The body temperature earphone disconnects and restarts, returning to the initial state.

[0013] Each time the body temperature earphone sends a data packet, it releases the corresponding RAM memory block. If the data cannot be sent all the time, the RAM memory block cannot be released, and finally it will cause the RAM memory to be insufficient and disconnect. Summary of the Invention

[0014] The technical problem to be solved by the present invention is to provide a method for a body temperature earphone to report data to a smart phone in view of the above-mentioned deficiencies in the prior art. After the body temperature earphone is connected to the smart phone, this method can enable the smart phone to obtain body temperature earphone data (body temperature data, user operation body temperature earphone data) more efficiently, facilitating the more intuitive provision of body temperature and behavior operation monitoring data to the users of the body temperature earphone, preventing data from accumulating on the body temperature earphone side when the smart phone is in the sniff mode monitoring mode state, and preventing the body temperature earphone from disconnecting due to insufficient memory.

[0015] To solve the above technical problems, the technical solution of the present invention is:

[0016] A method for a body temperature earphone to report data to a smart phone, including the following method steps:

[0017] S1. Determine whether the body temperature earphone is allowed to report data to the smart phone. If so, proceed to step S2; if not, return to the initial state.

[0018] S2. The body temperature earphone detects whether the smart phone is in the sniff mode monitoring mode state. If so, send a control command to the smart phone "not allowed to enter the sniff mode monitoring mode state and at the same time exit the sniff mode monitoring mode state", and then proceed to step S3; if not, directly proceed to step S3.

[0019] S3. The body temperature earphone determines whether the storage resources of the RAM memory are sufficient. If so, proceed to step S4; if not, suspend sending data.

[0020] S4. The body temperature earphone retrieves the data to be sent from the FLASH memory.

[0021] S5. The body temperature earphone applies for storage resources from the RAM memory for sending data.

[0022] S6. The data is stored in the memory block of the RAM memory.

[0023] S7. The body temperature earphone reports data to the smart phone.

[0024] After the data reporting is completed, the RAM memory releases the memory block storage resources, and the body temperature earphone returns to the initial state.

[0025] Preferably, in step S3, if the storage resources of the RAM memory are insufficient, the following method steps are entered:

[0026] (1) Turn on the pause data reporting timer of the body temperature earphone, and the pause time is T;

[0027] (2) Determine whether the pause time of the pause data reporting timer has reached. If so, restart step S3. If not, continue to pause sending data.

[0028] Preferably, the pause time T is 1 minute.

[0029] Preferably, in step S7, the body temperature earphone reports data to the smart phone through the CCMP protocol.

[0030] Preferably, in step S1, before determining whether to allow reporting data to the smart phone, a wireless Bluetooth connection is established between the body temperature earphone and the smart phone.

[0031] Preferably, in step 8, after the data reporting is completed, the body temperature earphone allows the smart phone to re-enter the sniff mode listening mode state.

[0032] The beneficial effects of the present invention are:

[0033] (1) After the body temperature earphone allows reporting data to the smart phone, the present invention detects whether the smart phone is in the sniff mode listening mode state. If so, a control command of "not allowing to enter the sniff mode listening mode state and at the same time exiting the sniff mode listening mode state" is sent to the smart phone, and then step S3 is entered. This can enable the smart phone to obtain the data of the body temperature earphone more efficiently, such as body temperature data and user operation data of the body temperature earphone, facilitating the more intuitive provision of body temperature and behavior operation monitoring data to the user of the body temperature earphone, and preventing data from accumulating on the body temperature earphone side when the smart phone is in the sniff mode listening mode state, and preventing disconnection due to insufficient memory of the body temperature earphone.

[0034] (2) After the present invention determines that the smart phone is in a non-sniff mode listening mode state or exits the sniff mode listening mode state, the body temperature earphone determines whether the storage resources of the RAM memory are sufficient. If so, step S4 is entered. If not, data sending is paused. This can prevent disconnection and restart due to insufficient memory of the body temperature earphone.

[0035] After the body temperature earphone finishes reporting data, the RAM memory releases the memory block storage resources, and the body temperature earphone returns to the initial state, so as to prepare for the next report of data to the smart phone.

[0036] In addition, in the preferred embodiment of the present invention, if the storage resources of the RAM memory are insufficient, the following method steps are entered: (1) Turn on the pause reporting data timer of the body temperature earphone, and the pause time is T; (2) Determine whether the pause time of the pause reporting data timer has reached. If so, restart step S3. If not, continue to pause sending data; this can prevent the problem of insufficient RAM memory caused by other abnormal reasons, which in turn leads to the problem of packets that fail to be sent; in this case, a retransmission process is required. First, pause the application reporting, and then apply for memory resources from the RAM memory to report data again after T time (1 minute). BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a flowchart of the body temperature earphone reporting data to the smart phone in the prior art.

[0038] Figure 2 is a flowchart of the body temperature earphone reporting data to the smart phone of the present invention. DETAILED DESCRIPTION OF THE INVENTION

[0039] The structural principle and working principle of the present invention will be further described in detail below with reference to the accompanying drawings.

[0040] As Figure 2 shown, the present invention is a method for a body temperature earphone to report data to a smart phone, including the following method steps:

[0041] S1. Determine whether the body temperature earphone is allowed to report data to the smart phone. The data includes body temperature data and user control body temperature earphone data. If so, enter step S2. If not, return to the initial state;

[0042] S2. The body temperature earphone detects whether the smart phone is in the sniff mode listening mode state. If so, send a control command of "not allowed to enter the sniff mode listening mode state and at the same time exit the sniff mode listening mode state" to the smart phone, and then enter step S3; if not, directly enter step S3;

[0043] S3. The body temperature earphone determines whether the storage resources of the RAM memory are sufficient. If so, enter step S4. If not, pause sending data;

[0044] S4. The body temperature earphone retrieves the data to be sent from the FLASH memory. The human body temperature data sensed by the body temperature earphone is stored in the FLASH memory;

[0045] S5. The body temperature earphone applies for storage resources from the RAM memory for data transmission;

[0046] S6. The data is stored in the memory block of the RAM memory;

[0047] S7. The body temperature earphone reports data to the smart phone;

[0048] S8. After the data reporting is completed, the RAM memory releases the memory block storage resources, and the body temperature earphone returns to the initial state; after the data reporting is completed, the body temperature earphone allows the smart phone to re-enter the sniff mode listening mode state.

[0049] By adopting this method of reporting data, the present invention can enable the smart phone to obtain the data of the body temperature earphone more efficiently, such as body temperature data and user operation data of the body temperature earphone, which is convenient for providing more intuitive body temperature and behavior operation monitoring data to the user of the body temperature earphone, preventing data from accumulating on the body temperature earphone side when the smart phone is in the sniff mode listening mode state, and preventing the body temperature earphone from disconnecting and restarting due to insufficient memory. After the body temperature earphone finishes reporting data, the RAM memory releases the memory block storage resources, and the body temperature earphone returns to the initial state, so as to prepare for the next data reporting to the smart phone.

[0050] As Figure 2 shown, in step S3, if the storage resources of the RAM memory are insufficient, the following method steps are entered:

[0051] (1) Turn on the pause data reporting timer of the body temperature earphone, and the pause time is T, and T is preferably 1 minute;

[0052] (2) Determine whether the pause time of the pause data reporting timer has reached. If so, restart step S3. If not, continue to pause data transmission.

[0053] This can prevent the problem of insufficient RAM memory caused by other abnormal reasons, and further prevent the problem of data packets with transmission failures; in this case, a retransmission process is required. First, pause the application reporting, and then apply for memory resources from the RAM memory to report data again after 1 minute.

[0054] As Figure 2 shown, in step S7, the body temperature earphone reports data to the smart phone through the CCMP protocol. CCMP (Counter CBC-MAC Protocol) is the Counter mode Cipher Block Chaining Message Authentication Code Protocol. CCMP is mainly composed of two algorithms, namely the CTR mode and the CBC-MAC mode. The CTR mode is an encryption algorithm, and the CBC-MAC is used for message integrity operations.

[0055] AsFigure 2 As shown, in step S1, before determining whether to allow data reporting to the smart phone, a wireless Bluetooth connection is established between the body temperature earphone and the smart phone. After the wireless Bluetooth connection, the smart phone is in the sniff mode monitoring mode state or the non-sniff mode monitoring mode state.

[0056] The above is only a preferred embodiment of the present invention. Any minor modifications, equivalent changes, and decorations made to the above embodiments based on the technical solutions of the present invention are all within the scope of the technical solutions of the present invention.

Claims

1. A method for a body temperature earphone to report data to a smart phone, characterized in that, It includes the following method steps: S1. Determine whether the body temperature earphone is allowed to report data to the smart phone. If so, go to step S2; if not, return to the initial state. S2. The body temperature earphone detects whether the smart phone is in the sniff mode monitoring mode state. If so, send a control command of "not allowed to enter the sniff mode monitoring mode state and exit the sniff mode monitoring mode state at the same time" to the smart phone, and then go to step S3; if not, directly go to step S3. S3. The body temperature earphone determines whether the storage resources of the RAM memory are sufficient. If so, go to step S4; if not, pause sending data. S4. The body temperature earphone retrieves the data to be sent from the FLASH memory. S5. The body temperature earphone applies for storage resources from the RAM memory for sending data. S6. The data is stored in the memory block of the RAM memory. S7. The body temperature earphone reports data to the smart phone. S8. After the data reporting is completed, the RAM memory releases the memory block storage resources, and the body temperature earphone returns to the initial state. In step S3, if the storage resources of the RAM memory are insufficient, enter the following method steps: (1) Turn on the pause data reporting timer of the body temperature earphone, and the pause time is T. (2) Determine whether the pause time of the pause data reporting timer has reached. If so, restart step S3; if not, continue to pause sending data.

2. The method for the body temperature earphone to report data to the smart phone according to claim 1, wherein: The pause time T is 1 minute.

3. The method for the body temperature earphone to report data to a smart phone according to claim 1, wherein: In step S7, the body temperature earphone reports data to the smart phone through the CCMP protocol.

4. The method for the body temperature earphone to report data to a smart phone according to claim 1, wherein: In step S1, before determining whether to allow reporting data to the smart phone, a wireless Bluetooth connection is established between the body temperature earphone and the smart phone.

5. The method for the body temperature earphone to report data to a smart phone according to claim 1, characterized in that: In step 8, after the data reporting is completed, the body temperature earphone allows the smart phone to re-enter the sniff mode monitoring mode state.

Citation Information

Patent Citations

  • Bluetooth earphone for measuring body temperature

    US20050113131A1

  • System for body temperature measurement

    US20180214028A1