CN108345811B - Radio frequency interference suppression method and device - Google Patents

Radio frequency interference suppression method and device Download PDF

Info

Publication number
CN108345811B
CN108345811B CN201710050286.8A CN201710050286A CN108345811B CN 108345811 B CN108345811 B CN 108345811B CN 201710050286 A CN201710050286 A CN 201710050286A CN 108345811 B CN108345811 B CN 108345811B
Authority
CN
China
Prior art keywords
radio frequency
thread
interface
value
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710050286.8A
Other languages
Chinese (zh)
Other versions
CN108345811A (en
Inventor
李荣均
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou aiyao medical and Health Technology Co., Ltd
Original Assignee
Hangzhou Aiyao Medical And Health Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Aiyao Medical And Health Technology Co Ltd filed Critical Hangzhou Aiyao Medical And Health Technology Co Ltd
Priority to CN201710050286.8A priority Critical patent/CN108345811B/en
Publication of CN108345811A publication Critical patent/CN108345811A/en
Application granted granted Critical
Publication of CN108345811B publication Critical patent/CN108345811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10019Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves resolving collision on the communication channels between simultaneously or concurrently interrogated record carriers.
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/48Biological material, e.g. blood, urine; Haemocytometers
    • G01N33/50Chemical analysis of biological material, e.g. blood, urine; Testing involving biospecific ligand binding methods; Immunological testing
    • G01N33/66Chemical analysis of biological material, e.g. blood, urine; Testing involving biospecific ligand binding methods; Immunological testing involving blood sugars, e.g. galactose

Abstract

The invention provides a radio frequency interference suppression method and a radio frequency interference suppression device, and belongs to the technical field of medical services. The method comprises the following steps: determining a current interface of the health data measuring equipment, detecting whether the current interface is switched from a measurement-independent interface to a measurement-associated interface, and if the current interface is switched to the measurement-associated interface, adjusting the radio frequency transmitting power from the second radio frequency power to the first radio frequency power, wherein the first radio frequency power is smaller than the second radio frequency power; when the health data measuring equipment detects that the current interface is a measurement correlation interface, the radio frequency transmitting power during normal work is automatically reduced, and the interference of radio frequency signals on current signals generated by the measurement test paper is reduced, so that the accuracy of the measured blood sugar value is ensured.

Description

Radio frequency interference suppression method and device
Technical Field
The invention relates to the technical field of medical services, in particular to a radio frequency interference suppression method and a radio frequency interference suppression device.
Background
With the improvement of health consciousness of people, frequent measurement of health data gradually becomes the habit of people, and portable health data measurement equipment is widely popularized and applied.
Taking health data measuring equipment as an example of a household blood glucose meter, when a user needs to measure the blood glucose value, blood per se is dripped onto the measuring test paper, then the measuring test paper is inserted into the household blood glucose meter, and because of the enzyme in the measuring test paper, the enzyme and the blood glucose can generate weak current signals, and the household blood glucose meter determines the blood glucose value corresponding to the current signals according to the current signals generated by dripping the blood. In addition, a radio frequency component is arranged in the household blood glucose meter with the networking function, but the radio frequency component can generate a radio frequency signal in the data transmission process, and the radio frequency signal can interfere with an extremely weak current signal generated by the measurement test paper, so that the measured blood glucose value is inaccurate. Aiming at the problem of low accuracy of the measured blood sugar value, the existing method for inhibiting radio frequency interference is to cover a blood sugar measuring module in a household blood sugar meter by a metal shielding case, wherein the blood sugar measuring module is a hardware module for measuring the blood sugar value.
In the method, the metal shielding cover cannot cover the key electronic components in all directions in the aspect of structure, and the radio frequency signals still interfere the key electronic components to a certain extent; when the user measures the blood sugar level, the user needs to insert the measurement test paper into the household blood sugar meter for measurement, and the exposed measurement test paper has an electric conductor which is also interfered by the radio frequency signal, so that the accuracy of the measured blood sugar level is low.
Disclosure of Invention
In order to solve the problem that the accuracy of the measured blood glucose value is low, the invention provides a radio frequency interference suppression method and a radio frequency interference suppression device. The technical scheme is as follows:
according to a first aspect of the embodiments of the present invention, there is provided a radio frequency interference suppression method, including:
determining a current interface of health data measuring equipment, wherein the current interface is an interface which is operated in a foreground in the health data measuring equipment, and the health data measuring equipment is equipment for measuring health data of a user;
detecting whether the current interface is switched from a measurement-independent interface to a measurement-associated interface, wherein the measurement-associated interface is an interface related to a measurement process, and the measurement-independent interface is an interface other than the measurement-associated interface;
and if the measurement correlation interface is switched to, adjusting the radio frequency transmission power from a second radio frequency power to a first radio frequency power, wherein the first radio frequency power is smaller than the second radio frequency power.
According to a second aspect of the embodiments of the present invention, there is provided a radio frequency interference suppression apparatus, including:
the system comprises a determining module, a judging module and a display module, wherein the determining module is used for determining a current interface of health data measuring equipment, the current interface is an interface which is operated in a foreground in the health data measuring equipment, and the health data measuring equipment is used for measuring health data of a user;
a detection module, configured to detect whether the current interface is switched from a measurement-unrelated interface to a measurement-related interface, where the measurement-related interface is an interface related to a measurement process, and the measurement-unrelated interface is an interface other than the measurement-related interface;
and the adjusting module is used for adjusting the radio frequency transmitting power from the second radio frequency power to the first radio frequency power if the measurement correlation interface is switched to, wherein the first radio frequency power is smaller than the second radio frequency power.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects:
in the radio frequency interference suppression method provided by this embodiment, it is detected whether the current interface is switched from the measurement-unrelated interface to the measurement-related interface by determining the current interface in which the health data measurement device operates in the foreground, and if the current interface is switched to the measurement-related interface, the radio frequency transmission power is adjusted from the second radio frequency power to the first radio frequency power, where the first radio frequency power is smaller than the second radio frequency power; when the health data measuring equipment detects that the current interface is a measurement correlation interface, the radio frequency transmitting power during normal work is automatically reduced, and the interference of radio frequency signals on current signals generated by the measurement test paper is reduced, so that the accuracy of the measured blood sugar value is ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the invention;
FIG. 2 is a schematic diagram of another embodiment of the present invention;
fig. 3A is a flowchart of a radio frequency interference suppression method according to an exemplary embodiment of the present invention;
fig. 3B is a schematic interface diagram of a radio frequency interference suppression method according to another embodiment of the present invention;
fig. 3C is a flowchart of a radio frequency interference suppression method according to another embodiment of the present invention;
fig. 3D is a schematic interface diagram of a radio frequency interference suppression method according to another embodiment of the present invention;
fig. 4A is a flowchart of a radio frequency interference suppression method according to an exemplary embodiment of the present invention;
fig. 4B is a schematic interface diagram of a radio frequency interference suppression method according to another embodiment of the present invention;
fig. 4C is a flowchart of a radio frequency interference suppression method according to another embodiment of the present invention;
fig. 5 is a flowchart of a radio frequency interference suppression method according to another embodiment of the present invention.
Fig. 6 is a block diagram of an apparatus for suppressing radio frequency interference according to an embodiment of the present invention;
fig. 7 is a block diagram of an apparatus for radio frequency interference suppression according to another embodiment of the present invention;
fig. 8 is a block diagram of a terminal according to an embodiment of the present invention;
fig. 9 is a block diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a schematic structural diagram of an implementation environment according to an embodiment of the invention is shown. The implementation environment includes: a health data measuring device 120, a server 140 and a terminal 160.
The health data measuring device 120 is a health data measuring device having a networking function, such as at least one of a blood glucose meter, a blood pressure meter, a fat meter, a skin detector, and a biomedical channel detector. In the embodiment of the present invention, the health data measuring device 120 is exemplified as a blood glucose meter.
The terminal 140 is an intelligent device installed with a third-party application, such as a mobile phone, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4) player, a laptop computer, a desktop computer, and the like.
Optionally, a communication application program is installed in the terminal 140, and the communication application program may be an instant communication program, a video communication program or a voice communication program. For example, the communication application is an instant messenger program QQ, a microblog, a WeChat, or the like.
Optionally, the health data measuring device 120 and the terminal 140 are connected through a wireless network or a wired network.
Server 160 is a backend server for third party applications. The server 160 may be a server or a server cluster composed of a plurality of servers or a cloud computing center.
Alternatively, the server 160 establishes a connection with the health data measuring device 120 and the terminal 140 through a wireless network or a wired network, respectively.
Generally, the health data measuring device 120 processes the measured health data by the server 160, and then sends the processed health data to the third-party application program running in the terminal 140 by the server 160, so as to implement the data transmission function.
Optionally, the wireless or wired networks described above use standard communication techniques and/or protocols. The Network is typically the Internet, but may be any Network including, but not limited to, a Local Area Network (LAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a mobile, wireline or wireless Network, a private Network, or any combination of virtual private networks. In some embodiments, data exchanged over a network is represented using techniques and/or formats including Hypertext Mark-up Language (HTML), Extensible Markup Language (XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec). In other embodiments, custom and/or dedicated data communication techniques may also be used in place of, or in addition to, the data communication techniques described above.
Based on the implementation environment provided in fig. 1, with reference to fig. 2, the health data measuring device 120 includes: a CPU230(Central Processing Unit), a memory 240, a radio frequency component 250, and a blood glucose measuring module 260, wherein the memory 240 includes an application layer 241, an application framework (english: frame) layer 242, and a kernel layer 243.
Optionally, the application layer 241 includes a first thread 241a and a second thread 241 b; the health data measuring device detects the current interface of the health data measuring device 120 through the first thread 241a, and sets the radio frequency emission power according to the detection result of the first thread 241a through the second thread 241 b; wherein, on a different hardware platform, the library interface provided by the frame layer 242 is called by the second thread 241 b. The frame layer 242 encapsulates the library interface in advance, so that the function of setting the radio frequency power by the software under different hardware platforms can be compatibly realized by the library function of the library encapsulated in the frame layer; the CPU230 sends an AT (english: Attention) command to the built-in radio frequency component 250 according to the library function of library, so that the radio frequency component 250 sets the radio frequency transmission power according to the incoming parameters carried by the AT command.
Optionally, the first thread 241a and the second thread 241b share a preset memory variable 241c, where the preset memory variable 241c includes four state values corresponding to the primary radio frequency setting, which are a first value, a second value, a third value, and a fourth value, respectively.
The radio frequency state value corresponding to the primary radio frequency setting is a first value or a second value, and when the radio frequency state value read by the second thread 241b is the first value, the radio frequency transmitting power is set to be a first radio frequency power; when the radio frequency state value read by the second thread 241b is the second value, the radio frequency transmission power is set to be the second radio frequency power.
Setting the corresponding execution state value of the primary radio frequency to be a third value or a fourth value, wherein when the execution state value read by the first thread 241a takes the third value, the second thread 241b is indicated to execute the radio frequency setting, and the first thread 241a executes the step of reading the execution state value again; when the execution state value read by the first thread 241a takes the fourth value, it indicates that the second thread 241b has completed the execution of the radio frequency setting, and the first thread 241a starts the second thread 241 b.
Optionally, in the following embodiment, the first value is "state _ low", the second value is "state _ normal", the third value is "state _ processing", and the fourth value is "state _ none" as an example for explanation, and the present embodiment does not limit the expression manner of the four values.
Optionally, the rf component 250 is a communication chip, which may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), etc. After the rf component 250 sets the rf transmission power, the health data measuring device 120 sends the measured health data to the server 160 according to the set rf transmission power.
If the health data measuring device 120 sends data to the server 160 through the built-in radio frequency component during the measurement process of the user, the radio frequency signal generated by the radio frequency component interferes with the extremely weak current signal generated by the measurement test paper, so that the measured blood sugar value is inaccurate, and for the problem that the accuracy of the measured blood sugar value is low, the embodiment of the invention automatically reduces the radio frequency transmission power of the radio frequency component during normal operation by detecting the current interface of the health data measuring device 120, and if the current interface is a measurement-related interface, so that the interference of the generated radio frequency signal on the current signal generated by the measurement test paper is reduced, and the accuracy of the measured blood sugar value is ensured.
Referring to fig. 3A, a flowchart of a radio frequency interference suppression method according to an exemplary embodiment of the present invention is shown. The present embodiment is illustrated by applying the radio frequency interference suppression method to the health data measuring device 120 shown in fig. 1. The radio frequency interference suppression method comprises the following steps:
step 301, determining a current interface of the health data measuring device, where the current interface is an interface in the health data measuring device that is in foreground operation, and the health data measuring device is a device for measuring health data of a user.
Optionally, the health data measuring device determines the current interface running in the foreground from a predetermined stack of the operating system, where the predetermined stack is a predetermined active stack.
The type of the current interface comprises at least one of a measurement associated interface and a measurement irrelevant interface, the measurement associated interface is an interface related to a measurement process, and the measurement irrelevant interface is an interface other than the measurement associated interface.
Step 302, detecting whether the current interface is switched from a measurement-independent interface to a measurement-associated interface, wherein the measurement-associated interface is an interface related to the measurement process, and the measurement-independent interface is an interface other than the measurement-associated interface.
Optionally, the health data measuring device detects whether the current interface is switched from the measurement-independent interface to the measurement-associated interface; illustratively, the measurement-related interface includes a health data measurement interface, and the measurement-independent interface includes at least one of a user management interface, a user account login interface, a measurement result notification interface, and a measurement record interface. This embodiment is not limited thereto.
Step 303, if the measurement correlation interface has been switched to, adjusting the rf transmission power from the second rf power to the first rf power, where the first rf power is smaller than the second rf power.
Optionally, if the measurement association interface has been switched to, the health data measurement device adjusts the radio frequency transmission power from the second radio frequency power to the first radio frequency power; illustratively, the second rf power is 255 and the first rf power is 0. The present embodiment does not limit the specific values of the first rf power and the second rf power.
Optionally, an absolute value of a difference between the first radio frequency power and the second radio frequency power is greater than a preset threshold; illustratively, the predetermined threshold is 100 or 200. This embodiment is not limited thereto.
For example, referring to fig. 3B in combination, the health data measuring device monitors the current interface running in the foreground every 30 seconds by means of active polling, at 15: 58: 00, determining that the current interface is a user account login interface, and 15: 58: and 30, determining that the current interface is a health data measuring interface, and adjusting the radio frequency transmission power from 255 to 0 by the health data measuring equipment when the current interface is detected to be switched from the user account login interface to the health data measuring interface.
In summary, in the radio frequency interference suppression method provided in this embodiment, it is detected whether the current interface is switched from the measurement-unrelated interface to the measurement-related interface by determining that the health data measurement device is in the current interface in the foreground operation, and if the current interface is switched to the measurement-related interface, the radio frequency transmission power is adjusted from the second radio frequency power to the first radio frequency power, where the first radio frequency power is smaller than the second radio frequency power; when the health data measuring equipment detects that the current interface is a measurement correlation interface, the radio frequency transmitting power during normal work is automatically reduced, and the interference of radio frequency signals on current signals generated by the measurement test paper is reduced, so that the accuracy of the measured blood sugar value is ensured.
In an alternative embodiment provided based on fig. 3A, step 304 and step 305 are further included after step 303, as shown in fig. 3C:
step 304, detecting whether the current interface is switched from the measurement-related interface to the measurement-unrelated interface.
Optionally, the health data measurement device detects whether the current interface switches from the measurement-associated interface to the measurement-unrelated interface.
Step 305, if the measurement-independent interface has been switched to, adjusting the rf transmit power from the first rf power to a second rf power.
Optionally, the health data measurement device adjusts the radio frequency transmit power from the first radio frequency power to the second radio frequency power if the measurement-independent interface has been switched to.
For example, with reference to fig. 3D, the health data measuring device monitors the current interface running in the foreground every 30 seconds by means of active polling, at 15: 58: 00, determining the current interface as a health data measurement interface, and when the current interface is 15: 58: and 30, determining that the current interface is a health data measuring interface, and adjusting the radio frequency transmission power from 255 to 0 by the health data measuring equipment when the current interface is detected to be switched from the user account login interface to the health data measuring interface.
It should be noted that, the details of step 304 and step 305 may refer to the embodiment provided in fig. 3A, and are not described herein again.
In summary, in this embodiment, by detecting whether the current interface is switched from the measurement-related interface to the measurement-unrelated interface, if the current interface is switched to the measurement-unrelated interface, the radio frequency transmission power is adjusted from the first radio frequency power to the second radio frequency power; when the health data measuring equipment detects that the measurement associated interface is quitted, namely the current interface is a measurement irrelevant interface, the radio frequency transmitting power in normal work can be recovered, and the data transmission efficiency of the health data measuring equipment is ensured.
Referring to fig. 4A, a flowchart of a method for radio frequency interference suppression according to another embodiment of the present invention is shown. The present embodiment is illustrated by applying the radio frequency interference suppression method to the implementation environment shown in fig. 2. The radio frequency interference suppression method comprises the following steps:
in step 401, the first thread determines the current interface of the health data measurement device.
Optionally, the health data measuring device determines a current interface of the health data measuring device through the first thread.
The current interface is an interface which is in foreground operation in the health data measuring equipment, and the health data measuring equipment is equipment for measuring health data of the user.
Optionally, the health data measuring device monitors a current interface running in the foreground in an active polling manner, and determines the current interface running in the foreground according to foreground running Activity (Activity); the activities are components comprising user interfaces and are used for realizing interaction with users, and each activity corresponds to one user interface. The foreground running activity is a component corresponding to the user interface positioned at the uppermost layer. The top most user interface is the user interface that the user sees on the screen when using the health data measuring device.
Taking an operating system as an android operating system as an example, the activities can be stacked, and each time a new activity is started, the new activity is overlaid on the original activity; and storing the started activities by using an activity stack, wherein the activity stack is a last-in first-out data structure, and the activity can be stacked in the activity stack and positioned at the top of the stack when starting one activity in the default condition, and the activity positioned at the top of the stack is foreground operation activity. When the operation activity of the foreground changes, the activity at the top of the stack in the activity stack also changes, the health data measuring equipment monitors the operation activity of the foreground in an active polling mode through a first thread, and determines a current interface corresponding to the operation activity of the foreground.
It should be noted that, in addition to the new activity being at the top of the stack, when an old activity is switched to the foreground operation, the old activity is moved to the top of the stack again. The health data measuring equipment can determine the current interface running in the foreground through the packet name and the class name in the foreground running activity.
In step 402, the first thread detects whether the current interface is switched from the measurement-independent interface to the measurement-dependent interface.
Optionally, the health data measurement device detects whether the current interface is switched from the measurement-independent interface to the measurement-associated interface through the first thread; when it is detected that the current interface has switched to the measurement association interface, step 403 is executed, otherwise, the first thread is ended.
In step 403, the first thread reads an execution state value corresponding to the last rf setting in the preset memory variable.
Optionally, the health data measurement device reads an execution state value corresponding to the last radio frequency setting in the preset memory variable through the first thread.
The execution state value is a third value "state _ processing" or a fourth value "state _ none", the third value is used for indicating that the second thread is executing the radio frequency setting, and the fourth value is used for indicating that the second thread has executed the radio frequency setting.
In step 404, the first thread writes a radio frequency state value corresponding to the radio frequency setting process to a preset memory variable.
Optionally, the health data measurement device writes a radio frequency state value corresponding to the radio frequency setting process to a preset memory variable through a first thread.
The preset memory variable is a memory variable shared by the first thread and the second thread, the radio frequency state value is a first value "state _ low", and the first value is used for indicating that the radio frequency transmitting power is set to be the first radio frequency power.
The first thread is used for detecting the current interface, and the second thread is used for setting the radio frequency emission power.
In step 405, the first thread determines whether the read execution state value corresponding to the last rf setting is a fourth value.
Optionally, the health data measurement device determines, by using the first thread, whether the read execution state value corresponding to the last radio frequency setting is a fourth value "state _ none"; if the read execution state value corresponding to the last radio frequency setting is determined to be the fourth value "state _ none", step 406 is executed, otherwise, a user interface displays a prompt message, where the prompt message is used to prompt a user to wait, as shown in fig. 4B.
For example, the execution state value corresponding to the last radio frequency setting read by the first thread is "state _ none", the radio frequency state value corresponding to the radio frequency setting process of this time is "state _ low", the first thread writes "state _ low" into the preset memory variable, at this time, "state _ none" in the preset memory variable is replaced by "state _ low", the first thread judges that the read "state _ none" is the fourth value, and step 406 is executed.
In step 406, when the execution status value is the fourth value, the first thread starts the second thread.
Optionally, when the execution state value is a fourth value, the health data measurement device sends a start instruction to the second thread through the first thread, and the second thread starts after receiving the start instruction.
In step 407, the second thread sets the rf transmit power to the first rf power according to the rf status value.
Optionally, the health data measuring device sets the radio frequency transmission power to the first radio frequency power according to the radio frequency state value through the second thread.
In summary, in the radio frequency interference suppression method provided in this embodiment, it is detected whether the current interface is switched from the measurement-unrelated interface to the measurement-related interface by determining that the health data measurement device is in the current interface in the foreground operation, and if the current interface is switched to the measurement-related interface, the radio frequency transmission power is adjusted from the second radio frequency power to the first radio frequency power, where the first radio frequency power is smaller than the second radio frequency power; when the health data measuring equipment detects that the current interface is a measurement correlation interface, the radio frequency transmitting power during normal work is automatically reduced, and the interference of radio frequency signals on current signals generated by the measurement test paper is reduced, so that the accuracy of the measured blood sugar value is ensured.
In this embodiment, the execution state value corresponding to the last radio frequency setting in the preset memory variable is read by the first thread, the first thread determines whether the read execution state value is a fourth value, and when the execution state value is the fourth value, the first thread starts the second thread; because the first thread and the second thread are independent, the thread for executing the display interface process and the thread for executing the judgment process are not the same thread, thereby avoiding the situation that the user interface is stuck.
In the embodiment provided in fig. 4A, the above steps 402 and 407 may be alternatively implemented as steps 402a and 407a, as shown in fig. 4C:
in step 402a, the first thread detects whether the current interface is switched from the measurement-related interface to the measurement-unrelated interface.
Optionally, the health data measurement device detects whether the current interface is switched from the measurement-related interface to the measurement-unrelated interface through the first thread.
In step 407a, the second thread sets the rf transmit power to the second rf power according to the rf status value.
Optionally, the health data measuring device sets the radio frequency transmission power to a second radio frequency power according to the radio frequency state value through a second thread.
Specifically, when the health data measuring device detects that the current interface is switched from the measurement associated interface to the measurement unrelated interface through the first thread, the first thread reads an execution state value corresponding to the last radio frequency setting in the preset memory variable; the first thread writes a radio frequency state value corresponding to the radio frequency setting process into a preset memory variable, wherein the radio frequency state value is a second value, and the second value is used for indicating that the radio frequency transmitting power is set to be second radio frequency power; and the first thread judges whether the read execution state value corresponding to the last radio frequency setting is a fourth value, when the execution state value is the fourth value, the first thread starts a second thread, and the second thread sets the radio frequency emission power as a second radio frequency power according to the radio frequency state value.
For example, the execution state value corresponding to the last radio frequency setting read by the first thread is "state _ normal", the radio frequency state value corresponding to the radio frequency setting process of this time is "state _ normal", the first thread writes "state _ normal" into the preset memory variable, at this time, "state _ normal" in the preset memory variable is replaced by "state _ normal", the first thread judges that the read "state _ normal" is a fourth value, the second thread is started, and the second thread sets the radio frequency transmission power to the second radio frequency power according to the radio frequency state value "state _ normal".
It should be noted that, the relevant details in steps 402a and 407a may refer to the embodiment provided in fig. 4A, and are not described herein again.
In the embodiments provided in fig. 4A and 4C, step 407 and step 407a can be alternatively implemented as step 408 to step 412, as shown in fig. 5:
in step 408, the second thread reads the radio frequency state value corresponding to the current radio frequency setting process in the preset memory variables.
Optionally, the health data measurement device reads a radio frequency state value corresponding to the radio frequency setting process in the preset memory variable through the second thread.
In step 409, the second thread writes a third value into the preset memory variable, where the third value is used to indicate that the second thread is executing the radio frequency setting.
Optionally, the health data measurement device writes a third value into the preset memory variable through the second thread, where the third value is used to indicate that the second thread is executing the radio frequency setting.
It should be noted that, after the second thread writes the third value into the preset memory variable, the radio frequency state value corresponding to the current radio frequency setting process in the preset memory variable is replaced by the written third value, and if no new data is written into the preset memory variable before the second thread reads data again, the third value is the radio frequency state value corresponding to the next radio frequency setting in the preset memory variable read by the second thread.
In step 410, the second thread determines whether the read radio frequency state value corresponding to the radio frequency setting process is the first value.
Optionally, the health data measuring device judges whether the read radio frequency state value corresponding to the radio frequency setting process is a first value or not through a second thread; if yes, go to step 407d, otherwise go to step 412.
Step 411, when the radio frequency state value is the first value, the second thread calls the preset interface to send a setting instruction to the radio frequency component, where the setting instruction carries the first import parameter, so that the radio frequency component sets the radio frequency transmission power to the first radio frequency power according to the first import parameter.
Optionally, when the radio frequency state value is the first value, the health data measurement device calls a library function of the frame layer through the second thread to send a setting instruction to the radio frequency component.
Optionally, the setting instruction is an AT instruction, and the second thread communicates with the radio frequency component through the AT instruction; illustratively, the AT instruction carries a first incoming parameter "true", and the radio frequency component sets the radio frequency transmission power to the first radio frequency power according to the first incoming parameter "true".
In step 412, the second thread determines whether the read radio frequency state value corresponding to the radio frequency setting process is the second value.
Optionally, the health data measuring device judges whether the read radio frequency state value corresponding to the radio frequency setting process is a second value or not through a second thread; if so, go to step 413, otherwise, go to step 414.
In step 413, when the radio frequency state value is the second value, the second thread calls the preset interface to send a setting instruction to the radio frequency component, where the setting instruction carries the second incoming parameter, so that the radio frequency component sets the radio frequency transmission power to the second radio frequency power according to the second incoming parameter.
Optionally, when the radio frequency state value is a second value, the health data measurement device calls the preset interface through the second thread to send a setting instruction to the radio frequency component.
For example, the AT command carries a second incoming parameter "false", and the rf component sets the rf transmit power to the second rf power according to the second incoming parameter "false".
In step 414, the second thread reads the radio frequency state value corresponding to the next radio frequency setting in the preset memory variables.
Optionally, the health data measurement device reads a radio frequency state value corresponding to the next radio frequency setting in the preset memory variable through the second thread.
In step 415, the second thread determines whether the execution state value corresponding to the next rf setting in the preset memory variable is the third value.
Optionally, the health data measurement device determines, through the second thread, whether an execution state value corresponding to the next radio frequency setting in the preset memory variable is a third value; if so, go to step 416, otherwise, go to step 409 again.
In step 416, after the setting of the radio frequency component is completed, the second thread writes a fourth value into the preset memory variable, where the fourth value is used to indicate that the second thread has completed the radio frequency setting.
Optionally, after the radio frequency component is set, the health data measurement device writes a fourth value into the preset memory variable through the second thread, where the fourth value is used to indicate that the second thread has performed the radio frequency setting.
In summary, in the radio frequency interference suppression method provided in this embodiment, it is detected whether the current interface is switched from the measurement-unrelated interface to the measurement-related interface by determining that the health data measurement device is in the current interface in the foreground operation, and if the current interface is switched to the measurement-related interface, the radio frequency transmission power is adjusted from the second radio frequency power to the first radio frequency power, where the first radio frequency power is smaller than the second radio frequency power; when the health data measuring equipment detects that the current interface is a measurement correlation interface, the radio frequency transmitting power during normal work is automatically reduced, and the interference of radio frequency signals on current signals generated by the measurement test paper is reduced, so that the accuracy of the measured blood sugar value is ensured.
In the embodiment, when the radio frequency state value is the first value, the second thread calls the preset interface to send a setting instruction to the radio frequency component, wherein the setting instruction carries the first input parameter; when the radio frequency state value is a second value, a second thread calls a preset interface to send a setting instruction to the radio frequency component, and the setting instruction carries a second incoming parameter, so that the radio frequency component can set radio frequency transmitting power according to the value of the incoming parameter; because at most one thread in the running state exists in the second threads, the second threads process data in sequence, and the condition that the result of radio frequency setting is disordered due to asynchronous calling of an interface is avoided.
In an illustrative example, as shown in table one, taking the health data measuring device as a home blood glucose meter as an example, the home blood glucose meter adopting the above-mentioned radio frequency interference suppression method is tested by using a wireless communication tester under different GSM channels, wherein the GSM channels include CH1, CH30, CH60, CH96, CH123, CH976 and CH1022, the model of the wireless communication tester includes 286, 326, 339, 282 blood glucose and 291, and the measurements are all 12.3mmol/L without deviation, and the home blood glucose meter is in a call state.
Watch 1
CH1 CH30 CH60 CH96 CH123 CH976 CH1022
286 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
326 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
339 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
282 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
291 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L 12.3mmol/L
The following are embodiments of the apparatus of the present invention, details of which are not described in detail in the embodiments of the apparatus, and reference may be made to the above-mentioned one-to-one corresponding method embodiments.
Referring to fig. 6, a block diagram of an apparatus for suppressing radio frequency interference according to an embodiment of the present invention is shown. The radio frequency interference suppression device provided by the embodiment can be implemented by software, hardware or a combination of the two to be all or part of the health data measuring equipment. The device includes:
a determining module 610, configured to determine a current interface of the health data measuring device, where the current interface is an interface in the health data measuring device that is in foreground operation, and the health data measuring device is a device for measuring health data of a user;
a detecting module 620, configured to detect whether the current interface is switched from a measurement-unrelated interface to a measurement-related interface, where the measurement-related interface is an interface related to a measurement process, and the measurement-unrelated interface is an interface other than the measurement-related interface;
an adjusting module 630, configured to adjust the rf transmit power from the second rf power to the first rf power if the measurement association interface has been switched to, where the first rf power is smaller than the second rf power.
In summary, in the radio frequency interference suppression method provided in this embodiment, it is detected whether the current interface is switched from the measurement-unrelated interface to the measurement-related interface by determining that the health data measurement device is in the current interface in the foreground operation, and if the current interface is switched to the measurement-related interface, the radio frequency transmission power is adjusted from the second radio frequency power to the first radio frequency power, where the first radio frequency power is smaller than the second radio frequency power; when the health data measuring equipment detects that the current interface is a measurement correlation interface, the radio frequency transmitting power during normal work is automatically reduced, and the interference of radio frequency signals on current signals generated by the measurement test paper is reduced, so that the accuracy of the measured blood sugar value is ensured.
Referring to fig. 7, a block diagram of an apparatus for suppressing radio frequency interference according to another embodiment of the present invention is shown. The radio frequency interference suppression device provided by the embodiment can be implemented by software, hardware or a combination of the two to be all or part of the health data measuring equipment. The device includes:
the adjusting module 630 includes:
a first thread module and a second thread module;
a first thread module 632, configured to write a radio frequency state value corresponding to the radio frequency setting process to a preset memory variable, where the preset memory variable is a memory variable shared by the first thread module 632 and the second thread module 634, the radio frequency state value is a first value, and the first value is used to indicate that the radio frequency transmission power is set as the first radio frequency power;
the first thread module 632 is also used to launch the second thread module 634;
a second thread module 634 for setting the radio frequency transmission power to the first radio frequency power according to the radio frequency state value;
the first thread module 632 is a thread for detecting the current interface, and the second thread module 634 is a thread for setting the rf transmission power.
The adjusting module 630, further comprising:
the first thread module 632 is further configured to read an execution state value corresponding to the last radio frequency setting in the preset memory variable, where the execution state value is a third value or a fourth value, the third value is used to indicate that the second thread module 634 is executing the radio frequency setting, and the fourth value is used to indicate that the second thread module 634 has executed the radio frequency setting;
the first thread module 632 is further configured to start the second thread module 634 when the execution status value is the fourth value.
A second thread module 634, comprising:
the second thread module 634 is further configured to read a radio frequency state value corresponding to the radio frequency setting process in the preset memory variables;
the second thread module 634 is further configured to write a third value into the preset memory variable, where the third value is used to indicate that the second thread module 634 is executing radio frequency setting;
the second thread module 634, configured to call the preset interface to send a setting instruction to the radio frequency component when the radio frequency state value is the first value, where the setting instruction carries a first incoming parameter, so that the radio frequency component sets the radio frequency transmission power to the first radio frequency power according to the first incoming parameter;
the second thread module 634 is further configured to write a fourth value into the preset memory variable after the radio frequency component is set, where the fourth value is used to indicate that the second thread module 634 has performed the radio frequency setting.
The device also comprises:
a detecting module 620, configured to detect whether the current interface is switched from the measurement-related interface to the measurement-unrelated interface;
an adjusting module 630, configured to adjust the rf transmit power from the first rf power to the second rf power if the measurement-independent interface has been switched to.
The adjusting module 630 includes:
a first thread module 632, configured to write a radio frequency state value corresponding to the radio frequency setting process to a preset memory variable, where the preset memory variable is a memory variable shared by the first thread module 632 and the second thread module 634, the radio frequency state value is a second value, and the second value is used to indicate that the radio frequency transmission power is set as a second radio frequency power;
a first thread module 632 also for initiating a second thread module 634;
a second thread module 634 for setting the radio frequency transmission power to a second radio frequency power according to the radio frequency state value;
the first thread module 632 is a thread for detecting the current interface, and the second thread module 634 is a thread for setting the rf transmission power.
The adjusting module 630, further comprising:
the first thread module 632 is further configured to read an execution state value corresponding to the last radio frequency setting in the preset memory variable, where the execution state value is a third value or a fourth value, the third value is used to indicate that the second thread module 634 is executing the radio frequency setting, and the fourth value is used to indicate that the second thread module 634 has executed the radio frequency setting;
the first thread module 632 is further configured to enable the second thread module 634 when the execution status value is the fourth value.
A second thread module 634, comprising:
the second thread module 634 is further configured to read a radio frequency state value corresponding to the radio frequency setting process in the preset memory variables;
the second thread module 634 is further configured to write a third value into the preset memory variable, where the third value is used to indicate that the second thread module 634 is executing radio frequency setting;
the second thread module 634, configured to call the preset interface to send a setting instruction to the radio frequency component when the radio frequency state value is the second value, where the setting instruction carries a second incoming parameter, so that the radio frequency component sets the radio frequency transmission power to a second radio frequency power according to the second incoming parameter;
the second thread module 634 is further configured to write a fourth value into the preset memory variable after the radio frequency component is set, where the fourth value is used to indicate that the second thread module 634 has performed the radio frequency setting.
In summary, in the radio frequency interference suppression method provided in this embodiment, it is detected whether the current interface is switched from the measurement-unrelated interface to the measurement-related interface by determining that the health data measurement device is in the current interface in the foreground operation, and if the current interface is switched to the measurement-related interface, the radio frequency transmission power is adjusted from the second radio frequency power to the first radio frequency power, where the first radio frequency power is smaller than the second radio frequency power; when the health data measuring equipment detects that the current interface is a measurement correlation interface, the radio frequency transmitting power during normal work is automatically reduced, and the interference of radio frequency signals on current signals generated by the measurement test paper is reduced, so that the accuracy of the measured blood sugar value is ensured.
Referring to fig. 8, a block diagram of a terminal 800 according to an exemplary embodiment of the invention is shown. Among other things, device 800 may include RF (Radio Frequency) circuitry 810, memory 820 including one or more computer-readable storage media, input unit 830, display unit 840, sensor 850, audio circuitry 860, WiFi (wireless fidelity) module 870, processor 880 including one or more processing cores, and power supply 890. Those skilled in the art will appreciate that the configuration of the device shown in fig. 8 does not constitute a limitation of the device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information from a base station and then processing the received downlink information by the one or more processors 880; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 810 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), etc. Memory 820 may be used to store software programs and modules. The processor 880 executes various functional applications and data processing by executing software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the stored data area may store data (such as audio data, a phonebook, etc.) created according to the use of the device 800, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 820 may also include a memory controller to provide the processor 880 and the input unit 830 access to the memory 820.
The input unit 830 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. The input unit 830 may include a touch-sensitive surface 831 as well as other input devices 832. The touch-sensitive surface 831, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 831 (e.g., operations by a user on or near the touch-sensitive surface 831 using a finger, a stylus, or any other suitable object or attachment) and drive the corresponding connection device according to a predefined program. Alternatively, the touch-sensitive surface 831 can include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch-sensitive surface 831 can be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 830 may include other input devices 832 in addition to the touch-sensitive surface 831. Other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 840 may be used to display information input by or provided to the user as well as various graphical user interfaces of the device 80, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 840 may include a Display panel 841, and the Display panel 841 may be alternatively configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 831 can overlie display panel 841 such that when touch-sensitive surface 831 detects a touch operation thereon or thereabout, it can be relayed to processor 880 to determine the type of touch event, and processor 880 can then provide a corresponding visual output on display panel 841 in accordance with the type of touch event. Although in FIG. 8, touch-sensitive surface 831 and display panel 841 are implemented as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 831 may be integrated with display panel 841 to implement input and output functions.
The device 800 may also include at least one sensor 850, such as a light sensor, motion sensor, and other sensors. The light sensors may include an ambient light sensor that adjusts the brightness of the display panel 841 based on the intensity of ambient light, and a proximity sensor that turns off the display panel 841 and/or the backlight when the device 800 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured for the device 800, further description is omitted here.
The audio circuitry 860, speaker 821, microphone 822 can provide an audio interface between a user and the device 800. The audio circuit 860 may transmit the electrical signal converted from the received audio data to the speaker 821, and convert the electrical signal into an audio signal for output by the speaker 821; on the other hand, the microphone 822 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 860, and outputs the audio data to the processor 880 for processing, and then transmits the audio data to another device through the RF circuit 810, or outputs the audio data to the memory 820 for further processing. The audio circuitry 860 may also include an earbud jack to provide communication of peripheral headphones with the device 800.
WiFi belongs to short-range wireless transmission technology, and the device 800 can help the user send and receive e-mails, browse web pages, access streaming media, etc. through the WiFi module 870, which provides wireless broadband internet access for the user. Although fig. 8 shows WiFi module 870, it is understood that it does not belong to the essential constitution of device 800 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 880 is the control center of the device 800, connects the various parts of the overall device using various interfaces and lines, performs various functions of the device 800 and processes data by running or executing software programs and/or modules stored in the memory 820, and calling up data stored in the memory 820, thereby monitoring the device as a whole. Alternatively, processor 880 may include one or more processing cores; alternatively, the processor 880 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The device 800 also includes a power supply 890 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 880 via a power management system that may be used to manage charging, discharging, and power consumption. Power supply 890 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the device 800 may also include a camera, a bluetooth module, etc., which are not described in detail herein.
Apparatus 800 also includes memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors.
Referring to fig. 9, a block diagram of a server according to an exemplary embodiment of the present invention is shown. The server 900 includes, among other things, a Central Processing Unit (CPU)901, a system memory 904 including a Random Access Memory (RAM)902 and a Read Only Memory (ROM)903, and a system bus 905 connecting the system memory 904 and the CPU 901. The server 900 also includes a basic input/output system (I/O system) 906 for facilitating the transfer of information between devices within the computer, and a mass storage device 907 for storing an operating system 913, application programs 914, and other program modules 915.
The basic input/output system 906 includes a display 908 for displaying information and an input device 909 such as a mouse, keyboard, etc. for user input of information. Wherein the display 908 and the input device 909 are connected to the central processing unit 901 through an input output controller 910 connected to the system bus 905. The basic input/output system 906 may also include an input/output controller 910 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 910 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 907 is connected to the central processing unit 901 through a mass storage controller (not shown) connected to the system bus 905. The mass storage device 907 and its associated computer-readable media provide non-volatile storage for the server 900. That is, the mass storage device 907 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROI drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 904 and mass storage device 907 described above may be collectively referred to as memory.
The server 900 may also operate as a remote computer connected to a network via a network, such as the internet, in accordance with various embodiments of the invention. That is, the server 900 may be connected to the network 912 through the network interface unit 911 coupled to the system bus 905, or the network interface unit 911 may be used to connect to other types of networks or remote computer systems (not shown).
The memory also includes one or more programs, which are stored in the memory.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (15)

