CN107480087B - Electronic equipment and control method - Google Patents

Electronic equipment and control method Download PDF

Info

Publication number
CN107480087B
CN107480087B CN201710693132.0A CN201710693132A CN107480087B CN 107480087 B CN107480087 B CN 107480087B CN 201710693132 A CN201710693132 A CN 201710693132A CN 107480087 B CN107480087 B CN 107480087B
Authority
CN
China
Prior art keywords
electronic device
communication
interface
communication interface
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710693132.0A
Other languages
Chinese (zh)
Other versions
CN107480087A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710693132.0A priority Critical patent/CN107480087B/en
Publication of CN107480087A publication Critical patent/CN107480087A/en
Application granted granted Critical
Publication of CN107480087B publication Critical patent/CN107480087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention provides electronic equipment and a control method, wherein the electronic equipment comprises: a housing; a main board disposed within the housing; the data processing module is arranged on the mainboard; the first communication interface is connected with the mainboard and exposed out through the shell; the data processing module establishes communication connection with second electronic equipment through contact connection between the first communication interface and a second communication interface of the second electronic equipment; the first communication interface of the electronic equipment and the second communication interface of the second electronic equipment are interfaces with the same structure; and the fixing part is used for fixing the relative position of the electronic equipment and the second electronic equipment when the contact type connection is established. The embodiment of the invention has the characteristic of convenient connection.

Description

Electronic equipment and control method
Technical Field
The embodiment of the invention relates to the technical field of electronics, in particular to electronic equipment and a control method.
Background
In the existing electronic devices, if a plurality of electronic devices are connected, a network connection module (such as a bluetooth module, a WiFi module, etc.) may be built in the electronic devices to implement communication between the electronic devices. Or the connection between two electronic devices can be realized through an additional connecting line (such as a data line), on one hand, an additional device needs to be configured in the above manner, the space of the electronic devices is occupied, and the cost is increased, on the other hand, the connection between the electronic devices cannot be conveniently realized through the manner of data line connection due to too many limiting factors, such as data line loss or data line damage. Meanwhile, the data transmission rate of the transmission mode is not ideal, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention provides electronic equipment and a control method, which can conveniently realize the connection between two pieces of electronic equipment.
In order to solve the above technical problem, an embodiment of the present invention provides the following technical solutions:
an embodiment of the present invention provides an electronic device, including:
a housing;
a main board disposed within the housing;
the data processing module is arranged on the mainboard; and
the first communication interface is connected with the mainboard and exposed out through the shell; the data processing module establishes communication connection with second electronic equipment through contact connection between the first communication interface and a second communication interface of the second electronic equipment; the first communication interface of the electronic equipment and the second communication interface of the second electronic equipment are interfaces with the same structure;
and the fixing part is used for fixing the relative position of the electronic equipment and the second electronic equipment when the contact type connection is established.
In a preferred embodiment, the first communication interface comprises a first communication subinterface and a second communication subinterface, wherein the first communication subinterface and the second communication subinterface are configured as type-adapted interfaces;
the contact connection between the first communication interface and the second communication interface is contact connection between a first communication sub-interface of the first communication interface and a second communication sub-interface of the second communication interface.
In a preferred embodiment, the first communication interface comprises at least one contact point, and the first communication interface is configured such that, in a forward contact connection or a reverse contact connection of the first communication interface and the second communication interface, each contact point of the first communication interface can be in contact connection with a contact point of the same functional configuration in the second communication interface.
In a preferred embodiment, the data processing module is configured to enter a master control mode for the second electronic device when an operation instruction input by a user is detected within a preset time after the first communication interface is judged to be in contact connection with the second communication interface; and/or
The data processing module is further configured to enter a controlled mode for the second electronic device when it is judged that any operation instruction input by a user is not received within a preset time after the first communication interface and the second communication interface are in contact connection.
In a preferred embodiment, the data processing module is configured to enable the first communication sub-interface or the second communication sub-interface based on a selection signal; and entering a master mode for the second electronic device when the first communication sub-interface is enabled, an
Entering a controlled mode for the second electronic device while enabling a second communication sub-interface; and/or
The data processing module is also configured to enter a master control mode for the second electronic device when judging that the data processing module is connected with the second electronic device only through the first communication sub-interface; and
and when the second electronic equipment is connected with the second communication sub-interface only through the second communication sub-interface, entering a controlled mode of the second electronic equipment.
In a preferred embodiment, the data processing module is further configured to perform an operation including at least one of access control to a storage component, access control to a memory space, control to a multimedia component, and control to a biometric component of the second electronic device after entering a master mode for the second electronic device.
In a preferred embodiment, the electronic device further comprises a third communication interface through which a third electronic device is connected, and the data processing module is further configured to establish a communication connection between the second electronic device and the third electronic device when the second electronic device is connected through the first communication interface and the third electronic device is connected through the third communication interface.
In a preferred embodiment, the data processing module is further configured to establish a communication connection between the second electronic device and a third electronic device when connected with the second electronic device through the first communication sub-interface and the second communication sub-interface is connected with the third electronic device.
In a preferred embodiment, the first communication interface is configured to establish full duplex communication with the second communication interface;
and the first communication interface comprises a first contact unit for transmitting data to the second communication interface and a second contact unit for receiving data from the second communication interface.
In addition, an embodiment of the present invention further provides a control method, including:
detecting whether a first communication interface of first electronic equipment is in contact connection with a second communication interface of second electronic equipment; the first communication interface is connected with a mainboard of the first electronic device and exposed outside through the shell, and the first communication interface of the first electronic device and the second communication interface of the second electronic device are interfaces with the same structure;
if so, judging whether the electronic equipment meets a first preset condition or a second preset condition, wherein,
entering a master control mode for the second electronic equipment when the first preset condition is judged to be met; and entering a controlled mode for the second electronic device when the second preset condition is judged to be met.
Based on the above disclosure, it can be known that the embodiments of the present invention have the following beneficial effects:
1. the embodiment of the invention can realize convenient connection between the electronic devices, can be connected together directly through contact without an additional data line, and can conveniently realize data communication between the electronic devices and the electronic devices; meanwhile, the connection mode through the contact is not limited by the data line, so that the device is more convenient and applicable;
2. the embodiment of the invention has the characteristics of high data transmission speed and high efficiency.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device in an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a second electronic device according to an embodiment of the invention;
FIG. 4 is a schematic structural diagram of an electronic device according to another embodiment of the invention;
FIG. 5 is a schematic structural diagram of a contact connection between a first electronic device and a second electronic device according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram illustrating a connection between a first electronic device and a plurality of electronic devices according to an embodiment of the present invention;
FIG. 7 is a schematic flow chart of a control method in an embodiment of the invention.
Detailed Description
The following detailed description of specific embodiments of the present invention is provided in connection with the accompanying drawings, which are not intended to limit the invention.
It will be understood that various modifications may be made to the embodiments disclosed herein. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Other modifications will occur to those skilled in the art within the scope and spirit of the disclosure.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the disclosure and, together with a general description of the disclosure given above, and the detailed description of the embodiments given below, serve to explain the principles of the disclosure.
These and other characteristics of the invention will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the accompanying drawings.
It should also be understood that, although the invention has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of the invention, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present disclosure will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present disclosure are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely examples of the disclosure that may be embodied in various forms. Well-known and/or repeated functions and structures have not been described in detail so as not to obscure the present disclosure with unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present disclosure in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the disclosure.
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings, and embodiments of the present invention provide an electronic device that can implement a contact connection with a second electronic device having the same interface and perform communication, and can conveniently establish a communication connection between the two electronic devices without using an additional connection line.
Fig. 1 is a schematic structural diagram of an electronic device in an embodiment of the present invention, and fig. 2 is a schematic structural diagram in an embodiment of the present invention, where the electronic device 100 (described below as the first electronic device 100) may include: the electronic device comprises a housing 101, a main board 102 arranged in the housing 101, a data processing module 103 arranged on the main board 102, a first communication interface 104, and a fixing part (not shown in the figure) for fixing the relative positions of two electronic devices when contact-type connection is established with other electronic devices through the first communication interface 104.
The first communication interface 104 is connected to the motherboard 102 and is in communication connection with the data processing module 103, and a connection end of the first communication interface 104 is exposed through the housing 101. Specifically, the housing 101 may be provided with an opening for exposing the first communication interface 104, and the first communication interface 104 or the connection end of the first communication interface 104 may be exposed through the opening, so as to facilitate connection with the communication interface of another electronic device through the first communication interface 104. The first communication interface 104 in the embodiment of the present invention can be correspondingly connected to the communication interfaces of other electronic devices by a contact connection, where the contact connection refers to a contact connection between each contact of the first communication interface 104 and each contact of the communication interfaces of other electronic devices (such as a second electronic device), and the communication connection between the two electronic devices is realized by the contact connection.
The first electronic device in the embodiment of the invention can be an intelligent electronic device such as a mobile phone, a notebook computer or a PAD. In addition, in the embodiment of the present invention, the first outer surface of the casing 101 may be connected to a display screen, and the connection end of the first communication interface 104 is exposed on the second outer surface opposite to the first outer surface, for example, when the first electronic device is a mobile phone, the connection end of the first communication interface may be exposed on the back of the mobile phone casing, so that the first electronic device has a feature that the appearance of the electronic device is not affected and the contact connection with other electronic devices can be conveniently implemented.
It should be noted that the second electronic device 200 connected to the first communication interface 104 of the first electronic device 100 in the embodiment of the present invention has the same second communication interface 201 as the first communication interface 104. Here, although the second communication interface 201 represents the same interface on the second electronic device as the first communication interface, it can be substantially regarded as the first communication interface. Further, in the embodiment of the present invention, the first communication interface 104 of the first electronic device 100 is the same as the second communication interface 201 of the second electronic device 200, which means that the types are the same, the transmission protocols are the same, and the structures are also the same, and the structures are not simply the same, and are not the same. In the embodiment of the present invention, the communication connection between two electronic devices (a first electronic device and a second electronic device) can be established through the contact connection of the two same communication interfaces, that is, the data processing module 103 can establish the communication connection with the second electronic device 200 through the first communication interface 104, and perform data communication, thereby implementing the interaction between the two electronic devices. The two electronic devices connected in a contact manner may be the same device or different devices. Further, in the embodiment of the present invention, two pieces of electronic equipment that are in contact connection with each other are the same equipment, and only two pieces of electronic equipment are the same in type and model; the two electronic devices are different in at least one of type and model, but the two different electronic devices must be both provided with the communication interfaces of the contact connection, namely the first communication interface and the second communication interface.
The following exemplifies the structure of the first communication interface in the embodiment of the present invention. As shown in fig. 1, the first communication interface 104 in the embodiment of the present invention may at least include a first communication sub-interface 1041 and a second communication sub-interface 1042, where the first communication sub-interface 1041 and the second communication sub-interface 1042 may be interfaces of the same type, or may be configured as type-adaptive interfaces. For example, the first communication sub-interface 1041 may be a male connector, and the second communication sub-interface 1042 may be a female connector; or when the first communication interface 1041 is a female connector, the second communication interface 1042 is a male connector. Correspondingly, as shown in fig. 3, it is a schematic structural diagram of a second electronic device in the embodiment of the present invention. Here, the second electronic device is shown in the same manner as the first electronic device, but the second electronic device in the embodiment of the present invention is not limited thereto.
The second communication interface 201 of the second electronic device 200 also includes a first communication sub-interface 2011 and a second communication sub-interface 2012, and the first communication sub-interface 2011 and the second communication sub-interface 2012 of the second communication interface 201 are correspondingly configured as type-adaptive communication interfaces. That is, when the first communication sub-interface 2011 is a male connector, the second communication sub-interface 2012 can be a female connector; or when the first communication interface 2011 is a female connector, the second communication interface 2012 is a male connector. When the first electronic device 100 and the second electronic device 200 are connected, the first electronic device 100 or the second electronic device 200 may be turned over, so that the first communication sub-interface 1041 of the first electronic device 100 and the second communication sub-interface 2012 of the second electronic device 200 are in contact connection, and the second communication sub-interface 1042 of the first electronic device 100 and the first communication sub-interface 2011 of the second electronic device 200 are in contact connection, thereby implementing a contact connection between the first communication interface 104 and the second communication interface 201, that is, establishing a communication connection between the first electronic device and the second electronic device.
In addition, the first communication sub-interface 1041 and the second communication sub-interface 1042 of the first communication interface 104 in the first electronic device 100 may have different numbers of connection contacts, and those skilled in the art may set the connection contacts according to different functional requirements. In addition, in the embodiment of the present invention, the above is described as using the first communication sub-interface and the second communication sub-interface to connect with the second electronic device in a contact manner, but the embodiment of the present invention is not limited to this, and although the first communication interface may include a plurality of sub-interfaces, the plurality of sub-interfaces need not all connect with corresponding interfaces of the second electronic device, and the second electronic device may establish a contact connection with only one of the communication sub-interfaces. Or when the first communication interface of the first electronic device includes a plurality of communication sub-interfaces, the second electronic device may change the connection position without being connected to all the communication sub-interfaces, and at this time, the communication connection between the first electronic device and the second electronic device may also be established.
In the above embodiment, the types and the set positions of the sub-interfaces in the first communication interface 104 and the second communication interface 201 are the same, that is, the contact connection corresponding to the adaptive interface can be realized by turning over the electronic device, so that the connection and the data communication between the two electronic devices can be conveniently established without an additional connection line, thereby facilitating the use of a user and meeting the requirement of quickly establishing the connection between the electronic devices.
In addition, in a preferred embodiment, for example, when the first electronic device is a mobile phone, the back of the housing of the first electronic device is generally provided with the camera 105, and the existing camera 105 is generally arranged to protrude from the housing 101. In this case, when two electronic devices are connected in a contact manner through the communication interface, the arrangement of the camera 105 protruding from the housing 101 or the arrangement of other protruding components may affect the connection of the two communication interfaces. Therefore, the first communication interface 104 in the embodiment of the present invention may be disposed at the middle-lower portion of the back surface of the housing 101, so that the electronic devices are not affected by the protruding camera 105 at the upper portion when connected. In addition, in another embodiment, the first communication interface may be disposed on the side frames of the housing 101, so that the electronic devices can be interconnected through the mutual contact connection of the side frames without being affected by the protrusion of the camera 105 and the like.
In addition, in the preferred embodiment of the present invention, the first electronic device 100 may further include a second communication interface in addition to the first communication interface, and the second communication interface may be the same type of interface as the first communication interface or a different type of interface. I.e. the second communication interface may comprise any type of interface, such as a contact-connected interface, a USB interface, etc. Therefore, different electronic devices can be connected through the different communication interfaces, and connection and interaction among the electronic devices are established.
In the above embodiment, the first communication interface 104 may include a plurality of sub-interfaces through which a contact connection with a corresponding sub-interface of the second communication interface in the second electronic device is implemented, so as to establish a connection between the electronic devices. In addition, the first communication interface 104 in the embodiment of the present invention may also be configured as a communication interface, as shown in fig. 4, which is a schematic structural diagram of an electronic device in another embodiment of the present invention.
In the embodiment of the present invention, the first communication interface 104 in the first electronic device may include at least one contact, and the corresponding second communication interface 201 of the second electronic device 200 may also include at least one contact. As described above, the first communication interface 104 and the second communication interface 201 may be configured as the same interface, and the connection between the two electronic devices is realized by the contact connection of the contact point of the first communication interface 104 and the corresponding contact point of the second communication interface. For example, as shown in fig. 4, the first communication interface may include 5 contact contacts, where contact a is used for power control, B is used for signal input, C is used for signal output, D represents ground, and E is idle. When the first communication interface is connected with the second electronic equipment, the contact contacts with corresponding functions are in contact connection, so that the communication connection between the two electronic equipment can be realized. Preferably, when the data processing module 103 determines that the contact points configured for each function are correctly connected, a prompt message indicating that the connection is successful may be generated and displayed on the display screen, otherwise, a prompt message indicating that the connection is failed and the connection direction is adjusted may be generated and displayed on the display screen. It should be noted that, in the embodiment of the present invention, the connection contacts of the first communication interface are arranged in a row, but in other embodiments, the connection contacts may be arranged in a plurality of rows or at least in one column, and the connection contacts may be an embodiment of the present invention as long as the connection contacts can be connected correspondingly.
In a preferred embodiment, the first communication interface 104 in the first electronic device 100 may be configured such that when the first communication interface 104 and the second communication interface 201 of the second electronic device 200 are in a forward contact connection or a reverse contact connection, each contact point of the first communication interface 104 can be in contact connection with a contact point of the same functional configuration in the second communication interface 201. As shown in fig. 4, the contact contacts of the first communication interface 104 in the embodiment of the present invention may be functionally symmetric, and the functionally symmetric setting may implement that the first communication interface 104 and the second communication interface 201 can implement connection of the contact pins of corresponding functions regardless of a forward contact connection or a reverse contact connection, so as to implement communication between electronic devices, as shown in fig. 4, the first communication interface 104 in the embodiment of the present invention may also include 5 contact contacts, where the contacts a and E are used for power control, the contacts B and D are used for signal input, and the contact C is used for signal transmission, and by this configuration, regardless of whether the first electronic device and the second electronic device are in a forward contact connection or in a reversed contact connection, connection of the contact contacts of corresponding functions may be implemented, which is convenient for a user to use, and the user does not need to check whether the connection direction is correct, has the characteristics of simplicity and convenience. It should be noted that, in the embodiment of the present invention, the connection contacts of the first communication interface are arranged in a row, but in other embodiments, the connection contacts may be arranged in a plurality of rows or at least one column, and the connection contacts may be used as an embodiment of the present invention as long as the corresponding contact pairs can be correspondingly connected in both the forward connection and the reverse connection of the first electronic device and the second electronic device. In addition, although the embodiment of the present invention has been described with an example of 5 (odd number) contact points, the present invention is not limited to this, and may be realized by using an even number of contact points.
In addition, the first communication interface 104 in the embodiment of the present invention may establish full duplex communication with the second communication interface 201; also, the first communication interface 104 includes a first contact unit for transmitting data to the second communication interface and a second contact unit for receiving data from the second communication interface. When the first communication interface 104 includes a first communication sub-interface and a second communication sub-interface, one of the first communication sub-interface and the second communication sub-interface may be used to transmit data from the first electronic device to the second electronic device, and the other sub-interface may be used to transmit data from the second electronic device to the first electronic device, thereby implementing full-duplex communication.
Alternatively, the first communication sub-interface and the second communication sub-interface may each include a contact unit for transmitting data to the second electronic device and receiving data transmitted from the second electronic device, so as to implement full duplex communication respectively.
Alternatively, when the first communication interface 104 is a communication interface, it may include a first contact unit for transmitting data to the second communication interface and a second contact unit for receiving data from the second communication interface, thereby implementing full duplex communication.
In addition, as for the fixing part in the embodiment of the present invention, it is used to fix the relative positions of the first communication interface and the second communication interface when the first electronic device and the second electronic device are connected in a contact manner, that is, to specify the relative positions of the first electronic device and the second electronic device, so as to ensure stable and continuous connection of the first communication interface and the second communication interface.
Specifically, in one embodiment of the present invention, the fixing portion may include an electromagnetic component disposed in the housing 101, which may be electrically connected to the power source and form a magnetic force when the power source is turned on to generate an attractive force to attract the second electronic device 200. Preferably, the electromagnetic assembly may be disposed adjacent to the first communication interface 104, or when the first communication interface includes a plurality of sub-interfaces, the electromagnetic assembly may also include a plurality of electromagnetic groups, each disposed adjacent to a corresponding one of the communication sub-interfaces. Or, an electromagnetic group can be arranged between every two communication sub-interfaces, so that the cost can be saved, the occupied space in the shell can be reduced, and the connection stability of each communication sub-interface can be ensured.
In another embodiment of the present invention, the electromagnetic assembly may be electrically connected to each contact of the first communication interface 104, so that each connection contact also has electromagnetic capability, thereby forming the first communication interface into a magnetic attraction type interface, and further realizing stable connection of the electronic device.
In addition, in another embodiment of the invention, the fixing portion may be configured as a clamping interface disposed on the housing, that is, clamping may be implemented through clamping interfaces correspondingly disposed on the first electronic device and the second electronic device, so as to implement fixed connection of the electronic devices. The clamping interface may include a bayonet disposed on the housing 101 of the first electronic device, and a connector disposed on the housing 101 of the second electronic device, and the two electronic devices are correspondingly connected by engaging the connector with the bayonet. Or, the clamping interface may include a bayonet and a connector correspondingly disposed on the upper and lower sides of the back surface of the housing, and correspondingly, the second electronic device may also be provided with the bayonet and the connector, and when the first electronic device and the second electronic device are reversely connected, the corresponding clamping may be performed together. The setting of the above-mentioned connectable structure can be performed by those skilled in the art according to the specific structure of the first communication interface and the requirement of the user, and is not described herein again.
The above is a description of the structure of the communication interface in the embodiment of the present invention, and a functional configuration for connecting the second electronic device in the embodiment of the present invention is described in detail below.
Fig. 5 is a schematic structural diagram of a contact connection between a first electronic device and a second electronic device in an embodiment of the present invention.
After the contact connection corresponding to the communication interfaces of the first electronic device 100 and the second electronic device 200, the data processing module 103 in the first electronic device may perform communication with the second electronic device 200 at least through the first communication interface 104, for example, may perform control on the second electronic device, or receive a control instruction of the second electronic device and perform a corresponding operation, or perform a data transmission operation with the second electronic device, and so on. In order to ensure that two electronic devices connected in contact with each other can safely perform communication, the data processing module 103 may perform communication authentication with the second electronic device 200, and may determine to perform data communication with the second electronic device after the authentication is passed, and otherwise interrupt the communication with the second electronic device.
In one embodiment of the invention, the data processing module 103 may perform communication with the second electronic device based on a received authentication information. For example, the input device of the first electronic device 100 may receive selection information input by the user, and the selection information may include information on whether to establish a connection with the second electronic device. The input device may include a touch device (e.g., a touch screen or a touch panel), a keyboard, a mouse, a biometric module (e.g., a fingerprint, a voiceprint, a human face, etc.), and other devices. The user may perform a selection operation of whether to connect the second electronic device through the input device, and the data processing module 103 may receive the selection information and verify whether to establish communication with the second electronic device as the verification information. For example, when the received selection information indicates that the second electronic device is determined to communicate, the data processing module 103 may select to enter a communication mode with the second electronic device, for example, the first communication interface 104 may be enabled at this time, or at least one sub-interface of the first communication interface 104 may be enabled. And when the received selection information indicates that the second electronic device is not in communication, the data processing module 103 may select to enter a non-communication mode with the second electronic device, for example, the data processing module 103 may control the second communication interface 104 to be in a non-enabled state, that is, the first communication interface is connected in a contact manner, but the first communication interface is in a state of being unable to communicate.
In another embodiment of the present invention, the data processing module 103 may also determine whether to perform data communication with the second electronic device 200 based on a result of comparison between the received authentication information and the preset information. For example, the data processing module 103 may select to enter a communication mode with the second communication device when the comparison result between the received authentication information and the preset information indicates that the two are consistent, for example, the first communication interface 104 may be enabled, or at least one sub-interface in the first communication interface 104 may be enabled. When the comparison result between the verification information received by the data processing module 103 and the preset information indicates that the two information are inconsistent, the data processing module 103 may select to enter a non-communication mode with the second communication device 200, for example, at this time, the data processing module 103 may control the second communication interface 104 to be in a non-enabled state, that is, a state in which the first communication interface is connected with the contact but is in a state in which the first communication interface is not capable of communicating. The received authentication information may include at least one of an authentication code, a password, a gesture, and biometric information input by the user, and the preset information may be at least one of a preset authentication code, a preset password, a preset gesture, or preset biometric information, which is pre-stored in the first electronic device 100 for an authentication operation. The preset information may be stored in the data processing module 103 or may be stored in a separate storage module. The embodiment of the present invention is not limited thereto.
In another embodiment of the present invention, the data processing module 103 may further compare the verification information transmitted from the second electronic device with the preset information, and allow communication with the second electronic device when the comparison result indicates that the verification information is consistent with the preset information. Here, the authentication information transmitted by the second electronic device may be authentication information input by the user in the second electronic device, such as at least one of an authentication code, a password, a gesture, and biometric information. In addition, the verification information transmitted by the second electronic device may include a device identifier of the second electronic device, and the data processing module may determine that the device identifier is compared with the connection-permitted identification information stored in the first electronic device, for example, the received device identifier of the second electronic device is queried in the connection-permitted identification information, that is, it is determined that communication with the second electronic device is permitted. The identification information which is connected with the stored permission connection may be identification information which is configured by the user in advance, and may also include the device identification of the connected second electronic device. That is, the data processing module may store the device identifier of the second electronic device when the second electronic device establishes the communication connection, so that the communication connection may be directly and quickly established when the contact connection is subsequently performed.
It should be noted that, in the above description, for the embodiment that the first electronic device verifies whether to perform communication, the second electronic device may also verify whether to perform communication, and the verification process may be the same as that in the above embodiment, and is not described herein again.
In addition, when the data processing module 103 determines that the communication with the second electronic device 200 is allowed to be performed, it may also determine that the current first electronic device is a master device or a controlled device, thereby performing a different operation mode.
In one embodiment of the present invention, the data processing module 103 may detect whether the first communication interface 104 of the first electronic device is in contact connection with the second communication interface 201 of the second electronic device; if so, judging whether the first electronic equipment meets a first preset condition or a second preset condition, and entering a master control mode for the second electronic equipment when the first preset condition is judged to be met; and entering a controlled mode for the second electronic device when the second preset condition is judged to be met. The electronic device may be a master device when entering the master mode and may be a slave device when entering the slave mode.
The data processing module 103 of the first electronic device may determine the connection state of the first communication interface 104 in real time, for example, determine whether the first communication interface is connected to another electronic device by using a value of a register corresponding to a contact, or determine to establish connection with the second electronic device when the first communication interface 104 of the first electronic device is enabled when it is determined that the communication with the second electronic device is allowed to be performed.
In one embodiment of the invention, the first preset condition comprises that an operation instruction input by a user is received within a preset time after the communication connection with the second electronic equipment is established; the second preset condition includes that the operation instruction input by the user is not detected within the preset time after the communication connection with the second electronic equipment is established. After the communication connection with the second electronic device is allowed, the data processing module 103 may determine whether an operation instruction input by a user is received within a preset time, for example, may detect whether a touch operation instruction on the display screen is detected within the preset time, or detect whether a touch instruction on another input device is detected within the preset time, or the like. When the operation instruction is detected within the preset time, the data processing module 103 enters a master control mode for the second electronic device 200, and correspondingly, if the operation instruction is not detected within the preset time, the second electronic device enters a controlled mode. It should be noted that, in order to optimize the configuration and improve the user experience, the preset time is less than the set time for the first electronic device to switch from the operating state to the locked state or the sleep state, so as to prevent the electronic device from continuing to monitor whether there is an input of an operation instruction and perform an unnecessary operation when the electronic device has switched to the locked state or the sleep state, which results in waste of power or resources. Through the configuration, the electronic equipment can be conveniently operated through which electronic equipment is defaulted as the main control equipment, additional configuration is not needed for a user, and the method has the characteristics of simplicity and convenience.
In another embodiment of the present invention, the first preset condition may further include receiving a selection signal enabling the first communication sub-interface, and the second preset condition may further include receiving a selection signal enabling the second communication sub-interface. After the data processing module 104 receives a selection signal about the enabling state of the first communication sub-interface and the second communication sub-interface input by a user, the first communication sub-interface or the second communication sub-interface can be enabled based on the selection signal; and entering a master mode for the second electronic device when the received selection signal indicates that the first communication sub-interface is enabled, and entering a controlled mode for the second electronic device when the second communication sub-interface is enabled. The current equipment can be determined to be the master control equipment or the controlled equipment directly according to the enabled communication sub-interface through the configuration, and the configuration has the characteristics of simplicity and convenience.
Alternatively, in another embodiment of the present invention, the first preset condition may include connection with the second electronic device only through the first communication sub-interface, and the second preset condition may include connection with the second electronic device only through the second communication sub-interface. Correspondingly, the data processing module 104 may further determine a sub-interface currently establishing a contact connection with the second electronic device, and enter a master control mode for the second electronic device when determining that the second electronic device is connected only through the first communication sub-interface; and entering a controlled mode for the second electronic equipment when the second electronic equipment is connected only through the second communication sub-interface. The current equipment can be determined to be the main control equipment or the controlled equipment directly according to the connected communication sub-interface through the configuration, and the configuration has the characteristics of simplicity and convenience.
And, the data processing module 103 may perform an operation including at least one of access control to a storage component, access control to a memory space, control to a multimedia component, and control to a biometric component of the second electronic device 200 after entering the master mode to the second electronic device. Meanwhile, after entering the controlled mode of the second electronic device, the data processing module 103 executes an operation based on the access control of the second electronic device to the storage component of the first electronic device, the access control of the memory space, the control of the multimedia component, or the control of the biometric component.
That is, when the data processing module 103 enters a master mode for the second electronic device, the first electronic device 100 may serve as a master device and the second electronic device 200 as a slave device. At this time, the first electronic device 100 may send a control instruction to the second electronic device 200, for example, read data in a storage component of the second electronic device 200, where the storage component may include a hard disk device or an external storage device connected to the second electronic device; the memory space of the second electronic device 200 may also be used to run the program of the first electronic device, or to temporarily store data; the multimedia components in the second electronic device can be controlled to execute operations, and the multimedia components can comprise audio playing equipment, video playing equipment, photographing equipment, camera shooting equipment and the like; the biometric identification component of the second electronic device can also be controlled to acquire biometric identification information, such as fingerprint information, face feature information, voiceprint information, iris information, and the like. After controlling the second electronic device to execute the corresponding operation or acquiring the corresponding information, the corresponding data information can be returned through the connection channel established by the first communication interface and the second communication interface, so that the control of the first electronic device on the second electronic device is conveniently realized.
Correspondingly, when the data processing module 103 enters the controlled mode for the second electronic device 200, the first electronic device 100 may serve as a controlled device, and the second electronic device 200 serves as a main control device. At this time, the first electronic device 100 may receive the control command sent by the second electronic device 200, and perform corresponding operations and return corresponding information. For example, the data processing module 103 may read data in a storage component thereof according to the received control instruction, where the storage component may include a hard disk device or an external storage device connected to the first electronic device; and returning the read data to the second electronic equipment through a communication channel established by the first communication interface and the second communication interface. The data processing module 103 may also use the memory space of the first electronic device 100 for running a program of the second electronic device or temporarily store data based on the control instruction sent by the second electronic device 200; the data processing module 103 may further perform a control operation on a multimedia component therein based on a control instruction of the second electronic device, where the multimedia component may include an audio playing device, a video playing device, a camera device, and the like; the data processing module 103 may further perform control on the biometric component thereof based on a control instruction sent by the second electronic device, for example, acquire biometric information, such as fingerprint information, face feature information, voiceprint information, iris information, and the like, using the biometric component, and return the acquired information to the second electronic device through a communication channel established by the first communication interface and the second communication interface.
In addition, the data processing module 103 may also detect the type of the connected second electronic device and execute a corresponding operation mode based on the monitoring result, for example, when the connected second electronic device is detected to be a camera, a photographing mode may be entered, and control of the second electronic device may be executed in the photographing mode. Or when the second electronic device is detected to be a music player, the music playing mode can be entered, and the second electronic device is controlled in the mode. Embodiments of the invention are not limited in this respect.
Through the embodiment of the invention, the control and the call of the master control device to the controlled device can be realized, that is, through the connection mode of the embodiment of the invention, the combination of the functions of the two electronic devices can be further realized, so that the data processing rate and the function realization are far higher than those of a single electronic device. Meanwhile, the embodiment of the invention can also utilize the functional module in the controlled device to replace the corresponding functional module in the main control device to realize the corresponding functional configuration, and can also utilize the functional module of the controlled device to improve the performance of the corresponding functional module of the main control device, especially when the device performance of the controlled device is stronger than that of the main control device, the performance of the main control device can be greatly improved, and meanwhile, the consumption of the resources of the main control device can be reduced.
The following is an example of the image capturing function of the electronic device, but the embodiment of the present invention is not limited thereto, and other optimization of the function configuration may be applied to the embodiment of the present invention.
The first electronic device 100 and the second electronic device 200 may be configured as the same mobile phone, the back side of the first electronic device 100 may be provided with the first communication interface 104 and a rear camera, and the front side may be provided with a front camera; the back side of the same second electronic device 200 is provided with a second communication interface 201, and a rear camera, the front side is provided with a front camera, and when the first communication interface and the second communication interface are connected in a contact manner, the rear camera of one electronic device is exposed, and the front camera of the other electronic device is exposed, and the two exposed cameras face to the same side (the specific structure can refer to the above-mentioned embodiment). At this time, a rear dual camera or a front dual camera may be formed by contact connection of two electronic devices. For example, when the first electronic device 100 is a master device and the rear-facing camera is exposed, and the second electronic device 200 is a controlled device and the front-facing camera is exposed, the first electronic device 100 may control the front-facing camera of the second electronic device 200 to perform a shooting operation, and form a "rear-facing dual camera" by using the rear-facing camera of the second electronic device and the front-facing camera of the second electronic device, thereby greatly improving the rear-facing shooting capability. Or, when the first electronic device 100 is a master device and the front camera is exposed, and the second electronic device 200 is a controlled device and the rear camera is exposed, the first electronic device 100 may control the rear camera of the second electronic device 200 to perform a camera shooting operation, and form a front dual camera by using the rear camera and the front camera of the second electronic device, thereby improving the front camera shooting capability. Through the configuration, the performance of the camera module can be greatly improved through the combination of the first electronic equipment and the second electronic equipment.
In addition, referring to the above embodiment, when two electronic devices only have rear cameras, the front camera function of the two electronic devices can also be realized through contact connection of the two electronic devices. When the first electronic device and the second electronic device are connected in a contact manner (under the condition of back-to-back), the first electronic device can be used as a main control device, and at the moment, the function of front-facing camera shooting can be realized by controlling the rear-facing camera of the second electronic device to execute the camera shooting function. When the second electronic device is also used as the main control device, the front-facing camera shooting function can be realized by controlling the front-facing camera of the first electronic device to execute the camera shooting function. By the configuration, the functions of the two electronic devices can be expanded, so that the electronic devices have the functions which cannot be realized by the electronic devices.
In addition, the first electronic device and the second electronic device may also be different electronic devices, and the two different electronic devices may have at least one different function module, and when such two electronic devices are connected in a contact manner, the electronic device that does not have the at least one different function module may be used as a main control device, thereby implementing a function configuration that cannot be implemented by the electronic device itself.
In addition, the contact connection between the electronic devices can also realize the replacement of the functions of the two electronic devices, for example, when the first electronic device is used as a main control device, the camera of the second electronic device can be used for shooting, and the camera of the first electronic device is not used, so that the consumption of the configuration of the first electronic device can be reduced. Moreover, when the configuration parameters of the camera of the second electronic device are superior to the configuration of the camera of the first electronic device, the camera of the second electronic device can be used by controlling the second electronic device, so that the shooting quality of the first electronic device can be greatly improved.
That is to say, when the first electronic device and the second electronic device are connected in a contact manner through the communication interface, a combination of functions of the two electronic devices can be realized, a function that cannot be realized by the first electronic device can also be realized by the other second electronic devices, or an operation can also be executed by the function module of the second electronic device without using the function module of the second electronic device. No matter which kind of configuration, the performance of promotion electronic equipment that all can be great has better user experience, moreover because the variety of the combination of the equipment of different grade type, can promote user's use interest.
Further, in this embodiment of the present invention, after entering the controlled mode, the data processing module 103 may further execute the first program based on a control instruction transmitted by the second electronic device, and select to stop the running of the second program unrelated to the first program. The second program independent from the first program means that stopping the operation of the second program does not affect the operation of the first program, and the first program and the second program may be implemented in a hardware manner or a software manner. By the configuration, on one hand, the power consumption of the second electronic equipment can be saved, and the electric energy can be saved; on the other hand, the running speed of the first program can be improved by stopping running of the second program, and the user experience is better.
For example, in the embodiment of the present invention, the second program may include a touch display program, a gravity detection program, and the like. For example, when the first electronic device is used as a controlled device, the data processing module 103 may control to turn off a device such as a touch module (touch display screen, touch panel) or a gravity detection module (e.g., accelerometer) of the first electronic device, so as to stop the second program until determining that an instruction for turning on the second program is received. Here, stopping the second program includes turning off a touch detection function of the touch module, or may also include not transmitting detected touch information to other electronic devices, or the like. The configuration of closing the touch module can further prevent the user from being influenced by mistaken touch when the controlled device is held, and meanwhile, the first electronic device can be saved in power. Similarly, the turning off of the gravity detection module may include a function of turning off the gravity detection module to detect gravity change information, or may not transmit the detected gravity information to other electronic devices, and the like, and by this configuration, power consumption of the first electronic device may also be saved, and due to the reduction of processes of gravity detection and analysis, a data processing rate of the first electronic device to execute other programs may be increased.
In addition, in the embodiment of the present invention, determining that the instruction to start the second program is received may include: and judging at least one of receiving an operation instruction of the user to the first electronic device, judging as receiving an instruction of calling the second program by the main control device (such as the second electronic device), and judging as exiting the controlled mode. When any one of the above conditions is satisfied, the first electronic device may execute the second program, and at this time, execution of another program unrelated to the second program may be stopped, thereby ensuring that the first electronic device can always be maintained under the condition of the highest system performance. In addition, as shown in fig. 6, in the embodiment of the present invention, the first electronic device 100 may further include a third communication interface 106, the third communication interface 106 may be used for connecting to a third electronic device 300, and the data processing module 103 may establish a communication connection between the second electronic device 200 and the third electronic device 300 when the second electronic device 200 is connected through the first communication interface 104 and the third electronic device 300 is connected through the third communication interface 106.
In particular, the third communication interface 106 may be a different type of interface than the first communication interface 104, e.g., the third communication interface 106 may be configured as a USB interface. That is to say, in the embodiment of the present invention, the second electronic device and the third electronic device may be connected through the first communication interface and the third communication interface of different types, respectively, and a communication connection between the second electronic device and the third electronic device is established. I.e. the first electronic device 100 can be seen as a connection line between the second electronic device and the third electronic device.
Meanwhile, the first electronic device 100 may simultaneously perform authentication of communication connections of the second electronic device 200 and the third electronic device 300 when the second electronic device 200 and the third electronic device 300 are connected, respectively, in the same manner as described in the above embodiment. The data processing module 103 may allow performing simultaneous communication connection with the second electronic device and the third electronic device, enabling the first communication interface and the third communication interface, only if the authentication of both the second electronic device 200 and the third electronic device 300 is passed. With the above configuration, connection of electronic devices having different types of communication interfaces can be achieved by the first electronic device.
In addition, the third electronic device 300 and the second electronic device 200 may be connected to two sub-interfaces of the first communication interface, respectively, that is, the second electronic device may be connected through the first communication sub-interface, and the third electronic device may be connected through the second communication sub-interface, that is, the third electronic device may be provided with the first communication interface, or an interface that can be connected in a contact manner. With the above configuration, a communication connection between the second electronic device and the third electronic device can also be established through the first electronic device. Likewise, the first electronic device 100 may simultaneously perform authentication of the communication connection of the second electronic device 200 and the third electronic device 300 when the second electronic device 200 and the third electronic device 300 are connected, respectively, in the same manner as described in the above embodiment. The data processing module 103 may allow performing a simultaneous communication connection with the second electronic device and the third electronic device, enabling the first communication sub-interface and the second communication sub-interface, only if the authentication of both the second electronic device 200 and the third electronic device 300 is passed.
In addition, when the first electronic device is connected to the second electronic device and the third electronic device, respectively, the data processing module 103 of the first electronic device 100 may execute a determination program for determining a control mode of the second electronic device 200 and the third electronic device 300, that is, determine whether the first electronic device is in the master control mode or the controlled mode with respect to the second electronic device; and determining whether the first electronic device is in the master control mode or the controlled mode relative to the third electronic device, where the specific determination process is the same as that described in the above embodiment and is not described herein again. Through the configuration, the control of a plurality of electronic devices through one electronic device or the control of one electronic device through a plurality of electronic devices can be conveniently realized, and the user experience is better.
In addition, in a preferred embodiment of the present invention, when the first sub-interface and the second sub-interface or more sub-interfaces are in contact connection with the second electronic device 200, the data processing module 103 of the first electronic device 100 may further divide the first data transmitted to the second electronic device into sub-data with the same number of sub-interfaces, and transmit the sub-data to the second electronic device through each sub-interface, so as to speed up the data transmission rate. In addition, the data processing module 103 in the first electronic device 100 may also restore the first data according to the sub data received by each sub interface, and perform processing based on the first data. Through the configuration, the data transmission burden of each communication interface can be reduced, and the data transmission efficiency is greatly improved.
In summary, the embodiment of the present invention can realize convenient connection between electronic devices, can be connected together directly by contact without an additional data line, and can conveniently realize data communication between the two devices; meanwhile, the connection mode through the contact is not limited by the data line, so that the device is more convenient and applicable.
In addition, the embodiment of the invention also provides a control method, and the control method can be applied to the electronic equipment. Fig. 7 is a schematic flow chart of a control method according to an embodiment of the present invention. Wherein, the method can comprise the following steps:
detecting whether a first communication interface of first electronic equipment is in contact connection with a second communication interface of second electronic equipment; the first communication interface is connected with a mainboard of the first electronic device and exposed outside through the shell, and the first communication interface of the first electronic device and the second communication interface of the second electronic device are interfaces with the same structure;
if so, judging whether the electronic equipment meets a first preset condition or a second preset condition, wherein,
entering a master control mode for the second electronic equipment when the first preset condition is judged to be met; and entering a controlled mode for the second electronic device when the second preset condition is judged to be met.
The data processing module 103 of the first electronic device may determine the connection state of the first communication interface 104 in real time, for example, whether the first communication interface is connected to another electronic device may be determined by a value of a register corresponding to a contact point, or it may be determined that connection with the second electronic device is established when the first communication interface 104 of the first electronic device is enabled when it is determined that communication with the second electronic device is allowed to be performed.
In one embodiment of the invention, the first preset condition comprises that an operation instruction input by a user is received within a preset time after the communication connection with the second electronic equipment is established; the second preset condition includes that the operation instruction input by the user is not detected within the preset time after the communication connection with the second electronic equipment is established. After the communication connection with the second electronic device is allowed, the data processing module 103 may determine whether an operation instruction input by a user is received within a preset time, for example, may detect whether a touch operation instruction on the display screen is detected within the preset time, or detect whether a touch instruction on another input device is detected within the preset time, or the like. When the operation instruction is detected within the preset time, the data processing module 103 determines that the first preset condition is met, and enters a main control mode for the second electronic device 200; correspondingly, if the operation instruction is not detected within the preset time, the second preset condition is judged to be met, and the second electronic device enters a controlled mode. It should be noted that, in order to optimize the configuration and improve the user experience, the preset time is less than the set time for the first electronic device to switch from the operating state to the locked state or the sleep state, so as to prevent the electronic device from continuing to monitor whether there is an input of an operation instruction and perform an unnecessary operation when the electronic device has switched to the locked state or the sleep state, which results in waste of power or resources. Through the configuration, the electronic equipment can be conveniently operated through which electronic equipment is defaulted as the main control equipment, additional configuration is not needed for a user, and the method has the characteristics of simplicity and convenience.
In another embodiment of the present invention, the first preset condition may further include receiving a selection signal enabling the first communication sub-interface, and the second preset condition may further include receiving a selection signal enabling the second communication sub-interface. After the data processing module 104 receives a selection signal about the enabling state of the first communication sub-interface and the second communication sub-interface input by a user, the first communication sub-interface or the second communication sub-interface can be enabled based on the selection signal; and when the received selection signal indicates that the first communication sub-interface is enabled, determining that a first preset condition is met, entering a master control mode for the second electronic device, and when the second communication sub-interface is enabled, determining that a second preset condition is met, entering a controlled mode for the second electronic device. The current equipment can be determined to be the master control equipment or the controlled equipment directly according to the enabled communication sub-interface through the configuration, and the configuration has the characteristics of simplicity and convenience.
Alternatively, in another embodiment of the present invention, the first preset condition may include connection with the second electronic device only through the first communication sub-interface, and the second preset condition may include connection with the second electronic device only through the second communication sub-interface. Correspondingly, the data processing module 104 may further determine a sub-interface currently establishing a contact connection with the second electronic device, and when it is determined that the connection with the second electronic device is only established through the first communication sub-interface, determine that a first preset condition is met, and enter a master control mode for the second electronic device; and when the second electronic equipment is connected with the second electronic equipment only through the second communication sub-interface, the second electronic equipment is judged to meet a second preset condition, and a controlled mode of the second electronic equipment is entered. The current equipment can be determined to be the main control equipment or the controlled equipment directly according to the connected communication sub-interface through the configuration, and the configuration has the characteristics of simplicity and convenience.
And, the data processing module 103 may perform an operation including at least one of access control to a storage component, access control to a memory space, control to a multimedia component, and control to a biometric component of the second electronic device 200 after entering the master mode to the second electronic device. Meanwhile, after entering the controlled mode of the second electronic device, the data processing module 103 executes an operation based on the access control of the second electronic device to the storage component of the electronic device, the access control of the memory space, the control of the multimedia component, or the control of the biometric component.
That is, when the data processing module 103 enters a master mode for the second electronic device, the first electronic device 100 may serve as a master device and the second electronic device 200 as a slave device. At this time, the first electronic device 100 may send a control instruction to the second electronic device 200, for example, read data in a storage component of the second electronic device 200, where the storage component may include a hard disk device or an external storage device connected to the second electronic device; the memory space of the second electronic device 200 may also be used to run the program of the first electronic device, or to temporarily store data; the multimedia components in the second electronic device can be controlled to execute operations, and the multimedia components can comprise audio playing equipment, video playing equipment, photographing equipment, camera shooting equipment and the like; the biometric identification component of the second electronic device can also be controlled to acquire biometric identification information, such as fingerprint information, face feature information, voiceprint information, iris information, and the like. After controlling the second electronic device to execute the corresponding operation or acquiring the corresponding information, the corresponding data information can be returned through the connection channel established by the first communication interface and the second communication interface, so that the control of the first electronic device on the second electronic device is conveniently realized.
Correspondingly, when the data processing module 103 enters the controlled mode for the second electronic device 200, the first electronic device 100 may serve as a controlled device, and the second electronic device 200 serves as a main control device. At this time, the first electronic device 100 may receive the control command sent by the second electronic device 200, and perform corresponding operations and return corresponding information. For example, the data processing module 103 may read data in a storage component thereof according to the received control instruction, where the storage component may include a hard disk device or an external storage device connected to the first electronic device; and returning the read data to the second electronic equipment through a communication channel established by the first communication interface and the second communication interface. The data processing module 103 may also use the memory space of the first electronic device 100 for running a program of the second electronic device or temporarily store data based on the control instruction sent by the second electronic device 200; the data processing module 103 may further perform a control operation on a multimedia component therein based on a control instruction of the second electronic device, where the multimedia component may include an audio playing device, a video playing device, a camera device, and the like; the data processing module 103 may further perform control on the biometric component thereof based on a control instruction sent by the second electronic device, for example, acquire biometric information, such as fingerprint information, face feature information, voiceprint information, iris information, and the like, using the biometric component, and return the acquired information to the second electronic device through a communication channel established by the first communication interface and the second communication interface.
In addition, the data processing module 103 may also detect the type of the connected second electronic device and execute a corresponding operation mode based on the monitoring result, for example, when the connected second electronic device is detected to be a camera, a photographing mode may be entered, and control of the second electronic device may be executed in the photographing mode. Or when the second electronic device is detected to be a music player, the music playing mode can be entered, and the second electronic device is controlled in the mode. Embodiments of the invention are not limited in this respect.
In addition, in the embodiment of the present invention, the first electronic device 100 may further include a third communication interface 106, the third communication interface 106 may be used for connecting to a third electronic device 300, and the data processing module 103 may establish a communication connection between the second electronic device 200 and the third electronic device 300 when the second electronic device 200 is connected through the first communication interface 104 and the third electronic device 300 is connected through the third communication interface 106.
In particular, the third communication interface 106 may be a different type of interface than the first communication interface 104, e.g., the third communication interface 106 may be configured as a USB interface. That is to say, in the embodiment of the present invention, the second electronic device and the third electronic device may be connected through the first communication interface and the third communication interface of different types, respectively, and a communication connection between the second electronic device and the third electronic device is established. I.e. the first electronic device 100 can be seen as a connection line between the second electronic device and the third electronic device.
Meanwhile, when the first electronic device 100 is connected to the second electronic device 200 and the third electronic device 300, respectively, the data processing module 103 may simultaneously perform authentication on the communication connection of the second electronic device 200 and the third electronic device 300, in the same manner as described in the above embodiment. The data processing module 103 may allow performing simultaneous communication connection with the second electronic device and the third electronic device, enabling the first communication interface and the third communication interface, only if the authentication of both the second electronic device 200 and the third electronic device 300 is passed. With the above configuration, connection of electronic devices having different types of communication interfaces can be achieved by the first electronic device.
In addition, the third electronic device 300 and the second electronic device 200 may be connected to two sub-interfaces of the first communication interface, respectively, that is, the second electronic device may be connected through the first communication sub-interface, and the third electronic device may be connected through the second communication sub-interface, that is, the third electronic device may be provided with the first communication interface, or an interface that can be connected in a contact manner. With the above configuration, a communication connection between the second electronic device and the third electronic device can also be established through the first electronic device. Likewise, the first electronic device 100 may simultaneously perform authentication of the communication connection of the second electronic device 200 and the third electronic device 300 when the second electronic device 200 and the third electronic device 300 are connected, respectively, in the same manner as described in the above embodiment. The data processing module 103 may allow performing a simultaneous communication connection with the second electronic device and the third electronic device, enabling the first communication sub-interface and the second communication sub-interface, only if the authentication of both the second electronic device 200 and the third electronic device 300 is passed.
In addition, when the first electronic device is connected to the second electronic device and the third electronic device, respectively, the data processing module 103 of the first electronic device 100 may execute a determination program for determining a control mode of the second electronic device 200 and the third electronic device 300, that is, determine whether the first electronic device is in the master control mode or the controlled mode with respect to the second electronic device; and determining whether the first electronic device is in the master control mode or the controlled mode relative to the third electronic device, where the specific determination process is the same as that described in the above embodiment and is not described herein again. Through the configuration, the control of a plurality of electronic devices through one electronic device or the control of one electronic device through a plurality of electronic devices can be conveniently realized, and the user experience is better.
In addition, in a preferred embodiment of the present invention, when the first sub-interface and the second sub-interface or more sub-interfaces are in contact connection with the second electronic device 200, the data processing module 103 of the first electronic device 100 may further divide the first data transmitted to the second electronic device into sub-data with the same number of sub-interfaces, and transmit the sub-data to the second electronic device through each sub-interface, so as to speed up the data transmission rate. In addition, the data processing module 103 in the first electronic device 100 may also restore the first data according to the sub data received by each sub interface, and perform processing based on the first data. Through the configuration, the data transmission burden of each communication interface can be reduced, and the data transmission efficiency is greatly improved.
In summary, the embodiment of the present invention can realize convenient connection between electronic devices, can be connected together directly by contact without an additional data line, and can conveniently realize data communication between the two devices; meanwhile, the connection mode through the contact is not limited by the data line, so that the device is more convenient and applicable; meanwhile, the control or controlled program of the connected electronic equipment can be conveniently determined and executed.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the electronic device to which the data processing method described above is applied may refer to the corresponding description in the foregoing product embodiments, and details are not repeated herein.
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should also be considered as falling within the scope of the present invention.

