This invention relates generally to residential and commercial electrical power distribution panels and components, and more particularly, to a system controller including a database manager providing a database abstraction layer with query stack and caching in an electrical power distribution system.
Circuit breaker panels are used to protect electrical circuitry from damage due to an overcurrent condition, such as an overload, a relatively high level short circuit, or a ground fault condition. To perform that function, circuit breaker panels include circuit breakers that typically contain a switch unit and a trip unit. The switch unit is coupled to the electrical circuitry (i.e., lines and loads) such that it can open or close the electrical path of the electrical circuitry. The switch unit includes a pair of separable contacts per phase, a pivoting contact arm per phase, an operating mechanism, and an operating handle.
In the overcurrent condition, all the pairs of separable contacts are disengaged or tripped, opening the electrical circuitry. When the overcurrent condition is no longer present, the circuit breaker can be reset such that all the pairs of separable contacts are engaged, closing the electrical circuitry.
In addition to manual overcurrent protection via the operating handle, automatic overcurrent protection is also provided via the trip unit. The trip unit, coupled to the switch unit, senses the electrical circuitry for the overcurrent condition and automatically trips the circuit breaker. When the overcurrent condition is sensed, a tripping mechanism included in the trip unit actuates the operating mechanism, thereby disengaging the first contact from the second contact for each phase. Typically, the operating handle is coupled to the operating mechanism such that when the tripping mechanism actuates the operating mechanism to separate the contacts, the operating handle also moves to a tripped position.
Switchgear and switchboard are general terms used to refer to electrical equipment including metal enclosures that house switching and interrupting devices such as fuses, circuit breakers and relays, along with associated control, instrumentation and metering devices. The enclosures also typically include devices such as bus bars, inner connections and supporting structures (referred to generally herein as “panels”) used for the distribution of electrical power. Such electrical equipment can be maintained in a building such as a factory or commercial establishment, or it can be maintained outside of such facilities and exposed to environmental weather conditions. Typically, hinge doors or covers are provided on the front of the switchgear or switchboard sections for access to the devices contained therein.
In addition to electrical distribution and the protection of circuitry from overcurrent conditions, components have been added to panels for the control of electrical power to loads connected to circuit breakers. For example, components have been used to control electrical power for lighting.
One system used for controlling electrical power to loads utilizes a remote-operated circuit breaker system. In such a system, the switch unit of the circuit breaker operates not only in response to an overcurrent condition, but also in response to a signal received from a control unit separate from the circuit breaker. The circuit breaker is specially constructed for use as a remote-operated circuit breaker, and contains a motor for actuating the switch unit.
In an exemplary remote-operated circuit breaker system, a control unit is installed on the panel and is hard-wired to the remote-operated circuit breaker through a control bus. When the switch unit of the circuit breaker is to be closed or opened, an operating current is applied to or removed from the circuit breaker motor directly by the control panel. Additional, separate conductors are provided in the bus for feedback information such as contact confirmation, etc., for each circuit breaker position in the panel. The control unit contains electronics for separately applying and removing the operating current to the circuit breakers installed in particular circuit breaker positions in the panel. The panel control unit also has electronics for checking the state of the circuit breaker, diagnostics, etc. One advantage of that system is that the individual circuit breakers can be addressed according to their positions in the panel.
Known control units may include a user interface enabling a user to configure system operation, such as setting up panels, breakers, schedules and the like. The set up process can be time consuming and repetitive. This repetitiveness can consume system resources which further slows down the configuration process.
The present invention is directed to improvements in electrical distribution systems, such as lighting control panels
In accordance with the invention, there is provided an electrical distribution system including an integrated system controller including a database manager providing a database abstraction layer with query stack and caching.
There is disclosed in accordance with one aspect of the invention a method of requesting access to data in an electrical distribution system, comprising: providing a panel comprising a plurality of remote operated devices mounted in the panel, each remote operated device for connection in a branch circuit to a load device, and a panel controller operatively connected to each of the remote operated devices, the panel controller comprising a programmed controller for controlling operation of the remote operated devices; providing a database associated with the programmed controller storing configuration data relating to operation of the remote operated devices; and operating a database manager for accessing data in the database responsive to requests of the programmed controller, comprising storing a cache of data queries and responsive to a received request for data determining if a query relating to the received request is stored in the cache and returning the stored query, and operating the returned query to access data in the database.
It is a feature of the invention that the database manager further comprises retrieving a query from a resource if the query relating to the received request is not stored in the cache and then storing the retrieved query in the cache.
It is another feature of the invention to return the retrieved query, and operate the returned query to access data in the database.
It is a further feature of the invention to remove a least accessed query form the cache.
It is still another feature of the invention that operating the database manager further comprises providing a single resource to access data in the database and wherein operating the returned query to access data in the database comprises establishing a connection with the single resource.
It is yet another feature of the invention that the single resource allows only a single database connection at a time.
There is disclosed in accordance with another aspect of the invention a method of requesting access to data in an electrical distribution system including a panel comprising a plurality of remote operated devices mounted in the panel, each remote operated device for connection in a branch circuit to a load device, and a panel controller operatively connected to each of the remote operated devices, the panel controller comprising a programmed controller for controlling operation of the remote operated devices, the method comprising: providing a database associated with the programmed controller storing configuration data relating to operation of the remote operated devices; providing a cache of database queries; receiving a request for accessing data in the database; determining if a query relating to the received request is stored in the cache and returning the stored query; and operating the returned query to access data in the database.
There is disclosed in accordance with a further aspect of the invention an electrical distribution system including a database manager using a query stack, comprising a panel with a plurality of remote operated devices mounted in the panel. Each remote operated device is for connection in a branch circuit to a load device. A panel controller is operatively connected to each of the remote operated devices. The panel controller comprises a programmed controller for controlling operation of the remote operated devices. A database is operatively associated with the programmed controller storing configuration data relating to operation of the remote operated devices. The panel controller is programmed to implement a database manager for accessing data in the database responsive to requests of the programmed controller, comprising storing a cache of data queries and responsive to a received request for data determining if a query relating to the received request is stored in the cache and returning the stored query, and operating the returned query to access data in the database.
Further features and advantages of the invention will be readily apparent from the specification and from the drawings.
An electrical distribution system, such as an integrated lighting control system, in accordance with the invention permits a user to control power circuits typically used for lighting, as well as circuits for resistive heating or air conditioning, including an integrated system controller having a database manager providing a database abstraction layer with query stack and caching. Control may include on/off switching, dimming and metering. The electrical distribution system may be as is generally described in U.S. application Ser. No. 11/519,727, filed Sep. 12, 2006, the specification of which is incorporated by reference herein.
Referring to
For simplicity of description, when a device such as a circuit breaker 108 is described generally herein the device is referenced without any hyphenated suffix. Conversely, if a specific one of the devices is described it is referenced with a hyphenated suffix, such as 108-1.
In accordance with the invention, each load circuit to be controlled also has a remote operated device 110, such as a relay, a meter or a dimmer. The term remote operated device as used herein includes any other devices that controls, monitors or may otherwise be used in a load circuit, in accordance with the invention. While in a preferred embodiment, the remote operated device 110 is a separate component from the circuit breaker 108, the term “remote operated device” as used herein encompasses devices integral with the circuit breaker. The remote operated devices 110 are also connected to data rails 112A and 112B. A panel controller 114 controls the remote operated devices 110 through connections provided via the data rails 112A and 112B, as discussed below.
The remote operated device 110 includes a housing 110H encasing an auxiliary set of contacts that can be remotely operated to open and close a lighting circuit. The device 110 is attached to the load side of a circuit breaker 108 within a panel 100 using a conductor tab, i.e, the terminal 110A, inserted into the breaker lug 108B. The load terminal 110B comprises a lug of the same size as the breaker lug 108B for connecting to a wire to be connected to the load device. The device housing 110H is configured to mount in a Siemens type P1 panelboard, although the invention is not limited to such a configuration.
Referring to
Referring to
In one embodiment of the invention, shown in
The I/O controller 124 provides discrete inputs to the panel controller 114 from dry contact switches, such as wall switches, (not shown) which can be connected to discrete input terminals 140. The terminals 140 are organized as two inputs and a common. The inputs to the terminals 140 are detected by dry contact I/O logic 142. A selector logic block 144 generates selector line signals and serial communications to the remote operated devices 110 via the data rails 112. The logic blocks 142 and 144 are operatively associated with a microprocessor or microcontroller 146. A TP-UART integrated circuit 148 provides an EIB (European Installation Bus) interface. A connector 149 allows mating directly to the system controller 126 via a cable 150.
The system controller 126 provides the user with an application to implement lighting schedules, organize devices into logical groups, manage the inputs, and obtain status information. The system controller 126 includes a microprocessor 152 operatively connected to a touch panel user interface 154 in the form of an integrated touch screen 128 and LCD 130, see
The system controller 126 provides a User Interface application via the touch panel user interface 154 for the user to configure the system. This configuration includes setting up panels, breakers, zones, inputs, I/O mappings, schedules and overrides. This information is stored in an SQL CE (also called as SQL Mobile) database in the system controller memory 400M, including the memory 156 of
Referring again to
In accordance with the invention, a unique select line is assigned to each breaker 108/remote operated device 110 pair positioned within the lighting control panel 100. Select lines are used by the I/O controller 124 to select single remote operated devices to communicate via the serial interface trace 186. For example, when the first select line 188-1 is asserted, the first remote operated device 110-1 listens for messages on the serial interface line 186. Conversely, messages on the serial interface 186 are ignored if the first select line 188-1 is not asserted. A response by any of the remote operated devices 110 to a serial command is therefore conditional on whether its particular select line is asserted. The term “asserted”, as used herein, means one state of a signal designated to cause the remote operated device to listen for messages. In a preferred embodiment, the select line has “high” and “low” states, the high state being the asserted state.
The remote operated device 110, in the form of a relay, allows remote switching of an electrical branch load. The device 110 is designed to fit inside a standard electrical panel board with up to forty-two branch circuit breakers 108. The device 110 is an accessory to a branch circuit breaker 108 allowing repetitive switching of the load without effecting operation of the circuit breaker 108.
The CPU module 400 also includes an LCD/touch pad interface 418 for driving the user interface 154 comprising the touchscreen 128 and LCD 130, see
In order to accommodate memory requirements, a compact flash socket 422 is connected to the CPU module 400 to allow for memory expansion.
The communication from the system controller 126 to an I/O controller 124, includes configuration information such as input types, output types, input/output mapping, schedules and normal group addressing information. The system controller 126 receives status information on remote operated devices 110 from the I/O controllers 124. The system controller 126 sends on and off commands to the I/O controllers 124 using group addresses in EIB. The I/O controllers 124 send input change notices to the system controller 126 when any input changes state and reports back to the system controller 126, on request, all or part of received information, for verification.
The system controller 126 functions as the configurator and master to all of the panels 100. Apart from configuration, it also tests, diagnoses, and reports device activities for each of up to eight panels 100. The system controller software runs on a window CE operating system.
Referring to
The application layer 500 includes a user interface application 508 which is a Windows forms application which makes calls to all the business objects on an on-demand basis. This application uses the touch panel interface 154 to drive the application. The business layer 502 includes a schedule manager 510, a database (DB) manager 512, a synchronization manager 514 and a communication handler 516. Other include programs are not described in detail herein.
The schedule manager 510 runs all the time and initiates necessary events when the time to trigger reaches. This object handles all events and treats them based on whether they are scheduled events or manual events. The DB manager 512 is the central object that talks to a database 518, where as the rest of the objects in the system talk to the DB manager 510. The synchronization manager 514 is a time sync object that runs all the time and synchronizes the clocks with all of the panels 100 and the system controller 126. A communications handler 516 accepts all requests from the user interface application 508 or from other business objects, such as the schedule manager 510, and dispatches these requests to the appropriate protocol handler.
An EIB handler 520 performs the functions of taking requests from the communication handler 516 and sending them out to the EIB network 170, see
Referring to
Referring to
SQL CE is a subset of a regular SQL Server. It is limited in features and small in size to be compatible for smart device applications. One of the limitation is it does not support stored procedures. A stored procedure is a precompiled program that resides native to the database. Using stored procedures increases performance over using regular queries. To overcome this limitation, this Query Stack object is designed with caching to increase the performance. The Query Stack 534 uses caching to store the most actively used database queries. This increases performance by always keeping the most recent queries in cache 536. The maximum number of queries cached is configurable. The most recently accessed query is put in the foremost position in the stack. If the query that is requested is already in the stack it is put forward in the stack, otherwise the query is added to the stack. If the stack has already reached its maximum limit the least accessed query is forced out of the stack in order to accommodate the new query.
The data access object 532 defines the generic routines to access or modify data in the database 518. This data access object 532 is morphed to take care of the database oriented actions of the system. For example, to retrieve the location list from the database from the user interface 508, the DB manager 512 defines a function to retrieve the data with the query from the Query Stack 534 through the generic function defined by the data access object 532.
The get data function at the block 550 waits until the query is returned and then instructs the data access object to get the requested data using the returned query at a block 566. A block 568 determines if a connection to the DB singleton 530 is available. If so, then data is retrieved from the database 518 at a block 570 and returned to the block 566. The data is then provided to the requesting resource at a block 572. If the DB singleton connection is not available, then a block 574 restarts the connection and then proceeds to the block 570 to retrieve the data from the database 518, as above.
Thus, in accordance with the invention, an electrical power distribution system, such as a lighting control system, includes a system controller including a database manager providing a database abstraction layer with query stack and caching.
The present invention has been described with respect to flowcharts and block diagrams. It will be understood that each block of the flowchart and block diagrams can be implemented by computer program instructions. These program instructions may be provided to a processor to produce a machine, such that the instructions which execute on the processor create means for implementing the functions specified in the blocks. The computer program instructions may be executed by a processor to cause a series of operational steps to be performed by the processor to produce a computer implemented process such that the instructions which execute on the processor provide steps for implementing the functions specified in the blocks. Accordingly, the illustrations support combinations of means for performing a specified function and combinations of steps for performing the specified functions. It will also be understood that each block and combination of blocks can be implemented by special purpose hardware-based systems which perform the specified functions or steps, or combinations of special purpose hardware and computer instructions.
This application claims priority of provisional application No. 60/826,577 filed Sep. 22, 2006, the contents of which is incorporated by reference herein.
Number | Date | Country | |
---|---|---|---|
60826577 | Sep 2006 | US |