CN114326949A - Detection method, detection device, storage medium and electronic equipment - Google Patents

Detection method, detection device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114326949A
CN114326949A CN202111664198.XA CN202111664198A CN114326949A CN 114326949 A CN114326949 A CN 114326949A CN 202111664198 A CN202111664198 A CN 202111664198A CN 114326949 A CN114326949 A CN 114326949A
Authority
CN
China
Prior art keywords
antenna
isolation value
value
isolation
simulation
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.)
Granted
Application number
CN202111664198.XA
Other languages
Chinese (zh)
Other versions
CN114326949B (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.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information 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 Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN202111664198.XA priority Critical patent/CN114326949B/en
Publication of CN114326949A publication Critical patent/CN114326949A/en
Application granted granted Critical
Publication of CN114326949B publication Critical patent/CN114326949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The application discloses a detection method, a detection device, a storage medium and electronic equipment, wherein the detection method comprises the steps of obtaining an isolation value of a first antenna; the isolation value is calculated by the first antenna relative to other antennas; determining whether the isolation value changes, wherein the change of the isolation value is caused by the change of the distance between a first antenna and a second antenna, the first antenna and the other antennas are arranged at a display end of the electronic equipment, and the second antenna is arranged at a system end of the electronic equipment; comparing the isolation value with a preset threshold value under the condition that the isolation value changes to obtain a comparison result; and determining the current form of the electronic equipment based on the comparison result. According to the display terminal and/or system terminal, the second antenna is only additionally arranged without additionally arranging a plurality of devices, the cost is low, the structure of the display terminal and/or the structure of the system terminal cannot be influenced by the additionally arranged second antenna, and the utilization rate of the display terminal and/or the system terminal is ensured.

Description

Detection method, detection device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of device detection technologies, and in particular, to a detection method, an apparatus, a storage medium, and an electronic device.
Background
When a user uses an electronic device with a display terminal, such as a notebook computer, in order to save power and reduce system loss of the notebook computer, the display terminal of the notebook computer is closed, that is, the display terminal is attached to the system terminal, and then the action needs to be identified and optimized, for example: the screen backlight is turned off, and the operating system enters sleep or dormancy and the like, so that the purposes of saving electric quantity and reducing system loss of the notebook computer are achieved.
In the prior art, a magnet is additionally arranged on a display end, a Hall sensor and a related peripheral circuit are additionally arranged on a system end, the Hall sensor captures the change of magnetic flux by the magnet far away from or close to the Hall sensor, and the change of the magnetic flux is transmitted to a controller so that the controller can determine whether the display end of the notebook computer is closed. However, in this method, a magnet, a hall sensor, and a related peripheral circuit need to be additionally provided, which leads to an increase in cost; in addition, the relative position of the magnet and the hall sensor must be fixed, which affects the layout of the electronic device itself, even the structure of the display end and/or the system end, and reduces the utilization rate of the display end and/or the system end.
Disclosure of Invention
An object of the embodiments of the present application is to provide a detection method, an apparatus, a storage medium, and an electronic device, which can detect a form change of the electronic device by using a device of the electronic device itself, without increasing cost, and without affecting a structure of a display end and/or a system end, thereby ensuring a utilization rate of the display end and/or the system end.
In a first aspect, an embodiment of the present application provides a detection method, including:
obtaining an isolation value of a first antenna; wherein the isolation value is calculated by the first antenna relative to other antennas;
determining whether the isolation value changes, wherein the change of the isolation value is caused by the change of the distance between the first antenna and a second antenna, the first antenna and the other antennas are arranged at a display end of the electronic equipment, and the second antenna is arranged at a system end of the electronic equipment;
comparing the isolation value with a preset threshold value under the condition that the isolation value changes to obtain a comparison result;
determining a current morphology of the electronic device based on the comparison result.
In a possible implementation, the detection method further includes:
the first antenna and the other antennas are arranged at a display end of the electronic equipment;
the second antenna is arranged at a system end of the electronic equipment.
In a possible implementation, the determining the current form of the electronic device based on the comparison result includes:
determining that the display end and the system end of the electronic equipment are in a fit state under the condition that the isolation value is larger than the preset threshold value;
determining that the display end and the system end of the electronic device are in a separated state when the isolation value is smaller than or equal to the preset threshold value.
In a possible implementation, the detection method further includes:
under the condition that the display end and the system end are in the attaching state, a connecting line formed by a center line point of the first wire and a center line point of the second antenna is perpendicular to a horizontal plane.
In a possible implementation, the detection method further includes:
under the condition that the isolation value is determined to be changed, calculating a difference value between the isolation value and the adjacent previous isolation value;
if the difference value is a positive number, adjusting the display brightness of the display end to be reduced;
and if the difference value is a negative number, adjusting the display brightness of the display end to increase.
In a possible implementation, the detection method further includes the following steps of determining the preset threshold:
constructing a simulation model; the simulation model comprises a simulation display end provided with a first simulation antenna and other simulation antennas and a simulation system end provided with a second simulation antenna;
acquiring a first isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a separated state, and acquiring a second isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a fitted state and an object is arranged on the simulation display end;
and calculating the first isolation value and the second isolation value to obtain the preset threshold value.
In a possible implementation manner, the calculating the first isolation value and the second isolation value to obtain the preset threshold includes:
calculating a first difference between the first isolation value and the second isolation value;
and performing summation calculation on one half of the first difference value and the second isolation value, and taking the obtained value as the preset threshold value.
In a second aspect, an embodiment of the present application further provides a detection apparatus, including:
an acquisition module configured to acquire an isolation value of a first antenna; wherein the isolation value is calculated by the first antenna relative to other antennas;
a first determining module configured to determine whether the isolation value changes, wherein the change of the isolation value is caused by a change of a distance between a first antenna and a second antenna, the first antenna and the other antenna are arranged at a display end of the electronic device, and the second antenna is arranged at a system end of the electronic device;
the comparison module is configured to compare the isolation value with a preset threshold value under the condition that the isolation value changes to obtain a comparison result;
a second determination module configured to determine a current modality of the electronic device based on the comparison result.
In a possible implementation, the second determining module is specifically configured to:
determining that the display end and the system end of the electronic equipment are in a fit state under the condition that the isolation value is larger than the preset threshold value;
determining that the display end and the system end of the electronic device are in a separated state when the isolation value is smaller than or equal to the preset threshold value.
In a third aspect, an embodiment of the present application further provides a storage medium, where the computer readable storage medium stores a computer program, and the computer program is executed by a processor to perform the following steps:
obtaining an isolation value of a first antenna; wherein the isolation value is calculated by the first antenna relative to other antennas;
determining whether the isolation value changes, wherein the change of the isolation value is caused by the change of the distance between the first antenna and a second antenna, the first antenna and the other antennas are arranged at a display end of the electronic equipment, and the second antenna is arranged at a system end of the electronic equipment;
comparing the isolation value with a preset threshold value under the condition that the isolation value changes to obtain a comparison result;
determining a current morphology of the electronic device based on the comparison result.
In a fourth aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over a bus when an electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of:
obtaining an isolation value of a first antenna; wherein the isolation value is calculated by the first antenna relative to other antennas;
determining whether the isolation value changes, wherein the change of the isolation value is caused by the change of the distance between the first antenna and a second antenna, the first antenna and the other antennas are arranged at a display end of the electronic equipment, and the second antenna is arranged at a system end of the electronic equipment;
comparing the isolation value with a preset threshold value under the condition that the isolation value changes to obtain a comparison result;
determining a current morphology of the electronic device based on the comparison result.
The embodiment of the application determines whether the isolation value of the first antenna changes or not, compares the isolation value with the preset threshold value under the condition that the isolation value of the first antenna changes, obtains the comparison result, and then determines the current form of the electronic equipment based on the comparison result, does not need to add too many devices, detects the form change of the electronic equipment by using the first antenna of the device of the electronic equipment and the added second antenna, and is low in cost, and the added second antenna does not influence the structure of the display end and/or the system end, so that the utilization rate of the display end and/or the system end is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 illustrates a flow chart of a detection method provided herein;
FIG. 2 is a schematic structural diagram illustrating a display end and a system end of a notebook computer provided in the present application in a separated state;
fig. 3 is a schematic structural diagram illustrating a display end and a system end of a notebook computer in a fit state according to the present application;
fig. 4 shows a schematic structural diagram of a first antenna provided in the present application;
fig. 5 shows a schematic structural diagram of a second antenna provided in the present application;
FIG. 6 is a flow chart illustrating the determination of a preset threshold in one detection method provided herein;
FIG. 7 is a schematic diagram of the structure of the detection device provided in the present application;
fig. 8 shows a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
In practical applications, an execution subject of the detection method in the embodiment of the present application may be a processor or a controller of an electronic device, and for convenience of description, the processor is described in detail below, and the electronic device is taken as a notebook computer as an example to describe in detail the embodiment of the present application. As shown in fig. 1, which is a flowchart of a detection method provided in the embodiment of the present application, the specific steps include S101-S104.
S101, obtaining an isolation value of a first antenna; wherein the isolation value is calculated for the first antenna relative to the other antennas.
In a specific implementation, the isolation value of the first antenna may be obtained in real time through a preset application program, and of course, the isolation value of the first antenna may also be obtained periodically, for example, the isolation value of the first antenna is obtained periodically with a preset time period as a time interval. Specifically, the setting may be performed according to actual requirements and application scenarios of the electronic device, which is not specifically limited in this embodiment of the application.
The isolation of the antennas refers to a ratio of a signal transmitted by one antenna to a signal transmitted by the other antenna, the larger the distance between the two antennas is, the smaller the interference between the two antennas is, and the larger the absolute value of the isolation of the antennas is, and the isolation of the antenna in the embodiment of the present application is calculated by the first antenna relative to the other antennas.
S102, whether the isolation value changes is determined, wherein the change of the isolation value is caused by the fact that the distance between the first antenna and the second antenna changes, the first antenna and the other antennas are arranged at a display end of the electronic equipment, and the second antenna is arranged at a system end of the electronic equipment.
In a specific implementation, before the electronic device is powered off, the isolation value acquired each time is stored in the electronic device.
Comparing the isolation value with an adjacent previous isolation value after the isolation value is obtained every time except for obtaining the isolation value for the first time after starting up, and determining that the isolation value is not changed if the isolation value is the same as the adjacent previous isolation value, namely, the distance between the first antenna and the second antenna is not changed; if the isolation value is different from the previous isolation value, it is determined that the isolation value has changed, that is, the distance between the first antenna and the second antenna has changed.
The first antenna and the other antennas are arranged at the display end of the electronic equipment, the second antenna is arranged at the system end of the electronic equipment, and the second antenna is made of copper foil, so that excessive cost cannot be increased.
In addition, under the condition that the isolation value is determined to be changed, the difference value between the isolation value and the previous adjacent isolation value can be further calculated, if the difference value is a positive number, the distance between the first antenna and the second antenna is reduced, namely the angle between the display end and the system end of the electronic equipment is reduced, the electronic equipment is switched from an open cover state to a closed cover state, and at the moment, the display brightness of the display end is adjusted to be reduced; if the difference is a negative number, that is, the distance between the first antenna and the second antenna is increasing, that is, the angle between the display end and the system end of the electronic device is increasing, it indicates that the electronic device is switched from the cover closing state to the cover opening state, at this time, the display brightness of the display end is adjusted to be increased, and then the experience of the user in using the electronic device is improved.
S103, comparing the isolation value with a preset threshold value under the condition that the isolation value changes to obtain a comparison result.
For example, when the second antenna is closer to the first antenna, the second antenna affects the radiation mechanism of the first antenna, and when the second antenna is farther from the first antenna, the second antenna does not affect the radiation mechanism of the first antenna.
Therefore, in the case that it is determined that the isolation value changes, that is, the distance between the first antenna and the second antenna changes, the isolation value is further compared with a preset threshold value, so as to determine the current form of the electronic device based on the comparison result obtained by the comparison.
And S104, determining the current form of the electronic equipment based on the comparison result.
In specific implementation, under the condition that the isolation value is larger than a preset threshold value, determining that a display end and a system end of the electronic equipment are in a fit state; and under the condition that the isolation value is smaller than or equal to the preset threshold value, determining that the display end and the system end of the electronic equipment are in a separated state.
In addition, when the display end and the system end are in the attached state, a connection line formed by the center line of the first wire and the center line of the second antenna is perpendicular to the horizontal plane, and the effect generated by the interaction between the second antenna and the first antenna can be ensured to be better based on the position relationship.
Fig. 2 shows a schematic structural diagram of the display end and the system end of the notebook computer in a separated state, that is, the notebook computer is in an open state, and fig. 3 shows a schematic structural diagram of the display end and the system end of the notebook computer in a fitted state, that is, the notebook computer is in a closed state. In addition, the first antenna is disposed at the screen end of the notebook computer, and the second antenna is disposed at the system end of the notebook computer, preferably, in the state shown in fig. 3, the distance between the first antenna and the second antenna should be less than 6mm, so as to ensure the coupling effect between the first antenna and the second antenna, and enable the radiation environment of the first antenna to have obvious, stable and controllable changes.
Further, in order to clearly show the structures of the first antenna and the second antenna, fig. 4 shows a schematic structural diagram of the first antenna, which is in the form of a monopole coupling antenna and is capable of transmitting and receiving energy to the outside; fig. 5 shows a schematic structural diagram of the second antenna.
As shown in fig. 6, an embodiment of the present application further provides a flowchart of a method for determining a preset threshold, where the specific steps include S601-S603.
S601, constructing a simulation model; the simulation model comprises a simulation display end provided with a first simulation antenna and other simulation antennas and a simulation system end provided with a second simulation antenna.
S602, a first isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a separation state is obtained, and a second isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a joint state and an object is arranged on the simulation display end is obtained.
S603, calculating the first isolation value and the second isolation value to obtain a preset threshold value.
Before the steps of the detection method are implemented specifically, a built simulation model is used for carrying out simulation test on the notebook computer, the first antenna, the second antenna, other antennas and the like to determine a preset threshold value.
Specifically, the simulation model comprises a simulation display end provided with a first simulation antenna and other simulation antennas and a simulation system end provided with a second simulation antenna, and the simulation display end is connected with the simulation system end. In the process of the simulation test, angles formed by the simulation display end and the simulation system end are adjusted, for example, 135 °, 90 °, 45 °, 10 °, 0 °, and the like, and under the condition that the simulation display end and the simulation system end form different angles, a first isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a separated state is respectively obtained.
Furthermore, considering that the electronic device such as a notebook computer is touched by a user, once the user touches a position corresponding to the first antenna, the isolation value of the first antenna also changes to a certain extent, and therefore, under the condition that the simulation display end and the simulation system end form different angles, it is also necessary to respectively obtain a second isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a fit state and an object is set on the simulation display end.
After the first isolation value and the second isolation value are obtained, the first isolation value and the second isolation value are calculated according to each angle, and a preset threshold value is obtained. Specifically, a first difference between the first isolation value and the second isolation value is calculated, one half of the first difference and the second isolation value are summed, and the obtained value is used as a preset threshold value.
As can be seen from simulation tests performed by a simulation model, when the length of the second antenna is greater than or equal to one wavelength, the second antenna is stronger in the left and right directions, and taking a 2.4GHz band as an example, one-time wavelength is 125mm according to a formula λ ═ C/F, where λ represents the wavelength, C represents the speed of light, and F represents the frequency, and therefore, the length of the second antenna is greater than or equal to 125 mm.
The embodiment of the application determines whether the isolation value of the first antenna changes or not, compares the isolation value with the preset threshold value under the condition that the isolation value of the first antenna changes, obtains the comparison result, and then determines the current form of the electronic equipment based on the comparison result, does not need to add too many devices, detects the form change of the electronic equipment by using the first antenna of the device of the electronic equipment and the added second antenna, and is low in cost, and the added second antenna does not influence the structure of the display end and/or the system end, so that the utilization rate of the display end and/or the system end is ensured.
Based on the same inventive concept, the second aspect of the present application further provides a detection apparatus corresponding to the detection method, and since the principle of the apparatus in the present application for solving the problem is similar to the detection method described above, the implementation of the apparatus can refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 7, the detecting device includes:
an obtaining module 701, configured to obtain an isolation value of a first antenna; wherein the isolation value is calculated by the first antenna relative to other antennas;
a first determining module 702 configured to determine whether the isolation value changes, wherein the change of the isolation value is caused by a change of a distance between a first antenna and a second antenna, the first antenna and the other antenna being disposed at a display end of the electronic device, and the second antenna being disposed at a system end of the electronic device;
a comparison module 703 configured to compare the isolation value with a preset threshold value to obtain a comparison result when the isolation value changes;
a second determination module 704 configured to determine a current modality of the electronic device based on the comparison result.
In another embodiment, the second determining module 704 is specifically configured to:
determining that the display end and the system end of the electronic equipment are in a fit state under the condition that the isolation value is larger than the preset threshold value;
determining that the display end and the system end of the electronic device are in a separated state when the isolation value is smaller than or equal to the preset threshold value.
In another embodiment, further comprising:
under the condition that the display end and the system end are in the attaching state, a connecting line formed by a center line point of the first wire and a center line point of the second antenna is perpendicular to a horizontal plane.
In another embodiment, an adjustment module 705 is further included that is configured to:
under the condition that the isolation value is determined to be changed, calculating a difference value between the isolation value and the adjacent previous isolation value;
if the difference value is a positive number, adjusting the display brightness of the display end to be reduced;
and if the difference value is a negative number, adjusting the display brightness of the display end to increase.
In another embodiment, the detection apparatus further comprises a third determining module 706 configured to:
constructing a simulation model; the simulation model comprises a simulation display end provided with a first simulation antenna and other simulation antennas and a simulation system end provided with a second simulation antenna;
acquiring a first isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a separated state, and acquiring a second isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a fitted state and an object is arranged on the simulation display end;
and calculating the first isolation value and the second isolation value to obtain the preset threshold value.
In another embodiment, the third determining module 705, when calculating the first isolation value and the second isolation value to obtain the preset threshold, includes:
calculating a first difference between the first isolation value and the second isolation value;
and performing summation calculation on one half of the first difference value and the second isolation value, and taking the obtained value as the preset threshold value.
The embodiment of the application determines whether the isolation value of the first antenna changes or not, compares the isolation value with the preset threshold value under the condition that the isolation value of the first antenna changes, obtains the comparison result, and then determines the current form of the electronic equipment based on the comparison result, does not need to add too many devices, detects the form change of the electronic equipment by using the first antenna of the device of the electronic equipment and the added second antenna, and is low in cost, and the added second antenna does not influence the structure of the display end and/or the system end, so that the utilization rate of the display end and/or the system end is ensured.
The third aspect of the present application further provides a storage medium, which is a computer-readable medium storing a computer program, which when executed by a processor implements the method provided in any embodiment of the present application, including the following steps:
s11, obtaining an isolation value of the first antenna; wherein the isolation value is calculated by the first antenna relative to other antennas;
s12, determining whether the isolation value changes, wherein the change of the isolation value is caused by the change of the distance between the first antenna and the second antenna, the first antenna and the other antennas are arranged at the display end of the electronic equipment, and the second antenna is arranged at the system end of the electronic equipment;
s13, comparing the isolation value with a preset threshold value under the condition that the isolation value changes to obtain a comparison result;
s14, determining the current form of the electronic equipment based on the comparison result.
When the computer program is executed by the processor to determine the current form of the electronic device based on the comparison result, the following steps are also specifically executed by the processor: determining that the display end and the system end of the electronic equipment are in a fit state under the condition that the isolation value is larger than the preset threshold value; determining that the display end and the system end of the electronic device are in a separated state when the isolation value is smaller than or equal to the preset threshold value.
When the computer program is executed by the processor to perform the detection method, the processor specifically executes the following steps: under the condition that the isolation value is determined to be changed, calculating a difference value between the isolation value and the adjacent previous isolation value; if the difference value is a positive number, adjusting the display brightness of the display end to be reduced; and if the difference value is a negative number, adjusting the display brightness of the display end to increase.
When the computer program is executed by the processor to perform the detection method, the processor specifically executes the following steps: constructing a simulation model; the simulation model comprises a simulation display end provided with a first simulation antenna and other simulation antennas and a simulation system end provided with a second simulation antenna; acquiring a first isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a separated state, and acquiring a second isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a fitted state and an object is arranged on the simulation display end; and calculating the first isolation value and the second isolation value to obtain the preset threshold value.
The computer program is executed by the processor to calculate the first isolation value and the second isolation value, and when the preset threshold is obtained, the processor executes the following steps: calculating a first difference between the first isolation value and the second isolation value; and performing summation calculation on one half of the first difference value and the second isolation value, and taking the obtained value as the preset threshold value.
The embodiment of the application determines whether the isolation value of the first antenna changes or not, compares the isolation value with the preset threshold value under the condition that the isolation value of the first antenna changes, obtains the comparison result, and then determines the current form of the electronic equipment based on the comparison result, does not need to add too many devices, detects the form change of the electronic equipment by using the first antenna of the device of the electronic equipment and the added second antenna, and is low in cost, and the added second antenna does not influence the structure of the display end and/or the system end, so that the utilization rate of the display end and/or the system end is ensured.
It should be noted that the storage media described above in this application can be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any storage medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The fourth aspect of the present application also provides an electronic device, as shown in fig. 8, the electronic device at least includes a memory 801 and a processor 802, the memory 801 stores a computer program, and the processor 802 implements the method provided in any embodiment of the present application when executing the computer program on the memory 801. Illustratively, the method performed by the electronic device computer program is as follows:
s21, obtaining an isolation value of the first antenna; wherein the isolation value is calculated by the first antenna relative to other antennas;
s22, determining whether the isolation value changes, wherein the change of the isolation value is caused by the change of the distance between the first antenna and the second antenna, the first antenna and the other antennas are arranged at the display end of the electronic equipment, and the second antenna is arranged at the system end of the electronic equipment;
s23, comparing the isolation value with a preset threshold value under the condition that the isolation value changes to obtain a comparison result;
s24, determining the current form of the electronic equipment based on the comparison result.
The processor, when executing the computer program stored on the memory to determine the current configuration of the electronic device based on the comparison result, further executes the computer program of: determining that the display end and the system end of the electronic equipment are in a fit state under the condition that the isolation value is larger than the preset threshold value; determining that the display end and the system end of the electronic device are in a separated state when the isolation value is smaller than or equal to the preset threshold value.
The processor, when executing the detection method stored on the memory, also executes the following computer program: under the condition that the isolation value is determined to be changed, calculating a difference value between the isolation value and the adjacent previous isolation value; if the difference value is a positive number, adjusting the display brightness of the display end to be reduced; and if the difference value is a negative number, adjusting the display brightness of the display end to increase.
The processor, when executing the detection method stored on the memory, also executes the following computer program: constructing a simulation model; the simulation model comprises a simulation display end provided with a first simulation antenna and other simulation antennas and a simulation system end provided with a second simulation antenna; acquiring a first isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a separated state, and acquiring a second isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a fitted state and an object is arranged on the simulation display end; and calculating the first isolation value and the second isolation value to obtain the preset threshold value.
When the processor calculates the first isolation value and the second isolation value stored in the execution memory to obtain the preset threshold value, the processor further executes the following computer program: calculating a first difference between the first isolation value and the second isolation value; and performing summation calculation on one half of the first difference value and the second isolation value, and taking the obtained value as the preset threshold value.
The embodiment of the application determines whether the isolation value of the first antenna changes or not, compares the isolation value with the preset threshold value under the condition that the isolation value of the first antenna changes, obtains the comparison result, and then determines the current form of the electronic equipment based on the comparison result, does not need to add too many devices, detects the form change of the electronic equipment by using the first antenna of the device of the electronic equipment and the added second antenna, and is low in cost, and the added second antenna does not influence the structure of the display end and/or the system end, so that the utilization rate of the display end and/or the system end is ensured.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the application. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
While the embodiments of the present application have been described in detail, the present application is not limited to these specific embodiments, and those skilled in the art can make various modifications and modified embodiments based on the concept of the present application, and such modifications and modified embodiments are intended to fall within the scope of the present application.

Claims (10)

1. A method of detection, comprising:
obtaining an isolation value of a first antenna; wherein the isolation value is calculated by the first antenna relative to other antennas;
determining whether the isolation value changes, wherein the change of the isolation value is caused by the change of the distance between the first antenna and a second antenna, the first antenna and the other antennas are arranged at a display end of the electronic equipment, and the second antenna is arranged at a system end of the electronic equipment;
comparing the isolation value with a preset threshold value under the condition that the isolation value changes to obtain a comparison result;
determining a current morphology of the electronic device based on the comparison result.
2. The method of claim 1, wherein the determining the current modality of the electronic device based on the comparison result comprises:
determining that the display end and the system end of the electronic equipment are in a fit state under the condition that the isolation value is larger than the preset threshold value;
determining that the display end and the system end of the electronic device are in a separated state when the isolation value is smaller than or equal to the preset threshold value.
3. The detection method according to claim 2, further comprising:
under the condition that the display end and the system end are in the attaching state, a connecting line formed by a center line point of the first wire and a center line point of the second antenna is perpendicular to a horizontal plane.
4. The detection method according to claim 2, further comprising:
under the condition that the isolation value is determined to be changed, calculating a difference value between the isolation value and the adjacent previous isolation value;
if the difference value is a positive number, adjusting the display brightness of the display end to be reduced;
and if the difference value is a negative number, adjusting the display brightness of the display end to increase.
5. The detection method according to claim 1, further comprising the following steps of determining the preset threshold value:
constructing a simulation model; the simulation model comprises a simulation display end provided with a first simulation antenna and other simulation antennas and a simulation system end provided with a second simulation antenna;
acquiring a first isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a separated state, and acquiring a second isolation value of the first simulation antenna when the simulation display end and the simulation system end are in a fitted state and an object is arranged on the simulation display end;
and calculating the first isolation value and the second isolation value to obtain the preset threshold value.
6. The detection method according to claim 5, wherein the calculating the first isolation value and the second isolation value to obtain the preset threshold value comprises:
calculating a first difference between the first isolation value and the second isolation value;
and performing summation calculation on one half of the first difference value and the second isolation value, and taking the obtained value as the preset threshold value.
7. A detection device, comprising:
an acquisition module configured to acquire an isolation value of a first antenna; wherein the isolation value is calculated by the first antenna relative to other antennas;
a first determining module configured to determine whether the isolation value changes, wherein the change of the isolation value is caused by a change of a distance between a first antenna and a second antenna, the first antenna and the other antenna are arranged at a display end of the electronic device, and the second antenna is arranged at a system end of the electronic device;
the comparison module is configured to compare the isolation value with a preset threshold value under the condition that the isolation value changes to obtain a comparison result;
a second determination module configured to determine a current modality of the electronic device based on the comparison result.
8. The detection apparatus according to claim 7, wherein the second determination module is specifically configured to:
determining that the display end and the system end of the electronic equipment are in a fit state under the condition that the isolation value is larger than the preset threshold value;
determining that the display end and the system end of the electronic device are in a separated state when the isolation value is smaller than or equal to the preset threshold value.
9. A storage medium, having a computer program stored thereon, the computer program when executed by a processor performing the steps of:
obtaining an isolation value of a first antenna; wherein the isolation value is calculated by the first antenna relative to other antennas;
determining whether the isolation value changes, wherein the change of the isolation value is caused by the change of the distance between the first antenna and a second antenna, the first antenna and the other antennas are arranged at a display end of the electronic equipment, and the second antenna is arranged at a system end of the electronic equipment;
comparing the isolation value with a preset threshold value under the condition that the isolation value changes to obtain a comparison result;
determining a current morphology of the electronic device based on the comparison result.
10. An electronic device, comprising: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over a bus when an electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of:
obtaining an isolation value of a first antenna; wherein the isolation value is calculated by the first antenna relative to other antennas;
determining whether the isolation value changes, wherein the change of the isolation value is caused by the change of the distance between the first antenna and a second antenna, the first antenna and the other antennas are arranged at a display end of the electronic equipment, and the second antenna is arranged at a system end of the electronic equipment;
comparing the isolation value with a preset threshold value under the condition that the isolation value changes to obtain a comparison result;
determining a current morphology of the electronic device based on the comparison result.
CN202111664198.XA 2021-12-31 2021-12-31 Detection method and device, storage medium and electronic equipment Active CN114326949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111664198.XA CN114326949B (en) 2021-12-31 2021-12-31 Detection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111664198.XA CN114326949B (en) 2021-12-31 2021-12-31 Detection method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114326949A true CN114326949A (en) 2022-04-12
CN114326949B CN114326949B (en) 2024-04-19

Family

ID=81021244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111664198.XA Active CN114326949B (en) 2021-12-31 2021-12-31 Detection method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114326949B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114793140A (en) * 2022-06-21 2022-07-26 深圳粤讯通信科技有限公司 5G antenna interface board port isolation measurement system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818687A (en) * 2019-01-31 2019-05-28 青岛海信移动通信技术股份有限公司 Folded state recognition methods, device, equipment and the storage medium of Folding screen
CN110072014A (en) * 2019-05-20 2019-07-30 维沃移动通信有限公司 A kind of screen folded state determines method and mobile terminal
CN110098486A (en) * 2019-05-27 2019-08-06 维沃移动通信有限公司 A kind of method of controlling antenna and equipment
CN111342231A (en) * 2020-02-27 2020-06-26 北京字节跳动网络技术有限公司 Method and device for adjusting isolation between antennas, electronic equipment and medium
CN112311920A (en) * 2020-10-22 2021-02-02 维沃移动通信有限公司 Signal intensity control method and device of foldable electronic equipment and electronic equipment
CN112751160A (en) * 2019-10-31 2021-05-04 华为技术有限公司 Foldable electronic device
CN113806157A (en) * 2021-09-23 2021-12-17 维沃移动通信有限公司 Device state detection method and device, electronic device and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818687A (en) * 2019-01-31 2019-05-28 青岛海信移动通信技术股份有限公司 Folded state recognition methods, device, equipment and the storage medium of Folding screen
CN110072014A (en) * 2019-05-20 2019-07-30 维沃移动通信有限公司 A kind of screen folded state determines method and mobile terminal
CN110098486A (en) * 2019-05-27 2019-08-06 维沃移动通信有限公司 A kind of method of controlling antenna and equipment
CN112751160A (en) * 2019-10-31 2021-05-04 华为技术有限公司 Foldable electronic device
CN111342231A (en) * 2020-02-27 2020-06-26 北京字节跳动网络技术有限公司 Method and device for adjusting isolation between antennas, electronic equipment and medium
CN112311920A (en) * 2020-10-22 2021-02-02 维沃移动通信有限公司 Signal intensity control method and device of foldable electronic equipment and electronic equipment
CN113806157A (en) * 2021-09-23 2021-12-17 维沃移动通信有限公司 Device state detection method and device, electronic device and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114793140A (en) * 2022-06-21 2022-07-26 深圳粤讯通信科技有限公司 5G antenna interface board port isolation measurement system
CN114793140B (en) * 2022-06-21 2022-09-13 深圳粤讯通信科技有限公司 5G antenna interface board port isolation measurement system

Also Published As

Publication number Publication date
CN114326949B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
US11569858B2 (en) Adaptive antenna tuning system
US10374465B2 (en) Wireless power transmitter and control method therefor
EP3451453B1 (en) Wireless power transmission device and control method therefor
WO2019157888A1 (en) Control device, method and equipment for processor
CN109891860B (en) Electronic device and method for electronic device to identify connection terminal of external device
US9742456B2 (en) Method of sensing flip cover
US10045310B2 (en) Regulating transmit power of signal sources
CN106484159B (en) Method for dynamically controlling electronic equipment and electronic equipment
US20160299009A1 (en) Apparatus and method for measuring temperature in electronic device
CN114326949B (en) Detection method and device, storage medium and electronic equipment
TW201620202A (en) Wearable device, system and method for selecting antenna
KR20150103586A (en) Method for processing voice input and electronic device using the same
US20160211876A1 (en) Portable terminal and control method
KR20190043765A (en) Electronic device of supporting muli-band wireless communications and method of controlling thereof
KR20170105794A (en) Connector and electronic device including the same
WO2020093278A1 (en) Multi-antenna based gesture recognition method and device
CN104735248A (en) Temperature rise control method and device of mobile terminal
US10135120B2 (en) Method of providing antenna by using component in electronic device and the electronic device therefor
CN102457310A (en) Multi-antenna application system and method
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN110896240A (en) Charging control method and device, computer readable storage medium and terminal
KR101483669B1 (en) Method for receiving of sound signal with low power and mobile device using the same
CN104167085A (en) Apparatus and method for remotely awakening an electronic device
CN105698925A (en) A method, a system and a mobile terminal for ultraviolet ray intensity detection
CN104458048B (en) A kind of temperature checking method, device, circuit and a kind of 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
GR01 Patent grant
GR01 Patent grant