CN111465122A - Pairing method and electronic equipment - Google Patents

Pairing method and electronic equipment Download PDF

Info

Publication number
CN111465122A
CN111465122A CN202010244910.XA CN202010244910A CN111465122A CN 111465122 A CN111465122 A CN 111465122A CN 202010244910 A CN202010244910 A CN 202010244910A CN 111465122 A CN111465122 A CN 111465122A
Authority
CN
China
Prior art keywords
identification information
module
target
target identification
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010244910.XA
Other languages
Chinese (zh)
Other versions
CN111465122B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010244910.XA priority Critical patent/CN111465122B/en
Publication of CN111465122A publication Critical patent/CN111465122A/en
Application granted granted Critical
Publication of CN111465122B publication Critical patent/CN111465122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0254Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets comprising one or a plurality of mechanically detachable modules
    • H04M1/0256Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets comprising one or a plurality of mechanically detachable modules wherein the modules are operable in the detached state, e.g. one module for the user interface and one module for the transceiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses a pairing method and electronic equipment, wherein the pairing method is applied to the electronic equipment, the electronic equipment comprises an equipment body, a first electric connecting piece is arranged on the equipment body and used for being electrically connected with a second electric connecting piece arranged on a separated module, and the pairing method comprises the following steps: under the condition that the first electric connecting piece is electrically connected with the second electric connecting piece, acquiring target identification information of the separated module; matching the target identification information with pre-stored identification information; and under the condition that the target identification information is matched with the pre-stored identification information, generating first pairing information. The embodiment of the invention can simplify the pairing process among the electronic devices and improve the user experience.

Description

Pairing method and electronic equipment
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a pairing method and electronic equipment.
Background
With the development of electronic technology, wireless connection between electronic devices, such as bluetooth connection between two mobile phones or wireless fidelity (Wi-Fi) connection between a mobile phone and a router, can be established anytime and anywhere, so as to realize wireless communication between electronic devices.
Pairing between electronic devices is required when establishing a wireless connection. For example, two electronic devices are paired, and the pairing process includes: users of two electronic devices respectively open wireless connection functions of the two electronic devices; one of the electronic devices searches for a nearby electronic device; selecting electronic equipment needing to be paired from the searched electronic equipment by the user; the user inputs the password of the wireless connection; and in the case that the password is correctly input, completing the pairing of the two electronic devices.
However, in the pairing process of the electronic devices, the user needs to operate for many times to complete pairing between the electronic devices, which results in a complicated pairing process of the electronic devices and poor user experience.
Disclosure of Invention
The embodiment of the invention provides a pairing method and electronic equipment, and aims to solve the problems that the pairing process of the electronic equipment is relatively complicated and the user experience is poor.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a pairing method, which is applied to an electronic device, where the electronic device includes a device body, and a first electrical connector is disposed on the device body, and is used to be electrically connected to a second electrical connector disposed on a separate module, where the method includes:
under the condition that the first electric connecting piece is electrically connected with the second electric connecting piece, acquiring target identification information of the separated module;
matching the target identification information with pre-stored identification information;
and generating first pairing information under the condition that the target identification information is matched with the pre-stored identification information.
In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes a device body, and a first electrical connector is disposed on the device body, and the first electrical connector is used to be electrically connected to a second electrical connector disposed on a separate module, and the electronic device includes:
the identification information acquisition module is used for acquiring target identification information of the separated module under the condition that the first electric connecting piece is electrically connected with the second electric connecting piece;
the information matching module is used for matching the target identification information with prestored identification information;
and the pairing information generating module is used for generating first pairing information under the condition that the target identification information is matched with the pre-stored identification information.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the pairing method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the pairing method.
In the embodiment of the invention, under the condition that the device main body of the electronic device is electrically connected with the separable module through the electric connecting piece, the electronic device acquires the target identification information of the separable module, matches the target identification information with the prestored identification information, and generates the first pairing information under the condition of matching so as to represent that the device main body and the separable module are successfully paired. Therefore, the user can realize the pairing by electrically connecting the device main body and the separated module, and does not need the user to perform other operations, such as inputting complex passwords, thereby simplifying the pairing process between the electronic devices and improving the experience of the user.
Drawings
FIG. 1 is a flow chart of a pairing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a pairing method according to another embodiment of the present invention;
fig. 3 is a schematic view showing a rear surface of an apparatus main body and a camera module according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an electronic device according to an embodiment of the invention;
fig. 5 is a schematic diagram illustrating a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 shows a flow chart of a pairing method according to an embodiment of the present invention. The pairing method is applied to electronic equipment, the electronic equipment comprises an equipment body, a first electric connecting piece is arranged on the equipment body and used for being electrically connected with a second electric connecting piece arranged on a separated module, and the pairing method comprises the following steps:
step 101, acquiring target identification information of the split module under the condition that the first electric connecting piece is electrically connected with the second electric connecting piece.
Under the condition that the first electric connecting piece is electrically connected with the second electric connecting piece, the device main body and the split type module can communicate with each other, so that the device main body can acquire target identification information of the split type module. The specific structure and material of the first electrical connector and the second electrical connector are not limited, and the first electrical connector and the second electrical connector may be conductive and may enable communication between the device main body and the separate module. For example, the first electrical connector and the second electrical connector are metal patches. The number of the first electrical connectors may be one or more, and the number of the second electrical connectors may be one or more. The number of the first electrical connectors and the number of the second electrical connectors may be the same or different.
The target identification information may be an identification code of the separate module, for example, the target identification information is a unique serial number of the separate module. The target identification information may also be the device name of the separate module.
And 102, matching the target identification information with pre-stored identification information.
Wherein, matching the target identification information with the pre-stored identification information comprises: and judging whether the target identification information is consistent with the pre-stored identification information, judging that the target identification information is matched with the pre-stored identification information under the condition that the target identification information is consistent with the pre-stored identification information, and judging that the target identification information is not matched with the pre-stored identification information under the condition that the target identification information is inconsistent with the pre-stored identification information.
And 103, generating first pairing information under the condition that the target identification information is matched with the pre-stored identification information. The first pairing information may be information indicating that the device body and the detachable module are successfully paired. The electronic device may display the first pairing information.
In addition, after the pairing of the equipment main body and the split module is completed, the equipment main body and the split module can be automatically connected. The specific connection comprises the following steps:
under the condition that the device main body and the separated module both open the wireless connection function, the device main body searches for at least one electronic device which opens the wireless connection function, and acquires identification information of each electronic device in the at least one electronic device.
The device main body acquires, in at least one electronic device, an electronic device whose identification information is consistent with the stored target identification information (the electronic device whose identification information is consistent with the target identification information is a separate module). The device body establishes a wireless connection with the separate module.
In the embodiment of the invention, under the condition that the device main body of the electronic device is electrically connected with the separable module through the electric connecting piece, the electronic device acquires the target identification information of the separable module, matches the target identification information with the prestored identification information, and generates the first pairing information under the condition of matching so as to represent that the device main body and the separable module are successfully paired. Therefore, the user can realize the pairing by electrically connecting the device main body and the separated module, and does not need the user to perform other operations, such as inputting complex passwords, thereby simplifying the pairing process between the electronic devices and improving the experience of the user.
In one or more embodiments of the invention, the number of the second electrical connectors is plural.
Step 101 comprises: in a case where the first electrical connector is connected with a target electrical connector among the plurality of second electrical connectors, target identification information corresponding to the target electrical connector is acquired.
After step 103, the pairing method further comprises:
and controlling the separated module to be in a target working state according to the target identification information.
In the embodiment of the invention, the number of the second electric connectors is multiple, the device body is electrically connected with different second electric connectors, and the separated module can be in different working states. Therefore, the second electric connector not only realizes the electric connection of the device main body, but also enables the device main body to control the working state of the split type module.
In one or more embodiments of the present invention, the separate module is a camera module; according to the target identification information, the separated module is controlled to be in a target working state, and the method comprises the following steps:
controlling a target camera of the camera module to be in a working state according to the target identification information; the camera module comprises a plurality of cameras, and each identification information corresponds to at least one camera in the plurality of cameras.
In the embodiment of the invention, under the condition that the first electric connecting piece of the equipment main body is electrically connected with the target electric connecting piece in the plurality of second electric connecting pieces of the camera module, the target camera corresponding to the target identification information is controlled to be in the working state according to the target identification information corresponding to the target electric connecting piece.
For example, the camera module is provided with two electrical connectors, namely an electrical connector 1 and an electrical connector 2. The electric connector 1 corresponds to identification information A, and the identification information A corresponds to a wide-angle camera on the camera module; electric connector 2 corresponds identification information B, and identification information B corresponds all cameras on the module of making a video recording.
Under the condition that the equipment main part is connected with electric connector 1 electricity on the module of making a video recording, the equipment main part acquires the identification information A that electric connector 1 corresponds, according to identification information A, starts the wide angle camera on the module of making a video recording.
Under the condition that the equipment main body is electrically connected with the electric connecting piece 2 on the camera module, the equipment main body acquires an identifier B corresponding to the electric connecting piece 2 and starts all cameras on the camera module according to the identifier B.
The equipment body in the embodiment of the invention is electrically connected with different electric connecting pieces on the camera module, the camera module can start different cameras to work, and a user does not need to operate on a display interface of the equipment main body to switch the cameras, so that the user can conveniently use the camera module to shoot.
In one or more embodiments of the present invention, the separate module is a camera module; according to the target identification information, the separated module is controlled to be in a target working state, and the method comprises the following steps:
controlling the camera module to work in a target shooting mode according to the target identification information; the camera module is provided with a plurality of shooting modes, and each piece of identification information corresponds to one shooting mode.
Wherein the plurality of photographing modes include at least one of a video recording mode, a photographing mode, a self-photographing mode, and a panorama photographing mode. The plurality of photographing modes may include a front photographing mode and a rear photographing mode.
For example, the camera module is provided with two electrical connectors, namely an electrical connector 1 and an electrical connector 2. The electric connector 1 corresponds to the identification information A, and the identification information A corresponds to the video mode; the electric connector 2 corresponds to the identification information B, and the identification information B corresponds to the photographing mode.
Under the condition that the equipment main body is electrically connected with the electric connecting piece 1 on the camera module, the equipment main body acquires the identification information A corresponding to the electric connecting piece 1 and controls the camera module to be in a video recording mode according to the identification information A.
Under the condition that the equipment main part is connected with electric connector 2 electricity on the module of making a video recording, the equipment main part acquires the sign B that electric connector 2 corresponds, according to sign B, controls the module of making a video recording and is in the mode of shooing.
The equipment body in the embodiment of the invention is electrically connected with different electric connecting pieces on the camera module, the camera module can be in different shooting modes, and a user does not need to operate on a display interface of the equipment main body to set the shooting mode, so that the user can conveniently use the camera module to shoot.
In one or more embodiments of the invention, the second electrical connectors are disposed at different positions of the split module.
According to the target identification information, the separated module is controlled to be in a target working state, and the method comprises the following steps:
determining the placement state of the separated module according to the target identification information, wherein the placement state comprises a placement position and a placement direction; and controlling the separated module to be in a target working state according to the placing state.
For example, the split type module is a camera module, a second electric connecting piece is arranged at the first position of the camera module, and another second electric connecting piece is arranged at the second position of the camera module. And under the condition that the equipment main body is electrically connected with the second electric connector (namely the target electric connector) at the first position, determining that the separated module is positioned in front of the equipment main body according to the identification information (namely the target identification information) of the second electric connector at the first position, and controlling the camera module to be in a front shooting mode. And under the condition that the equipment main body is electrically connected with the second electric connector (namely the target electric connector) at the second position, determining that the separated module is positioned at the back of the equipment main body according to the identification information (namely the target identification information) of the second electric connector at the second position, and controlling the camera module to be in a rear shooting mode.
The equipment body in the embodiment of the invention is electrically connected with different electric connecting pieces at different positions on the separate module, the separate module can be in different working states, and a user does not need to operate on a display interface of the equipment main body to set the working state of the separate module, so that the user can conveniently use the separate module.
In one or more embodiments of the present invention, after matching the target identification information with the pre-stored identification information, the pairing method further includes:
and under the condition that the target identification information is not matched with the pre-stored identification information, storing the target identification information into the electronic equipment.
The pre-stored identification information in the device main body is matched with the target identification information of the separable module, for example, the pre-stored identification information is the same as the target identification information, which indicates that the device main body is successfully paired with the separable module before the electrical connection, and the electrical connection is not required to be repeatedly performed. Therefore, the equipment main body and the separated module can be automatically connected in a follow-up mode through one-time pairing. If the pre-stored identification information in the device main body is not matched with the target identification information of the separable module, which indicates that the device main body is paired with a new separable module (i.e. the separated module which has not been paired before), the device main body stores the target identification information into the device main body, so that the device main body is paired with the new separable module.
In the embodiment of the invention, the device main body acquires and stores the target identification information of the split module, and the pairing between the device main body and the split module is completed. Therefore, the user can realize pairing by electrically connecting the two electronic devices without other operations, such as inputting complex passwords, thereby simplifying the pairing process between the electronic devices and improving the user experience.
In one or more embodiments of the present invention, the device body stores the target identification information to a predetermined position of a nonvolatile memory of the device body. Therefore, the device main body reads the target identification information from the preset position before acquiring the electronic device with the identification information consistent with the target identification information from the searched electronic device, so that the target identification information is conveniently read.
In one or more embodiments of the present invention, in a case where the target identification information is not identical to the pre-stored identification information, the pairing method further includes:
and deleting the pre-stored identification information stored in the device main body.
In the embodiment of the invention, the prestored identification information stored in the device main body is deleted, so that the pairing between the device main body and the electronic device corresponding to the prestored identification information is released. And the equipment main body stores the target identification information of the split module, so that the equipment main body can replace the split module corresponding to the paired split module from the split module corresponding to the prestored identification information to the split module corresponding to the target identification information, and the disordered connection of the equipment main body can be avoided.
The embodiment of the invention can be applied to a scene that the equipment main body is successfully paired with only one split module at the same time, namely the scene that the equipment main body is wirelessly connected with only one split module at the same time. For example, one device body corresponds to one class of separate module, and the separate module may be a camera module, a keyboard, or a mouse. Therefore, one device body is connected with at least one of one camera module, one keyboard and one mouse, and the disorder of the connection of the device body and a plurality of separated modules of the same category is avoided, such as one device body.
In one or more embodiments of the invention, the first electrical connector and the second electrical connector are electrically connected by hot plugging.
The embodiment of the invention realizes the electric connection in a hot plug mode, and when the first electric connecting piece is electrically connected with the second electric connecting piece, even if the separated module is electrically disconnected with the equipment main body in the working state of the equipment main body and the separated module, the normal work of the equipment main body and the separated module can not be influenced.
The embodiment of the invention can be applied to the scene that the equipment main body is matched with the camera module. The camera of electronic equipment (for example cell-phone) is more and more, in order to reduce the quantity of camera, separates camera and electronic equipment's equipment main part, and the camera can set up the front end or the rear end at equipment main part along with user's demand like this, avoids setting up the camera respectively at equipment main part's front end and rear end. Because the module of making a video recording and equipment main part separation, in order to avoid under the scene that a plurality of modules of making a video recording shoot, lead to the corresponding relation confusion of the module of making a video recording and equipment main part, consequently, need will make a video recording module and equipment main part and pair. The pairing of the camera module and the device body can be realized through any one of the above embodiments of the present invention.
The following describes a pairing method provided in an embodiment of the present invention by using a specific example.
Fig. 2 is a flowchart illustrating a pairing method according to another embodiment of the present invention. The pairing method is applied to electronic equipment, wherein a first electric connector is arranged on the electronic equipment, and as shown in fig. 2, the pairing method comprises the following steps:
step 201, under the condition that the first connecting piece of the equipment main body is electrically connected with the second connecting piece of the camera module, the equipment main body reads the target identification information of the camera module.
For example, fig. 3 is a schematic diagram illustrating a rear surface of a device main body (e.g., a surface of a mobile phone housing) and a camera module according to an embodiment of the present invention. As shown in fig. 3, a first electrical connector a is provided on the back surface 301 of the apparatus main body, a second electrical connector B is provided on the first surface 302 of the camera module, and four cameras, respectively, camera 304 to camera 307, are provided on the second surface 303 of the camera module. The first side 302 of the camera module and the second side 303 of the camera module can be two opposite sides of the camera module. The apparatus main body and the camera module can communicate with each other with the first electric connector a and the first electric connector B electrically connected.
And if the equipment main body fails to read the target identification information of the camera module, the equipment main body fails to pair with the camera module.
Step 202, the apparatus main body determines whether there is pre-stored identification information in the apparatus main body, for example, whether there is identification information of other camera modules stored in the apparatus main body. If it is determined that the device body has the pre-stored identification information, the device body has already been paired with another camera module before the electrical connection, step 204 is executed, and if it is determined that the device body does not have the pre-stored identification information, the device body has not already been paired with another camera module before the electrical connection, and the device body may be a completely new device body, step 203 is executed.
And step 203, the equipment main body stores the target identification information so as to complete the pairing of the equipment main body and the camera module.
Step 204, the device main body judges whether the target identification information is matched with the pre-stored identification information, and if the target identification information is matched with the pre-stored identification information, the device main body and the camera module are matched before the electrical connection, and step 205 is executed; in the case that the target identification information does not match the pre-stored identification information, it indicates that the device body and the camera module have completed pairing with other camera modules before the current electrical connection, and step 206 is executed.
Step 205, the device main body generates first pairing information and displays the first pairing information to remind a user that the device main body and the camera module are successfully paired before electrical connection.
And step 206, deleting the pre-stored identification information by the equipment main body, and storing the target identification information so as to complete the pairing of the equipment main body and the camera module.
Wherein, the equipment main part deletes the sign information of prestoring in order to avoid the equipment main part to be confused with the connection of the module of making a video recording. Assuming that the device body is a mobile phone, the mobile phone has already been paired with the camera module a, that is, the identification information of the camera module a has already been stored in the mobile phone. And under the condition that the first electric connecting piece of the mobile phone is electrically connected with the second electric connecting piece of the camera module B, the mobile phone reads the identification information of the camera module B. Because module A and the module B of making a video recording are the module of making a video recording of two differences, consequently, module A's the identification information of making a video recording is inequality with module B's the identification information of making a video recording. In this case, the mobile phone deletes the identification information of the camera module a that has been stored, and stores the identification information of the camera module B. Although the mobile phone, the camera module A and the camera module B all open the wireless connection function, the identification information of the camera module B is stored in the mobile phone, and the identification information of the camera module A is not stored in the mobile phone, so that the mobile phone is connected with the camera module B instead of the camera module A, and the disordered connection between the mobile phone and the camera module is avoided.
In the embodiment of the invention, the equipment main body is electrically connected with the camera module through the electric connecting piece, so that the equipment main body acquires the target identification information of the camera module, the equipment main body stores the target identification information, and the pairing between the equipment main body and the camera module is completed. Therefore, the user can realize the pairing by electrically connecting the equipment main body and the camera module, and does not need the user to perform other operations, such as inputting a complex password, so that the pairing process between the equipment main body and the camera module is simplified, and the user experience is improved.
Fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic equipment comprises an equipment body, wherein a first electric connecting piece is arranged on the equipment body and is electrically connected with a second electric connecting piece arranged on the separated module. As shown in fig. 4, the electronic device 400 includes:
the identification information acquisition module 401 is configured to acquire target identification information of the split module when the first electrical connector is electrically connected to the second electrical connector;
an information matching module 402, configured to match the target identification information with pre-stored identification information;
a pairing information generating module 403, configured to generate first pairing information when the target identification information matches with the pre-stored identification information.
In the embodiment of the invention, under the condition that the device main body of the electronic device is electrically connected with the separable module through the electric connecting piece, the electronic device acquires the target identification information of the separable module, matches the target identification information with the prestored identification information, and generates the first pairing information under the condition of matching so as to represent that the device main body and the separable module are successfully paired. Therefore, the user can realize the pairing by electrically connecting the device main body and the separated module, and does not need the user to perform other operations, such as inputting complex passwords, thereby simplifying the pairing process between the electronic devices and improving the experience of the user.
In one or more embodiments of the invention, the number of the second electrical connectors is plural;
the identification information acquisition module 401 includes:
a correspondence identification information acquisition module for acquiring target identification information corresponding to a target electrical connector in the plurality of second electrical connectors in a case where the first electrical connector is connected to the target electrical connector;
the electronic device 400 further comprises:
and the working state control module is used for controlling the separated module to be in a target working state according to the target identification information.
In the embodiment of the invention, the number of the second electric connectors is multiple, the device body is electrically connected with different second electric connectors, and the separated module can be in different working states. Therefore, the second electric connector not only realizes the electric connection of the device main body, but also enables the device main body to control the working state of the split type module.
In one or more embodiments of the present invention, the separate module is a camera module;
the working state control module comprises:
the first state control module is used for controlling a target camera of the camera module to be in a working state according to the target identification information; the camera module comprises a plurality of cameras, and each piece of identification information corresponds to at least one camera;
alternatively, the first and second electrodes may be,
the second state control module is used for controlling the camera module to work in a target shooting mode according to the target identification information; the camera module is provided with a plurality of shooting modes, and each piece of identification information corresponds to one shooting mode.
The equipment body in the embodiment of the invention is electrically connected with different electric connecting pieces on the camera module, the camera module can start different cameras to work, and a user does not need to operate on a display interface of the equipment main body to switch the cameras, so that the user can conveniently use the camera module to shoot. Or, the camera module can be in different shooting modes, and the user does not need to operate on the display interface of the equipment main body to set the shooting mode, so that the user can conveniently use the camera module to shoot.
In one or more embodiments of the invention, the plurality of second electrical connectors are disposed at different positions of the split module; the working state control module comprises:
the placement state determining module is used for determining the placement state of the separated module according to the target identification information, and the placement state comprises a placement position and a placement direction;
and the third state control module is used for controlling the separated module to be in a target working state according to the placement state.
The equipment body in the embodiment of the invention is electrically connected with different electric connecting pieces at different positions on the separate module, the separate module can be in different working states, and a user does not need to operate on a display interface of the equipment main body to set the working state of the separate module, so that the user can conveniently use the separate module.
In one or more embodiments of the invention, electronic device 400 further comprises:
and the identification information storage module is used for storing the target identification information into the electronic equipment under the condition that the target identification information is not matched with the pre-stored identification information.
In the embodiment of the invention, the device main body acquires and stores the target identification information of the split module, and the pairing between the device main body and the split module is completed. Therefore, the user can realize pairing by electrically connecting the two electronic devices without other operations, such as inputting complex passwords, thereby simplifying the pairing process between the electronic devices and improving the user experience.
Fig. 5 shows a schematic hardware structure diagram of an electronic device 500 according to an embodiment of the present invention, where the electronic device 500 includes a device main body, and the device main body includes but is not limited to: the radio frequency unit 501, the network module 502, the audio output unit 503, the input unit 504, the sensor 505, the display unit 506, the user input unit 507, the interface unit 508, the memory 509, the processor 510, the power supply 511, a first connecting piece and the like, wherein the first connecting piece is used for being electrically connected with a second connecting piece arranged on the separated module. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to obtain target identification information of the split module when the first electrical connector is electrically connected to the second electrical connector; matching the target identification information with pre-stored identification information; and under the condition that the target identification information is matched with the pre-stored identification information, generating first pairing information.
In the embodiment of the invention, under the condition that the device main body of the electronic device is electrically connected with the separable module through the electric connecting piece, the electronic device acquires the target identification information of the separable module, matches the target identification information with the prestored identification information, and generates the first pairing information under the condition of matching so as to represent that the device main body and the separable module are successfully paired. Therefore, the user can realize the pairing by electrically connecting the device main body and the separated module, and does not need the user to perform other operations, such as inputting complex passwords, thereby simplifying the pairing process between the electronic devices and improving the experience of the user.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera module) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light Emitting Diode (O L ED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
An embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the pairing method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the pairing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A pairing method is applied to electronic equipment, the electronic equipment comprises an equipment body, a first electric connecting piece is arranged on the equipment body and used for being electrically connected with a second electric connecting piece arranged on a separable module, and the method comprises the following steps:
under the condition that the first electric connecting piece is electrically connected with the second electric connecting piece, acquiring target identification information of the separated module;
matching the target identification information with pre-stored identification information;
and generating first pairing information under the condition that the target identification information is matched with the pre-stored identification information.
2. The method of claim 1, wherein the second electrical connector is plural in number;
the acquiring the target identification information of the separated module under the condition that the first electric connector is electrically connected with the second electric connector comprises:
acquiring the target identification information corresponding to a target electrical connector in a plurality of second electrical connectors when the first electrical connector is connected with the target electrical connector;
after the generating first pairing information, the method further comprises:
and controlling the separated module to be in a target working state according to the target identification information.
3. The method of claim 2, wherein the separate module is a camera module;
controlling the separated module to be in a target working state according to the target identification information, comprising:
controlling a target camera of the camera module to be in a working state according to the target identification information; the camera module comprises a plurality of cameras, and each piece of identification information corresponds to at least one camera;
alternatively, the first and second electrodes may be,
controlling the camera module to work in a target shooting mode according to the target identification information; the camera module is provided with a plurality of shooting modes, and each piece of identification information corresponds to one shooting mode.
4. The method of claim 2, wherein a plurality of the second electrical connections are disposed at different locations of the split module;
controlling the separated module to be in a target working state according to the target identification information, comprising:
determining the placement state of the separated module according to the target identification information, wherein the placement state comprises a placement position and a placement direction;
and controlling the separated module to be in the target working state according to the placement state.
5. The method of claim 1, wherein after matching the target identification information with pre-stored identification information, the method further comprises:
and under the condition that the target identification information is not matched with the pre-stored identification information, storing the target identification information into the electronic equipment.
6. An electronic device, the electronic device includes a device body, a first electrical connector is arranged on the device body, the first electrical connector is used for being electrically connected with a second electrical connector arranged on a separated module, the electronic device includes:
the identification information acquisition module is used for acquiring target identification information of the separated module under the condition that the first electric connecting piece is electrically connected with the second electric connecting piece;
the information matching module is used for matching the target identification information with prestored identification information;
and the pairing information generating module is used for generating first pairing information under the condition that the target identification information is matched with the pre-stored identification information.
7. The electronic device of claim 6, wherein the second electrical connector is plural in number;
the identification information acquisition module includes:
a correspondence identification information acquisition module configured to acquire the target identification information corresponding to a target electrical connector among the plurality of second electrical connectors when the first electrical connector is connected to the target electrical connector;
the electronic device further includes:
and the working state control module is used for controlling the separated module to be in a target working state according to the target identification information.
8. The electronic device of claim 7, wherein the separate module is a camera module;
the working state control module comprises:
the first state control module is used for controlling a target camera of the camera module to be in a working state according to the target identification information; the camera module comprises a plurality of cameras, and each piece of identification information corresponds to at least one camera;
alternatively, the first and second electrodes may be,
the second state control module is used for controlling the camera module to work in a target shooting mode according to the target identification information; the camera module is provided with a plurality of shooting modes, and each piece of identification information corresponds to one shooting mode.
9. The electronic device of claim 7, wherein a plurality of the second electrical connectors are disposed at different positions of the split module;
the working state control module comprises:
the placement state determining module is used for determining the placement state of the separated module according to the target identification information, wherein the placement state comprises a placement position and a placement direction;
and the third state control module is used for controlling the separated module to be in the target working state according to the placement state.
10. The electronic device of claim 6, further comprising:
and the identification information storage module is used for storing the target identification information into the electronic equipment under the condition that the target identification information is not matched with the pre-stored identification information.
CN202010244910.XA 2020-03-31 2020-03-31 Pairing method and electronic device Active CN111465122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010244910.XA CN111465122B (en) 2020-03-31 2020-03-31 Pairing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010244910.XA CN111465122B (en) 2020-03-31 2020-03-31 Pairing method and electronic device

Publications (2)

Publication Number Publication Date
CN111465122A true CN111465122A (en) 2020-07-28
CN111465122B CN111465122B (en) 2022-06-28

Family

ID=71681578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010244910.XA Active CN111465122B (en) 2020-03-31 2020-03-31 Pairing method and electronic device

Country Status (1)

Country Link
CN (1) CN111465122B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973359A (en) * 2017-03-07 2017-07-21 重庆西山科技股份有限公司 Quick method, device, wireless device and the communication system for setting up wireless connection
CN107708095A (en) * 2017-09-05 2018-02-16 上海斐讯数据通信技术有限公司 Mobile terminal, wearable device and the two connection, matching method
US20180103496A1 (en) * 2011-06-14 2018-04-12 Samsung Electronics Co., Ltd. Wireless local area communication method and terminal supporting the same
WO2018072830A1 (en) * 2016-10-20 2018-04-26 Sonova Ag Wireless hearing device comprising split pairing tables
CN108124510A (en) * 2017-12-29 2018-06-05 深圳市名宗科技有限公司 A kind of Wireless pairing system and matching method
CN108696688A (en) * 2018-07-13 2018-10-23 维沃移动通信有限公司 A kind of camera, terminal and image pickup method
CN110636477A (en) * 2018-06-21 2019-12-31 腾讯科技(深圳)有限公司 Device connection method, device, terminal and storage medium
CN110753171A (en) * 2019-09-29 2020-02-04 上海智光慧芯照明科技有限公司 Camera module

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180103496A1 (en) * 2011-06-14 2018-04-12 Samsung Electronics Co., Ltd. Wireless local area communication method and terminal supporting the same
WO2018072830A1 (en) * 2016-10-20 2018-04-26 Sonova Ag Wireless hearing device comprising split pairing tables
CN106973359A (en) * 2017-03-07 2017-07-21 重庆西山科技股份有限公司 Quick method, device, wireless device and the communication system for setting up wireless connection
CN107708095A (en) * 2017-09-05 2018-02-16 上海斐讯数据通信技术有限公司 Mobile terminal, wearable device and the two connection, matching method
CN108124510A (en) * 2017-12-29 2018-06-05 深圳市名宗科技有限公司 A kind of Wireless pairing system and matching method
CN110636477A (en) * 2018-06-21 2019-12-31 腾讯科技(深圳)有限公司 Device connection method, device, terminal and storage medium
CN108696688A (en) * 2018-07-13 2018-10-23 维沃移动通信有限公司 A kind of camera, terminal and image pickup method
CN110753171A (en) * 2019-09-29 2020-02-04 上海智光慧芯照明科技有限公司 Camera module

Also Published As

Publication number Publication date
CN111465122B (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN108279948B (en) Application program starting method and mobile terminal
CN108229420B (en) Face recognition method and mobile terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN107728923B (en) Operation processing method and mobile terminal
CN107682359B (en) Application registration method and mobile terminal
CN111290810B (en) Image display method and electronic equipment
CN110308834B (en) Setting method of application icon display mode and terminal
CN109857297B (en) Information processing method and terminal equipment
CN108958593B (en) Method for determining communication object and mobile terminal
CN110891217B (en) Earphone, earphone control method and electronic equipment
CN109995110B (en) Connector, electronic equipment, data transmission method and device
CN109888928B (en) Terminal and wireless charging control method
US20230037238A1 (en) Audio output mode switching method and electronic device
CN108174109B (en) Photographing method and mobile terminal
CN111651387B (en) Interface circuit and electronic equipment
CN111246061B (en) Mobile terminal, method for detecting shooting mode and storage medium
CN109788114B (en) Call processing method and terminal
CN109358913B (en) Application program starting method and terminal equipment
CN109002245B (en) Application interface operation method and mobile terminal
CN108924413B (en) Shooting method and mobile terminal
CN108196663B (en) Face recognition method and mobile terminal
CN110248264B (en) Sound transmission control method and terminal equipment
CN109491572B (en) Screen capturing method of mobile terminal and mobile terminal
CN110990029A (en) Application processing method and electronic equipment
CN108062465B (en) Unlocking method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant