CN108920187A - sensor control method and device - Google Patents

sensor control method and device Download PDF

Info

Publication number
CN108920187A
CN108920187A CN201810717193.0A CN201810717193A CN108920187A CN 108920187 A CN108920187 A CN 108920187A CN 201810717193 A CN201810717193 A CN 201810717193A CN 108920187 A CN108920187 A CN 108920187A
Authority
CN
China
Prior art keywords
sensor
control
control instruction
instruction
mark
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.)
Pending
Application number
CN201810717193.0A
Other languages
Chinese (zh)
Inventor
陈思颖
吴立德
许志尤
施铭镛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weifang Goertek Microelectronics Co Ltd
Original Assignee
Goertek Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Inc filed Critical Goertek Inc
Priority to CN201810717193.0A priority Critical patent/CN108920187A/en
Publication of CN108920187A publication Critical patent/CN108920187A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30076Arrangements for executing specific machine instructions to perform miscellaneous control operations, e.g. NOP

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

This application discloses a kind of sensor control method and device, the method includes:Determine the shared mark of multiple sensors and the privately owned mark of each sensor;Based on the shared mark, the first control instruction is generated;First control instruction is sent respectively to the multiple sensor, so that the multiple sensor, which is based on first control instruction, executes first kind control operation;Privately owned mark based on any sensor generates the second control instruction;The second control instruction is sent to any sensor, so that any sensor, which is based on second control instruction, executes the control operation of the second class.The embodiment of the present invention improves the control efficiency of sensor.

Description

