This application claims priority to Chinese Patent Application No. 201410656292.4 filed on Nov. 18, 2014, the contents of which are incorporated by reference herein.
The subject matter herein generally relates to antenna technology, and particularly to an electronic device and a method for selecting an antenna of the electronic device.
Several antennas are usually fixed onto different locations of an electronic device for transmitting and receiving wireless signals. The antennas can be approached by an external object, for example, an antenna is weak on transmission wireless signals when the antenna is covered by the external object. When the weak antenna is selected to transmit and receive wireless signals, the antenna is not able to set up a connection with a good quality required and the wireless signals of the antenna may be interrupted during the transmission.
Many aspects of the disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures, and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features of the present disclosure.
The present disclosure is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
Furthermore, the term “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules can be embedded in firmware, such as in an EPROM. The modules described herein can be implemented as either software and/or hardware modules and can be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
In at least one embodiment, the antennas 20 can be fixed onto different locations of the electronic device 100. For example, the antennas 20 can be fixed onto different locations of an outer side of the electronic device 100, which is a side of the electronic device 100 that is away from a body of a user when the electronic device 100 is worn or held by the user. As an example shown in
If a distance between an external object and one of the antennas 20 is within a predetermined value, the external object can affect the transmission ability of the antenna 20 and the antenna 20 is regarded as approached by the external object. The transmission ability of the antenna 20 is an ability of the antenna 20 for transmitting and receiving wireless signals. The predetermined value can be determined according to the performance of the antenna 20, for example, one centimeter. As an example shown in
In at least one embodiment, each sensor 30 can be, but is not limited to, a displacement sensor, a distance sensor, or a proximity sensor. The sensors 30 can be fixed to the outer side of the electronic device 100 near each of the antennas 20 (see in
In at least one embodiment, the storage system 50 can include various types of non-transitory computer-readable storage media. For example, the storage system 50 can be an internal storage system, such as a flash memory, a random access memory (RAM) for temporary storage of information, and/or a read-only memory (ROM) for permanent storage of information. The storage system 50 can also be an external storage system, such as a hard disk, a storage card, or a data storage medium. The at least one processor 40 can be a central processing unit (CPU), a microprocessor, or other data processor chip that performs functions of the electronic device 100.
In at least one embodiment, the selection system 10 is used to select a most stable antenna 20 for transmitting and receiving wireless signals from the antennas 20. The selection system 10 can include a detection module 11, a determination module 12, a calculation module 13, and a selection module 14. The function modules 11-14 can include computerized code in the form of one or more programs, which are stored in the storage system 50. The at least one processor 40 executes the computerized code to provide functions of the function modules 11-14.
The detection module 11 uses the sensors 30 to detect whether the antennas 20 are approached by one or more external objects when an antenna 20 needs to be selected for transmitting and receiving wireless signals.
In at least one embodiment, when the electronic device 100 needs to transmit data or switch to another antenna 20 for transmitting data because of interruption of data transmission, the detection module 11 determines that an antenna 20 needs to be selected. If a sensor 30 detects one or more external objects within a predetermined distance away from the antenna 20 corresponding to the sensor 30, the detection module 11 determines that the antenna 20 is approached by the external objects. If a sensor 30 does not detect any external object within the predetermined distance away from the antenna 20 corresponding to the sensor 30, the detection module 11 determines that the antenna 20 is not approached by the external objects.
The determination module 12 determines whether all antennas 20 of the electronic device 100 are approached by the external objects.
If the all antennas 20 of the electronic device 100 are approached by the external objects, the calculation module 13 calculates a value of received signal strength indication (RSSI) of each of the approached antennas 20. In at least one embodiment, the value of received signal strength indication of each antenna 20 can be calculated according to the existing technology. The value of received signal strength indication of each antenna 20 indicates the ability of each antenna 20 for transmitting and receiving wireless signals. The larger the value of received signal strength indication of an antenna 20 is, the stronger the ability of the antenna 20 for transmitting and receiving wireless signals is.
If only a part of the antennas 20 of the electronic device 100 are approached by the external objects, the calculation module 13 calculates a value of received signal strength indication of each of the antennas 20 which are not approached by the external objects.
The selection module 14 selects an antenna 20 from the calculated antennas 20 based on the calculated RSSI value, and set the selected antenna 20 for transmitting and receiving wireless signals. In at least one embodiment, the selected antenna 20 has a largest value of received signal strength indication of the calculated antennas 20. In detail, when all antennas 20 are approached by external objects, the selected antenna 20 is the antenna 20 which has a largest value of received signal strength indication. When only a part of the antennas 20 is approached by the external objects, the selected antenna 20 is an unapproached antenna 20 which has a largest value of received signal strength indication.
Referring to
At block 210, when an antenna of an electronic device needs to be selected for transmitting and receiving wireless signals, a detection module uses one or more sensors of the electronic device to detect whether at least one antenna of the electronic device is approached by external objects. If at least one antenna is approached by the external objects, block 220 is implemented. If no antenna is approached by the external objects, block 240 is implemented.
At block 220, a determination module determines whether all of the antennas are approached by the external objects. If all of the antennas are approached by the external objects, block 230 is implemented. If only a part of the antennas is approached by the external objects, block 240 is implemented.
At block 230, a calculation module calculates a value of received signal strength indication of each of the approached antenna. In at least one embodiment, the value of received signal strength indication of the antenna can be calculated according to the existing technology. The value of received signal strength indication of each antenna indicates the ability of each antenna for transmitting and receiving wireless signals.
At block 240, the calculation module calculates a value of received signal strength indication of each of the antennas which are not approached by the external objects.
At block 250, a selection module selects an antenna from the calculated antennas based on the calculated RSSI values, and sets the selected antenna for transmitting and receiving wireless signals. The selected antenna may be an approached antenna which has a largest value of received signal strength indication when all antennas are approached by external objects. The selected antenna may be an unapproached antenna which has a largest value of received signal strength indication when only a part of the antennas is approached by external objects.
It should be emphasized that the above-described embodiments of the present disclosure, including any particular embodiments, are merely possible examples of implementations, set forth for a clear understanding of the principles of the disclosure. Many variations and modifications can be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201410656292.4 | Nov 2014 | CN | national |