CN112291003B - Light fidelity LiFi communication control method and device of mobile terminal, terminal and medium - Google Patents

Light fidelity LiFi communication control method and device of mobile terminal, terminal and medium Download PDF

Info

Publication number
CN112291003B
CN112291003B CN201910660230.3A CN201910660230A CN112291003B CN 112291003 B CN112291003 B CN 112291003B CN 201910660230 A CN201910660230 A CN 201910660230A CN 112291003 B CN112291003 B CN 112291003B
Authority
CN
China
Prior art keywords
mobile terminal
lifi
communication control
relative
pointer
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
CN201910660230.3A
Other languages
Chinese (zh)
Other versions
CN112291003A (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 CN201910660230.3A priority Critical patent/CN112291003B/en
Publication of CN112291003A publication Critical patent/CN112291003A/en
Application granted granted Critical
Publication of CN112291003B publication Critical patent/CN112291003B/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/80Optical aspects relating to the use of optical transmission for specific applications, not provided for in groups H04B10/03 - H04B10/70, e.g. optical power feeding or optical transmission through water
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application provides a light fidelity LiFi communication control method, a device, a terminal and a medium of a mobile terminal, wherein the method comprises the following steps: establishing LiFi connection between the first mobile terminal and the second mobile terminal; acquiring a first position and a second position of a first mobile terminal and a second mobile terminal; generating a relative angle of the second mobile terminal relative to the first mobile terminal according to the first position and the second position; generating a rotation angle of the pointer according to a relative angle of the second mobile terminal relative to the first mobile terminal; and displaying a pointer among the first mobile terminals. The method and the device have the advantages that the rotating angle of the pointer is automatically generated according to the positions of the two communication parties and displayed in the mobile terminal, so that a user can adjust the placing position of the mobile terminal according to the rotating angle of the pointer displayed in the mobile terminal, and then the user aligns with the opposite communication terminal to carry out LiFi communication, the energy of the user is saved, the determined aligning direction is accurate and reliable, the light energy loss in the LiFi communication process is reduced, and the data transmission rate is improved.

Description

Light fidelity LiFi communication control method and device of mobile terminal, terminal and medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a terminal, and a medium for controlling an optical fidelity LiFi communication of a mobile terminal.
Background
Light Fidelity (LiFi) is a new wireless transmission technology that uses the visible Light spectrum, such as the Light emitted from a bulb, for data transmission. LiFi has the characteristics of low radiation, low energy consumption, low carbon and environmental protection, and gradually becomes a research hotspot in the field of the Internet.
When carrying out the liFi communication, because light is along straight line transmission, can't pierce through the object, if light is blockked, then the receiving terminal can't receive the signal, consequently in order to guarantee that the both sides of communication can normal communication, need align the LiFi transmitter and the LiFi receiver that the both sides of communication included respectively each other.
In the related art, when a user uses a communication device to perform LiFi communication with other devices, i.e., opposite communication terminals, the user usually determines the direction of the opposite communication terminals, i.e., the alignment direction, according to the respective positions of the two communication terminals, and then manually adjusts the placement position of the communication device, so as to achieve mutual alignment of the LiFi emitter and the LiFi receiver. This kind of mode needs the position of user's real-time visual communication opposite terminal, and then adjusts communication equipment's locating position according to communication opposite terminal position, and the operation process is more loaded down with trivial details, and hardly finds the best direction and aims at, consequently not only wastes user's energy, still can cause the alignment direction inaccurate, influences the information transmission effect.
Disclosure of Invention
The embodiment of the application provides a light fidelity LiFi communication control method and device for a mobile terminal, the mobile terminal and a computer readable storage medium, and the method and device are used for solving the technical problems that in the related technology, a user judges the direction of a communication opposite end, namely the alignment direction, according to the respective positions of two communication parties, and then manually adjusts the placement position of communication equipment, so that the mutual alignment of a LiFi emitter and a LiFi receiver is realized, the operation process is complex, and the optimal direction is difficult to find for alignment, so that not only is the energy of the user wasted, but also the alignment direction is inaccurate, and the information transmission effect is influenced.
To this end, an embodiment of a first aspect of the present application provides a method for controlling an optical fidelity, LiFi, communication of a mobile terminal, including: establishing LiFi connection between the first mobile terminal and the second mobile terminal; acquiring a first position and a second position of the first mobile terminal and the second mobile terminal; generating a relative angle of the second mobile terminal with respect to the first mobile terminal according to the first position and the second position; generating a rotation angle of a pointer according to a relative angle of the second mobile terminal relative to the first mobile terminal; and displaying the pointer in the first mobile terminal.
An embodiment of a second aspect of the present application provides an optical fidelity LiFi communication control apparatus for a mobile terminal, including: the connection establishing module is used for establishing LiFi connection between the first mobile terminal and the second mobile terminal; the acquisition module is used for acquiring a first position and a second position of the first mobile terminal and the second mobile terminal; the generating module is used for generating a relative angle of the second mobile terminal relative to the first mobile terminal according to the first position and the second position, and generating a rotation angle of the pointer according to the relative angle of the second mobile terminal relative to the first mobile terminal; and a display module for displaying the pointer in the first mobile terminal.
An embodiment of a third aspect of the present application provides a mobile terminal, including a memory, a processor, a LiFi communicator, and a computer program stored in the memory and executable on the processor, where when the processor executes the computer program, the LiFi communication control method of the mobile terminal according to the embodiment of the first aspect is implemented.
A fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is configured to, when executed by a processor, implement the optical fidelity LiFi communication control method for a mobile terminal according to the first aspect.
The technical scheme disclosed in the application has the following beneficial effects:
the method and the device have the advantages that the rotation angle of the pointer is automatically generated according to the positions of the two communication parties and displayed in the mobile terminal, so that a user can adjust the placing position of the mobile terminal according to the rotation angle of the pointer displayed in the mobile terminal, and then the user aligns with the opposite communication party to carry out LiFi communication.
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 illustrating a method for controlling an optical fidelity LiFi communication in a mobile terminal according to an embodiment of the present application;
fig. 2 is a diagram illustrating an example of a method for controlling an optical fidelity LiFi communication in a mobile terminal according to an embodiment of the present application;
fig. 3 is a diagram illustrating an example of an optical fidelity LiFi communication control method of a mobile terminal according to another embodiment of the present application;
fig. 4 is a diagram illustrating an example of an optical fidelity LiFi communication control method of a mobile terminal according to another embodiment of the present application;
fig. 5 is a diagram illustrating an example of an optical fidelity LiFi communication control method of a mobile terminal according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of an optical fidelity LiFi communication control apparatus of a mobile terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an optical fidelity LiFi communication control apparatus of a mobile terminal according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
Each embodiment of this application is directed at among the correlation technique, the user judges the direction of communication opposite end promptly according to the respective position of both sides of communication and aims at the direction, and then manual regulation communication equipment's locating place, in order to realize the mode that LiFi transmitter and LiFi receiver aim at each other, the operation process is loaded down with trivial details, and hardly find the best direction and aim at, consequently not only waste user's energy, still can cause the alignment direction inaccurate, influence the technical problem of information transmission effect, provide a mobile terminal's light fidelity LiFi communication control method.
The LiFi communication control method of the mobile terminal, provided by the embodiment of the application, includes the steps of firstly establishing LiFi connection between a first mobile terminal and a second mobile terminal, then obtaining a first position and a second position of the first mobile terminal and the second mobile terminal, then generating a relative angle of the second mobile terminal relative to the first mobile terminal according to the first position and the second position, further generating a rotation angle of a pointer according to the relative angle of the second mobile terminal relative to the first mobile terminal, and finally displaying the pointer in the first mobile terminal. The method and the device have the advantages that the rotation angle of the pointer is automatically generated according to the positions of the two communication parties and displayed in the mobile terminal, so that a user can adjust the placing position of the mobile terminal according to the rotation angle of the pointer displayed in the mobile terminal, and then the user aligns with the opposite communication party to carry out LiFi communication.
Hereinafter, an optical fidelity LiFi communication control method, an apparatus, a mobile terminal, and a computer-readable storage medium of the mobile terminal according to embodiments of the present application will be described with reference to the accompanying drawings.
First, with reference to fig. 1, a method for controlling an optical fidelity LiFi communication of a mobile terminal according to an embodiment of the present application is specifically described. Fig. 1 is a flowchart illustrating an optical fidelity LiFi communication control method of a mobile terminal according to an embodiment of the present application.
It should be noted that the optical fidelity LiFi communication control method for the mobile terminal provided in the embodiment of the present application is applied to a mobile terminal having a LiFi communicator, the mobile terminal communicates with other devices through the LiFi communicator, because the bottom layer of the Li-Fi protocol is compatible with the WiFi802.11 baseband, when transmitting data, a TDD protocol in WiFi can be used to achieve one-to-many or many-to-one simultaneous transmission, and the Li-Fi technology has very high security when transmitting data, because visible light can only be transmitted along a straight line, and has good directivity, only a person on the light transmission straight line can capture information, thereby using the LiFi technology to perform communication, and improving the security of data transmission. In addition, because the optical communication mode is adopted to transmit data, the frequency band is not limited, so that the interference is avoided, and the reliability of data transmission is ensured. And because the low time delay of LiFi, can be applied to the scene that needs the data of quick transmission, for example share the file fast, exchange business card contact means, watch video jointly etc..
As shown in fig. 1, the optical fidelity LiFi communication control method of the mobile terminal of the present application may include the following steps:
step 101, establishing a LiFi connection between a first mobile terminal and a second mobile terminal.
Specifically, the LiFi communication control method for mobile terminals according to the embodiments of the present application may be implemented by the LiFi communication control device for mobile terminals according to the embodiments of the present application, which is hereinafter referred to as a communication control device for short. Wherein the communication control means may be configured in the first mobile terminal to display the pointer in the first mobile terminal after generating the rotation angle of the pointer. The first mobile terminal and the second mobile terminal in the embodiment of the present application may be any hardware device capable of performing LiFi communication by using the LiFi communicator included in the first mobile terminal and the second mobile terminal, such as a smart phone, a tablet computer, a personal digital assistant, and the like. The first mobile terminal and the second mobile terminal are taken as smart phones for illustration.
In an exemplary embodiment, when the first mobile terminal performs LiFi communication with the second mobile terminal, the first mobile terminal may serve as a light emitting end, and the second mobile terminal may serve as a light receiving end. At this time, the LiFi communicator in the first mobile terminal may include an LED array. The LED array can emit visible light and can also work in an infrared frequency band, so that the data transmission distance of other equipment during LiFi communication is increased, and the LED array is not limited by the application. In addition, the first mobile terminal may further include a first LiFi transmission module therein. Accordingly, the second mobile terminal may include a Photo Diode (PD) receiver and a second LiFi transmission module. When carrying out the liFi communication, first liFi transmission module can treat that the transmission data encode in order to form the coded data to send away the coded data through the LED array, after the PD receiver of second mobile terminal received the coded data, second liFi transmission module can decode the coded data that the PD receiver received, thereby acquires the transmission data, realizes first mobile terminal and second mobile terminal's communication.
In an exemplary embodiment, when the first mobile terminal performs LiFi communication with the second mobile terminal, the first mobile terminal may also serve as a light receiving end, and the second mobile terminal serves as a light emitting end. At this time, the LiFi communicator in the first mobile terminal may include a PD receiver. The PD receiver can receive visible light and can also work in an infrared frequency band, so that the data transmission distance of LiFi communication with other equipment is increased, and the PD receiver is not limited by the application. In addition, a third LiFi transmission module may be further included in the first mobile terminal. Accordingly, the second mobile terminal may include an LED array and a fourth LiFi transfer module. When carrying out the liFi communication, fourth liFi transmission module can treat that the transmission data encode in order to form the coded data to send away the coded data through the LED array, after first mobile terminal's PD receiver received the coded data, third liFi transmission module can decode the coded data that the PD receiver received, thereby acquires the transmission data, realizes first mobile terminal and second mobile terminal's communication.
It should be noted that, when the first mobile terminal and the second mobile terminal establish the LiFi connection, the two parties may handshake first, and then data transmission is performed by the light emitting ends in the first mobile terminal and the second mobile terminal, and the light receiving end replies the confirmation information after receiving the confirmation information, and if the light receiving end does not receive data within a certain time, the light emitting end may generate an overtime signal by itself and retransmit the data, so as to ensure that the light receiving end can receive the data.
Step 102, acquiring a first position and a second position of a first mobile terminal and a second mobile terminal.
Specifically, the communication control device may acquire the first location of the first mobile terminal in any location-enabled manner, such as a Global Positioning System (GPS) or a network System in the first mobile terminal.
In addition, a phased antenna may be installed in the first mobile terminal such that beam scanning is performed by the phased array antenna to acquire the second location of the second mobile terminal. Alternatively, the communication control device may acquire the second location of the second mobile terminal in other manners, which is not limited in this application.
And 103, generating a relative angle of the second mobile terminal relative to the first mobile terminal according to the first position and the second position.
Specifically, the relative direction between the second mobile terminal and the first mobile terminal can be determined through the acquired first position of the first mobile terminal and the acquired second position of the second mobile terminal, and a reference direction is determined, so that the angle of the included angle between the relative direction and the reference direction is used as the relative angle of the second mobile terminal relative to the first mobile terminal.
In an exemplary embodiment, taking the first mobile terminal as the light emitting end as an example, the reference direction is related to the setting position of the LiFi communicator, the light emitting angle, and other factors. As shown in fig. 2, assuming that the LiFi communicator of the first mobile terminal is disposed at the top of the first mobile terminal and the light emission angle is B, a direction right at the light emission angle, i.e., a direction (a direction) perpendicular to the line direction (B direction) of the top of the housing of the first mobile terminal may be set as a reference direction.
In a specific implementation, the relative angle of the second mobile terminal with respect to the first mobile terminal may be generated in the following manner.
And 103a, acquiring the orientation of the first mobile terminal according to the geomagnetic sensor of the first mobile terminal.
And 103b, generating a relative angle of the second mobile terminal relative to the first mobile terminal according to the orientation, the first position and the second position of the first mobile terminal.
In an exemplary embodiment, the orientation of the first mobile terminal may be obtained through a geomagnetic sensor of the first mobile terminal, or may also be obtained through other manners, which is not limited in this application.
For example, as shown in fig. 3, assuming that a direction (a direction) perpendicular to a line direction (dotted line direction) along the top of the housing of the first mobile terminal is set as a reference direction, when the direction of the first mobile terminal is as shown in fig. 3, if it is determined that a relative direction of the second mobile terminal and the first mobile terminal is a C direction according to the first position of the first mobile terminal and the second position of the second mobile terminal, an included angle a between the C direction and the a direction is a relative angle of the second mobile terminal with respect to the first mobile terminal.
And 104, generating a rotation angle of the pointer according to the relative angle of the second mobile terminal relative to the first mobile terminal.
Step 104, displaying a pointer in the first mobile terminal.
It can be understood that, in the embodiment of the present application, after the first mobile terminal and the second mobile terminal establish the LiFi connection, a pointer may be displayed on a display interface of the first mobile terminal, a rotation angle of the pointer may represent a relative angle of the second mobile terminal with respect to the first mobile terminal, and a pointing direction of the pointer may represent a direction of the second mobile terminal with respect to the first mobile terminal, so that a user may adjust a placement manner of the first mobile terminal according to the pointer displayed in the first mobile terminal, so that the first mobile terminal and the second mobile terminal are aligned to perform the LiFi communication.
The relative angle of the second mobile terminal relative to the first mobile terminal is the rotation angle of the pointer. The direction of the second mobile terminal relative to the first mobile terminal is the pointing direction of the pointer.
It should be noted that, in this embodiment of the application, when the first mobile terminal and the second mobile terminal establish a LiFi connection, the second mobile terminal may also perform the same operation as the first mobile terminal, so that a pointer similar to that in the first mobile terminal may also be displayed in the second mobile terminal, so as to enable a user to which the second mobile terminal belongs to adjust a placement manner of the second mobile terminal according to the pointer displayed in the second mobile terminal, so that the second mobile terminal and the first mobile terminal are aligned to perform LiFi communication.
In practical application, the pointers displayed in the first mobile terminal and the second mobile terminal can be changed in real time according to the first position and the second position of the first mobile terminal and the second mobile terminal, the position of any one mobile terminal or the direction of the any one mobile terminal relative to the other mobile terminal is changed, and the pointer displayed in the other mobile terminal can also be changed in real time, so that users of both communication parties can adjust the placing position of the mobile terminal in real time according to the display of the pointer.
For example, assuming that the positions of the mobile terminal a and the mobile terminal B are shown in fig. 4 and 5, the orientations of the mobile terminal a and the mobile terminal B are parallel to each other, the relative angle of the mobile terminal B with respect to the mobile terminal a is a, and the relative angle of the mobile terminal a with respect to the mobile terminal B is also a, the pointers shown in fig. 4 may be displayed in both the mobile terminal a and the mobile terminal B. The rotation angle of the pointer displayed in the mobile terminal a is a, the direction of the pointer points to the direction of the mobile terminal B relative to the mobile terminal a, the rotation angle of the pointer displayed in the mobile terminal B is a, and the direction of the pointer points to the direction of the mobile terminal a relative to the mobile terminal B. When the mobile terminal a and the mobile terminal B are adjusted to face the directions indicated by the dotted arrows as shown in the right side of fig. 5, respectively, the mobile terminal a and the mobile terminal B are aligned, and the energy loss of light is minimized and the data transmission rate is fastest when the LiFi communication is performed in this direction.
In fig. 4, the dotted arrow indicates a standard position, i.e., a pointer position when the mobile terminal a is aligned with the mobile terminal B, corresponding to the reference direction mentioned earlier in the present application, and the solid arrow indicates a current pointer position. When the solid arrow coincides with the dashed arrow position, it indicates that mobile terminal a is currently aligned with mobile terminal B. Taking the pointer displayed in the mobile terminal a as an example, when the solid line arrow is shifted from the direction of the dotted line arrow, it indicates that the mobile terminal a is currently shifted from the alignment direction.
Note that, in the case shown in fig. 4, the mobile terminal a and the mobile terminal B are oriented parallel to each other, and in this case, the pointers displayed on the mobile terminal a and the mobile terminal B are both located on the left side of the standard position and have a size. When the orientations of the mobile terminal a and the mobile terminal B are not parallel to each other, the rotation angles and the directions of the pointers displayed in the two mobile terminals may be different.
Further, in order to ensure accuracy of the direction and angle information displayed by the pointer in the first mobile terminal, in this embodiment of the application, the second mobile terminal may further obtain a third position of the first mobile terminal and a fourth position of the second mobile terminal, and send the third position and the fourth position to the communication control device of the first mobile terminal, so that the communication control device of the first mobile terminal may compare the first position obtained by the communication control device with the third position obtained by the second mobile terminal, and compare the second position obtained by the communication control device with the fourth position obtained by the second mobile terminal. If the communication control device of the first mobile terminal determines that the difference value between the first position and the third position and the difference value between the second position and the fourth position are both within the preset difference value range, the first position and the second position can be determined to be accurate, and then follow-up operation is executed according to the first position and the second position.
In addition, in order to ensure the accuracy of the direction and angle information displayed by the pointer in the second mobile terminal, the first mobile terminal may also send the first position and the second position acquired by the first mobile terminal to the second mobile terminal, so that the second mobile terminal can determine whether the third position of the first mobile terminal and the fourth position of the second mobile terminal acquired by the second mobile terminal are accurate according to the first position and the second position, and then perform subsequent operations when the third position and the fourth position are accurate.
Further, in order to enable the user to know more information through the display interface of the first mobile terminal, in the embodiment of the present application, other information related to the LiFi communication may also be displayed. For example, in the embodiment of the present application, the distance between the second mobile terminal and the first mobile terminal may be detected, so that the distance is displayed in the first mobile terminal as shown in fig. 4. In addition, it is also possible to detect an information transmission speed between the second mobile terminal and the first mobile terminal, thereby displaying the information transmission speed in the first mobile terminal. In addition, information such as optical signal intensity during LiFi communication may be displayed, which is not limited in the present application.
Specifically, the distance between the first mobile terminal and the second mobile terminal can be detected by a distance sensor in the first mobile terminal by using the principle of the "time-of-flight method". Or after the first mobile terminal and the second mobile terminal establish the LiFi connection, the signal intensity of the light signal sent by the second mobile terminal may be detected, and the decrease in the light signal intensity may be caused by the increase in the distance, so that the distance between the first mobile terminal and the second mobile terminal may be determined according to the light signal intensity. Alternatively, the distance between the first mobile terminal and the second mobile terminal may be detected in other manners, which is not limited in this application.
The LiFi communication control method of the mobile terminal, provided by the embodiment of the application, includes the steps of firstly establishing LiFi connection between a first mobile terminal and a second mobile terminal, then obtaining a first position and a second position of the first mobile terminal and the second mobile terminal, then generating a relative angle of the second mobile terminal relative to the first mobile terminal according to the first position and the second position, further generating a rotation angle of a pointer according to the relative angle of the second mobile terminal relative to the first mobile terminal, and finally displaying the pointer in the first mobile terminal. Therefore, the rotation angle of the pointer is automatically generated according to the positions of the two communication parties and displayed in the mobile terminal, so that a user can adjust the placing position of the mobile terminal according to the rotation angle of the pointer displayed in the mobile terminal, and then the mobile terminal is aligned with the opposite communication party to carry out LiFi communication.
Next, with reference to fig. 6, a light fidelity LiFi communication control device of a mobile terminal according to an embodiment of the present application will be described. Fig. 6 is a schematic structural diagram of an optical fidelity LiFi communication control apparatus of a mobile terminal according to an embodiment of the present application.
As shown in fig. 6, an optical fidelity LiFi communication control device of a mobile terminal, hereinafter referred to as a communication control device, includes: the device comprises a connection establishing module 11, an obtaining module 12, a generating module 13 and a display module 14.
The connection establishing module 11 is configured to establish a LiFi connection between the first mobile terminal and the second mobile terminal;
an obtaining module 12, configured to obtain first and second positions of a first mobile terminal and a second mobile terminal;
the generating module 13 is configured to generate a relative angle of the second mobile terminal with respect to the first mobile terminal according to the first position and the second position, and generate a rotation angle of the pointer according to the relative angle of the second mobile terminal with respect to the first mobile terminal; and
a display module 14 for displaying a pointer in the first mobile terminal.
Specifically, the communication control device may be configured in the first mobile terminal to execute the optical fidelity LiFi communication control method of the mobile terminal in the foregoing embodiment. The first mobile terminal and the second mobile terminal in the embodiment of the present application may be any hardware device capable of performing LiFi communication by using the LiFi communicator included in the first mobile terminal and the second mobile terminal, such as a smart phone, a tablet computer, a personal digital assistant, and the like. The first mobile terminal and the second mobile terminal are taken as smart phones for illustration.
In an exemplary embodiment, the LiFi communicator is disposed on top of the first mobile terminal, wherein the generating module 13 is specifically configured to:
acquiring the orientation of a first mobile terminal according to a geomagnetic sensor of the first mobile terminal;
and generating a relative angle of the second mobile terminal relative to the first mobile terminal according to the orientation, the first position and the second position of the first mobile terminal.
It should be noted that, for the implementation process and the technical principle of the LiFi communication control apparatus of the mobile terminal in this embodiment, refer to the foregoing explanation of the LiFi communication control method of the mobile terminal in the first embodiment, and no further description is given here.
The light fidelity LiFi communication control device of the mobile terminal, provided by the embodiment of the application, firstly establishes LiFi connection between the first mobile terminal and the second mobile terminal, then obtains a first position and a second position of the first mobile terminal and the second mobile terminal, generates a relative angle of the second mobile terminal relative to the first mobile terminal according to the first position and the second position, further generates a rotation angle of the pointer according to the relative angle of the second mobile terminal relative to the first mobile terminal, and finally displays the pointer in the first mobile terminal. Therefore, the rotation angle of the pointer is automatically generated according to the positions of the two communication parties and displayed in the mobile terminal, so that a user can adjust the placing position of the mobile terminal according to the rotation angle of the pointer displayed in the mobile terminal, and then the mobile terminal is aligned with the opposite communication party to carry out LiFi communication.
The following further describes the optical fidelity LiFi communication control apparatus of the mobile terminal according to the embodiment of the present application with reference to fig. 7. Fig. 7 is a schematic structural diagram of an optical fidelity LiFi communication control apparatus of a mobile terminal according to another embodiment of the present application.
As shown in fig. 7, the optical fidelity LiFi communication control apparatus of the mobile terminal may further include, based on the information shown in fig. 6:
a first detection module 21, configured to detect a distance between the second mobile terminal and the first mobile terminal;
a receiving module 22, configured to receive the third location and the fourth location sent by the second mobile terminal;
a comparison module 23, configured to compare the first position and the second position with the third position and the fourth position, respectively;
and a sending module 24, configured to send the first location and the second location to the second mobile terminal.
Correspondingly, the display module 14 is further configured to display the distance in the first mobile terminal.
The light fidelity LiFi communication control device of the mobile terminal, provided by the embodiment of the application, firstly establishes LiFi connection between the first mobile terminal and the second mobile terminal, then obtains a first position and a second position of the first mobile terminal and the second mobile terminal, generates a relative angle of the second mobile terminal relative to the first mobile terminal according to the first position and the second position, further generates a rotation angle of the pointer according to the relative angle of the second mobile terminal relative to the first mobile terminal, and finally displays the pointer in the first mobile terminal. Therefore, the rotation angle of the pointer is automatically generated according to the positions of the two communication parties and displayed in the mobile terminal, so that a user can adjust the placing position of the mobile terminal according to the rotation angle of the pointer displayed in the mobile terminal, and then the mobile terminal is aligned with the opposite communication party to carry out LiFi communication.
In order to implement the above embodiments, the present application further provides a mobile terminal.
Fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
As shown in fig. 8, the mobile terminal includes: the device comprises a memory, a processor, a LiFi communicator and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the computer program, the LiFi communication control method of the mobile terminal is realized according to the embodiment in FIG. 1.
It should be noted that, for the implementation process and the technical principle of the mobile terminal of this embodiment, reference is made to the foregoing explanation of the light fidelity LiFi communication control method of the mobile terminal of the embodiment described in fig. 1, and details are not repeated here.
The mobile terminal provided by the embodiment of the application establishes the LiFi connection with the second mobile terminal, then obtains the first position and the second position of the mobile terminal and the second mobile terminal, generates the relative angle of the second mobile terminal relative to the mobile terminal according to the first position and the second position, further generates the rotation angle of the pointer according to the relative angle of the second mobile terminal relative to the mobile terminal, and finally displays the pointer in the mobile terminal. Therefore, the rotation angle of the pointer is automatically generated according to the positions of the two communication parties and displayed in the mobile terminal, so that a user can adjust the placing position of the mobile terminal according to the rotation angle of the pointer displayed in the mobile terminal, and then the mobile terminal is aligned with the opposite communication party to carry out LiFi communication.
To implement the above embodiments, the present application also provides a computer-readable storage medium.
The computer-readable storage medium stores thereon a computer program, which when executed by a processor, implements the optical fidelity LiFi communication control method for the mobile terminal according to the first aspect.
To achieve the above embodiments, the present application further proposes a computer program, which when the instructions in the computer program product are executed by a processor, executes the optical fidelity LiFi communication control method of the mobile terminal according to the foregoing embodiments.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. An optical fidelity LiFi communication control method of a mobile terminal is characterized by comprising the following steps:
establishing LiFi connection between the first mobile terminal and the second mobile terminal;
acquiring a first position and a second position of the first mobile terminal and the second mobile terminal;
generating a relative angle of the second mobile terminal with respect to the first mobile terminal according to the first position and the second position;
generating a rotation angle of a pointer according to a relative angle of the second mobile terminal relative to the first mobile terminal; and
displaying the pointer in the first mobile terminal;
before the generating the relative angle of the second mobile terminal with respect to the first mobile terminal according to the first position and the second position, the method further includes:
the first mobile terminal receives a third position and a fourth position sent by the second mobile terminal;
the first mobile terminal compares the first and second locations with the third and fourth locations, respectively, to determine whether the first and second locations are accurate.
2. The LiFi communication control method of a mobile terminal according to claim 1, further comprising:
detecting the distance between the second mobile terminal and the first mobile terminal;
displaying the distance among the first mobile terminals.
3. The LiFi communication control method of a mobile terminal according to claim 1, wherein a LiFi communicator is disposed on top of the first mobile terminal, wherein the generating a relative angle of the second mobile terminal with respect to the first mobile terminal according to the first position and the second position comprises:
acquiring the orientation of the first mobile terminal according to a geomagnetic sensor of the first mobile terminal;
and generating a relative angle of the second mobile terminal relative to the first mobile terminal according to the orientation of the first mobile terminal, the first position and the second position.
4. The LiFi communication control method of a mobile terminal according to claim 1, further comprising:
and the first mobile terminal sends the first position and the second position to the second mobile terminal.
5. An optical fidelity, LiFi, communication control apparatus of a mobile terminal, comprising:
the connection establishing module is used for establishing LiFi connection between the first mobile terminal and the second mobile terminal;
the acquisition module is used for acquiring a first position and a second position of the first mobile terminal and the second mobile terminal;
the generating module is used for generating a relative angle of the second mobile terminal relative to the first mobile terminal according to the first position and the second position, and generating a rotation angle of the pointer according to the relative angle of the second mobile terminal relative to the first mobile terminal; and
a display module, configured to display the pointer in the first mobile terminal;
the receiving module is used for receiving the third position and the fourth position sent by the second mobile terminal;
a comparison module to compare the first and second locations with the third and fourth locations, respectively, to determine whether the first and second locations are accurate.
6. The apparatus for controlling LiFi communication of a mobile terminal according to claim 5, further comprising:
the first detection module is used for detecting the distance between the second mobile terminal and the first mobile terminal;
the display module is further configured to display the distance in the first mobile terminal.
7. The LiFi communication control device of claim 5, wherein the LiFi communicator is disposed on top of the first mobile terminal, and wherein the generating module is specifically configured to:
acquiring the orientation of the first mobile terminal according to a geomagnetic sensor of the first mobile terminal;
and generating a relative angle of the second mobile terminal relative to the first mobile terminal according to the orientation of the first mobile terminal, the first position and the second position.
8. The apparatus for controlling LiFi communication of a mobile terminal according to claim 5, further comprising:
and the sending module is used for sending the first position and the second position to the second mobile terminal.
9. A mobile terminal, comprising a memory, a processor, a LiFi communicator, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements the LiFi communication control method of the mobile terminal according to any one of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the optical fidelity LiFi communication control method of a mobile terminal according to any one of claims 1 to 4.
CN201910660230.3A 2019-07-22 2019-07-22 Light fidelity LiFi communication control method and device of mobile terminal, terminal and medium Active CN112291003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910660230.3A CN112291003B (en) 2019-07-22 2019-07-22 Light fidelity LiFi communication control method and device of mobile terminal, terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910660230.3A CN112291003B (en) 2019-07-22 2019-07-22 Light fidelity LiFi communication control method and device of mobile terminal, terminal and medium

Publications (2)

Publication Number Publication Date
CN112291003A CN112291003A (en) 2021-01-29
CN112291003B true CN112291003B (en) 2022-03-22

Family

ID=74419042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910660230.3A Active CN112291003B (en) 2019-07-22 2019-07-22 Light fidelity LiFi communication control method and device of mobile terminal, terminal and medium

Country Status (1)

Country Link
CN (1) CN112291003B (en)

Families Citing this family (2)

* 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
CN113364845B (en) * 2021-05-31 2023-08-18 维沃移动通信有限公司 File transmission method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5903374A (en) * 1995-03-10 1999-05-11 Nec Corporation Portable electronic apparatus with infrared communication function
CN103957060A (en) * 2014-05-21 2014-07-30 中国人民解放军信息工程大学 Visible light receiving device and visible light communication method
CN205725758U (en) * 2016-04-26 2016-11-23 深圳光启合众科技有限公司 Optical communication system and movable equipment
CN106888057A (en) * 2017-01-13 2017-06-23 维沃移动通信有限公司 The method of reseptance and mobile terminal of a kind of optical signal
CN109217930A (en) * 2018-10-23 2019-01-15 湖北航天技术研究院总体设计所 A kind of portable laser communication device and its application method
CN109428648A (en) * 2017-08-30 2019-03-05 中车株洲电力机车研究所有限公司 Realize the method and device of wireless optical sending and receiving end alignment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05153063A (en) * 1991-11-26 1993-06-18 Matsushita Electric Works Ltd Optical axis adjusting structure for optical space transmission device
KR102651726B1 (en) * 2016-02-19 2024-04-02 삼성전자주식회사 Electronic device including light emitting device and operating method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5903374A (en) * 1995-03-10 1999-05-11 Nec Corporation Portable electronic apparatus with infrared communication function
CN103957060A (en) * 2014-05-21 2014-07-30 中国人民解放军信息工程大学 Visible light receiving device and visible light communication method
CN205725758U (en) * 2016-04-26 2016-11-23 深圳光启合众科技有限公司 Optical communication system and movable equipment
CN106888057A (en) * 2017-01-13 2017-06-23 维沃移动通信有限公司 The method of reseptance and mobile terminal of a kind of optical signal
CN109428648A (en) * 2017-08-30 2019-03-05 中车株洲电力机车研究所有限公司 Realize the method and device of wireless optical sending and receiving end alignment
CN109217930A (en) * 2018-10-23 2019-01-15 湖北航天技术研究院总体设计所 A kind of portable laser communication device and its application method

Also Published As

Publication number Publication date
CN112291003A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
US20240188063A1 (en) Communication method and apparatus, terminal, base station, and storage medium
KR102226820B1 (en) Method for sharing data and electronic device thereof
EP3016442A2 (en) Method for scanning neighboring devices and electronic device thereof
CN112291003B (en) Light fidelity LiFi communication control method and device of mobile terminal, terminal and medium
US20150098348A1 (en) Wireless communicaton device, wireless communication system, wireless communication method, and wireless apparatus
US20190223168A1 (en) Downlink control channel transmission method, receiving network element, and sending network element
KR20220140766A (en) A method for transmitting and receiving a signal in a wireless communication system and an apparatus supporting the same
EP3383080B1 (en) Electronic device and coverage compensation method thereof for short range communication
EP3924752B1 (en) Framework and methods to control exchange of ranging result
EP3681215A1 (en) Method and device for sending positioning signal
CN107801253B (en) Device pairing method, device pairing apparatus and computer-readable storage medium
CN112152709B (en) Light fidelity LiFi control method and device of mobile terminal, mobile terminal and medium
EP3726750A1 (en) Communication system between electronic devices, method of communication between electronic devices, and electronic device
CN115696562A (en) Positioning method, device, terminal and medium
KR20230122122A (en) Radar communication unified signal transmission method, reception method and device
CN113037375B (en) LiFi communication control method, device, equipment and medium for electronic equipment
CN112152707A (en) Light fidelity LiFi communication control method and device in mobile terminal, terminal and medium
CN112469131B (en) Method for configuring SRS resource symbol number and terminal equipment
US20230025646A1 (en) Terminal devices, communication methods, and communication systems
KR20220148700A (en) Method and apparatus for controlling non-uwb (ultra wide band) device using uwb
CN112153442A (en) Playing method, device, terminal, television equipment, storage medium and electronic equipment
WO2023185910A1 (en) Information indication method and apparatus, information receiving method and apparatus, device, and storage medium
US20240147414A1 (en) Measurement Method and Apparatus, Communications Device, Storage Medium, and System
CN112150654A (en) Card punching method, device, terminal, card puncher, storage medium and electronic equipment
CN112152712B (en) Communication system, communication method, and communication device

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