Sensor control method and device
Technical field
The invention relates to field of computer technology, specifically, being related to a kind of sensor control method and device.
Background technique
Controller and multiple sensors are commonly configured on the intelligent terminals such as mobile phone, tablet computer, wearable device.It passes Sensor is mainly used for inductive signal, such as voice signal, pressing signal etc..The signal of the available sensor sensing of controller, And signal processing is carried out, to determine corresponding induction result.Sensor can also obtain the instruction of processor transmission, and responding should Instruction, the control with end controller to sensor.
In the prior art, each sensor has unique ID (Identification, identifier), so that controller is logical It crosses unique ID and controls each sensor.In general, controller identifies each sensor according to each sensor ID, and based on every The ID of a sensor sends corresponding control instruction to each sensor.After each sensor receives control instruction, judge to control Whether the ID and self ID in system instruction are consistent, if unanimously, responding the control instruction;If it is inconsistent, not responding.
It but as seen from the above description, can only be for any sensor when controller sends control instruction to sensor Unique identifier sends corresponding control instruction one by one.Therefore, controller can only disposably control a sensor, control efficiency It is lower.
Summary of the invention
In view of this, this application provides a kind of sensor control method, device and systems, for solving the prior art In technical problem.
In order to solve the above-mentioned technical problem, this application provides a kind of sensor control methods, including:
Determine the shared mark of multiple sensors and the privately owned mark of each sensor;
Based on the shared mark, the first control instruction is generated;
First control instruction is sent respectively to the multiple sensor, so that the multiple sensor is based on described First control instruction executes first kind control operation;
Privately owned mark based on any sensor generates the second control instruction;
The second control instruction is sent to any sensor, so that any sensor is based on second control The control operation of the second class of instruction execution.
Preferably, first control instruction includes synchronously control instruction;The first kind control operation includes synchronous control System operation;
It is described to send first control instruction respectively to the multiple sensor, so that the multiple sensor is distinguished Executing the first control operation based on first control instruction includes:
The synchronously control instruction is sent respectively to the multiple sensor, is based respectively on controlling the multiple sensor The synchronously control instruction executes corresponding synchronously control operation.
Preferably, second control instruction includes data transfer instruction;The second class control operation includes parameter number According to transmission operation;
The second control instruction is sent to any sensor, so that any sensor is based on the second control instruction Executing the control operation of the second class includes:
Data transfer instruction is sent to any sensor, so that any sensor transmits based on the data Instruction executes the transmission operation of supplemental characteristic.
Preferably, described to send first control instruction respectively to the multiple sensor, so that the multiple biography Sensor is based respectively on after the first control instruction execution first kind control operation, the method also includes:
Receive the anti-of operating result generation of each sensor based on independent identification and first kind control operation Feedforward information;
According to the feedback information, the operating result of each sensor is determined.
Preferably, described to send the second control instruction to any sensor, so that any sensor is based on described Second class control instruction, after executing the control operation of the second class, the method also includes:
Receive the feedback data that any sensor is generated based on independent identification and supplemental characteristic;
Determine the supplemental characteristic of any sensor in the feedback data.
The embodiment of the present invention also provides a kind of sensor control method, including:
Receive the first control instruction that controller is sent;
Based on first control instruction, first kind control operation is executed;
Receive the second control instruction that controller is sent;
Based on second control instruction, the control operation of the second class is executed.
Preferably, first control instruction includes synchronously control instruction, and the first kind control operation includes synchronous control System operation;
Described to be based on first control instruction, executing first kind control operation includes:
It is instructed based on the synchronously control, executes corresponding synchronously control operation.
Preferably, second control instruction includes:Data transfer instruction;The second class control operation includes parameter number According to transmission operation;
Described to be based on second control instruction, executing the control operation of the second class includes:
Transmission instruction based on the data, get parms data;
The supplemental characteristic is sent to the controller.
The embodiment of the present invention also provides a kind of sensor control, including:
Determining module is identified, for determining the shared mark of multiple sensors and the privately owned mark of each sensor;
First generation module generates the first control instruction for being based on the shared mark;
First sending module, for sending first control instruction respectively to the multiple sensor, so that described Multiple sensors are based on first control instruction and execute first kind control operation;
Second generation module generates the second control instruction for the privately owned mark based on any sensor;
Second sending module, for sending the second control instruction to any sensor, so that any sensing Device is based on second control instruction and executes the control operation of the second class.
The embodiment of the present invention also provides a kind of sensor control, including:
First receiving module, for receiving the first control instruction of controller transmission;
First execution module executes first kind control operation for being based on first control instruction;
Second receiving module, for receiving the second control instruction of controller transmission;
Second execution module executes the control operation of the second class for being based on second control instruction.
In the embodiment of the present invention, for multiple sensors, it is provided with identical shared mark for each sensor, is also every A sensor is provided with different independent identifications.And then controller can generate for each sensor based on shared mark One control instruction can control the multiple sensor by first control instruction simultaneously.And it is based on any one sensor Independent identification, the second control instruction of any one sensor can be generated, to control any one described sensor.It can be with Corresponding single sensor is controlled by independent identification, to reach single control purpose.Pass through shared mark and independent identification Be used cooperatively, one sensor of multiple sensors or a secondary control can be controlled simultaneously, it is real to pass through different types of mark Existing different control purpose, to improve the control efficiency of sensor.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of flow chart of one embodiment of sensor control method provided in an embodiment of the present invention;
Fig. 2 is the attachment structure schematic diagram of a kind of controller and sensor provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of another embodiment of sensor control method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of one embodiment of sensor control provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of another embodiment of sensor control provided in an embodiment of the present invention.
Specific embodiment
Presently filed embodiment is described in detail below in conjunction with accompanying drawings and embodiments, thereby how the application is applied Technological means solves technical problem and reaches the realization process of technical effect to fully understand and implement.
The embodiment of the present invention is mainly used in the control scene of sensor, mainly corresponding by being arranged for multiple sensors Independent identification and privately owned mark, can achieve while controlling the dual of multiple sensors and independent one sensor of control Target improves the control efficiency of sensor.
In the prior art, the mark of each sensor is unique, in general, controller can pass through the only of the sensor Day-mark, which is known, controls the sensor.If controlling multiple sensors executes identical operation, need for multiple sensors Unique identifier generates the control instruction of each sensor respectively, realizes corresponding control operation, the control of this control mode Efficiency is lower, can only once control a sensor, be unfavorable for the control of sensor.
In order to solve the above-mentioned technical problem, inventor expects, if can control all sensors simultaneously, be each biography Identical identifier is arranged in sensor, however, it was found that identical identifier is arranged if it is all sensors, due to each The identifier of sensor is all the same, when controller reads the data in sensor, for example, sensor is temperature sensor, control Device processed obtains the temperature data of Current Temperatures sensor, and since sensor identification is all the same, controller is unable to the kind of data discrimination Class and respective sensor, will lead to data collision.Inventor expects, at this time, it is also necessary to its private be arranged for each sensor There is mark, can preferably carry out the transmission work of sensing data with the source of data discrimination when transmitting data.Accordingly Inventors herein propose the technical solution of the application.
In the embodiment of the present invention, for multiple sensors be provided with multiple sensors shared mark and each of which The independent identification of sensor then can generate the first control instruction based on shared mark, generate the second control based on independent identification System instruction.First control instruction is the instruction for all the sensors, and the control instruction is separately sent to each Sensor, each sensor can execute first kind control operation after receiving the first control instruction, complete simultaneously to all The first kind of sensor controls.Second control instruction is the control instruction for one of sensor, due to the second class Sensor is generated based on the privately owned mark of any sensor, can individually control the corresponding sensor of this privately owned mark, Ke Yida To the control of independent control any sensor.By shared mark and it is private it is tagged be used cooperatively, can obtain different Control effect reaches corresponding control purpose, improves control efficiency.
The embodiment of the present invention is described in detail below in conjunction with attached drawing.
As shown in Figure 1, the flow chart of one embodiment for a kind of sensor control method of the embodiment of the present invention, the party Method may include following steps:
101:Determine the shared mark of multiple sensors and the privately owned mark of each sensor.
Sensor control method in the embodiment of the present invention can be applied in controller, and the controller can refer to intelligence Processor in terminal, the microcontroller etc. in smart circuit have the processing component of calculation processing function.The sensor can To refer to the sensing apparatus in various intelligent terminals, smart circuit.
Controller can be connect side by side on bus B US with multiple sensors, as shown in Figure 2, controller 201 and multiple biographies Sensor 202 is connected to side by side in bus 203, and 5 sensors are shown in Fig. 2, only one it is schematical, do not have to biography The quantitative restriction effect of sensor.Wherein, controller and multiple controllers can carry out supplemental characteristic and control by bus Make the transmission work of instruction.Controller can be sent to each sensor respectively by bus and be instructed, each sensor can To send supplemental characteristic to controller by bus.
In practical applications, multiple sensors can be at least two sensors.
Optionally, the shared mark of multiple sensors and the privately owned mark of each sensor can be stored in control simultaneously In device.It, can be by the way of the corresponding storage of the two when storing shared mark and privately owned mark in order to facilitate use.As Sensor name, the sensor based on each sensor can be arranged for each sensor in a kind of possible implementation Title, its corresponding shared mark of corresponding storage and privately owned mark.In order to reduce EMS memory occupation, can also individually store shared Mark, at this point it is possible to sensor name and private tagged corresponding lists or database be established, to be easy to use each The privately owned mark of sensor.
It can be configured with corresponding processing component in sensor, with the reception of process instruction and execute work.Sensor In processing component can be sensor internal configuration processor, can also be for sensor configuration sensor control core Piece.Each sensor can configure storage assembly, can store in storage assembly each sensor privately owned mark and Shared mark.When the processing component of sensor is needed using privately owned mark and shared mark in sensor, can directly from It is read in storage assembly.
The sensor type of multiple sensors can be the same or different.In practical applications, the multiple sensor It can be temperature sensing sensor, pressure sensor, acceleration transducer etc..The shared mark of each sensor is all the same, The privately owned mark of each sensor is different, wherein each sensor and privately owned mark correspond.Each sensor The privately owned equal difference of mark refers to that the privately owned mark of any two sensor is different.
Optionally it is determined that the shared mark of multiple sensors and the privately owned mark of each sensor can include determining that it is more The privately owned mark of each sensor in the shared mark of a sensor and the multiple sensor.
102:Based on the shared mark, the first control instruction is generated.
103:First control instruction is sent respectively to the multiple sensor, so that the multiple sensor is distinguished First kind control operation is executed based on first control instruction.
First control instruction is generated based on the shared mark, may include shared mark in the first control instruction Know.After controller sends first control instruction to multiple sensors, the multiple sensor can be based on described first Shared mark in control instruction, judgement should execute corresponding first kind control operation.
Optionally, controller sends first control instruction to multiple sensors, can be respectively to multiple sensors The first control instruction is sent, to control each sensor respectively.As a kind of possible implementation, controller can be by first Control instruction is separately sent in multiple sensors by bus, and the multiple sensor can receive the first control instruction, is led to The shared mark crossed in first control instruction determines first control instruction, executes first kind control operation.
It is described to may include to the first control instruction of the multiple sensor transmission respectively:First control instruction is led to It crosses bus and is sent to all sensors.
104:Privately owned mark based on any sensor generates the second control instruction.
105:The second control instruction is sent to any sensor, so that any sensor is based on described second Control instruction executes the control operation of the second class.
Second control instruction is that the privately owned mark based on any sensor generates, can in second control instruction With the privately owned mark comprising any sensor.Second control instruction can be sent directly to any sensor by controller, Any sensor can judge that the control instruction is the control for itself based on the privately owned mark in the control instruction System instruction.As a kind of possible implementation, multiple sensors can receive the second control instruction, when judgement second controls When privately owned mark in instruction and the inconsistent privately owned mark of itself, second control instruction can be deleted, it is without any processing.
In the transmission line there are bus, each sensor can receive to the first control instruction and second and control System instruction.When any one sensor receives any one control instruction, either the first control instruction or the second control instruction, The command identification of available any one control instruction received of any one sensor judges the command identification and shares It when identifying consistent, determines that the control instruction is first kind control instruction, executes corresponding first kind control operation;Judge the instruction It when identifying consistent with privately owned instruction, determines that the control instruction is the second class control instruction, executes corresponding second class control operation.
In the embodiment of the present invention, for multiple sensors, it is provided with identical shared mark for each sensor, is also every A sensor is provided with different independent identifications.And then controller can generate for each sensor based on shared mark One control instruction can control the multiple sensor by first control instruction simultaneously.And it is based on any one sensor Independent identification, the second control instruction of any one sensor can be generated, to control any one described sensor.It can be with Corresponding single sensor is controlled by independent identification, to reach single control purpose.Pass through shared mark and independent identification Be used cooperatively, one sensor of multiple sensors or a secondary control can be controlled simultaneously, it is real to pass through different types of mark Existing different control purpose, to improve the control efficiency of sensor.
As one embodiment, first control instruction includes synchronously control instruction;The first kind control operation packet Include synchronously control operation;
It is described to send first control instruction respectively to the multiple sensor, so that the multiple sensor is distinguished Executing the first control operation based on first control instruction includes:
The synchronously control instruction is sent respectively to the multiple sensor, is based respectively on controlling the multiple sensor The synchronously control instruction executes corresponding synchronously control operation.
First control instruction may include synchronously control operation, also can be thus achieved while controlling the behaviour of multiple sensors Make.First control instruction can be the instruction of write-in type, be only capable of to multiple sensor write instructions.The synchronously control operation May include:Start-up operation, shutoff operation, interrupt operation and/or clock setting operation etc. can be completed at the same time to multiple biographies The control of sensor operates.
Synchronously control operation can control multiple sensors and be performed simultaneously corresponding first control operation, not need for every One sensor controls one by one, and control efficiency can be improved.
It is operated based on synchronously control, executing corresponding synchronously control operation may include:It is operated, is executed based on synchronous averaging Corresponding sensor start-up operation;It is operated based on close synchronously, executes corresponding sensor shutoff operation.
In the embodiment of the present invention, by the shared mark multiple sensors of synchronously control, the control operation of sensor is executed, with Corresponding synchronously control operation is completed, preferable synchronously control effect is obtained.It, can be with meanwhile by first control instruction Multiple sensors are controlled simultaneously, improve control efficiency.
As one embodiment, second control instruction includes data transfer instruction;The second class control operation packet Include the transmission operation of supplemental characteristic;
The second control instruction is sent to any sensor, so that any sensor is based on the second control instruction Executing the control operation of the second class includes:
Data transfer instruction is sent to any sensor, so that any sensor transmits based on the data Instruction executes the transmission operation of supplemental characteristic.
Second control instruction be for it includes the corresponding sensor of privately owned instruction control operation.
Second control instruction may include data transfer instruction, and any sensor receives its corresponding second control instruction When, second control instruction can be responded, corresponding data transfer operation is executed.
Sensor can sense the supplemental characteristic of environment or surrounding, and send controller for the supplemental characteristic of acquisition, So that controller gets the supplemental characteristic of sensor output, corresponding data processing is carried out.Any sensor is based on institute Data transfer instruction is stated, the transmission work for executing supplemental characteristic may include any sensor response data transmission instruction, Sensed data is obtained, and the corresponding privately owned mark of sensed data is generated into supplemental characteristic, supplemental characteristic is sent to control Device.Controller can receive the supplemental characteristic of sensor transmission, and then can complete the transmission operation of supplemental characteristic.
In the embodiment of the present invention, the second control for any sensor is generated by the privately owned mark of any sensor Instruction, any sensor are based on second control instruction and complete corresponding data transfer operation.Second control instruction is needle To the control instruction of any sensor, there is specific aim, data can be transmitted by privately owned mark, to avoid data punching It is prominent, reach accurate control.
It is described to send first control instruction respectively to the multiple sensor as another embodiment, so that The multiple sensor is based respectively on after the first control instruction execution first kind control operation, the method also includes:
Receive the anti-of operating result generation of each sensor based on independent identification and first kind control operation Feedforward information;
According to the feedback information, the operating result of each sensor is determined.
After multiple sensors receive the first control instruction, corresponding first kind control operation can be executed, has been executed After finishing, control result is obtained in order to facilitate controller, operating result can be generated feedback information by the multiple sensor, and Feedback information is sent to controller.Controller can obtain feedback information, and may include sensor in feedback information Privately owned mark, and then controller can determine the operation of the corresponding sensor of privately owned mark according to the privately owned mark in feedback information As a result.
In the embodiment of the present invention, multiple sensors receive the first control instruction, execute corresponding first kind control operation Later, the operating result that operation can be controlled based on the first kind generates feedback information, each sensor can be based on its independence Mark and operating result generation feedback information, the feedback information of each available sensor of controller, and then can root According to the privately owned mark and operating result in feedback information, the feedback result of sensor is determined.To which controller can obtain in time Know the control result of each sensor, to facilitate the execution of subsequent step, obtain preferable control result, improves control effect Rate.
It is described to send the second control instruction to any sensor as another embodiment, so that any sensing Device is based on the second class control instruction, after executing the control operation of the second class, the method also includes:
Receive the feedback data that any sensor is generated based on independent identification and supplemental characteristic;
Determine the supplemental characteristic of any sensor in the feedback data.
Parameter number in the embodiment of the present invention, for the second control instruction of any sensor, in available sensor According to.When sensor receives the second class control instruction, get parms data, and supplemental characteristic and independent identification are generated feedback Data, and then controller can obtain feedback data, and obtain the supplemental characteristic in feedback data, complete sensing data Collecting work can achieve the purpose of the individually data of acquisition sensor, not influence the normal data transfer of sensor, not generate Data collision, it is ensured that the integrality of function.
As shown in figure 3, being a kind of process of another embodiment of sensor control method provided in an embodiment of the present invention Figure, the method may include following steps:
301:Receive the first control instruction that controller is sent.
302:Based on first control instruction, first kind control operation is executed.
303:Receive the second control instruction that controller is sent.
304:Based on second control instruction, the control operation of the second class is executed.
As one embodiment, first control instruction includes synchronously control instruction, the first kind control operation packet Include synchronously control operation;
Described to be based on first control instruction, executing first kind control operation includes:
It is instructed based on the synchronously control, executes corresponding synchronously control operation.
As another embodiment, the second control instruction includes:Data transfer instruction;The second class control, which operates, includes The transmission of supplemental characteristic operates;
Described to be based on second control instruction, executing the control operation of the second class includes:
Transmission instruction based on the data, get parms data;
The supplemental characteristic is sent to the controller.
In the embodiment of the present invention, each sensor can receive the first control instruction generated based on shared mark, with complete The synchronously control of pairs of each sensor.For the second control instruction of any one sensor independent identification, any one described biography Sensor can execute corresponding second class control operation.Corresponding single sensor can be controlled, by independent identification to reach Single control purpose.By being used cooperatively for shared mark and independent identification, multiple sensors or one can be controlled simultaneously One sensor of secondary control realizes different control purposes by different types of mark, to improve the control efficiency of sensor.
As shown in figure 4, being that a kind of structure of one embodiment of sensor control provided in an embodiment of the present invention is shown It is intended to, the apparatus may include:
Identify determining module 401:For determining the shared mark of multiple sensors and the privately owned mark of each sensor.
Sensor control in the embodiment of the present invention can be applied in controller, and the controller can refer to intelligence Processor in terminal, the microcontroller etc. in smart circuit have the processing component of calculation processing function.The sensor can To refer to the sensing apparatus in various intelligent terminals, smart circuit.
Controller can be connect side by side on bus B US with multiple sensors.Wherein, controller can lead to multiple controllers Cross the transmission work that bus carries out supplemental characteristic and control instruction.Controller can be by bus respectively to each sensor Instruction is sent, each sensor can send supplemental characteristic to controller by bus.
Optionally, the shared mark of multiple sensors and the privately owned mark of each sensor can be stored in control simultaneously In device.It, can be by the way of the corresponding storage of the two when storing shared mark and privately owned mark in order to facilitate use.As Sensor name, the sensor based on each sensor can be arranged for each sensor in a kind of possible implementation Title, its corresponding shared mark of corresponding storage and privately owned mark.In order to reduce EMS memory occupation, can also individually store shared Mark, at this point it is possible to sensor name and private tagged corresponding lists or database be established, to be easy to use each The privately owned mark of sensor.
It can be configured with corresponding processing component in sensor, with the reception of process instruction and execute work.Sensor In processing component can be sensor internal configuration processor, can also be for sensor configuration sensor control core Piece.Each sensor can configure storage assembly, can store in storage assembly each sensor privately owned mark and Shared mark.When the processing component of sensor is needed using privately owned mark and shared mark in sensor, can directly from It is read in storage assembly.
The sensor type of multiple sensors can be the same or different.In practical applications, the multiple sensor It can be temperature sensing sensor, pressure sensor, acceleration transducer etc..The shared mark of each sensor is all the same, The privately owned mark of each sensor is different, wherein each sensor and privately owned mark correspond.Each sensor The privately owned equal difference of mark refers to that the privately owned mark of any two sensor is different.
Optionally it is determined that the shared mark of multiple sensors and the privately owned mark of each sensor can include determining that it is more The privately owned mark of each sensor in the shared mark of a sensor and the multiple sensor.
First generation module 402:For being based on the shared mark, the first control instruction is generated.
First sending module 403:For sending first control instruction respectively to the multiple sensor, so that institute It states multiple sensors and is based on first control instruction execution first kind control operation.
First control instruction is generated based on the shared mark, may include shared mark in the first control instruction Know.After controller sends first control instruction to multiple sensors, the multiple sensor can be based on described first Shared mark in control instruction, judgement should execute corresponding first kind control operation.
Optionally, controller sends first control instruction to multiple sensors, can be respectively to multiple sensors The first control instruction is sent, to control each sensor respectively.As a kind of possible implementation, controller can be by first Control instruction is separately sent in multiple sensors by bus, and the multiple sensor can receive the first control instruction, is led to The shared mark crossed in first control instruction determines first control instruction, executes first kind control operation.
It is described to may include to the first control instruction of the multiple sensor transmission respectively:First control instruction is led to It crosses bus and is sent to all sensors.
Second generation module 404:For the privately owned mark based on any sensor, the second control instruction is generated;
Second sending module 405:For sending the second control instruction to any sensor, so that any biography Sensor is based on second control instruction and executes the control operation of the second class.
Second control instruction is that the privately owned mark based on any sensor generates, can in second control instruction With the privately owned mark comprising any sensor.Second control instruction can be sent directly to any sensor by controller, Any sensor can judge that the control instruction is the control for itself based on the privately owned mark in the control instruction System instruction.As a kind of possible implementation, multiple sensors can receive the second control instruction, when judgement second controls When privately owned mark in instruction and the inconsistent privately owned mark of itself, second control instruction can be deleted, it is without any processing.
In the transmission line there are bus, each sensor can receive to the first control instruction and second and control System instruction.When any one sensor receives any one control instruction, either the first control instruction or the second control instruction, The command identification of available any one control instruction received of any one sensor judges the command identification and shares It when identifying consistent, determines that the control instruction is first kind control instruction, executes corresponding first kind control operation;Judge the instruction It when identifying consistent with privately owned instruction, determines that the control instruction is the second class control instruction, executes corresponding second class control operation.
In the embodiment of the present invention, for multiple sensors, it is provided with identical shared mark for each sensor, is also every A sensor is provided with different independent identifications.And then controller can generate for each sensor based on shared mark One control instruction can control the multiple sensor by first control instruction simultaneously.And it is based on any one sensor Independent identification, the second control instruction of any one sensor can be generated, to control any one described sensor.It can be with Corresponding single sensor is controlled by independent identification, to reach single control purpose.Pass through shared mark and independent identification Be used cooperatively, one sensor of multiple sensors or a secondary control can be controlled simultaneously, it is real to pass through different types of mark Existing different control purpose, to improve the control efficiency of sensor.
As one embodiment, first control instruction includes synchronously control instruction;The first kind control operation packet Include synchronously control operation;
First sending module specifically can be used for:
The synchronously control instruction is sent respectively to the multiple sensor, is based respectively on controlling the multiple sensor The synchronously control instruction executes corresponding synchronously control operation.
First control instruction may include synchronously control operation, also can be thus achieved while controlling the behaviour of multiple sensors Make.First control instruction can be the instruction of write-in type, be only capable of to multiple sensor write instructions.The synchronously control operation May include:Start-up operation, shutoff operation, interrupt operation and/or clock setting operation etc. can be completed at the same time to multiple biographies The control of sensor operates.
Synchronously control operation can control multiple sensors and be performed simultaneously corresponding first control operation, not need for every One sensor controls one by one, and control efficiency can be improved.
It is operated based on synchronously control, executing corresponding synchronously control operation may include:It is operated, is executed based on synchronous averaging Corresponding sensor start-up operation;It is operated based on close synchronously, executes corresponding sensor shutoff operation.
In the embodiment of the present invention, by the shared mark multiple sensors of synchronously control, the control operation of sensor is executed, with Corresponding synchronously control operation is completed, preferable synchronously control effect is obtained.It, can be with meanwhile by first control instruction Multiple sensors are controlled simultaneously, improve control efficiency.
As one embodiment, second control instruction includes data transfer instruction;The second class control operation packet Include the transmission operation of supplemental characteristic;
Second sending module specifically can be used for:
Data transfer instruction is sent to any sensor, so that any sensor transmits based on the data Instruction executes the transmission operation of supplemental characteristic.
Second control instruction be for it includes the corresponding sensor of privately owned instruction control operation.
Second control instruction may include data transfer instruction, and any sensor receives its corresponding second control instruction When, second control instruction can be responded, corresponding data transfer operation is executed.
Sensor can sense the supplemental characteristic of environment or surrounding, and send controller for the supplemental characteristic of acquisition, So that controller gets the supplemental characteristic of sensor output, corresponding data processing is carried out.Any sensor is based on institute Data transfer instruction is stated, the transmission work for executing supplemental characteristic may include any sensor response data transmission instruction, Sensed data is obtained, and the corresponding privately owned mark of sensed data is generated into supplemental characteristic, supplemental characteristic is sent to control Device.Controller can receive the supplemental characteristic of sensor transmission, and then can complete the transmission operation of supplemental characteristic.
In the embodiment of the present invention, the second control for any sensor is generated by the privately owned mark of any sensor Instruction, any sensor are based on second control instruction and complete corresponding data transfer operation.Second control instruction is needle To the control instruction of any sensor, there is specific aim, data can be transmitted by privately owned mark, to avoid data punching It is prominent, reach accurate control.
As another embodiment, described device further includes:
Information receiving module controls operation based on independent identification and the first kind for receiving each sensor The feedback information that operating result generates;
As a result determining module, for determining the operating result of each sensor according to the feedback information.
After multiple sensors receive the first control instruction, corresponding first kind control operation can be executed, has been executed After finishing, control result is obtained in order to facilitate controller, operating result can be generated feedback information by the multiple sensor, and Feedback information is sent to controller.Controller can obtain feedback information, and may include sensor in feedback information Privately owned mark, and then controller can determine the operation of the corresponding sensor of privately owned mark according to the privately owned mark in feedback information As a result.
In the embodiment of the present invention, multiple sensors receive the first control instruction, execute corresponding first kind control operation Later, the operating result that operation can be controlled based on the first kind generates feedback information, each sensor can be based on its independence Mark and operating result generation feedback information, the feedback information of each available sensor of controller, and then can root According to the privately owned mark and operating result in feedback information, the feedback result of sensor is determined.To which controller can obtain in time Know the control result of each sensor, to facilitate the execution of subsequent step, obtain preferable control result, improves control effect Rate.
As another embodiment, described device further includes:
Data reception module, the feedback generated for receiving any sensor based on independent identification and supplemental characteristic Data.
Data determining module, for determining the supplemental characteristic of any sensor in the feedback data.
Parameter number in the embodiment of the present invention, for the second control instruction of any sensor, in available sensor According to.When sensor receives the second class control instruction, get parms data, and supplemental characteristic and independent identification are generated feedback Data, and then controller can obtain feedback data, and obtain the supplemental characteristic in feedback data, complete sensing data Collecting work can achieve the purpose of the individually data of acquisition sensor, not influence the normal data transfer of sensor, not generate Data collision, it is ensured that the integrality of function.
As shown in figure 5, the structural representation of another embodiment for a kind of sensor control of the embodiment of the present invention Figure, the apparatus may include:
First receiving module 501:For receiving the first control instruction of controller transmission;
First execution module 502:For being based on first control instruction, first kind control operation is executed;
Second receiving module 503:For receiving the second control instruction of controller transmission;
Second execution module 504:For being based on second control instruction, the control operation of the second class is executed.
As one embodiment, first control instruction includes synchronously control instruction, the first kind control operation packet Include synchronously control operation;
First execution module specifically can be used for:
It is instructed based on the synchronously control, executes corresponding synchronously control operation.
As another embodiment, the second control instruction includes:Data transfer instruction;The second class control, which operates, includes The transmission of supplemental characteristic operates;
Second execution module specifically can be used for:
Transmission instruction based on the data, get parms data;
The supplemental characteristic is sent to the controller.
In the embodiment of the present invention, each sensor can receive the first control instruction generated based on shared mark, with complete The synchronously control of pairs of each sensor.For the second control instruction of any one sensor independent identification, any one described biography Sensor can execute corresponding second class control operation.Corresponding single sensor can be controlled, by independent identification to reach Single control purpose.By being used cooperatively for shared mark and independent identification, multiple sensors or one can be controlled simultaneously One sensor of secondary control realizes different control purposes by different types of mark, to improve the control efficiency of sensor.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
As used some vocabulary to censure specific components in the specification and claims.Those skilled in the art answer It is understood that hardware manufacturer may call the same component with different nouns.This specification and claims are not with name The difference of title is as the mode for distinguishing component, but with the difference of component functionally as the criterion of differentiation.Such as logical The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit In "." substantially " refer within the acceptable error range, those skilled in the art can within a certain error range solve described in Technical problem basically reaches the technical effect.Specification subsequent descriptions are to implement the better embodiment of the application, so described Description is being not intended to limit the scope of the present application for the purpose of the rule for illustrating the application.The protection scope of the application As defined by the appended claims.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability Include, so that commodity or system including a series of elements not only include those elements, but also including not clear The other element listed, or further include for this commodity or the intrinsic element of system.In the feelings not limited more Under condition, the element that is limited by sentence "including a ...", it is not excluded that in the commodity or system for including the element also There are other identical elements.
Above description shows and describes several preferred embodiments of the present application, but as previously described, it should be understood that the application Be not limited to forms disclosed herein, should not be regarded as an exclusion of other examples, and can be used for various other combinations, Modification and environment, and the above teachings or related fields of technology or knowledge can be passed through in application contemplated scope described herein It is modified.And changes and modifications made by those skilled in the art do not depart from spirit and scope, then it all should be in this Shen It please be in the protection scope of appended claims.

Claims (10)

1. a kind of sensor control method, which is characterized in that including:
Determine the shared mark of multiple sensors and the privately owned mark of each sensor;
Based on the shared mark, the first control instruction is generated;
First control instruction is sent respectively to the multiple sensor, so that the multiple sensor is based on described first Control instruction executes first kind control operation;
Privately owned mark based on any sensor generates the second control instruction;
The second control instruction is sent to any sensor, so that any sensor is based on second control instruction Execute the control operation of the second class.
2. the method according to claim 1, wherein first control instruction includes synchronously control instruction;Institute Stating first kind control operation includes that synchronously control operates;
It is described to send first control instruction respectively to the multiple sensor, so that the multiple sensor is based respectively on First control instruction executes the first control operation:
Send synchronously control instruction respectively to the multiple sensor, with control the multiple sensor be based respectively on it is described Synchronously control instruction executes corresponding synchronously control operation.
3. the method according to claim 1, wherein second control instruction includes data transfer instruction;Institute The transmission that the control operation of the second class includes supplemental characteristic is stated to operate;
The second control instruction is sent to any sensor, so that any sensor is executed based on the second control instruction The control of second class, which operates, includes:
Data transfer instruction is sent to any sensor, is referred to so that any sensor transmits based on the data It enables, executes the transmission operation of supplemental characteristic.
4. the method according to claim 1, wherein described send described first to the multiple sensor respectively Control instruction, so that the multiple sensor is based respectively on after the first control instruction execution first kind control operation, The method also includes:
Receive the feedback letter that each sensor is generated based on the operating result of independent identification and first kind control operation Breath;
According to the feedback information, the operating result of each sensor is determined.
5. the method according to claim 1, wherein it is described to any sensor send the second control instruction, with So that any sensor is based on the second class control instruction, after executing the control operation of the second class, the method is also wrapped It includes:
Receive the feedback data that any sensor is generated based on independent identification and supplemental characteristic;
Determine the supplemental characteristic of any sensor in the feedback data.
6. a kind of sensor control method, which is characterized in that including:
Receive the first control instruction that controller is sent;
Based on first control instruction, first kind control operation is executed;
Receive the second control instruction that controller is sent;
Based on second control instruction, the control operation of the second class is executed.
7. according to the method described in claim 6, it is characterized in that, first control instruction includes synchronously control instruction, institute Stating first kind control operation includes that synchronously control operates;
Described to be based on first control instruction, executing first kind control operation includes:
It is instructed based on the synchronously control, executes corresponding synchronously control operation.
8. the method according to the description of claim 7 is characterized in that second control instruction includes:Data transfer instruction;Institute The transmission that the control operation of the second class includes supplemental characteristic is stated to operate;
Described to be based on second control instruction, executing the control operation of the second class includes:
Transmission instruction based on the data, get parms data;
The supplemental characteristic is sent to the controller.
9. a kind of sensor control, which is characterized in that including:
Determining module is identified, for determining the shared mark of multiple sensors and the privately owned mark of each sensor;
First generation module generates the first control instruction for being based on the shared mark;
First sending module, for sending first control instruction respectively to the multiple sensor, so that the multiple Sensor is based on first control instruction and executes first kind control operation;
Second generation module generates the second control instruction for the privately owned mark based on any sensor;
Second sending module, for sending the second control instruction to any sensor, so that any sensor base The control operation of the second class is executed in second control instruction.
10. a kind of sensor control, which is characterized in that including:
First receiving module, for receiving the first control instruction of controller transmission;
First execution module executes first kind control operation for being based on first control instruction;
Second receiving module, for receiving the second control instruction of controller transmission;
Second execution module executes the control operation of the second class for being based on second control instruction.
CN201810717193.0A 2018-06-29 2018-06-29 sensor control method and device Pending CN108920187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810717193.0A CN108920187A (en) 2018-06-29 2018-06-29 sensor control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810717193.0A CN108920187A (en) 2018-06-29 2018-06-29 sensor control method and device

Publications (1)

Publication Number Publication Date
CN108920187A true CN108920187A (en) 2018-11-30

Family

ID=64423407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810717193.0A Pending CN108920187A (en) 2018-06-29 2018-06-29 sensor control method and device

Country Status (1)

Country Link
CN (1) CN108920187A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114590644A (en) * 2022-04-12 2022-06-07 浙江恒强科技股份有限公司 Method and device for setting identifier of length control instrument of silk winder and silk winder

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258727A1 (en) * 2013-03-08 2014-09-11 Honeywell International Inc. System and Method of Using a Signed GUID
CN105607743A (en) * 2016-02-24 2016-05-25 北京小鸟看看科技有限公司 System based on double sets of sensors, hand-held terminal and head mount display
CN106143005A (en) * 2016-07-19 2016-11-23 汪浩 A kind of bidirectional tyre pressure monitoring system of single LF emission element

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258727A1 (en) * 2013-03-08 2014-09-11 Honeywell International Inc. System and Method of Using a Signed GUID
CN105607743A (en) * 2016-02-24 2016-05-25 北京小鸟看看科技有限公司 System based on double sets of sensors, hand-held terminal and head mount display
CN106143005A (en) * 2016-07-19 2016-11-23 汪浩 A kind of bidirectional tyre pressure monitoring system of single LF emission element

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114590644A (en) * 2022-04-12 2022-06-07 浙江恒强科技股份有限公司 Method and device for setting identifier of length control instrument of silk winder and silk winder
CN114590644B (en) * 2022-04-12 2024-04-05 浙江恒强科技股份有限公司 Method and device for setting marks of yarn winder length-fixing instrument and yarn winder

Similar Documents

Publication Publication Date Title
CN107886952B (en) Method, device and system for controlling intelligent household electrical appliance through voice and electronic equipment
JP6761134B2 (en) Processor controllers, methods and devices
CN108833237A (en) Intelligent domestic gateway and its management-control method
EP2513744A1 (en) Automatic and controllable system operation
US10805399B2 (en) Data server unit and communication system including master-slave management circuitry
US20230289198A1 (en) Configuring application scene
CN104169817B (en) Control device for controlling safety-critical processes and method for parameterizing the control device
CN105259806A (en) Controller upgrade method and system, main controller and slave controller
EP2804361B1 (en) Integrated interface system for power-system monitoring and control system
CN108920187A (en) sensor control method and device
CN114172915B (en) Message synchronization method, automatic driving system, storage medium and electronic equipment
CN110428836A (en) Internet of things equipment control method, information forwarding device and Internet of Things server
CN110486859A (en) Multi-split air conditioner and its control method, control device and readable storage medium storing program for executing
US8634325B2 (en) Tuning of industrial automation system performance based on device operating characteristics
CN111168668A (en) Robot control method and robot
CN111141015A (en) Remote air conditioner control method
CN110071948B (en) Internet of things domain control method and system and Internet of things system
CN107453844A (en) A kind of method and device of smart machine automatic network-building
CN115080771A (en) Data processing method and device based on artificial intelligence, medium and gateway equipment
CN105282647B (en) A kind of MPP speaker control method and access controller
CN104603701B (en) input and output response control setting device
CN111698331A (en) Cloud synchronization method for Internet of things management data
EP2911423A1 (en) Implementation method and device for virtual southbound interface and internet of things management platform
CN109951840A (en) A kind of more smart card extended methods and system
CN115946126B (en) Task execution control method and robot

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200609

Address after: 261031 building 10, Geer phase II Industrial Park, No. 102, Ronghua Road, Ronghua community, Xincheng street, high tech Zone, Weifang City, Shandong Province

Applicant after: Weifang goer Microelectronics Co.,Ltd.

Address before: 261031 No. 268 Dongfang Road, Weifang hi tech Industrial Development Zone, Shandong, Weifang

Applicant before: GOERTEK Inc.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20181130

RJ01 Rejection of invention patent application after publication