1. A method for radio frequency interference mitigation, the method comprising:
determining a current interface of health data measuring equipment, wherein the current interface is an interface which is in foreground operation in the health data measuring equipment, and the health data measuring equipment is equipment for measuring health data of a user through measuring test paper;
detecting whether the current interface is switched from a measurement-independent interface to a measurement-associated interface, wherein the measurement-associated interface is an interface related to a measurement process, the measurement-independent interface is an interface other than the measurement-associated interface, and the health data measurement equipment monitors the current interface at intervals of preset time in an active polling mode;
if the measurement correlation interface is switched to, a first thread writes a radio frequency state value corresponding to the radio frequency setting process into a preset memory variable, wherein the preset memory variable is a memory variable shared by the first thread and a second thread, the radio frequency state value is a first value, the first value is used for indicating that radio frequency emission power is set to be first radio frequency power, the second thread is used for calling a library function provided by a framework layer, so that the function of setting the radio frequency power under different hardware platforms is realized through the library function of the library function packaged on the framework layer, and the framework layer packages the library interface in advance;
the first thread starts the second thread, wherein the first thread is used for detecting the current interface, and the second thread is used for setting the radio frequency emission power;
and the second thread adjusts the radio frequency emission power from second radio frequency power to first radio frequency power according to the radio frequency state value, the first radio frequency power is smaller than the second radio frequency power, and a radio frequency signal generated by a radio frequency component interferes with a current signal generated by the measurement test paper.
2. The method according to claim 1, wherein before the first thread writes the radio frequency state value corresponding to the current radio frequency setting process into the preset memory variable, the method further comprises:
the first thread reads an execution state value corresponding to the last radio frequency setting in the preset memory variable, wherein the execution state value is a third value or a fourth value, the third value is used for indicating that the second thread is executing the radio frequency setting, and the fourth value is used for indicating that the second thread has executed the radio frequency setting;
the first thread starting the second thread, comprising:
and when the execution state value is the fourth value, the first thread starts the second thread.
3. The method of claim 1, wherein the second thread setting the radio frequency transmit power to the first radio frequency power according to the radio frequency state value comprises:
the second thread reads the radio frequency state value corresponding to the radio frequency setting process in the preset memory variable;
writing a third value into the preset memory variable by the second thread, wherein the third value is used for indicating that the second thread is executing radio frequency setting;
when the radio frequency state value is the first value, the second thread calls a preset interface to send a setting instruction to a radio frequency component, wherein the setting instruction carries a first input parameter, so that the radio frequency component sets the radio frequency transmitting power to be the first radio frequency power according to the first input parameter;
and after the radio frequency component is set, the second thread writes a fourth value into the preset memory variable, wherein the fourth value is used for indicating that the second thread has executed the radio frequency setting.
4. The method of any of claims 1 to 3, further comprising:
detecting whether the current interface is switched from the measurement-related interface to the measurement-unrelated interface;
adjusting the radio frequency transmit power from the first radio frequency power to the second radio frequency power if the measurement-independent interface has been switched to.
5. The method of claim 4, wherein adjusting the radio frequency transmit power from the first radio frequency power to the second radio frequency power if the measurement-agnostic interface has been switched to comprises:
a first thread writes a radio frequency state value corresponding to the radio frequency setting process into a preset memory variable, wherein the preset memory variable is a memory variable shared by the first thread and a second thread, and the radio frequency state value is a second value used for indicating that the radio frequency transmitting power is set as the second radio frequency power;
the first thread starts the second thread;
the second thread sets the radio frequency transmission power to the second radio frequency power according to the radio frequency state value;
wherein the first thread is a thread for detecting the current interface, and the second thread is a thread for setting the radio frequency emission power.
6. The method according to claim 5, wherein before the first thread writes the radio frequency state value corresponding to the current radio frequency setting process into the preset memory variable, the method further comprises:
the first thread reads an execution state value corresponding to the last radio frequency setting in the preset memory variable, wherein the execution state value is a third value or a fourth value, the third value is used for indicating that the second thread is executing the radio frequency setting, and the fourth value is used for indicating that the second thread has executed the radio frequency setting;
the first thread starting the second thread, comprising:
and when the execution state value is the fourth value, the first thread starts the second thread.
7. The method according to claim 5, wherein the second thread setting the radio frequency transmission power to the second radio frequency power according to the radio frequency state value corresponding to the current radio frequency setting process comprises:
the second thread reads the radio frequency state value corresponding to the radio frequency setting process in the preset memory variable;
writing a third value into the preset memory variable by the second thread, wherein the third value is used for indicating that the second thread is executing radio frequency setting;
when the radio frequency state value is the second value, the second thread calls a preset interface to send a setting instruction to a radio frequency component, wherein the setting instruction carries a second incoming parameter, so that the radio frequency component sets the radio frequency transmitting power to be the second radio frequency power according to the second incoming parameter;
and after the radio frequency component is set, the second thread writes a fourth value into the preset memory variable, wherein the fourth value is used for indicating that the second thread has executed the radio frequency setting.
8. An apparatus for radio frequency interference mitigation, the apparatus comprising:
the system comprises a determining module, a judging module and a display module, wherein the determining module is used for determining a current interface of health data measuring equipment, the current interface is an interface which is in foreground operation in the health data measuring equipment, and the health data measuring equipment is equipment for measuring health data of a user through measuring test paper;
the system comprises a detection module, a data acquisition module and a health data measurement device, wherein the detection module is used for detecting whether the current interface is switched from a measurement-independent interface to a measurement-associated interface, the measurement-associated interface is an interface related to a measurement process, the measurement-independent interface is an interface other than the measurement-associated interface, and the health data measurement device monitors the current interface in an active polling mode at interval reservation time;
the adjusting module is used for adjusting the radio frequency transmitting power from second radio frequency power to first radio frequency power if the measuring correlation interface is switched to, wherein the first radio frequency power is smaller than the second radio frequency power, and radio frequency signals generated by the radio frequency assembly interfere with current signals generated by the measuring test paper;
the adjustment module includes:
a first thread module and a second thread module;
the first thread module is configured to write a radio frequency state value corresponding to the radio frequency setting process into a preset memory variable, where the preset memory variable is a memory variable shared by the first thread module and the second thread module, the radio frequency state value is a first value, the first value is used to indicate that the radio frequency transmission power is set to the first radio frequency power, the second thread is used to call a library function provided by a framework layer, so that a function of setting radio frequency powers under different hardware platforms is realized through a library function of the library function encapsulated by the framework layer, and the framework layer encapsulates the library interface in advance;
the first thread module is further configured to start the second thread module, where the first thread module is a thread for detecting the current interface, and the second thread module is a thread for setting the radio frequency transmission power;
the second thread module is used for adjusting the radio frequency emission power from a second radio frequency power to the first radio frequency power according to the radio frequency state value.
9. The apparatus of claim 8, wherein the adjustment module further comprises:
the first thread module is further configured to read an execution state value corresponding to a last radio frequency setting in the preset memory variable, where the execution state value is a third value or a fourth value, the third value is used to indicate that the second thread module is executing the radio frequency setting, and the fourth value is used to indicate that the second thread module has completed executing the radio frequency setting;
the first thread module is further configured to start the second thread module when the execution state value is the fourth value.
10. The apparatus of claim 8, wherein the second thread module comprises:
the second thread module is further configured to read the radio frequency state value corresponding to the radio frequency setting process in the preset memory variable;
the second thread module is further configured to write a third value into the preset memory variable, where the third value is used to indicate that the second thread module is executing radio frequency setting;
the second thread module is further configured to call a preset interface to send a setting instruction to a radio frequency component when the radio frequency state value is the first value, where the setting instruction carries a first incoming parameter, so that the radio frequency component sets the radio frequency transmission power to the first radio frequency power according to the first incoming parameter;
the second thread module is further configured to write a fourth value into the preset memory variable after the radio frequency component is set, where the fourth value is used to indicate that the second thread module has completed the radio frequency setting.
11. The apparatus of any one of claims 8 to 10, further comprising:
the detection module is used for detecting whether the current interface is switched from the measurement-related interface to the measurement-unrelated interface or not;
an adjusting module, configured to adjust the radio frequency transmit power from the first radio frequency power to the second radio frequency power if the measurement-independent interface has been switched to.
12. The apparatus of claim 11, wherein the adjustment module comprises:
a first thread module and a second thread module;
the first thread module is configured to write a radio frequency state value corresponding to the radio frequency setting process into a preset memory variable, where the preset memory variable is a memory variable shared by the first thread module and the second thread module, and the radio frequency state value is a second value used to indicate that the radio frequency transmission power is set to the second radio frequency power;
the first thread module is also used for starting the second thread module;
the second thread module is configured to set the radio frequency transmission power to the second radio frequency power according to the radio frequency state value;
the first thread module is a thread for detecting the current interface, and the second thread module is a thread for setting the radio frequency emission power.
13. The apparatus of claim 12, wherein the adjustment module further comprises:
the first thread module is further configured to read an execution state value corresponding to a last radio frequency setting in the preset memory variable, where the execution state value is a third value or a fourth value, the third value is used to indicate that the second thread module is executing the radio frequency setting, and the fourth value is used to indicate that the second thread module has completed executing the radio frequency setting;
the first thread module is further configured to start the second thread module when the execution state value is the fourth value.
14. The apparatus of claim 12, wherein the second thread module comprises:
the second thread module is further configured to read the radio frequency state value corresponding to the radio frequency setting process in the preset memory variable;
the second thread module is further configured to write a third value into the preset memory variable, where the third value is used to indicate that the second thread module is executing radio frequency setting;
the second thread module is further configured to call a preset interface to send a setting instruction to a radio frequency component when the radio frequency state value is the second value, where the setting instruction carries a second incoming parameter, so that the radio frequency component sets the radio frequency transmission power to the second radio frequency power according to the second incoming parameter;
the second thread module is further configured to write a fourth value into the preset memory variable after the radio frequency component is set, where the fourth value is used to indicate that the second thread module has completed the radio frequency setting.
15. A computer readable storage medium, which may be a memory, a magnetic disk, an optical disk, and wherein the storage medium has at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which are loaded and executed by a processor to implement the radio frequency interference suppression method according to any one of claims 1 to 7.
CN201710050286.8A 2017-01-23 2017-01-23 Radio frequency interference suppression method and device Active CN108345811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710050286.8A CN108345811B (en) 2017-01-23 2017-01-23 Radio frequency interference suppression method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710050286.8A CN108345811B (en) 2017-01-23 2017-01-23 Radio frequency interference suppression method and device

