This application claims the priority of Chinese Patent Application No. 201511008827.8 filed on Dec. 29, 2015, the entire content of which is incorporated herein by reference.
The present disclosure relates to the field of light emitting diode (LED) technologies and, more particularly, relates to an interface-control device and a related interface-control method.
Sensor modules may be used to conveniently obtain a great amount of measurable data by measuring environment parameters such as temperatures and humidity.
In conventional technology, a sensor module is often used with a control module. The sensor module is often used to measure data, and the control module is used to process the measured data or measurable data obtained from the sensor module. Because the control module needs to obtain measured data from the sensor module, a matching interface circuit is often required between the control module and the sensor module.
However, in conventional technology, different interface circuits may be used to connect different sensor modules with control modules. As a result, for a sensor module, when a different control module is used, the interface circuit connecting the sensor module and the control module needs to be redesigned to match the new control module.
The disclosed devices and methods are directed to solve one or more problems set forth above and other problems.
An aspect of the present disclosure provides an interface-control device, including: a control module having a controller and a first interface coupled to the controller, and a sensor module having a sensor circuit and a second interface coupled to the sensor circuit, the first interface and the second interface being connected through a matching connection. The first interface and the second interface each includes a first function pin for transferring first data reflecting a sensor type of the sensor circuit from the sensor circuit to the controller. The controller determines the sensor type of the sensor circuit based on the first data and processes measured data from the sensor circuit based on the sensor type.
Optionally, the first data include voltage data corresponding to the sensor type of the sensor circuit.
Optionally, the first interface and the second interface each further includes a second function pin for transferring the measured data received from the sensor circuit to the controller.
Optionally, the sensor circuit includes: a voltage-dividing sub-circuit for outputting the first data, an output terminal of the voltage-dividing sub-circuit being coupled to the first function pin of the second interface; and a sensor sub-circuit for outputting the measured data, an output terminal of the sensor sub-circuit being coupled to the second function pin of the second interface.
Optionally, the first data is address data corresponding to the sensor type of the sensor circuit.
Optionally, the first function pins transfer the address data and the measured data from the sensor circuit to the controller.
Optionally, the first interface and the second interface may each be any one of a universal serial bus (USB) interface, a micro-USB interface, a 3.5 mm headphone jack, a male pin header connector, or a female pin header connector.
Optionally, the interface-control device further includes a communication module coupled to the controller for transferring data between the controller and a server.
Optionally, the communication module is one or more of a wireless fidelity (WiFi) communication module, a global system for mobile communications (GSM) communication module, a code division multiple access (CDMA) communication module, and a long term evolution (LTE) communication module.
Optionally, the interface-control device further includes a light emitting module coupled to the controller for providing lighting.
Optionally, the light emitting module includes one or more light emitting diodes (LEDs).
Another aspect of the present disclosure provides an interface-control method for controlling the disclosed interface-control method, including: obtaining the first data based on a signal transferred by the first function pin of the first interface, the first interface being coupled to the control module, first data indicating the sensor type of the sensor circuit; determining a processing type corresponding to the sensor circuit based on the sensor type of the sensor circuit; and processing the measured data obtained from the sensor circuit based on the processing type corresponding to the sensor circuit.
Optionally, the first data include one or more of voltage data and address data.
Optionally, obtaining the first data through the first function pin includes: determining if the signal is a DC signal; if the signal is a DC signal, obtaining the voltage data based on the DC signal; and if the signal is not a DC signal, obtaining the address data based on a square wave signal transferred by the first function pin.
The interface-control method according to claim 12, further comprising: after processing the measured data, sending a result formed by processing the measured data to a server such that a user receives the result through a mobile device connected to the server.
Optionally, the interface-control method further includes: after processing the measured data, receiving a command from a user to control on and off states of a light emitting module connected to the controller.
The following drawings are merely examples for illustrative purposes according to various disclosed embodiments and are not intended to limit the scope of the present disclosure.
Reference will now be made in detail to exemplary embodiments of the invention, which are illustrated in the accompanying drawings. Hereinafter, embodiments consistent with the disclosure will be described with reference to drawings. Wherever possible, the same reference numbers will be used throughout the drawings to refer to the same or like parts. It is apparent that the described embodiments are some but not all of the embodiments of the present invention. Based on the disclosed embodiment, persons of ordinary skill in the art may derive other embodiments consistent with the present disclosure, all of which are within the scope of the present invention.
One aspect of the present disclosure provides an interface-control device.
The control module 11 may include a controller 111 and a first interface 112 connected to or coupled to the controller 111. The sensor module 12 may include a sensor circuit 121 and a second interface 122 connected to the sensor circuit 121. The first interface 112 and the second interface 122 may be connected through a matching connection. In the present disclosure, terms “connected to” and “coupled to” may be interchangeable. An objected may be coupled to another object through any suitable couplings, e.g., mechanical coupling, electrical coupling, and wireless coupling.
The first interface 112 and the second interface 122 may each include a first function pin 1221.
The sensor circuit 121 may transfer/output first data/information through first function pin 1221 to the controller 111. The first data may indicate the sensor type of the sensor circuit 121.
The controller 111 may determine the sensor type of the sensor circuit 121 based on the first data. The controller 111 may process the measured data obtained by the sensor circuit 121 based on the sensor type of the sensor circuit 121.
The sensor circuit 121 may be, for example, one or more of a temperature sensor, a humidity sensor, an infrared sensor, an ambient light sensor, a sound sensor, a pressure sensor, a combustible gas sensor, an air quality sensor, a smoke sensor, an air purification sensor, a vibration detecting sensor, an audio module, a voice sampling module, and an image sampling module.
The controller 111 may be, for example, one or more of a central processing unit (CPU), micro-controller unit (MCU), and a digital signal processing (DSP).
In various embodiments of the present disclosure, the matching connection between the first interface and the second interface may be referred to as, for example, if the first interface is a universal serial bus (USB) male connector, the second interface may be a USB female connector; if the first interface is a female pin header, the second interface may be a male pin header; and vice versa. The specific structures of the first interface and the second interface should not be limited by the embodiments of the present disclosure.
In one embodiment, the first interface 112 in the control module 11 and the second interface 122 in the sensor module 12 may each include a first function pin 1221. The controller may determine the sensor type of the sensor circuit 121 based on the first data transferred through the first function pin 1221. Accordingly, a sensor module 12 containing a different type of sensor circuit 121 may be connected to the control module 11 through the same interface. Thus, the interface circuit needs not be redesigned when a different sensor module is connected to the control module 11.
Accordingly, the first interface 112 and the second interface 122 may each further include a second function pin 1222. The sensor sub-circuit 1222 may output the measured data through the second function pin 1222.
The output terminal of the voltage-dividing sub-circuit 1211 may be connected to the first function pin 1221 of the second interface 122. The output terminal of the sensor sub-circuit 1212 may be connected to the second function pin 1222 of the second interface 122.
In one embodiment, the first data may be voltage data.
In various embodiments, different sensor types may correspond to different voltage data. Example of the correspondence relation may be shown in Table 1.
For example, when the voltage data is equal to 0.2 V, the sensor type may be a humidity sensor.
When the sensor circuit 121 is a temperature sensor, the sensor circuit 121 may be exemplified in
Assuming Vdd is equal to 3.2 V, and R2 and R3 may have same resistance. The output terminal of the voltage-dividing sub-circuit 1211 may output a voltage of 1.6 V, i.e., the first data may be 1.6 V. Accordingly, the controller may determine the sensor type to be a temperature sensor based on the first data outputted by the first function pin.
The first interface and the second interface may each be any one of a USB interface, a micro-USB interface, a 3.5 mm headphone jack, a male pin header connector, or a female pin header connector.
The function pins may be described in detail. In an example, the first interface and the second interface may be a 3.5 mm headphone jack.
As shown in
For illustrative purposes,
For illustrative purposes, the sensor circuits described in the embodiments of the present disclosure may be sensor circuits that output analog signals/voltages. In other various embodiments, the voltage-dividing sub-circuit may also be sensor circuits that output digital signals/voltages.
In one embodiment, the first interface in the control module and the second interface in the sensor module may each include a first function pin. The controller may determine the sensor type of the sensor circuit based on the voltage data outputted by the first function pin. Accordingly, a sensor module containing a different type of sensor circuit may be connected to the control module through the same interface. Thus, the interface circuit may not need to be redesigned when a different sensor module is connected to the control module. Meanwhile, the present disclosure may also reduce the re-development of the control module. Less time is needed for the development of the interface-control device, and the manufacture of the interface-control device is cheaper.
Further, based on the disclosed interface-control devices illustrated in
In some embodiments, the address data may be an address data of an inter-integrated circuit (I2C).
In various embodiments, different sensor types may correspond to different address data. Example of the correspondence relation may be shown in Table 2.
In some embodiments, the first function pin may output address data and also be used as one of the function pins for outputting measured data of the sensor circuit.
For example, the first interface and the second interface may each be a different one of a male pin header and a female pin header corresponding to a camera module. The first function pin may be described as follows.
As shown in
In some embodiments, for the interface shown in
In one embodiment, the first interface in the control module and the second interface in the sensor module may each include a first function pin. The controller may determine the sensor type of the sensor circuit based on the address data outputted by the first function pin. A sensor module containing a different type of sensor circuit may be connected to the control module through the same interface. Thus, the interface circuit may not need to be redesigned when a different sensor module is connected to the control module. Meanwhile, the present disclosure may also reduce the re-development of the control module. Less time is needed for the development of the interface-control device, and the manufacture of the interface-control device is cheaper.
For example, controller 111 may receive and process the measured data obtained from the sensor circuit 121, and further send the result of the data processing to the servers through the communication module 13.
Correspondingly, a user may communication with the server and obtain the result of the data processing from the server through a mobile terminal, e.g., a mobile phone and a tablet computer.
The measured data obtained by the sensor circuit may correspond to the sensor type of the sensor circuit. For example, the measured data obtained by a pressure sensor may be pressure data; the measured data obtained by a humidity sensor may be humidity data; the measured data obtained by a temperature sensor may be temperature data; the measured data obtained by an air quality sensor may be air quality data, and so on.
In some embodiments, the communication module 13 may be one or more of a wireless fidelity (WiFi) communication module, a global system for mobile communications (GSM) communication module, a code division multiple access (CDMA) communication module, a long term evolution (LTE) communication module, and other suitable communication modules.
In some embodiments, the disclosed interface-control device may further include a light emitting module 14. The light emitting module 14 may be connected with the controller 111 to provide lighting.
In some embodiments, the light emitting module 14 may be one or more light emitting diodes (LEDs).
In one embodiment, the controller may communication with servers through the communication module so that the controller may send the result of the data processing to the server. The controller may process the measured data obtained by the sensor circuit and obtain the result of the data processing.
In some embodiments, the light emitting module 14 may be a lighting lamp providing general lighting in an indoor or outdoor space. Controller 111 may receive and process the measured data obtained from the sensor circuit 121, and further send the result of the data processing to the servers through the communication module 13. The controller 111 may control the light emitting module 14 based on the measured data obtained from the sensor circuit 121. For example, the sensor circuit 121 may be an infrared sensor. Based on the readings of the sensor (e.g., human movement detected), the controller 111 may turn the lighting emitting module 14 on or off, or adjust the brightness level of the light provided by the lighting emitting module 14.
In some embodiments, the light emitting module 14 may be an indicator light instead of a lighting unit to provide general lighting. The light emitting module 14 may display light of different color and brightness based on the data read form the sensor circuit 121. For example, the sensor circuit 121 may be an air quality sensor. The controller 111 may adjust the color of the light emitting module 14 based on the reading from the air quality sensor, e.g., turning the light red when the air quality is poor, turning the light green when the air quality is acceptable.
In some embodiments, the light emitting module 14 may be an indicator light together with a lighting unit to provide general lighting. The light emitting module 14 may display light of different color and brightness based on the data read form the sensor circuit 121. For example, the sensor circuit 121 may be a smoke sensor. The controller 111 may adjust the color of the light emitting module 14 based on the reading from the smoke sensor, e.g., turning the indicator light red and turning on the general when certain amount of smoke is detected; turning the indicator light green and turning off the general when no (or little) smoke is detected.
Another aspect of the present disclosure provides an interface-control method.
In step S601, based on the signal transferred by the first function pin of the first interface, the controller may obtain the first data. The first interface may be connected with the control module. The first data may indicate the sensor type of the sensor circuit connected to the control module through the first interface.
In some embodiments, the first data may be voltage data or address data.
In step S602, the controller may determine the processing type corresponding to the sensor circuit, based on the sensor type of the sensor circuit as indicated by the first data.
In step S603, the controller may process the measured data obtained from the sensor circuit, based on the processing type corresponding to the sensor circuit.
In one embodiment, the first data may be used to indicate the sensor type of the sensor circuit, and the processing type corresponding to the sensor circuit may be determined. Further, based on the processing type corresponding to the sensor circuit, the measured data obtained from the sensor circuit may be processed. Thus, the control module may process data for sensor circuits of different sensor types.
In step S701, the controller may determine if the voltage on the first function pin is 0. If the voltage on the first function pin is 0, the process may end. If the voltage on the first function pin is not 0, the process may proceed to step S702.
In some embodiments, when the voltage on the first function pin is 0, the controller may determine the control module is not connected to a sensor module.
In step S702, the controller may determine if the signal on the first function pin is a DC signal. If the signal on the first function pin is a DC signal, the process may proceed to step S703. If the signal on the first function pin is not a DC signal, the process may proceed to step S705.
In step S703, the controller may obtain the voltage data based on the DC signal on the first function pin.
In step S704, the controller may determine the sensor type of the sensor circuit based on the voltage data.
For example, the controller may determine the sensor type of the sensor circuit based on the voltage data, i.e., the first data, and table 1.
After step S704 is executed, the controller may proceed to execute step S707.
In step S705, the controller may obtain the address data based on the signal on the first function pin. In one embodiment, the signal on the first function pin may be a square wave signal.
In step S706, the controller may determine the sensor type of the sensor circuit based on the address data.
For example, the controller may determine the sensor type of the sensor circuit based on the address data, i.e., the first data, and table 2.
In step S707, the controller may determine the processing type corresponding to the sensor circuit, based on the sensor type of the sensor circuit.
In step S708, the controller may process the measured data obtained from the sensor circuit, based on the processing type corresponding to the sensor circuit.
Optionally, after step S708, the process may further include, sending the result of the data processing to a server. The result may be used for suitable applications. For example, a user may receive the result from a mobile device, e.g., a mobile phone, that is connected to the server.
Optionally, after step S708, the process may further include, receiving a command from a user to control the on and off states of the light emitting module. For example, the user may confirm the receiving of the result by controlling the lighting emitting module to blink.
In one embodiment, the controller may obtain voltage data and/or address data through the signal transferred by the first function pin. The controller may determine the sensor type of the sensor circuit based on the voltage data and/or address data. The controller may further determine the processing type corresponding to the sensor circuit based on the sensor type corresponding to the sensor circuit. Further, based on the processing type corresponding to the sensor circuit, the measured data obtained from the sensor circuit may be processed. Thus, the control module may process data for sensor circuits of different sensor types.
It should be understood by those skilled in the art that, at least part of the method disclosed in the embodiments may be implemented through computer programs and related hardware. The computer programs may be stored in the readable medium of a computer. When the computer programs are being executed, the steps illustrated in
The controller 800 may receive, process, and execute commands from the LED lighting device. The controller 800 may include any appropriately configured computer system. As shown in
Processor 802 may include any appropriate type of general purpose microprocessor, digital signal processor or microcontroller, and application specific integrated circuit (ASIC). Processor 802 may execute sequences of computer program instructions to perform various processes associated with controller 800. Computer program instructions may be loaded into RAM 804 for execution by processor 802 from read-only memory 806, or from storage 808. Storage 808 may include any appropriate type of mass storage provided to store any type of information that processor 802 may need to perform the processes. For example, storage 808 may include one or more hard disk devices, optical disk devices, flash disks, or other storage devices to provide storage space.
Display 810 may provide information to a user or users of the controller 800. Display 810 may include any appropriate type of computer display device or electronic device display (e.g., CRT or LCD based devices). Input/output interface 812 may be provided for users to input information into controller 800 or for the users to receive information from controller 800. For example, input/output interface 812 may include any appropriate input device, such as a keyboard, a mouse, an electronic tablet, voice communication devices, touch screens, or any other optical or wireless input devices. Further, input/output interface 812 may receive from and/or send to other external devices.
Further, database 814 may include any type of commercial or customized database, and may also include analysis tools for analyzing the information in the databases. Database 814 may be used for storing related information, e.g., Table 1 and Table 2. Communication interface 816 may provide communication connections such that controller 800 may be accessed remotely and/or communicate with other systems through computer networks or other communication networks via various communication protocols, such as transmission control protocol/internet protocol (TCP/IP), hyper text transfer protocol (HTTP), etc.
In one embodiment, the processor 802 may receive the first data through the communication interface 816. The processor 802 may refer to the table 1 or table 2 stored in the database 814 to determine the sensor type of the sensor circuit, based on the first data. The processor 802 may further determine the processing type based on the sensor type, and further process the measured data obtained from the sensor circuit based on the processing type.
For illustrate purposes, terms of “first”, “second”, and the like are used to merely distinguish different objects, and do not refer to any differences in function nor imply any order.
Modules and units used in the description of the present disclosure may each contain necessary software and/or hardware components, e.g., circuits, to implement desired functions of the modules.
The embodiments disclosed herein are exemplary only. Other applications, advantages, alternations, modifications, or equivalents to the disclosed embodiments are obvious to those skilled in the art and are intended to be encompassed within the scope of the present disclosure.
Without limiting the scope of any claim and/or the specification, examples of industrial applicability and certain advantageous effects of the disclosed embodiments are listed for illustrative purposes. Various alternations, modifications, or equivalents to the technical solutions of the disclosed embodiments can be obvious to those skilled in the art and can be included in this disclosure.
In the present disclosure, the first interface in the control module and the second interface in the sensor module may each include a first function pin. The controller may determine the sensor type of the sensor circuit based on the address data outputted by the first function pin. A sensor module containing a different type of sensor circuit may be connected to the control module through the same interface. Thus, the interface circuit may not need to be redesigned when a different sensor module is connected to the control module. Meanwhile, the present disclosure may also reduce the re-development of the control module. Less time is needed for the development of the interface-control device, and the manufacture of the interface-control device is cheaper.
Further, the first data may be used to indicate the sensor type of the sensor circuit, and the processing type corresponding to the sensor circuit may be determined. Further, based on the processing type corresponding to the sensor circuit, the measured data obtained from the sensor circuit may be processed. Thus, the control module may process data for sensor circuits of different sensor types.
Further, the controller may obtain voltage data and/or address data through the signal transferred by the first function pin. The controller may determine the sensor type of the sensor circuit based on the voltage data and/or address data. The controller may further determine the processing type corresponding to the sensor circuit based on the sensor type corresponding to the sensor circuit. Further, based on the processing type corresponding to the sensor circuit, the measured data obtained from the sensor circuit may be processed. Thus, the control module may process data for sensor circuits of different sensor types.
Number | Date | Country | Kind |
---|---|---|---|
201511008827.8 | Dec 2015 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2016/109561 | 12/13/2016 | WO | 00 |