Claims (9)

1. An electronic device, comprising:
a housing;
a main board disposed within the housing;
the data processing module is arranged on the mainboard; and
the first communication interface is connected with the mainboard and exposed out through the shell; the data processing module establishes communication connection with second electronic equipment through contact connection between the first communication interface and a second communication interface of the second electronic equipment; the first communication interface of the electronic equipment and the second communication interface of the second electronic equipment are interfaces with the same structure;
the fixing part is used for fixing the relative position of the electronic equipment and the second electronic equipment when the contact type connection is established;
wherein the first communication interface comprises a first communication sub-interface and a second communication sub-interface, and the first communication sub-interface and the second communication sub-interface are configured as type-adaptive interfaces;
wherein the contact connection between the first communication interface and the second communication interface is a contact connection between a first communication sub-interface of the first communication interface and a second communication sub-interface of the second communication interface, an
And the second communication sub-interface of the first communication interface is in contact connection with the first communication sub-interface of the second communication interface.
2. The electronic device of claim 1, wherein the first communication interface comprises at least one contact, and the first communication interface is configured such that each contact of the first communication interface is contactably connectable with a contact of the same functional configuration in the second communication interface when the first and second communication interfaces are in a forward contact connection or a reverse contact connection.
3. The electronic device according to claim 1, wherein the data processing module is configured to enter a master control mode for the second electronic device when an operation instruction input by a user is detected within a preset time after the first communication interface is judged to be in contact connection with the second communication interface; and/or
The data processing module is further configured to enter a controlled mode for the second electronic device when it is judged that any operation instruction input by a user is not received within a preset time after the first communication interface and the second communication interface are in contact connection.
4. The electronic device of claim 1, wherein the data processing module is configured to enable either a first communication sub-interface of the first communication interface or a second communication sub-interface of the first communication interface based on a selection signal; and entering a master mode for the second electronic device when the first communication sub-interface of the first communication interface is enabled, an
Entering a controlled mode for the second electronic device while enabling the second communication sub-interface of the first communication interface; and/or
The data processing module is also configured to enter a master control mode for the second electronic device when the data processing module judges that the data processing module is connected with the second electronic device only through the first communication sub-interface of the first communication interface; and
and when the second electronic equipment is connected with the first electronic equipment only through the second communication sub-interface of the first communication interface, entering a controlled mode of the second electronic equipment.
5. The electronic device of any of claims 3 or 4, wherein the data processing module is further configured to perform operations comprising at least one of access control to a storage component, access control to memory space, control of a multimedia component, and control of a biometric component of the second electronic device upon entering a master mode for the second electronic device.
6. The electronic device of claim 1, wherein the electronic device further comprises a third communication interface through which a third electronic device is connected, and the data processing module is further configured to establish a communication connection between the second electronic device and the third electronic device when the second electronic device is connected through the first communication interface and the third electronic device is connected through the third communication interface.
7. The electronic device of claim 1, wherein the data processing module is further configured to establish a communication connection between a second electronic device and a third electronic device when connected to the second electronic device through the first communication sub-interface of the first communication interface and the second communication sub-interface of the first communication interface is connected to the third electronic device.
8. The electronic device of claim 1, wherein the first communication interface is configured to establish full duplex communication with a second communication interface;
and the first communication interface comprises a first contact unit for transmitting data to the second communication interface and a second contact unit for receiving data from the second communication interface.
9. A control method, comprising:
detecting whether a first communication interface of first electronic equipment is in contact connection with a second communication interface of second electronic equipment; the first communication interface is connected with a mainboard of the first electronic device and exposed outside through the shell, and the first communication interface of the first electronic device and the second communication interface of the second electronic device are interfaces with the same structure;
if so, judging whether the electronic equipment meets a first preset condition or a second preset condition, wherein,
entering a master control mode for the second electronic equipment when the first preset condition is judged to be met; when the second preset condition is judged to be met, entering a controlled mode of the second electronic equipment;
wherein the first communication interface comprises a first communication sub-interface and a second communication sub-interface, and the first communication sub-interface and the second communication sub-interface are configured as type-adaptive interfaces;
wherein the contact connection between the first communication interface and the second communication interface is a contact connection between a first communication sub-interface of the first communication interface and a second communication sub-interface of the second communication interface, an
And the second communication sub-interface of the first communication interface is in contact connection with the first communication sub-interface of the second communication interface.
CN201710693132.0A 2017-08-14 2017-08-14 Electronic equipment and control method Active CN107480087B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710693132.0A CN107480087B (en) 2017-08-14 2017-08-14 Electronic equipment and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710693132.0A CN107480087B (en) 2017-08-14 2017-08-14 Electronic equipment and control method

Publications (2)

Publication Number Publication Date
CN107480087A CN107480087A (en) 2017-12-15
CN107480087B true CN107480087B (en) 2021-02-19

Family

ID=60599244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710693132.0A Active CN107480087B (en) 2017-08-14 2017-08-14 Electronic equipment and control method

Country Status (1)

Country Link
CN (1) CN107480087B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110022239A (en) * 2018-01-08 2019-07-16 深圳市中兴微电子技术有限公司 A kind of detection method, equipment and storage medium
CN211321713U (en) * 2019-11-06 2020-08-21 上海商汤智能科技有限公司 Shell structure and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201038524Y (en) * 2006-07-11 2008-03-19 孙振宇 Double-face universal serial bus interface
CN102316609A (en) * 2011-09-07 2012-01-11 何天华 Separable double-communication hand-held device
CN103750821A (en) * 2014-01-02 2014-04-30 深圳源动创新科技有限公司 Handheld multi-parameter measuring instrument and working method for same
CN104577491A (en) * 2015-02-09 2015-04-29 联想(北京)有限公司 Electronic equipment and control method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI548250B (en) * 2010-11-15 2016-09-01 富智康(香港)有限公司 Portable electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201038524Y (en) * 2006-07-11 2008-03-19 孙振宇 Double-face universal serial bus interface
CN102316609A (en) * 2011-09-07 2012-01-11 何天华 Separable double-communication hand-held device
CN103750821A (en) * 2014-01-02 2014-04-30 深圳源动创新科技有限公司 Handheld multi-parameter measuring instrument and working method for same
CN104577491A (en) * 2015-02-09 2015-04-29 联想(北京)有限公司 Electronic equipment and control method thereof

Also Published As

Publication number Publication date
CN107480087A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN105260019B (en) A kind of mobile terminal and information processing method
KR102061913B1 (en) Method and apparatus for controlling operations of electronic device
CN108197450B (en) Face recognition method, face recognition device, storage medium and electronic equipment
CN108920397B (en) Device identification method and device, storage medium and electronic device
KR102391940B1 (en) Electronic apparatus and method for preventing misperception of ear phone inserting of the same
US9696762B2 (en) Unlocking method and electronic apparatus
KR20200026534A (en) Method for identifying an external electronic device based on power information, storage medium and an electronic device therefor
CN107480087B (en) Electronic equipment and control method
WO2020034908A1 (en) Method for communication between remote control and mobile terminal, device, and remote control
CN105224494A (en) Method for handover control and device
CN105893828A (en) Human face verification driving testing system and method based on mobile terminal
WO2017150844A1 (en) Connector device having multi-receiving part
KR20200060018A (en) Electronic device and method for obtaining information associated with fingerprint
CN105809233B (en) A kind of intelligent modules card and its application method
CN104346482B (en) A kind of acquisition method and electronic equipment
CN109344586B (en) Unlocking method and device, storage medium and mobile terminal
KR20200114757A (en) Method for keyless reset and electronic devic therefor
US9939907B2 (en) Gesture detection using MEMS wind turbines
CN108600050B (en) Command transmission method and device, computer equipment and readable storage medium
US10237819B2 (en) SSIC device and link control method for SSIC device
CN106292878B (en) Electronic equipment and information processing method
CN108924345A (en) Photographic method, camera arrangement and mobile terminal
US20210068284A1 (en) Method for controlling power using socket and electronic device supporting the same
CN107580280A (en) Charging and audio control method, equipment and storage medium
CN105224484B (en) The method and apparatus that multiplex roles application is realized in ID authentication device

Legal Events

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