Publications (2)

Publication Number Publication Date
CN108345811A CN108345811A (en) 2018-07-31
CN108345811B true CN108345811B (en) 2021-07-23

Family

ID=62974317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710050286.8A Active CN108345811B (en) 2017-01-23 2017-01-23 Radio frequency interference suppression method and device

Country Status (1)

Country Link
CN (1) CN108345811B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801101A (en) * 2006-01-17 2006-07-12 浙江大学 Thread implementation and thread state switching method in Java operation system
US7592959B1 (en) * 2007-05-30 2009-09-22 Sprint Communciations Company L.P. Radio frequency interference suppression enclosure
CN101630276A (en) * 2009-08-18 2010-01-20 深圳市融创天下科技发展有限公司 High-efficiency memory pool access method
CN102263861A (en) * 2011-08-24 2011-11-30 惠州Tcl移动通信有限公司 Mobile phone and automatic regulation method for mobile phone radiation
CN202216957U (en) * 2011-09-27 2012-05-09 嘉善德智医疗器械科技有限公司 Blood glucose meter based on radio frequency identification (RFID) technology
CN104240739A (en) * 2014-09-04 2014-12-24 广东欧珀移动通信有限公司 Music playing method and device for mobile terminal
CN105743602A (en) * 2016-04-12 2016-07-06 广东欧珀移动通信有限公司 Method and system for preventing radio frequency signal from interfering USB (Universal Serial Bus) data transmission
CN105763221A (en) * 2016-02-06 2016-07-13 青岛海信移动通信技术股份有限公司 Radio frequency circuit and interference suppression method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8417296B2 (en) * 2008-06-05 2013-04-09 Apple Inc. Electronic device with proximity-based radio power control
US9369161B1 (en) * 2014-08-12 2016-06-14 Sprint Communications Company L.P. Mitigation of radio-frequency interference at a remote radio head

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801101A (en) * 2006-01-17 2006-07-12 浙江大学 Thread implementation and thread state switching method in Java operation system
US7592959B1 (en) * 2007-05-30 2009-09-22 Sprint Communciations Company L.P. Radio frequency interference suppression enclosure
CN101630276A (en) * 2009-08-18 2010-01-20 深圳市融创天下科技发展有限公司 High-efficiency memory pool access method
CN102263861A (en) * 2011-08-24 2011-11-30 惠州Tcl移动通信有限公司 Mobile phone and automatic regulation method for mobile phone radiation
CN202216957U (en) * 2011-09-27 2012-05-09 嘉善德智医疗器械科技有限公司 Blood glucose meter based on radio frequency identification (RFID) technology
CN104240739A (en) * 2014-09-04 2014-12-24 广东欧珀移动通信有限公司 Music playing method and device for mobile terminal
CN105763221A (en) * 2016-02-06 2016-07-13 青岛海信移动通信技术股份有限公司 Radio frequency circuit and interference suppression method
CN105743602A (en) * 2016-04-12 2016-07-06 广东欧珀移动通信有限公司 Method and system for preventing radio frequency signal from interfering USB (Universal Serial Bus) data transmission

Also Published As

Publication number Publication date
CN108345811A (en) 2018-07-31

Similar Documents

Publication Publication Date Title
CN108959000B (en) Server pressure testing method, system and terminal
EP3525417A1 (en) Data processing method, device, storage medium, electronic device and server
CN108039963B (en) Container configuration method and device and storage medium
KR102500284B1 (en) Method and Device for Steaming Audio using Wireless Link
CN106371964B (en) Method and device for prompting message
CN107329901B (en) Data packet capturing method, terminal, server and storage medium
US20140378176A1 (en) Method, apparatus and system for short message-based information push and mobile client supporting the same
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
CN108492837B (en) Method, device and storage medium for detecting audio burst white noise
CN107122036B (en) Method and device for adjusting frequency of central processing unit
WO2014166307A1 (en) Method for determining performance of process of application and computer system
CN115174418A (en) Communication environment safety early warning method and device, electronic equipment and storage medium
CN107622234B (en) Method and device for displaying budding face gift
EP2869233B1 (en) Method, device and terminal for protecting application program
CN113286335A (en) Frequency point switching method and device, storage medium and access point
CN106709330B (en) Method and device for recording file execution behaviors
CN110621071A (en) Processing method of measurement interval, terminal and network node
CN106357513B (en) Message processing method, device, server and message processing system
CN108269223B (en) Webpage graph drawing method and terminal
CN108345811B (en) Radio frequency interference suppression method and device
CN115118636A (en) Method and device for determining network jitter state, electronic equipment and storage medium
CN107346347B (en) Webpage table display method and device
CN113852450A (en) Message push feedback method and device, electronic equipment and storage medium
CN108280798B (en) Method and device for rendering and displaying browser kernel
CN112995265A (en) Request distribution method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200819

Address after: 9 / F, building 4, Zicheng International Innovation Center, 39 Jincheng Road, Xiaoshan District, Hangzhou City, Zhejiang Province

Applicant after: Hangzhou aiyao medical and Health Technology Co., Ltd

Address before: 518057 Nanshan District science and technology zone, Guangdong, Zhejiang Province, science and technology in the Tencent Building on the 1st floor of the 35 layer

Applicant before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant