Control method, device and electronic equipment of multi-sensor cooperative detection circuit
By configuring the access address and synchronization signal of the sensor in the electronic device, the coordinated detection of multiple sensors is achieved, the problem of poor sensor coordination is solved, the detection accuracy and coordination are improved, and data is transmitted in real time through the wireless data transmitter.
Patent Information
- Application Number
- CN202210933618.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-04
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-08-04
AI Technical Summary
In electronic devices, the coordination between sensors is poor, resulting in low detection accuracy and inability to work effectively together.
By configuring the access pin address of the multi-sensor in the microcontroller, the main sensor and follower sensor are determined, the clock signal and serial clock signal are used for synchronization, and the acquisition task is sent through the Bluetooth decoding protocol. The amplifier circuit amplifies the signal to perform the acquisition task. Improve coordination among sensors.
Coordinated acquisition between multiple sensors is realized, coordination and accuracy of detection is improved, power consumption is reduced, and physical quantity data is transmitted in real time through wireless data transmitters.
Smart Images

Figure CN115309081B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of semiconductor electronic technology, and in particular to a control method, device and electronic equipment for a multi-sensor collaborative detection circuit. Background Art
[0002] In electronic devices, it is usually necessary to control each sensor to improve the detection accuracy of each sensor and ensure the normal operation of the electronic device. Usually, the control of each sensor is independent, resulting in poor coordination between sensor detections. Summary of the invention
[0003] In view of the technical problem in the prior art that the coordination between sensors is poor, the present invention provides a control method, device and electronic device for a multi-sensor collaborative detection circuit.
[0004] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0005] According to a first aspect of an embodiment of the present invention, there is provided a control method for a multi-sensor cooperative detection circuit, wherein the multi-sensor cooperative detection circuit comprises: a single-chip microcomputer, and the multiple sensors connected to the single-chip microcomputer through amplifier circuits respectively;
[0006] The control method comprises:
[0007] According to the sensor type of each of the multiple sensors, determine the acquisition task that each of the multiple sensors can perform, and configure the access pin address of each of the sensors in the single-chip microcomputer;
[0008] According to the acquisition tasks that can be performed by the sensor and the status information of the electronic device configured with the multi-sensor cooperative detection circuit, a main sensor and a plurality of follower sensors are determined from the multi-sensors, and the access pin addresses corresponding to the main sensor and the access pin addresses corresponding to the plurality of follower sensors are marked;
[0009] Based on the clock signal SCL pin and the serial clock signal SCK pin of the single-chip microcomputer, a clock signal SCL and a serial clock signal SCK are sent to the single-chip microcomputer, wherein the clock signal SCL and the serial clock signal SCK are used to synchronize the clocks of the main sensor and the plurality of follow-up sensors;
[0010] In response to receiving a clock synchronization completion signal sent by the single-chip microcomputer, based on the Bluetooth decoding protocol pin of the single-chip microcomputer, a main acquisition task corresponding to the main sensor and the follow-up acquisition tasks of the multiple follow-up sensors are sent to the single-chip microcomputer, so that the single-chip microcomputer controls the main sensor to perform the main acquisition task according to the access pin address mark corresponding to the main sensor and controls the multiple follow-up sensors to perform the follow-up acquisition tasks according to the access pin address marks corresponding to the multiple follow-up sensors;
[0011] The amplifier circuit amplifies the electrical signal of the single chip microcomputer and transmits the amplified electrical signal to the sensor connected to the amplifier circuit to perform the corresponding collection task.
[0012] In one embodiment, the clock signal SCL and the serial clock signal SCK are used to perform clock synchronization on the master sensor and the plurality of follower sensors, including:
[0013] The clock signal SCL is used to instruct the single-chip microcomputer to send a clock synchronization start signal to the main sensor and the multiple follow-up sensors, so that the single-chip microcomputer obtains a synchronous clock voltage signal from the serial clock signal SCK according to the clock synchronization start signal, and sends a synchronous clock voltage signal according to the access pin address corresponding to the main sensor and the access pin address corresponding to the multiple follow-up sensors.
[0014] In one embodiment, the synchronous clock voltage signal is generated by:
[0015] The independent clock sources in all logic processing channels of the electronic device respectively generate clock synchronization signals of the channels;
[0016] Each logical processing channel broadcasts the clock synchronization signal of the channel to the internal bus and receives the clock synchronization signals of other channels from the internal bus;
[0017] Each logic processing channel calculates a unified synchronous clock according to the clock synchronization signals of all channels to obtain the synchronous clock voltage signal.
[0018] In one embodiment, before determining a main sensor and a plurality of follower sensors from the multiple sensors according to the acquisition tasks that can be performed by the sensor and the status information of the electronic device configured with the multi-sensor cooperative detection circuit, the method includes:
[0019] Determine that a preset acquisition cycle starts, and obtain the status information of the electronic device of the multi-sensor cooperative detection circuit;
[0020] The method further comprises:
[0021] At the end of the acquisition cycle, a set signal is sent to the single chip microcomputer, wherein the set signal is used to remove the mark of the access pin address corresponding to the main sensor and the mark of the access pin address corresponding to the follow-up sensor.
[0022] In one embodiment, the multi-sensor cooperative detection circuit includes a touch screen, the touch screen is communicatively connected to the single-chip microcomputer, and the touch screen is used to display the status information of each sensor;
[0023] The control method comprises:
[0024] In response to the sensor start / stop instruction input on the touch screen, a sensor start / stop signal is sent to the single chip microcomputer, and the sensor start / stop signal is used to turn on or off the corresponding sensor.
[0025] In one embodiment, the multi-sensor collaborative detection circuit includes a signal processing module and a wireless data transmitter;
[0026] The signal processing module is used to obtain the main digital signal corresponding to the main acquisition task of the main sensor and the follower digital signals corresponding to the follower acquisition task of the multiple follower sensors, and convert the main digital signal and the follower digital signal into voltage signals, and after detecting the voltage signals, obtain the numerical value of the physical quantity corresponding to each of the voltage signals and transmit the numerical value of each of the physical quantities to the wireless data transmitter;
[0027] The wireless data transmitter is used to send the numerical value of each of the physical quantities.
[0028] In one embodiment, the multiple sensors include at least three of a temperature sensor, a humidity sensor, a wind speed sensor, a pressure difference sensor, a noise sensor, a light sensor, and a particle sensor.
[0029] According to a second aspect of an embodiment of the present invention, there is provided a control device for a multi-sensor cooperative detection circuit, wherein the multi-sensor cooperative detection circuit comprises: a single-chip microcomputer, and the multiple sensors connected to the single-chip microcomputer through amplifier circuits respectively;
[0030] The control device comprises:
[0031] A first determination module is configured to determine, according to the sensor type of each of the multiple sensors, the acquisition task that each of the multiple sensors can perform, and configure the access pin address of each of the sensors in the single-chip microcomputer;
[0032] a second determination module, configured to determine a main sensor and a plurality of follower sensors from the multi-sensors according to the acquisition tasks that can be performed by the sensor and the state information of the electronic device configured with the multi-sensor cooperative detection circuit, and mark the access pin address corresponding to the main sensor and the access pin address corresponding to the plurality of follower sensors;
[0033] A first sending module is configured to send a clock signal SCL and a serial clock signal SCK to the single-chip microcomputer based on a clock signal SCL pin and a serial clock signal SCK pin of the single-chip microcomputer, wherein the clock signal SCL and the serial clock signal SCK are used to perform clock synchronization on the main sensor and the plurality of follow-up sensors;
[0034] A second sending module is configured to send a main acquisition task corresponding to the main sensor and the follow-up acquisition tasks of the multiple follow-up sensors to the single-chip microcomputer in response to receiving a clock synchronization completion signal sent by the single-chip microcomputer, based on the Bluetooth decoding protocol pin of the single-chip microcomputer, so that the single-chip microcomputer controls the main sensor to perform the main acquisition task according to the access pin address mark corresponding to the main sensor and controls the multiple follow-up sensors to perform the follow-up acquisition tasks according to the access pin address marks corresponding to the multiple follow-up sensors;
[0035] The amplifier circuit amplifies the electrical signal of the single chip microcomputer and transmits the amplified electrical signal to the sensor connected to the amplifier circuit to perform the corresponding acquisition task.
[0036] In one embodiment, the second determination module is configured to: determine a preset acquisition period to start before determining a main sensor and a plurality of follower sensors from the multi-sensors according to the acquisition tasks that can be performed by the sensor and the status information of the electronic device configured with the multi-sensor cooperative detection circuit, and obtain the status information of the electronic device of the multi-sensor cooperative detection circuit;
[0037] The second sending module is configured to send a set signal to the single-chip microcomputer when the acquisition cycle ends, and the set signal is used to remove the mark of the access pin address corresponding to the main sensor and the access pin address corresponding to the follow-up sensor.
[0038] In one embodiment, the second sending module is configured to send a sensor start / stop signal to the single-chip microcomputer in response to a sensor start / stop command input on the touch screen, wherein the sensor start / stop signal is used to turn on or off a corresponding sensor.
[0039] In one embodiment, the multiple sensors include at least three of a temperature sensor, a humidity sensor, a wind speed sensor, a pressure difference sensor, a noise sensor, a light sensor, and a particle sensor.
[0040] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, the electronic device comprising:
[0041] one or more processors;
[0042] Memory; and
[0043] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the control method of the multi-sensor collaborative detection circuit described in any one of the first aspects.
[0044] Beneficial Effects
[0045] The present invention provides a control method, device and electronic device for a multi-sensor cooperative detection circuit. Compared with the prior art, it has the following beneficial effects:
[0046] By determining the acquisition tasks that can be performed by each of the sensors in the multi-sensors according to the sensor type of each of the sensors in the multi-sensors, and configuring the access pin addresses of each of the sensors in the single-chip microcomputer; determining a main sensor and a plurality of follow-up sensors from the multi-sensors according to the acquisition tasks that can be performed by the sensors and the status information of the electronic device configuring the multi-sensor collaborative detection circuit, and marking the access pin addresses corresponding to the main sensor and the access pin addresses corresponding to the plurality of follow-up sensors; sending a clock signal SCL and a serial clock signal SCK to the single-chip microcomputer based on the clock signal SCL pin and the serial clock signal SCK pin of the single-chip microcomputer, the clock signal SCL and the serial clock signal SCK CK is used to perform clock synchronization on the main sensor and the multiple follower sensors; in response to receiving the clock synchronization completion signal sent by the single-chip microcomputer, based on the Bluetooth decoding protocol pin of the single-chip microcomputer, the main acquisition task corresponding to the main sensor and the follower acquisition tasks of the multiple follower sensors are sent to the single-chip microcomputer, so that the single-chip microcomputer controls the main sensor to perform the main acquisition task according to the access pin address mark corresponding to the main sensor and controls the multiple follower sensors to perform the follower acquisition task according to the access pin address mark corresponding to the multiple follower sensors; wherein the amplifier circuit amplifies the electrical signal of the single-chip microcomputer and transmits the amplified electrical signal to the sensor connected to the amplifier circuit to perform the corresponding acquisition task. Multiple sensors collaborate to collect data according to the main acquisition task and the follower acquisition task, thereby improving the coordination and consistency of multiple sensors. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 The present invention provides a flow chart of a multi-sensor collaborative detection circuit.
[0048] Figure 2 The present invention provides a flowchart of an edge communication method based on a virtual edge service. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] See also Figure 1 , the present invention provides a technical solution: providing a control method of a multi-sensor collaborative detection circuit, the multi-sensor collaborative detection circuit comprising: a single-chip microcomputer, and the multiple sensors connected to the single-chip microcomputer through amplifier circuits respectively;
[0051] In one embodiment, the amplifier circuit includes a capacitor, a first resistor, an amplifier having a non-inverting input terminal connected to a first end of the capacitor, a second resistor connected to a first end of the first resistor, and an inverting input terminal of the amplifier connected to a first end of the first resistor;
[0052] The second end of the resistor is grounded, the second end of the second resistor is connected to the output end of the amplifier, the second end of the capacitor is grounded, and the positive input end of the amplifier is configured to be connected to the microcontroller for receiving a signal sent by the microcontroller.
[0053] The control method comprises the following steps:
[0054] In step S11, according to the sensor type of each sensor in the multi-sensor, the acquisition task that each sensor in the multi-sensor can perform is determined, and the access pin address of each sensor in the single-chip microcomputer is configured;
[0055] Each type of sensor is used to collect corresponding types of environmental data. For example, a temperature sensor is used to collect environmental temperature, and a humidity sensor is used to collect environmental humidity. The collection tasks that a sensor can perform are determined by the sensor type.
[0056] Wherein, the access pin address of each sensor in the single chip microcomputer is used to distinguish the connection position of the sensor to avoid signal transmission errors.
[0057] In step S12, according to the acquisition tasks that can be performed by the sensor and the status information of the electronic device configured with the multi-sensor cooperative detection circuit, a main sensor and a plurality of follower sensors are determined from the multi-sensors, and the access pin addresses corresponding to the main sensor and the access pin addresses corresponding to the plurality of follower sensors are marked;
[0058] The main sensor is used to collect main environmental data, and the multiple follower sensors are used to collect other types of environmental data based on the environmental data collected by the main sensor. The main sensor can be multiple sensors of the same type, and the multiple follower sensors are usually of different types.
[0059] In step S13, based on the clock signal SCL pin and the serial clock signal SCK pin of the single-chip microcomputer, a clock signal SCL and a serial clock signal SCK are sent to the single-chip microcomputer, and the clock signal SCL and the serial clock signal SCK are used to perform clock synchronization on the main sensor and the plurality of follow-up sensors;
[0060] In step S14, in response to receiving the clock synchronization completion signal sent by the single-chip microcomputer, based on the Bluetooth decoding protocol pin of the single-chip microcomputer, the main acquisition task corresponding to the main sensor and the follow-up acquisition tasks of the multiple follow-up sensors are sent to the single-chip microcomputer, so that the single-chip microcomputer controls the main sensor to perform the main acquisition task according to the access pin address mark corresponding to the main sensor and controls the multiple follow-up sensors to perform the follow-up acquisition tasks according to the access pin address marks corresponding to the multiple follow-up sensors;
[0061] The follow-up acquisition task is generated according to the main acquisition task corresponding to the main sensor.
[0062] The amplifier circuit amplifies the electrical signal of the single chip microcomputer and transmits the amplified electrical signal to the sensor connected to the amplifier circuit to perform the corresponding collection task.
[0063] The above technical solution determines the acquisition tasks that can be performed by each of the multiple sensors according to the sensor type of each of the multiple sensors, and configures the access pin address of each sensor in the single-chip microcomputer; determines a main sensor and multiple follow-up sensors from the multiple sensors according to the acquisition tasks that can be performed by the sensor and the status information of the electronic device configuring the multi-sensor collaborative detection circuit, and marks the access pin address corresponding to the main sensor and the access pin address corresponding to the multiple follow-up sensors; based on the clock signal SCL pin and the serial clock signal SCK pin of the single-chip microcomputer, sends a clock signal SCL and a serial clock signal SCK to the single-chip microcomputer, and the clock signal SCL and the serial clock signal SCK are The signal SCK is used to perform clock synchronization on the main sensor and the multiple follower sensors; in response to receiving the clock synchronization completion signal sent by the single-chip microcomputer, based on the Bluetooth decoding protocol pin of the single-chip microcomputer, the main acquisition task corresponding to the main sensor and the follower acquisition tasks of the multiple follower sensors are sent to the single-chip microcomputer, so that the single-chip microcomputer controls the main sensor to perform the main acquisition task according to the access pin address mark corresponding to the main sensor and controls the multiple follower sensors to perform the follower acquisition task according to the access pin address mark corresponding to the multiple follower sensors; wherein the amplifier circuit amplifies the electrical signal of the single-chip microcomputer and transmits the amplified electrical signal to the sensor connected to the amplifier circuit to perform the corresponding acquisition task. Multiple sensors collaborate to collect data according to the main acquisition task and the follower acquisition task, thereby improving the coordination and consistency of multiple sensors.
[0064] In addition, the main sensor and multiple follow-up sensors can be determined according to the status information of the electronic device, thereby reducing the power consumption caused by the sensors.
[0065] In one embodiment, the clock signal SCL and the serial clock signal SCK are used to perform clock synchronization on the master sensor and the plurality of follower sensors, including:
[0066] The clock signal SCL is used to instruct the single-chip microcomputer to send a clock synchronization start signal to the main sensor and the multiple follow-up sensors, so that the single-chip microcomputer obtains a synchronous clock voltage signal from the serial clock signal SCK according to the clock synchronization start signal, and sends a synchronous clock voltage signal according to the access pin address corresponding to the main sensor and the access pin address corresponding to the multiple follow-up sensors.
[0067] In one embodiment, the synchronous clock voltage signal is generated by:
[0068] The independent clock sources in all logic processing channels of the electronic device respectively generate clock synchronization signals of the channels;
[0069] Each logical processing channel broadcasts the clock synchronization signal of the channel to the internal bus and receives the clock synchronization signals of other channels from the internal bus;
[0070] Each logic processing channel calculates a unified synchronous clock according to the clock synchronization signals of all channels to obtain the synchronous clock voltage signal.
[0071] In one embodiment, before determining a main sensor and a plurality of follower sensors from the multiple sensors according to the acquisition tasks that can be performed by the sensor and the status information of the electronic device configured with the multi-sensor cooperative detection circuit, the method includes:
[0072] Determine that a preset acquisition cycle starts, and obtain the status information of the electronic device of the multi-sensor cooperative detection circuit;
[0073] The method further comprises:
[0074] At the end of the acquisition cycle, a set signal is sent to the single chip microcomputer, wherein the set signal is used to remove the mark of the access pin address corresponding to the main sensor and the mark of the access pin address corresponding to the follow-up sensor.
[0075] In one embodiment, the multi-sensor cooperative detection circuit includes a touch screen, the touch screen is communicatively connected to the single-chip microcomputer, and the touch screen is used to display the status information of each sensor;
[0076] The control method comprises:
[0077] In response to the sensor start / stop instruction input on the touch screen, a sensor start / stop signal is sent to the single chip microcomputer, and the sensor start / stop signal is used to turn on or off the corresponding sensor.
[0078] In one embodiment, the multi-sensor collaborative detection circuit includes a signal processing module and a wireless data transmitter;
[0079] The signal processing module is used to obtain the main digital signal corresponding to the main acquisition task of the main sensor and the follower digital signals corresponding to the follower acquisition task of the multiple follower sensors, and convert the main digital signal and the follower digital signal into voltage signals, and after detecting the voltage signals, obtain the numerical value of the physical quantity corresponding to each of the voltage signals and transmit the numerical value of each of the physical quantities to the wireless data transmitter;
[0080] The wireless data transmitter is used to send the numerical values of the physical quantities. The above technical solution can grasp the current working state of the sensor and the application environment of the electronic device in real time through the touch screen.
[0081] In one embodiment, the multiple sensors include at least three of a temperature sensor, a humidity sensor, a wind speed sensor, a pressure difference sensor, a noise sensor, a light sensor, and a particle sensor.
[0082] The multi-sensor also includes a laser sensor. The sensor and the single-chip microcomputer are connected via I2C.
[0083] Based on the same inventive concept, an embodiment of the present invention further provides a control device for a multi-sensor collaborative detection circuit, wherein the multi-sensor collaborative detection circuit comprises: a single-chip microcomputer, and the multiple sensors connected to the single-chip microcomputer through amplifier circuits respectively:
[0084] See also Figure 2 As shown, the control device 200 includes:
[0085] The first determination module 210 is configured to determine the acquisition task that each of the multiple sensors can perform according to the sensor type of each of the multiple sensors, and configure the access pin address of each of the sensors in the single chip microcomputer;
[0086] The second determination module 220 is configured to determine a main sensor and a plurality of follower sensors from the multi-sensors according to the acquisition tasks that can be performed by the sensor and the state information of the electronic device configured with the multi-sensor cooperative detection circuit, and mark the access pin address corresponding to the main sensor and the access pin address corresponding to the plurality of follower sensors;
[0087] A first sending module 230 is configured to send a clock signal SCL and a serial clock signal SCK to the single-chip microcomputer based on the clock signal SCL pin and the serial clock signal SCK pin of the single-chip microcomputer, wherein the clock signal SCL and the serial clock signal SCK are used to perform clock synchronization on the main sensor and the plurality of follow-up sensors;
[0088] The second sending module 240 is configured to send the main acquisition task corresponding to the main sensor and the follow-up acquisition tasks of the multiple follow-up sensors to the single-chip microcomputer in response to receiving the clock synchronization completion signal sent by the single-chip microcomputer, based on the Bluetooth decoding protocol pin of the single-chip microcomputer, so that the single-chip microcomputer controls the main sensor to perform the main acquisition task according to the access pin address mark corresponding to the main sensor and controls the multiple follow-up sensors to perform the follow-up acquisition tasks according to the access pin address marks corresponding to the multiple follow-up sensors;
[0089] The amplifier circuit amplifies the electrical signal of the single chip microcomputer and transmits the amplified electrical signal to the sensor connected to the amplifier circuit to perform the corresponding acquisition task.
[0090] In one embodiment, the second determination module 220 is configured to: before determining the main sensor and the plurality of follower sensors from the multi-sensors according to the acquisition tasks that can be performed by the sensor and the state information of the electronic device configured with the multi-sensor cooperative detection circuit, determine the start of a preset acquisition cycle to obtain the state information of the electronic device of the multi-sensor cooperative detection circuit;
[0091] The second sending module 240 is configured to send a set signal to the single-chip microcomputer when the acquisition cycle ends, and the set signal is used to remove the mark of the access pin address corresponding to the main sensor and the access pin address corresponding to the follow-up sensor.
[0092] In one embodiment, the second sending module is configured to send a sensor start / stop signal to the single-chip microcomputer in response to a sensor start / stop command input on the touch screen, wherein the sensor start / stop signal is used to turn on or off a corresponding sensor.
[0093] In one embodiment, the multiple sensors include at least three of a temperature sensor, a humidity sensor, a wind speed sensor, a pressure difference sensor, a noise sensor, a light sensor, and a particle sensor.
[0094] An embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0095] one or more processors;
[0096] Memory; and
[0097] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the control method of the multi-sensor collaborative detection circuit in any one of the aforementioned embodiments.
[0098] Based on the above ideal embodiments of this application, the relevant staff can make various changes and modifications without departing from the technical concept of this application through the above description. The technical scope of this application is not limited to the content in the specification, and its technical scope must be determined according to the scope of the claims.
[0099] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A control method for a multi-sensor collaborative detection circuit, characterized in that: The multi-sensor cooperative detection circuit comprises: a single chip microcomputer, and the multiple sensors connected to the single chip microcomputer through amplifier circuits respectively; The control method comprises: According to the sensor type of each of the multiple sensors, determine the acquisition task that each of the multiple sensors can perform, and configure the access pin address of each of the sensors in the single-chip microcomputer; According to the acquisition tasks that can be performed by the sensor and the status information of the electronic device configured with the multi-sensor cooperative detection circuit, a main sensor and a plurality of follower sensors are determined from the multi-sensors, and the access pin addresses corresponding to the main sensor and the access pin addresses corresponding to the plurality of follower sensors are marked; Based on the clock signal SCL pin and the serial clock signal SCK pin of the single-chip microcomputer, a clock signal SCL and a serial clock signal SCK are sent to the single-chip microcomputer, wherein the clock signal SCL and the serial clock signal SCK are used to synchronize the clocks of the main sensor and the plurality of follow-up sensors; In response to receiving a clock synchronization completion signal sent by the single-chip microcomputer, based on the Bluetooth decoding protocol pin of the single-chip microcomputer, a main acquisition task corresponding to the main sensor and the follow-up acquisition tasks of the multiple follow-up sensors are sent to the single-chip microcomputer, so that the single-chip microcomputer controls the main sensor to perform the main acquisition task according to the access pin address mark corresponding to the main sensor and controls the multiple follow-up sensors to perform the follow-up acquisition tasks according to the access pin address marks corresponding to the multiple follow-up sensors; The amplifier circuit amplifies the electrical signal of the single chip microcomputer and transmits the amplified electrical signal to the sensor connected to the amplifier circuit to perform the corresponding collection task.
2. The control method according to claim 1, characterized in that: The clock signal SCL and the serial clock signal SCK are used to perform clock synchronization on the master sensor and the plurality of follower sensors, including: The clock signal SCL is used to instruct the single-chip microcomputer to send a clock synchronization start signal to the main sensor and the multiple follow-up sensors, so that the single-chip microcomputer obtains a synchronous clock voltage signal from the serial clock signal SCK according to the clock synchronization start signal, and sends a synchronous clock voltage signal according to the access pin address corresponding to the main sensor and the access pin address corresponding to the multiple follow-up sensors.
3. The control method according to claim 2, characterized in that: The synchronous clock voltage signal is generated in the following manner: The independent clock sources in all logic processing channels of the electronic device respectively generate clock synchronization signals of the channels; Each logical processing channel broadcasts the clock synchronization signal of the channel to the internal bus and receives the clock synchronization signals of other channels from the internal bus; Each logic processing channel calculates a unified synchronous clock according to the clock synchronization signals of all channels to obtain the synchronous clock voltage signal.
4. The control method according to claim 1, characterized in that: Before determining a main sensor and a plurality of follower sensors from the multiple sensors according to the acquisition tasks that can be performed by the sensor and the status information of the electronic device configured with the multi-sensor cooperative detection circuit, the method includes: Determine that a preset acquisition cycle starts, and obtain the status information of the electronic device of the multi-sensor cooperative detection circuit; The method further comprises: At the end of the acquisition cycle, a set signal is sent to the single chip microcomputer, wherein the set signal is used to remove the mark of the access pin address corresponding to the main sensor and the mark of the access pin address corresponding to the follow-up sensor.
5. The control method according to claim 1, characterized in that: The multi-sensor collaborative detection circuit includes a touch screen, the touch screen is communicatively connected with the single-chip microcomputer, and the touch screen is used to display the status information of each of the sensors; The control method comprises: In response to the sensor start / stop instruction input on the touch screen, a sensor start / stop signal is sent to the single chip microcomputer, and the sensor start / stop signal is used to turn on or off the corresponding sensor.
6. The control method according to claim 1, characterized in that: The multi-sensor collaborative detection circuit includes a signal processing module and a wireless data transmitter; The signal processing module is used to obtain the main digital signal corresponding to the main acquisition task of the main sensor and the follower digital signals corresponding to the follower acquisition task of the multiple follower sensors, and convert the main digital signal and the follower digital signal into voltage signals, and after detecting the voltage signals, obtain the numerical value of the physical quantity corresponding to each of the voltage signals and transmit the numerical value of each of the physical quantities to the wireless data transmitter; The wireless data transmitter is used to send the numerical value of each of the physical quantities.
7. The control method according to any one of claims 1 to 6, characterized in that: The multiple sensors include at least three of a temperature sensor, a humidity sensor, a wind speed sensor, a pressure difference sensor, a noise sensor, a light sensor, and a particle sensor.
8. A control device for a multi-sensor cooperative detection circuit, characterized in that: The multi-sensor cooperative detection circuit comprises: a single-chip microcomputer, and the multi-sensors connected to the single-chip microcomputer through amplifier circuits respectively; The control device comprises: A first determination module is configured to determine, according to the sensor type of each of the multiple sensors, the acquisition task that each of the multiple sensors can perform, and configure the access pin address of each of the sensors in the single-chip microcomputer; a second determination module, configured to determine a main sensor and a plurality of follower sensors from the multi-sensors according to the acquisition tasks that can be performed by the sensor and the state information of the electronic device configured with the multi-sensor cooperative detection circuit, and mark the access pin address corresponding to the main sensor and the access pin address corresponding to the plurality of follower sensors; A first sending module is configured to send a clock signal SCL and a serial clock signal SCK to the single-chip microcomputer based on a clock signal SCL pin and a serial clock signal SCK pin of the single-chip microcomputer, wherein the clock signal SCL and the serial clock signal SCK are used to perform clock synchronization on the main sensor and the plurality of follow-up sensors; A second sending module is configured to send a main acquisition task corresponding to the main sensor and the follow-up acquisition tasks of the multiple follow-up sensors to the single-chip microcomputer in response to receiving a clock synchronization completion signal sent by the single-chip microcomputer, based on the Bluetooth decoding protocol pin of the single-chip microcomputer, so that the single-chip microcomputer controls the main sensor to perform the main acquisition task according to the access pin address mark corresponding to the main sensor and controls the multiple follow-up sensors to perform the follow-up acquisition tasks according to the access pin address marks corresponding to the multiple follow-up sensors; The amplifier circuit amplifies the electrical signal of the single chip microcomputer and transmits the amplified electrical signal to the sensor connected to the amplifier circuit to perform the corresponding collection task.
9. The control device according to claim 8, characterized in that: The second determination module is configured to: determine a preset acquisition period to start before determining a main sensor and a plurality of follower sensors from the multi-sensors according to the acquisition tasks that can be performed by the sensor and the status information of the electronic device configured with the multi-sensor cooperative detection circuit, and obtain the status information of the electronic device of the multi-sensor cooperative detection circuit; The second sending module is configured to send a set signal to the single-chip microcomputer when the acquisition cycle ends, and the set signal is used to remove the mark of the access pin address corresponding to the main sensor and the access pin address corresponding to the follow-up sensor.
10. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the control method of the multi-sensor collaborative detection circuit according to any one of claims 1 to 7.
Citation Information
Patent Citations
Multichannel data acquisition instrument based on time synchronization
CN103488112A
Multi-sensor and multi-channel signal synchronous collecting system and method
CN109581936A
Air purifier detection data communication method and system
CN113691955A
Human body falling detection early warning device based on multi-sensor cooperation
CN203179226U
Dynamic 12C Slave Device Address Decoder
US20080147941A1
