US20230299937A1 - Optical sensor devices and method capable of calibrating clock signal by itself when receiving one or more transmissions of specific communication signal from monitoring system - Google Patents

Optical sensor devices and method capable of calibrating clock signal by itself when receiving one or more transmissions of specific communication signal from monitoring system Download PDF

Info

Publication number
US20230299937A1
US20230299937A1 US17/695,803 US202217695803A US2023299937A1 US 20230299937 A1 US20230299937 A1 US 20230299937A1 US 202217695803 A US202217695803 A US 202217695803A US 2023299937 A1 US2023299937 A1 US 2023299937A1
Authority
US
United States
Prior art keywords
optical sensor
sensor device
clock signal
monitoring system
communication signal
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.)
Granted
Application number
US17/695,803
Other versions
US11743025B1 (en
Inventor
Chih-Huan Wu
Wen-Han Yao
Ren-Hau Gu
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.)
Pixart Imaging Inc
Original Assignee
Pixart Imaging 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 Pixart Imaging Inc filed Critical Pixart Imaging Inc
Priority to US17/695,803 priority Critical patent/US11743025B1/en
Priority to CN202210975976.5A priority patent/CN116793402A/en
Application granted granted Critical
Publication of US11743025B1 publication Critical patent/US11743025B1/en
Publication of US20230299937A1 publication Critical patent/US20230299937A1/en
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/26Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable characterised by optical transfer means, i.e. using infrared, visible, or ultraviolet light
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0075Arrangements for synchronising receiver with transmitter with photonic or optical means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G5/00Setting, i.e. correcting or changing, the time-indication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • H04Q9/04Arrangements for synchronous operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/80Arrangements in the sub-station, i.e. sensing device
    • H04Q2209/88Providing power supply at the sub-station
    • H04Q2209/883Providing power supply at the sub-station where the sensing device enters an active or inactive mode

Definitions

  • the invention relates to an optical sensing mechanism, and more particularly to an optical sensor device and a method.
  • a conventional optical sensor device's clock frequency may have a significant deviation caused by temperature or pressure variations.
  • the accuracy of the clock generator in the conventional optical sensor device will be more easily affected if the clock generator is implemented by using a low power or low-cost oscillator.
  • the significant frequency deviation may be 20 percent. This significant frequency deviation also affects other operations such as frame timings, image processing operations, timings of auto exposure operation, time of flight operation, and so on.
  • one of the objectives of the invention is to provide an optical sensor device and a method to solve the above-mentioned problems.
  • an optical sensor device comprises an oscillator circuit and a processor.
  • the oscillator circuit is used for generating a clock signal.
  • the processor is coupled to the oscillator circuit, and it is used for generating monitoring frames according to the clock signal,
  • the clock signal is calibrated in response to at least one of: a first communication signal, transmitted for multiple times from a monitoring system externally coupled to the optical sensor device, is received by the optical sensor device; a data length of the first communication signal transmitted for only one time from the monitoring system externally coupled to the optical sensor device; and, a data length of an encoded data portion of the first communication signal transmitted for only one time.
  • an optical sensor device is further disclosed.
  • the clock signal can be adjusted using different modes based on a network traffic condition of a communication protocol between the optical sensor device and a monitoring system externally coupled to the optical sensor device.
  • a method of an optical sensor device comprises: using an oscillator circuit to generate a clock signal; and generating monitoring frames according to the clock signal; wherein the clock signal is calibrated in response to at least one of: a first communication signal, transmitted for multiple times from a monitoring system externally coupled to the optical sensor device, is received by the optical sensor device; a data length of the first communication signal transmitted for only one time from the monitoring system externally coupled to the optical sensor device; and, a data length of an encoded data portion of the first communication signal transmitted for only one time.
  • FIG. 1 is a block diagram of an optical sensor device according to an embodiment of the invention.
  • FIG. 2 is a diagram showing a scenario example of the communication between the monitoring system and the optical sensor device according to an embodiment of the invention.
  • FIG. 3 is a diagram showing a scenario example of the communication between the monitoring system and the optical sensor device according to another embodiment of the invention.
  • FIG. 4 is a diagram showing a scenario example of the communication between the monitoring system and the optical sensor device according to another embodiment of the invention.
  • FIG. 5 is a diagram showing a specific packet signal of the ACK signal transmitted from the monitoring system to the optical sensor device according to another embodiment of the invention.
  • the invention aims at providing a technical solution of an optical sensor device and a corresponding method capable of dynamically determining whether to calibrate and how to calibrate an actual frequency of a clock signal generated by an oscillator comprised within the optical sensor device by using the optical sensor device itself to count at least one of the following parameters: a time interval between two or more transmissions of a specific communication signal transmitted from a monitoring system to the optical sensor device; a total transmission number of the specific communication signal transmitted by the monitoring system (i.e. a total reception number of the specific communication signal received by the optical sensor device); a data length or packet length (e.g. payload sequence) of a single one signal reception of the specific/negotiated communication signal received by the optical sensor device; and, an encoded data content length of a single one signal reception of the specific communication signal.
  • a time interval between two or more transmissions of a specific communication signal transmitted from a monitoring system to the optical sensor device a total transmission number of the specific communication signal transmitted by the monitoring system (i.e. a total reception number of the specific
  • the provided optical sensor device can be arranged to count the time length between two or more negotiated communication signals or count the data/time length of one negotiated communication signal so as to determine whether to and how to calibrate or adjust the clock signal. It is not required for a monitoring system to notify the provided optical sensor device of how to calibrate the clock signal, and the implementation of the monitoring system can become comparatively simple; thus, the provided optical sensor device can be suitable for any kinds of monitoring systems.
  • the corresponding operations are detailed in the following paragraphs.
  • FIG. 1 is a block diagram of an optical sensor device 100 according to an embodiment of the invention.
  • the optical sensor device 100 for example is used as a motion detection device or a security camera device, and it comprises an oscillator circuit 105 , a processor 110 , and other circuit component(s) such as the sensor device's pixel array 120 having multiple pixel units; the operation of the pixel array 120 is not detailed here for brevity and is not shown in FIG. 1 .
  • the optical sensor device 100 can be arranged to capture image(s), generate monitoring image (s)/frame (s) based on the capture image (s), determine whether a motion event occurs in the generated monitoring image(s), and to generate and output an alarm interrupt signal to the monitoring system 200 through the communication protocol 115 if it detects a motion event occurring in the generated monitoring image(s).
  • the alarm interrupt signal is outputted to the monitoring system 200 only when the motion event is detected.
  • the monitoring system 200 is externally coupled to the optical sensor device 100 , and it for example is a backend monitoring system which at least comprises two modes including a power saving mode (e.g. a sleep mode) and a normal operation mode. When no motion events are detected by the optical sensor device 100 , the monitoring system 200 stays in the power saving mode to save power.
  • a power saving mode e.g. a sleep mode
  • a normal operation mode e.g. a normal operation mode
  • the optical sensor device 100 sends the alarm interrupt signal to wake up the monitoring system 200 , and then the monitoring system 200 exits the power saving mode and enters the normal operation mode.
  • the monitoring system 200 is arranged to receive the alarm interrupt signal sent from the optical sensor device 100 and then to transmit an acknowledgement (ACK) signal back to the optical sensor device 100 through the communication protocol 115 so as to notify the optical sensor device 100 of that the monitoring system 200 enters the normal operation mode.
  • ACK acknowledgement
  • the optical sensor device 100 can be arranged to transmit the monitoring image(s)/frame(s) to the monitoring system 200 , and the monitoring system 200 can start a video recording operation to record and store the monitoring image(s)/frame(s) associated with the detected motion event for users; the corresponding operation is not detailed for brevity.
  • the optical sensor device 100 can communicate with the monitoring system 200 through the communication protocol 115 which can be a wired communication protocol or a wireless communication protocol.
  • the monitoring system 200 can negotiate with the optical sensor device 100 , e.g. sending information, associated with the operating frequency, clock frequency, and/or a clock period used by the monitoring system 200 , from the monitoring system 200 to the optical sensor device 100 . Then, after receiving such information, the monitoring system 200 can notify the optical sensor device 100 of successful reception information.
  • the oscillator circuit 105 for example (but not limited) may be implemented by using a low power oscillator (LPO) which consumes less/lower power and cheaper.
  • LPO low power oscillator
  • the oscillator circuit 105 can be used for generating a clock signal CLK 1 having a specific oscillation frequency into the processor 110 .
  • the processor 110 is coupled to the oscillator circuit 105 , and is arranged for controlling the pixel array 120 to capture image (s) to generate captured image(s) according to the specific oscillation frequency of the clock signal CLK 1 generated from oscillator circuit 105 , generating monitoring image(s)/frame(s) based on the capture image(s), determining whether a motion event occurs in the generated monitoring image(s), and for generating and outputting the alarm interrupt signal to the monitoring system 200 through the communication protocol 115 if detecting a motion event occurring in the generated monitoring image(s).
  • one or more captured images may be temporal differential images such as differences of images of one pixel or may be spatial differential images such as pixel differences between neighboring pixels.
  • the monitoring system 200 it comprises another oscillator 205 which can be implemented by using more complicated hardware circuit components.
  • the monitoring system 200 may be used to display a recorded video of a detected motion event for the user and can be supplied with more power.
  • the oscillator 205 can provide a comparatively precise/accurate clock signal CLK 2 having a comparatively precise/accurate oscillation frequency.
  • the monitoring system 200 operates at the comparatively precise/accurate oscillation frequency of clock signal CLK 2 .
  • the clock signal CLK 2 for example is more precise than the clock signal CLK 1 or may be more tolerable than the clock signal CLK 1 for variation(s) such as temperature variations, process variations, or pressure variations. That is, for the clock signal CLK 1 , the clock signal CLK 2 can be regarded as a precise clock signal.
  • the clock signal CLK 1 can be calibrated by the optical sensor device 100 itself in response to an event that a negotiated communication signal such as a specific communication signal that is transmitted for multiple times from the monitoring system 200 to the optical sensor device 100 .
  • the specific communication signal can be transmitted from the monitoring system 200 to the optical sensor device 100 through the communication protocol 115 for multiple times, and the multiple signal transmissions can be sent according to a specific time cycle period.
  • the specific communication signal may be the above-mentioned acknowledgement signal which is used to notify the optical sensor device 100 of that the monitoring system 200 enters or is in the normal operation mode.
  • the monitoring system 200 can be arranged to send such acknowledgement signal for two or more times at the specific time cycle period. That is, any two successive transmissions of such acknowledgement signal (i.e. the specific communication signal) is separated or spaced by a time interval which is equal to the specific time cycle period.
  • the monitoring system 200 operates at the comparatively precise/accurate clock signal CLK 2 , and thus the specific time cycle period used by the monitoring system 200 is also comparatively precise/accurate. It is assumed that the communication between the optical sensor device 100 and the monitoring system 200 is stable (i.e. no rapid and significant changes occur in the communication protocol 115 ), and the time interval between two transmissions of the monitoring system 200 , i.e. the specific time cycle period, is substantially equal or equivalent to a time interval between the signal receptions of the two transmissions received by the optical sensor device 100 .
  • the processor 110 can determine whether to calibrate or tune the oscillation frequency of clock signal CLK 1 based on the comparatively precise/accurate specific time cycle period after receiving the multiple transmissions of the specific communication signal from the monitoring system 200 .
  • a counter reference value CNTR 1 employed by the processor 110 may be determined by using the following equation:
  • CNTR 1 ⁇ 1 f 1 CNTR 2 ⁇ 1 f 2
  • f 1 indicates the target/rated oscillation frequency of clock signal CLK 1
  • f 2 indicates the target/rated oscillation frequency of clock signal CLK 2 used by the monitoring system 200
  • CNTR 2 indicates a target counted number generated by using the target oscillation frequency f 2 of clock signal CLK 2 to count the specific time cycle period (i.e. the time interval between two adjacent/successive transmissions of the specific communication signal transmitted by the monitoring system 200 )
  • CNTR 1 indicates the counter reference value (i.e.
  • the processor 110 can calculate the counter reference value CNTR 1 as indicated by the following equation:
  • CNTR 1 CNTR 2 ⁇ f 1 f 2
  • FIG. 2 is a diagram showing a scenario example of the communication between the monitoring system 200 and the optical sensor device 100 according to an embodiment of the invention.
  • the monitoring system 200 initially is in the power saving mode, and it exits the power saving mode and enters the normal operation mode once receiving the alarm interrupt signal sent from the optical sensor device 100 .
  • the monitoring system 200 then is arranged to send the specific communication signal (i.e. acknowledgement (ACK) signal) for two times back to the optical sensor device 100 , and the two transmission of the ACK signal, separated by the specific time cycle period TCP, can be used to notify the optical sensor device 100 of that the monitoring system 200 is in the normal operation mode.
  • ACK acknowledgement
  • a first transmission of the ACK signal and a second transmission of the ACK signal is spaced by a time length of the specific time cycle period TCP.
  • the optical sensor device 100 when the first transmission of the ACK signal arrives at the optical sensor device 100 , the optical sensor device 100 is arranged to receive the first transmission and is also arranged to start a specific counter to count a counted number by using the actual oscillation frequency f actual of clock signal CLK 1 . For example, the counted number is incremented by one each time when a signal edge (rising edge or falling edge) of the clock signal CLK 1 occurs.
  • the specific counter is stopped when the second transmission of the ACK signal arrives at the optical sensor device 100 .
  • the processor 110 is arranged to stop the counting of the specific counter and obtain a resultant counted number.
  • the processor 110 compares the resultant counted number with the counter reference value CNTR 1 to determine whether to adjust/tune the clock signal CLK 1 and determine how to adjust/tune the clock signal CLK 1 . For example, if the resultant counted number is smaller than a lower tolerable threshold of the counter reference value CNTR 1 , then the processor 110 can determine that a frequency deviation/offset occurs in the clock signal CLK 1 and the clock signal CLK 1 becomes slower. In this situation, the processor 110 can trigger the oscillator circuit 105 running fast to increase the oscillation frequency f actual of clock signal CLK 1 step by step so as to make a next counted number become larger than the lower tolerable threshold.
  • the processor 110 can determine that another frequency deviation/offset occurs in the clock signal CLK 1 and the clock signal CLK 1 becomes faster. In this situation, the processor 110 can trigger the oscillator circuit 105 running slowly to decrease the oscillation frequency f actual of clock signal CLK 1 step by step so as to make a next counted number become smaller than the upper tolerable threshold. If the resultant counted number is between the upper tolerable threshold and lower tolerable threshold, then the processor 110 can determine that the clock signal CLK 1 is still accurate and it is not needed to calibrate the clock signal CLK 1 at this timing.
  • the processor 110 can calculate or estimate the actual oscillation frequency f actual of clock signal CLK 1 based on the resultant counted number and the above-mentioned parameters f 1 and CNTR 1 :
  • f actual indicates the actual oscillation frequency of clock signal CLK 1 which may be calibrated by the processor 110
  • CNTR res indicates the obtained number/value of the resultant counted number.
  • the processor 110 can calculate the frequency deviation between the actual oscillation frequency f actual and the target oscillation frequency f 1 and can be arranged to determine whether to adjust or tune the actual oscillation frequency f actual of clock signal CLK 1 based on the user's requirements. For example, the processor 110 can control the oscillator circuit 105 trying to use different frequency levels so as to find a frequency level which has a comparatively smaller frequency difference compared to the target oscillation frequency f 1 .
  • the specific time cycle period TCP may be configured as the clock period corresponding to the target oscillation frequency f 2 of the clock signal CLK 2 in the monitoring system 200 .
  • the user may manually configure the parameter value of the target frequency f 2 for the setting of the optical sensor device 100 , and thus a corresponding negotiation between the system 200 and device 100 is not needed. That is, in this situation, it is not necessary for the monitoring system 200 to send information of the target frequency f 2 to the optical sensor device 100 when the optical sensor device 100 is powered up. This effectively achieves that the optical sensor device 100 can dynamically calibrate its clock signal's CLK 1 frequency by referring to only the target frequency f 2 of the monitoring system 200 .
  • the processor 110 may be arranged to perform an image calibration operation such as a de-flicker operation to compensate the flickers occurring in the images.
  • the image calibration operation's parameter(s) can be adjusted based on the calculated frequency deviation between the actual oscillation frequency f actual and the target oscillation frequency f 1 .
  • a parameter employed by the image calibration operation may be configured to be proportional or inversely proportional to the calculated frequency deviation.
  • the processor 110 may be arranged to perform a specific processing operation which may comprises a specific information value which will be affected by the above-mentioned frequency deviation.
  • the processor 110 can use the calculated frequency deviation between the actual oscillation frequency f actual and the target oscillation frequency f 1 to calibrate the specific information value. For example, a default value of a de-flicker operation may be equal to
  • the processor 110 can calibrate the value
  • the specific processing operation is not limited to the de-flicker operation and it may be associated with other kinds of operations such as a time-of-flight (TOF) calculation operation, a heart rate calculation operation, an auto exposure operation, and so on.
  • TOF time-of-flight
  • the counter reference value CNTR 1 may be a default value or a predetermined value, and it is not required for the optical sensor device 100 to negotiate with the monitoring system 200 for obtaining information to calculate the counter reference value CNTR 1 . If the counter reference value CNTR 1 is not configured, then the optical sensor device 100 is arranged to negotiate with the monitoring system 200 to determine the counter reference value CNTR 1 . For example, the above-mentioned parameters f 2 and CNTR 2 (or the specific time cycle period TCP) can be transmitted from the monitoring system 200 to the optical sensor device 100 after the negotiation.
  • An advantage of using the ACK signal as the specific communication signal and sending the ACK signal for multiple times is that it becomes simple for the monitoring system 200 to send the ACK signal for two or more times when the monitoring system 200 exits the power saving mode. It is not required implement additional circuit components and additional complicated algorithms into the monitoring system 200 .
  • another advantage is that the processor 110 can be arranged to timely calibrate the frequency of clock signal CLK 1 after receiving the ACK signal corresponding to the image flicker or the false motion event for multiple times if the image flicker or a false motion event is caused by a frequency deviation of the clock signal CLK 1 .
  • a frequency offset caused by temperature/process/pressure variation
  • the accuracy performance of captured image (s) is affected by the frequency offset and thus there is a great probability that the optical sensor device 100 may erroneously determines that a motion event frequently occurs in monitoring image (s) and then frequently sends the alarm interrupt signal to the monitoring system 200 .
  • configuring the specific communication signal as the ACK signal for one successful signal reception of the alarm interrupt signal can effectively improve the performance.
  • the calibration method/procedure is performed by the optical sensor device 100 to determine whether to calibrate and how to calibrate the clock signal CLK 1 of the oscillator circuit 105 by directly referring to the signal receptions of the ACK signal transmitted from the monitoring system 200 to the optical sensor device 100 .
  • the monitoring system 200 can be arranged to send the above-mentioned acknowledgement signal or specific communication signal to the optical sensor device 100 after receiving a control signal which is different from the above-mentioned alarm interrupt signal and can be also used to make the monitoring system 200 exist the power saving mode and enter the normal operation mode. This also obeys the spirits of the invention.
  • the specific communication signal (e.g. the ACK signal) may be transmitted by the monitoring system 200 to the optical sensor device 100 for more than two times.
  • FIG. 3 is a diagram showing a scenario example of the communication between the monitoring system 200 and the optical sensor device 100 according to another embodiment of the invention.
  • the monitoring system 200 initially is in the power saving mode, and it exits the power saving mode and enters the normal operation mode once receiving the alarm interrupt signal sent from the optical sensor device 100 .
  • the monitoring system 200 then is arranged to send the specific communication signal (i.e. acknowledgement (ACK) signal) for more than two times back to the optical sensor device 100 , and any two successive transmission of the ACK signal is separated by the specific time cycle period TCP.
  • the total number of the transmissions of the ACK signal can be a default setting or can be further negotiated and determined by the device 100 and system 200 in advance.
  • the optical sensor device 100 (or processor 110 ) starts to count a counted number by using the actual oscillation frequency f actual of clock signal CLK 1 .
  • the processor 110 stops the counting and obtains a resultant counted number. Then the processor 110 calculates an average counted number by dividing the resultant counted number with (M ⁇ 1) wherein the value M is the total number of the transmissions of the ACK signal.
  • the processor 110 compares the average counted number with the counter reference value CNTR 1 to determine whether to adjust/tune the clock signal CLK 1 and determine how to adjust/tune the clock signal CLK 1 .
  • An advantage of using the average counted number is that the resultantly counted number can be more precise.
  • the optical sensor device 100 may be arranged to negotiate with the monitoring system 200 to send multiple sets of multiple transmission of the specific communication signal such as the ACK signal when the monitoring system 200 enters or is in the normal operation mode.
  • FIG. 4 is a diagram showing a scenario example of the communication between the monitoring system 200 and the optical sensor device 100 according to another embodiment of the invention.
  • the monitoring system 200 initially is in the power saving mode, and it exits the power saving mode and enters the normal operation mode once receiving the alarm interrupt signal sent from the optical sensor device 100 .
  • the monitoring system for example sends two sets of communication signal's transmission wherein each set comprise the transmissions of the specific communication signal such as ACK signal, and in each set any two successive transmissions of the ACK signal can be separated by the specific time cycle period TCP while two transmissions of the ACK signal in different sets may be or may be not separated by the specific time cycle period TCP.
  • the total number of the transmissions of the ACK signal can be a default setting or can be further negotiated and determined by the device 100 and system 200 in advance.
  • the optical sensor device 100 when the first transmission of the ACK signal in the first set arrives at the optical sensor device 100 , the optical sensor device 100 (or processor 110 ) starts to count a counted number by using the actual oscillation frequency f actual of clock signal CLK 1 .
  • the processor 110 stops the counting and obtains a first resultant counted number.
  • the optical sensor device 100 when the first transmission of the ACK signal in the second set arrives at the optical sensor device 100 , the optical sensor device 100 (or processor 110 ) starts to count another counted number by using the actual oscillation frequency f actual of clock signal CLK 1 .
  • the processor 110 stops the counting and obtains a second resultant counted number. Then, the processor 110 can calculate an averaged counted number by averaging the first and second resultant counted numbers. The processor 110 compares the averaged counted number with the counter reference value CNTR 1 to determine whether to adjust/tune the clock signal CLK 1 and determine how to adjust/tune the clock signal CLK 1 .
  • An advantage of using the averaged counted number is that the resultantly counted number can be more precise.
  • the specific communication signal (e.g. the ACK signal (but not limited)) may be configured to be transmitted by the monitoring system 200 to the optical sensor device 100 for only one time.
  • a time length or packet length (e.g. payload sequence) of a single transmission of the ACK signal can be adjusted by the monitoring system 200 to be equal to or proportional to the specific time cycle period.
  • the processor 110 can be arranged to start another specific counter to count another counted number by using the actual oscillation frequency f actual of clock signal CLK 1 .
  • FIG. 5 is a diagram showing a specific packet signal of the ACK signal transmitted from the monitoring system 200 to the optical sensor device 100 according to another embodiment of the invention. In FIG.
  • the specific packet signal comprises a start portion S 1 , a control data portion C 1 , a data payload sequence portion P 1 , and an end portion E 1 , wherein the data payload sequence portion P 1 may comprises an encoded data portion ED 1 .
  • the optical sensor device 100 (or processor 110 ) can start to count a specific counted number when the optical sensor device 100 receives the start S 1 of the specific packet signal and the processor 110 stops the counting to obtain a resultant counted number when the optical sensor device 100 receives the end E 1 of the specific packet signal; the specific counted number is incremented by one each time when a signal edge (rising edge or falling edge) of the clock signal CLK 1 occurs. That is, in this embodiment, the processor 110 can be used to count the time length of the specific packet signal of ACK signal.
  • the optical sensor device 100 can start to count a specific counted number when the optical sensor device 100 receives a start of the data payload sequence portion P 1 and the processor 110 stops the counting to obtain a resultant counted number when the optical sensor device 100 receives an end of the data payload sequence portion P 1 . That is, the processor 110 can be arranged to count the time length of the data payload sequence portion P 1 corresponding to the ACK signal to obtain the resultant counted number so as to determine whether to and how to calibrate the frequency of clock signal CLK 1 .
  • the optical sensor device 100 may start to count a specific counted number when the optical sensor device 100 receives a start of the encoded data portion ED 1 in the data payload sequence portion P 1 and the processor 110 stops the counting to obtain a resultant counted number when the optical sensor device 100 receives an end of the encoded data portion ED 1 in the data payload sequence portion P 1 . That is, the processor 110 can be arranged to count the time length of a particular encoded data portion ED 1 generated by the monitoring system 200 to obtain the resultant counted number so as to determine whether to and how to calibrate the frequency of clock signal CLK 1 .
  • the obtained resultant counted numbers may be identical or may be equal to different values which are respectively associated with different designs negotiated by the monitoring system 200 and optical sensor device 100 .
  • the data length(s) of the specific packet signal, the data payload sequence portion P 1 , and/or the encoded data portion ED 1 may be configured to be associated with the specific time cycle period TCP.
  • either the optical sensor device 100 or the monitoring system 200 can be arranged to trigger the transmission(s) of the specific communication signal.
  • the operation of sending the specific communication signal for one or more times to determine whether to calibrate the clock signal CLK 1 may be periodically performed by the monitoring system 200 based on the user's requirements or the operation may be immediately triggered by the user.
  • the specific communication signal can be configured to be different from the above-mentioned ACK signal and may be transmitted for one or multiple times after the ACK signal has been transmitted.
  • the calibration method/procedure is triggered in response to an event of receiving the ACK signal and is performed to determine whether to calibrate and how to calibrate the clock signal CLK 1 by referring to the one or multiple transmissions of the specific communication signal without referencing the ACK signal. This modification also obeys the spirits of the invention.
  • control data portion C 1 may further comprise an information flag which is tagged by the monitoring system 200 to indicate which one of the multiple transmissions of the specific communication signal such as the ACK signal.
  • the flag can be implemented by using one bit or more bits.
  • the first transmission and second transmission of the ACK signal can be respectively tagged with different information flags such as F 1 and F 2 to indicate the second transmission corresponding to the flag F 2 is not a duplicate of the first transmission which may be repeatedly transmitted by the monitoring system 200 if the communication between the device 100 and the system 200 is not stable.
  • the more than two different transmissions of the ACK signal can be respectively tagged with different information flags.
  • the first transmission, second transmission, and the third transmission of the ACK signal in the first set can be respectively tagged with different information flags to indicate these transmissions are belonged to the first set different from the other sets and also indicate these transmissions are slightly different to each other.
  • the first transmission, second transmission, and the third transmission of the ACK signal in the second set can be respectively tagged with different information flags to indicate these transmissions are belonged to the second set different from the other sets and also indicate these transmissions are slightly different to each other.
  • a signal transmission belonging to the first set e.g. the last signal transmission of the first set, will not erroneously determined as a signal transmission in the second set.
  • the frequency of oscillator circuit 105 can be correctly calibrated. Equivalently, each tagged information flag can be used to indicate that a specific transmission of the specific communication signal corresponds to the n-th transmission in the m-th set.
  • the monitoring system 200 may be configured to have two modes wherein the monitoring system 200 in a first mode is arranged to transmit the specific communication signal for multiple times while the monitoring system 200 in a second mode is arranged to transmit the specific communication signal for only one time.
  • the monitoring system 200 can be arranged to select the first mode or the second according to a network traffic condition of the communication protocol 115 . For example, if the processor 110 determines that the communication condition is under a threshold, the processor 110 determines to use and operate in the second mode in which the clock signal CLK 1 is calibrated in response to a data length of the first communication signal transmitted for only one time from the monitoring system 200 externally coupled to the optical sensor device 100 or in response to the data length of the encoded data portion of the first communication signal transmitted for only one time.
  • the monitoring system 200 when there is a low probability that a traffic congestion will occur, uses the first mode to transmit the specific communication signal for multiple times to the optical sensor device 100 .
  • the monitoring system 200 can negotiate with the optical sensor device 100 to use the second mode to transmit the specific communication signal for only one time to the optical sensor device 100 , and the optical sensor device 100 can count the time length, packet/payload length, or a particular encoded data content length of the single one transmission of the specific communication signal. This can effectively avoid the performance of the calibration method/procedure is affected by a poor network traffic condition.
  • the above-mentioned mode selecting operation can be performed automatically or may be performed manually by the user.
  • the optical sensor device 100 when the optical sensor device 100 is installed at a location or is powered on, the optical sensor device 100 can be arranged to negotiate with the monitoring system 200 to determine which of the first and second modes is used initially.

Abstract

A method of an optical sensor device includes: using an oscillator circuit to generate a clock signal; and generating monitoring frames according to the clock signal; wherein the clock signal is calibrated in response to at least one of: a first communication signal, transmitted for multiple times from a monitoring system externally coupled to the optical sensor device, is received by the optical sensor device; a data length of the first communication signal transmitted for only one time from the monitoring system externally coupled to the optical sensor device; and, a data length of an encoded data portion of the first communication signal transmitted for only one time.

Description

    BACKGROUND OF THE INVENTION 1. Field of the Invention
  • The invention relates to an optical sensing mechanism, and more particularly to an optical sensor device and a method.
  • 2. Description of the Prior Art
  • Generally speaking, a conventional optical sensor device's clock frequency may have a significant deviation caused by temperature or pressure variations. The accuracy of the clock generator in the conventional optical sensor device will be more easily affected if the clock generator is implemented by using a low power or low-cost oscillator. For example, the significant frequency deviation may be 20 percent. This significant frequency deviation also affects other operations such as frame timings, image processing operations, timings of auto exposure operation, time of flight operation, and so on.
  • SUMMARY OF THE INVENTION
  • Therefore one of the objectives of the invention is to provide an optical sensor device and a method to solve the above-mentioned problems.
  • According to embodiments of the invention, an optical sensor device is disclosed. The optical sensor device comprises an oscillator circuit and a processor. The oscillator circuit is used for generating a clock signal. The processor is coupled to the oscillator circuit, and it is used for generating monitoring frames according to the clock signal, The clock signal is calibrated in response to at least one of: a first communication signal, transmitted for multiple times from a monitoring system externally coupled to the optical sensor device, is received by the optical sensor device; a data length of the first communication signal transmitted for only one time from the monitoring system externally coupled to the optical sensor device; and, a data length of an encoded data portion of the first communication signal transmitted for only one time.
  • According to the embodiments, an optical sensor device is further disclosed. The clock signal can be adjusted using different modes based on a network traffic condition of a communication protocol between the optical sensor device and a monitoring system externally coupled to the optical sensor device.
  • According to the embodiments, a method of an optical sensor device is disclosed. The method comprises: using an oscillator circuit to generate a clock signal; and generating monitoring frames according to the clock signal; wherein the clock signal is calibrated in response to at least one of: a first communication signal, transmitted for multiple times from a monitoring system externally coupled to the optical sensor device, is received by the optical sensor device; a data length of the first communication signal transmitted for only one time from the monitoring system externally coupled to the optical sensor device; and, a data length of an encoded data portion of the first communication signal transmitted for only one time.
  • These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a block diagram of an optical sensor device according to an embodiment of the invention.
  • FIG. 2 is a diagram showing a scenario example of the communication between the monitoring system and the optical sensor device according to an embodiment of the invention.
  • FIG. 3 is a diagram showing a scenario example of the communication between the monitoring system and the optical sensor device according to another embodiment of the invention.
  • FIG. 4 is a diagram showing a scenario example of the communication between the monitoring system and the optical sensor device according to another embodiment of the invention.
  • FIG. 5 is a diagram showing a specific packet signal of the ACK signal transmitted from the monitoring system to the optical sensor device according to another embodiment of the invention.
  • DETAILED DESCRIPTION
  • The invention aims at providing a technical solution of an optical sensor device and a corresponding method capable of dynamically determining whether to calibrate and how to calibrate an actual frequency of a clock signal generated by an oscillator comprised within the optical sensor device by using the optical sensor device itself to count at least one of the following parameters: a time interval between two or more transmissions of a specific communication signal transmitted from a monitoring system to the optical sensor device; a total transmission number of the specific communication signal transmitted by the monitoring system (i.e. a total reception number of the specific communication signal received by the optical sensor device); a data length or packet length (e.g. payload sequence) of a single one signal reception of the specific/negotiated communication signal received by the optical sensor device; and, an encoded data content length of a single one signal reception of the specific communication signal.
  • The provided optical sensor device can be arranged to count the time length between two or more negotiated communication signals or count the data/time length of one negotiated communication signal so as to determine whether to and how to calibrate or adjust the clock signal. It is not required for a monitoring system to notify the provided optical sensor device of how to calibrate the clock signal, and the implementation of the monitoring system can become comparatively simple; thus, the provided optical sensor device can be suitable for any kinds of monitoring systems. The corresponding operations are detailed in the following paragraphs.
  • FIG. 1 is a block diagram of an optical sensor device 100 according to an embodiment of the invention. The optical sensor device 100 for example is used as a motion detection device or a security camera device, and it comprises an oscillator circuit 105, a processor 110, and other circuit component(s) such as the sensor device's pixel array 120 having multiple pixel units; the operation of the pixel array 120 is not detailed here for brevity and is not shown in FIG. 1 . The optical sensor device 100 can be arranged to capture image(s), generate monitoring image (s)/frame (s) based on the capture image (s), determine whether a motion event occurs in the generated monitoring image(s), and to generate and output an alarm interrupt signal to the monitoring system 200 through the communication protocol 115 if it detects a motion event occurring in the generated monitoring image(s). The alarm interrupt signal is outputted to the monitoring system 200 only when the motion event is detected.
  • The monitoring system 200 is externally coupled to the optical sensor device 100, and it for example is a backend monitoring system which at least comprises two modes including a power saving mode (e.g. a sleep mode) and a normal operation mode. When no motion events are detected by the optical sensor device 100, the monitoring system 200 stays in the power saving mode to save power.
  • Once a motion event is detected by the optical sensor device 100, the optical sensor device 100 sends the alarm interrupt signal to wake up the monitoring system 200, and then the monitoring system 200 exits the power saving mode and enters the normal operation mode. In this situation, the monitoring system 200 is arranged to receive the alarm interrupt signal sent from the optical sensor device 100 and then to transmit an acknowledgement (ACK) signal back to the optical sensor device 100 through the communication protocol 115 so as to notify the optical sensor device 100 of that the monitoring system 200 enters the normal operation mode.
  • Then, after the optical sensor device 100 receives the ACK signal, the optical sensor device 100 can be arranged to transmit the monitoring image(s)/frame(s) to the monitoring system 200, and the monitoring system 200 can start a video recording operation to record and store the monitoring image(s)/frame(s) associated with the detected motion event for users; the corresponding operation is not detailed for brevity.
  • In addition, the optical sensor device 100 can communicate with the monitoring system 200 through the communication protocol 115 which can be a wired communication protocol or a wireless communication protocol. For example (but not limited), after the optical sensor device 100 used as the security camera is settled and powered up, the monitoring system 200 can negotiate with the optical sensor device 100, e.g. sending information, associated with the operating frequency, clock frequency, and/or a clock period used by the monitoring system 200, from the monitoring system 200 to the optical sensor device 100. Then, after receiving such information, the monitoring system 200 can notify the optical sensor device 100 of successful reception information.
  • For the optical sensor device 100, in practice, to reduce the circuit costs, the oscillator circuit 105 for example (but not limited) may be implemented by using a low power oscillator (LPO) which consumes less/lower power and cheaper. The oscillator circuit 105 can be used for generating a clock signal CLK1 having a specific oscillation frequency into the processor 110.
  • The processor 110 is coupled to the oscillator circuit 105, and is arranged for controlling the pixel array 120 to capture image (s) to generate captured image(s) according to the specific oscillation frequency of the clock signal CLK1 generated from oscillator circuit 105, generating monitoring image(s)/frame(s) based on the capture image(s), determining whether a motion event occurs in the generated monitoring image(s), and for generating and outputting the alarm interrupt signal to the monitoring system 200 through the communication protocol 115 if detecting a motion event occurring in the generated monitoring image(s). For example (but not limited), one or more captured images may be temporal differential images such as differences of images of one pixel or may be spatial differential images such as pixel differences between neighboring pixels.
  • For the monitoring system 200, it comprises another oscillator 205 which can be implemented by using more complicated hardware circuit components. For example, the monitoring system 200 may be used to display a recorded video of a detected motion event for the user and can be supplied with more power. In addition, the oscillator 205 can provide a comparatively precise/accurate clock signal CLK2 having a comparatively precise/accurate oscillation frequency. The monitoring system 200 operates at the comparatively precise/accurate oscillation frequency of clock signal CLK2. It should be noted that equivalently the clock signal CLK2 for example is more precise than the clock signal CLK1 or may be more tolerable than the clock signal CLK1 for variation(s) such as temperature variations, process variations, or pressure variations. That is, for the clock signal CLK1, the clock signal CLK2 can be regarded as a precise clock signal.
  • In this embodiment, the clock signal CLK1 can be calibrated by the optical sensor device 100 itself in response to an event that a negotiated communication signal such as a specific communication signal that is transmitted for multiple times from the monitoring system 200 to the optical sensor device 100. The specific communication signal can be transmitted from the monitoring system 200 to the optical sensor device 100 through the communication protocol 115 for multiple times, and the multiple signal transmissions can be sent according to a specific time cycle period.
  • In one embodiment, the specific communication signal may be the above-mentioned acknowledgement signal which is used to notify the optical sensor device 100 of that the monitoring system 200 enters or is in the normal operation mode. The monitoring system 200 can be arranged to send such acknowledgement signal for two or more times at the specific time cycle period. That is, any two successive transmissions of such acknowledgement signal (i.e. the specific communication signal) is separated or spaced by a time interval which is equal to the specific time cycle period.
  • The monitoring system 200 operates at the comparatively precise/accurate clock signal CLK2, and thus the specific time cycle period used by the monitoring system 200 is also comparatively precise/accurate. It is assumed that the communication between the optical sensor device 100 and the monitoring system 200 is stable (i.e. no rapid and significant changes occur in the communication protocol 115), and the time interval between two transmissions of the monitoring system 200, i.e. the specific time cycle period, is substantially equal or equivalent to a time interval between the signal receptions of the two transmissions received by the optical sensor device 100. The processor 110 can determine whether to calibrate or tune the oscillation frequency of clock signal CLK1 based on the comparatively precise/accurate specific time cycle period after receiving the multiple transmissions of the specific communication signal from the monitoring system 200.
  • For example (but not limited), a counter reference value CNTR1 employed by the processor 110 may be determined by using the following equation:
  • CNTR 1 × 1 f 1 = CNTR 2 × 1 f 2
  • wherein f1 indicates the target/rated oscillation frequency of clock signal CLK1, f2 indicates the target/rated oscillation frequency of clock signal CLK2 used by the monitoring system 200, CNTR2 indicates a target counted number generated by using the target oscillation frequency f2 of clock signal CLK2 to count the specific time cycle period (i.e. the time interval between two adjacent/successive transmissions of the specific communication signal transmitted by the monitoring system 200), and CNTR1 indicates the counter reference value (i.e. target counted number) calculated and employed by the processor 110 based on the above-mentioned parameters f1, f2, and CNTR2; that is, using a higher frequency to count during a substantially identical (or merely slightly different) time period will generate a larger counted number. The processor 110 can calculate the counter reference value CNTR1 as indicated by the following equation:
  • CNTR 1 = CNTR 2 × f 1 f 2
  • FIG. 2 is a diagram showing a scenario example of the communication between the monitoring system 200 and the optical sensor device 100 according to an embodiment of the invention. In FIG. 2 , the monitoring system 200 initially is in the power saving mode, and it exits the power saving mode and enters the normal operation mode once receiving the alarm interrupt signal sent from the optical sensor device 100. In this example, the monitoring system 200 then is arranged to send the specific communication signal (i.e. acknowledgement (ACK) signal) for two times back to the optical sensor device 100, and the two transmission of the ACK signal, separated by the specific time cycle period TCP, can be used to notify the optical sensor device 100 of that the monitoring system 200 is in the normal operation mode.
  • A first transmission of the ACK signal and a second transmission of the ACK signal is spaced by a time length of the specific time cycle period TCP. In practice, in FIG. 2 , when the first transmission of the ACK signal arrives at the optical sensor device 100, the optical sensor device 100 is arranged to receive the first transmission and is also arranged to start a specific counter to count a counted number by using the actual oscillation frequency factual of clock signal CLK1. For example, the counted number is incremented by one each time when a signal edge (rising edge or falling edge) of the clock signal CLK1 occurs. The specific counter is stopped when the second transmission of the ACK signal arrives at the optical sensor device 100. When the second transmission of the ACK signal arrives at the optical sensor device 100, the processor 110 is arranged to stop the counting of the specific counter and obtain a resultant counted number.
  • The processor 110 then compares the resultant counted number with the counter reference value CNTR1 to determine whether to adjust/tune the clock signal CLK1 and determine how to adjust/tune the clock signal CLK1. For example, if the resultant counted number is smaller than a lower tolerable threshold of the counter reference value CNTR1, then the processor 110 can determine that a frequency deviation/offset occurs in the clock signal CLK1 and the clock signal CLK1 becomes slower. In this situation, the processor 110 can trigger the oscillator circuit 105 running fast to increase the oscillation frequency factual of clock signal CLK1 step by step so as to make a next counted number become larger than the lower tolerable threshold.
  • Instead, if the resultant counted number is larger than an upper tolerable threshold of the counter reference value CNTR1, then the processor 110 can determine that another frequency deviation/offset occurs in the clock signal CLK1 and the clock signal CLK1 becomes faster. In this situation, the processor 110 can trigger the oscillator circuit 105 running slowly to decrease the oscillation frequency factual of clock signal CLK1 step by step so as to make a next counted number become smaller than the upper tolerable threshold. If the resultant counted number is between the upper tolerable threshold and lower tolerable threshold, then the processor 110 can determine that the clock signal CLK1 is still accurate and it is not needed to calibrate the clock signal CLK1 at this timing.
  • In other embodiments, after obtaining the resultant counted number, the processor 110 can calculate or estimate the actual oscillation frequency factual of clock signal CLK1 based on the resultant counted number and the above-mentioned parameters f1 and CNTR1:
  • f actual = f 1 × CNTR res CNTR 1
  • wherein factual indicates the actual oscillation frequency of clock signal CLK1 which may be calibrated by the processor 110, and CNTRres indicates the obtained number/value of the resultant counted number. Then, the processor 110 can calculate the frequency deviation between the actual oscillation frequency factual and the target oscillation frequency f1 and can be arranged to determine whether to adjust or tune the actual oscillation frequency factual of clock signal CLK1 based on the user's requirements. For example, the processor 110 can control the oscillator circuit 105 trying to use different frequency levels so as to find a frequency level which has a comparatively smaller frequency difference compared to the target oscillation frequency f1.
  • In one embodiment, the specific time cycle period TCP may be configured as the clock period corresponding to the target oscillation frequency f2 of the clock signal CLK2 in the monitoring system 200. In this example, the value CNTR2 is configured as one, and the optical sensor device 100 can calculate the counter reference value CNTR1=f1/f2 by merely based on the target frequencies f1 and f2, wherein the target frequency f2 for example may be sent from the monitoring system 200 to the optical sensor device 100 when the optical sensor device 100 is powered up. That is, it is not required for the monitoring system 200 to further send the value CNTR2. Further, in other embodiment, the user may manually configure the parameter value of the target frequency f2 for the setting of the optical sensor device 100, and thus a corresponding negotiation between the system 200 and device 100 is not needed. That is, in this situation, it is not necessary for the monitoring system 200 to send information of the target frequency f2 to the optical sensor device 100 when the optical sensor device 100 is powered up. This effectively achieves that the optical sensor device 100 can dynamically calibrate its clock signal's CLK1 frequency by referring to only the target frequency f2 of the monitoring system 200.
  • In one embodiment, the processor 110 may be arranged to perform an image calibration operation such as a de-flicker operation to compensate the flickers occurring in the images. The image calibration operation's parameter(s) can be adjusted based on the calculated frequency deviation between the actual oscillation frequency factual and the target oscillation frequency f1. For example (but not limited), a parameter employed by the image calibration operation may be configured to be proportional or inversely proportional to the calculated frequency deviation.
  • Alternatively, in one embodiment, the processor 110 may be arranged to perform a specific processing operation which may comprises a specific information value which will be affected by the above-mentioned frequency deviation. In this embodiment, the processor 110 can use the calculated frequency deviation between the actual oscillation frequency factual and the target oscillation frequency f1 to calibrate the specific information value. For example, a default value of a de-flicker operation may be equal to
  • 1 N
  • which may be changed to
  • 1 N
  • if a frequency deviation occurs, and the processor 110 can calibrate the value
  • 1 N
  • into the default value
  • 1 N .
  • It should be noted that the specific processing operation is not limited to the de-flicker operation and it may be associated with other kinds of operations such as a time-of-flight (TOF) calculation operation, a heart rate calculation operation, an auto exposure operation, and so on.
  • Further, in one embodiment, the counter reference value CNTR1 may be a default value or a predetermined value, and it is not required for the optical sensor device 100 to negotiate with the monitoring system 200 for obtaining information to calculate the counter reference value CNTR1. If the counter reference value CNTR1 is not configured, then the optical sensor device 100 is arranged to negotiate with the monitoring system 200 to determine the counter reference value CNTR1. For example, the above-mentioned parameters f2 and CNTR2 (or the specific time cycle period TCP) can be transmitted from the monitoring system 200 to the optical sensor device 100 after the negotiation.
  • An advantage of using the ACK signal as the specific communication signal and sending the ACK signal for multiple times is that it becomes simple for the monitoring system 200 to send the ACK signal for two or more times when the monitoring system 200 exits the power saving mode. It is not required implement additional circuit components and additional complicated algorithms into the monitoring system 200. In addition, another advantage is that the processor 110 can be arranged to timely calibrate the frequency of clock signal CLK1 after receiving the ACK signal corresponding to the image flicker or the false motion event for multiple times if the image flicker or a false motion event is caused by a frequency deviation of the clock signal CLK1. In one scenario example (but not limited), if a frequency offset, caused by temperature/process/pressure variation, occurs in the clock signal CLK1, then the accuracy performance of captured image (s) is affected by the frequency offset and thus there is a great probability that the optical sensor device 100 may erroneously determines that a motion event frequently occurs in monitoring image (s) and then frequently sends the alarm interrupt signal to the monitoring system 200. Thus, configuring the specific communication signal as the ACK signal for one successful signal reception of the alarm interrupt signal can effectively improve the performance. The calibration method/procedure is performed by the optical sensor device 100 to determine whether to calibrate and how to calibrate the clock signal CLK1 of the oscillator circuit 105 by directly referring to the signal receptions of the ACK signal transmitted from the monitoring system 200 to the optical sensor device 100.
  • Further, in other embodiment, the monitoring system 200 can be arranged to send the above-mentioned acknowledgement signal or specific communication signal to the optical sensor device 100 after receiving a control signal which is different from the above-mentioned alarm interrupt signal and can be also used to make the monitoring system 200 exist the power saving mode and enter the normal operation mode. This also obeys the spirits of the invention.
  • In one embodiment, the specific communication signal (e.g. the ACK signal) may be transmitted by the monitoring system 200 to the optical sensor device 100 for more than two times. FIG. 3 is a diagram showing a scenario example of the communication between the monitoring system 200 and the optical sensor device 100 according to another embodiment of the invention. In FIG. 3 , the monitoring system 200 initially is in the power saving mode, and it exits the power saving mode and enters the normal operation mode once receiving the alarm interrupt signal sent from the optical sensor device 100. In this example, the monitoring system 200 then is arranged to send the specific communication signal (i.e. acknowledgement (ACK) signal) for more than two times back to the optical sensor device 100, and any two successive transmission of the ACK signal is separated by the specific time cycle period TCP. The total number of the transmissions of the ACK signal can be a default setting or can be further negotiated and determined by the device 100 and system 200 in advance.
  • In FIG. 3 , when the first transmission of the ACK signal arrives at the optical sensor device 100, the optical sensor device 100 (or processor 110) starts to count a counted number by using the actual oscillation frequency factual of clock signal CLK1. When the last one transmission of the ACK signal arrives at the optical sensor device 100, the processor 110 stops the counting and obtains a resultant counted number. Then the processor 110 calculates an average counted number by dividing the resultant counted number with (M−1) wherein the value M is the total number of the transmissions of the ACK signal. The processor 110 compares the average counted number with the counter reference value CNTR1 to determine whether to adjust/tune the clock signal CLK1 and determine how to adjust/tune the clock signal CLK1. An advantage of using the average counted number is that the resultantly counted number can be more precise.
  • In one embodiment, the optical sensor device 100 may be arranged to negotiate with the monitoring system 200 to send multiple sets of multiple transmission of the specific communication signal such as the ACK signal when the monitoring system 200 enters or is in the normal operation mode. FIG. 4 is a diagram showing a scenario example of the communication between the monitoring system 200 and the optical sensor device 100 according to another embodiment of the invention. In FIG. 4 , the monitoring system 200 initially is in the power saving mode, and it exits the power saving mode and enters the normal operation mode once receiving the alarm interrupt signal sent from the optical sensor device 100. In this example, the monitoring system for example sends two sets of communication signal's transmission wherein each set comprise the transmissions of the specific communication signal such as ACK signal, and in each set any two successive transmissions of the ACK signal can be separated by the specific time cycle period TCP while two transmissions of the ACK signal in different sets may be or may be not separated by the specific time cycle period TCP. The total number of the transmissions of the ACK signal can be a default setting or can be further negotiated and determined by the device 100 and system 200 in advance.
  • In FIG. 4 , when the first transmission of the ACK signal in the first set arrives at the optical sensor device 100, the optical sensor device 100 (or processor 110) starts to count a counted number by using the actual oscillation frequency factual of clock signal CLK1. When the last one transmission of the ACK signal in the first arrives at the optical sensor device 100, the processor 110 stops the counting and obtains a first resultant counted number. Then, when the first transmission of the ACK signal in the second set arrives at the optical sensor device 100, the optical sensor device 100 (or processor 110) starts to count another counted number by using the actual oscillation frequency factual of clock signal CLK1. When the last one transmission of the ACK signal in the second arrives at the optical sensor device 100, the processor 110 stops the counting and obtains a second resultant counted number. Then, the processor 110 can calculate an averaged counted number by averaging the first and second resultant counted numbers. The processor 110 compares the averaged counted number with the counter reference value CNTR1 to determine whether to adjust/tune the clock signal CLK1 and determine how to adjust/tune the clock signal CLK1. An advantage of using the averaged counted number is that the resultantly counted number can be more precise.
  • In one embodiment, the specific communication signal (e.g. the ACK signal (but not limited)) may be configured to be transmitted by the monitoring system 200 to the optical sensor device 100 for only one time. In this situation, a time length or packet length (e.g. payload sequence) of a single transmission of the ACK signal can be adjusted by the monitoring system 200 to be equal to or proportional to the specific time cycle period. The processor 110 can be arranged to start another specific counter to count another counted number by using the actual oscillation frequency factual of clock signal CLK1. FIG. 5 is a diagram showing a specific packet signal of the ACK signal transmitted from the monitoring system 200 to the optical sensor device 100 according to another embodiment of the invention. In FIG. 5 , the specific packet signal comprises a start portion S1, a control data portion C1, a data payload sequence portion P1, and an end portion E1, wherein the data payload sequence portion P1 may comprises an encoded data portion ED1.
  • For example, in one embodiment, the optical sensor device 100 (or processor 110) can start to count a specific counted number when the optical sensor device 100 receives the start S1 of the specific packet signal and the processor 110 stops the counting to obtain a resultant counted number when the optical sensor device 100 receives the end E1 of the specific packet signal; the specific counted number is incremented by one each time when a signal edge (rising edge or falling edge) of the clock signal CLK1 occurs. That is, in this embodiment, the processor 110 can be used to count the time length of the specific packet signal of ACK signal.
  • Alternatively, in one embodiment, the optical sensor device 100 (or processor 110) can start to count a specific counted number when the optical sensor device 100 receives a start of the data payload sequence portion P1 and the processor 110 stops the counting to obtain a resultant counted number when the optical sensor device 100 receives an end of the data payload sequence portion P1. That is, the processor 110 can be arranged to count the time length of the data payload sequence portion P1 corresponding to the ACK signal to obtain the resultant counted number so as to determine whether to and how to calibrate the frequency of clock signal CLK1. In other embodiment, the optical sensor device 100 (or processor 110) may start to count a specific counted number when the optical sensor device 100 receives a start of the encoded data portion ED1 in the data payload sequence portion P1 and the processor 110 stops the counting to obtain a resultant counted number when the optical sensor device 100 receives an end of the encoded data portion ED1 in the data payload sequence portion P1. That is, the processor 110 can be arranged to count the time length of a particular encoded data portion ED1 generated by the monitoring system 200 to obtain the resultant counted number so as to determine whether to and how to calibrate the frequency of clock signal CLK1.
  • It should be noted in different embodiments the obtained resultant counted numbers may be identical or may be equal to different values which are respectively associated with different designs negotiated by the monitoring system 200 and optical sensor device 100. For example, the data length(s) of the specific packet signal, the data payload sequence portion P1, and/or the encoded data portion ED1 may be configured to be associated with the specific time cycle period TCP.
  • Further, in one embodiment, either the optical sensor device 100 or the monitoring system 200 can be arranged to trigger the transmission(s) of the specific communication signal. For example, the operation of sending the specific communication signal for one or more times to determine whether to calibrate the clock signal CLK1 may be periodically performed by the monitoring system 200 based on the user's requirements or the operation may be immediately triggered by the user.
  • In other embodiment, the specific communication signal can be configured to be different from the above-mentioned ACK signal and may be transmitted for one or multiple times after the ACK signal has been transmitted. In this situation, the calibration method/procedure is triggered in response to an event of receiving the ACK signal and is performed to determine whether to calibrate and how to calibrate the clock signal CLK1 by referring to the one or multiple transmissions of the specific communication signal without referencing the ACK signal. This modification also obeys the spirits of the invention.
  • Further, the control data portion C1 may further comprise an information flag which is tagged by the monitoring system 200 to indicate which one of the multiple transmissions of the specific communication signal such as the ACK signal. For example, the flag can be implemented by using one bit or more bits. For example, in FIG. 2 , the first transmission and second transmission of the ACK signal can be respectively tagged with different information flags such as F1 and F2 to indicate the second transmission corresponding to the flag F2 is not a duplicate of the first transmission which may be repeatedly transmitted by the monitoring system 200 if the communication between the device 100 and the system 200 is not stable. Similarly, in FIG. 3 , the more than two different transmissions of the ACK signal can be respectively tagged with different information flags.
  • Further, in FIG. 4 , the first transmission, second transmission, and the third transmission of the ACK signal in the first set can be respectively tagged with different information flags to indicate these transmissions are belonged to the first set different from the other sets and also indicate these transmissions are slightly different to each other. Similarly, the first transmission, second transmission, and the third transmission of the ACK signal in the second set can be respectively tagged with different information flags to indicate these transmissions are belonged to the second set different from the other sets and also indicate these transmissions are slightly different to each other. Thus, for example (but not limited), a signal transmission belonging to the first set, e.g. the last signal transmission of the first set, will not erroneously determined as a signal transmission in the second set. The frequency of oscillator circuit 105 can be correctly calibrated. Equivalently, each tagged information flag can be used to indicate that a specific transmission of the specific communication signal corresponds to the n-th transmission in the m-th set.
  • In one embodiment, the monitoring system 200 may be configured to have two modes wherein the monitoring system 200 in a first mode is arranged to transmit the specific communication signal for multiple times while the monitoring system 200 in a second mode is arranged to transmit the specific communication signal for only one time. The monitoring system 200 can be arranged to select the first mode or the second according to a network traffic condition of the communication protocol 115. For example, if the processor 110 determines that the communication condition is under a threshold, the processor 110 determines to use and operate in the second mode in which the clock signal CLK1 is calibrated in response to a data length of the first communication signal transmitted for only one time from the monitoring system 200 externally coupled to the optical sensor device 100 or in response to the data length of the encoded data portion of the first communication signal transmitted for only one time.
  • In one embodiment, when there is a low probability that a traffic congestion will occur, the monitoring system 200 in a default setting uses the first mode to transmit the specific communication signal for multiple times to the optical sensor device 100. When there is a great probability that a traffic congestion will occur or the traffic congestion has occurred, the monitoring system 200 can negotiate with the optical sensor device 100 to use the second mode to transmit the specific communication signal for only one time to the optical sensor device 100, and the optical sensor device 100 can count the time length, packet/payload length, or a particular encoded data content length of the single one transmission of the specific communication signal. This can effectively avoid the performance of the calibration method/procedure is affected by a poor network traffic condition. The above-mentioned mode selecting operation can be performed automatically or may be performed manually by the user. In addition, when the optical sensor device 100 is installed at a location or is powered on, the optical sensor device 100 can be arranged to negotiate with the monitoring system 200 to determine which of the first and second modes is used initially.
  • Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.

Claims (20)

What is claimed is:
1. An optical sensor device, comprising:
an oscillator circuit, for generating a clock signal; and
a processor, coupled to the oscillator circuit, for generating monitoring frames according to the clock signal;
wherein the clock signal is calibrated in response to at least one of: a first communication signal, transmitted for multiple times from a monitoring system externally coupled to the optical sensor device, is received by the optical sensor device; a data length of the first communication signal transmitted for only one time from the monitoring system externally coupled to the optical sensor device; and, a data length of an encoded data portion of the first communication signal transmitted for only one time.
2. The optical sensor device of claim 1, wherein the clock signal is calibrated according to a number of the transmission of the first communication signal or an interval between two transmissions of the first communication signal.
3. The optical sensor device of claim 1, wherein an interval between two transmissions of the first communication signal is equal to a specific time cycle period; the processor is arranged to use an actual frequency of the clock signal to count an interval between two receptions of the first communication signal, received by the processor, to generate a counted number; and, the processor is arranged to compare the counted number with a counter reference value to determine whether to calibrate the actual frequency of the clock signal.
4. The optical sensor device of claim 3, wherein the processor calculates an average counted number based on multiple counted numbers and compares the average counted number with the counter reference value to determine whether to calibrate the actual frequency of the clock signal.
5. The optical sensor device of claim 3, wherein the clock signal is calibrated in response to another event that a second communication signal, transmitted for multiple times from the monitoring system externally coupled to the optical sensor device, is received by the optical sensor device; a last one transmission of the first communication signal and a first one transmission of the second communication signal is separated by an interval different from the specific time cycle period.
6. The optical sensor device of claim 1, wherein the first communication signal is an acknowledgement signal sent by the monitoring system to indicate that the monitoring system exits a power saving mode and enters a normal operation mode.
7. The optical sensor device of claim 1, wherein the processor is arranged to use an actual frequency of the clock signal to count the data length of the first communication signal or the data length of the encoded data portion to generate a counted number; and, the processor is arranged to compare the counted number with a counter reference value to determine whether to calibrate the actual frequency of the clock signal.
8. An optical sensor device, comprising:
an oscillator circuit, for generating a clock signal; and
a processor, coupled to the oscillator circuit, for generating monitoring frames according to the clock signal;
wherein the clock signal is adjusted using different modes based on a network traffic condition of a communication protocol between the optical sensor device and a monitoring system externally coupled to the optical sensor device.
9. The optical sensor device of claim 8, wherein the clock signal is adjusted by using a first mode in which an actual frequency of the clock signal is calibrated in response to a signal event that a first communication signal, transmitted for multiple times from the monitoring system externally coupled to the optical sensor device, is received by the optical sensor device; and, the clock signal in the first mode is calibrated according to a number of the transmission of the first communication signal or an interval between two transmissions of the first communication signal.
10. The optical sensor device of claim 9, wherein, in the first mode, an interval between two transmissions of the first communication signal is equal to a specific time cycle period; the processor is arranged to use the actual frequency of the clock signal to count an interval between two receptions of the first communication signal, received by the processor, to generate a counted number; and, the processor is arranged to compare the counted number with a counter reference value to determine whether to calibrate the actual frequency of the clock signal.
11. The optical sensor device of claim 10, wherein the processor calculates an average counted number based on multiple counted numbers and compares the average counted number with the counter reference value to determine whether to calibrate the actual frequency of the clock signal.
12. The optical sensor device of claim 10, wherein the clock signal is calibrated in response to another event that a second communication signal, transmitted for multiple times from the monitoring system externally coupled to the optical sensor device, is received by the optical sensor device; a last one transmission of the first communication signal and a first one transmission of the second communication signal is separated by an interval different from the specific time cycle period.
13. The optical sensor device of claim 9, wherein the first communication signal is an acknowledgement signal sent by the monitoring system to indicate that the monitoring system exits a power saving mode and enters a normal operation mode.
14. The optical sensor device of claim 8, wherein the clock signal is adjusted by using a second mode in which an actual frequency of the clock signal is calibrated in response to a data length of a first communication signal transmitted for only one time from the monitoring system externally coupled to the optical sensor device or in response to a data length of an encoded data portion of the first communication signal transmitted for only one time.
15. The optical sensor device of claim 14, wherein the processor is arranged to use an actual frequency of the clock signal to count the data length of the first communication signal or the data length of the encoded data portion to generate a counted number; and, the processor is arranged to compare the counted number with a counter reference value to determine whether to calibrate the actual frequency of the clock signal.
16. The optical sensor device of claim 8, wherein the processor performs automatic switching between the first mode and the second mode according to a communication condition between the optical sensor device and the monitoring system.
17. The optical sensor device of claim 16, wherein when the processor determines that the communication condition is under a threshold, the processor determines to use and operate in the second mode in which the clock signal is calibrated in response to a data length of a first communication signal transmitted for only one time from the monitoring system externally coupled to the optical sensor device or in response to a data length of an encoded data portion of the first communication signal transmitted for only one time.
18. The optical sensor device of claim 8, wherein the processor performs a switching between the first mode and the second mode in response to an event associated with a user's manually adjustment.
19. A method of an optical sensor device, comprising:
using an oscillator circuit to generate a clock signal; and
generating monitoring frames according to the clock signal;
wherein the clock signal is calibrated in response to at least one of: a first communication signal, transmitted for multiple times from a monitoring system externally coupled to the optical sensor device, is received by the optical sensor device; a data length of the first communication signal transmitted for only one time from the monitoring system externally coupled to the optical sensor device; and, a data length of an encoded data portion of the first communication signal transmitted for only one time.
20. The method of claim 19, wherein the clock signal is calibrated according to a number of the transmission of the first communication signal or an interval between two transmissions of the first communication signal.
US17/695,803 2022-03-15 2022-03-15 Optical sensor devices and method capable of calibrating clock signal by itself when receiving one or more transmissions of specific communication signal from monitoring system Active 2042-04-06 US11743025B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/695,803 US11743025B1 (en) 2022-03-15 2022-03-15 Optical sensor devices and method capable of calibrating clock signal by itself when receiving one or more transmissions of specific communication signal from monitoring system
CN202210975976.5A CN116793402A (en) 2022-03-15 2022-08-15 Optical sensor device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US17/695,803 US11743025B1 (en) 2022-03-15 2022-03-15 Optical sensor devices and method capable of calibrating clock signal by itself when receiving one or more transmissions of specific communication signal from monitoring system

Publications (2)

Publication Number Publication Date
US11743025B1 US11743025B1 (en) 2023-08-29
US20230299937A1 true US20230299937A1 (en) 2023-09-21

Family

ID=87767283

Family Applications (1)

Application Number Title Priority Date Filing Date
US17/695,803 Active 2042-04-06 US11743025B1 (en) 2022-03-15 2022-03-15 Optical sensor devices and method capable of calibrating clock signal by itself when receiving one or more transmissions of specific communication signal from monitoring system

Country Status (2)

Country Link
US (1) US11743025B1 (en)
CN (1) CN116793402A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020152044A1 (en) * 2001-02-12 2002-10-17 Matrics, Inc. Method, system, and apparatus for remote timing calibration of a RFID tag population
JP2004020218A (en) * 2002-06-12 2004-01-22 Seiko Epson Corp Clock system, and control method for clock system
US20080192711A1 (en) * 2007-02-14 2008-08-14 Krishna Balachandran Proxy-based signaling architecture for streaming media services in a wireless communication system
JP4204341B2 (en) * 2003-02-06 2009-01-07 株式会社リコー Synchronization signal generator and image forming apparatus
US20100198992A1 (en) * 2008-02-22 2010-08-05 Randy Morrison Synchronization of audio and video signals from remote sources over the internet
JP4521800B2 (en) * 2001-07-19 2010-08-11 株式会社リコー Image forming apparatus
US20140044096A1 (en) * 2012-08-09 2014-02-13 Nvidia Corporation Reference clock calibration
US20170324537A1 (en) * 2016-05-03 2017-11-09 The Boeing Company Auto-adaptive digital clock system and method for optimizing data communications

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020152044A1 (en) * 2001-02-12 2002-10-17 Matrics, Inc. Method, system, and apparatus for remote timing calibration of a RFID tag population
JP4521800B2 (en) * 2001-07-19 2010-08-11 株式会社リコー Image forming apparatus
JP2004020218A (en) * 2002-06-12 2004-01-22 Seiko Epson Corp Clock system, and control method for clock system
JP4204341B2 (en) * 2003-02-06 2009-01-07 株式会社リコー Synchronization signal generator and image forming apparatus
US20080192711A1 (en) * 2007-02-14 2008-08-14 Krishna Balachandran Proxy-based signaling architecture for streaming media services in a wireless communication system
US20100198992A1 (en) * 2008-02-22 2010-08-05 Randy Morrison Synchronization of audio and video signals from remote sources over the internet
US20140044096A1 (en) * 2012-08-09 2014-02-13 Nvidia Corporation Reference clock calibration
US20170324537A1 (en) * 2016-05-03 2017-11-09 The Boeing Company Auto-adaptive digital clock system and method for optimizing data communications

Also Published As

Publication number Publication date
US11743025B1 (en) 2023-08-29
CN116793402A (en) 2023-09-22

Similar Documents

Publication Publication Date Title
US7362720B2 (en) Radio terminal unit and radio communication system
US8860830B2 (en) Reception device which estimates operation timing of the imaging timing
US7548519B2 (en) Mobile communication system, mobile communication method, mobile terminal and base station
US20130077549A1 (en) Integrated circuit and method with pre-beacon activation time adjustment
US9510289B1 (en) In system calibration of wake up timer
US11601832B2 (en) Method for IOT device to stagger TX and save power
US7013119B2 (en) Radio communication apparatus and its reception timing estimating method
US9055225B2 (en) Display device and display system for performing a phase adjustment for a packet
US8441525B2 (en) Method for synchronizing remote device
US11743025B1 (en) Optical sensor devices and method capable of calibrating clock signal by itself when receiving one or more transmissions of specific communication signal from monitoring system
US11218259B2 (en) Communication apparatus, method of controlling communication apparatus, and non-transitory computer-readable storage medium
US7778281B2 (en) Wireless communication apparatus
US10587783B2 (en) Image reception terminal, image communication system, image reception method, and recording medium
JP2009021888A (en) Data communication apparatus and data communication method
US11907440B2 (en) Scheme capable of dynamically adjusting sensor frame rate according to polling rate of microcontroller to avoid invalid displacement data report and to save more power
JP2007228040A (en) Pll device compatible with received packet missing
US20080107223A1 (en) Receiving apparatus for performing frequency synchonization using specific code pattern
US20080247454A1 (en) Video signal timing adjustment
JP3518982B2 (en) Packet disassembly apparatus and packet disassembly method
JP2014027616A (en) Wireless communication device, wireless communication method, and program
US11956175B1 (en) Hub station with channel switching feature
US11849416B1 (en) Methods and systems for coordinating nodes in a mesh network
NZ240288A (en) Paging receiver with battery saving: receiving call data even if sync code is missed
US9526079B1 (en) Sensing apparatus, time alignment apparatus, time processing method, and time alignment method
JP3512170B2 (en) Data processing device

Legal Events

Date Code Title Description
FEPP Fee payment procedure

Free format text: ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

STCF Information on status: patent grant

Free format text: PATENTED CASE