CN117459138A - Electronic device, connection method, system and computer readable storage medium thereof - Google Patents
Electronic device, connection method, system and computer readable storage medium thereof Download PDFInfo
- Publication number
- CN117459138A CN117459138A CN202311378135.7A CN202311378135A CN117459138A CN 117459138 A CN117459138 A CN 117459138A CN 202311378135 A CN202311378135 A CN 202311378135A CN 117459138 A CN117459138 A CN 117459138A
- Authority
- CN
- China
- Prior art keywords
- optical signal
- electronic device
- electronic equipment
- electronic
- signal
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/11—Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
- H04B10/114—Indoor or close-range type systems
- H04B10/116—Visible light communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/11—Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
- H04B10/114—Indoor or close-range type systems
- H04B10/1143—Bidirectional transmission
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Optical Communication System (AREA)
Abstract
Electronic devices, methods, systems, and computer readable storage media for connecting electronic devices are disclosed. The method comprises the following steps: the first electronic equipment receives a first optical signal sent by the second electronic equipment through the first light sensing device; the first electronic equipment responds to the first optical signal as a valid signal, and generates a second optical signal through the light emitting device so that the second electronic equipment can be connected with the first electronic equipment based on the second optical signal; the first electronic device and the second electronic device are of the same type. In this way, device connection can be achieved by optical signals.
Description
Technical Field
The present application relates to the field of device connection technologies, and in particular, to an electronic device, a connection method, a system, and a computer readable storage medium thereof.
Background
Along with the popularization and application of electronic equipment, the functions which can be supported by the electronic equipment are more and more powerful, the electronic equipment is developed towards diversification and individuation, and the electronic equipment becomes an indispensable electronic article in the life of users.
The electronic devices can be connected through a network, bluetooth or NFC, but in the process, a user needs to operate the electronic devices to be connected in a tedious way.
Disclosure of Invention
The application provides an electronic device, a connection method, a system and a computer readable storage medium thereof, wherein the device connection can be realized through optical signals.
In a first aspect, the present application provides a method for connecting an electronic device, the method including: the first electronic equipment receives a first optical signal sent by the second electronic equipment through the first light sensing device; the first electronic equipment responds to the first optical signal as a valid signal, and generates a second optical signal through the light emitting device so that the second electronic equipment can be connected with the first electronic equipment based on the second optical signal; the first electronic device and the second electronic device are of the same type.
In a second aspect, the present application provides a method for connecting an electronic device, the method including: the first electronic device generates a first optical signal through the first light emitting device, so that the second electronic device responds to the first optical signal as a valid signal and generates a second optical signal through the second light emitting device; the first electronic device completes connection with the second electronic device based on the second optical signal; the first electronic device and the second electronic device are of the same type.
In a third aspect, the present application provides a connection system of an electronic device, the connection system comprising: the first electronic equipment receives a first optical signal sent by the second electronic equipment through the first light sensing device; the first electronic equipment responds to the first optical signal as a valid signal, and generates a second optical signal through the light emitting device so that the second electronic equipment can be connected with the first electronic equipment based on the second optical signal; the first electronic device and the second electronic device are of the same type.
In a fourth aspect, the present application provides an electronic device comprising a processor and a memory coupled to the processor, a light sensing device, and a light emitting device; wherein the memory is for storing a computer program and the processor is for executing the computer program to implement the method as provided in the first or second aspect above.
In a fifth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements a method as provided in the first or second aspect above.
The beneficial effects of this application are: different from the situation of the prior art, the electronic equipment, the connection method, the system and the computer readable storage medium thereof provided by the application realize equipment connection between the first electronic equipment and the second electronic equipment through optical signals, and simplify the operation of a user in the equipment connection process.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a flowchart illustrating an embodiment of a method for connecting an electronic device according to the present application;
fig. 2 is a schematic diagram of an application scenario of a connection method of an electronic device provided in the present application;
FIG. 3 is a flowchart illustrating another embodiment of a method for connecting an electronic device according to the present application;
fig. 4 is a schematic diagram of another application scenario of the connection method of the electronic device provided in the present application;
FIG. 5 is a flowchart of another embodiment of a method for connecting an electronic device provided herein;
fig. 6 is a schematic diagram of another application scenario of the connection method of the electronic device provided in the present application;
FIG. 7 is a flowchart of another embodiment of a method for connecting an electronic device provided herein;
FIG. 8 is a flow chart of an embodiment of a connection system for an electronic device provided herein;
FIG. 9 is a schematic structural diagram of an embodiment of an electronic device provided herein;
FIG. 10 is a schematic structural view of another embodiment of an electronic device provided herein;
fig. 11 is a schematic structural diagram of an embodiment of a computer readable storage medium provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are for purposes of illustration only and are not limiting. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Along with the popularization and application of electronic equipment, the functions which can be supported by the electronic equipment are more and more powerful, the electronic equipment is developed towards diversification and individuation, and the electronic equipment becomes an indispensable electronic article in the life of users.
The electronic devices can be connected through a network, bluetooth or NFC, but in the process, a user needs to operate the electronic devices to be connected in a tedious way.
Based on this, the present application proposes any one of the following embodiments to solve at least one technical problem described above.
Referring to fig. 1, fig. 1 is a flowchart of an embodiment of a connection method of an electronic device provided in the present application. The method comprises the following steps:
step 11: the first electronic equipment receives a first optical signal sent by the second electronic equipment through the first light sensing device.
It can be appreciated that in this embodiment, an active initiator in the connection relationship is defined as the second electronic device, and a passive receiver is defined as the first electronic device.
In some embodiments, the first optical signal may be generated by a light emitting device disposed on the second electronic device. Wherein the light emitting device may generate visible light or invisible light. In an application scenario, two light emitting devices may be disposed on the second electronic device, where one light emitting device is used to generate visible light and the other light emitting device is used to generate invisible light. The visible light may be visible light such as white light, red light, blue light or purple light. The invisible light may be invisible to the naked eye such as infrared light.
In some embodiments, the first optical signal may have a corresponding frequency, and the optical signals of different frequencies may characterize the corresponding information. The relation between the specific frequency and the information may be set in the electronic device in advance. For example, optical signal representation 1 at frequency A, optical signal representation 2 at frequency B, optical signal representation 3 at frequency C, and optical signal representation 4 at frequency D. Further, the information represented by the optical signal may correspond to a corresponding instruction, so that the electronic device that receives the optical signal may perform a corresponding operation according to the instruction.
Step 12: the first electronic device responds to the first optical signal as an effective signal, and generates a second optical signal through the light emitting device so that the second electronic device can complete connection with the first electronic device based on the second optical signal.
And after the first electronic equipment receives the first optical signal sent by the second electronic equipment through the first light sensing device, identifying the first optical signal, determining whether the first optical signal is an effective signal, and if the first electronic equipment determines that the first optical signal is the effective signal, generating a second optical signal through the light emitting device so as to enable the second electronic equipment to complete connection with the first electronic equipment based on the second optical signal.
The first electronic device and the second electronic device are of the same type. The first electronic device and the second electronic device may both be intelligent terminals. Such as a smart phone or tablet.
In some embodiments, described in conjunction with fig. 2:
the first electronic equipment receives a first optical signal sent by the second electronic equipment through the first light sensing device. The first electronic device responds to the first optical signal as an effective signal, and generates a second optical signal through the light emitting device so that the second electronic device can complete connection with the first electronic device based on the second optical signal.
In an application scenario, the first optical signal may characterize the unique identification information of the first electronic device and the second optical signal may characterize the unique identification information of the second electronic device. And the unique identification information corresponding to the transmission of the optical signals is utilized between the first electronic equipment and the second electronic equipment so as to be used for the electronic equipment receiving the optical signals to identify, so that a handshake protocol is completed, and the connection between the first electronic equipment and the second electronic equipment is realized. After the first electronic equipment and the second electronic equipment are connected, the first electronic equipment and the second electronic equipment can perform data transmission through optical signals again, so that the control of the interactive object is realized.
In this embodiment, the first electronic device and the second electronic device are connected by an optical signal, so that the operation of the user in the device connection process is simplified.
Referring to fig. 3, fig. 3 is a flowchart of another embodiment of a connection method of an electronic device provided in the present application. The method comprises the following steps:
step 31: the first electronic equipment receives a first optical signal sent by the second electronic equipment through the first light sensing device.
Step 31 has the same or similar technical solutions as the rest of the embodiments of the present application, and will not be described here again.
It can be appreciated that in this embodiment, an active initiator in the connection relationship is defined as the second electronic device, and a passive receiver is defined as the first electronic device.
In some embodiments, the light sensing device may be disposed directly on the first electronic device. Such as, for example. The display screen is arranged on one side of the display screen of the first electronic device and/or is arranged on one side of the first electronic device away from the display screen (the back surface of the first electronic device). In some embodiments, the first optical signal may be received directly using a light sensing device in the camera module on the first electronic device, without adding a light sensing device to the first electronic device.
Step 32: the first electronic device detects authorization information in response to the first optical signal being a valid signal.
In this embodiment, in view of security issues, the first electronic device needs to be authorized to generate the second optical signal.
In some embodiments, the first electronic device prompts for authorization information in response to the first optical signal being a valid signal; the input authorization information is detected.
Wherein the authorization information at least comprises biometric information and/or character information. For example, the biometric information may be at least one of a fingerprint, a voiceprint, a face, and a gesture. The character information may be text information, such as a screen locking password of the electronic device. And a separate authorization message may be additionally provided.
In other embodiments, the authorization information may be generated by an electrical signal. When the first electronic device prompts to input the authorization information, a user of the first electronic device can generate an electric signal through touching a display screen of the first electronic device, and the electric signal is used as the authorization information. When the first electronic device prompts to input the authorization information, the user of the first electronic device can also press a physical key on the first electronic device to enable the physical key to generate an electric signal, and the electric signal is used as the authorization information.
Step 33: the first electronic device responds to the authorization information to be valid, and generates a second optical signal through the light emitting device so that the second electronic device can complete connection with the first electronic device based on the second optical signal.
The first electronic device and the second electronic device are of the same type.
In some embodiments, the first electronic device will not do anything or an invalidation prompt in response to the authorization information being invalidated.
The first electronic device responds to the authorization information to be valid, and generates a second optical signal through the light emitting device so that the second electronic device can complete connection with the first electronic device based on the second optical signal. In some embodiments, the second optical signal may be visible light or invisible light. When the second optical signal is visible light, it can be used as a signal to make the surrounding people see, so that the surrounding people know that the first electronic device has approved the second electronic device. When the second optical signal is visible light, the light emitting device can be directly a light supplementing lamp used for supplementing light on the first electronic equipment. When the second optical signal is invisible light, the light emitting device can be directly an infrared LED lamp on the first electronic device.
In some embodiments, described in conjunction with fig. 4:
the first electronic equipment receives a first optical signal sent by the second electronic equipment through the first light sensing device. The first electronic device detects authorization information in response to the first optical signal being a valid signal. The first electronic device responds to the authorization information to be valid, and generates a second optical signal through the light emitting device so that the second electronic device can complete connection with the first electronic device based on the second optical signal. After the first electronic equipment and the second electronic equipment are connected, the first electronic equipment and the second electronic equipment can perform data transmission through optical signals again, so that the control of the interactive object is realized.
In this embodiment, the first electronic device and the second electronic device are connected by an optical signal, so that the operation of the user in the device connection process is simplified.
Further, the first electronic device needs to generate the second optical signal through the light emitting device when the authorization information is valid, so that security and confidentiality are guaranteed.
Referring to fig. 5, fig. 5 is a flowchart of another embodiment of a connection method of an electronic device provided in the present application. The method comprises the following steps:
step 51: the first electronic equipment receives a first optical signal sent by the second electronic equipment through the first light sensing device.
Step 51 has the same or similar technical solutions as the rest of the embodiments of the present application, and will not be described here again.
It can be appreciated that in this embodiment, an active initiator in the connection relationship is defined as the second electronic device, and a passive receiver is defined as the first electronic device.
Step 52: the first electronic equipment responds to the first optical signal as an effective signal, generates a second optical signal through the light emitting device, and displays an information code corresponding to the first optical signal on a display interface of the first electronic equipment so that the second electronic equipment starts the image acquisition assembly identification information code based on the second optical signal.
The first electronic device and the second electronic device are of the same type.
In some embodiments, the information code may be a hotspot connection two-dimensional code, weChat two-dimensional code, ticket two-dimensional code or business card two-dimensional code, which can be identified.
In some embodiments, the first electronic device responds to the first optical signal as a valid signal, generates a second optical signal through the light emitting device, and displays an information code corresponding to the first optical signal on a display interface of the first electronic device, so that the second electronic device turns on the image acquisition component identification information code based on the second optical signal.
In some embodiments, described in conjunction with fig. 6:
the first electronic equipment receives a first optical signal sent by the second electronic equipment through the first light sensing device. The first electronic equipment responds to the first optical signal as an effective signal, generates a second optical signal through the light emitting device, and displays an information code corresponding to the first optical signal on a display interface of the first electronic equipment. And when the second electronic equipment detects that the second optical signal is effective, starting an image acquisition component identification information code of the second electronic equipment.
In this embodiment, the first electronic device and the second electronic device are connected by an optical signal, so that the operation of the user in the device connection process is simplified.
Further, when the connection is completed, the connected party can display the corresponding information code, so that the active initiator scans the information code to obtain the corresponding information, and the process of obtaining the information by the active initiator is simplified.
Referring to fig. 7, fig. 7 is a flowchart of another embodiment of a connection method of an electronic device provided in the present application. The method comprises the following steps:
step 71: the first electronic device generates a first optical signal through the first light emitting device such that the second electronic device generates a second optical signal through the second light emitting device in response to the first optical signal being a valid signal.
It can be appreciated that in this embodiment, an active initiator in the connection relationship is defined as a first electronic device, and a passive receiver is defined as a second electronic device.
In some embodiments, the first optical signal may be generated by a light emitting device disposed on the first electronic device. Wherein the light emitting device may generate visible light or invisible light. In an application scenario, two light emitting devices may be disposed on the first electronic device, where one light emitting device is configured to generate visible light and the other light emitting device is configured to generate invisible light. The visible light may be visible light such as white light, red light, blue light or purple light. The invisible light may be invisible to the naked eye such as infrared light.
In some embodiments, the first optical signal may have a corresponding frequency, and the optical signals of different frequencies may characterize the corresponding information. The relation between the specific frequency and the information may be set in the electronic device in advance. For example, optical signal representation 1 at frequency A, optical signal representation 2 at frequency B, optical signal representation 3 at frequency C, and optical signal representation 4 at frequency D. Further, the information represented by the optical signal may correspond to a corresponding instruction, so that the electronic device that receives the optical signal may perform a corresponding operation according to the instruction.
Step 72: the first electronic device completes the connection with the second electronic device based on the second optical signal.
The first electronic device and the second electronic device are of the same type.
In some embodiments, the second electronic device displays an information code corresponding to the first optical signal on the display interface in response to the first optical signal being a valid signal, and the first electronic device turns on the image capture assembly identification information code based on the second optical signal.
In this embodiment, the first electronic device and the second electronic device are connected by an optical signal, so that the operation of the user in the device connection process is simplified.
Referring to fig. 8, fig. 8 is a flowchart of an embodiment of a connection system of an electronic device provided in the present application. The connection system 100 includes: a first electronic device 10 and a second electronic device 20, wherein the first electronic device 10 receives a first optical signal sent by the second electronic device 20 through a first light sensing device; the first electronic device 10 generates a second optical signal through the light emitting device in response to the first optical signal being a valid signal, so that the second electronic device 20 completes the connection with the first electronic device 10 based on the second optical signal; wherein the first electronic device 10 and the second electronic device 20 are of the same type of device.
In an application scenario, an electronic device is taken as a mobile phone for example to describe:
and a light sensing device and an infrared LED are designed near the rear camera of the mobile phone A. Below the screen of the mobile phone B, a light sensing device and an infrared LED are designed. It will be appreciated that the term "below the screen" as used herein refers to a volume of space, not the plane of the screen display interface.
In some embodiments, handset a turns on the camera to capture handset B, which triggers the rear infrared LED of handset a to send infrared light 1 at a frequency. For example, the infrared LED is turned on every 10ms, and the light sensing device of the mobile phone B detects the frequency light and regards the frequency light as an effective signal. In some embodiments, the corresponding mobile phone may also drive the infrared LED to emit infrared light with alternating intensity and intensity.
The front light sense of the mobile phone B receives the infrared light 1, and after the infrared light 1 is analyzed and confirmed to be effective by the processor of the mobile phone B, an infrared LED under the screen emits infrared light 2.
The rear light sensing device of the mobile phone A detects the infrared light 2, and after the processor of the mobile phone A analyzes and confirms that the infrared light 2 is effective, the two mobile phones are connected.
An example application scenario is as follows:
1. the user turns on the scanning function against handset B using handset a. At this time, the mobile phone B may be in a bright screen state or a screen-off state.
2. The infrared LED near the back camera emits infrared light every 10ms before the mobile phone A opens the camera.
3. The light sensing device (of the display screen of the mobile phone B, which is close to the light sensor) detects the infrared light once every 10ms, and recognizes the infrared light as a valid signal, and then the infrared LED (of the display screen of the mobile phone B, which is close to the light sensor) emits the infrared light once every 5 ms. Meanwhile, the mobile phone B opens the two-dimension code (can be a hot spot connection two-dimension code, a WeChat two-dimension code, a friend, a ticket two-dimension code, a business card two-dimension code and the like).
4. The color temperature (namely light sensation) near the camera of the mobile phone A detects infrared light once every 5ms, namely feedback is considered to be effective, and at the moment, the mobile phone A opens the camera to start scanning codes. That is, the optical signal can be used as a corresponding control command to complete the control of the opposite terminal.
Therefore, the optical signals are utilized between the two mobile phones to realize the transmission of signals and control instructions, and a non-contact mode is adopted to realize a handshake protocol, so that the mutual operation transmission between the two subsequent mobile phones is facilitated.
In some embodiments, the user uses handset a to turn on the camera to capture phone B, which triggers the handset a rear LED to send infrared light 1 of a certain frequency characteristic.
The front light sense of the mobile phone B receives the infrared light 1, after the OK is analyzed and confirmed by the processor, fingerprint or password operation of a user is detected (for example, the finger of the right user presses on the fingerprint module during operation), and after authorization is confirmed, the infrared LED under the screen emits infrared light 2.
After the rear light sense of the mobile phone A detects the infrared light 2, the processor analyzes and confirms OK, and the two mobile phones are connected.
An example application scenario is as follows:
1. the user turns on the scanning function against handset B using handset a. At this time, the mobile phone B may be in a bright screen state or a screen-off state.
2. The infrared LED near the back camera emits infrared light every 10ms before the mobile phone A opens the camera.
3. The light sensing device (close to the light sensor) of the mobile phone B display screen detects infrared light once every 10ms and recognizes the infrared light as a valid signal, and the display screen near the fingerprint of the mobile phone B screen prompts finger pressing; or prompting entry of a passcode, authentication gesture, etc.
4. When the mobile phone B passes the fingerprint, password or gesture authentication of the user, the infrared LED (close to the optical sensor) of the display screen of the mobile phone B emits infrared light once every 5 ms. Meanwhile, the mobile phone B opens the payment two-dimensional code.
5. The color temperature (namely light sensation) near the camera of the mobile phone A detects infrared light once every 5ms, namely feedback is considered to be effective, and at the moment, the mobile phone A opens the camera to start scanning codes.
In any of the embodiments, the manner in which the electronic device of the active initiator sends the optical signal may use the camera to shoot another mobile phone, or may be triggered by a key on the electronic device or by touching the display screen. Only the optical signal sent by the electronic equipment of the active initiator can be received by the light sensing device of the passive receiver.
In any of the above embodiments, the use of a front-end or rear-end light sensing device between two electronic devices is not limited, e.g., both electronic devices use a front-end, both use a rear-end, or one rear-end and one front-end, as well as the function may be implemented.
And the mentioned infrared LED, a rear-mounted, front-mounted flash of the phone can also be used, but since the flash is visible light.
In an application scenario, the mobile phone a needs to be connected with a wireless hotspot, and if the mobile phone B has a wireless hotspot connection, the mobile phone a can be used for scanning a hotspot two-dimensional code provided by the mobile phone B. However, in this process, the scanning function of the mobile phone a needs to be turned on, and multiple operations are performed on the mobile phone B, so that the mobile phone B enters the interface corresponding to the hot spot, displays the hot spot two-dimensional code, and then scans the mobile phone a. In the process, the user needs to perform complicated operation on the mobile phone A and the mobile phone B to realize wireless hotspot connection of the mobile phone A.
Based on the above, by using the method provided by the application, the mobile phone a sends the first optical signal to the mobile phone B, so that the mobile phone B recognizes the optical signal, and when the recognition optical signal is valid, the display interface is switched to display the hot spot two-dimensional code, and sends the second optical signal. And the mobile phone A recognizes that the second optical signal is effective, and opens the camera to scan the hot spot two-dimensional code. In the process, the optical signal can be used for completing information transmission, so that the operation on the mobile phone is reduced.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an embodiment of an electronic device provided in the present application. The electronic device 110 includes a processor 111, a memory 112 coupled to the processor 111, a light sensing device 124, and a light emitting device 125; wherein the memory 112 is for storing a computer program, and the processor 111 is for executing the computer program to implement the following method:
the first electronic equipment receives a first optical signal sent by the second electronic equipment through the first light sensing device; the first electronic equipment responds to the first optical signal as a valid signal, and generates a second optical signal through the light emitting device so that the second electronic equipment can be connected with the first electronic equipment based on the second optical signal; the first electronic device and the second electronic device are the same type of device;
or the first electronic equipment generates a first optical signal through the first light emitting device so that the second electronic equipment responds to the first optical signal as a valid signal and generates a second optical signal through the second light emitting device; the first electronic device completes connection with the second electronic device based on the second optical signal; the first electronic device and the second electronic device are of the same type.
It will be appreciated that the processor 111 is operative to execute a computer program to implement the methods of any of the embodiments described above.
Referring to fig. 10, fig. 10 is a schematic structural diagram of another embodiment of an electronic device provided in the present application. The electronic device 110 may include: memory 112, processor (Central Processing Unit, CPU) 111, circuit board (not shown), power supply circuit, and microphone 123. The circuit board is arranged in the space surrounded by the shell; the processor 111 and the memory 112 are provided on the circuit board; the power supply circuit is used for supplying power to various circuits or devices of the electronic equipment; memory 112 is used to store executable program code; the processor 111 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 112 to implement the method of any of the above embodiments.
The electronic device may further include: peripheral interface 114, RF (Radio Frequency) circuitry 116, audio circuitry 117, speakers 122, power management chip 119, input/output (I/O) subsystem 120, other input/control devices 121, display 113, and external ports 115, which may communicate via one or more communication buses or signal lines 118.
Memory 112 may be accessed by processor 111, peripheral interface 114, etc., and memory 112 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid-state storage devices. The peripheral interface 114 may connect input and output peripherals of the device to the processor 111 and the memory 112.
The I/O subsystem 120 may connect input and output peripherals on the device, such as the display 113 and other input/control devices 121, to the peripheral interface 114. The I/O subsystem 120 may include a display controller 1201 and one or more input controllers 1202 for controlling other input/control devices 121. Wherein one or more input controllers 1202 receive electrical signals from other input/control devices 121 or send electrical signals to other input/control devices 121, other input/control devices 121 may include physical buttons (push buttons, rocker buttons, etc.), dials, slider switches, joysticks, click wheels. It should be noted that the input controller 1202 may be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
The display 113 is an input interface and an output interface between the consumer electronic device and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 1201 in the I/O subsystem 120 receives electrical signals from the display 113 or sends electrical signals to the display 113. The display 113 detects a contact on the touch screen, and the display controller 1201 converts the detected contact into an interaction with a user interface object displayed on the display 113, i.e., implements a man-machine interaction, and the user interface object displayed on the display 113 may be an icon for running a game, an icon networked to a corresponding network, or the like.
The RF circuit 116 is mainly used for establishing communication between the mobile phone and a wireless network (i.e. a network side), so as to realize data receiving and transmitting between the mobile phone and the wireless network. Such as sending and receiving short messages, emails, etc. Specifically, the RF circuit 116 receives and transmits RF signals, also referred to as electromagnetic signals, the RF circuit 116 converts electrical signals into electromagnetic signals or electromagnetic signals into electrical signals, and communicates with a communication network and other devices through the electromagnetic signals. RF circuitry 116 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (COder-DECoder) chipset, a subscriber identity module (Subscriber Identity Module, SIM), and so forth.
The audio circuit 117 is mainly used for receiving audio data from the peripheral interface 114, converting the audio data into an electrical signal, and transmitting the electrical signal to the speaker 122. And a speaker 122 for reproducing the voice signal received from the wireless network by the mobile phone through the RF circuit 116 into sound and playing the sound to the user. The power management chip 119 is used for supplying power and managing power for the hardware connected to the processor 111, the I/O subsystem 120 and the peripheral interface 114.
The electronic device 110 may be a mobile terminal, such as a smart phone, a tablet, or a terminal device, such as a personal computer, or a corresponding server.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an embodiment of a computer readable storage medium provided in the present application. The computer-readable storage medium 150 stores a computer program 151, which computer program 151, when executed by a processor, implements the method of:
the first electronic equipment receives a first optical signal sent by the second electronic equipment through the first light sensing device; the first electronic equipment responds to the first optical signal as a valid signal, and generates a second optical signal through the light emitting device so that the second electronic equipment can be connected with the first electronic equipment based on the second optical signal; the first electronic device and the second electronic device are the same type of device;
or the first electronic equipment generates a first optical signal through the first light emitting device so that the second electronic equipment responds to the first optical signal as a valid signal and generates a second optical signal through the second light emitting device; the first electronic device completes connection with the second electronic device based on the second optical signal; the first electronic device and the second electronic device are of the same type.
It will be appreciated that the computer program 151, when executed by a processor, is also capable of implementing the method of any of the embodiments described above.
In summary, the electronic device, the connection method, the system and the computer readable storage medium thereof provided by the application, wherein the first electronic device and the second electronic device are connected through optical signals, so that the operation of a user in the device connection process is simplified.
In the several embodiments provided in the present application, it should be understood that the disclosed methods and apparatuses may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed.
The integrated units of the other embodiments described above may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as stand alone products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution, in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the patent application, and all equivalent structures or equivalent processes using the descriptions and the contents of the present application or other related technical fields are included in the scope of the patent application.
Claims (10)
1. A method of connecting an electronic device, the method comprising:
the first electronic equipment receives a first optical signal sent by the second electronic equipment through the first light sensing device;
the first electronic equipment responds to the first optical signal as a valid signal, and generates a second optical signal through a light emitting device so that the second electronic equipment can be connected with the first electronic equipment based on the second optical signal; the first electronic device and the second electronic device are of the same type.
2. The method of claim 1, wherein the first electronic device generating a second optical signal by a light emitting device in response to the first optical signal being a valid signal, comprising:
the first electronic device responds to the first optical signal as a valid signal and detects authorization information;
the first electronic device generates the second optical signal through the light emitting device in response to the authorization information being valid.
3. The method of claim 2, wherein the first electronic device detecting authorization information in response to the first optical signal being a valid signal comprises:
the first electronic device responds to the first optical signal as a valid signal to prompt the input of the authorization information;
and detecting the input authorization information.
4. A method according to claim 3, characterized in that the authorization information comprises at least biometric information and/or character information.
5. The method of claim 1, wherein the first electronic device generating a second optical signal through a light emitting device in response to the first optical signal being a valid signal to cause the second electronic device to complete a connection with the first electronic device based on the second optical signal, comprising:
the first electronic equipment responds to the first optical signal as an effective signal, generates a second optical signal through a light emitting device, and displays an information code corresponding to the first optical signal on a display interface of the first electronic equipment, so that the second electronic equipment starts an image acquisition assembly to identify the information code based on the second optical signal.
6. A method of connecting an electronic device, the method comprising:
the first electronic equipment generates a first optical signal through the first light emitting device, so that the second electronic equipment responds to the first optical signal as a valid signal and generates a second optical signal through the second light emitting device;
the first electronic device completes connection with the second electronic device based on the second optical signal; the first electronic device and the second electronic device are of the same type.
7. The method of claim 6, wherein the second electronic device displaying an information code corresponding to the first optical signal on a display interface in response to the first optical signal being a valid signal, the first electronic device completing a connection with the second electronic device based on the second optical signal, comprising:
the first electronic device starts an image acquisition component to identify the information code based on the second optical signal.
8. A connection system for an electronic device, the connection system comprising: the electronic device comprises first electronic equipment and second electronic equipment, wherein the first electronic equipment receives a first optical signal sent by the second electronic equipment through a first light sensing device; the first electronic equipment responds to the first optical signal as a valid signal, and generates a second optical signal through a light emitting device so that the second electronic equipment can be connected with the first electronic equipment based on the second optical signal; the first electronic device and the second electronic device are of the same type.
9. An electronic device comprising a processor and a memory coupled to the processor, a light sensing device, and a light emitting device;
wherein the memory is for storing a computer program, the processor is for executing the computer program to implement the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311378135.7A CN117459138A (en) | 2023-10-23 | 2023-10-23 | Electronic device, connection method, system and computer readable storage medium thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311378135.7A CN117459138A (en) | 2023-10-23 | 2023-10-23 | Electronic device, connection method, system and computer readable storage medium thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117459138A true CN117459138A (en) | 2024-01-26 |
Family
ID=89595888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311378135.7A Pending CN117459138A (en) | 2023-10-23 | 2023-10-23 | Electronic device, connection method, system and computer readable storage medium thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117459138A (en) |
-
2023
- 2023-10-23 CN CN202311378135.7A patent/CN117459138A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3232299B1 (en) | Physical key component, terminal, and touch response method and device | |
US9351165B2 (en) | Identity verifying method, account acquiring method, and mobile terminal | |
US20170053149A1 (en) | Method and apparatus for fingerprint identification | |
US20120081282A1 (en) | Access of an application of an electronic device based on a facial gesture | |
CN106355141B (en) | Portable electronic device and operation method thereof | |
CN107315609B (en) | Switching method and device of card simulation function | |
CN111915305B (en) | Payment method, device, equipment and storage medium | |
WO2012136028A1 (en) | Terminal authentication method and terminal | |
US20230021413A1 (en) | Voice Payment Method and Electronic Device | |
CN106097494A (en) | The method for unlocking of smart lock and device | |
CN105868983A (en) | Information output control method and device and intelligent terminal | |
CN109068372B (en) | Proximity-aware network creation method and related product | |
CN106296171B (en) | Card swiping method and device of mobile terminal | |
CN108664818B (en) | Unlocking control method and device | |
CN105407070A (en) | Logging-in authorization method and device | |
CN107369017A (en) | Quick payment implementation method and Related product | |
CN106815534A (en) | A kind of method for protecting privacy of user, device and mobile terminal | |
WO2021078272A1 (en) | Display method and electronic device | |
CN106170794A (en) | A kind of information processing method and mobile terminal | |
CN110333785B (en) | Information processing method and device, storage medium and augmented reality equipment | |
CN109151779B (en) | Neighbor Awareness Network (NAN) access method and related product | |
CN106407780A (en) | Application running method and apparatus | |
CN117459138A (en) | Electronic device, connection method, system and computer readable storage medium thereof | |
WO2023083090A1 (en) | Information display method and apparatus, electronic device, and readable storage medium | |
CN111158572B (en) | Interaction method and electronic equipment |
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 |