CN210573767U - Light-sensing hot plug system - Google Patents
Light-sensing hot plug system Download PDFInfo
- Publication number
- CN210573767U CN210573767U CN201922071568.3U CN201922071568U CN210573767U CN 210573767 U CN210573767 U CN 210573767U CN 201922071568 U CN201922071568 U CN 201922071568U CN 210573767 U CN210573767 U CN 210573767U
- Authority
- CN
- China
- Prior art keywords
- control chip
- master device
- usb
- slave
- light sensing
- 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
Links
- 230000006870 function Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000035807 sensation Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The disclosure relates to the technical field of electric connectors, in particular to a light-sensing hot plug system. Through providing the slave unit that can establish hot plug with the master device and be connected, can realize the pluggable and the accessory of the equipment that possesses the light sense function on the tall and erect system of ann. Because the pluggable connection relation is established between the slave equipment and the master equipment comprising the light sensing device, the light sensing hot plug system is suitable for different application scenes, the light sensing hot plug system provided by the embodiment can meet the requirement of poor scenes in product design, and can bring good use experience for users.
Description
Technical Field
The disclosure relates to the technical field of electric connectors, in particular to a light-sensing hot plug system.
Background
At present, sensors are the main way and means to obtain information in the fields of nature, production and application, have penetrated into a wide range of fields such as industrial production, medical diagnosis, bioengineering, marine exploration and even cultural relic protection, and have also been widely used in embedded products.
In the prior art, sensors such as light sensation basically belong to built-in devices, and the sensors are widely used on intelligent equipment such as smart phones and intelligent illuminating lamps and used for improving the interaction experience of products. However, the requirement of different scenes in product design cannot be met only by arranging sensors such as light sensation in the equipment.
SUMMERY OF THE UTILITY MODEL
In order to meet the different scene requirements on product design, the disclosure provides a light-sensing hot plug system.
The embodiment of the present disclosure provides a light-sensing hot plug system, which includes: the slave device is connected with the main device in a hot plug mode;
the main equipment is a terminal provided with an android system;
the slave equipment comprises a light sensing device and a control chip;
the light sensing device is configured to sense ambient luminosity data, and the control chip is configured to read the ambient luminosity data and send the ambient luminosity data to the main device.
Optionally, the slave device further comprises a USB power supply circuit configured to provide power support for the light sensing device and the control chip.
Optionally, the USB power supply circuit is further configured to provide a hot plug connection interface for the slave device and the master device.
Optionally, after the slave device is connected to the master device through the USB interface on the master device, the USB power supply circuit provides power support for the light sensing device and the control chip through the USB interface.
Optionally, after the slave device is connected to the master device through the USB interface on the master device, the USB power supply circuit provides power support for the light sensing device and the control chip through an external power supply.
Optionally, the control chip is a single chip, and the single chip reads the ambient light level data through an I2C bus.
Optionally, the control chip is further configured to initialize the registers and the I2C bus after the slave device is powered on.
Optionally, the control chip is further configured to respond to the master control request after initialization work is completed for the registers and the I2C bus.
Optionally, the control chip is configured to receive a data packet sent by the master device and send the data packet to the master device.
Optionally, the control chip is configured to write the read ambient luminosity data into a USB IN data packet and to send a USB IN data packet to the host device.
The beneficial effects brought by the technical scheme provided by the embodiment of the disclosure at least comprise:
through providing the slave unit that can establish hot plug with the master device and be connected, can realize the pluggable and the accessory of the equipment that possesses the light sense function on the tall and erect system of ann. Because the pluggable connection relation is established between the slave equipment and the master equipment comprising the light sensing device, the light sensing hot plug system is suitable for different application scenes, the light sensing hot plug system provided by the embodiment can meet the requirement of poor scenes in product design, and can bring good use experience for users.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the disclosure and together with the description serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram of a photo-inductive hot plug system according to an embodiment of the disclosure;
fig. 2 is a schematic diagram of another optical hot plug system according to an embodiment of the disclosure.
Detailed Description
The present disclosure will be described in further detail with reference to the drawings and embodiments. It is to be understood that the specific embodiments described herein are for purposes of illustration only and are not to be construed as limitations of the present disclosure. It should be further noted that, for the convenience of description, only the portions relevant to the present disclosure are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
The first embodiment of the present disclosure provides a light-sensing hot plug system, as shown in fig. 1, the system includes a master device and a slave device, and the slave device is connected to the master device in a hot plug manner, that is, under the condition that the power supply of the master device is not turned off, the slave device can be connected to the master device or disconnected from the master device, and the normal use of the master device is not affected.
The main device is a terminal equipped with an android system, and may be an electronic device such as a mobile phone or a tablet computer equipped with an android system, for example, and the main device includes a Central Processing Unit (CPU). The main device comprises a light sense virtual device which is realized in a driving layer, the light sense virtual device is mainly used for reporting the ambient luminosity data to other modules of the main device after the ambient luminosity data sent by the slave device is obtained, and providing device nodes for a hardware abstraction layer of the main device to read, and the light sense virtual device is mainly characterized in that the closing and opening state values of the light sense virtual device are 0 and 1 in sequence according to the setting condition of a user interface. In the case of a slave device unplugging, the ambient light level data on the light-sensing virtual device will retain the data value last acquired from the slave device.
The slave device is a pluggable accessory comprising an optical sensor device and a control chip. The light sensing device is configured to sense ambient luminosity data, and the control chip is configured to read the ambient luminosity data sensed by the light sensing device and send the ambient luminosity data to the main equipment.
In one possible implementation, as shown in fig. 2, the control chip in the slave device may be a single chip, and the single chip may support the USB protocol. In addition, the singlechip chip can read the ambient light data sensed by the light sensing device through an I2C bus.
In one possible implementation, the slave device may further include a USB power supply circuit. The USB power supply circuit can be configured to provide power supply support for the light sensing device and the control chip of the slave device and provide a hot plug connection interface for the slave device and the master device. After the slave device is connected with the master device through the USB interface on the master device, the USB power supply circuit may provide power support for the optical sensing device and the control chip of the slave device through the USB interface, that is, the power support is provided for the slave device by using the power supply of the master device. Thus, the slave device can also be regarded as an external USB device comprising the light sensing device and the control chip. Or, the USB power supply circuit may also be connected to an external power supply, that is, the external power supply provides power support for the slave device. It should be noted that, when the USB power supply circuit provides power support for the slave device through the external power supply, the USB power supply circuit needs to provide another interface to connect with the master device.
After the slave device is connected with the master device, the light sensing device of the slave device and the single chip microcomputer chip are powered on to work, namely, after the slave device is powered on, the single chip microcomputer chip can initialize the register and the I2C bus. After the registers and the I2C bus are initialized, the slave device can interact with the master device. Here, the register refers to a register in a chip.
In one possible implementation, the control chip in the slave device is further configured to receive a data packet sent by the master device and send the data packet to the master device, that is, respond to a control request of the master device. The data packet sent by the master device to the slave device mainly has the functions of acquiring relevant information of the slave device, sending address information to the slave device, performing numerical configuration on the slave device and the like. For example, device description information and configuration description information of the slave device, and the like are acquired. The data packet sent by the control chip to the master device mainly includes the relevant information of the slave device requested by the master device and the feedback information sent to the master device. For example, after receiving the address information sent by the master device, the control chip sends an acknowledgement message to the master device, i.e. confirms that the slave device has received the address information.
IN a possible implementation manner, after the slave device is connected with the master device, the control chip may read ambient luminosity data sensed by the light sensing device through the I2C bus, write the read ambient luminosity data into the USB IN data packet, and send the USB IN data packet to the master device. The main device can generate an interrupt after receiving the IN data packet, store the data packet and encapsulate an interface for calling and obtaining by the light sensing virtual device realized by the main device. After the light sensing virtual equipment acquires the ambient luminosity data, the ambient luminosity data can be reported to other modules of the main equipment through an input subsystem framework of a driving layer of the main equipment.
In this embodiment, through providing the slave unit that can establish hot plug connection with the master device, can realize the pluggable and the accessory of the equipment that possesses the light sense function on the android system. Because the pluggable connection relation is established between the slave equipment and the master equipment comprising the light sensing device, the light sensing hot plug system is suitable for different application scenes, the light sensing hot plug system provided by the embodiment can meet the requirement of poor scenes in product design, and can bring good use experience for users. In addition, as the pluggable connection relation is established between the slave equipment and the master equipment, the redesign of a mold and a circuit can be avoided under the condition that an interface is reserved in the master equipment, so that the production cost can be saved, and the product benefit can be enlarged.
In the description herein, reference to the description of the terms "one embodiment/mode," "some embodiments/modes," "example," "specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment/mode or example is included in at least one embodiment/mode or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to be the same embodiment/mode or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments/modes or examples. Furthermore, the various embodiments/aspects or examples and features of the various embodiments/aspects or examples described in this specification can be combined and combined by one skilled in the art without conflicting therewith.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
It will be understood by those skilled in the art that the foregoing embodiments are merely for clarity of illustration of the disclosure and are not intended to limit the scope of the disclosure. Other variations or modifications may occur to those skilled in the art, based on the foregoing disclosure, and are still within the scope of the present disclosure.
Claims (10)
1. An optical-sensing hot-plug system, comprising: the slave device is connected with the master device in a hot plug mode;
the main equipment is a terminal provided with an android system;
the slave equipment comprises a light sensing device and a control chip;
wherein the light sensing device is configured to sense ambient luminosity data, and the control chip is configured to read the ambient luminosity data and transmit the ambient luminosity data to the master device.
2. The system of claim 1, wherein the slave device further comprises a USB power supply circuit configured to provide power support for the light sensing device and the control chip.
3. The system of claim 2, wherein the USB power supply circuit is further configured to provide a hot plug connection interface for the slave device and the master device.
4. The system as claimed in claim 2, wherein after the slave device is connected to the master device through the USB interface of the master device, the USB power supply circuit provides power support for the light sensing device and the control chip through the USB interface.
5. The system as claimed in claim 2, wherein after the slave device is connected to the master device through the USB interface of the master device, the USB power supply circuit provides power support for the light sensing device and the control chip through an external power supply.
6. The system as claimed in any one of claims 1 to 5, wherein said control chip is a single chip, said single chip reading said ambient light level data via an I2C bus.
7. The system of claim 6, wherein the control chip is further configured to initialize registers and the I2C bus upon power-up of the slave device.
8. The system of claim 7, wherein the control chip is further configured to respond to a control request from the master device after initialization of the registers and the I2C bus is completed.
9. The system of any of claims 1-5, wherein the control chip is configured to receive data packets sent by the master device and to send data packets to the master device.
10. The system of any one of claims 1 to 5, wherein the control chip is configured to write the read ambient luminosity data into a USB IN packet and to send the USB IN packet to the host device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201922071568.3U CN210573767U (en) | 2019-11-26 | 2019-11-26 | Light-sensing hot plug system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201922071568.3U CN210573767U (en) | 2019-11-26 | 2019-11-26 | Light-sensing hot plug system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN210573767U true CN210573767U (en) | 2020-05-19 |
Family
ID=70660852
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201922071568.3U Active CN210573767U (en) | 2019-11-26 | 2019-11-26 | Light-sensing hot plug system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN210573767U (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110825680A (en) * | 2019-11-26 | 2020-02-21 | 厦门亿联网络技术股份有限公司 | Photosensitive hot-swap system and control method thereof |
-
2019
- 2019-11-26 CN CN201922071568.3U patent/CN210573767U/en active Active
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110825680A (en) * | 2019-11-26 | 2020-02-21 | 厦门亿联网络技术股份有限公司 | Photosensitive hot-swap system and control method thereof |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20110191503A1 (en) | Motherboard Compatible with Multiple Versions of Universal Serial Bus (USB) and Related Method | |
| JP6944172B1 (en) | A connector and a method of performing charge control using the connector | |
| US20070180181A1 (en) | USB interface provided with host/device function and its control method | |
| CN113609045B (en) | A smart network card BMC communication structure and method | |
| CN102281482A (en) | Function extension method and device thereof for earphone jack of smart phone | |
| CN114026747B (en) | Connector and second electronic device including the connector | |
| KR20190036165A (en) | Method for communicating multi devices using usb type c interface and electronic device for the same | |
| CN102098035B (en) | Analog switch control circuit and mobile phone | |
| CN210573767U (en) | Light-sensing hot plug system | |
| KR102458299B1 (en) | Electronic device and method for operation thereof | |
| CN116643631A (en) | A server cooling method, device, electronic equipment and storage medium | |
| CN202872142U (en) | Multifunctional USB (Universal Serial Bus) data line | |
| CN115728873A (en) | Optical fiber port detection method and device, electronic equipment and storage medium | |
| CN102508810A (en) | Switching device and switching method | |
| CN205983460U (en) | Serial receiving and dispatching interface module and USB interface module sharing port circuit | |
| CN213151196U (en) | Signal adapter | |
| CN210006035U (en) | USB and OTG function switching control circuit, device and mobile terminal | |
| CN210129207U (en) | Interactive smart tablet | |
| CN115567395B (en) | Master-slave node determination method and device, electronic equipment and storage medium | |
| CN104899164B (en) | Address addressing method for integrated circuit bus, integrated circuit bus device and system | |
| CN210573761U (en) | Interface conversion circuit and signal detection device | |
| CN209388295U (en) | A kind of usb circuit and electronic equipment for realizing while charging and powering | |
| CN115273445A (en) | Sensor access method, device, equipment and computer readable medium | |
| CN110825680A (en) | Photosensitive hot-swap system and control method thereof | |
| CN206379573U (en) | A kind of socket that identification inducing function is docked with plug |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| GR01 | Patent grant | ||
| GR01 | Patent grant |