CN112152710B - Data transmission method and device, electronic equipment and storage medium - Google Patents

Data transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112152710B
CN112152710B CN201910577319.3A CN201910577319A CN112152710B CN 112152710 B CN112152710 B CN 112152710B CN 201910577319 A CN201910577319 A CN 201910577319A CN 112152710 B CN112152710 B CN 112152710B
Authority
CN
China
Prior art keywords
module
light emitting
light
target
sliding mechanism
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
CN201910577319.3A
Other languages
Chinese (zh)
Other versions
CN112152710A (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 CN201910577319.3A priority Critical patent/CN112152710B/en
Publication of CN112152710A publication Critical patent/CN112152710A/en
Application granted granted Critical
Publication of CN112152710B publication Critical patent/CN112152710B/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

Abstract

The application provides a data transmission method, a data transmission device, electronic equipment and a storage medium, wherein the method comprises the steps of detecting whether request information based on LiFi communication is received or not; if the request information is received, triggering the sliding mechanism to slide out to protrude out of the side wall of the body; and controlling the LiFi transmission module to transmit the request content corresponding to the request information to the second LiFi transmission module through the light emission module, wherein the second LiFi transmission module is arranged in the second electronic device. The method and the device can avoid occupying the surface area of the mobile terminal, and ensure the integrity and the attractiveness of the shell of the mobile terminal.

Description

Data transmission method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic devices, and in particular, to a data transmission method and apparatus, an electronic device, and a storage medium.
Background
The Light Fidelity (LiFi) technology is a Light internet access technology, and Light emitted by an LED lighting lamp is used as a transmission tool of a network signal to transmit data, so as to realize illumination internet access. 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. In some application scenarios, for example, when a user browses in a scenic spot, if the user is interested in a certain scenic spot, there may be a need to timely and conveniently acquire scenic spot explanation information.
At present, when the LiFi technology is applied to a mobile terminal, an LED lamp needs to be additionally arranged in the mobile terminal, and an opening is additionally formed in a position corresponding to the LED lamp on a shell of the mobile terminal, so that the area of the surface area of the mobile terminal is occupied, and the attractiveness of the mobile terminal is affected.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present application is to provide a data transmission method, an apparatus, an electronic device, and a storage medium, which can avoid occupying the surface area of a mobile terminal, and ensure the integrity and the aesthetic property of the mobile terminal housing.
In order to achieve the above object, a data transmission method provided in an embodiment of a first aspect of the present application is applied to a first electronic device, where the first electronic device includes a body and a sliding mechanism, the sliding mechanism is movable relative to the body to protrude from a sidewall of the body or be located inside the body, and a first LiFi transmission module and a light emitting module are carried on the sliding mechanism, where the method includes: detecting whether request information based on LiFi communication is received; if the request information is received, triggering the sliding mechanism to slide out to protrude out of the side wall of the body; and controlling the first LiFi transmission module to transmit the request content corresponding to the request information to a second LiFi transmission module through the light emission module, wherein the second LiFi transmission module is arranged in a second electronic device.
The data transmission method that this application first aspect embodiment provided, whether receive the request information based on the LiFi communication through surveying, when receiving the request information, trigger the slide mechanism roll-off in order to protrusion in the lateral wall of body, and control LiFi transmission module, via the request content that light emission module will request information to correspond, transmit to second LiFi transmission module, second LiFi transmission module sets up in second electronic equipment, can avoid occupying mobile terminal's surface area, guarantee mobile terminal shell's integrality and aesthetic property.
In order to achieve the above object, a data transmission device provided in an embodiment of a second aspect of the present application is disposed in a first electronic device, the first electronic device includes a body and a sliding mechanism, the sliding mechanism is movable relative to the body to protrude from a sidewall of the body, or to be located inside the body, the sliding mechanism is equipped with a first LiFi transmission module and a light emitting module, and the device includes: the detection module is used for detecting whether request information based on LiFi communication is received or not; the triggering module is used for triggering the sliding mechanism to slide out to protrude out of the side wall of the body when the request information is received; and the first LiFi transmission module is used for transmitting the request content corresponding to the request information to the second LiFi transmission module through the light emission module, and the second LiFi transmission module is arranged in the second electronic device.
The data transmission device that this application second aspect embodiment provided, whether receive the request information based on the LiFi communication through surveying, when receiving the request information, trigger the slide mechanism roll-off in order to protrusion in the lateral wall of body, and control LiFi transmission module, via the request content that light emission module will request information to correspond, transmit to second LiFi transmission module, second LiFi transmission module sets up in second electronic equipment, can avoid occupying mobile terminal's surface area, guarantee mobile terminal shell's integrality and aesthetic property.
In order to achieve the above object, an electronic device according to an embodiment of a third aspect of the present invention includes a body and a sliding mechanism, where the sliding mechanism is movable relative to the body to protrude from a sidewall of the body or to be located inside the body, and a first LiFi transmission module, a light emitting module, and a light receiving module are mounted on the sliding mechanism, and the electronic device further includes: the data transmission method comprises a memory, a processor electrically connected with the sliding mechanism and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the data transmission method provided by the embodiment of the first aspect of the application is realized.
In the electronic device provided in the embodiment of the third aspect of the present invention, by detecting whether request information based on LiFi communication is received, when the request information is received, the sliding mechanism is triggered to slide out to protrude from the side wall of the body, and the LiFi transmission module is controlled to transmit the request content corresponding to the request information to the second LiFi transmission module via the light emission module, and the second LiFi transmission module is disposed in the second electronic device, so that the occupation of the surface area of the mobile terminal can be avoided, and the integrity and the aesthetic property of the housing of the mobile terminal can be ensured.
To achieve the above object, a computer-readable storage medium according to a fourth embodiment of the present invention is a computer program stored thereon, where the computer program is executed by a processor to implement the data transmission method according to the first embodiment of the present invention.
The computer-readable storage medium provided by the embodiment of the fourth aspect of the present invention detects whether request information based on LiFi communication is received, and when the request information is received, triggers the sliding mechanism to slide out to protrude from the sidewall of the body, and controls the LiFi transmission module to transmit the request content corresponding to the request information to the second LiFi transmission module via the light emission module, and the second LiFi transmission module is disposed in the second electronic device, so that the occupation of the surface area of the mobile terminal can be avoided, and the integrity and the aesthetic property of the mobile terminal housing can be ensured.
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 data transmission method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present application;
fig. 3 is a schematic front structural diagram of a data transmission device according to an embodiment of the present application;
fig. 4 is a schematic diagram of a back structure of a data transmission device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic front structure diagram of an electronic device according to another embodiment of the present application;
fig. 7 is a schematic rear structure diagram of an electronic device according to another 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 only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the application include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a flowchart illustrating a data transmission method according to an embodiment of the present application.
In this application, the data transmission method is applied to a first electronic device, where the first electronic device includes a body and a sliding mechanism, and the sliding mechanism is movable relative to the body to protrude from a sidewall of the body or be located inside the body.
Among them, the device currently needing to transmit data may be referred to as a first electronic device.
The first electronic device may be a smartphone, a tablet, a wearable device, or the like.
The sliding mechanism in the embodiment of the application is provided with the LiFi transmission module and the light emission module, wherein the LiFi transmission module supports a LiFi transmission protocol, the bottom layer of the Li-Fi protocol is compatible with a WiFi802.11 baseband, when data is transmitted, one-to-many or many-to-one simultaneous transmission can be realized by utilizing a TDD protocol in WiFi, and the Li-Fi technology has high safety when the data is transmitted, because visible light can only be transmitted along a straight line, only a person on the straight line of light transmission can capture information. And because the low time delay of LiFi, can use in the scene that needs the data of quick transmission, for example share the file fast, exchange business card contact means, watch video jointly etc..
Referring to fig. 1, the method includes:
s101: whether request information based on the LiFi communication is received is detected.
When the user has a demand for using the first electronic device based on the LiFi communication, the user may trigger a control option supporting the LiFi communication in a display screen of the first electronic device, and at this time, when the first electronic device detects that the user triggers the control option supporting the LiFi communication, it may be determined that the request information based on the LiFi communication is received, and a subsequent step is triggered.
The request information is used for transmitting the request content to a second LiFi transmission module, and the second LiFi transmission module is arranged in the second electronic device.
The second electronic device is an electronic device which needs to communicate with the first electronic device based on LiFi, and the second electronic device can be a smart phone, a tablet computer, a wearable device and the like.
The requested content may be, for example, data selected by the user to be transmitted based on LiFi communication, such as a file, a name card contact, a video, and the like.
S102: if the request information is received, the sliding mechanism is triggered to slide out to protrude out of the side wall of the body.
In a specific implementation process, the central controller of the first electronic device may detect whether request information based on LiFi communication is received, and trigger the sliding mechanism to slide out to protrude from the sidewall of the body if the request information is received.
In the embodiment of the application, can be when triggering the slide mechanism roll-off in order to bulge in the lateral wall of body, carry on LiFi transmission module on starting slide mechanism promptly to and light emission module, perhaps, when detecting slide mechanism roll-off to the position that can the roll-off at the utmost, just start to carry on LiFi transmission module on the slide mechanism, and light emission module, do not do the restriction to this.
Preferably, can be when detecting the slide mechanism roll-off to the position that can the roll-off at the utmost, just start the LiFi transmission module that carries on the slide mechanism to and light emission module, can effectively avoid the performance consumption that premature start caused, promote electronic equipment's duration, and can ensure better LiFi communication effect.
S103: and controlling the LiFi transmission module to transmit the request content corresponding to the request information to the second LiFi transmission module through the light emission module, wherein the second LiFi transmission module is arranged in the second electronic device.
The light emitting module may be an LED array, or the light emitting module emits non-visible light, which is not limited in this respect.
In a specific execution process, encoding the request content through a LiFi transmission module to form encoded data, and transmitting the encoded data through an LED array; wherein the LED array operates in the infrared band. Therefore, the request content corresponding to the request information is encoded to form encoded data, and the encoded data is sent out, so that the safety and the correctness of data transmission are ensured.
In some embodiments, carry on the LiFi transmission module on the slide mechanism to and light emission module, light emission module includes at least two, the direction of the light of each light emission module transmission is inequality, consider the directionality of LiFi communication, when carrying out data communication based on LiFi between first electronic equipment of control and the second electronic equipment, can select the target light emission module transmission non-visible light signal that the direction is comparatively matchd from a plurality of light emission modules, guarantee the effect and the flexibility of LiFi communication.
In the embodiment of the application, light emission module includes first light emission module and second light emission module, and first light emission module sets up in slide mechanism's front, and second light emission module sets up at slide mechanism's back, because all set up light emission module at electronic equipment's front and back, can effectively widen the cover face of LiFi communication, when the integrality and the aesthetic property that promote the mobile terminal shell, promote LiFi communication effect.
Or, in this application embodiment, can also set up a plurality of slide mechanism for each slide mechanism carries on different light emission module respectively, triggers the slide mechanism roll-off in order to bulge in the lateral wall of body, include: triggering the target slide mechanism roll-off of carrying on target light emission module with protrusion in the lateral wall of body, it is thus clear that slide mechanism and light emission module's the mode of setting is comparatively nimble in this application embodiment, can be applicable to different application scenarios to and be suitable for different manufacturing demands, guaranteeing mobile terminal shell's integrality and aesthetic property, the flexibility that the promotion method was used.
Optionally, the sliding mechanism includes two, and correspondingly, the light emitting modules include two, and each light emitting module is respectively carried on a different sliding mechanism.
In the embodiment of the application, when light emission module is two, the light-emitting angle of different light emission modules can be adjusted at certain light-emitting angle within range, can be for the driver of light emission module configuration LED array and control LED array degree of depth, via the degree of depth of driver control LED array in light emitter to realize the regulation of the light-emitting angle of light emission module, expanded the application function of LiFi communication module.
During a particular implementation, a relative angle of the first electronic device and the second electronic device may be determined; and determining a target light emitting module corresponding to the relative angle, wherein the light emitting angle of the target light emitting module corresponds to the relative angle, the target light emitting module is one of the plurality of light emitting modules, and controlling the LiFi transmission module to transmit the requested content to the second LiFi transmission module through the target light emitting module.
The relative angle is used to describe a direction angle of the first electronic device relative to the second electronic device, and the angle between the relative direction and the reference direction may be determined by determining the relative direction between the first electronic device and the second electronic device, determining a reference direction, and determining the angle as the relative angle between the first electronic device and the second electronic device, which is not limited in this respect.
Through confirming the relative angle of first electronic equipment and second electronic equipment, confirm the target light emission module that corresponds with relative angle, the light-emitting angle of target light emission module corresponds with relative angle, can effectively promote data transmission efficiency.
In some embodiments, the first electronic device further comprises: the focus adjustment module for the focus of adjustment target light emission module triggers behind the lateral wall of slide mechanism roll-off with protrusion in the body, still includes: detecting a relative distance between the first electronic device and the second electronic device; and determining a target focal length corresponding to the relative distance, and adjusting the focal length of the target light emitting module to the target focal length.
The distance between the first electronic device and the second electronic device can be detected by the distance detector, and the distance is used as a relative distance, and then, a distance range to which the relative distance belongs can be determined, and a focal length corresponding to the distance range to which the relative distance belongs can be used as a target focal length, wherein the corresponding relationship between each distance range and the corresponding focal length can be calibrated in advance.
For example, when the relative distance between the first electronic device and the second electronic device is within the first distance range, the LiFi transmission module passes through the focal length adjustment module and controls the light emission module to transmit the encoded data at the first target focal length, and when the relative distance between the first electronic device and the second electronic device is detected, the LiFi transmission module passes through the focal length adjustment module and controls the light emission module to transmit the encoded data at the second target focal length, so that the LiFi transmission module adjusts the focal length when the light emission module transmits the encoded data according to the relative distance between the first electronic device and the second electronic device, and when the relative distance between the first electronic device and the second electronic device is different, efficient data transmission is achieved.
In some embodiments, the sliding mechanism further includes at least two light receiving modules, each light receiving module has a corresponding light emitting module, and further includes a time of flight (TOF) control module connected to a light emitting module and a corresponding light receiving module, wherein detecting the relative distance between the first electronic device and the second electronic device includes: controlling a target light ray emitting module to emit detection light rays through a target TOF control module; detecting the relative distance between the first electronic device and the second electronic device according to the reflected light of the detection light received by the target light receiving module; the target light receiving module is a light receiving module corresponding to the target light emitting module in the plurality of light receiving modules, and the target TOF control module is connected with the target light receiving module and the target light emitting module.
Specifically, the TOF control module obtains the relative distance between the first electronic device and the second electronic device through calculation and conversion according to the phase difference or the time difference between the detection light and the reflection light.
It should be noted that the TOF ranging technology is a relatively mature ranging technology at present, and the existing TOF ranging method is applicable to the present application, which does not describe the TOF ranging technology any more.
Controlling a target light ray emitting module to emit detection light rays through a target TOF control module; according to the reflected light of the detection light received by the target light receiving module, the relative distance between the first electronic device and the second electronic device is detected, the fact that the LiFi transmission module and the TOF control module share the light emitting module and the light receiving module is achieved, and the internal space and the cost of the mobile terminal are saved.
In this embodiment, whether receive the request information based on the LiFi communication through surveying, when receiving the request information, trigger the slide mechanism roll-off in order to bulge in the lateral wall of body, and control LiFi transmission module, via the request content that light emission module corresponds the request information, transmit to second LiFi transmission module, second LiFi transmission module sets up in second electronic equipment, can avoid occupying mobile terminal's surface area, guarantee the integrality and the aesthetic property of mobile terminal shell.
Fig. 2 is a schematic structural diagram of a data transmission device according to an embodiment of the present application.
In this application, the data transmission device is disposed in a first electronic device, the first electronic device includes a body and a sliding mechanism, and the sliding mechanism is movable relative to the body to protrude from a sidewall of the body, or be located inside the body.
Among them, the device currently needing to transmit data may be referred to as a first electronic device.
The first electronic device may be a smartphone, a tablet, a wearable device, or the like.
Referring to fig. 2, the apparatus 200 includes: a first LiFi transmission module 201 and a light emission module 202 carried on the sliding mechanism, and a detection module 203 and a trigger module 204 carried in the device, wherein,
a detection module 203, configured to detect whether request information based on LiFi communication is received;
the triggering module 204 is used for triggering the sliding mechanism to slide out to protrude out of the side wall of the body when the request information is received;
the first LiFi transmission module 201 is configured to transmit request content corresponding to the request information to a second LiFi transmission module via the light emitting module 202, where the second LiFi transmission module is disposed in the second electronic device.
Optionally, in some embodiments, the light emitting modules 202 include at least two, including a first light emitting module 2021 and a second light emitting module 2022, directions of the light emitted by the light emitting modules 202 are different, and referring to fig. 3 and 4, the apparatus 200 further includes:
the angle adjusting module 205 is configured to determine a relative angle between the first electronic device and the second electronic device, and determine a target light emitting module corresponding to the relative angle, where a light emitting angle of the target light emitting module corresponds to the relative angle, and the target light emitting module is one of the plurality of light emitting modules;
the first LiFi transmission module 201 is specifically configured to:
the first LiFi transmission module 201 is controlled to transmit the requested content to the second LiFi transmission module via the target light emitting module.
Optionally, in some embodiments, referring to fig. 3 and 4, the apparatus 200 further comprises:
and the focal length adjusting module 206 is used for adjusting the focal length of the target light emitting module, triggering the sliding mechanism to slide out to protrude out of the side wall of the body, detecting the relative distance between the first electronic device and the second electronic device, determining a target focal length corresponding to the relative distance, and adjusting the focal length of the target light emitting module to be the target focal length.
Optionally, in some embodiments, the sliding mechanism further carries at least two light receiving modules, each light receiving module has a corresponding light emitting module, and further carries a time-of-flight ranging TOF control module 208 connected to a light emitting module and a corresponding light receiving module, respectively, wherein,
a time-of-flight ranging TOF control module 208, specifically configured to:
controlling the target light emitting module to emit detection light, and detecting the relative distance between the first electronic device and the second electronic device according to the reflection light of the detection light received by the target light receiving module;
the target light receiving module is a light receiving module corresponding to the target light emitting module in the plurality of light receiving modules, and the target TOF control module is connected with the target light receiving module and the target light emitting module.
Optionally, in some embodiments, the light emitting module 202 includes a first light emitting module 2021 and a second light emitting module 2022, the first light emitting module 2021 is disposed on the front side of the sliding mechanism, and the second light emitting module 2022 is disposed on the back side of the sliding mechanism.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, the apparatus 200 is disposed in the electronic device 50, the electronic device 50 includes a body 501 and a sliding mechanism 502, and the sliding mechanism 502 is movable relative to the body 501 to protrude from a sidewall of the body 501 or be located inside the body 501.
Optionally, in some embodiments, the sliding mechanism includes a plurality of sliding mechanisms, each sliding mechanism carries a different light emitting module, and the sliding mechanism is triggered to slide out to protrude from the side wall of the body, including:
the target sliding mechanism carrying the target light emitting module is triggered to slide out to protrude out of the side wall of the body.
Optionally, in some embodiments, the sliding mechanism includes two sliding mechanisms, and correspondingly, the light emitting modules include two sliding mechanisms, and each light emitting module is respectively carried on a different sliding mechanism.
It should be noted that the explanation of the data transmission method in the foregoing embodiment in fig. 1 is also applicable to the data transmission apparatus 200 in this embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, whether receive the request information based on the LiFi communication through surveying, when receiving the request information, trigger the slide mechanism roll-off in order to bulge in the lateral wall of body, and control LiFi transmission module, via the request content that light emission module corresponds the request information, transmit to second LiFi transmission module, second LiFi transmission module sets up in second electronic equipment, can avoid occupying mobile terminal's surface area, guarantee the integrality and the aesthetic property of mobile terminal shell.
Fig. 6 is a schematic front structure diagram of an electronic device according to another embodiment of the present application.
Fig. 7 is a schematic rear structure diagram of an electronic device according to another embodiment of the present application.
Referring to fig. 6 and 7, the electronic device 50 includes: the electronic device 50 has a main body 501 and at least two sliding mechanisms 502, where the sliding mechanisms 502 are at least two, and the sliding mechanisms 502 can move relative to the main body 501 to protrude from the side walls of the main body 501, or be located inside the main body 501, and the electronic device 50 further includes: the memory 503, the processor 504 electrically connected to the sliding mechanism 502, and a computer program stored in the memory 503 and capable of running on the processor 504, when the processor 504 executes the program, the data transmission method in the embodiment of fig. 1 is implemented.
It should be noted that the foregoing explanation on the data transmission method embodiment in the embodiment of fig. 1 is also applicable to the electronic device 50 of this embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, whether receive the request information based on the LiFi communication through surveying, when receiving the request information, trigger the slide mechanism roll-off in order to bulge in the lateral wall of body, and control LiFi transmission module, via the request content that light emission module corresponds the request information, transmit to second LiFi transmission module, second LiFi transmission module sets up in second electronic equipment, can avoid occupying mobile terminal's surface area, guarantee the integrality and the aesthetic property of mobile terminal shell.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data transmission method according to the foregoing embodiment.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified.
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 that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
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. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
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. A data transmission method is applied to first electronic equipment, the first electronic equipment comprises a body and a sliding mechanism, the sliding mechanism can move relative to the body to protrude out of the side wall of the body or be positioned in the body, it is characterized in that a first LiFi transmission module, a light receiving module and a light emitting module are carried on the sliding mechanism, the light emitting modules comprise at least two light emitting modules, the directions of the light emitted by the light emitting modules are different, the light receiving modules comprise at least two, each light receiving module is respectively provided with a corresponding light emitting module, the sliding mechanism is also provided with a time of flight (TOF) control module, the TOF control module is connected with each light ray emitting module and the corresponding light ray receiving module, and the method comprises the following steps:
detecting whether request information based on LiFi communication is received;
if the request information is received, triggering the sliding mechanism to slide out to protrude out of the side wall of the body;
determining a relative angle between the first electronic device and a second electronic device, wherein the second electronic device is provided with a second LiFi transmission module;
determining a target light emitting module corresponding to the relative angle, wherein the light emitting angle of the target light emitting module corresponds to the relative angle, and the target light emitting module is one of the light emitting modules;
controlling the target light ray emission module to emit detection light rays through a target TOF control module;
detecting the relative distance between the first electronic device and the second electronic device according to the reflected light of the detection light received by a target light receiving module, wherein the target light receiving module is a light receiving module corresponding to the target light emitting module in the plurality of light receiving modules, and the target TOF control module is connected with the target light receiving module and the target light emitting module;
determining a target focal length corresponding to the relative distance, and adjusting the focal length of the target light emitting module to the target focal length;
and controlling the first LiFi transmission module to transmit the request content corresponding to the request information to the second LiFi transmission module through the target light emission module.
2. The data transmission method according to claim 1, wherein the light emitting module includes a first light emitting module and a second light emitting module, the first light emitting module is disposed on a front surface of the sliding mechanism, and the second light emitting module is disposed on a back surface of the sliding mechanism.
3. The data transmission method of claim 1, wherein the sliding mechanism includes a plurality of sliding mechanisms, each of the sliding mechanisms respectively carries a different light emitting module, and the triggering of the sliding mechanism to slide out to protrude from the side wall of the body includes:
and triggering a target sliding mechanism carrying the target light emitting module to slide out to protrude out of the side wall of the body.
4. The data transmission method according to claim 3, wherein the sliding mechanism includes two, and correspondingly, the light emitting modules include two, and each of the light emitting modules is respectively mounted on a different sliding mechanism.
5. A data transmission device is arranged in first electronic equipment, the first electronic equipment comprises a body and a sliding mechanism, the sliding mechanism can move relative to the body to protrude out of the side wall of the body or be positioned in the body, it is characterized in that a first LiFi transmission module, a light receiving module and a light emitting module are carried on the sliding mechanism, the light emitting modules comprise at least two light emitting modules, the directions of the light emitted by the light emitting modules are different, the light receiving modules comprise at least two, each light receiving module is respectively provided with a corresponding light emitting module, still carry on time of flight range TOF control module on the slide mechanism, time of flight range TOF control module and every light emission module links to each other with the light receiving module that corresponds, the device includes:
the detection module is used for detecting whether request information based on LiFi communication is received or not;
the triggering module is used for triggering the sliding mechanism to slide out to protrude out of the side wall of the body when the request information is received;
the angle adjusting module is used for determining a relative angle between the first electronic device and the second electronic device, the second electronic device is provided with a second LiFi transmission module, and a target light emitting module corresponding to the relative angle is determined, the light emitting angle of the target light emitting module corresponds to the relative angle, and the target light emitting module is one of the light emitting modules;
the time-of-flight ranging TOF control module is specifically configured to: controlling the target light ray emitting module to emit detection light rays, and detecting the relative distance between the first electronic device and the second electronic device according to the reflection light rays of the detection light rays received by the target light ray receiving module, wherein the target light ray receiving module is a light ray receiving module corresponding to the target light ray emitting module in the plurality of light ray receiving modules, and the target TOF control module is connected with the target light ray receiving module and the target light ray emitting module;
the apparatus further comprises:
the focal length adjusting module is used for determining a target focal length corresponding to the relative distance and adjusting the focal length of the target light emitting module to the target focal length;
and the first LiFi transmission module is used for transmitting the request content corresponding to the request information to the second LiFi transmission module through the target light emission module.
6. The data transmission device as claimed in claim 5, wherein the light emitting module comprises a first light emitting module and a second light emitting module, the first light emitting module is disposed on the front surface of the sliding mechanism, and the second light emitting module is disposed on the back surface of the sliding mechanism.
7. The data transmission device as claimed in claim 5, wherein the sliding mechanism includes a plurality of sliding mechanisms, each of the sliding mechanisms carries a different light emitting module, and the triggering of the sliding mechanism slides out to protrude from the side wall of the body includes:
and triggering a target sliding mechanism carrying the target light emitting module to slide out to protrude out of the side wall of the body.
8. The data transmission device as claimed in claim 7, wherein the sliding mechanism includes two, and correspondingly, the light emitting modules include two, and each light emitting module is respectively mounted on different sliding mechanisms.
9. The utility model provides an electronic equipment, its characterized in that has body and slide mechanism, slide mechanism can be relative the body removes to protrusion in the lateral wall of body, perhaps, be in inside the body, carry on first LiFi transmission module, light emission module and light receiving module on the slide mechanism, light emission module includes at least two, each the direction of the light of light emission module transmission is inequality, light receiving module includes at least two, each light receiving module has corresponding light emission module respectively, still carry on time of flight range TOF control module on the slide mechanism, time of flight range TOF control module and every light emission module links to each other with the light receiving module that corresponds, electronic equipment still includes: a memory, a processor electrically connected to the sliding mechanism, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data transmission method according to any one of claims 1 to 4 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the data transmission method according to any one of claims 1 to 4.
CN201910577319.3A 2019-06-28 2019-06-28 Data transmission method and device, electronic equipment and storage medium Active CN112152710B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910577319.3A CN112152710B (en) 2019-06-28 2019-06-28 Data transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910577319.3A CN112152710B (en) 2019-06-28 2019-06-28 Data transmission method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112152710A CN112152710A (en) 2020-12-29
CN112152710B true CN112152710B (en) 2022-03-22

Family

ID=73870062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910577319.3A Active CN112152710B (en) 2019-06-28 2019-06-28 Data transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112152710B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364845B (en) * 2021-05-31 2023-08-18 维沃移动通信有限公司 File transmission method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116846A (en) * 2012-12-27 2013-05-22 重庆濯晖科技有限公司 Mobile payment based on visible light communications
CN105450302A (en) * 2015-12-31 2016-03-30 中广核工程有限公司 Visible light receiving and transmitting device, visible light communication terminal, and visible light communication system
WO2017026554A1 (en) * 2015-08-12 2017-02-16 엘지전자 주식회사 Mobile terminal
CN108769326A (en) * 2018-08-22 2018-11-06 Oppo广东移动通信有限公司 Depth acquires module and mobile terminal
CN108845871A (en) * 2018-06-08 2018-11-20 Oppo广东移动通信有限公司 Device call method, device, electronic equipment and storage medium in electronic equipment
CN108958370A (en) * 2018-06-12 2018-12-07 Oppo广东移动通信有限公司 Control method, device, electronic equipment and the storage medium of sliding equipment
CN109005326A (en) * 2018-08-30 2018-12-14 Oppo广东移动通信有限公司 Photoelectricity mould group and its control method, imaging device, electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957060B (en) * 2014-05-21 2017-04-12 中国人民解放军信息工程大学 Visible light receiving device and visible light communication method
CN107682083B (en) * 2017-11-01 2020-04-24 珠海市魅族科技有限公司 Short-distance file transmission method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116846A (en) * 2012-12-27 2013-05-22 重庆濯晖科技有限公司 Mobile payment based on visible light communications
WO2017026554A1 (en) * 2015-08-12 2017-02-16 엘지전자 주식회사 Mobile terminal
CN105450302A (en) * 2015-12-31 2016-03-30 中广核工程有限公司 Visible light receiving and transmitting device, visible light communication terminal, and visible light communication system
CN108845871A (en) * 2018-06-08 2018-11-20 Oppo广东移动通信有限公司 Device call method, device, electronic equipment and storage medium in electronic equipment
CN108958370A (en) * 2018-06-12 2018-12-07 Oppo广东移动通信有限公司 Control method, device, electronic equipment and the storage medium of sliding equipment
CN108769326A (en) * 2018-08-22 2018-11-06 Oppo广东移动通信有限公司 Depth acquires module and mobile terminal
CN109005326A (en) * 2018-08-30 2018-12-14 Oppo广东移动通信有限公司 Photoelectricity mould group and its control method, imaging device, electronic equipment

Also Published As

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

Similar Documents

Publication Publication Date Title
US20210096224A1 (en) Lidar system and method of controlling lidar system, and autonomous driving system including lidar system
EP4024973A1 (en) Method by user device in wireless communication system
CN213186405U (en) Range extender apparatus
JP2023058564A (en) Ambient light and proximity detection methods, photographing method, and terminal
EP3016442A2 (en) Method for scanning neighboring devices and electronic device thereof
CN113439478B (en) Method for transmitting uplink data through preconfigured uplink resources in wireless communication system and apparatus therefor
KR102234227B1 (en) Controlling Method for Headlight of Autonomous Vehicle and System thereof
EP3796571A1 (en) Method and device for controlling unmanned aerial vehicle to access network
KR20160149562A (en) Travelling system for mobile robot, autonomously travelling mobile robot and method for controlling robot thereof
CN114501119B (en) Interactive display method, device, electronic equipment, system and storage medium
CN112152710B (en) Data transmission method and device, electronic equipment and storage medium
EP3757614A1 (en) Mobile terminal
CN112152709B (en) Light fidelity LiFi control method and device of mobile terminal, mobile terminal and medium
US20120319594A1 (en) Lighting apparatus and control method thereof
WO2020255354A1 (en) Wireless communication system, wireless communication method, and terminal device
CN113783619B (en) Optimization method based on fusion of visible light communication and visible light positioning
CN108432302A (en) Power information sending method, terminal device and the network equipment
CN112152891B (en) Control system of household appliance, mobile terminal and method
CN112153442A (en) Playing method, device, terminal, television equipment, storage medium and electronic equipment
CN112152713B (en) Display method, display device, terminal, display device, storage medium and electronic device
CN112152706B (en) Data transmission method, device, terminal, storage medium and electronic equipment
CN112153209B (en) Communication system and method of mobile terminal, computer and mobile terminal
CN112751617A (en) Electronic setting, control method and device thereof, and storage medium
CN112153358B (en) Projection system, mobile terminal and projector
US20230029599A1 (en) Method for controlling wireless charging, electronic device and storage medium

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