CN112152716A - LiFi communication control method and system for mobile terminal - Google Patents

LiFi communication control method and system for mobile terminal Download PDF

Info

Publication number
CN112152716A
CN112152716A CN201910579564.8A CN201910579564A CN112152716A CN 112152716 A CN112152716 A CN 112152716A CN 201910579564 A CN201910579564 A CN 201910579564A CN 112152716 A CN112152716 A CN 112152716A
Authority
CN
China
Prior art keywords
lifi
mobile terminal
receiver
emitter
communication
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
CN201910579564.8A
Other languages
Chinese (zh)
Other versions
CN112152716B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910579564.8A priority Critical patent/CN112152716B/en
Publication of CN112152716A publication Critical patent/CN112152716A/en
Application granted granted Critical
Publication of CN112152716B publication Critical patent/CN112152716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Abstract

The application provides a LiFi communication control method, device and system of a mobile terminal and the mobile terminal. Wherein the method comprises the following steps: when the LiFi communication mode is started, determining a LiFi receiver and a LiFi emitter of the mobile terminal, which are in current communication; determining the current communication orientation of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are in current communication; judging whether the position of the mobile terminal changes or not; and if the position of the mobile terminal is changed, switching the LiFi receiver and the LiFi emitter which are currently communicated to one of other LiFi receivers and LiFi emitters according to the current communication orientation. Therefore, the LiFi communication control method of the mobile terminal reduces the influence of directional transmission of LiFi on the LiFi communication quality, improves the LiFi communication quality in the mobile terminal, and improves user experience.

Description

