Voltage detection system and method
11397197 · 2022-07-26
Assignee
Inventors
Cpc classification
International classification
Abstract
A sensing device is for sensing an operating voltage of a remote device. A communications interface receives communications signals originating from the remote device over a communications bus. A data sampler takes data readings of a communications signal at a predetermined set of timing instants defined by the sensing device. A data metric (such as a duty cycle of high and low states) is obtained from the data readings and from this 5 an operating voltage of the remote device is obtained, based on a relationship between the voltage and the data metric. The invention is based on detecting timing changes which result from voltage changes. In particular, the slope of rising and falling edges of the communications signal are influenced by the voltage level, and this in turn influences the timing of high states (1s) and low states (0s).
Claims
1. A voltage sensing device for sensing an operating voltage of a remote device, comprising: a communications interface for receiving communications signals originating from the remote device over a communications bus; a timer; a data sampler for taking data readings of a communications signal at a set of timing instants defined by the timer; and a processor adapted to determine a data metric from the data readings and to determine from the data metric an operating voltage of the remote device based on a relationship between the operating voltage and the data metric.
2. The device as claimed in claim 1, wherein the communications interface is a unidirectional interface for only receiving the communications signals.
3. The device as claimed in claim 2, adapted to perform a calibration process at a known operating voltage or voltages of the remote device.
4. The device as claimed in claim 1, wherein the processor is adapted to determine an operating voltage by applying the determined data metric to a stored function or look up table representing the operating voltage-data metric characteristics of the remote device.
5. The device as claimed in claim 1, wherein the processor is adapted to filter the data readings such that the data metric is derived from data readings which all relate to: a 01 transition; or a 10 transition; or either of a 10 and 01 transition, of the communications signal.
6. The device as claimed in claim 1, wherein the data metric comprises a duty cycle of 1 and 0 values of the communications signal.
7. The device as claimed in claim 1, wherein the timer as a clock frequency higher than the bit frequency of the communications signal, for example in the range 2 to 10 times the clock frequency.
8. The control system for a lighting system, comprising: a lighting system controller; and a voltage sensing device as claimed in claim 1.
9. The lighting system, comprising: a control system as claimed in claim 8; and a set of luminaires which are connected to the control system by the communications bus.
10. A voltage sensing method for sensing an operating voltage of a remote device using a voltage sensing device, comprising: receiving a communications signal originating from the remote device over a communications bus; taking data readings of the communications signal at a set of timing instants defined by a timer of the voltage sensing device; and determining a data metric from the data readings and determining an operating voltage of the remote device based on a relationship between the operating voltage and the data metric.
11. A method as claimed in claim 10, comprising receiving the communications signal over a unidirectional interface.
12. The computer program comprising code means which is adapted, when said program is run on a computer, to implement the method of claim 11.
13. The method as claimed in claim 10, further comprising performing a calibration process at a known operating voltage or voltages of the remote device.
14. The method as claimed in claim 10, comprising filtering the data readings such that the data metric is determined from data readings which all relate to: a 01 transition; or a 10 transition; or either of a 10 and 01 transition, of the communications signal.
15. The method as claimed in claim 10, wherein the data metric comprises the duty cycle of 1 and 0 values of the communications signal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Examples of the invention will now be described in detail with reference to the accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DETAILED DESCRIPTION OF THE EMBODIMENTS
(12) The invention provides a sensing device for sensing an operating voltage of a remote device. A communications interface receives communications signals originating from the remote device over a communications bus. A data sampler takes data readings of a communications signal at a predetermined set of timing instants defined by the sensing device. A data metric (such as a duty cycle of high states and low states) is obtained from the data readings and from this an operating voltage of the remote device is obtained, based on a relationship between the voltage and the data metric. The invention is based on detecting timing changes which result from voltage changes. In particular, the slope of rising and falling edges of the communications signal are influenced by the voltage level, and this in turn influences the timing of high states (1s) and low states (0s).
(13)
(14) In one example, the overall system is a lighting system, in which the central control device is a main (upstream) lighting controller and the remote load devices are luminaires.
(15) The luminaires typically receive power from a local power supply rather than over a cable from the central controller. This reduces material cost and prevents power loss caused by long power cables. As a result of the different power supply used by the upstream and downstream units, the downstream voltage is unknown to the upstream side.
(16) The downstream component typically comprises a microcontroller formed using millions of MOSFETs (Metal-Oxide Semiconductor Field-Effect Transistors). Approximately, the microcontroller communications interface may be regarded as a MOSFET circuit with an equivalent circuit as shown in
(17) Assuming that the gate threshold voltage (at which the MOSFET will turn on) is Vtrig, then the quantity of electric charge is:
Q=Cj*Vtrig=I*t
(18) Cj is a capacitance representing junction capacitances in the device.
(19) Since I=V(t)/R, t=Q*R/V(t).
(20) Thus, there is an inverse relation between t and V. A higher voltage means a small rise time (a steeper rise slope) of the gate voltage Vg, which changes the duration t of a high output signal Vout.
(21) A line communication signal comprises a series of signal pulses at a fixed frequency. As shown in
(22) The duration of the pulse signal changes from t1 to t2 (as can be understood from
(23) The applicant has proposed (but not yet published) an approach by which a voltage sensing device is based on the measurement of time intervals associated with a chain of repeated communications. The operating voltage of the remote device influences the rise time and fall times of signals sent by the remote device as explained above, and these differences in edge slopes of the signals influence the points in time at which signals are detected at the receiving end. By measuring a time interval associated with a number of repeated sequential communications between the central controller 1 and the remote load device 2, it becomes possible to measure very small time interval values, which for example result from small changes in voltage. The approach does not need modification to the hardware of the remote device, since it simply relies on communication with the remote device, for example a response to a ping message sent from the central controller to the remote load device. The operating voltage of the remote device is thus determined without any change in the existing product, in particular with no additional voltage sensor and associated circuits. The voltage sensing function is instead implemented based on signal communications and statistical analysis.
(24)
(25) The communications bus 7 functions in conventional manner, so that no special communications protocols are required between the central control device 1 and the remote load device 2.
(26) Instead, a voltage sensing device 50 is provided in the form of a small microcontroller unit (MCU) system with a communication interface 52 and a signal measurement and processing unit 54 which is connected to communication bus 7. The voltage sensing device 50 operates in a passive mode, that is, it just “listens” and analyzes the digital (voltage) communications signal from the remote load device (e.g. luminaire) but does not send any signal. It is termed a “voltage sensing device” in that it senses, albeit indirectly, the voltage of the remote load device. The processing performed by the signal measurement and processing unit 54 involves determining a data metric. This is information obtained from the data signal on the communications bus (i.e. bit stream voltage levels) which is influenced by the timing at the remote load device. Using a suitable algorithm, the desired voltage information of the remote load device can be derived.
(27) As will be clear from the description below, the voltage sensing device 50 does not need to perform accurate timing measurements. Rather, it performs data (i.e. voltage) measurement at particular timing instants. Furthermore, these voltage measurements are of a binary bit sequence, so that high accuracy analog circuitry is not needed.
(28) The voltage sensing device function can be merged with the central control device 1 as shown in
(29)
(30) The processor may then further process the data metric to obtain a voltage value which represents the operating voltage of the remote load device. For this purpose, the determined data metric may be used as input to a stored function or to a look up table representing the operating voltage-data metric characteristics of the remote device.
(31) Although the signal variance is of a nanosecond time level, the need for a very high frequency clock (such as gigahertz clock) is avoided. Generally, the timer clock may be only slightly faster than the clock in the remote load device 2. For example, it may be a 300 kHz clock for the example of communications signal at 115.200 kHz. Higher timer frequencies may be used for improved performance. Thus, there is a trade-off between performance and cost, but the invention can be implemented with a timer clock which is only marginally faster than the clock frequency of the signals carried by the communications bus 7.
(32) A simple communication interface 52 is used to monitor the signal on the communication bus 7. It works in a “listen” only mode only with two functions: one is impedance matching to avoid signal interference when the voltage sensing device 50 is connected to the communication bus 7, and the other is to implement address decoding.
(33) Since the communication signal may come from different remote load devices, the signals are screened so that only the signal from the remote load device being analyzed is detected. The address decoder thus enables signals from unmatched devices to be ignored, and the voltage sensing device 50 functions only when it receives a signal from the desired remote load device.
(34) To measure the time variance of the communication signal, a special algorithm based on probability and statistic theory is used.
(35) The timer clock signal of the signal measurement and processing unit 54 should not be synchronized with the communication signal from remote load device. In this way, it is stochastic for the communication signal when the signal measurement and processing unit 54 starts working.
(36)
(37) The top plot 80 shows the clock signal for the timer 70 of the signal measurement and processing unit 54. A communication signal is detected at timing instants 0, T, 2T and 3T of the timer clock signal. In this example, the period T is five times the timer clock period, and it corresponds approximately to one bit period of the communications signal. The bottom plot shows the communications signal 82. The level is detected at timing instants 84. The phases of the communication signal at these times are Θ.sub.0, Θ.sub.1, Θ.sub.2 . . . etc. Because the signals are non-synchronous, the phase Θ can be any value within range of [0,360° ] according to probability theory.
(38) At the time instants 0, T, 2T, 3T . . . , the signal measurement and processing unit 54 reads its I/O pin status which is determined by communication signal. That is, it detects the signal (voltage) level of the communication signal 82 at the time instants 84, i.e. 0, T, 2T, 3T . . . etc.
(39) After thousands of operations, a table results which shows how many times a data “1” was detected and how many times a data “0” was detected at those time instants. In the short example of
(40) For example, the following tables may result after repeating measurements 10,000 times at two different times:
(41) Remote load device test at first time
(42) TABLE-US-00001 Level High “1” Low “0” Times 4600 5400
(43) Remote load device test at second time
(44) TABLE-US-00002 Level High “1” Low “0” Times 4820 5180
(45) These two examples have duty cycle of the “1” period of 0.460 and 0.482. This duty cycle is a “data metric” in that it is a value which is derived from the data values (1s and 0s) on the communications bus 7.
(46) This difference in duty cycle can then be used to derive the voltage change at the remote load device and in turn a temperature measurement may be obtained.
(47) This statistical analysis will now be discussed further.
(48) With reference to
(49) The operating voltage of the voltage sensing device is assumed to be fixed and stable. A calibration is also carried out before the voltage measurement. The calibration is used to set the downstream voltage to a known value so that a reference duty cycle can be measured at the voltage sensing device 50. Time variance caused by an unstable downstream voltage can then be measured in the manner explained above.
(50) The sequence of measurements (at time 0, T, 2T, etc.) of the communications signal forms a measurement period. The period can be based on any received message which is sent from the downstream load device onto the bus.
(51) The example of
(52) The measurement period T is shown in
(53)
(54) By analyzing timing of at a large number of timing instants, a statistically significant set is obtained. There are at least ten timing instants recorded, more preferably at least one hundred and even more preferably 1000 or more readings at sequential time instants.
(55)
(56) This may automatically be the case for some encoding schemes, i.e. the data format of the communications signal may already have equal numbers of 1s and 0s. However, to enable any communications signal to be tolerated, a data-cleaning process may be applied.
(57) The signal measurement unit 74 outputs a set of 0 readings and 1 readings. From this set, only readings which relate to a 01 transition may be passed to the processor 76 for the subsequent statistical analysis. Thus, data collected be the signal measurement unit is only validated if when the communication signal pattern is “01”. In this way, a data filtering function is implemented. If a measured signal level is “0”, then the next status of the communications signal must be level “1”. Similarly, if the measured signal level is “1”, the previous status of the communications signal must be “0”. In this way, the validated collected data is from a data set with an equal number of 1s and 0s. Thus, if the on and off periods are equal for the communications signal, the duty cycle would be 50%. Changes in the relative durations of the on and off periods will change this duty cycle from 50%.
(58) Of course, the same approach may be based on a 10 transition, or indeed data may be validated if it relates to a 01 transition or a 10 transition.
(59) In this way, the processor is adapted to filter the data readings such that the data metric is derived from data readings which all relate to a 01 transition or a 10 transition (or either of them) of the communications signal.
(60) By having the measurement period T longer than the communications signal bit period, it is known that each 01 (or 10) transition is sampled only once. Thus, each measurement is a unique measurement for a single 01 (or 10) transition, ensuring that the full data set which has been validated is based on an equal number of 1s and 0s.
(61) As mentioned above, a calibration stage is first carried out. As a minimum, the calibration takes place at a known voltage at the remote load device. However, it may involve taking measurements at two or more known voltages.
(62) At the (or each) calibration voltage a number of steps are carried out:
(63) Step 1: The voltage is controlled at the remote load device.
(64) Step 2: The remote load device sends a message.
(65) Step 3: The voltage sensing device 50 performs its measurements.
(66) Step 4: The voltage sensing device 50 stores calibration data in a register for further calculation.
(67) This calibration does not need any involvement of the central control unit. It just needs the remote device to have a controlled voltage, and to be triggered (as part of the installation/commissioning process) to send a message.
(68) After the calibration, the system is ready for use.
(69) This involves performing a voltage measurement, namely when there is an unknown voltage at the downstream (remote load) side.
(70) This involves the voltage sensing device listening for communications from the particular remote load unit, and it then performs the signal measurements.
(71) The measured duty cycle is then converted into a time delay. The relationship between the two is explained with reference to
(72) A function of operating voltage versus time delay is based on factory information about the specific device, namely the specific device (e.g. part number) combined with the process technology used.
(73) The calibration step enables the voltage versus time penalty function (known from the manufacturer) to be correctly mapped to the actual device, based on one (or more) known points along that function. Deviations from that known point are measured, so that all fixed delays within the system are compensated.
(74) A timing determination at the voltage sensing device is thus able to determine a voltage at the remote unit.
(75) It has been shown that the approach above enables the time change to be distinguished with nanosecond accuracy even with a low frequency clock in the voltage sensing device. A low clock frequency can be used by taking measurements over a longer time period. There is thus a compromise between clock frequency and measurement duration.
(76) The method described above basically detects timing changes which take place at the remote device. A supply voltage change causes rise times (and/or fall times) to change, which in turn are detected as changes in the data metric. Other changes may also provide timing changes. For example, timing changes will result if there are variations in frequency at the remote device. These may be brought about by temperature fluctuations. Such temperature fluctuations are generally smaller and slower than fluctuations caused by voltage.
(77) Thus, the data metric may be processed further in order to ensure voltage changes are responsible, for example by applying high pass filtering.
(78) Voltage fluctuations may be discriminated from other fluctuations. As explained above, the voltage changes cause a duty cycle change at the output voltage signal although the frequency (period) is the same as before. Frequency changes (for example caused by temperature) will instead maintain the same duty cycle. Thus temperature induced changes may be discriminated from voltage induced changes.
(79)
(80) In step 90, a communications signal is received originating from the remote device over a communications bus.
(81) In step 92 data readings of the communications signal are taken at a set of timing instants defined by a timer of the voltage sensing device.
(82) In step 94 a data metric is obtained from the data readings.
(83) In step 96 an operating voltage of the remote device is determined based on a relationship between the operating voltage and the data metric.
(84) The method may include a calibration step 98 in which the remote device is known to be at a particular voltage. This provides reference information for calibrating the subsequent voltage measurements.
(85) The system described above makes use of a processor 76 for processing data to determine the voltage.
(86)
(87) The computer 100 includes, but is not limited to, PCs, workstations, laptops, PDAs, palm devices, servers, storages, and the like. Generally, in terms of hardware architecture, the computer 100 may include one or more processors 101, memory 102, and one or more I/O devices 103 that are communicatively coupled via a local interface (not shown). The local interface can be, for example but not limited to, one or more buses or other wired or wireless connections, as is known in the art. The local interface may have additional elements, such as controllers, buffers (caches), drivers, repeaters, and receivers, to enable communications. Further, the local interface may include address, control, and/or data connections to enable appropriate communications among the aforementioned components. The processor 101 is a hardware device for executing software that can be stored in the memory 102. The processor 101 can be virtually any custom made or commercially available processor, a central processing unit (CPU), a digital signal processor (DSP), or an auxiliary processor among several processors associated with the computer 100, and the processor 101 may be a semiconductor based microprocessor (in the form of a microchip) or a microprocessor.
(88) The memory 102 can include any one or combination of volatile memory elements (e.g., random access memory (RAM), such as dynamic random access memory (DRAM), static random access memory (SRAM), etc.) and non-volatile memory elements (e.g., ROM, erasable programmable read only memory (EPROM), electronically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), tape, compact disc read only memory (CD-ROM), disk, diskette, cartridge, cassette or the like, etc.). Moreover, the memory 102 may incorporate electronic, magnetic, optical, and/or other types of storage media. Note that the memory 102 can have a distributed architecture, where various components are situated remote from one another, but can be accessed by the processor 101.
(89) The software in the memory 102 may include one or more separate programs, each of which comprises an ordered listing of executable instructions for implementing logical functions. The software in the memory 102 includes a suitable operating system (O/S) 104, compiler 105, source code 106, and one or more applications 107 in accordance with exemplary embodiments.
(90) The application 107 comprises numerous functional components such as computational units, logic, functional units, processes, operations, virtual entities, and/or modules.
(91) The operating system 104 controls the execution of computer programs, and provides scheduling, input-output control, file and data management, memory management, and communication control and related services.
(92) Application 107 may be a source program, executable program (object code), script, or any other entity comprising a set of instructions to be performed. When a source program, then the program is usually translated via a compiler (such as the compiler 105), assembler, interpreter, or the like, which may or may not be included within the memory 102, so as to operate properly in connection with the operating system 104. Furthermore, the application 107 can be written as an object oriented programming language, which has classes of data and methods, or a procedure programming language, which has routines, subroutines, and/or functions, for example but not limited to, C, C++, C #, Pascal, BASIC, API calls, HTML, XHTML, XML, ASP scripts, JavaScript, FORTRAN, COBOL, Perl, Java, ADA, .NET, and the like.
(93) The I/O devices 103 may include input devices such as, for example but not limited to, a mouse, keyboard, scanner, microphone, camera, etc. Furthermore, the I/O devices 103 may also include output devices, for example but not limited to a printer, display, etc. Finally, the I/O devices 103 may further include devices that communicate both inputs and outputs, for instance but not limited to, a network interface controller (NIC) or modulator/demodulator (for accessing remote devices, other files, devices, systems, or a network), a radio frequency (RF) or other transceiver, a telephonic interface, a bridge, a router, etc. The I/O devices 103 also include components for communicating over various networks, such as the Internet or intranet.
(94) When the computer 100 is in operation, the processor 101 is configured to execute software stored within the memory 102, to communicate data to and from the memory 102, and to generally control operations of the computer 100 pursuant to the software. The application 107 and the operating system 104 are read, in whole or in part, by the processor 101, perhaps buffered within the processor 101, and then executed.
(95) When the application 107 is implemented in software it should be noted that the application 107 can be stored on virtually any computer readable medium for use by or in connection with any computer related system or method. In the context of this document, a computer readable medium may be an electronic, magnetic, optical, or other physical device or means that can contain or store a computer program for use by or in connection with a computer related system or method.
(96) While the invention has been illustrated and described in detail in the drawings and foregoing description, such illustration and description are to be considered illustrative or exemplary and not restrictive; the invention is not limited to the disclosed embodiments.
(97) Other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word “comprising” does not exclude other elements or steps, and the indefinite article “a” or “an” does not exclude a plurality. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measured cannot be used to advantage. Any reference signs in the claims should not be construed as limiting the scope.