Disclosure of Invention
In view of this, the invention provides a sharing device and an electronic device, which are used for solving the problem of higher cost of a modularized implementation scheme of a mobile phone in the prior art, and the technical scheme is as follows:
A sharing device, comprising:
A first connection part connected with the first electronic device;
A second connection part connected with at least one second electronic device;
and a processing chip that allocates power or current to the second electronic device based on the power or current required by the second electronic device connected to the second connection part.
Wherein the first connection component comprises one or more of a contact connection interface and a wireless interface.
Wherein, the processing chip includes:
An identification unit that identifies power or current required for operation of the second electronic device when the second electronic device is connected to the second connection part;
And
And the distribution unit is connected with the identification unit and distributes the power or the current identified by the identification unit for the second electronic equipment.
The first electronic device is a movable electronic device, and the sharing device is a movable sharing device.
The sharing device is arranged in the first electronic device, and the second connecting part of the sharing device is exposed through the shell of the first electronic device.
Wherein the first connection means comprises at least one standard communication interface.
Wherein the at least one standard communication interface comprises one or more of a lighting interface, a USB interface and a moto pin interface.
Wherein the second connection means comprises at least one standard communication interface.
Wherein the at least one standard communication interface comprises one or more of an HDMI interface, a VGA interface, a USB interface, a network interface and an audio interface.
An electronic device comprises the sharing device.
A data processing system comprises the electronic device and at least one second electronic device connected with a sharing device of the electronic device.
The data management method is applied to the sharing equipment, and comprises the following steps:
After the sharing device establishes communication connection with the first electronic device, if the second electronic device is detected to establish communication connection with the sharing device, acquiring data of the second electronic device and managing the data of the second electronic device.
The data management method further comprises the following steps:
In the process of interaction between the sharing device and the first electronic device, acquiring interaction data between the sharing device and the first electronic device, and managing the interaction data
The technical scheme has the following beneficial effects:
In the sharing device and the electronic device provided by the invention, the sharing device comprises the first connecting component connected with the first electronic device and the second connecting component connected with at least one second electronic device, and the sharing device can distribute power or current for the second electronic device based on the power or current required by the accessed second electronic device, so that on one hand, the sharing device provided by the invention enables the first electronic device to be connected with more peripheral equipment based on the sharing device, and on the other hand, a developer only needs to develop devices or function modules based on the sharing device, and does not need to develop electronic devices with different standards, so that development cost is greatly reduced, and for a user, purchase cost is greatly reduced because the user does not need to continuously purchase devices or function modules meeting different standards.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
An embodiment of the present invention provides a sharing device, please refer to fig. 1, which shows a schematic structural diagram of the sharing device, and the sharing device may include a first connection part 101 connected to a first electronic device, a second connection part 102 connected to at least one second electronic device, and a processing chip 103 for distributing power or current to the second electronic device based on power or current required by the second electronic device connected to the second connection part.
In one possible implementation manner, the first connection part 101 is a contact connection interface, that is, the sharing device is connected with the sharing device through a contact connection manner, in another possible implementation manner, the first connection part 101 is a wireless interface, that is, the sharing device is connected with the sharing device through a wireless manner, and in another possible implementation manner, the first connection part 101 may be a contact connection interface and a wireless interface, that is, the sharing device is provided with a connection interface and a wireless interface at the same time, that is, the sharing device may be connected with the first electronic device supporting the contact connection manner or the first electronic device supporting the wireless connection.
The contact connection interface and the interface can be at least one standard communication interface. Specifically, the contact connection interface of the sharing device may be, but not limited to, one or more of a lighting interface, a USB interface (including at least a type-c interface, a Micro USB interface, etc.), and a moto pin interface (i.e. a ground 16pin interface).
If the contact Type connection interface of the sharing device comprises moto pin interface, the sharing device can access moto mobile phone through the moto pin interface, if the contact Type connection interface of the sharing device comprises lighting interface, the sharing device can access apple mobile phone through the lighting interface, if the contact Type connection interface of the sharing device comprises Type-c interface, the sharing device can access moto mobile phone, millet mobile phone, hua mobile phone and other main stream products through the Type-c interface, if the contact Type connection interface of the sharing device comprises Micro USB interface, the sharing device can access Oppo mobile phone and vivo mobile phone through the Micro USB interface. Of course, if the contact connection interface of the sharing device includes the above multiple interfaces at the same time, it can be compatible with multiple mobile phones.
In this embodiment, the sharing device can access the external device through the second connection part 102. The second connection member 102 may be a standard communication interface. Specifically, the second connection part 102 of the sharing device may be, but not limited to, one or more of an HDMI interface, a VGA interface, a USB interface (e.g., type-c interface, micro USB interface, USB2.0 interface, etc.), a network interface (e.g., WLAN interface), an audio interface (e.g., 3.5mm audio interface, 2.5mm audio interface, etc.), among standard communication interfaces.
It should be noted that, the second connection part 102 of the sharing device may include one Type of interface or multiple types of interfaces, for example, including multiple USB2.0 interfaces, and the second connection part 102 of the sharing device may also include multiple types of interfaces, and each Type of interface may include one or multiple types of interfaces, for example, 1 Type-c interface, 2 USB2.0 interfaces, 1 HDMI interface, and 1 audio interface.
The sharing device may be connected to the first electronic device through the first connection part 101, the first electronic device may supply power to the sharing device, and the sharing device may be connected to at least one second electronic device through the second connection part 102, where, in general, power or current (i.e. power consumption) required by different second electronic devices is different, in order to meet power or current requirements of the different second electronic devices, the processing chip 103 in the sharing device provided in this embodiment may allocate power or current to the second electronic device based on power or current required by the second electronic device connected to the second connection part 102.
Further, the processing chip 103 in the shared device may comprise an identification unit and an allocation unit. The identification unit is used for identifying the power or the current required by the second electronic equipment connected with the second connecting component, and the distribution unit is used for distributing the power or the current to the second electronic equipment based on the power or the current identified by the identification unit.
The second connection part of the sharing device includes a USB2.0 interface, where the USB2.0 interface may be connected to the mouse receiver, may also be connected to the USB disk, and may also be connected to a mobile power supply, and if the mouse receiver needs 300mA of current, the USB disk needs 500mA of current, and the mobile power supply needs 900mA of current, when the USB2.0 interface of the sharing device is connected to the mouse receiver, the processing chip 103 may identify the current needed by the mouse receiver, when the current needed by the mouse receiver is identified as 300mA, the processing chip 103 may identify the current needed by the USB disk, when the USB2.0 interface of the sharing device is connected to the USB disk, the processing chip 103 may identify the current needed by the mobile power supply, when the current needed by the sharing device is identified as 900mA, the processing chip 103 may identify the current needed by the mobile power supply, and when the current needed by the sharing device is identified as 900mA, the processing chip 103 may identify the current needed by the USB disk.
The above example is for the case of one interface, and when a shared device has multiple interfaces, devices accessing the shared device interfaces may be powered based on a power or current allocation policy.
The second connection component of the sharing device includes an HDMI interface, a Type-c interface, a USB2.0 interface, a Micro USB interface, and a WLAN interface, where the HDMI interface may access a television, the Type-c interface may access headphones, a data line, the USB2.0 interface may access a mouse adapter, a USB disk, a mobile hard disk, a mobile power supply, etc., the Micro USB interface may access the data line, the WLAN interface may access a network cable, and the following table indicates working currents of devices accessed by the interfaces of the sharing device:
Table 1 operating currents of devices accessed by respective interfaces of shared devices
When the HDMI interface of the sharing device is connected to the television, the Type-c interface is connected to the earphone, and the USB2.0 interface is connected to the USB flash disk, the processing chip 103 can provide 100mA current for the television, 20mA current for the earphone and 500mA current for the USB flash disk based on the current distribution strategy of the table.
In this embodiment, the sharing device is a mobile sharing device, and the first electronic device may be, but not limited to, a mobile electronic device, such as a mobile phone, a PAD, or the like. The second electronic device may be, but not limited to, a television, a mobile phone, a PAD, an audio device (such as an earphone and an audio playing device), a video device (such as a video playing device), a storage device (such as a usb disk and a mobile hard disk), a mobile power device, etc., where it should be noted that the second electronic device may also be a functional module with a certain function, that is, a functional module based on a sharing device may be flexibly accessed, so as to implement a required function.
In one possible implementation, the sharing device may be disposed in the first electronic device, and the second connection part of the sharing device is exposed through a housing of the first electronic device.
Exemplary, the sharing device is embedded in the mobile phone, and the second connection component of the sharing device, such as HDMI interface, type-c interface, USB2.0 interface, micro USB interface, WLAN interface, may be exposed on the back or side of the mobile phone, and fig. 2 is a schematic diagram showing that the second connection component of the sharing device is exposed through the mobile phone shell. When the user wants to connect the external device, the external device can be directly connected to the corresponding interface on the mobile phone.
The sharing device provided by the embodiment of the invention has the first connecting component which can be connected with the first electronic device and the second connecting component which can be connected with at least one second electronic device, and the sharing device can distribute power or current for the second electronic device based on the power or current required by the accessed second electronic device, so that the sharing device provided by the embodiment of the invention can enable the first electronic device to access more peripheral equipment based on the sharing device on one hand, and enable a developer to develop devices or function modules based on the sharing device on the other hand, and the development cost is greatly reduced, and for users, the purchase cost is greatly reduced because the devices or function modules meeting different standards do not need to be continuously purchased.
The sharing device provided by the embodiment of the invention is described below by way of a specific example.
Referring to fig. 3, a schematic structural diagram of a specific example of a sharing device according to an embodiment of the present invention is shown, where the sharing device may include:
the first connecting component is connected with first electronic equipment (such as a mobile phone) and comprises a moto pin interface, a lighting interface, a Type-c interface and a Micro USB interface;
the second connecting part is connected with the second electronic equipment and comprises an HDMI interface, a Type-c interface, a USB2.0 interface, a Micro USB interface, a WLAN interface and an audio interface;
And a processing chip that allocates power or current to the second electronic device based on the power or current required by the second electronic device connected to the second connection part.
Since the sharing device is simultaneously provided with a plurality of standard interfaces (moto pin interface, lighting interface, type-c interface and Micro USB interface) connected with the first electronic devices, the sharing device can be connected with the first electronic devices of a plurality of main streams, that is, can be compatible with the first electronic devices of a plurality of types. When the sharing device is connected with the first electronic device through one of moto pin interface, lighting interface, type-c interface and Micro USB interface, the first electronic device may supply power to the sharing device.
Because the sharing device simultaneously has a plurality of standard interfaces connected with the second electronic device, and an HDMI interface, a Type-c interface, a USB2.0 interface, a Micro USB interface, a WLAN interface and an audio interface, the sharing device can connect a plurality of second electronic devices with different functions, and further can meet the access requirements of users for different second electronic devices.
Because the sharing device provides multiple standard interfaces, namely, an HDMI interface, a Type-c interface, a USB2.0 interface, a Micro USB interface, a WLAN interface and an audio interface, there may be a case that the sharing device can enter different second electronic devices at different moments, a case that a plurality of different second electronic devices are accessed at the same moment, and power supply requirements of the different second electronic devices are different. The sharing device provided by the embodiment of the invention dynamically recognizes the power or current requirements of the second electronic device accessed to one or more interfaces of the HDMI interface, the Type-c interface, the USB2.0 interface, the Micro USB interface, the WLAN interface and the audio interface through the processing chip to meet the power supply requirements of different second electronic devices.
The sharing device provided by the embodiment of the invention can flexibly distribute required power or current for the access device, can provide a standard interface for a user, and enables the user to access functional modules or electronic devices with different functions as required, and the sharing device provided by the embodiment of the invention enables the user to purchase the functional modules such as an audio module, a video module, a social module and the like, and enables the functional modules to be accessed into the sharing device so as to realize more functions, so that the user can flexibly build a hardware platform based on the sharing device according to own requirements, and can also facilitate a developer to develop an intelligent module according to the standard interface provided by the sharing device.
The embodiment of the invention also provides electronic equipment, which can be a mobile phone, a PAD (personal digital assistant) and the like, and can comprise the sharing equipment provided by the embodiment.
The embodiment of the invention also provides a data processing system, which can comprise the electronic equipment provided by the embodiment and at least one second electronic equipment connected with the sharing equipment in the electronic equipment provided by the embodiment.
The embodiment of the invention also provides a data processing method, which is applied to the sharing device provided by the embodiment, and the data management method can comprise the following steps:
After the sharing device establishes communication connection with the first electronic device, if the second electronic device is detected to establish communication connection with the sharing device, acquiring data of the second electronic device and managing the data of the second electronic device.
By way of example, the second electronic device connected to the sharing device is an audio playback device, and the sharing device may obtain audio data on the audio playback device and manage the audio data, e.g., delete the audio data on the audio playback device, alter the audio data on the audio playback device, and so on.
The data management method provided by the embodiment of the invention can further comprise the steps of acquiring interaction data of the sharing device and the first electronic device in the process of interaction between the sharing device and the first electronic device, and managing the interaction data.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus and device may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.