LiFi communication control method and system for mobile terminal
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method, an apparatus, a system, and a mobile terminal for controlling an optical fidelity LiFi communication of a mobile terminal.
Background
Visible Light wireless communication is also called Light Fidelity (LiFi for short), and is a brand new wireless transmission technology for data transmission by using visible Light spectrum (such as Light emitted by a bulb), and the LiFi technology has the advantages of rapidness, convenience, safety, environmental protection and the like, thereby having wide application prospect.
In the related art, communication between mobile terminals and other devices having the LiFi communication function may be implemented by the LiFi technology. However, because the LiFi has directionality, if the mobile terminal is turned over or otherwise experiences a position change, the LiFi receiver of the mobile terminal is easily shielded, which affects the quality of the LiFi communication and the user experience.
Disclosure of Invention
The application provides a mobile terminal's LiFi communication control method, device system and mobile terminal for among the solution correlation technique, because LiFi has the directionality, if the mobile terminal position change's such as upset condition appears, thereby it influences the quality of LiFi communication to lead to mobile terminal's LiFi receiver to be sheltered from easily, has influenced user experience's problem.
An embodiment of the application provides a LiFi communication control method for a mobile terminal, including: when a LiFi communication mode is started, determining a LiFi receiver and a LiFi emitter of a mobile terminal in current communication, wherein the mobile terminal comprises a plurality of LiFi receivers and a plurality of LiFi emitters, and the LiFi receivers and the LiFi emitters are in one-to-one correspondence; determining the current communication orientation of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are in current communication; judging whether the position of the mobile terminal changes or not; and if the position of the mobile terminal is changed, switching the LiFi receiver and the LiFi emitter which are in current communication to one of other LiFi receivers and other LiFi emitters according to the current communication orientation.
The embodiment of the application provides a LiFi communication control method for a mobile terminal, when a LiFi communication mode is started, a LiFi receiver and a LiFi emitter which are in current communication of the mobile terminal are determined, and according to the position of the LiFi receiver and the position of the LiFi emitter which are in current communication, the current communication orientation of the mobile terminal is determined, whether the position of the mobile terminal changes or not is further judged, and when the position of the mobile terminal changes, one of other LiFi receivers and LiFi emitters is switched according to the current communication orientation. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers and the LiFi emitters which are communicated in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
Another aspect of the present application provides a LiFi communication control apparatus for a mobile terminal, including: the device comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining a LiFi receiver and a LiFi emitter which are in current communication of a mobile terminal when a LiFi communication mode is started, the mobile terminal comprises a plurality of LiFi receivers and a plurality of LiFi emitters, and the LiFi receivers and the LiFi emitters are in one-to-one correspondence; the second determining module is used for determining the current communication orientation of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are in current communication; the judging module is used for judging whether the position of the mobile terminal changes or not; and the switching module is used for switching the LiFi receiver and the LiFi emitter which are in current communication to one of other LiFi receivers according to the current communication direction if the position of the mobile terminal is changed.
The embodiment of the application provides a mobile terminal's LiFi communication control device, when LiFi communication mode opens, confirm mobile terminal's the LiFi receiver and the LiFi transmitter of current communication, and the position at LiFi receiver and LiFi transmitter place according to current communication, confirm mobile terminal's current communication orientation, and then judge whether mobile terminal's position changes, and when mobile terminal's position changes, switch to one in other LiFi receivers and the LiFi transmitter according to current communication orientation. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers and the LiFi emitters which are communicated in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
An embodiment of another aspect of the present application provides a LiFi communication control system for a mobile terminal, including: a mobile terminal, the mobile terminal comprising: the LiFi receivers are used for receiving LiFi signals transmitted by the LiFi downlink signal source; the plurality of LiFi emitters are used for emitting LiFi signals to the LiFi downlink signal source; the processor is used for determining a LiFi receiver and a LiFi emitter which are communicated currently of the mobile terminal when a LiFi communication mode is started, determining a current communication direction of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are communicated currently, judging whether the position of the mobile terminal is changed or not, and switching the LiFi receiver and the LiFi emitter which are communicated currently to one of other LiFi receivers and LiFi emitters according to the current communication direction if the position of the mobile terminal is changed; and the LiFi downlink signal source is used for transmitting the LiFi signal to the mobile terminal and receiving the LiFi signal transmitted by the mobile terminal.
The LiFi communication control system of the mobile terminal comprises the mobile terminal and a LiFi downlink signal source, wherein a plurality of LiFi receivers of the mobile terminal are used for receiving LiFi signals transmitted by the LiFi downlink signal source, a plurality of LiFi emitters are used for transmitting the LiFi signals to the LiFi downlink signal source, a processor of the mobile terminal is used for determining the LiFi receivers and the LiFi emitters which are in current communication with the mobile terminal when a LiFi communication mode is started, and determining the current communication orientation of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are in current communication, and judging whether the position of the mobile terminal is changed, when the position of the mobile terminal changes, switching to one of other LiFi receivers and LiFi emitters according to the current communication orientation, a LiFi downlink signal source, for transmitting and receiving the LiFi signal transmitted from the mobile terminal. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers and the LiFi emitters which are communicated in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
In another aspect of the present application, an embodiment provides a mobile terminal, including: the LiFi receivers are used for receiving LiFi signals transmitted by the LiFi downlink signal source; the plurality of LiFi emitters are used for emitting LiFi signals to the LiFi downlink signal source; and the processor is used for determining a LiFi receiver and a LiFi emitter which are currently communicated with the mobile terminal when the LiFi communication mode is started, determining the current communication direction of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are currently communicated with the mobile terminal, judging whether the position of the mobile terminal is changed, and switching the LiFi receiver and the LiFi emitter which are currently communicated with the mobile terminal to one of other LiFi receivers according to the current communication direction if the position of the mobile terminal is changed.
The embodiment of the application provides a mobile terminal, including a plurality of LiFi receivers and treater, wherein, a plurality of LiFi receivers, a LiFi signal for receiving the downstream signal source transmission of LiFi, a plurality of LiFi emitters are used for transmitting the LiFi signal to the downstream signal source of LiFi, a processor, when LiFi communication mode opens, determine the LiFi receiver and the LiFi emitter of mobile terminal's current communication, and the position at LiFi receiver and LiFi emitter place according to current communication, determine mobile terminal's current communication orientation, and judge whether mobile terminal's position changes, when mobile terminal's position changes, according to current communication orientation switch to one of other LiFi receivers and LiFi emitter. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers which communicate in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a LiFi communication control method for a mobile terminal according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another method for controlling LiFi communication of a mobile terminal according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a LiFi communication control apparatus of a mobile terminal according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a LiFi communication control system of a mobile terminal according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another LiFi communication control system of a mobile terminal according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a LiFi communication control system of another mobile terminal according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a LiFi communication control system of another mobile terminal according to an embodiment of the present disclosure;
FIG. 8 is a diagram illustrating different pixels in a pixel array receiving light from different angles;
fig. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the like or similar elements throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The embodiment of the application aims at the problems that in the related art, because LiFi has directivity, if the mobile terminal is overturned and the like, the LiFi receiver of the mobile terminal is easily shielded, so that the LiFi communication quality is influenced, and the user experience is influenced, and provides the light fidelity LiFi communication control method of the mobile terminal.
The embodiment of the application provides a LiFi communication control method for a mobile terminal, when a LiFi communication mode is started, a LiFi receiver and a LiFi emitter which are in current communication of the mobile terminal are determined, and according to the position of the LiFi receiver and the position of the LiFi emitter which are in current communication, the current communication orientation of the mobile terminal is determined, whether the position of the mobile terminal changes or not is further judged, and when the position of the mobile terminal changes, one of other LiFi receivers and LiFi emitters is switched according to the current communication orientation. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers and the LiFi emitters which are communicated in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
The following describes in detail a LiFi communication control method, apparatus, system and mobile terminal of the mobile terminal provided in the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a LiFi communication control method of a mobile terminal according to an embodiment of the present disclosure.
As shown in fig. 1, the LiFi communication control method of the mobile terminal includes the following steps:
step 101, when a LiFi communication mode is started, determining a LiFi receiver and a LiFi emitter of a mobile terminal in current communication, wherein the mobile terminal comprises a plurality of LiFi receivers and a plurality of LiFi emitters, and the plurality of LiFi receivers and the plurality of LiFi emitters are in one-to-one correspondence.
In this application embodiment, can set up a plurality of liFi receivers and a plurality of liFi transmitter in mobile terminal to when mobile terminal's the orientation of putting is different, select different liFi receivers to receive the liFi signal that the downstream signal source of liFi transmitted, and select different liFi transmitters to transmit the liFi signal to the downstream signal source, thereby improve the reception quality of mobile terminal to the liFi signal. The downlink signal source may be other mobile terminals.
It should be noted that, in the mobile terminal according to the embodiment of the present application, the number of the LiFi receivers is the same as that of the LiFi emitters, and the LiFi receivers and the LiFi emitters correspond to each other one-to-one and are disposed at the same position of the mobile terminal. For example, one LiFi receiver and one LiFi emitter may be disposed at the front end of the mobile terminal, and one LiFi receiver and one LiFi emitter may be disposed at the back end of the mobile terminal. Wherein, the LiFi receiver and the LiFi emitter which are positioned at the same position can be integrally packaged.
As a possible implementation manner, when the LiFi communication mode of the mobile terminal is started, the use states of each LiFi receiver and each LiFi emitter in the mobile terminal are obtained from the system information of the mobile terminal, and then the LiFi receiver and the LiFi emitter which are currently in communication in the mobile terminal are determined according to the use states of each LiFi receiver and each LiFi emitter, that is, the LiFi receiver and the LiFi emitter whose use states are "in use" are determined as the LiFi receiver and the LiFi emitter which are currently in communication in the mobile terminal. Among them, the LiFi receiver and the LiFi transmitter currently communicating in the mobile terminal are generally a pair of the LiFi receiver and the LiFi transmitter located at the same position of the mobile terminal.
And 102, determining the current communication orientation of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are in current communication.
The positions of the LiFi receiver and the LiFi emitter in current communication are the positions of the LiFi receiver and the LiFi emitter in current communication in the mobile terminal, such as the positions of the LiFi receiver and the LiFi emitter in front of the mobile terminal, the positions of the LiFi receiver and the LiFi emitter in current communication in the mobile terminal are the same. The current communication orientation of the mobile terminal refers to a direction in which the LiFi receiver currently communicating with the mobile terminal receives the LiFi signal, or may also refer to a direction in which the LiFi emitter currently communicating with the mobile terminal emits the LiFi signal. In practical use, any one of the direction in which the LiFi receiver in current communication receives the LiFi signal and the direction in which the LiFi emitter in current communication transmits the LiFi signal can be selected as needed, so as to indicate the current communication orientation of the mobile terminal, which is not limited in the embodiment of the present application.
In the embodiment of the application, after the LiFi receiver and the LiFi emitter which are in current communication with the mobile terminal are determined, the current communication orientation of the mobile terminal can be determined according to the positions of the LiFi receiver and the LiFi emitter which are in current communication with the mobile terminal and the current placing orientation of the mobile terminal.
For example, assuming that the positions of the determined LiFi receiver and the determined LiFi transmitter in current communication are the front of the mobile terminal, selecting the direction in which the LiFi receiver in current communication receives the LiFi signal to represent the current communication orientation of the mobile terminal, and if the current placing orientation of the mobile terminal is right side up, determining that the current communication of the mobile terminal is right side up; if the current placing direction of the mobile terminal is front-down, the upward current communication of the mobile terminal can be determined to be from bottom to top; if the current placing direction of the mobile terminal is that the front face faces left, the upward current communication of the mobile terminal can be determined to be from left to right; if the current placing direction of the mobile terminal is right side, it can be determined that the current communication of the mobile terminal is right to left side.
Optionally, the current orientation of the mobile terminal may be determined according to an output value of an acceleration sensor in the mobile terminal.
And 103, judging whether the position of the mobile terminal is changed or not.
It can be understood that, if the position of the mobile terminal changes, for example, the orientation of the mobile terminal is changed, the LiFi receiver and the LiFi emitter in the mobile terminal, which are currently in communication, may be blocked, and the LiFi signal transmitted by the LiFi downlink signal source cannot be received, and the signal cannot be transmitted to the LiFi downlink signal source, or the quality of receiving and transmitting the LiFi signal is reduced, so that the quality of the LiFi communication is affected.
In the embodiment of the application, whether the position of the mobile terminal changes or not can be detected in real time, for example, whether the placing direction of the mobile terminal changes or not is detected, and then when the position of the mobile terminal changes, a proper LiFi receiver and a proper LiFi emitter are selected to receive and emit LiFi signals.
As a possible implementation manner, whether the position of the mobile terminal has changed or not may be determined according to the degree of change in the output value of the acceleration sensor in the mobile terminal. That is, in a possible implementation form of the embodiment of the present application, the step 103 may include:
acquiring output values of the acceleration sensor at a first moment and a second moment respectively, wherein the first moment is a moment adjacent to the second moment and at which the output value of the acceleration sensor is acquired last time;
and judging whether the position of the mobile terminal changes or not according to the change value of the output value of the acceleration sensor between the first time and the second time.
The second time may be the current time; the first time may be a time at which the output value of the acceleration sensor is acquired in the previous time, which is adjacent to the second time.
It should be noted that the acceleration sensor in the mobile terminal can detect the acceleration values of the mobile terminal in three directions of X, Y, Z axes in a three-dimensional coordinate system, generally speaking, the X axis is parallel to the width direction of the display screen of the mobile terminal, the Y axis is parallel to the height direction of the display screen of the mobile terminal, and the Z axis is perpendicular to the plane where the display screen of the mobile terminal is located. When the placing direction of the mobile terminal is changed, the output values of the acceleration sensor in the mobile terminal in three directions are also changed, so that whether the position of the mobile terminal is changed or not can be judged according to the change value of the output values of the acceleration sensor between two moments.
Specifically, when the mobile terminal is placed statically, if the placing direction of the mobile terminal is "the display screen is horizontally upward", the output values of the acceleration sensor in the directions of the X axis, the Y axis and the Z axis are respectively 0, 0 and 1g (wherein g is the acceleration of gravity); if the placing orientation of the mobile terminal is 'display screen horizontal downward', the output values of the acceleration sensor on the X axis, the Y axis and the Z axis are respectively 0, 0 and-1 g; if the mobile terminal inclines to the left, the output value of the acceleration sensor in the X-axis direction is a positive value, and when the arrangement orientation of the mobile terminal is 'the width direction of the display screen is vertical to the horizontal plane to the left', the output values of the acceleration sensor in the X-axis, the Y-axis and the Z-axis are 1g, 0 and 0 respectively; if the mobile terminal inclines to the right, the output value of the acceleration sensor in the X-axis direction is a negative value, and when the arrangement orientation of the mobile terminal is 'the width direction of the display screen is vertical to the horizontal plane to the right', the output values of the acceleration sensor in the X-axis, the Y-axis and the Z-axis are respectively-1 g, 0 and 0; if the mobile terminal inclines downwards, the output value of the acceleration sensor in the Y-axis direction is a positive value, and when the arrangement orientation of the mobile terminal is 'the height direction of the display screen is vertical to the horizontal plane and the upper part of the display screen is upward', the output values of the acceleration sensor in the X-axis, the Y-axis and the Z-axis are respectively 0, 1g and 0; if the mobile terminal is inclined upwards, the output value of the acceleration sensor in the Y-axis direction is a negative value, and when the mobile terminal is placed in an orientation of 'the height direction of the display screen is vertical to the horizontal plane and the upper part of the display screen is downward', the output values of the acceleration sensor in the X-axis, the Y-axis and the Z-axis are respectively 0, -1g and 0.
In this embodiment, a change value of the output value of the acceleration sensor in each direction between the first time and the second time may be determined according to the output value of the acceleration sensor in each direction at the first time and the output value of the acceleration sensor in each direction at the second time, and then whether the position of the mobile terminal changes at the second time and what kind of change occurs may be determined according to the change value of the output value of the acceleration sensor in each direction.
For example, if the output values of the acceleration sensor in the X-axis, Y-axis, and Z-axis directions at the first time are 0, and 1g, respectively, that is, the orientation of the mobile terminal placed at the first time is "display screen horizontal up", and the output values in the X-axis, Y-axis, and Z-axis directions at the second time are 0, and-1 g, respectively, it can be determined that the position of the mobile terminal has changed at the second time, that is, the orientation of the mobile terminal placed at the second time has changed to "display screen horizontal down".
It should be noted that the first time and the second time are adjacent times of twice acquiring the output value of the acceleration sensor, and in actual use, a time interval between the first time and the second time (i.e., a frequency of acquiring the output value of the acceleration sensor) may be preset according to actual needs and performance of the mobile terminal, which is not limited in this embodiment of the application. For example, it may be 1 second, 5 seconds, or the like.
Furthermore, the mobile terminal according to the embodiment of the present application may further include an angular velocity sensor, and the angular velocity sensor may detect rotation information of the mobile terminal in each direction, so that whether the position of the mobile terminal is changed may be determined according to an output value of the angular velocity sensor. That is, in a possible implementation form of the embodiment of the present application, the step 103 may include:
acquiring output values of an angular velocity sensor in the mobile terminal at a first time and a second time, wherein the first time is a time adjacent to the second time and at which the output value of the angular velocity sensor is acquired last time;
and judging whether the position of the mobile terminal changes or not according to the change value of the output value of the angular velocity sensor between the first time and the second time.
The angular velocity sensor is also called a gyroscope, and can measure the rotation angular velocity of the physical quantity during deflection and inclination. In the mobile terminal, the angular velocity sensor can well measure the actions of rotation and deflection, so that the actual actions of a user can be accurately analyzed and judged. The output value of the angular velocity sensor of the mobile terminal may include motion information of the mobile terminal in three dimensions in a three-dimensional space, where the three dimensions are the three directions of the X axis, the Y axis, and the Z axis as described above.
In this embodiment, the change value of the output value of the angular velocity sensor in each direction between the first time and the second time may be determined according to the output value of the angular velocity sensor in each direction at the first time and the output value of the angular velocity sensor in each direction at the second time, and then whether the position of the mobile terminal changes at the second time and what kind of change occurs may be determined according to the change value of the output value of the angular velocity sensor in each direction.
And 104, if the position of the mobile terminal is changed, switching the LiFi receiver and the LiFi emitter which are in current communication to one of other LiFi receivers and other LiFi emitters according to the current communication direction.
In the embodiment of the application, if it is determined that the position of the mobile terminal is changed, the LiFi receiver and the LiFi emitter which are currently in communication can be switched to one of the other LiFi receivers and the other LiFi emitters according to the changed position of the mobile terminal and the current communication direction of the mobile terminal.
For example, if the positions of the LiFi receiver and the LiFi emitter in the mobile terminal are the front side of the mobile terminal (i.e. the side where the display screen is located), the current communication direction is from top to bottom (the direction in which the LiFi receiver in the mobile terminal receives the LiFi signal), and the changed positions of the mobile terminal are: the LiFi receiver and the LiFi emitter which are currently communicated can be switched to be the LiFi receiver and the LiFi emitter which are positioned on the back side (namely the side opposite to the display screen) of the mobile terminal when the display screen is positioned towards the 'horizontal downward' direction.
Preferably, the LiFi receiver and the LiFi emitter can be arranged on the front side, the back side and the side face of the mobile terminal respectively, so that the switching requirement of LiFi communication can be met. That is, in a possible implementation form of the embodiment of the present application, the step 104 may include:
if the LiFi receiver of the current communication is a first LiFi receiver, and the LiFi emitter of the current communication is a first LiFi emitter, switching from the first LiFi receiver to a second LiFi receiver or a third LiFi receiver, and switching from the first LiFi emitter to a second LiFi emitter or a third LiFi emitter, wherein the first LiFi receiver and the first LiFi emitter are located on the front side of the mobile terminal, the second LiFi receiver and the second LiFi emitter are located on the back side of the mobile terminal, and the third LiFi receiver and the third LiFi emitter are located on the side face of the mobile terminal;
if the LiFi receiver of the current communication is the second LiFi receiver and the LiFi emitter of the current communication is the second LiFi emitter, switching from the second LiFi receiver to the first LiFi receiver or the third LiFi receiver and switching from the second LiFi emitter to the first LiFi emitter or the third LiFi emitter;
and if the currently communicated LiFi receiver is the third LiFi receiver and the currently communicated LiFi emitter is the third LiFi emitter, switching from the third LiFi receiver to the first LiFi receiver or the second LiFi receiver, and switching from the third LiFi emitter to the first LiFi emitter or the second LiFi emitter.
The front side of the mobile terminal refers to the side where the display screen of the mobile terminal is located; the back of the mobile terminal refers to a surface opposite to a display screen of the mobile terminal.
In the embodiment of the present application, if a pair of the LiFi receiver and the LiFi emitter is respectively disposed on the front surface, the back surface, and the side surface of the mobile terminal, when it is determined that the LiFi receiver and the LiFi emitter need to be switched, the switching can be directly performed to one of the other two pairs of the LiFi receiver and the LiFi emitter. Specifically, one of the other two pairs of LiFi receivers and LiFi emitters may be selected according to the current communication orientation of the mobile terminal and the changed position of the mobile terminal, and the switching may be performed.
Further, the mobile terminal of the embodiment of the application can also emit a LiFi signal, so that bidirectional communication between the mobile terminal and the LiFi downlink signal source is realized. That is, in a possible implementation form of the embodiment of the present application, after the step 104, the method may further include:
and when a LiFi signal sending instruction is acquired, controlling a LiFi emitter in the mobile terminal to transmit a LiFi signal, wherein the LiFi emitter is currently in communication.
As a possible implementation, one LiFi emitter may be provided for each LiFi receiver in the mobile terminal. Optionally, the front of mobile terminal, the back sets up first LiFi receiver respectively with the side, when second LiFi receiver and third LiFi receiver, can be respectively in mobile terminal's front, the back sets up first LiFi transmitter respectively with the side, second LiFi transmitter and third LiFi transmitter, and first LiFi receiver can integrated package with first LiFi transmitter, second LiFi receiver can integrated package with the second LiFi transmitter, third LiFi receiver can integrated package with the third LiFi transmitter.
In this embodiment of the present application, the LiFi signal sending instruction may be input by a user through an input device of the mobile terminal, or may also be a LiFi signal sending instruction automatically generated according to a LiFi signal transmitted by a LiFi downlink signal source, which is not limited in this embodiment of the present application. Specifically, when a LiFi signal sending instruction is obtained, a LiFi emitter in the mobile terminal in current communication can be controlled to emit a LiFi signal, that is, if the LiFi emitter in current communication is a first LiFi emitter, the first LiFi emitter is controlled to emit the LiFi signal; if the LiFi emitter in the current communication is a second LiFi emitter, controlling the second LiFi emitter to emit a LiFi signal; and if the LiFi emitter in the current communication is the third LiFi emitter, controlling the third LiFi emitter to emit a LiFi signal.
The embodiment of the application provides a LiFi communication control method for a mobile terminal, when a LiFi communication mode is started, a LiFi receiver and a LiFi emitter which are in current communication of the mobile terminal are determined, and according to the position of the LiFi receiver and the position of the LiFi emitter which are in current communication, the current communication orientation of the mobile terminal is determined, whether the position of the mobile terminal changes or not is further judged, and when the position of the mobile terminal changes, one of other LiFi receivers and LiFi emitters is switched according to the current communication orientation. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers and the LiFi emitters which are communicated in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
In this application one possible implementation form, when mobile terminal's liFi communication mode opened, can be at first according to the attribute of liFi signal source and mobile terminal's the orientation of putting, determine initial LiFi receiver and initial LiFi transmitter as the LiFi receiver of current communication, and then when mobile terminal's position changed, can directly switch LiFi receiver and LiFi transmitter according to mobile terminal's the orientation of putting.
The method for controlling LiFi communication of a mobile terminal according to the embodiment of the present application is further described with reference to fig. 2.
Fig. 2 is a flowchart illustrating another method for controlling LiFi communication of a mobile terminal according to an embodiment of the present disclosure.
As shown in fig. 2, the LiFi communication control method of the mobile terminal includes the following steps:
step 201, when the LiFi communication mode is started, determining the attribute of the current LiFi downlink signal source and the current placing direction of the mobile terminal.
The attribute of the LiFi downlink signal source may include a direction in which the LiFi downlink signal source emits the LiFi signal. For example, if the downstream signal source of the LiFi is a lighting device in a room, the downstream signal source of the LiFi may be "from top to bottom"; if the LiFi downlink signal source is other mobile terminals with the LiFi communication function, the transmission direction of the LiFi downlink signal source may be any direction.
Optionally, the attribute of the LiFi downlink signal source may be that the LiFi downlink signal source actively sends to the mobile terminal, that is, the LiFi signal emitted by the LiFi downlink signal source each time may include attribute information corresponding thereto, so that when the LiFi communication mode is turned on, any one of the LiFi receivers in the mobile terminal is controlled to receive the LiFi signal emitted by the LiFi downlink signal source, and then the attribute of the LiFi downlink signal source is determined according to the obtained LiFi signal emitted by the LiFi downlink signal source.
Optionally, the attribute of the LiFi downlink signal source may also be obtained by actively inquiring after the mobile terminal establishes a connection with the LiFi downlink signal source according to its own needs. When the LiFi communication mode is started, any LiFi receiver in the mobile terminal is controlled to receive a LiFi signal transmitted by a LiFi downlink signal source, and when the LiFi signal transmitted by the LiFi downlink signal source is received, the LiFi signal is transmitted to the LiFi downlink signal source through the LiFi emitter corresponding to the LiFi receiver, wherein the transmitted LiFi signal comprises information inquiring about the attribute of the LiFi downlink signal source, and therefore the LiFi downlink signal source can return the attribute information of the LiFi receiver to the mobile terminal according to the obtained LiFi signal transmitted by the mobile terminal.
For example, if the downlink signal source of the LiFi is another mobile terminal a having the LiFi communication function, the mobile terminal a may actively send the attribute information of itself out through the LiFi signal when the LiFi communication mode is started, or send the attribute information of itself out through the LiFi signal after obtaining the inquiry information of another mobile terminal. The attribute information sent by the mobile terminal a may include information such as a geographical location (e.g., latitude and longitude information output by a GPS component), a placement orientation (e.g., output values of an acceleration sensor and an angular velocity sensor), and the like of the mobile terminal a, so that the mobile terminal that acquires the attribute information may determine a current communication orientation according to the attribute information of the mobile terminal a.
Preferably, the current orientation of the mobile terminal can be determined according to the current output value of the acceleration sensor in the mobile terminal. That is, in a possible implementation form of the embodiment of the present application, the step 201 may include:
acquiring a current output value of an acceleration sensor in the mobile terminal;
and determining the current placing orientation of the mobile terminal according to the current output value of the acceleration sensor.
It should be noted that the acceleration sensor in the mobile terminal can detect the acceleration values of the mobile terminal in three directions of X, Y, Z axes in a three-dimensional coordinate system, generally speaking, the X axis is parallel to the width direction of the display screen of the mobile terminal, the Y axis is parallel to the height direction of the display screen of the mobile terminal, and the Z axis is perpendicular to the plane where the display screen of the mobile terminal is located. Output values of the acceleration sensor in the mobile terminal in three directions are related to the placing direction of the mobile terminal, so that the placing direction of the mobile terminal can be determined according to the current output value of the acceleration sensor.
Specifically, when the mobile terminal is placed statically, if the output values of the acceleration sensor in the X-axis direction, the Y-axis direction and the Z-axis direction are 0, 0 and 1g, respectively, the placing orientation of the mobile terminal is "display screen horizontally faces upwards (i.e. front face faces upwards)"; if the output values of the acceleration sensor on the X axis, the Y axis and the Z axis are respectively 0, 0 and-1 g, the placing orientation of the mobile terminal is 'display screen horizontal downward (namely front downward)'; if the output value of the acceleration sensor in the X-axis direction is a positive value, the mobile terminal is inclined towards the left, and when the output values of the acceleration sensor in the X-axis, the Y-axis and the Z-axis are 1g, 0 and 0 respectively, the placement orientation of the mobile terminal is 'the width direction of the display screen is vertical to the horizontal plane towards the left (namely the front is towards the left'); if the output value of the acceleration sensor in the X-axis direction is a negative value, the mobile terminal is inclined to the right, and when the output values of the acceleration sensor in the X-axis, the Y-axis and the Z-axis are-1 g, 0 and 0 respectively, the placement orientation of the mobile terminal is 'the width direction vertical horizontal plane of the display screen to the right (namely, the front side faces to the right'); if the output value of the acceleration sensor in the Y-axis direction is a positive value, the mobile terminal is inclined downwards, and when the output values of the acceleration sensor in the X-axis, the Y-axis and the Z-axis are respectively 0, 1g and 0, the mobile terminal is placed towards a vertical horizontal plane in the height direction of the display screen and the upper part of the display screen is upward; if the output value of the acceleration sensor in the Y-axis direction is a negative value, the mobile terminal is inclined upwards, and when the output values of the acceleration sensor in the X-axis, the Y-axis and the Z-axis are respectively 0, -1g and 0, the mobile terminal is placed towards a vertical horizontal plane in the height direction of the display screen, and the upper part of the display screen is downward.
Step 202, determining a LiFi receiver and a LiFi emitter of the mobile terminal in current communication according to the attribute of the current LiFi downlink signal source and the current placing direction of the mobile terminal.
In the embodiment of the application, after the attribute of the current LiFi downlink signal source and the current placing direction of the mobile terminal are determined, the LiFi receiver and the LiFi transmitter of the current communication of the mobile terminal can be determined according to the attribute of the current LiFi downlink signal source, the current placing direction of the mobile terminal, and the positions of each LiFi receiver and each LiFi transmitter in the mobile terminal.
For example, if the mobile terminal includes two LiFi receivers and two LiFi emitters, the first LiFi receiver and the first LiFi emitter are located on the front side of the mobile terminal, the second LiFi receiver and the second LiFi emitter are located on the back side of the mobile terminal, the attribute of the current LiFi downlink signal source is "from left to right", the current placing orientation of the mobile terminal is "front side facing left", it can be determined that the LiFi receiver and the LiFi emitter which are currently in communication are respectively the first LiFi receiver and the first LiFi emitter.
Further, when the LiFi communication mode is started, all LiFi receivers in the mobile terminal can be controlled to receive LiFi signals at the same time, and the initial LiFi receivers and the initial LiFi emitters are determined to serve as the LiFi receivers and the LiFi emitters in current communication according to the quality of the LiFi signals received by the LiFi receivers. That is, in a possible implementation form of the embodiment of the present application, the step 202 may further include:
when the LiFi communication mode is started, controlling each LiFi receiver in the mobile terminal to receive a LiFi signal;
and determining the LiFi receiver and the LiFi emitter which are communicated currently according to the signal quality parameters of the LiFi signals received by each LiFi receiver.
It should be noted that, due to the directional transmission characteristic of the LiFi signal, when there are multiple LiFi receivers in the mobile terminal, some LiFi receivers may be blocked, so that the quality of the obtained LiFi signal is poor, and the quality of the LiFi signal received by the unblocked LiFi receiver (i.e., the LiFi receiver that can directly obtain the LiFi signal) is generally better. Therefore, when the LiFi communication mode is started, the LiFi receiver and the LiFi emitter which are currently in communication can be determined according to the quality parameters of the LiFi signals received by each LiFi receiver in the mobile terminal.
Specifically, when the LiFi communication mode is started, each LiFi receiver in the mobile terminal is controlled to receive the LiFi signal transmitted by the LiFi downlink signal source, and signal quality parameters (such as signal intensity) of the LiFi signal received by each LiFi receiver are determined, so that the LiFi receiver with the optimal signal quality parameter of the received LiFi signal can be determined as the LiFi receiver in current communication, for example, the LiFi receiver with the strongest signal intensity of the received LiFi signal, and then the LiFi transmitter located at the same position as the LiFi receiver in current communication is determined as the LiFi transmitter in current communication.
Step 203, judging whether the position of the mobile terminal changes.
And 204, if the position of the mobile terminal is changed, switching to one of other LiFi receivers and other LiFi emitters according to the changed position.
The detailed implementation process and principle of the steps 203-204 can refer to the detailed description of the above embodiments, and are not described herein again.
The embodiment of the application provides a LiFi communication control method for a mobile terminal, when a LiFi communication mode is started, the attribute of a current LiFi downlink signal source is determined, the current placing direction of the mobile terminal is determined, and according to the attribute of the current LiFi downlink signal source and the current placing direction of the mobile terminal, a LiFi receiver and a LiFi emitter of the current communication of the mobile terminal are determined, and then whether the position of the mobile terminal changes is judged, and when the position of the mobile terminal changes, the LiFi communication control method is switched to one of other LiFi receivers and LiFi emitters according to the changed position. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers and the LiFi emitters which are communicated in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
In order to implement the above embodiments, the present application further provides a LiFi communication control device of a mobile terminal.
Fig. 3 is a schematic structural diagram of a LiFi communication control device of a mobile terminal according to an embodiment of the present disclosure.
As shown in fig. 3, the LiFi communication control device 30 of the mobile terminal includes:
the first determining module 31 is configured to determine a LiFi receiver and a LiFi emitter of a mobile terminal in current communication when a LiFi communication mode is started, where the mobile terminal includes a plurality of LiFi receivers and a plurality of LiFi emitters, and the plurality of LiFi receivers and the plurality of LiFi emitters are in one-to-one correspondence;
a second determining module 32, configured to determine a current communication orientation of the mobile terminal according to positions of the LiFi receiver and the LiFi emitter that are currently communicating;
a judging module 33, configured to judge whether the position of the mobile terminal changes;
and a switching module 34, configured to switch the LiFi receiver and the LiFi transmitter that are currently communicating to one of other LiFi receivers according to the current communication orientation if the location of the mobile terminal changes.
In practical use, the LiFi communication control apparatus of the mobile terminal provided in the embodiment of the present application may be configured in any mobile terminal to execute the LiFi communication control method of the mobile terminal.
The embodiment of the application provides a mobile terminal's LiFi communication control device, when LiFi communication mode opens, confirm mobile terminal's the LiFi receiver and the LiFi transmitter of current communication, and the position at LiFi receiver and LiFi transmitter place according to current communication, confirm mobile terminal's current communication orientation, and then judge whether mobile terminal's position changes, and when mobile terminal's position changes, switch to one in other LiFi receivers and the LiFi transmitter according to current communication orientation. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers and the LiFi emitters which are communicated in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
In a possible implementation form of the present application, the switching module 34 is specifically configured to:
if the LiFi receiver of the current communication is a first LiFi receiver, and the LiFi emitter of the current communication is a first LiFi emitter, switching from the first LiFi receiver to a second LiFi receiver or a third LiFi receiver, and switching from the first LiFi emitter to a second LiFi emitter or a third LiFi emitter, wherein the first LiFi receiver and the first LiFi emitter are located on the front side of the mobile terminal, the second LiFi receiver and the second LiFi emitter are located on the back side of the mobile terminal, and the third LiFi receiver and the third LiFi emitter are located on the side face of the mobile terminal;
if the LiFi receiver of the current communication is the second LiFi receiver and the LiFi emitter of the current communication is the second LiFi emitter, switching from the second LiFi receiver to the first LiFi receiver or the third LiFi receiver and switching from the second LiFi emitter to the first LiFi emitter or the third LiFi emitter;
and if the currently communicated LiFi receiver is the third LiFi receiver and the currently communicated LiFi emitter is the third LiFi emitter, switching from the third LiFi receiver to the first LiFi receiver or the second LiFi receiver, and switching from the third LiFi emitter to the first LiFi emitter or the second LiFi emitter.
Further, in another possible implementation form of the present application, the first determining module 31 is further configured to:
when the LiFi communication mode is started, determining the attribute of the current LiFi downlink signal source and the current placing direction of the mobile terminal;
and determining a LiFi receiver and a LiFi emitter of the mobile terminal, which are in current communication, according to the attribute of the current LiFi downlink signal source and the current placing direction of the mobile terminal.
Further, in another possible implementation form of the present application, the first determining module 31 is further configured to:
when the LiFi communication mode is started, controlling each LiFi receiver in the mobile terminal to receive a LiFi signal;
and determining the LiFi receiver and the LiFi emitter which are communicated currently according to the signal quality parameters of the LiFi signals received by each LiFi receiver.
Further, in another possible implementation form of the present application, the first determining module 31 is further configured to:
acquiring a current output value of an acceleration sensor in the mobile terminal;
determining the current placing direction of the mobile terminal according to the current output value of the acceleration sensor;
correspondingly, the determining module 33 is specifically configured to:
acquiring output values of the acceleration sensor at a first moment and a second moment respectively, wherein the first moment is a moment adjacent to the second moment and at which the output value of the acceleration sensor is acquired last time;
and judging whether the position of the mobile terminal changes or not according to the change value of the output value of the acceleration sensor between the first time and the second time.
Further, in another possible implementation form of the present application, the determining module 33 is further configured to:
acquiring output values of an angular velocity sensor in the mobile terminal at a first time and a second time, wherein the first time is a time adjacent to the second time and at which the output value of the angular velocity sensor is acquired last time;
and judging whether the position of the mobile terminal changes or not according to the change value of the output value of the angular velocity sensor between the first time and the second time.
Further, in another possible implementation form of the present application, the LiFi communication control device 30 of the mobile terminal further includes:
and the transmitting module is used for controlling a currently communicated LiFi transmitter in the mobile terminal to transmit the LiFi signal when the LiFi signal transmitting instruction is acquired.
The embodiment of the application provides a mobile terminal's LiFi communication control device, when LiFi communication mode opens, confirm the attribute of the downstream signal source of current LiFi, and the current orientation of putting of mobile terminal, and according to the attribute of the downstream signal source of current LiFi and the current orientation of putting of mobile terminal, confirm the LiFi receiver and the LiFi transmitter of mobile terminal's current communication, later judge whether mobile terminal's position changes, and then when mobile terminal's position changes, switch to one in other LiFi receivers and the LiFi transmitter according to the position after the change. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers and the LiFi emitters which are communicated in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
In order to implement the above embodiments, the present application further provides a LiFi communication control system of a mobile terminal.
Fig. 4 is a schematic structural diagram of a LiFi communication control system of a mobile terminal according to an embodiment of the present disclosure.
As shown in fig. 4, the LiFi communication control system 10 of the mobile terminal includes: a LiFi downlink signal source 11 and a mobile terminal 12.
The LiFi downlink signal source 11 is configured to transmit a LiFi signal to the mobile terminal 12 and receive the LiFi signal transmitted by the mobile terminal.
Wherein, the mobile terminal 12 includes: a plurality of LiFi receivers 121, a plurality of LiFi emitters 122, and a processor 123.
The plurality of LiFi receivers 121 are configured to receive the LiFi signals transmitted by the LiFi downlink signal source;
a plurality of LiFi emitters 122 for emitting LiFi signals to the LiFi downlink signal source;
and the processor 123 is configured to determine, when the LiFi communication mode is turned on, a LiFi receiver and a LiFi emitter of the mobile terminal 12 that are currently in communication, determine, according to positions where the LiFi receiver 121 and the LiFi emitter 122 that are currently in communication are located, a current communication orientation of the mobile terminal 12, and determine whether the position of the mobile terminal 12 changes, and if the position of the mobile terminal 12 changes, switch the LiFi receiver and the LiFi emitter of the current communication to one of the other LiFi receivers 121 and the LiFi emitters 122 according to the current communication orientation.
The positions of the LiFi receiver 121 and the LiFi emitter 122 in current communication refer to positions of the LiFi receiver 121 and the LiFi emitter 122 in current communication in the mobile terminal 12, such as on the front side of the mobile terminal 12, on the back side of the mobile terminal 12, and the positions of the LiFi receiver 121 and the LiFi emitter 122 in current communication in the mobile terminal are the same. The current communication orientation of the mobile terminal 12 refers to a direction in which the LiFi receiver 121 currently communicating with the mobile terminal 12 receives the LiFi signal, or may refer to a direction in which the LiFi emitter 122 currently communicating with the mobile terminal 12 emits the LiFi signal. In practical use, any one of the direction in which the LiFi receiver 121 in current communication receives the LiFi signal and the direction in which the LiFi emitter 122 in current communication emits the LiFi signal can be selected as needed, so as to indicate the current communication orientation of the mobile terminal, which is not limited in the embodiment of the present application.
In the embodiment of the present application, a plurality of LiFi receivers 121 and a plurality of LiFi emitters 122 may be disposed in the mobile terminal 12, so that when the orientation of the mobile terminal 12 is different, different LiFi receivers 121 are selected to receive the LiFi signal emitted by the LiFi downlink signal source 11, and different LiFi emitters 122 are selected to emit the LiFi signal to the downlink signal source 11, thereby improving the reception quality of the mobile terminal 12 on the LiFi signal. The downlink signal source 11 may be other mobile terminals.
It should be noted that the number of the LiFi receivers 121 in the mobile terminal 12 of the embodiment of the present application is the same as the number of the LiFi emitters 122, and the LiFi receivers 121 and the LiFi emitters 122 are in one-to-one correspondence and disposed at the same position of the mobile terminal 12. For example, one LiFi receiver 121 and one LiFi emitter 122 may be disposed at the front end of the mobile terminal 12, and one LiFi receiver 121 and one LiFi emitter 122 may be disposed at the back end of the mobile terminal 12. Wherein the LiFi receiver 121 and the LiFi emitter 122 at the same position can be integrally packaged.
As a possible implementation manner, when the LiFi communication mode of the mobile terminal 12 is started, the processor 123 in the mobile terminal 12 may obtain the use states of each LiFi receiver 121 and each LiFi emitter 122 in the mobile terminal 12 from the system information of the mobile terminal 12, and further determine the LiFi receiver 121 and the LiFi emitter 122 currently communicating in the mobile terminal 12 according to the use states of each LiFi receiver 121 and each LiFi emitter 122, that is, the LiFi receiver and the LiFi emitter whose use states are "in use" are determined as the LiFi receiver 121 and the LiFi emitter 122 currently communicating in the mobile terminal. The LiFi receiver 121 and the LiFi emitter 122 currently communicating with the mobile terminal 12 are typically a pair of the LiFi receiver and the LiFi emitter at the same location of the mobile terminal 12.
In the embodiment of the present application, after the processor 123 determines that the LiFi receiver 121 and the LiFi transmitter 122 of the mobile terminal 12 are currently in communication, the current communication orientation of the mobile terminal 12 may be determined according to the positions of the LiFi receiver 121 and the LiFi transmitter 122 of the mobile terminal 12 in communication and the current placing orientation of the mobile terminal 12.
For example, assuming that the determined positions of the LiFi receiver 121 and the LiFi transmitter 122 in the current communication are the front of the mobile terminal 12, selecting the direction in which the LiFi receiver 121 in the current communication receives the LiFi signal to represent the current communication orientation of the mobile terminal 12, and if the current orientation of the mobile terminal 12 is right side up, determining that the current communication orientation of the mobile terminal 12 is from top to bottom; if the current placing direction of the mobile terminal 12 is front-down, it can be determined that the current communication of the mobile terminal 12 is from bottom to top; if the current placing direction of the mobile terminal 12 is front side facing left, it can be determined that the current communication direction of the mobile terminal 12 is from left to right; if the current orientation of the mobile terminal 12 is right-side, it may be determined that the current communication orientation of the mobile terminal 12 is right-to-left.
Alternatively, the current orientation of the mobile terminal 12 may be determined according to the output value of the acceleration sensor in the mobile terminal 12.
It can be understood that, if the position of the mobile terminal 12 changes, for example, the orientation of the mobile terminal 12 changes, the LiFi receiver 121 and the LiFi transmitter 122 in the mobile terminal 12 that are currently in communication may be blocked, and cannot receive the LiFi signal transmitted by the LiFi downlink signal source 11, and cannot transmit the signal to the LiFi downlink signal source 11, or the quality of receiving and transmitting the LiFi signal is reduced, thereby affecting the quality of the LiFi communication.
In the embodiment of the present application, the processor 123 may detect whether the position of the mobile terminal 12 changes in real time, for example, whether the orientation of the mobile terminal 12 changes, and then select a suitable LiFi receiver and a suitable LiFi emitter to receive and emit the LiFi signal when the position of the mobile terminal 12 changes.
As a possible implementation manner, whether the position of the mobile terminal 12 has changed or not may be determined according to the degree of change in the output value of the acceleration sensor in the mobile terminal 12. That is, in a possible implementation form of the embodiment of the present application, referring to fig. 5, the mobile terminal 12 may further include: an acceleration sensor 124;
the processor 123 is further configured to acquire output values of the acceleration sensor 124 at a first time and a second time, respectively, where the first time is a time adjacent to the second time and at which the output value of the acceleration sensor 124 was acquired last time, and determine whether the position of the mobile terminal 123 has changed according to a change value of the output value of the acceleration sensor 124 between the first time and the second time.
The second time may be the current time; the first time may be a time at which the output value of the acceleration sensor is acquired in the previous time, which is adjacent to the second time.
It should be noted that the acceleration sensor 124 in the mobile terminal 12 can detect the acceleration values of the mobile terminal 12 in three directions of X, Y, Z axes in a three-dimensional coordinate system, generally speaking, the X axis is parallel to the width direction of the display screen of the mobile terminal 12, the Y axis is parallel to the height direction of the display screen of the mobile terminal 12, and the Z axis is perpendicular to the plane where the display screen of the mobile terminal 12 is located. When the orientation of the mobile terminal 12 changes, the output values of the acceleration sensor 124 in three directions of the mobile terminal 12 also change, so that whether the position of the mobile terminal 12 changes can be determined according to the change value of the output value of the acceleration sensor 124 between two times.
Specifically, when the mobile terminal 12 is placed still, if the placement orientation of the mobile terminal 12 is "display screen horizontal up", the output values of the acceleration sensor 124 in the X-axis, Y-axis and Z-axis directions are 0, 0 and 1g, respectively; if the orientation of the mobile terminal 12 is "display screen horizontal downward", the output values of the acceleration sensor 124 on the X axis, the Y axis and the Z axis are 0, 0 and-1 g respectively; if the mobile terminal 12 is tilted to the left, the output value of the acceleration sensor 124 in the X-axis direction is a positive value, and when the mobile terminal 12 is placed in the orientation "the horizontal plane perpendicular to the width direction of the display screen is tilted to the left", the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are 1g, 0, respectively; if the mobile terminal 12 is tilted to the right, the output value of the acceleration sensor 124 in the X-axis direction is a negative value, and when the mobile terminal 12 is placed in the orientation "the width direction of the display screen is perpendicular to the horizontal plane to the right", the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are-1 g, 0, and 0, respectively; if the mobile terminal 12 is tilted downward, the output value of the acceleration sensor 124 in the Y-axis direction is a positive value, and when the mobile terminal 12 is placed in the orientation "the height direction of the display screen is vertical to the horizontal plane, and the upper portion of the display screen is upward", the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are 0, 1g, and 0, respectively; if the mobile terminal 12 is tilted upward, the output value of the acceleration sensor 124 in the Y-axis direction is negative, and when the mobile terminal 12 is placed in the "vertical horizontal plane in the height direction of the display screen with the upper portion of the display screen downward", the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are 0, -1g, and 0, respectively.
In this embodiment, the processor 123 may determine a change value of the output value of the acceleration sensor 124 in each direction between the first time and the second time according to the output value of the acceleration sensor 124 in each direction at the first time and the output value of the acceleration sensor 124 in each direction at the second time, and further determine whether the position of the mobile terminal 12 is changed at the second time and what kind of change is occurred according to the change value of the output value of the acceleration sensor 124 in each direction.
For example, if the output values of the acceleration sensor 124 in the X-axis, Y-axis, and Z-axis directions at the first time are 0, and 1g, respectively, that is, the orientation of the mobile terminal 12 in the first time is "display screen horizontal up", and the output values in the X-axis, Y-axis, and Z-axis directions at the second time are 0, and-1 g, respectively, the processor 123 may determine that the position of the mobile terminal 12 has changed at the second time, that is, the orientation of the mobile terminal 12 in the second time has changed to "display screen horizontal down".
It should be noted that the first time and the second time are adjacent times of twice acquiring the output value of the acceleration sensor 124, and in actual use, a time interval between the first time and the second time (i.e., a frequency at which the processor 123 acquires the output value of the acceleration sensor 124) may be preset according to actual needs and performance of the mobile terminal 12, which is not limited in this embodiment of the application. For example, it may be 1 second, 5 seconds, or the like.
Furthermore, the mobile terminal according to the embodiment of the present application may further include an angular velocity sensor, and the angular velocity sensor may detect rotation information of the mobile terminal in each direction, so that whether the position of the mobile terminal is changed may be determined according to an output value of the angular velocity sensor. That is, in a possible implementation form of the embodiment of the present application, referring to fig. 5, the mobile terminal 12 may further include: an angular velocity sensor 125;
the processor 123 is further configured to obtain output values of the angular velocity sensor 125 in the mobile terminal 12 at a first time and a second time, where the first time is a time adjacent to the second time and at which the output value of the angular velocity sensor 125 was obtained last time, and determine whether the position of the mobile terminal 12 has changed according to a change value of the output value of the angular velocity sensor 125 between the first time and the second time.
The angular velocity sensor is also called a gyroscope, and can measure the rotation angular velocity of the physical quantity during deflection and inclination. In the mobile terminal, the angular velocity sensor can well measure the actions of rotation and deflection, so that the actual actions of a user can be accurately analyzed and judged. The output value of the angular velocity sensor of the mobile terminal may include motion information of the mobile terminal in three dimensions in a three-dimensional space, where the three dimensions are the three directions of the X axis, the Y axis, and the Z axis as described above.
In the embodiment of the present application, the change value of the output value of the angular velocity sensor 125 in each direction between the first time and the second time may be determined according to the output value of the angular velocity sensor 125 in each direction at the first time and the output value of the angular velocity sensor 125 in each direction at the second time, and then whether the position of the mobile terminal 12 changes at the second time and what kind of change has occurred may be determined according to the change value of the output value of the angular velocity sensor 125 in each direction.
In the embodiment of the present application, if it is determined that the position of the mobile terminal 12 is changed, the LiFi receiver 121 and the LiFi emitter 122 which are currently in communication may be switched to one of the other LiFi receivers and LiFi emitters according to the changed position of the mobile terminal 12 and the current communication orientation of the mobile terminal 12.
For example, if the positions of the LiFi receiver 121 and the LiFi transmitter 122 currently communicating in the mobile terminal 12 are the front side of the mobile terminal 12 (i.e. the side where the display screen is located), the current communication direction is from top to bottom, and the changed positions of the mobile terminal 12 are: the LiFi receiver 121 and the LiFi emitter 122 which are currently in communication can be switched to the LiFi receiver 121 and the LiFi emitter 122 which are on the back side (i.e. the side opposite to the display screen) of the mobile terminal when the display screen is placed towards the horizontal downward direction.
Preferably, the LiFi receiver and the LiFi emitter can be arranged on the front side, the back side and the side face of the mobile terminal respectively, so that the switching requirement of LiFi communication can be met. That is, in a possible implementation form of the embodiment of the present application, referring to fig. 6, the mobile terminal 12 may include: a first LiFi receiver 121 and a first LiFi emitter 122, a second LiFi receiver 121 and a second LiFi emitter 122, a third LiFi receiver 121 and a third LiFi emitter 122, wherein the first LiFi receiver 121 and the first LiFi emitter 122 are located on the front side of the mobile terminal 12, the second LiFi receiver 121 and the second LiFi emitter 122 are located on the back side of the mobile terminal 12, and the third LiFi receiver 121 and the third LiFi emitter 122 are located on the side of the mobile terminal 12.
The front side of the mobile terminal 12 refers to a side where a display screen of the mobile terminal 12 is located; the rear surface of the mobile terminal 12 refers to a surface opposite to the display screen of the mobile terminal 12.
In the embodiment of the present application, if a pair of the LiFi receiver and the LiFi emitter is respectively disposed on the front surface, the back surface, and the side surface of the mobile terminal 12, when the processor 123 determines that the LiFi receiver and the LiFi emitter need to be switched, the switching can be directly performed to one of the other two pairs of the LiFi receiver and the LiFi emitter. Specifically, one of the other two pairs of LiFi receivers and LiFi emitters may be selected and switched according to the current communication orientation of the mobile terminal 12 and the changed location of the mobile terminal.
Further, the mobile terminal 12 according to the embodiment of the present application may also emit a LiFi signal, so as to implement bidirectional communication between the mobile terminal 12 and the LiFi downlink signal source 11. In a possible implementation form of the embodiment of the present application, the processor 123 may be further configured to control the LiFi emitter 122 in the mobile terminal 12, which is currently in communication, to emit the LiFi signal when the LiFi signal sending instruction is obtained.
As a possible implementation, one LiFi emitter may be provided for each LiFi receiver in the mobile terminal 12. Optionally, when the first LiFi receiver 121, the second LiFi receiver 121, and the third LiFi receiver are respectively disposed on the front side, the back side, and the side of the mobile terminal 12, the first LiFi emitter 122, the second LiFi emitter 122, and the third LiFi emitter 122 may be respectively disposed on the front side, the back side, and the side of the mobile terminal 12, and the first LiFi receiver 121 and the first LiFi emitter 122 may be integrally packaged, the second LiFi receiver 121 and the second LiFi emitter 122 may be integrally packaged, and the third LiFi receiver 121 and the third LiFi emitter 122 may be integrally packaged.
In this embodiment of the present application, the LiFi signal sending instruction may be input by a user through an input device of the mobile terminal 12, or may also be a LiFi signal sending instruction automatically generated according to a LiFi signal emitted by the LiFi downlink signal source 11, which is not limited in this embodiment of the present application. Specifically, upon acquiring the LiFi signal transmission instruction, the processor 123 may control the currently communicating LiFi emitter 122 in the mobile terminal 12 to emit the LiFi signal.
The LiFi communication control system of the mobile terminal comprises the mobile terminal and a LiFi downlink signal source, wherein a plurality of LiFi receivers of the mobile terminal are used for receiving LiFi signals transmitted by the LiFi downlink signal source, a plurality of LiFi emitters are used for transmitting the LiFi signals to the LiFi downlink signal source, a processor of the mobile terminal is used for determining the LiFi receivers and the LiFi emitters which are in current communication with the mobile terminal when a LiFi communication mode is started, and determining the current communication orientation of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are in current communication, and judging whether the position of the mobile terminal is changed, when the position of the mobile terminal changes, switching to one of other LiFi receivers and LiFi emitters according to the current communication orientation, a LiFi downlink signal source, for transmitting and receiving the LiFi signal transmitted from the mobile terminal. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers and the LiFi emitters which are communicated in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
In this application one possible implementation form, when mobile terminal's liFi communication mode was opened, can be at first according to the attribute of liFi signal source and mobile terminal's the orientation of putting, determine initial LiFi receiver as the LiFi receiver of current communication, and then when mobile terminal's position changed, can directly switch LiFi receiver and LiFi transmitter according to mobile terminal's the orientation of putting.
The following further describes the LiFi communication control system of the mobile terminal according to the embodiment of the present application with reference to fig. 6.
Fig. 6 is a schematic structural diagram of a LiFi communication control system of another mobile terminal according to an embodiment of the present disclosure.
As shown in fig. 6, based on the embodiments shown in fig. 4 and 5, the processor 123 of the mobile terminal 12 may be further configured to determine the attribute of the current LiFi downlink signal source 11 and the current orientation of the mobile terminal 12 when the LiFi communication mode is turned on, and determine the LiFi receiver 121 and the LiFi transmitter 122 of the current communication of the mobile terminal 12 according to the attribute of the current LiFi downlink signal source 11 and the current orientation of the mobile terminal 12.
The attribute of the LiFi downlink signal source 11 may include a direction in which the LiFi downlink signal source 11 emits a LiFi signal. For example, if the LiFi downlink signal source 11 is a lighting device in a room, the attribute of the LiFi downlink signal source 11 may be "from top to bottom"; if the LiFi downlink signal source 11 is another mobile terminal having the LiFi communication function, the transmission direction of the LiFi downlink signal source 11 may be any direction.
Optionally, the attribute of the LiFi downlink signal source 11 may be that the LiFi downlink signal source 11 actively sends the LiFi downlink signal source 11 to the mobile terminal 12, that is, each time the LiFi signal emitted by the LiFi downlink signal source 11 includes the attribute information corresponding to the LiFi signal, so that the processor 123 may control any one of the LiFi receivers 121 in the mobile terminal 12 to receive the LiFi signal emitted by the LiFi downlink signal source 11 when the LiFi communication mode is turned on, and further determine the attribute of the LiFi downlink signal source 11 according to the obtained LiFi signal emitted by the LiFi downlink signal source 11.
Optionally, the attribute of the LiFi downlink signal source 11 may also be obtained by actively inquiring after the mobile terminal 12 establishes a connection with the LiFi downlink signal source 11 according to its own needs. That is, when the LiFi communication mode is turned on, the processor 123 controls any one of the LiFi receivers 121 in the mobile terminal 12 to receive the LiFi signal transmitted by the LiFi downlink signal source 11, and when the LiFi signal transmitted by the LiFi downlink signal source 11 is received, the processor 123 controls the LiFi emitter 122 corresponding to the LiFi receiver 121 to transmit the LiFi signal to the LiFi downlink signal source 11, where the transmitted LiFi signal includes information inquiring about the attribute of the LiFi downlink signal source 11, so that the LiFi downlink signal source 11 can return its own attribute information to the mobile terminal 12 according to the obtained LiFi signal transmitted by the mobile terminal 12.
For example, if the LiFi downlink signal source 11 is another mobile terminal a having the LiFi communication function, the mobile terminal a may actively send the attribute information of itself through the LiFi signal when the LiFi communication mode is started, or send the attribute information of itself through the LiFi signal after obtaining the inquiry information of another mobile terminal. The attribute information sent by the mobile terminal a may include information such as a geographical location (e.g., latitude and longitude information output by a GPS component), a placement orientation (e.g., output values of an acceleration sensor and an angular velocity sensor), and the like of the mobile terminal a, so that the mobile terminal that acquires the attribute information may determine a current communication orientation according to the attribute information of the mobile terminal a.
Preferably, the current orientation of the mobile terminal 12 can be determined according to the current output value of the acceleration sensor 124 in the mobile terminal. That is, in one possible implementation form of the embodiment of the present application, the processor 123 may further be configured to:
and acquiring the current output value of the acceleration sensor 124, and determining the current placing orientation of the mobile terminal 12 according to the current output value of the acceleration sensor 124.
It should be noted that the acceleration sensor 124 in the mobile terminal 12 can detect the acceleration values of the mobile terminal 12 in three directions of X, Y, Z axes in a three-dimensional coordinate system, generally speaking, the X axis is parallel to the width direction of the display screen of the mobile terminal 12, the Y axis is parallel to the height direction of the display screen of the mobile terminal 12, and the Z axis is perpendicular to the plane where the display screen of the mobile terminal 12 is located. The output values of the acceleration sensor 124 in the mobile terminal 12 in three directions are related to the orientation of the mobile terminal 12, so that the processor 123 can determine the orientation of the mobile terminal 12 according to the current output value of the acceleration sensor 124.
Specifically, when the mobile terminal 12 is placed still, if the output values of the acceleration sensor 124 in the X-axis, Y-axis and Z-axis directions are 0, 0 and 1g, respectively, the placing orientation of the mobile terminal 12 is "display screen horizontally upward (i.e. front side upward)"; if the output values of the acceleration sensor 124 on the X axis, the Y axis and the Z axis are 0, 0 and-1 g, respectively, the orientation of the mobile terminal 12 is "display screen horizontal downward (i.e. front downward)"; if the output value of the acceleration sensor 124 in the X-axis direction is a positive value, the mobile terminal 12 is tilted to the left, and when the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are 1g, 0, and 0, respectively, the mobile terminal 12 is placed toward the left of the vertical horizontal plane in the width direction of the display screen (i.e., the front is facing the left); if the output value of the acceleration sensor 124 in the X-axis direction is a negative value, the mobile terminal 12 is tilted to the right, and when the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are-1 g, 0, and 0, respectively, the mobile terminal 12 is placed toward the right direction (i.e., the front side faces the right) of the vertical horizontal plane in the width direction of the display screen; if the output value of the acceleration sensor 124 in the Y-axis direction is a positive value, the mobile terminal 12 is tilted downward, and when the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are 0, 1g, and 0, respectively, the mobile terminal 12 is placed toward a "vertical horizontal plane in the height direction of the display screen, and the upper portion of the display screen is upward"; if the output value of the acceleration sensor 124 in the Y-axis direction is negative, the mobile terminal 12 is tilted upward, and when the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are 0, -1g, and 0, respectively, the mobile terminal 12 is placed in the direction of "the height direction of the display screen is vertical to the horizontal plane, and the upper portion of the display screen is downward".
In this embodiment of the application, after the processor 123 determines the attribute of the current LiFi downlink signal source 11 and the current placing orientation of the mobile terminal 12, the LiFi receiver and the LiFi transmitter of the current communication of the mobile terminal 12 may be determined according to the attribute of the current LiFi downlink signal source 11, the current placing orientation of the mobile terminal 12, and the positions of each LiFi receiver 121 and each LiFi transmitter in the mobile terminal 12.
For example, if the mobile terminal 12 includes two LiFi receivers 121 and two LiFi emitters 122, the first LiFi receiver 121 and the first LiFi emitter 122 are located on the front side of the mobile terminal, the second LiFi receiver 121 and the second LiFi emitter 122 are located on the back side of the mobile terminal 12, the attribute of the current LiFi downlink signal source 11 is "from left to right", the current placing orientation of the mobile terminal 12 is "front side facing left", the processor 123 may determine that the LiFi receiver and the LiFi emitter which are currently in communication are the first LiFi receiver 121 and the first LiFi emitter 122, respectively.
Further, when the LiFi communication mode is turned on, the processor 123 may further control all the LiFi receivers 121 in the mobile terminal 12 to receive the LiFi signal at the same time, and determine the initial LiFi receiver as the LiFi receiver of the current communication according to the quality of the LiFi signal received by each LiFi receiver 121. That is, in one possible implementation form of the embodiment of the present application, the processor 123 may further be configured to:
when the LiFi communication mode is started, each LiFi receiver 121 in the mobile terminal 12 is controlled to receive the LiFi signal, and the LiFi receiver and the LiFi transmitter which are currently in communication are determined according to the signal quality parameter of the LiFi signal received by each LiFi receiver 121.
It should be noted that, due to the directional transmission characteristic of the LiFi signal, when there are a plurality of LiFi receivers in the mobile terminal 12, some LiFi receivers may be blocked, so that the quality of the obtained LiFi signal is poor, and the quality of the LiFi signal received by the unblocked LiFi receiver (i.e., the LiFi receiver that can directly obtain the LiFi signal) is generally better. Therefore, the processor 123 may determine the LiFi receiver and the LiFi transmitter that are currently in communication according to the quality parameter of the LiFi signal received by each LiFi receiver in the mobile terminal 12 when the LiFi communication mode is turned on.
Specifically, when the LiFi communication mode is turned on, the processor 123 may control each LiFi receiver 121 in the mobile terminal 12 to receive the LiFi signal transmitted by the LiFi downlink signal source 11, and determine the signal quality parameter (e.g., signal strength) of the LiFi signal received by each LiFi receiver 121, so as to determine the LiFi receiver with the optimal signal quality parameter of the received LiFi signal as the LiFi receiver in current communication, for example, the LiFi receiver with the strongest signal strength of the received LiFi signal, and then determine the LiFi transmitter located at the same position as the LiFi receiver in current communication as the LiFi transmitter in current communication.
It should be noted that a time of flight (TOF) module is usually disposed in the mobile terminal, and is used to implement multiple functions. For example, the TOF has wide application in mobile phones, the TOF arranged at the front end of the mobile phone can be used for distance detection, and the 3D TOF arranged at the rear end can realize the motion sensing game function. The mobile terminal applying the TOF technology needs to open two holes on the shell of the mobile terminal to realize the emission and the reception of a light source, and if the mobile terminal also wants to apply the LiFi technology, an LED lamp needs to be arranged in the mobile terminal and holes are additionally arranged, so that the number of the holes on the shell of the mobile terminal is increased, and the integrity and the attractiveness of the shell of the mobile terminal are influenced.
To this problem, in a possible implementation form of the embodiment of the present application, the existing TOF module in the mobile terminal 12 can be used to implement the LiFi communication technology, and no additional LED lamp or opening is needed, so that the cost is saved, the integrity of the housing of the mobile terminal 12 is ensured, and the aesthetic property is improved.
Specifically, as shown in fig. 7, for a schematic structural diagram of a LiFi communication control system of another mobile terminal provided in the embodiment of the present application, the mobile terminal 12 may further include:
the first time of flight ranging TOF controller 126 is connected to the second TOF controller 126, wherein the first TOF controller 126 is connected to the first LiFi receiver 121 and the first LiFi emitter 121, respectively, and the second TOF controller 126 is connected to the second LiFi receiver 121 and the second LiFi emitter 122, respectively.
The first TOF controller 126 and the second TOF controller 126 are respectively configured to control the first LiFi emitter 122 and the second LiFi emitter 122 to emit the detection light, and perform distance detection according to the reflected light of the detection light received by the first LiFi receiver 121 and the second LiFi receiver 121, respectively, so as to generate a detection distance. Specifically, the first TOF controller and the second TOF controller 126 can obtain the detection distance by calculation and conversion according to the phase difference or time difference between the detection light ray and the reflected light ray.
That is, in the present application, both the TOF controller 126 and the processor 123 are connected to the LiFi receiver 121 and the LiFi emitter 122, respectively, so that the LiFi receiver and the TOF can share the same LiFi receiver and the LiFi emitter. Because just be provided with the TOF module originally among mobile terminal 12, the TOF module realizes the range finding through the reflection light of transmission light and receipt transmission light, the TOF module includes light transmitter and light receiver promptly, consequently, this application has proposed the light transmitter that utilizes the TOF module as the LiFi transmitter, realize mobile terminal 12 and the scheme of the LiFi communication of the downstream signal source 11 of LiFi, need not additionally to set up the LED lamp, can realize the LiFi communication, the inner space and the cost of mobile terminal 12 have been saved.
To ensure data transfer rates, in the embodiment of the present application, the first TOF controller 126 can be connected to the first LiFi receiver 121 and the first LiFi emitter 122 via I2C data lines, and the second TOF controller 126 can be connected to the second LiFi receiver 121 and the second LiFi emitter 122 via I2C data lines. The I2C data lines include a serial data line and a serial clock line, among other things, for communicating information between the TOF controller and the LiFi receiver and the LiFi transmitter.
Further, when the mobile terminal 12 includes a display screen, the processor 123 may further control the switch of the display screen of the mobile terminal 12 according to the detection distance generated by the first TOF controller 126; when the mobile terminal 12 includes a camera, the processor 123 may further control the camera to perform infrared focusing according to the detected distance generated by the second TOF controller 126.
In the embodiment of the present application, the plurality of LiFi emitters 122 in the mobile terminal 12 may be laser emitters, and the plurality of receivers 121 may be photodiodes or avalanche diodes.
The avalanche diode may be specifically an Avalanche Photo Diode (APD), which has a "multiplication" effect, and can generate a photocurrent several tens or even hundreds times larger than that of the photodiode under the action of light with the same magnitude, which is equivalent to a light amplification effect, so that the sensitivity of the LiFi receiver 121 can be greatly improved, and compared with a LiFi receiver using a photodiode, the sensitivity of the LiFi receiver 121 using the APD photodiode can be improved by more than 10 dB. Therefore, in the embodiment of the present application, it is preferable that the APD photodiode is used as the LiFi receiver 121 to receive the LiFi signal emitted from the LiFi downstream signal source 11.
Further, in one possible implementation form of the embodiment of the present application, the plurality of LiFi emitters 122 may include an LED array and a driver for controlling the depth of the LED array.
The LED array is connected with a driver for controlling the depth of the LED array, is an infrared LED array and works in an infrared frequency band.
In the present embodiment, the driver controls the depth of the LED array in the LiFi emitter 122 to achieve angular adjustment of the emitted light of the LiFi emitter 122.
It can be understood that the light emitted by the LiFi emitter 122 has directivity, i.e., light emitting angle, for example, the directivity of the infrared light is about 30 degrees, and when the distance between the LED array and the light emitting opening of the LiFi emitter 122 where the LED array is located is changed, the directivity of the light is changed. It is understood that the closer the LED array is to the light outlet of the LiFi emitter 122, the larger the angle of the emitted light of the LiFi emitter 122, and conversely, the farther the LED array is from the light outlet of the LiFi emitter 122, the smaller the angle of the emitted light of the LiFi emitter 122.
In the embodiment of the application, the depth of the LED array in the LiFi emitter 122 is adjusted by setting the driver, so that the adjustable directivity of light is realized, and the communication quality between the mobile terminal 12 and the LiFi downlink signal source 11 can be improved.
Further, in a possible implementation form of the embodiment of the present application, the plurality of LiFi receivers 121 may include a pixel array, and the processor 123 controls a portion of pixels in the pixel array to receive light, so as to implement angle adjustment of the received light.
It will be appreciated that the angle at which the LiFi receiver 121 can receive light is different when different pixels in the pixel array are used to receive light. For ease of understanding, the following detailed description is made in conjunction with fig. 8.
FIG. 8 is a diagram illustrating different pixels in a pixel array receiving light from different angles. As shown in fig. 8, when receiving the light emitted from the light source a, the pixels of the left three columns may be used to receive the light, and when receiving the light emitted from the light source b, the pixels of the right two columns may be used to receive the light.
In the embodiment of the present application, the processor 123 controls a part of the pixels in the pixel array to receive light, so as to adjust the angle of the received light, and further realize the directional controllable LiFi data transmission.
The LiFi communication control system of the mobile terminal comprises the mobile terminal and a LiFi downlink signal source, wherein a plurality of LiFi receivers of the mobile terminal are used for receiving LiFi signals transmitted by the LiFi downlink signal source, a plurality of LiFi emitters are used for transmitting the LiFi signals to the LiFi downlink signal source, a processor of the mobile terminal is used for determining the LiFi receivers and the LiFi emitters which are in current communication with the mobile terminal when a LiFi communication mode is started, and determining the current communication orientation of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are in current communication, and judging whether the position of the mobile terminal is changed, when the position of the mobile terminal changes, switching to one of other LiFi receivers and LiFi emitters according to the current communication orientation, a LiFi downlink signal source, for transmitting and receiving the LiFi signal transmitted from the mobile terminal. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers and the LiFi emitters which are communicated in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
In order to implement the above embodiments, the present application further provides a mobile terminal.
The following describes the mobile terminal provided in the embodiment of the present application in detail based on the above method and system for controlling the LiFi communication.
Fig. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
As shown in fig. 9, the mobile terminal 12 may include: a plurality of LiFi receivers 121, a plurality of LiFi emitters 122, and a processor 123.
The plurality of LiFi receivers 121 are configured to receive the LiFi signals transmitted by the LiFi downlink signal source;
a plurality of LiFi emitters 122 for emitting LiFi signals to the LiFi downlink signal source;
and the processor 123 is configured to determine, when the LiFi communication mode is turned on, a LiFi receiver and a LiFi emitter of the mobile terminal 12 that are currently in communication, determine, according to positions where the LiFi receiver 121 and the LiFi emitter 122 that are currently in communication are located, a current communication orientation of the mobile terminal 12, and determine whether the position of the mobile terminal 12 changes, and if the position of the mobile terminal 12 changes, switch the LiFi receiver and the LiFi emitter of the current communication to one of the other LiFi receivers 121 and the LiFi emitters 122 according to the current communication orientation.
The positions of the LiFi receiver 121 and the LiFi emitter 122 in current communication refer to positions of the LiFi receiver 121 and the LiFi emitter 122 in current communication in the mobile terminal 12, such as on the front side of the mobile terminal 12, on the back side of the mobile terminal 12, and the positions of the LiFi receiver 121 and the LiFi emitter 122 in current communication in the mobile terminal are the same. The current communication orientation of the mobile terminal 12 refers to a direction in which the LiFi receiver 121 currently communicating with the mobile terminal 12 receives the LiFi signal, or may refer to a direction in which the LiFi emitter 122 currently communicating with the mobile terminal 12 emits the LiFi signal. In practical use, any one of the direction in which the LiFi receiver 121 in current communication receives the LiFi signal and the direction in which the LiFi emitter 122 in current communication emits the LiFi signal can be selected as needed, so as to indicate the current communication orientation of the mobile terminal, which is not limited in the embodiment of the present application.
In this embodiment of the application, a plurality of LiFi emitters 122 of a plurality of LiFi receivers 121 may be disposed in the mobile terminal 12, so that when the orientation of the mobile terminal 12 is different, different LiFi receivers 121 are selected to receive the LiFi signal transmitted by the LiFi downlink signal source, and different LiFi emitters 122 are selected to transmit the LiFi signal to the downlink signal source, thereby improving the reception quality of the mobile terminal 12 on the LiFi signal. The downlink signal source may be other mobile terminals.
It should be noted that the number of the LiFi receivers 121 in the mobile terminal 12 of the embodiment of the present application is the same as the number of the LiFi emitters 122, and the LiFi receivers 121 and the LiFi emitters 122 are in one-to-one correspondence and disposed at the same position of the mobile terminal 12. For example, one LiFi receiver 121 and one LiFi emitter 122 may be disposed at the front end of the mobile terminal 12, and one LiFi receiver 121 and one LiFi emitter 122 may be disposed at the back end of the mobile terminal 12. Wherein the LiFi receiver 121 and the LiFi emitter 122 at the same position can be integrally packaged.
As a possible implementation manner, when the LiFi communication mode of the mobile terminal 12 is started, the processor 123 in the mobile terminal 12 may obtain the use states of each LiFi receiver 121 and each LiFi emitter 122 in the mobile terminal 12 from the system information of the mobile terminal 12, and further determine the LiFi receiver 121 and the LiFi emitter 122 currently communicating in the mobile terminal 12 according to the use states of each LiFi receiver 121 and each LiFi emitter 122, that is, the LiFi receiver and the LiFi emitter whose use states are "in use" are determined as the LiFi receiver 121 and the LiFi emitter 122 currently communicating in the mobile terminal. The LiFi receiver 121 and the LiFi emitter 122 currently communicating with the mobile terminal 12 are typically a pair of the LiFi receiver and the LiFi emitter at the same location of the mobile terminal 12.
In the embodiment of the present application, after the processor 123 determines that the LiFi receiver 121 and the LiFi transmitter 122 of the mobile terminal 12 are currently in communication, the current communication orientation of the mobile terminal 12 may be determined according to the positions of the LiFi receiver 121 and the LiFi transmitter 122 of the mobile terminal 12 in communication and the current placing orientation of the mobile terminal 12.
For example, assuming that the determined positions of the LiFi receiver 121 and the LiFi transmitter 122 in the current communication are the front of the mobile terminal 12, selecting the direction in which the LiFi receiver 121 in the current communication receives the LiFi signal to represent the current communication orientation of the mobile terminal 12, and if the current orientation of the mobile terminal 12 is right side up, determining that the current communication orientation of the mobile terminal 12 is from top to bottom; if the current placing direction of the mobile terminal 12 is front-down, it can be determined that the current communication of the mobile terminal 12 is from bottom to top; if the current placing direction of the mobile terminal 12 is front side facing left, it can be determined that the current communication direction of the mobile terminal 12 is from left to right; if the current orientation of the mobile terminal 12 is right-side, it may be determined that the current communication orientation of the mobile terminal 12 is right-to-left.
Alternatively, the current orientation of the mobile terminal 12 may be determined according to the output value of the acceleration sensor in the mobile terminal 12.
It can be understood that, if the position of the mobile terminal 12 changes, for example, the orientation of the mobile terminal 12 changes, the LiFi receiver 121 and the LiFi transmitter 122 in the mobile terminal 12 that are currently in communication may be blocked, the LiFi signal transmitted by the LiFi downlink signal source cannot be received, the LiFi signal cannot be transmitted to the LiFi downlink signal source, or the quality of receiving and transmitting the LiFi signal is reduced, so that the quality of the LiFi communication is affected.
In the embodiment of the present application, the processor 123 may detect whether the position of the mobile terminal 12 changes in real time, for example, whether the orientation of the mobile terminal 12 changes, and then select a suitable LiFi receiver and a suitable LiFi emitter to receive and emit the LiFi signal when the position of the mobile terminal 12 changes.
As a possible implementation manner, whether the position of the mobile terminal 12 has changed or not may be determined according to the degree of change in the output value of the acceleration sensor in the mobile terminal 12. That is, in a possible implementation form of the embodiment of the present application, referring to fig. 10, the mobile terminal 12 may further include: an acceleration sensor 124;
the processor 123 is further configured to acquire output values of the acceleration sensor 124 at a first time and a second time, respectively, where the first time is a time adjacent to the second time and at which the output value of the acceleration sensor 124 was acquired last time, and determine whether the position of the mobile terminal 123 has changed according to a change value of the output value of the acceleration sensor 124 between the first time and the second time.
The second time may be the current time; the first time may be a time at which the output value of the acceleration sensor is acquired in the previous time, which is adjacent to the second time.
It should be noted that the acceleration sensor 124 in the mobile terminal 12 can detect the acceleration values of the mobile terminal 12 in three directions of X, Y, Z axes in a three-dimensional coordinate system, generally speaking, the X axis is parallel to the width direction of the display screen of the mobile terminal 12, the Y axis is parallel to the height direction of the display screen of the mobile terminal 12, and the Z axis is perpendicular to the plane where the display screen of the mobile terminal 12 is located. When the orientation of the mobile terminal 12 changes, the output values of the acceleration sensor 124 in three directions of the mobile terminal 12 also change, so that whether the position of the mobile terminal 12 changes can be determined according to the change value of the output value of the acceleration sensor 124 between two times.
Specifically, when the mobile terminal 12 is placed still, if the placement orientation of the mobile terminal 12 is "display screen horizontal up", the output values of the acceleration sensor 124 in the X-axis, Y-axis and Z-axis directions are 0, 0 and 1g, respectively; if the orientation of the mobile terminal 12 is "display screen horizontal downward", the output values of the acceleration sensor 124 on the X axis, the Y axis and the Z axis are 0, 0 and-1 g respectively; if the mobile terminal 12 is tilted to the left, the output value of the acceleration sensor 124 in the X-axis direction is a positive value, and when the mobile terminal 12 is placed in the orientation "the horizontal plane perpendicular to the width direction of the display screen is tilted to the left", the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are 1g, 0, respectively; if the mobile terminal 12 is tilted to the right, the output value of the acceleration sensor 124 in the X-axis direction is a negative value, and when the mobile terminal 12 is placed in the orientation "the width direction of the display screen is perpendicular to the horizontal plane to the right", the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are-1 g, 0, and 0, respectively; if the mobile terminal 12 is tilted downward, the output value of the acceleration sensor 124 in the Y-axis direction is a positive value, and when the mobile terminal 12 is placed in the orientation "the height direction of the display screen is vertical to the horizontal plane, and the upper portion of the display screen is upward", the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are 0, 1g, and 0, respectively; if the mobile terminal 12 is tilted upward, the output value of the acceleration sensor 124 in the Y-axis direction is negative, and when the mobile terminal 12 is placed in the "vertical horizontal plane in the height direction of the display screen with the upper portion of the display screen downward", the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are 0, -1g, and 0, respectively.
In this embodiment, the processor 123 may determine a change value of the output value of the acceleration sensor 124 in each direction between the first time and the second time according to the output value of the acceleration sensor 124 in each direction at the first time and the output value of the acceleration sensor 124 in each direction at the second time, and further determine whether the position of the mobile terminal 12 is changed at the second time and what kind of change is occurred according to the change value of the output value of the acceleration sensor 124 in each direction.
For example, if the output values of the acceleration sensor 124 in the X-axis, Y-axis, and Z-axis directions at the first time are 0, and 1g, respectively, that is, the orientation of the mobile terminal 12 in the first time is "display screen horizontal up", and the output values in the X-axis, Y-axis, and Z-axis directions at the second time are 0, and-1 g, respectively, the processor 123 may determine that the position of the mobile terminal 12 has changed at the second time, that is, the orientation of the mobile terminal 12 in the second time has changed to "display screen horizontal down".
It should be noted that the first time and the second time are adjacent times of twice acquiring the output value of the acceleration sensor 124, and in actual use, a time interval between the first time and the second time (i.e., a frequency at which the processor 123 acquires the output value of the acceleration sensor 124) may be preset according to actual needs and performance of the mobile terminal 12, which is not limited in this embodiment of the application. For example, it may be 1 second, 5 seconds, or the like.
Furthermore, the mobile terminal according to the embodiment of the present application may further include an angular velocity sensor, and the angular velocity sensor may detect rotation information of the mobile terminal in each direction, so that whether the position of the mobile terminal is changed may be determined according to an output value of the angular velocity sensor. That is, in a possible implementation form of the embodiment of the present application, referring to fig. 10, the mobile terminal 12 may further include: an angular velocity sensor 125;
the processor 123 is further configured to obtain output values of the angular velocity sensor 125 in the mobile terminal 12 at a first time and a second time, where the first time is a time adjacent to the second time and at which the output value of the angular velocity sensor 125 was obtained last time, and determine whether the position of the mobile terminal 12 has changed according to a change value of the output value of the angular velocity sensor 125 between the first time and the second time.
The angular velocity sensor is also called a gyroscope, and can measure the rotation angular velocity of the physical quantity during deflection and inclination. In the mobile terminal, the angular velocity sensor can well measure the actions of rotation and deflection, so that the actual actions of a user can be accurately analyzed and judged. The output value of the angular velocity sensor of the mobile terminal may include motion information of the mobile terminal in three dimensions in a three-dimensional space, where the three dimensions are the three directions of the X axis, the Y axis, and the Z axis as described above.
In the embodiment of the present application, the change value of the output value of the angular velocity sensor 125 in each direction between the first time and the second time may be determined according to the output value of the angular velocity sensor 125 in each direction at the first time and the output value of the angular velocity sensor 125 in each direction at the second time, and then whether the position of the mobile terminal 12 changes at the second time and what kind of change has occurred may be determined according to the change value of the output value of the angular velocity sensor 125 in each direction.
In the embodiment of the present application, if it is determined that the position of the mobile terminal 12 is changed, the LiFi receiver 121 and the LiFi emitter 122 which are currently in communication may be switched to one of the other LiFi receivers and LiFi emitters according to the changed position of the mobile terminal 12 and the current communication orientation of the mobile terminal 12.
For example, if the positions of the LiFi receiver 121 and the LiFi transmitter 122 currently communicating in the mobile terminal 12 are the front side of the mobile terminal 12 (i.e. the side where the display screen is located), the current communication direction is from top to bottom, and the changed positions of the mobile terminal 12 are: the LiFi receiver 121 and the LiFi emitter 122 which are currently in communication can be switched to the LiFi receiver 121 and the LiFi emitter 122 which are on the back side (i.e. the side opposite to the display screen) of the mobile terminal when the display screen is placed towards the horizontal downward direction.
Preferably, the LiFi receiver and the LiFi emitter can be arranged on the front side, the back side and the side face of the mobile terminal respectively, so that the switching requirement of LiFi communication can be met. That is, in a possible implementation form of the embodiment of the present application, referring to fig. 11, the mobile terminal 12 may include: a first LiFi receiver 121 and a first LiFi emitter 122, a second LiFi receiver 121 and a second LiFi emitter 122, a third LiFi receiver 121 and a third LiFi emitter 122, wherein the first LiFi receiver 121 and the first LiFi emitter 122 are located on the front side of the mobile terminal 12, the second LiFi receiver 121 and the second LiFi emitter 122 are located on the back side of the mobile terminal 12, and the third LiFi receiver 121 and the third LiFi emitter 122 are located on the side of the mobile terminal 12.
The front side of the mobile terminal 12 refers to a side where a display screen of the mobile terminal 12 is located; the rear surface of the mobile terminal 12 refers to a surface opposite to the display screen of the mobile terminal 12.
In the embodiment of the present application, if a pair of the LiFi receiver and the LiFi emitter is respectively disposed on the front surface, the back surface, and the side surface of the mobile terminal 12, when the processor 123 determines that the LiFi receiver and the LiFi emitter need to be switched, the switching can be directly performed to one of the other two pairs of the LiFi receiver and the LiFi emitter. Specifically, one of the other two pairs of LiFi receivers and LiFi emitters may be selected and switched according to the current communication orientation of the mobile terminal 12 and the changed location of the mobile terminal.
Further, the mobile terminal 12 according to the embodiment of the present application may also emit a LiFi signal, so as to implement bidirectional communication between the mobile terminal 12 and the LiFi downlink signal source. In a possible implementation form of the embodiment of the present application, the processor 123 may be further configured to control the LiFi emitter 122 in the mobile terminal 12, which is currently in communication, to emit the LiFi signal when the LiFi signal sending instruction is obtained.
As a possible implementation, one LiFi emitter may be provided for each LiFi receiver in the mobile terminal 12. Optionally, when the first LiFi receiver 121, the second LiFi receiver 121, and the third LiFi receiver are respectively disposed on the front side, the back side, and the side of the mobile terminal 12, the first LiFi emitter 122, the second LiFi emitter 122, and the third LiFi emitter 122 may be respectively disposed on the front side, the back side, and the side of the mobile terminal 12, and the first LiFi receiver 121 and the first LiFi emitter 122 may be integrally packaged, the second LiFi receiver 121 and the second LiFi emitter 122 may be integrally packaged, and the third LiFi receiver 121 and the third LiFi emitter 122 may be integrally packaged.
In this embodiment of the present application, the LiFi signal sending instruction may be input by a user through an input device of the mobile terminal 12, or may also be a LiFi signal sending instruction automatically generated according to a LiFi signal transmitted by a LiFi downlink signal source, which is not limited in this embodiment of the present application. Specifically, upon acquiring the LiFi signal transmission instruction, the processor 123 may control the currently communicating LiFi emitter 122 in the mobile terminal 12 to emit the LiFi signal.
The embodiment of the application provides a mobile terminal, including a plurality of LiFi receivers and treater, wherein, a plurality of LiFi receivers, a LiFi signal for receiving the downstream signal source transmission of LiFi, a plurality of LiFi emitters are used for transmitting the LiFi signal to the downstream signal source of LiFi, a processor, when LiFi communication mode opens, determine the LiFi receiver and the LiFi emitter of mobile terminal's current communication, and the position at LiFi receiver and LiFi emitter place according to current communication, determine mobile terminal's current communication orientation, and judge whether mobile terminal's position changes, when mobile terminal's position changes, according to current communication orientation switch to one of other LiFi receivers and LiFi emitter. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers which communicate in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
In this application one possible implementation form, when mobile terminal's liFi communication mode was opened, can be at first according to the attribute of liFi signal source and mobile terminal's the orientation of putting, determine initial LiFi receiver as the LiFi receiver of current communication, and then when mobile terminal's position changed, can directly switch LiFi receiver and LiFi transmitter according to mobile terminal's the orientation of putting.
The following describes the mobile terminal provided in the embodiment of the present application with reference to fig. 11.
Fig. 11 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
As shown in fig. 11, based on the embodiments shown in fig. 9 and 10, the processor 123 of the mobile terminal 12 may be further configured to determine the attribute of the current LiFi downlink signal source 11 and the current orientation of the mobile terminal 12 when the LiFi communication mode is turned on, and determine the LiFi receiver 121 and the LiFi transmitter 122 of the current communication of the mobile terminal 12 according to the attribute of the current LiFi downlink signal source 11 and the current orientation of the mobile terminal 12.
The attribute of the LiFi downlink signal source may include a direction in which the LiFi downlink signal source emits the LiFi signal. For example, if the downstream signal source of the LiFi is a lighting device in a room, the downstream signal source of the LiFi may be "from top to bottom"; if the LiFi downlink signal source is other mobile terminals with the LiFi communication function, the transmission direction of the LiFi downlink signal source may be any direction.
Optionally, the attribute of the LiFi downlink signal source may be that the LiFi downlink signal source actively sends the LiFi downlink signal source to the mobile terminal 12, that is, the LiFi signal emitted by the LiFi downlink signal source each time may include the attribute information corresponding thereto, so that the processor 123 may control any one of the LiFi receivers 121 in the mobile terminal 12 to receive the LiFi signal emitted by the LiFi downlink signal source when the LiFi communication mode is turned on, and further determine the attribute of the LiFi downlink signal source according to the obtained LiFi signal emitted by the LiFi downlink signal source.
Optionally, the attribute of the LiFi downlink signal source may also be obtained by actively inquiring after the mobile terminal 12 establishes a connection with the LiFi downlink signal source according to its own needs. That is, when the LiFi communication mode is started, the processor 123 controls any one of the LiFi receivers 121 in the mobile terminal 12 to receive the LiFi signal transmitted by the LiFi downlink signal source, and when the LiFi signal transmitted by the LiFi downlink signal source is received, the processor 123 controls the LiFi emitter 122 corresponding to the LiFi receiver 121 to transmit the LiFi signal to the LiFi downlink signal source, where the transmitted LiFi signal includes information inquiring about the attribute of the LiFi downlink signal source, so that the LiFi downlink signal source can return its attribute information to the mobile terminal 12 according to the obtained LiFi signal transmitted by the mobile terminal 12.
For example, if the downlink signal source of the LiFi is another mobile terminal a having the LiFi communication function, the mobile terminal a may actively send the attribute information of itself out through the LiFi signal when the LiFi communication mode is started, or send the attribute information of itself out through the LiFi signal after obtaining the inquiry information of another mobile terminal. The attribute information sent by the mobile terminal a may include information such as a geographical location (e.g., latitude and longitude information output by a GPS component), a placement orientation (e.g., output values of an acceleration sensor and an angular velocity sensor), and the like of the mobile terminal a, so that the mobile terminal that acquires the attribute information may determine a current communication orientation according to the attribute information of the mobile terminal a.
Preferably, the current orientation of the mobile terminal 12 can be determined according to the current output value of the acceleration sensor 124 in the mobile terminal. That is, in one possible implementation form of the embodiment of the present application, the processor 123 may further be configured to:
and acquiring the current output value of the acceleration sensor 124, and determining the current placing orientation of the mobile terminal 12 according to the current output value of the acceleration sensor 124.
It should be noted that the acceleration sensor 124 in the mobile terminal 12 can detect the acceleration values of the mobile terminal 12 in three directions of X, Y, Z axes in a three-dimensional coordinate system, generally speaking, the X axis is parallel to the width direction of the display screen of the mobile terminal 12, the Y axis is parallel to the height direction of the display screen of the mobile terminal 12, and the Z axis is perpendicular to the plane where the display screen of the mobile terminal 12 is located. The output values of the acceleration sensor 124 in the mobile terminal 12 in three directions are related to the orientation of the mobile terminal 12, so that the processor 123 can determine the orientation of the mobile terminal 12 according to the current output value of the acceleration sensor 124.
Specifically, when the mobile terminal 12 is placed still, if the output values of the acceleration sensor 124 in the X-axis, Y-axis and Z-axis directions are 0, 0 and 1g, respectively, the placing orientation of the mobile terminal 12 is "display screen horizontally upward (i.e. front side upward)"; if the output values of the acceleration sensor 124 on the X axis, the Y axis and the Z axis are 0, 0 and-1 g, respectively, the orientation of the mobile terminal 12 is "display screen horizontal downward (i.e. front downward)"; if the output value of the acceleration sensor 124 in the X-axis direction is a positive value, the mobile terminal 12 is tilted to the left, and when the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are 1g, 0, and 0, respectively, the mobile terminal 12 is placed toward the left of the vertical horizontal plane in the width direction of the display screen (i.e., the front is facing the left); if the output value of the acceleration sensor 124 in the X-axis direction is a negative value, the mobile terminal 12 is tilted to the right, and when the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are-1 g, 0, and 0, respectively, the mobile terminal 12 is placed toward the right direction (i.e., the front side faces the right) of the vertical horizontal plane in the width direction of the display screen; if the output value of the acceleration sensor 124 in the Y-axis direction is a positive value, the mobile terminal 12 is tilted downward, and when the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are 0, 1g, and 0, respectively, the mobile terminal 12 is placed toward a "vertical horizontal plane in the height direction of the display screen, and the upper portion of the display screen is upward"; if the output value of the acceleration sensor 124 in the Y-axis direction is negative, the mobile terminal 12 is tilted upward, and when the output values of the acceleration sensor 124 in the X-axis, the Y-axis, and the Z-axis are 0, -1g, and 0, respectively, the mobile terminal 12 is placed in the direction of "the height direction of the display screen is vertical to the horizontal plane, and the upper portion of the display screen is downward".
In this embodiment of the application, after the processor 123 determines the attribute of the current LiFi downlink signal source and the current placing orientation of the mobile terminal 12, the LiFi receiver and the LiFi transmitter of the current communication of the mobile terminal 12 may be determined according to the attribute of the current LiFi downlink signal source, the current placing orientation of the mobile terminal 12, and the positions of each LiFi receiver 121 and each LiFi transmitter in the mobile terminal 12.
For example, if the mobile terminal 12 includes two LiFi receivers 121 and two LiFi emitters 122, the first LiFi receiver 121 and the first LiFi emitter 122 are located on the front side of the mobile terminal, the second LiFi receiver 121 and the second LiFi emitter 122 are located on the back side of the mobile terminal 12, the attribute of the current LiFi downlink signal source is "from left to right", the current placing orientation of the mobile terminal 12 is "front side facing left", the processor 123 may determine that the LiFi receiver and the LiFi emitter which are currently in communication are the first LiFi receiver 121 and the first LiFi emitter 122, respectively.
Further, when the LiFi communication mode is turned on, the processor 123 may further control all the LiFi receivers 121 in the mobile terminal 12 to receive the LiFi signal at the same time, and determine the initial LiFi receiver as the LiFi receiver of the current communication according to the quality of the LiFi signal received by each LiFi receiver 121. That is, in one possible implementation form of the embodiment of the present application, the processor 123 may further be configured to:
when the LiFi communication mode is started, each LiFi receiver 121 in the mobile terminal 12 is controlled to receive the LiFi signal, and the LiFi receiver and the LiFi transmitter which are currently in communication are determined according to the signal quality parameter of the LiFi signal received by each LiFi receiver 121.
It should be noted that, due to the directional transmission characteristic of the LiFi signal, when there are a plurality of LiFi receivers in the mobile terminal 12, some LiFi receivers may be blocked, so that the quality of the obtained LiFi signal is poor, and the quality of the LiFi signal received by the unblocked LiFi receiver (i.e., the LiFi receiver that can directly obtain the LiFi signal) is generally better. Therefore, the processor 123 may determine the LiFi receiver and the LiFi transmitter that are currently in communication according to the quality parameter of the LiFi signal received by each LiFi receiver in the mobile terminal 12 when the LiFi communication mode is turned on.
Specifically, when the LiFi communication mode is turned on, the processor 123 may control each LiFi receiver 121 in the mobile terminal 12 to receive the LiFi signal transmitted by the LiFi downlink signal source, and determine the signal quality parameters (such as signal strength) of the LiFi signal received by each LiFi receiver 121, so as to determine the LiFi receiver with the optimal signal quality parameter of the received LiFi signal as the LiFi receiver in current communication, for example, the LiFi receiver with the strongest signal strength of the received LiFi signal, and then determine the LiFi transmitter located at the same position as the LiFi receiver in current communication as the LiFi transmitter in current communication.
It should be noted that a time of flight (TOF) module is usually disposed in the mobile terminal, and is used to implement multiple functions. For example, the TOF has wide application in mobile phones, the TOF arranged at the front end of the mobile phone can be used for distance detection, and the 3D TOF arranged at the rear end can realize the motion sensing game function. The mobile terminal applying the TOF technology needs to open two holes on the shell of the mobile terminal to realize the emission and the reception of a light source, and if the mobile terminal also wants to apply the LiFi technology, an LED lamp needs to be arranged in the mobile terminal and holes are additionally arranged, so that the number of the holes on the shell of the mobile terminal is increased, and the integrity and the attractiveness of the shell of the mobile terminal are influenced.
To this problem, in a possible implementation form of the embodiment of the present application, the existing TOF module in the mobile terminal 12 can be used to implement the LiFi communication technology, and no additional LED lamp or opening is needed, so that the cost is saved, the integrity of the housing of the mobile terminal 12 is ensured, and the aesthetic property is improved.
Specifically, as shown in fig. 12, for a schematic structural diagram of another mobile terminal provided in the embodiment of the present application, the mobile terminal 12 may further include:
the first time of flight ranging TOF controller 126 is connected to the second TOF controller 126, wherein the first TOF controller 126 is connected to the first LiFi receiver 121 and the first LiFi emitter 121, respectively, and the second TOF controller 126 is connected to the second LiFi receiver 121 and the second LiFi emitter 122, respectively.
The first TOF controller 126 and the second TOF controller 126 are respectively configured to control the first LiFi emitter 122 and the second LiFi emitter 122 to emit the detection light, and perform distance detection according to the reflected light of the detection light received by the first LiFi receiver 121 and the second LiFi receiver 121, respectively, so as to generate a detection distance. Specifically, the first TOF controller and the second TOF controller 126 can obtain the detection distance by calculation and conversion according to the phase difference or time difference between the detection light ray and the reflected light ray.
That is, in the present application, both the TOF controller 126 and the processor 123 are connected to the LiFi receiver 121 and the LiFi emitter 122, respectively, so that the LiFi receiver and the TOF can share the same LiFi receiver and the LiFi emitter. Because just be provided with the TOF module originally among mobile terminal 12, the TOF module realizes the range finding through the reflection light of transmission light and receipt transmission light, the TOF module includes light transmitter and light receiver promptly, consequently, this application has proposed the light transmitter that utilizes the TOF module as the LiFi transmitter, realize mobile terminal 12 and the scheme of the LiFi communication of the downstream signal source of LiFi, need not additionally to set up the LED lamp, can realize the LiFi communication, the inner space and the cost of mobile terminal 12 have been saved.
To ensure data transfer rates, in the embodiment of the present application, the first TOF controller 126 can be connected to the first LiFi receiver 121 and the first LiFi emitter 122 via I2C data lines, and the second TOF controller 126 can be connected to the second LiFi receiver 121 and the second LiFi emitter 122 via I2C data lines. The I2C data lines include a serial data line and a serial clock line, among other things, for communicating information between the TOF controller and the LiFi receiver and the LiFi transmitter.
Further, when the mobile terminal 12 includes a display screen, the processor 123 may further control the switch of the display screen of the mobile terminal 12 according to the detection distance generated by the first TOF controller 126; when the mobile terminal 12 includes a camera, the processor 123 may further control the camera to perform infrared focusing according to the detected distance generated by the second TOF controller 126.
In the embodiment of the present application, the plurality of LiFi emitters 122 in the mobile terminal 12 may be laser emitters, and the plurality of receivers 121 may be photodiodes or avalanche diodes.
The avalanche diode may be specifically an Avalanche Photo Diode (APD), which has a "multiplication" effect, and can generate a photocurrent several tens or even hundreds times larger than that of the photodiode under the action of light with the same magnitude, which is equivalent to a light amplification effect, so that the sensitivity of the LiFi receiver 121 can be greatly improved, and compared with a LiFi receiver using a photodiode, the sensitivity of the LiFi receiver 121 using the APD photodiode can be improved by more than 10 dB. Therefore, in the embodiment of the present application, it is preferable that the APD photodiode be used as the LiFi receiver 121 to receive the LiFi signal emitted from the LiFi downstream signal source.
Further, in one possible implementation form of the embodiment of the present application, the plurality of LiFi emitters 122 may include an LED array and a driver for controlling the depth of the LED array.
The LED array is connected with a driver for controlling the depth of the LED array, is an infrared LED array and works in an infrared frequency band.
In the present embodiment, the driver controls the depth of the LED array in the LiFi emitter 122 to achieve angular adjustment of the emitted light of the LiFi emitter 122.
It can be understood that the light emitted by the LiFi emitter 122 has directivity, i.e., light emitting angle, for example, the directivity of the infrared light is about 30 degrees, and when the distance between the LED array and the light emitting opening of the LiFi emitter 122 where the LED array is located is changed, the directivity of the light is changed. It is understood that the closer the LED array is to the light outlet of the LiFi emitter 122, the larger the angle of the emitted light of the LiFi emitter 122, and conversely, the farther the LED array is from the light outlet of the LiFi emitter 122, the smaller the angle of the emitted light of the LiFi emitter 122.
In the embodiment of the application, the depth of the LED array in the LiFi emitter 122 is adjusted by setting the driver, so that the adjustable directivity of light is realized, and the communication quality between the mobile terminal 12 and the LiFi downlink signal source can be improved.
Further, in a possible implementation form of the embodiment of the present application, the plurality of LiFi receivers 121 may include a pixel array, and the processor 123 controls a portion of pixels in the pixel array to receive light, so as to implement angle adjustment of the received light.
It will be appreciated that the angle at which the LiFi receiver 121 can receive light is different when different pixels in the pixel array are used to receive light. For ease of understanding, the following detailed description is made in conjunction with fig. 8.
FIG. 8 is a diagram illustrating different pixels in a pixel array receiving light from different angles. As shown in fig. 8, when receiving the light emitted from the light source a, the pixels of the left three columns may be used to receive the light, and when receiving the light emitted from the light source b, the pixels of the right two columns may be used to receive the light.
In the embodiment of the present application, the processor 123 controls a part of the pixels in the pixel array to receive light, so as to adjust the angle of the received light, and further realize the directional controllable LiFi data transmission.
The embodiment of the application provides a mobile terminal, including a plurality of LiFi receivers and treater, wherein, a plurality of LiFi receivers, a LiFi signal for receiving the downstream signal source transmission of LiFi, a plurality of LiFi emitters are used for transmitting the LiFi signal to the downstream signal source of LiFi, a processor, when LiFi communication mode opens, determine the LiFi receiver and the LiFi emitter of mobile terminal's current communication, and the position at LiFi receiver and LiFi emitter place according to current communication, determine mobile terminal's current communication orientation, and judge whether mobile terminal's position changes, when mobile terminal's position changes, according to current communication orientation switch to one of other LiFi receivers and LiFi emitter. Therefore, the plurality of LiFi receivers and the LiFi emitters are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers which communicate in the mobile terminal are automatically switched, so that the influence of directional transmission of LiFi on the LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and the user experience is improved.
In order to implement the above embodiments, the present application further proposes a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the LiFi communication control method of the mobile terminal as proposed in the foregoing fig. 1 or fig. 2 embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (34)

1. An optical fidelity LiFi communication control method of a mobile terminal is characterized by comprising the following steps:
when a LiFi communication mode is started, determining a LiFi receiver and a LiFi emitter of a mobile terminal in current communication, wherein the mobile terminal comprises a plurality of LiFi receivers and a plurality of LiFi emitters, and the LiFi receivers and the LiFi emitters are in one-to-one correspondence;
determining the current communication orientation of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are in current communication;
judging whether the position of the mobile terminal changes or not;
and if the position of the mobile terminal is changed, switching the LiFi receiver and the LiFi emitter which are in current communication to one of other LiFi receivers and other LiFi emitters according to the current communication orientation.
2. The LiFi communication control method of the mobile terminal according to claim 1, wherein the switching the currently communicating LiFi receiver and LiFi emitter to one of the other LiFi receiver and LiFi emitter according to the current communication orientation comprises:
if the LiFi receiver of the current communication is a first LiFi receiver, and the LiFi emitter of the current communication is a first LiFi emitter, switching from the first LiFi receiver to a second LiFi receiver or a third LiFi receiver, and switching from the first LiFi emitter to a second LiFi emitter or a third LiFi emitter, wherein the first LiFi receiver and the first LiFi emitter are located on the front side of the mobile terminal, the second LiFi receiver and the second LiFi emitter are located on the back side of the mobile terminal, and the third LiFi receiver and the third LiFi emitter are located on the side face of the mobile terminal;
if the LiFi receiver of the current communication is the second LiFi receiver and the LiFi emitter of the current communication is the second LiFi emitter, switching from the second LiFi receiver to the first LiFi receiver or the third LiFi receiver and switching from the second LiFi emitter to the first LiFi emitter or the third LiFi emitter;
and if the currently communicated LiFi receiver is the third LiFi receiver and the currently communicated LiFi emitter is the third LiFi emitter, switching from the third LiFi receiver to the first LiFi receiver or the second LiFi receiver, and switching from the third LiFi emitter to the first LiFi emitter or the second LiFi emitter.
3. The LiFi communication control method of a mobile terminal according to claim 1, wherein the determining the LiFi receiver and the LiFi transmitter of the current communication of the mobile terminal when the LiFi communication mode is turned on comprises:
when the LiFi communication mode is started, determining the attribute of the current LiFi downlink signal source and the current placing direction of the mobile terminal;
and determining a LiFi receiver and a LiFi emitter of the mobile terminal, which are in current communication, according to the attribute of the current LiFi downlink signal source and the current placing direction of the mobile terminal.
4. The LiFi communication control method of a mobile terminal according to claim 1, wherein the determining the LiFi receiver and the LiFi transmitter of the current communication of the mobile terminal when the LiFi communication mode is turned on comprises:
when the LiFi communication mode is started, controlling each LiFi receiver in the mobile terminal to receive a LiFi signal;
and determining the LiFi receiver and the LiFi emitter which are communicated currently according to the signal quality parameters of the LiFi signals received by each LiFi receiver.
5. The LiFi communication control method of the mobile terminal according to claim 3, wherein the determining the current orientation of the mobile terminal comprises:
acquiring a current output value of an acceleration sensor in the mobile terminal;
determining the current placing direction of the mobile terminal according to the current output value of the acceleration sensor;
the judging whether the position of the mobile terminal changes includes:
acquiring output values of the acceleration sensor at a first moment and a second moment respectively, wherein the first moment is a moment adjacent to the second moment and at which the output value of the acceleration sensor is acquired last time;
and judging whether the position of the mobile terminal changes or not according to the change value of the output value of the acceleration sensor between the first time and the second time.
6. The LiFi communication control method of the mobile terminal according to claim 1, wherein the determining whether the location of the mobile terminal is changed comprises:
acquiring output values of an angular velocity sensor in the mobile terminal at a first time and a second time, wherein the first time is a time adjacent to the second time and at which the output value of the angular velocity sensor is acquired last time;
and judging whether the position of the mobile terminal changes or not according to the change value of the output value of the angular velocity sensor between the first time and the second time.
7. The LiFi communication control method of the mobile terminal according to claim 1, further comprising:
and when a LiFi signal sending instruction is acquired, controlling a LiFi emitter in the mobile terminal to transmit a LiFi signal, wherein the LiFi emitter is currently in communication.
8. An optical fidelity, LiFi, communication control apparatus of a mobile terminal, comprising:
the device comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining a LiFi receiver and a LiFi emitter which are in current communication of a mobile terminal when a LiFi communication mode is started, the mobile terminal comprises a plurality of LiFi receivers and a plurality of LiFi emitters, and the LiFi receivers and the LiFi emitters are in one-to-one correspondence;
the second determining module is used for determining the current communication orientation of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are in current communication;
the judging module is used for judging whether the position of the mobile terminal changes or not;
and the switching module is used for switching the LiFi receiver and the LiFi emitter which are in current communication to one of other LiFi receivers according to the current communication direction if the position of the mobile terminal is changed.
9. A LiFi communication control system of a mobile terminal, comprising:
a mobile terminal, the mobile terminal comprising:
the LiFi receivers are used for receiving LiFi signals transmitted by the LiFi downlink signal source;
the plurality of LiFi emitters are used for emitting LiFi signals to the LiFi downlink signal source;
the processor is used for determining a LiFi receiver and a LiFi emitter which are communicated currently of the mobile terminal when a LiFi communication mode is started, determining a current communication direction of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are communicated currently, judging whether the position of the mobile terminal is changed or not, and switching the LiFi receiver and the LiFi emitter which are communicated currently to one of other LiFi receivers and LiFi emitters according to the current communication direction if the position of the mobile terminal is changed;
and the LiFi downlink signal source is used for transmitting the LiFi signal to the mobile terminal and receiving the LiFi signal transmitted by the mobile terminal.
10. The LiFi communication control system of the mobile terminal according to claim 9, wherein the mobile terminal comprises: first LiFi receiver and first LiFi emitter, second LiFi receiver and second LiFi emitter, third LiFi receiver and third LiFi emitter, wherein, first LiFi receiver with first LiFi emitter is located mobile terminal's front, second LiFi receiver with the second LiFi emitter is located mobile terminal's the back, the third LiFi receiver with the third LiFi emitter is located mobile terminal's side.
11. The system of claim 9, wherein the processor is further configured to determine an attribute of a current LiFi downlink signal source and a current orientation of the mobile terminal when the LiFi communication mode is enabled, and determine the LiFi receiver and the LiFi transmitter of the current communication of the mobile terminal according to the attribute of the current LiFi downlink signal source and the current orientation of the mobile terminal.
12. The system of claim 9, wherein the processor is further configured to control each LiFi receiver in the mobile terminal to receive the LiFi signal when the LiFi communication mode is enabled, and determine the currently communicating LiFi receiver and the LiFi transmitter according to the signal quality parameter of the LiFi signal received by each LiFi receiver.
13. The LiFi communication control system of the mobile terminal according to claim 11, wherein the mobile terminal further comprises: an acceleration sensor;
the processor is further configured to obtain a current output value of the acceleration sensor, and determine a current placing orientation of the mobile terminal according to the current output value of the acceleration sensor.
14. The LiFi communication control system of the mobile terminal as claimed in claim 13, wherein the processor is further configured to obtain output values of the acceleration sensor at a first time and a second time, respectively, wherein the first time is a time adjacent to the second time at which the output value of the acceleration sensor was obtained last time, and determine whether the position of the mobile terminal has changed according to a change value of the output value of the acceleration sensor between the first time and the second time.
15. The LiFi communication control system of the mobile terminal according to claim 9, wherein the mobile terminal further comprises: an angular velocity sensor;
the processor is further configured to obtain output values of a first time and a second time of an angular velocity sensor in the mobile terminal, where the first time is a time adjacent to the second time and at which the output value of the angular velocity sensor was obtained last time, and determine whether the position of the mobile terminal changes according to a change value of the output value of the angular velocity sensor between the first time and the second time.
16. The LiFi communication control system of the mobile terminal according to claim 9, wherein the processor is further configured to control the currently communicating LiFi emitter in the mobile terminal to emit the LiFi signal when the LiFi signal transmission instruction is obtained.
17. The LiFi communication control system of the mobile terminal according to claim 10, wherein the mobile terminal further comprises: the TOF controller is connected with the first LiFi receiver and the first LiFi emitter respectively, and the TOF controller is connected with the second LiFi receiver and the second LiFi emitter respectively;
the first TOF controller and the second TOF controller are respectively used for controlling the first LiFi emitter and the second LiFi emitter to emit detection light, and respectively carrying out distance detection according to reflected light of the detection light received by the first LiFi receiver and the second LiFi receiver so as to generate a detection distance.
18. The LiFi communication control system of claim 17, wherein the first TOF controller is connected to the first LiFi receiver and the first LiFi emitter through I2C data lines, and the second TOF controller is connected to the second LiFi receiver and the second LiFi emitter through I2C data lines.
19. The LiFi communication control system of the mobile terminal as claimed in claim 9, wherein the plurality of LiFi receivers are photo diodes or avalanche diodes, and the plurality of LiFi emitters and the third LiFi emitter are laser emitters.
20. The LiFi communication control system of the mobile terminal as claimed in claim 9, wherein the plurality of LiFi emitters comprises:
an array of LEDs;
a driver to control the depth of the LEDs, wherein the driver controls the depth of the LED array in the LiFi emitter to achieve angular adjustment of the emitted light of the LiFi emitter.
21. The LiFi communication control system of the mobile terminal of claim 9, wherein the plurality of LiFi receivers comprises: an array of pixels;
the processor is further used for controlling a part of pixels in the pixel array to receive light so as to realize angle adjustment of the received light.
22. A mobile terminal, comprising:
the LiFi receivers are used for receiving LiFi signals transmitted by the LiFi downlink signal source;
the plurality of LiFi emitters are used for emitting LiFi signals to the LiFi downlink signal source;
and the processor is used for determining a LiFi receiver and a LiFi emitter which are currently communicated with the mobile terminal when the LiFi communication mode is started, determining the current communication direction of the mobile terminal according to the positions of the LiFi receiver and the LiFi emitter which are currently communicated with the mobile terminal, judging whether the position of the mobile terminal is changed, and switching the LiFi receiver and the LiFi emitter which are currently communicated with the mobile terminal to one of other LiFi receivers according to the current communication direction if the position of the mobile terminal is changed.
23. The mobile terminal of claim 22, comprising: first LiFi receiver and first LiFi emitter, second LiFi receiver and second LiFi emitter, third LiFi receiver and third LiFi emitter, wherein, first LiFi receiver with first LiFi emitter is located mobile terminal's front, second LiFi receiver with the second LiFi emitter is located mobile terminal's the back, the third LiFi receiver with the third LiFi emitter is located mobile terminal's side.
24. The mobile terminal of claim 22, wherein the processor is further configured to determine an attribute of a current LiFi downlink signal source and a current orientation of the mobile terminal when the LiFi communication mode is enabled, and determine a LiFi receiver and a LiFi transmitter of the current communication of the mobile terminal according to the attribute of the current LiFi downlink signal source and the current orientation of the mobile terminal.
25. The mobile terminal of claim 22, wherein the processor is further configured to control each LiFi receiver in the mobile terminal to receive a LiFi signal when the LiFi communication mode is enabled, and determine the currently communicating LiFi receiver and LiFi emitter according to a signal quality parameter of the LiFi signal received by each LiFi receiver.
26. The mobile terminal of claim 24, wherein the mobile terminal further comprises: an acceleration sensor;
the processor is further configured to obtain a current output value of the acceleration sensor, and determine a current placing orientation of the mobile terminal according to the current output value of the acceleration sensor.
27. The mobile terminal of claim 26, wherein the processor is further configured to obtain output values of the acceleration sensor at a first time and a second time, respectively, wherein the first time is a time adjacent to the second time at which the output value of the acceleration sensor was obtained last time, and determine whether the position of the mobile terminal has changed according to a change value of the output value of the acceleration sensor between the first time and the second time.
28. The mobile terminal of claim 22, further comprising: an angular velocity sensor;
the processor is further configured to obtain output values of a first time and a second time of an angular velocity sensor in the mobile terminal, where the first time is a time adjacent to the second time and at which the output value of the angular velocity sensor was obtained last time, and determine whether the position of the mobile terminal changes according to a change value of the output value of the angular velocity sensor between the first time and the second time.
29. The mobile terminal of claim 22, wherein the processor is further configured to control a currently communicating LiFi emitter in the mobile terminal to emit a LiFi signal upon acquiring the LiFi signal transmission instruction.
30. The mobile terminal of claim 23, wherein the mobile terminal further comprises: the TOF controller is connected with the first LiFi receiver and the first LiFi emitter respectively, and the TOF controller is connected with the second LiFi receiver and the second LiFi emitter respectively;
the first TOF controller and the second TOF controller are respectively used for controlling the first LiFi emitter and the second LiFi emitter to emit detection light, and respectively carrying out distance detection according to reflected light of the detection light received by the first LiFi receiver and the second LiFi receiver so as to generate a detection distance.
31. The mobile terminal of claim 30, wherein said first TOF controller is connected to said first LiFi receiver and said first LiFi emitter via I2C data lines, and said second TOF controller is connected to said second LiFi receiver and said second LiFi emitter via I2C data lines.
32. The mobile terminal of claim 22, wherein said plurality of LiFi receivers are photodiodes or avalanche diodes and said plurality of LiFi emitters are laser emitters.
33. The mobile terminal of claim 22, wherein the plurality of LiFI emitters comprises:
an array of LEDs;
a driver to control the depth of the LEDs, wherein the driver controls the depth of the LED array in the LiFi emitter to achieve angular adjustment of the emitted light of the LiFi emitter.
34. The mobile terminal of claim 22, wherein the plurality of LiFi receivers comprises: an array of pixels;
the processor is further used for controlling a part of pixels in the pixel array to receive light so as to realize angle adjustment of the received light.
CN201910579564.8A 2019-06-28 2019-06-28 LiFi communication control method and system for mobile terminal Active CN112152716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910579564.8A CN112152716B (en) 2019-06-28 2019-06-28 LiFi communication control method and system for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910579564.8A CN112152716B (en) 2019-06-28 2019-06-28 LiFi communication control method and system for mobile terminal

Publications (2)

Publication Number Publication Date
CN112152716A true CN112152716A (en) 2020-12-29
CN112152716B CN112152716B (en) 2022-08-02

Family

ID=73891599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910579564.8A Active CN112152716B (en) 2019-06-28 2019-06-28 LiFi communication control method and system for mobile terminal

Country Status (1)

Country Link
CN (1) CN112152716B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014320A (en) * 2021-02-08 2021-06-22 维沃移动通信有限公司 Visible light communication control method and device for electronic equipment and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102324973A (en) * 2011-05-25 2012-01-18 西安理工大学 Ultraviolet light non-line of sight (NLOS) communication directional access method based on angular sensing
US20150037042A1 (en) * 2010-09-29 2015-02-05 Supreme Architecture Ltd. Receiver chip and method for on-chip multi-node visible light communication
US20150280823A1 (en) * 2014-03-25 2015-10-01 Osram Sylvania Inc. Techniques for selective use of light-sensing devices in light-based communication
CN105450302A (en) * 2015-12-31 2016-03-30 中广核工程有限公司 Visible light receiving and transmitting device, visible light communication terminal, and visible light communication system
CN108134633A (en) * 2017-12-18 2018-06-08 清华大学深圳研究生院 Light wireless communication device, data processing method and computer readable storage medium
CN208489881U (en) * 2018-08-22 2019-02-12 Oppo广东移动通信有限公司 Depth acquires mould group and mobile terminal
CN109716677A (en) * 2016-09-23 2019-05-03 高通股份有限公司 The controllable selection of light acquisition equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150037042A1 (en) * 2010-09-29 2015-02-05 Supreme Architecture Ltd. Receiver chip and method for on-chip multi-node visible light communication
CN102324973A (en) * 2011-05-25 2012-01-18 西安理工大学 Ultraviolet light non-line of sight (NLOS) communication directional access method based on angular sensing
US20150280823A1 (en) * 2014-03-25 2015-10-01 Osram Sylvania Inc. Techniques for selective use of light-sensing devices in light-based communication
CN105450302A (en) * 2015-12-31 2016-03-30 中广核工程有限公司 Visible light receiving and transmitting device, visible light communication terminal, and visible light communication system
CN109716677A (en) * 2016-09-23 2019-05-03 高通股份有限公司 The controllable selection of light acquisition equipment
CN108134633A (en) * 2017-12-18 2018-06-08 清华大学深圳研究生院 Light wireless communication device, data processing method and computer readable storage medium
CN208489881U (en) * 2018-08-22 2019-02-12 Oppo广东移动通信有限公司 Depth acquires mould group and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
沈振民: "基于LED的室内可见光通信信道建模及光学接收端研究", 《中国博士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014320A (en) * 2021-02-08 2021-06-22 维沃移动通信有限公司 Visible light communication control method and device for electronic equipment and electronic equipment
CN113014320B (en) * 2021-02-08 2022-05-17 维沃移动通信有限公司 Visible light communication control method and device for electronic equipment and electronic equipment

