CN112152711B - 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
CN112152711B
CN112152711B CN201910577320.6A CN201910577320A CN112152711B CN 112152711 B CN112152711 B CN 112152711B CN 201910577320 A CN201910577320 A CN 201910577320A CN 112152711 B CN112152711 B CN 112152711B
Authority
CN
China
Prior art keywords
lifi
mobile terminal
receiver
current
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.)
Active
Application number
CN201910577320.6A
Other languages
Chinese (zh)
Other versions
CN112152711A (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 CN201910577320.6A priority Critical patent/CN112152711B/en
Publication of CN112152711A publication Critical patent/CN112152711A/en
Application granted granted Critical
Publication of CN112152711B publication Critical patent/CN112152711B/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
    • 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/40Transceivers

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

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 of the mobile terminal in current communication, wherein the mobile terminal comprises a plurality of LiFi receivers; determining the current communication orientation of the mobile terminal according to the position of the LiFi receiver in the current communication; judging whether the position of the mobile terminal changes or not; if the position of the mobile terminal changes, switching to one of the other LiFi receivers 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 application relates to the technical field of electronics, in particular to a method, a device and a system for controlling light fidelity LiFi communication of a mobile terminal and the 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 method, the device and the system for controlling the LiFi communication of the mobile terminal and the mobile terminal are used for solving the problems that in the related technology, due to the fact that LiFi has directivity, if the mobile terminal changes in positions such as overturning, the LiFi receiver of the mobile terminal is easily shielded, the quality of LiFi communication is affected, and user experience is affected.
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 of the mobile terminal in current communication, wherein the mobile terminal comprises a plurality of LiFi receivers; determining the current communication direction of the mobile terminal according to the position of the LiFi receiver in the current communication; judging whether the position of the mobile terminal changes or not; and if the position of the mobile terminal is changed, switching to one of other LiFi receivers according to the current communication orientation.
According to the LiFi communication control method of the mobile terminal, when the LiFi communication mode is started, the LiFi receiver of the mobile terminal in current communication is determined, the current communication direction of the mobile terminal is determined according to the position of the LiFi receiver in current communication, whether the position of the mobile terminal changes or not is further judged, and when the position of the mobile terminal changes, the LiFi communication control method of the mobile terminal is switched to one of other LiFi receivers according to the current communication direction. Therefore, the plurality of LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers 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 of the current communication of the mobile terminal when a LiFi communication mode is started, and the mobile terminal comprises a plurality of LiFi receivers; the second determining module is used for determining the current communication direction of the mobile terminal according to the position of the LiFi receiver in the 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 to one of other LiFi receivers according to the current communication direction if the position of the mobile terminal changes.
The embodiment of the application provides a mobile terminal's LiFi communication control device, when LiFi communication mode opens, confirms mobile terminal's the LiFi receiver of current communication to according to the position at the LiFi receiver of 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, according to current communication orientation switch to one of other LiFi receivers. Therefore, the plurality of LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers 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, a LiFi communication control system for a mobile terminal includes: a mobile terminal, the mobile terminal comprising: the LiFi receivers are used for receiving LiFi signals transmitted by the LiFi downlink signal source; the processor is used for determining a LiFi receiver of the mobile terminal in current communication when the LiFi communication mode is started, determining the current communication direction of the mobile terminal according to the position of the LiFi receiver in current communication, judging whether the position of the mobile terminal is changed or not, and switching to one of other LiFi receivers 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.
The utility model provides a mobile terminal's LiFi communication control system, including mobile terminal and LiFi downstream signal source, a plurality of LiFi receivers of mobile terminal are used for receiving the LiFi signal of LiFi downstream signal source transmission, mobile terminal's treater is used for when LiFi communication mode opens, confirm mobile terminal's the LiFi receiver of current communication, and the position at LiFi receiver place according to current communication, confirm mobile terminal's current communication orientation, and judge whether mobile terminal's position changes, when mobile terminal's position changes, switch to one in other LiFi receivers according to current communication orientation, the LiFi downstream signal source, be used for transmitting the LiFi signal to mobile terminal. Therefore, the plurality of LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers 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, a mobile terminal includes a plurality of LiFi receivers, configured to receive a LiFi signal emitted by a LiFi downlink signal source; and the processor is used for determining a currently communicated LiFi receiver of the mobile terminal when the LiFi communication mode is started, determining the current communication direction of the mobile terminal according to the position of the currently communicated LiFi receiver, judging whether the position of the mobile terminal is changed, and switching 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 LiFi downlink signal source transmission of LiFi, the treater, when LiFi communication mode is opened, confirm the LiFi receiver of mobile terminal's current communication, and according to the position at LiFi receiver place of current communication, confirm 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. Therefore, the plurality of LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers 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.
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 device 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 application;
fig. 5 is a schematic structural diagram of another LiFi communication control system of a mobile terminal according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a LiFi communication control system of another mobile terminal according to an embodiment of the present application;
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 schematic diagram of 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 accompanying drawings are illustrative and intended to explain 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.
According to the LiFi communication control method of the mobile terminal, when the LiFi communication mode is started, the LiFi receiver of the mobile terminal in current communication is determined, the current communication direction of the mobile terminal is determined according to the position of the LiFi receiver in current communication, whether the position of the mobile terminal changes or not is further judged, and when the position of the mobile terminal changes, the LiFi communication control method of the mobile terminal is switched to one of other LiFi receivers according to the current communication direction. Therefore, the plurality of LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers 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 a LiFi communication control method, apparatus, system and mobile terminal of the mobile terminal provided in the present application in detail with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a LiFi communication control method for a mobile terminal according to an embodiment of the present disclosure.
As shown in fig. 1, the LiFi communication control method for a mobile terminal includes the following steps:
step 101, when a LiFi communication mode is started, determining a LiFi receiver of a mobile terminal in current communication, wherein the mobile terminal comprises a plurality of LiFi receivers.
In the embodiment of the application, a plurality of LiFi receivers can be arranged in the mobile terminal, so that different LiFi receivers are selected to receive LiFi signals transmitted by the LiFi downlink signal source when the arrangement directions of the mobile terminal are different, and the reception quality of the LiFi signals by the mobile terminal is improved.
As a possible implementation manner, when the LiFi communication mode of the mobile terminal is started, the use status of each LiFi receiver in the mobile terminal is obtained from the system information of the mobile terminal, and then the LiFi receiver in current communication in the mobile terminal is determined according to the use status of each LiFi receiver, that is, the LiFi receiver whose use status is "in use" is determined as the LiFi receiver in current communication in the mobile terminal.
And 102, determining the current communication orientation of the mobile terminal according to the position of the LiFi receiver in the current communication.
The location of the currently communicating LiFi receiver refers to a location of the currently communicating LiFi receiver in the mobile terminal, such as on the front side of the mobile terminal, on the back side of the mobile terminal, and the like. The current communication orientation of the mobile terminal refers to a direction in which the LiFi receiver with which the mobile terminal is currently communicating receives the LiFi signal.
In the embodiment of the application, after the LiFi receiver currently communicated with the mobile terminal is determined, the current communication orientation of the mobile terminal can be determined according to the position of the LiFi receiver currently communicated with the mobile terminal and the current placing orientation of the mobile terminal.
For example, assuming that the determined location of the LiFi receiver in current communication is the front side of the mobile terminal, if the current placing orientation of the mobile terminal is front side up, it may be determined that the current communication of the mobile terminal is from top to bottom; 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 current communication of the mobile terminal facing upwards 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 changes, the LiFi receiver in the mobile terminal for current communication may be blocked, and cannot receive the LiFi signal transmitted by the LiFi downlink signal source, or the quality of receiving the LiFi signal is reduced, thereby affecting the quality of LiFi communication.
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 can be detected, and then when the position of the mobile terminal changes, a proper LiFi receiver is selected to receive the LiFi signal.
As a possible implementation manner, whether the position of the mobile terminal has changed or not may be determined according to a 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 acceleration values of the mobile terminal in three directions of X, Y, Z axes in a three-dimensional coordinate system, generally, an X axis is parallel to a width direction of a display screen of the mobile terminal, a Y axis is parallel to a height direction of the display screen of the mobile terminal, and a Z axis is perpendicular to a plane on which 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 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 inclines upwards, the output value of the acceleration sensor in the Y-axis direction is a negative value, and when the mobile terminal is placed towards the position of 'the height direction of the display screen is vertical to the horizontal plane and the upper part of the display screen is downwards', 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, the 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 is changed 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 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, 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, 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 is "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.
And 104, if the position of the mobile terminal changes, switching to one of other LiFi receivers according to the current communication orientation.
In this embodiment of the application, if it is determined that the location of the mobile terminal changes, the LiFi receiver in current communication may be switched to one of the other LiFi receivers according to the changed location of the mobile terminal and the current communication direction of the mobile terminal.
For example, if the position of the LiFi receiver currently communicating in the mobile terminal is 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, and the changed position of the mobile terminal is: placed towards "display screen level down" the currently communicating LiFi receiver can be switched to one at the back of the mobile terminal (i.e. the side opposite to the display screen).
Preferably, two LiFi receivers can be arranged in the mobile terminal and are respectively arranged on the front side and the back side of the mobile terminal, so that the switching requirement of LiFi communication can be met, the number of the LiFi receivers in the mobile terminal can be reduced, and the production cost of the mobile terminal is saved. That is, in a possible implementation form of the embodiment of the present application, the step 104 may include:
if the LiFi receiver in the current communication is a first LiFi receiver, switching to a second LiFi receiver, wherein the first LiFi receiver is located on the front side of the mobile terminal, and the second LiFi receiver is located on the back side of the mobile terminal;
and if the LiFi receiver in the current communication is the second LiFi receiver, switching to the first LiFi receiver.
The front side of the mobile terminal refers to the side where a 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.
It should be noted that, because the downstream LiFi signal source is usually located at a high position, such as a lighting device in a room, the communication orientation of the mobile terminal is usually from top to bottom, and the orientation of the mobile terminal is usually from front to top or from front to bottom, that is, in a possible implementation form of the embodiment of the present application, a LiFi receiver may be respectively disposed on the front and the back of the mobile terminal.
In the embodiment of the application, if a first LiFi receiver and a second LiFi receiver are respectively arranged on the front side and the back side of the mobile terminal, the LiFi receiver can be directly switched to another LiFi receiver when the fact that the LiFi receiver needs to be switched is determined, that is, if the currently communicated LiFi receiver is the first LiFi receiver, the LiFi receiver is switched to the second LiFi receiver; and if the LiFi receiver in the current communication is the second LiFi receiver, switching to the first LiFi receiver.
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:
when a LiFi signal sending instruction is obtained, a first LiFi emitter or a second LiFi emitter in the mobile terminal is controlled to emit a LiFi signal, wherein the first LiFi emitter is located on the front side of the mobile terminal, and the second LiFi emitter is located on the back side of the mobile terminal.
As a possible implementation, one LiFi emitter may be provided for each LiFi receiver in the mobile terminal. Optionally, when the front and the back of the mobile terminal are respectively provided with the first LiFi receiver and the second LiFi receiver, the front and the back of the mobile terminal can be respectively provided with the first LiFi emitter and the second LiFi emitter, and the first LiFi receiver and the first LiFi emitter can be integrated and packaged, and the second LiFi receiver and the second LiFi emitter can be integrated and packaged.
In the 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 an LiFi signal sending instruction automatically generated according to an LiFi signal transmitted by a LiFi downlink signal source, which is not limited in this embodiment of the present application. Specifically, when the LiFi signal sending instruction is obtained, a first LiFi emitter or a second LiFi emitter in the mobile terminal can be controlled to emit the LiFi signal, that is, if the LiFi receiver in the current communication is the first LiFi receiver, the first LiFi emitter is controlled to emit the LiFi signal; and if the LiFi receiver in current communication is a second LiFi receiver, controlling the second LiFi transmitter to transmit the LiFi signal.
According to the LiFi communication control method of the mobile terminal, when the LiFi communication mode is started, the LiFi receiver of the mobile terminal in current communication is determined, the current communication orientation of the mobile terminal is determined according to the position of the LiFi receiver in current communication, whether the position of the mobile terminal changes or not is further judged, and when the position of the mobile terminal changes, the LiFi communication control method of the mobile terminal is switched to one of other LiFi receivers according to the current communication orientation. Therefore, the plurality of LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers 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, when the LiFi communication mode of the mobile terminal is turned on, the initial LiFi receiver can be determined as the LiFi receiver of the current communication according to the attributes of the LiFi signal source and the placing orientation of the mobile terminal, and then when the position of the mobile terminal changes, the LiFi receiver can be directly switched according to the placing orientation of the mobile terminal.
The LiFi communication control method for a mobile terminal according to the embodiment of the present application is further described below 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 for a 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 attributes 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 LiFi is a lighting device in a room, the downstream signal source of LiFi may be "from top to bottom".
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 a LiFi transmitter 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.
Preferably, the current orientation of the mobile terminal can be determined according to the current output value of an 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 direction 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, Y-axis and Z-axis directions are 0, 0 and 1g, respectively, the placing orientation of the mobile terminal is "display screen horizontally faces upward (i.e., front face faces upward)"; 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 currently communicated LiFi receiver of the mobile terminal 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 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 position of each LiFi receiver in the mobile terminal.
For example, if the mobile terminal includes two LiFi receivers, the first LiFi receiver is located on the front side of the mobile terminal, the second LiFi receiver is located on the back side of the mobile terminal, the attribute of the current LiFi downlink signal source is "from top to bottom", and the current placing orientation of the mobile terminal is "front side up", it may be determined that the LiFi receiver in current communication is the first LiFi receiver.
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 are determined to serve as the LiFi receivers in the 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 in the current communication 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 LiFi receiver that is not blocked (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 in current communication can be determined according to the quality parameters of the LiFi signal 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 the signal quality parameters (such as signal strength) 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 strength of the received LiFi signal.
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 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.
According to the LiFi communication control method of the mobile terminal, when a LiFi communication mode is started, the attribute of a current LiFi downlink signal source and the current placing direction of the mobile terminal are determined, the LiFi receiver of the mobile terminal in current communication is determined according to the attribute of the current LiFi downlink signal source and the current placing direction of the mobile terminal, then whether the position of the mobile terminal changes or not is judged, and when the position of the mobile terminal changes, the LiFi communication control method of the mobile terminal is switched to one of other LiFi receivers according to the changed position. Therefore, the LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers which are communicated in the mobile terminal are automatically switched, so that the influence of LiFi directional transmission on LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and 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 application.
As shown in fig. 3, the LiFi communication control device 30 of the mobile terminal includes:
a first determining module 31, configured to determine a LiFi receiver of a current communication of a mobile terminal when a LiFi communication mode is started, where the mobile terminal includes a plurality of LiFi receivers;
a second determining module 32, configured to determine a current communication orientation of the mobile terminal according to a location where the LiFi receiver in the current communication is located;
a judging module 33, configured to judge whether the position of the mobile terminal changes;
a switching module 34, configured to switch to one of the 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 for a mobile terminal according to the embodiment of the present application may be configured in any mobile terminal to execute the LiFi communication control method for the mobile terminal.
The embodiment of the application provides a mobile terminal's LiFi communication control device, when LiFi communication mode opens, confirms mobile terminal's the LiFi receiver of current communication to according to the position at the LiFi receiver of 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, according to current communication orientation switch to one of other LiFi receivers. Therefore, the plurality of LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers 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, switching to a second LiFi receiver, wherein the first LiFi receiver is located on the front side of the mobile terminal, and the second LiFi receiver is located on the back side of the mobile terminal;
and if the LiFi receiver of the current communication is the second LiFi receiver, switching to the first LiFi receiver.
In a possible implementation form of the present application, the first determining module 31 is specifically 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 the currently communicated LiFi receiver of the mobile terminal 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 in the current communication 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:
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 transmitter which are in communication currently according to the signal quality parameters of the LiFi signal 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 LiFi communication control apparatus 30 of the mobile terminal further includes:
the transmitting module is used for controlling a first LiFi emitter or a second LiFi emitter in the mobile terminal to emit a LiFi signal when a LiFi signal transmitting instruction is acquired, wherein the first LiFi emitter is located on the front side of the mobile terminal, and the second LiFi emitter is located on the back side of the mobile terminal.
The embodiment of the application provides a mobile terminal's LiFi communication control device, when the LiFi communication mode is opened, 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 of mobile terminal's current communication, later judge whether mobile terminal's position changes, and then when mobile terminal's position changes, according to the position after the change switching to one of other LiFi receivers. Therefore, the LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers which are communicated in the mobile terminal are automatically switched, so that the influence of LiFi directional transmission on LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and 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.
Wherein, the LiFi downlink signal source 11 is configured to transmit the LiFi signal to the mobile terminal 12.
Wherein, the mobile terminal 12 includes: a plurality of LiFi receivers 121 and a processor 122.
The plurality of LiFi receivers 121 are configured to receive the LiFi signals transmitted by the LiFi downlink signal source;
and a processor 122, configured to determine, when the LiFi communication mode is turned on, a LiFi receiver of the current communication of the mobile terminal 12, determine, according to a location of the LiFi receiver 121 of the current communication, a current communication orientation of the mobile terminal 12, determine whether the location of the mobile terminal 12 changes, and switch to one of the other LiFi receivers 121 according to the current communication orientation if the location of the mobile terminal 12 changes.
The location of the currently communicating LiFi receiver 121 refers to a location of the currently communicating LiFi receiver 121 in the mobile terminal 12, such as on the front of the mobile terminal 12, on the back of the mobile terminal 12, and the like. The current communication orientation of the mobile terminal 12 refers to the direction in which the LiFi receiver 121 with which the mobile terminal 12 is currently communicating receives the LiFi signal.
In the embodiment of the present application, 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 emitted by the LiFi downlink signal source 11, thereby improving the reception quality of the LiFi signal by the mobile terminal 12.
As a possible implementation manner, the processor 122 in the mobile terminal 12 may obtain the use state of each LiFi receiver 121 in the mobile terminal 12 from the system information of the mobile terminal 12 when the LiFi communication mode of the mobile terminal 12 is started, and further determine the LiFi receiver 121 currently communicating in the mobile terminal 12 according to the use state of each LiFi receiver 121, that is, determine the LiFi receiver whose use state is "in use" as the LiFi receiver 121 currently communicating in the mobile terminal.
In the embodiment of the present application, after the processor 122 determines the LiFi receiver 121 currently communicating with the mobile terminal 12, the current communication orientation of the mobile terminal 12 may be determined according to the position of the LiFi receiver 121 currently communicating with the mobile terminal and the current placing orientation of the mobile terminal 12.
For example, assuming that the determined location of the LiFi receiver 121 currently communicating is the front side of the mobile terminal 12, if the current placing orientation of the mobile terminal 12 is front side up, it may be determined that the current communication of the mobile terminal 12 is top down; 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-up, 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 currently communicating in the mobile terminal 12 may be blocked, and cannot receive the LiFi signal emitted by the LiFi downlink signal source 11, or the quality of receiving the LiFi signal is reduced, so that the quality of LiFi communication is affected.
In this embodiment, the processor 122 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 to receive the LiFi signal when the position of the mobile terminal 12 changes.
As a possible implementation manner, it may be determined whether the position of the mobile terminal 12 is changed according to the degree of change of 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 123;
the processor 122 is further configured to acquire output values of the acceleration sensor 123 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 123 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 123 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 123 in the mobile terminal 12 can detect 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 123 in the mobile terminal 12 in three directions 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 123 between two times.
Specifically, when the mobile terminal 12 is placed still, if the placing direction of the mobile terminal 12 is "the display screen is horizontally upward", the output values of the acceleration sensor 123 in the X-axis, Y-axis, and Z-axis directions are 0, and 1g, respectively; if the placing direction of the mobile terminal 12 is "the display screen is horizontally downward", the output values of the acceleration sensor 123 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 123 in the X-axis direction is a positive value, and when the orientation of the mobile terminal 12 is "the horizontal plane perpendicular to the width direction of the display screen is left", the output values of the acceleration sensor 123 in the X-axis, the Y-axis, and the Z-axis are 1g, 0, and 0, respectively; if the mobile terminal 12 is tilted to the right, the output value of the acceleration sensor 123 in the X-axis direction is a negative value, and when the orientation of the mobile terminal 12 is "the width direction of the display screen is perpendicular to the horizontal plane to the right", the output values of the acceleration sensor 123 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 123 in the Y-axis direction is a positive value, and when the orientation of the mobile terminal 12 is "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 123 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 123 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 123 in the X-axis, the Y-axis, and the Z-axis are 0, -1g, and 0, respectively.
In this embodiment, the processor 122 may determine a change value of the output value of the acceleration sensor 123 in each direction between the first time and the second time according to the output value of the acceleration sensor 123 in each direction at the first time and the output value of the acceleration sensor 123 in each direction between the second time, and further determine whether the position of the mobile terminal 12 changes at the second time and what kind of change occurs according to the change value of the output value of the acceleration sensor 123 in each direction.
For example, if the output values of the acceleration sensor 123 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 122 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 123, and in actual use, a time interval between the first time and the second time (that is, a frequency at which the processor 122 acquires the output value of the acceleration sensor 123) 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.
In the embodiment of the present application, if it is determined that the location of the mobile terminal 12 changes, the LiFi receiver 121 that is currently communicating may be switched to one of the other LiFi receivers according to the changed location of the mobile terminal 12 and the current communication orientation of the mobile terminal 12.
For example, if the position of the LiFi receiver 121 currently communicating in the mobile terminal 12 is 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: placed towards "display screen level down" the currently communicating LiFi receiver 121 can be switched to the LiFi receiver 121 at the back of the mobile terminal (i.e., the side opposite the display screen).
Preferably, two LiFi receivers can be arranged in the mobile terminal and are respectively arranged on the front side and the back side of the mobile terminal, so that the switching requirement of LiFi communication can be met, the number of the LiFi receivers in the mobile terminal can be reduced, and the production cost of the mobile terminal is saved. That is, in a possible implementation form of the embodiment of the present application, referring to fig. 6, the mobile terminal 12 may include: the first LiFi receiver 121 and the second LiFi receiver 121 are disposed, wherein the first LiFi receiver 121 is disposed on a front side of the mobile terminal 12, and the second LiFi receiver 121 is disposed on a back 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.
It should be noted that, since the LiFi downlink signal source 11 is usually located at a high position, such as a lighting device in a room, the communication orientation of the mobile terminal 12 is usually from top to bottom, and the orientation of the mobile terminal 12 is usually right side up or right side down, that is, in a possible implementation form of the embodiment of the present application, a LiFi receiver may be respectively disposed at the front side and the back side of the mobile terminal 12.
In the embodiment of the present application, if the first LiFi receiver 121 and the second LiFi receiver 121 are respectively disposed on the front side and the back side of the mobile terminal 12, when the processor 122 determines that the LiFi receiver needs to be switched, the LiFi receiver can be directly switched to another LiFi receiver, that is, if the currently communicating LiFi receiver is the first LiFi receiver 121, the LiFi receiver is switched to the second LiFi receiver 121; if the currently communicating LiFi receiver is the second LiFi receiver 121, the first LiFi receiver 121 is switched to.
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. That is, in a possible implementation form of the embodiment of the present application, referring to fig. 6, the mobile terminal may further include: a first LiFi emitter 124 and a second LiFi emitter 124, wherein the first LiFi emitter 124 is located on the front side of the mobile terminal 12 and the second LiFi emitter 124 is located on the back side of the mobile terminal 12.
As a possible implementation, one LiFi emitter may be provided for each LiFi receiver in the mobile terminal 12. Alternatively, when the first LiFi receiver 121 and the second LiFi receiver 121 are respectively disposed on the front side and the back side of the mobile terminal 12, the first LiFi emitter 124 and the second LiFi emitter 124 may be respectively disposed on the front side and the back side of the mobile terminal 12, and the first LiFi receiver 121 and the first LiFi emitter 124 may be integrally packaged, and the second LiFi receiver 121 and the second LiFi emitter 124 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, or may also be an LiFi signal sending instruction automatically generated according to the LiFi signal transmitted by the LiFi downlink signal source 11, which is not limited in this embodiment of the present application. Specifically, when the LiFi signal sending instruction is obtained, the processor 122 may control the first LiFi emitter 124 or the second LiFi emitter 124 in the mobile terminal 12 to emit the LiFi signal, that is, if the currently communicating LiFi receiver is the first LiFi receiver 121, the first LiFi emitter 124 is controlled to emit the LiFi signal; if the currently communicating LiFi receiver is the second LiFi receiver 121, the second LiFi transmitter 124 is controlled to transmit 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 processor of the mobile terminal is used for determining the LiFi receiver of the mobile terminal in current communication when a LiFi communication mode is started, determining the current communication orientation of the mobile terminal according to the position of the LiFi receiver in current communication, judging whether the position of the mobile terminal changes or not, switching to one of other LiFi receivers according to the current communication orientation when the position of the mobile terminal changes, and the LiFi downlink signal source is used for transmitting the LiFi signals to the mobile terminal. Therefore, the plurality of LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers 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 the liFi signal source and mobile terminal's 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 the LiFi receiver according to mobile terminal's orientation of putting.
The LiFi communication control system for a mobile terminal according to the embodiment of the present application is further described below 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, on the basis of the embodiments shown in fig. 4 and 5, the processor 122 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 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 the 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".
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 sent by the LiFi downlink signal source 11 may include the attribute information corresponding thereto, so that the processor 122 may control any one of the LiFi receivers 121 in the mobile terminal 12 to receive the LiFi signal sent 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 sent 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 122 controls any one LiFi receiver 121 in the mobile terminal 12 to receive the LiFi signal transmitted by the LiFi downlink signal source 11, and when receiving the LiFi signal transmitted by the LiFi downlink signal source 11, the processor 122 controls the LiFi transmitter 124 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 attribute information to the mobile terminal 12 according to the obtained LiFi signal transmitted by the mobile terminal 12.
Preferably, the current orientation of the mobile terminal 12 can be determined according to the current output value of the acceleration sensor 123 in the mobile terminal. That is, in a possible implementation form of the embodiment of the present application, the processor 122 may be further configured to:
and acquiring a current output value of the acceleration sensor 123, and determining the current placing orientation of the mobile terminal 12 according to the current output value of the acceleration sensor 123.
It should be noted that the acceleration sensor 123 in the mobile terminal 12 can detect acceleration values of the mobile terminal 12 in three directions of X, Y, Z axes in a three-dimensional coordinate system, generally, an X axis is parallel to a width direction of the display screen of the mobile terminal 12, a Y axis is parallel to a height direction of the display screen of the mobile terminal 12, and a Z axis is perpendicular to a plane on which the display screen of the mobile terminal 12 is located. The output values of the acceleration sensor 123 in the mobile terminal 12 in three directions are related to the orientation of the mobile terminal 12, so that the processor 122 can determine the orientation of the mobile terminal 12 according to the current output value of the acceleration sensor 123.
Specifically, when the mobile terminal 12 is placed still, if the output values of the acceleration sensor 123 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 horizontal up (i.e. front up)"; if the output values of the acceleration sensor 123 on the X axis, the Y axis, and the Z axis are 0, and-1 g, respectively, the placing orientation of the mobile terminal 12 is "display screen horizontally faces downward (i.e., front faces downward)"; if the output value of the acceleration sensor 123 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 123 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 123 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 123 in the X-axis, the Y-axis, and the Z-axis are-1 g, 0, and 0, respectively, the orientation of the mobile terminal 12 is "the horizontal plane perpendicular to the width direction of the display screen is right (i.e., the front surface faces right)"; if the output value of the acceleration sensor 123 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 123 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 123 in the Y-axis direction is a negative value, the mobile terminal 12 is tilted upward, and when the output values of the acceleration sensor 123 in the X-axis, the Y-axis, and the Z-axis are 0, -1g, and 0, respectively, the mobile terminal 12 is placed in an orientation 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 122 determines the attribute of the current LiFi downlink signal source 11 and the current placing orientation of the mobile terminal 12, the LiFi receiver 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 position of each LiFi receiver 121 in the mobile terminal 12.
For example, if the mobile terminal 12 includes two LiFi receivers 121, the first LiFi receiver 121 is located on the front side of the mobile terminal, the second LiFi receiver 121 is located on the back side of the mobile terminal 12, the attribute of the current LiFi downlink signal source 11 is "from top to bottom", and the current placing orientation of the mobile terminal 11 is "right side up", the processor 122 may determine that the LiFi receiver currently communicating with the mobile terminal is the first LiFi receiver 121.
Further, when the LiFi communication mode is turned on, the processor 122 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 a possible implementation form of the embodiment of the present application, the processor 122 may be further configured to:
when the LiFi communication mode is turned on, each LiFi receiver 121 in the mobile terminal 12 is controlled to receive the LiFi signal, and the LiFi receiver currently communicating is 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 multiple 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 122 may determine the LiFi receiver currently communicating 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 122 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 the current communication, for example, the LiFi receiver with the strongest signal strength of the received LiFi signal.
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 it is not necessary to additionally set an LED lamp and an opening, 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 125 and the second TOF controller 125, wherein the first TOF controller 125 is connected to the first LiFi receiver 121 and the first LiFi transmitter 124, respectively, and the second TOF controller 125 is connected to the second LiFi receiver 121 and the second LiFi transmitter 124, respectively.
The first TOF controller 125 and the second TOF controller 125 are respectively configured to control the first LiFi emitter 124 and the second LiFi emitter 124 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, to generate a detection distance. Specifically, the first TOF controller and the second TOF controller 125 can obtain a detection distance by calculation and conversion according to a phase difference or a time difference between a detection light ray and a reflection light ray.
That is, in the present application, both the TOF controller 125 and the processor 122 are connected to the LiFi receiver 121 and the LiFi transmitter 124, respectively, so that LiFi and TOF can share the LiFi receiver and transmitter. 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 present embodiment, the first TOF controller 125 can be connected to the first LiFi receiver 121 and the first LiFi transmitter 124 through I2C data lines, and the second TOF controller 125 can be connected to the second LiFi receiver 121 and the second LiFi transmitter 124 through 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 122 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 125; when the mobile terminal 12 includes a camera, the processor 122 may further control the camera to perform infrared focusing according to the detection distance generated by the second TOF controller 125.
In the embodiment of the present application, the first and second LiFi emitters 124 in the mobile terminal 12 may be laser emitters, and the first and second LiFi 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 sensitivities of the first and second LiFi receivers 121 can be greatly improved, and compared with a LiFi receiver using a photodiode, the sensitivities of the first and second LiFi receivers 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 photodiodes serve as the first LiFi receiver and the second 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 first LiFi emitter and the second LiFi emitter 124 may include an LED array and a driver for controlling a 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 first and second LiFi emitters 124 to achieve the angle adjustment of the emitted light of the first and second LiFi emitters 124.
It can be understood that the light emitted by the first LiFi emitter and the second LiFi emitter 124 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 port of the LiFi emitter 124 where the LED array is located is changed, the directivity of the light is changed. It will be understood that the closer the LED array is to the light outlet of the LiFi emitter 124, the larger the angle of the emitted light of the LiFi emitter 124, and conversely, the farther the LED array is from the light outlet of the LiFi emitter 124, the smaller the angle of the emitted light of the LiFi emitter 124.
In the embodiment of the present application, the depth of the LED array in the first LiFi emitter and the second LiFi emitter 124 is adjusted by setting the driver, so that the adjustability of the light directivity is realized, and the communication quality between the mobile terminal 12 and the LiFi downlink signal source 11 can be improved.
The existing LiFi technology carries out data transmission through visible light, and the transmission distance of the visible light is limited, so that the data transmission distance is limited. To address this issue, in the embodiment of the present application, the light emitted by the first and second LiFi emitters 124 may be non-visible light, for example, the first and second LiFi emitters 124 may emit infrared light. Because the wavelength of infrared light is longer than that of visible light and has extremely strong penetrating power, the data transmission distance can be increased by transmitting the LiFi signals through the infrared light.
Further, in a possible implementation form of the embodiment of the present application, the first LiFi receiver and the second LiFi receiver 121 may include a pixel array, and the processor 122 controls a portion of pixels in the pixel array to receive the light, so as to implement the angle adjustment of the received light.
It can be appreciated that when different pixels in the pixel array are used to receive light, the first LiFi receiver and the second LiFi receiver 121 can receive light at different angles. 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 application, the processor 122 controls part of the pixels in the pixel array to receive light, so that the angle adjustment of the received light can be realized, and further the directional controllable LiFi data transmission can be realized.
The utility model provides a mobile terminal's LiFi communication control system, including mobile terminal and LiFi downstream signal source, a plurality of LiFi receivers of mobile terminal are used for receiving the LiFi signal of LiFi downstream signal source transmission, mobile terminal's treater is used for when LiFi communication mode opens, confirm mobile terminal's the LiFi receiver of current communication, and the position at LiFi receiver place according to current communication, confirm mobile terminal's current communication orientation, and judge whether mobile terminal's position changes, when mobile terminal's position changes, switch to one in other LiFi receivers according to current communication orientation, the LiFi downstream signal source, be used for transmitting the LiFi signal to mobile terminal. Therefore, the plurality of LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers 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 and a processor 122.
A plurality of LiFi receivers 121, configured to receive the LiFi signal transmitted by the LiFi downlink signal source;
and the processor 122 is configured to determine, when the LiFi communication mode is turned on, a LiFi receiver of the current communication of the mobile terminal 12, determine, according to a location of the LiFi receiver 121 of the current communication, a current communication orientation of the mobile terminal 12, and determine whether the location of the mobile terminal 12 changes, and if the location of the mobile terminal 12 changes, switch to one of other LiFi receivers according to the current communication orientation.
The location of the currently communicating LiFi receiver 121 refers to a location of the currently communicating LiFi receiver 121 in the mobile terminal 12, such as on the front of the mobile terminal 12, on the back of the mobile terminal 12, and the like. The current communication orientation of the mobile terminal 12 refers to a direction in which the LiFi receiver 121 with which the mobile terminal 12 currently communicates receives the LiFi signal.
In this embodiment of the application, 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 emitted by the LiFi downlink signal source, thereby improving the reception quality of the mobile terminal 12 on the LiFi signal.
As a possible implementation manner, when the LiFi communication mode of the mobile terminal 12 is turned on, the processor 122 in the mobile terminal 12 may obtain the usage status of each LiFi receiver 121 in the mobile terminal 12 from the system information of the mobile terminal 12, and further determine, according to the usage status of each LiFi receiver 121, the LiFi receiver 121 currently communicating in the mobile terminal 12, that is, the LiFi receiver whose usage status is "in use" is determined as the LiFi receiver 121 currently communicating in the mobile terminal.
In the embodiment of the present application, after the processor 122 determines the LiFi receiver 121 currently communicating with the mobile terminal 12, the current communication orientation of the mobile terminal 12 may be determined according to the position of the LiFi receiver 121 currently communicating with the mobile terminal and the current placing orientation of the mobile terminal 12.
For example, assuming that the determined location of the LiFi receiver 121 currently communicating is the front side of the mobile terminal 12, if the current placing orientation of the mobile terminal 12 is front side up, it may be determined that the current communication of the mobile terminal 12 is top down; if the current placing direction of the mobile terminal 12 is front-side down, it may be determined that the current communication of the mobile terminal 12 is from top to bottom; 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 currently communicating in the mobile terminal 12 may be blocked, and cannot receive the LiFi signal transmitted by the LiFi downlink signal source, or the quality of receiving the LiFi signal is reduced, so that the quality of LiFi communication is affected.
In the embodiment of the present application, the processor 122 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 to receive the LiFi signal when the position of the mobile terminal 12 changes.
As a possible implementation manner, it may be determined whether the position of the mobile terminal 12 is changed according to the degree of change of 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 123;
the processor 122 is further configured to acquire output values of the acceleration sensor 123 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 123 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 123 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 immediately before the second time.
It should be noted that the acceleration sensor 123 in the mobile terminal 12 can detect acceleration values of the mobile terminal 12 in three directions of X, Y, Z axes in a three-dimensional coordinate system, generally, an X axis is parallel to a width direction of the display screen of the mobile terminal 12, a Y axis is parallel to a height direction of the display screen of the mobile terminal 12, and a Z axis is perpendicular to a plane on which 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 123 in the mobile terminal 12 in three directions 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 123 between two times.
Specifically, when the mobile terminal 12 is placed still, if the placing direction of the mobile terminal 12 is "the display screen is horizontally upward", the output values of the acceleration sensor 123 in the X-axis, Y-axis, and Z-axis directions are 0, and 1g, respectively; if the placing direction of the mobile terminal 12 is "the display screen is horizontally downward", the output values of the acceleration sensor 123 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 123 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 123 in the X-axis, the Y-axis, and the Z-axis are 1g, 0, and 0, respectively; if the mobile terminal 12 is tilted to the right, the output value of the acceleration sensor 123 in the X-axis direction is a negative value, and when the orientation of the mobile terminal 12 is "the width direction of the display screen is perpendicular to the horizontal plane to the right", the output values of the acceleration sensor 123 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 123 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 123 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 123 in the Y-axis direction is negative, and when the mobile terminal 12 is placed in the direction "the height direction of the display screen is vertical to the horizontal plane, and the upper portion of the display screen is downward", the output values of the acceleration sensor 123 in the X-axis, Y-axis, and Z-axis are 0, -1g, and 0, respectively.
In this embodiment, the processor 122 may determine a variation value of the output value of the acceleration sensor 123 in each direction between the first time and the second time according to the output value of the acceleration sensor 123 in each direction at the first time and the output value of the acceleration sensor 123 in each direction between 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 has occurred according to the variation value of the output value of the acceleration sensor 123 in each direction.
For example, if the outputs of the acceleration sensor 123 in the X-axis, Y-axis and Z-axis directions at the first time are 0, 0 and 1g, respectively, that is, the orientation of the mobile terminal 12 in the first time is "display screen horizontal up", and the outputs in the X-axis, Y-axis and Z-axis directions at the second time are 0, 0 and-1 g, respectively, the processor 122 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 is "display screen horizontal down".
It should be noted that the first time and the second time are adjacent to each other in the two times of acquiring the output value of the acceleration sensor 123, and when the mobile terminal is actually used, a time interval between the first time and the second time (that is, a frequency at which the processor 122 acquires the output value of the acceleration sensor 123) may be preset according to actual needs and performance of the mobile terminal 12, which is not limited in the embodiment of the present application. For example, it may be 1 second, 5 seconds, or the like.
In the embodiment of the present application, if it is determined that the location of the mobile terminal 12 changes, the LiFi receiver 121 that is currently communicating may be switched to one of the other LiFi receivers according to the changed location of the mobile terminal 12 and the current communication orientation of the mobile terminal 12.
For example, if the position of the LiFi receiver 121 currently communicating in the mobile terminal 12 is 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: placed towards "display screen level down" the currently communicating LiFi receiver 121 can be switched to the LiFi receiver 121 at the back of the mobile terminal (i.e., the side opposite the display screen).
Preferably, two LiFi receivers can be arranged in the mobile terminal and are respectively arranged on the front side and the back side of the mobile terminal, so that the switching requirement of LiFi communication can be met, the number of the LiFi receivers in the mobile terminal can be reduced, and the production cost of the mobile terminal is saved. That is, in a possible implementation form of the embodiment of the present application, referring to fig. 11, the mobile terminal 12 may include: the first LiFi receiver 121 and the second LiFi receiver 121 are disposed, wherein the first LiFi receiver 121 is disposed on a front side of the mobile terminal 12, and the second LiFi receiver 121 is disposed on a back 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.
It should be noted that, since the downstream LiFi signal source is usually located at a high position, such as a lighting device in a room, the communication orientation of the mobile terminal 12 is usually from top to bottom, and the orientation of the mobile terminal 12 is usually from front to top or from front to bottom, that is, in a possible implementation form of the embodiment of the present application, one LiFi receiver may be respectively disposed on the front and the back of the mobile terminal 12.
In the embodiment of the present application, if the first LiFi receiver 121 and the second LiFi receiver 121 are respectively disposed on the front side and the back side of the mobile terminal 12, when the processor 122 determines that the LiFi receiver needs to be switched, the LiFi receiver can be directly switched to another LiFi receiver, that is, if the currently communicating LiFi receiver is the first LiFi receiver 121, the LiFi receiver is switched to the second LiFi receiver 121; if the currently communicating LiFi receiver is the second LiFi receiver 121, the first LiFi receiver 121 is switched to.
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. That is, in a possible implementation form of the embodiment of the present application, referring to fig. 11, the mobile terminal may further include: a first LiFi emitter 124 and a second LiFi emitter 124, wherein the first LiFi emitter 124 is located on the front side of the mobile terminal 12 and the second LiFi emitter 124 is located on the back side of the mobile terminal 12.
As a possible implementation, one LiFi emitter may be provided for each LiFi receiver in the mobile terminal 12. Alternatively, when the first LiFi receiver 121 and the second LiFi receiver 121 are respectively disposed on the front side and the back side of the mobile terminal 12, the first LiFi emitter 124 and the second LiFi emitter 124 may be respectively disposed on the front side and the back side of the mobile terminal 12, and the first LiFi receiver 121 and the first LiFi emitter 124 may be integrally packaged, and the second LiFi receiver 121 and the second LiFi emitter 124 may be integrally packaged.
In the 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 an LiFi signal sending instruction automatically generated according to an LiFi signal transmitted by a LiFi downlink signal source, which is not limited in this embodiment of the present application. Specifically, when the LiFi signal sending instruction is obtained, the processor 122 may control the first LiFi emitter 124 or the second LiFi emitter 124 in the mobile terminal 12 to emit the LiFi signal, that is, if the currently communicating LiFi receiver is the first LiFi receiver 121, the first LiFi emitter 124 is controlled to emit the LiFi signal; if the currently communicating LiFi receiver is the second LiFi receiver 121, the second LiFi transmitter 124 is controlled to transmit 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 LiFi downlink signal source transmission of LiFi, the treater, when LiFi communication mode is opened, confirm the LiFi receiver of mobile terminal's current communication, and according to the position at LiFi receiver place of current communication, confirm 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. Therefore, the LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers which are communicated in the mobile terminal are automatically switched, so that the influence of LiFi directional transmission on LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and 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 the liFi signal source and mobile terminal's 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 the LiFi receiver according to mobile terminal's 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, on the basis of the embodiment shown in fig. 9 and 10, the processor 122 of the mobile terminal 12 may be further configured to determine, when the LiFi communication mode is turned on, an attribute of the current LiFi downlink signal source and a current placing orientation of the mobile terminal 12, and determine, according to the attribute of the current LiFi downlink signal source and the current placing orientation of the mobile terminal 12, a LiFi receiver 121 of the current communication of the mobile terminal 12.
The attributes 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 LiFi downlink signal source is a lighting device in a room, the LiFi downlink signal source can be "from top to bottom".
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, each time the LiFi signal sent by the LiFi downlink signal source may include the attribute information corresponding to the LiFi signal source, so that the processor 122 may control any one of the LiFi receivers 121 in the mobile terminal 12 to receive the LiFi signal sent by the LiFi downlink signal source when the LiFi communication mode is started, and further determine the attribute of the LiFi downlink signal source according to the obtained LiFi signal sent 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 122 controls any one LiFi receiver 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 122 controls the LiFi emitter 124 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 own attribute information to the mobile terminal 12 according to the obtained LiFi signal transmitted by the mobile terminal 12.
Preferably, the current orientation of the mobile terminal 12 can be determined according to the current output value of the acceleration sensor 123 in the mobile terminal. That is, in a possible implementation form of the embodiment of the present application, the processor 122 may be further configured to:
and acquiring a current output value of the acceleration sensor 123, and determining the current placing orientation of the mobile terminal 12 according to the current output value of the acceleration sensor 123.
It should be noted that the acceleration sensor 123 in the mobile terminal 12 can detect 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 123 in the mobile terminal 12 in three directions are related to the orientation of the mobile terminal 12, so that the processor 122 can determine the orientation of the mobile terminal 12 according to the current output value of the acceleration sensor 123.
Specifically, when the mobile terminal 12 is placed still, if the output values of the acceleration sensor 123 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 horizontal up (i.e. front up)"; if the output values of the acceleration sensor 123 on the X axis, the Y axis, and the Z axis are 0, and-1 g, respectively, the placing orientation of the mobile terminal 12 is "display screen horizontally faces downward (i.e., front faces downward)"; if the output value of the acceleration sensor 123 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 123 in the X-axis, the Y-axis, and the Z-axis are 1g, 0, and 0, respectively, the orientation of the mobile terminal 12 is "the horizontal plane perpendicular to the width direction of the display screen is left (i.e., the front surface faces left)"; if the output value of the acceleration sensor 123 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 123 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 123 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 123 in the X-axis, the Y-axis, and the Z-axis are 0, 1g, and 0, respectively, the mobile terminal 12 is placed in a direction "the height direction of the display screen is vertical to the horizontal plane, and the upper portion of the display screen is upward"; if the output value of the acceleration sensor 123 in the Y-axis direction is a negative value, the mobile terminal 12 is tilted upward, and when the output values of the acceleration sensor 123 in the X-axis, the Y-axis, and the Z-axis are 0, -1g, and 0, respectively, the mobile terminal 12 is placed in an orientation 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, after determining the attribute of the current LiFi downlink signal source and the current placing direction of the mobile terminal 12, the processor 122 may determine the LiFi receiver of the current communication of the mobile terminal 12 according to the attribute of the current LiFi downlink signal source, the current placing direction of the mobile terminal 12, and the position of each LiFi receiver 121 in the mobile terminal 12.
For example, if the mobile terminal 12 includes two LiFi receivers 121, the first LiFi receiver 121 is located on the front side of the mobile terminal, the second LiFi receiver 121 is located on the back side of the mobile terminal 12, the attribute of the current LiFi downlink signal source is "from top to bottom", and the current placing orientation of the mobile terminal 11 is "right side up", the processor 122 may determine that the LiFi receiver currently in communication is the first LiFi receiver 121.
Further, when the LiFi communication mode is turned on, the processor 122 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 a possible implementation form of the embodiment of the present application, the processor 122 may be further 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 currently communicating is 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 122 may determine the LiFi receiver currently communicating 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, the processor 122 may control each LiFi receiver 121 in the mobile terminal 12 to receive the LiFi signal transmitted by the LiFi downlink signal source when the LiFi communication mode is turned on, and determine the signal quality parameter (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.
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 formed, 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 125 and the second TOF controller 125, wherein the first TOF controller 125 is connected to the first LiFi receiver 121 and the first LiFi transmitter 124, respectively, and the second TOF controller 125 is connected to the second LiFi receiver 121 and the second LiFi transmitter 124, respectively.
The first TOF controller 125 and the second TOF controller 125 are respectively configured to control the first LiFi emitter 121 and the second LiFi emitter 124 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, to generate a detection distance. Specifically, the first TOF controller and the second TOF controller 125 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 125 and the processor 122 are connected to the LiFi receiver 121 and the LiFi emitter 124, respectively, so that the LiFi receiver and the TOF can share one LiFi receiver and one 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 embodiments of the present application, the first TOF controller 125 can be connected to the first LiFi receiver 121 and the first LiFi emitter 124 via I2C data lines, and the second TOF controller 125 can be connected to the second LiFi receiver 121 and the second LiFi emitter 124 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 122 may further control a switch of the display screen of the mobile terminal 12 according to the detection distance generated by the first TOF controller; when the word mobile terminal 12 includes a camera, the processor 122 may further control the camera to perform infrared focusing according to the detection distance generated by the second TOF controller.
In the embodiment of the present application, the first and second LiFi emitters 124 in the mobile terminal 12 can be laser emitters, and the first and second LiFi receivers 121 can be photodiodes or avalanche diodes.
The avalanche diode may be specifically an Avalanche Photo Diode (APD), and the APD photo diode 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 of the same magnitude, which is equivalent to a light amplification effect, so that the sensitivities of the first LiFi receiver and the second LiFi receiver 121 can be greatly improved, and compared with a LiFi receiver using a photodiode, the sensitivities of the first LiFi receiver and the second LiFi receiver 121 using the APD photo diode can be improved by more than 10 dB. Therefore, in the embodiment of the present application, it is preferable that the APD photodiodes serve as the first and second LiFi receivers 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 first LiFi emitter and the second LiFi emitter 124 may include an LED array and a driver for controlling a 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 first and second LiFi emitters 124 to achieve the angle adjustment of the emitted light of the first and second LiFi emitters 124.
It can be understood that the light emitted by the first LiFi emitter and the second LiFi emitter 124 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 port of the LiFi emitter 124 where the LED array is located is changed, the directivity of the light is changed. It will be understood that the closer the LED array is to the light outlet of the LiFi emitter 124, the larger the angle of the emitted light of the LiFi emitter 124, and conversely, the farther the LED array is from the light outlet of the LiFi emitter 124, the smaller the angle of the emitted light of the LiFi emitter 124.
In the embodiment of the present application, the depth of the LED array in the first LiFi emitter and the second LiFi emitter 124 is adjusted by setting the driver, so that the adjustability of the light directivity is realized, and the communication quality between the mobile terminal 12 and the LiFi downlink signal source can be improved.
The existing LiFi technology carries out data transmission through visible light, and the transmission distance of the visible light is limited, so that the data transmission distance is limited. To address this issue, in the embodiment of the present application, the light emitted by the first and second LiFi emitters 124 may be non-visible light, for example, the first and second LiFi emitters 124 may emit infrared light. Because the wavelength of infrared light is longer than that of visible light and has extremely strong penetrating power, the LiFi signal is transmitted through the infrared light, and the data transmission distance can be increased.
Further, in a possible implementation form of the embodiment of the present application, the first LiFi receiver and the second LiFi receiver 121 may include a pixel array, and the processor 122 controls a portion of pixels in the pixel array to receive light, so as to implement angle adjustment of the received light.
It can be appreciated that when different pixels in the pixel array are used to receive light, the first LiFi receiver and the second LiFi receiver 121 can receive light at different angles. 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 application, the processor 122 controls part of the pixels in the pixel array to receive light, so that the angle adjustment of the received light can be realized, and further the directional controllable LiFi data transmission can be realized.
The embodiment of the application provides a mobile terminal, including a plurality of LiFi receivers and a processor, wherein, a plurality of LiFi receivers, be used for receiving the LiFi signal that LiFi downlink signal source launched, the processor, when LiFi communication mode is opened, the LiFi receiver of confirming mobile terminal's current communication, and according to the position at the LiFi receiver of current communication, confirm 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 in other LiFi receivers. Therefore, the LiFi receivers are arranged in the mobile terminal, and when the position of the mobile terminal changes, the LiFi receivers which are communicated in the mobile terminal are automatically switched, so that the influence of LiFi directional transmission on LiFi communication quality is reduced, the LiFi communication quality in the mobile terminal is improved, and user experience is improved.
In order to implement the foregoing embodiments, the present application further proposes a computer-readable storage medium, on which a computer program is stored, where the program, when executed by a processor, implements the LiFi communication control method of a mobile terminal as set forth in the foregoing fig. 1 or fig. 2 embodiment 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 (31)

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 of the mobile terminal in current communication, wherein the mobile terminal comprises a plurality of LiFi receivers;
determining the current communication orientation of the mobile terminal according to the position of the LiFi receiver in the current communication and the current placing orientation of the mobile terminal;
judging whether the position of the mobile terminal changes or not;
if the position of the mobile terminal changes, switching to one of other LiFi receivers according to the current communication orientation;
the position of the currently communicating LiFi receiver is the position of the currently communicating LiFi receiver in the mobile terminal, and the current communication orientation of the mobile terminal is the direction in which the LiFi receiver currently communicating with the mobile terminal receives the LiFi signal.
2. The LiFi communication control method of the mobile terminal according to claim 1, wherein the switching to one of the other LiFi receivers according to the current communication orientation comprises:
if the LiFi receiver in the current communication is a first LiFi receiver, switching to a second LiFi receiver, wherein the first LiFi receiver is located on the front side of the mobile terminal, and the second LiFi receiver is located on the back side of the mobile terminal;
and if the LiFi receiver of the current communication is the second LiFi receiver, switching to the first LiFi receiver.
3. The LiFi communication control method of a mobile terminal according to claim 1, wherein the determining the LiFi receiver 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 the currently communicated LiFi receiver of the mobile terminal 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 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 of the current communication according to the signal quality parameters of the LiFi signals received by each LiFi receiver.
5. The LiFi communication control method of a 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 2, further comprising:
when a LiFi signal sending instruction is obtained, a first LiFi emitter or a second LiFi emitter in the mobile terminal is controlled to emit a LiFi signal, wherein the first LiFi emitter is located on the front side of the mobile terminal, and the second LiFi emitter is located on the back side of the mobile terminal.
7. An optical fidelity LiFi communication control device 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 of the current communication of the mobile terminal when a LiFi communication mode is started, and the mobile terminal comprises a plurality of LiFi receivers;
a second determining module, configured to determine a current communication orientation of the mobile terminal according to a location of the LiFi receiver in the current communication and a current placing orientation of the mobile terminal;
the judging module is used for judging whether the position of the mobile terminal changes or not;
the switching module is used for switching to one of other LiFi receivers according to the current communication direction if the position of the mobile terminal changes;
the position of the currently communicating LiFi receiver is the position of the currently communicating LiFi receiver in the mobile terminal, and the current communication orientation of the mobile terminal is the direction in which the LiFi receiver currently communicating with the mobile terminal receives the LiFi signal.
8. 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 processor is used for determining a LiFi receiver of the mobile terminal in current communication when a LiFi communication mode is started, determining the current communication direction of the mobile terminal according to the position of the LiFi receiver in current communication and the current placing direction of the mobile terminal, judging whether the position of the mobile terminal is changed, and switching to one of other LiFi receivers according to the current communication direction if the position of the mobile terminal is changed;
the LiFi downlink signal source is used for transmitting a LiFi signal to the mobile terminal;
the position of the currently communicating LiFi receiver is the position of the currently communicating LiFi receiver in the mobile terminal, and the current communication orientation of the mobile terminal is the direction in which the LiFi receiver currently communicating with the mobile terminal receives the LiFi signal.
9. The LiFi communication control system of the mobile terminal according to claim 8, wherein the mobile terminal comprises: the mobile terminal comprises a first LiFi receiver and a second LiFi receiver, wherein the first LiFi receiver is located on the front face of the mobile terminal, and the second LiFi receiver is located on the back face of the mobile terminal.
10. The LiFi communication control system of the mobile terminal, according to claim 8, 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 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.
11. The LiFi communication control system of the mobile terminal, as claimed in claim 8, 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 on, and determine the LiFi receiver of the current communication according to the signal quality parameter of the LiFi signal received by each LiFi receiver.
12. The LiFi communication control system of the mobile terminal according to claim 10, 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.
13. The LiFi communication control system of the mobile terminal as claimed in claim 12, 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.
14. The LiFi communication control system of the mobile terminal according to claim 9, wherein the mobile terminal further comprises: the mobile terminal comprises a first LiFi emitter and a second LiFi emitter, wherein the first LiFi emitter is located on the front face of the mobile terminal, and the second LiFi emitter is located on the back face of the mobile terminal.
15. The LiFi communication control system of the mobile terminal of claim 14, 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.
16. The LiFi communication control system of the mobile terminal, of claim 15, wherein the first TOF controller is connected to the first LiFi receiver and the first LiFi emitter through I2C data line, and wherein the second TOF controller is connected to the second LiFi receiver and the second LiFi emitter through I2C data line.
17. The LiFi communication control system of the mobile terminal as claimed in claim 14, wherein the first and second LiFi receivers are photo diodes or avalanche diodes, and the first and second LiFi emitters are laser emitters.
18. The LiFi communication control system of the mobile terminal, as claimed in claim 14, wherein the first LiFi emitter and the second LiFi emitter comprise:
an LED array;
a driver controlling a depth of the LEDs, wherein the driver controls a depth of the LED array in the first LiFi emitter and the second LiFi emitter to achieve angle adjustment of emitted light of the first LiFi emitter and the second LiFi emitter.
19. The LiFi communication control system of the mobile terminal, according to claim 8, wherein the plurality of LiFi receivers comprise: 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.
20. A mobile terminal, comprising: the LiFi receivers are used for receiving LiFi signals transmitted by the LiFi downlink signal source;
the processor is used for determining a LiFi receiver of the mobile terminal in current communication when a LiFi communication mode is started, determining the current communication direction of the mobile terminal according to the position of the LiFi receiver in current communication and the current placing direction of the mobile terminal, judging whether the position of the mobile terminal is changed, and switching to one of other LiFi receivers according to the current communication direction if the position of the mobile terminal is changed;
the position of the currently communicating LiFi receiver is the position of the currently communicating LiFi receiver in the mobile terminal, and the current communication orientation of the mobile terminal is the direction in which the LiFi receiver currently communicating with the mobile terminal receives the LiFi signal.
21. The mobile terminal of claim 20, comprising: the mobile terminal comprises a first LiFi receiver and a second LiFi receiver, wherein the first LiFi receiver is located on the front face of the mobile terminal, and the second LiFi receiver is located on the back face of the mobile terminal.
22. The mobile terminal of claim 20, 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 of a 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.
23. The mobile terminal of claim 20, 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 LiFi receiver of the current communication according to a signal quality parameter of the LiFi signal received by each LiFi receiver.
24. The mobile terminal of claim 22, 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.
25. The mobile terminal of claim 24, 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.
26. The mobile terminal of claim 21, wherein the mobile terminal further comprises: the mobile terminal comprises a first LiFi emitter and a second LiFi emitter, wherein the first LiFi emitter is located on the front face of the mobile terminal, and the second LiFi emitter is located on the back face of the mobile terminal.
27. The mobile terminal of claim 26, 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.
28. The mobile terminal of claim 27, 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.
29. The mobile terminal of claim 26, wherein said first and second LiFi receivers are photodiodes or avalanche diodes and said first and second LiFi emitters are laser emitters.
30. The mobile terminal of claim 26, wherein the first LiFi emitter and the second LiFi emitter comprise:
an LED array;
and a driver for controlling the depth of the LEDs, wherein the driver controls the depth of the LED array in the first and second LiFi emitters to achieve angle adjustment of the emitted light of the first and second LiFi emitters.
31. The mobile terminal of claim 20, 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.
CN201910577320.6A 2019-06-28 2019-06-28 LiFi communication control method and system for mobile terminal Active CN112152711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910577320.6A CN112152711B (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
CN201910577320.6A CN112152711B (en) 2019-06-28 2019-06-28 LiFi communication control method and system for mobile terminal

Publications (2)

Publication Number Publication Date
CN112152711A CN112152711A (en) 2020-12-29
CN112152711B true CN112152711B (en) 2022-07-26

Family

ID=73870125

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN112152711B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112953634A (en) * 2021-01-29 2021-06-11 Oppo广东移动通信有限公司 Optimization method of visible light communication transmission, electronic device and storage medium

Citations (1)

* 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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8891977B2 (en) * 2010-09-29 2014-11-18 Supreme Architecture Ltd. Receiver chip and method for on-chip multi-node visible light communication
US9680571B2 (en) * 2014-03-25 2017-06-13 Osram Sylvania Inc. Techniques for selective use of light-sensing devices in light-based communication
CN104869252A (en) * 2015-05-19 2015-08-26 广州大学 Superspeed data transmission mobile terminal based on LiFi
CN105450302B (en) * 2015-12-31 2018-05-29 中广核工程有限公司 It can be seen that light R-T unit, visible light communication terminal and visible light communication system
US9813150B1 (en) * 2016-09-23 2017-11-07 Qualcomm Incorporated Controllable selection of light-capture devices
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

Patent Citations (1)

* 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

Also Published As

Publication number Publication date
CN112152711A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
KR101709348B1 (en) Apparatus and method for generating visible signal according to data transmitting rate in visible light communication system
CN112152709B (en) Light fidelity LiFi control method and device of mobile terminal, mobile terminal and medium
CN112152711B (en) LiFi communication control method and system for mobile terminal
CN107845627A (en) More proximity detection optical sensors
CN104780238A (en) Handheld terminal, computer and visible light communication system
CN112152716B (en) LiFi communication control method and system for mobile terminal
CN112153184B (en) Mobile terminal
JP5334218B2 (en) Projector device and remote control method
EP3748872A1 (en) Electronic device
CN112152891B (en) Control system of household appliance, mobile terminal and method
CN112672121B (en) Mobile terminal screen projection system, mobile terminal, control method and projection display equipment
CN112994792B (en) Communication device of electronic equipment and electronic equipment
CN112152706B (en) Data transmission method, device, terminal, storage medium and electronic equipment
EP3789845B1 (en) Electronic device
CN112153358B (en) Projection system, mobile terminal and projector
CN112152710B (en) Data transmission method and device, electronic equipment and storage medium
CN112153183A (en) Mobile terminal and communication system
CN110311730A (en) Visible light communication method and device, system, electronic equipment, storage medium
EP3930219A1 (en) Free space optical communications method, and transmitter and receiver
CN112153189B (en) Mobile terminal and communication system
CN112152708A (en) Data transmission method, device, terminal, storage medium and electronic equipment
CN112150664A (en) Automobile data recorder system, automobile data recorder and mobile terminal
EP4319138A1 (en) Method for providing image, and electronic device supporting same
CN112865862B (en) Ambient light detection method and apparatus for optical communication between electronic devices
US10942578B2 (en) System and method for recognition of the gesture of bringing a mobile electronic device to a user ear

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