Also Published As

Publication number Publication date
CN112152716B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
US7225548B2 (en) System and method for aligning multiple sighting devices
US11005393B2 (en) Method for controlling magnetic levitation object , magnetic levitation seat for magnetic levitation object and magnetic levitation object
CN104660924A (en) Integrated reference pixel
KR20190043017A (en) Electronic device for controlling data communication of external electronic device and communication system thereof
CN112152709B (en) Light fidelity LiFi control method and device of mobile terminal, mobile terminal and medium
CN111812662A (en) Detection system and detection method
CN112152716B (en) LiFi communication control method and system for mobile terminal
CN112152711B (en) LiFi communication control method and system for mobile terminal
CN112153184B (en) Mobile terminal
WO2023109795A1 (en) Beam scanning method and apparatus, and computer-readable storage medium
CN108594249A (en) Display panel and the method that ranging is carried out to external object using display panel
CN112152891B (en) Control system of household appliance, mobile terminal and method
EP3789845B1 (en) Electronic device
US11888517B2 (en) Method for a data transmission between a first and a second module and system including mobile parts for carrying out the method
US20040096224A1 (en) Optical wireless communication system
CN112153358B (en) Projection system, mobile terminal and projector
CN112672121B (en) Mobile terminal screen projection system, mobile terminal, control method and projection display equipment
CN109541525B (en) Direction and distance measuring method and system based on infrared signals
CN112152706B (en) Data transmission method, device, terminal, storage medium and electronic equipment
CN110311730A (en) Visible light communication method and device, system, electronic equipment, storage medium
CN112152708A (en) Data transmission method, device, terminal, storage medium and electronic equipment
CN112994792B (en) Communication device of electronic equipment and electronic equipment
CN112153189B (en) Mobile terminal and communication system
KR102530307B1 (en) Subject position detection system
CN112150664A (en) Automobile data recorder system, automobile data recorder and mobile terminal

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