US20110172857A1 - Model train control system - Google Patents

Model train control system Download PDF

Info

Publication number
US20110172857A1
US20110172857A1 US13/053,564 US201113053564A US2011172857A1 US 20110172857 A1 US20110172857 A1 US 20110172857A1 US 201113053564 A US201113053564 A US 201113053564A US 2011172857 A1 US2011172857 A1 US 2011172857A1
Authority
US
United States
Prior art keywords
command
program
commands
model railroad
digital
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.)
Abandoned
Application number
US13/053,564
Inventor
Matthew A. Katzer
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to US13/053,564 priority Critical patent/US20110172857A1/en
Publication of US20110172857A1 publication Critical patent/US20110172857A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01BCABLES; CONDUCTORS; INSULATORS; SELECTION OF MATERIALS FOR THEIR CONDUCTIVE, INSULATING OR DIELECTRIC PROPERTIES
    • H01B7/00Insulated conductors or cables characterised by their form
    • H01B7/0009Details relating to the conductive cores
    • H01B7/0018Strip or foil conductors
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63HTOYS, e.g. TOPS, DOLLS, HOOPS OR BUILDING BLOCKS
    • A63H19/00Model railways
    • A63H19/24Electric toy railways; Systems therefor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63HTOYS, e.g. TOPS, DOLLS, HOOPS OR BUILDING BLOCKS
    • A63H19/00Model railways
    • A63H19/30Permanent way; Rails; Rail-joint connections
    • A63H19/32Switches or points; Operating means therefor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63HTOYS, e.g. TOPS, DOLLS, HOOPS OR BUILDING BLOCKS
    • A63H30/00Remote-control arrangements specially adapted for toys, e.g. for toy vehicles
    • A63H30/02Electrical arrangements
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01BCABLES; CONDUCTORS; INSULATORS; SELECTION OF MATERIALS FOR THEIR CONDUCTIVE, INSULATING OR DIELECTRIC PROPERTIES
    • H01B7/00Insulated conductors or cables characterised by their form
    • H01B7/009Cables with built-in connecting points or with predetermined areas for making deviations
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01BCABLES; CONDUCTORS; INSULATORS; SELECTION OF MATERIALS FOR THEIR CONDUCTIVE, INSULATING OR DIELECTRIC PROPERTIES
    • H01B7/00Insulated conductors or cables characterised by their form
    • H01B7/08Flat or ribbon cables
    • H01B7/0807Twin conductor or cable

Definitions

  • the present invention relates to a system for controlling a model railroad.
  • Model railroads have traditionally been constructed with of a set of interconnected sections of train track, electric switches between different sections of the train track, and other electrically operated devices, such as train engines and draw bridges.
  • Train engines receive their power to travel on the train track by electricity provided by a controller through the track itself.
  • the speed and direction of the train engine is controlled by the level and polarity, respectively, of the electrical power supplied to the train track.
  • the operator manually pushes buttons or pulls levers to cause the switches or other electrically operated devices to function, as desired.
  • Such model railroad sets are suitable for a single operator, but unfortunately they lack the capability of adequately controlling multiple trains independently.
  • such model railroad sets are not suitable for being controlled by multiple operators, especially if the operators are located at different locations distant from the model railroad, such as different cities.
  • a digital command control (DDC) system has been developed to provide additional controllability of individual train engines and other electrical devices.
  • a digital command station (DCS) is electrically connected to the train track to provide a command in the form of a set of encoded digital bits to a particular device that includes a digital decoder.
  • the digital command station is typically controlled by a personal computer.
  • a suitable standard for the digital command control system is the NMRA DCC Standards, issued March 1997, and is incorporated herein by reference. While providing the ability to individually control different devices of the railroad set, the DCC system still fails to provide the capability for multiple operators to control the railroad devices, especially if the operators are remotely located from the railroad set and each other.
  • DigiToys Systems of Lawrenceville, Ga. has developed a software program for controlling a model railroad set from a remote location.
  • the software includes an interface which allows the operator to select desired changes to devices of the railroad set that include a digital decoder, such as increasing the speed of a train or switching a switch.
  • the software issues a command locally or through a network, such as the internet, to a digital command station at the railroad set which executes the command.
  • the protocol used by the software is based on Cobra from Open Management Group where the software issues a command to a communication interface and awaits confirmation that the command was executed by the digital command station. When the software receives confirmation that the command executed, the software program sends the next command through the communication interface to the digital command station.
  • the technique used by the software to control the model railroad is analogous to an inexpensive printer where commands are sequentially issued to the printer after the previous command has been executed.
  • commands are sequentially issued to the printer after the previous command has been executed.
  • the response of the model railroad to the operator appears slow, especially over a distributed network such as the internet.
  • One technique to decrease the response time is to use high-speed network connections but unfortunately such connections are expensive.
  • the present invention overcomes the aforementioned drawbacks of the prior art, in a first aspect, by providing a system for operating a digitally controlled model railroad that includes transmitting a first command from a first client program to a resident external controlling interface through a first communications transport.
  • a second command is transmitted from a second client program to the resident external controlling interface through a second communications transport.
  • the first command and the second command are received by the resident external controlling interface which queues the first and second commands.
  • the resident external controlling interface sends third and fourth commands representative of the first and second commands, respectively, to a digital command station for execution on the digitally controlled model railroad.
  • Incorporating a communications transport between the multiple client program and the resident external controlling interface permits multiple operators of the model railroad at locations distant from the physical model railroad and each other.
  • the operators In the environment of a model railroad club where the members want to simultaneously control devices of the same model railroad layout, which preferably includes multiple trains operating thereon, the operators each provide commands to the resistant external controlling interface, and hence the model railroad.
  • queuing by commands at a single resident external controlling interface permits controlled execution of the commands by the digitally controlled model railroad, would may otherwise conflict with one another.
  • the first command is selectively processed and sent to one of a plurality of digital command stations for execution on the digitally controlled model railroad based upon information contained therein.
  • the second command is also selectively processed and sent to one of the plurality of digital command stations for execution on the digitally controlled model railroad based upon information contained therein.
  • the resident external controlling interface also preferably includes a command queue to maintain the order of the commands.
  • the command queue also allows the sharing of multiple devices, multiple clients to communicate with the same device (locally or remote) in a controlled manner, and multiple clients to communicate with different devices.
  • the command queue permits the proper execution in the cases of: (1) one client to many devices, (2) many clients to one device, and (3) many clients to many devices.
  • the first command is transmitted from a first client program to a first processor through a first communications transport.
  • the first command is received at the first processor.
  • the first processor provides an acknowledgement to the first client program through the first communications transport indicating that the first command has properly executed prior to execution of commands related to the first command by the digitally controlled model railroad.
  • the communications transport is preferably a COM or DCOM interface.
  • the model railroad application involves the use of extremely slow real-time interfaces between the digital command stations and the devices of the model railroad.
  • the resident external controller interface receives the command and provides an acknowledgement to the client program in a timely manner before the execution of the command by the digital command stations. Accordingly, the execution of commands provided by the resident external controlling interface to the digital command stations occur in a synchronous manner, such as a first-in-first-out manner.
  • the COM and DOOM communications transport between the client program and the resident external controlling interface is operated in an asynchronous manner, namely providing an acknowledgement thereby releasing the communications transport to accept further communications prior to the actual execution of the command.
  • FIG. 1 is a block diagram of an exemplary embodiment of a model train control system.
  • FIG. 2 is a more detailed block diagram of the model train control system of FIG. 1 including external device control logic.
  • FIG. 3 is a block diagram of the external device control logic of FIG. 2 .
  • FIG. 4 is an illustration of a track and signaling arrangement.
  • FIG. 5 is an illustration of a manual block signaling arrangement.
  • FIG. 6 is an illustration of a track circuit.
  • FIGS. 7A and 7B are illustrations of block signaling and track capacity.
  • FIG. 8 is an illustration of different types of signals.
  • FIGS. 9A and 9B are illustrations of speed signaling in approach to a junction.
  • FIG. 10 is a further embodiment of the system including a dispatcher.
  • a model train control system 10 includes a communications transport 12 interconnecting a client program 14 and a resident external controlling interface 16 .
  • the client program 14 executes on the model railroad operator's computer and may include any suitable system to permit the operator to provide desired commands to the resident external controlling interface 16 .
  • the client program 14 may include a graphical interface representative of the model railroad layout where the operator issues commands to the model railroad by making changes to the graphical interface.
  • the client program 14 also defines a set of Application Programming Interfaces (API's), described in detail later, which the operator accesses using the graphical interface or other programs such as Visual Basic, C++, Java, or browser based applications, There may be multiple client programs interconnected with the resident external controlling interface 16 so that multiple remote operators may simultaneously provide control commands to the model railroad.
  • API's Application Programming Interfaces
  • the communications transport 12 provides an interface between the client program 14 and the resident external controlling interface 16 .
  • the communications transport 12 may be any suitable communications medium for the transmission of data, such as the internet, local area network, satellite links, or multiple processes operating on a single computer.
  • the preferred interface to the communications transport 12 is a COM or DCOM interface, as developed for the Windows operating system available from Microsoft Corporation.
  • the communications transport 12 also determines if the resident external controlling interface 16 is system resident or remotely located on an external system.
  • the communications transport 12 may also use private or public communications protocol as a medium for communications.
  • the client program 14 provides commands and the resident external controlling interface 16 responds to the communications transport 12 to exchange information.
  • a description of COM (common object model) and DCOM (distributed common object model) is provided by Chappel in a book entitled Understanding ActiveX and OLE, Microsoft Press, and is incorporated by reference herein.
  • Incorporating a communications transport 12 between the client program(s) 14 and the resident external controlling interface 16 permits multiple operators of the model railroad at locations distant from the physical model railroad and each other.
  • the operators In the environment of a model railroad club where the members want to simultaneously control devices of the same model railroad layout, which preferably includes multiple trains operating thereon, the operators each provide commands to the resistant external controlling interface, and hence the model railroad.
  • the manner in which commands are executed for the model railroad under COM and DCOM may be as follows,
  • the client program 14 makes requests in a synchronous manner using COM/DCOM to the resident external interface controller 16 .
  • the synchronous manner of the request is the technique used by COM and DCOM to execute commands.
  • the communications transport 12 packages the command for the transport mechanism to the resident external controlling interface 16 .
  • the resident external controlling interface 16 then passes the command to the digital command stations 18 which in turn executes the command.
  • an acknowledgement is passed back to the resident external controlling interface 16 which in turn passes an acknowledgement to the client program 14 .
  • the communications transport 12 is again available to accept another command.
  • the train control system 10 without more, permits execution of commands by the digital command stations 18 from multiple operators, but like the DigiToys Systems' software the execution of commands is slow.
  • the present inventor came to the realization that unlike traditional distributed systems where the commands passed through a communications transport are executed nearly instantaneously by the server and then an acknowledgement is returned to the client, the model railroad application involves the use of extremely slow real-time interfaces between the digital command stations and the devices of the model railroad.
  • the present inventor came to the further realization that in order to increase the apparent speed of execution to the client, other than using high-speed communication interfaces, the resident external controller interface 16 should receive the command and provide an acknowledgement to the client program 12 in a timely manner before the execution of the command by the digital command stations 18 . Accordingly, the execution of commands provided by the resident external controlling interface 16 to the digital command stations 18 occur in a synchronous manner, such as a first-in-first-out manner.
  • the COM and DCOM communications transport 12 between the client program 14 and the resident external controlling interface 16 is operated in an asynchronous manner, namely providing an acknowledgement thereby releasing the communications transport 12 to accept further communications prior to the actual execution of the command.
  • the combination of the synchronous and the asynchronous data communication for the commands provides the benefit that the operator considers the commands to occur nearly instantaneously while permitting the resident external controlling interface 16 to verify that the command is proper and cause the commands to execute in a controlled manner by the digital command stations 18 , all without additional high-speed communication networks.
  • there is no motivation to provide an acknowledgment prior to the execution of the command because the command executes quickly and most commands are sequential in nature.
  • the client program 14 sends a command over the communications transport 12 that is received by an asynchronous command processor 100 .
  • the asynchronous command processor 100 queries a local database storage 102 to determine if it is necessary to package a command to be transmitted to a command queue 104 .
  • the local database storage 102 primarily contains the state of the devices of the model railroad, such as for example, the speed of a train, the direction of a train, whether a draw bridge is up or down, whether a light is turned on or off, and the configuration of the model railroad layout.
  • the asynchronous command processor 100 retrieves such information from the local database storage 102 and provides the information to an asynchronous response processor 106 .
  • the asynchronous response processor 106 then provides a response to the client program 14 indicating the state of the device and releases the communications transport 12 for the next command.
  • the asynchronous command processor 100 also verifies, using the configuration information in the local database storage 102 , that the command received is a potentially valid operation. If the command is invalid, the asynchronous command processor 100 provides such information to the asynchronous response processor 106 , which in turn returns an error indication to the client program 14 .
  • the asynchronous command processor 100 may determine that the necessary information is not contained in the local database storage 102 to provide a response to the client program 14 of the device state or that the command is a valid action. Actions may include, for example, an increase in the train's speed, or turning on/off of a device. In either case, the valid unknown state or action command is packaged and forwarded to the command queue 104 . The packaging of the command may also include additional information from the local database storage 102 to complete the client program 14 request, if necessary.
  • the asynchronous command processor 100 provides a command to the asynchronous request processor 106 to provide a response to the client program 14 indicating that the event has occurred, even though such an event has yet to occur on the physical railroad layout.
  • the combination of the asynchronous command processor 100 and the asynchronous response processor 106 both verifies the validity of the command and provides a response to the client program 14 thereby freeing up the communications transport 12 for additional commands.
  • the response to the client program 14 would be, in many circumstances, delayed thereby resulting in frustration to the operator that the model railroad is performing in a slow and painstaking manner. In this manner, the railroad operation using the asynchronous interface appears to the operator as nearly instantaneously responsive.
  • Each command in the command queue 104 is fetched by a synchronous command processor 110 and processed.
  • the synchronous command processor 110 queries a controller database storage 112 for additional information, as necessary, and determines if the command has already been executed based on the state of the devices in the controller database storage 112 . In the event that the command has already been executed, as indicated by the controller database storage 112 , then the synchronous command processor 110 passes information to the command queue 104 that the command has been executed or the state of the device.
  • the asynchronous response processor 106 fetches the information from the command cue 104 and provides a suitable response to the client program 14 , if necessary, and updates the local database storage 102 to reflect the updated status of the railroad layout devices.
  • the external device control logic 114 processes the command from the synchronous command processor 110 and issues appropriate control commands to the interface of the particular external device 116 to execute the command on the device and ensure that an appropriate response was received in response.
  • the external device is preferably a digital command control device that transmits digital commands to decoders using the train track. There are several different manufacturers of digital command stations, each of which has a different set of input commands, so each external device is designed for a particular digital command station. In this manner, the system is compatible with different digital command stations.
  • the digital command stations 18 of the external devices 116 provide a response to the external device control logic 114 which is checked for validity and identified as to which prior command it corresponds to so that the controller database storage 112 may be updated properly.
  • the process of transmitting commands to and receiving responses from the external devices 116 is slow.
  • the synchronous command processor 110 is notified of the results from the external control logic 114 and, if appropriate, forwards the results to the command queue 104 .
  • the asynchronous response processor 100 clears the results from the command queue 104 and updates the local database storage 102 and sends an asynchronous response to the client program 14 , if needed.
  • the response updates the client program 14 of the actual state of the railroad track devices, if changed, and provides an error message to the client program 14 if the devices actual state was previously improperly reported or a command did not execute properly.
  • the use of two separate database storages provides a performance enhancement by a fast acknowledgement to the client program 14 using the local database storage 102 and thereby freeing up the communications transport 12 for additional commands.
  • the number of commands forwarded to the external device control logic 114 and the external devices 116 which are relatively slow to respond, is minimized by maintaining information concerning the state and configuration of the model railroad.
  • the use of two separate database tables 102 and 112 allows more efficient multi-threading on multi-processor computers.
  • the command queue 104 is implemented as a named pipe, as developed by Microsoft for Windows.
  • the queue 104 allows both portions to be separate from each other, where each considers the other to be the destination device.
  • the command queue maintains the order of operation which is important to proper operation of the system.
  • the use of a single command queue 104 allows multiple instant rations of the asynchronous functionality, with one for each different client.
  • the single command queue 104 also allows the sharing of multiple devices, multiple clients to communicate with the same device (locally or remote) in a controlled manner, and multiple clients to communicate with different devices.
  • the command queue 104 permits the proper execution in the cases of: (1) one client to many devices, (2) many clients to one device, and (3) many clients to many devices.
  • the present inventor came to the realization that the digital command stations provided by the different vendors have at least three different techniques for communicating with the digital decoders of the model railroad set.
  • the first technique generally referred to as a transaction (one or more operations), is a synchronous communication where a command is transmitted, executed, and a response is received therefrom prior to the transmission of the next sequentially received command.
  • the DCS may execute multiple commands in this transaction.
  • the second technique is a cache with out of order execution where a command is executed and a response received therefrom prior to the execution of the next command, but the order of execution is not necessarily the same as the order that the commands were provided to the command station.
  • the third technique is a local-area-network model where the commands are transmitted and received simultaneously.
  • the LAN model there is no requirement to wait until a response is received for a particular command prior to sending the next command. Accordingly, the LAN model may result in many commands being transmitted by the command station that have yet to be executed. In addition, some digital command stations use two or more of these techniques.
  • an external command processor 200 receives the validated command from the synchronous command processor 110 .
  • the external command processor 200 determines which device the command should be directed to, the particular type of command it is, and builds state information for the command.
  • the state information includes, for example, the address, type, port, variables, and type of commands to be sent out.
  • the state information includes a command set for a particular device on a particular port device.
  • a copy of the original command is maintained for verification purposes.
  • the constructed command is forwarded to the command sender 202 which is another queue, and preferably a circular queue.
  • the command sender 202 receives the command and transmits commands within its queue in a repetitive nature until the command is removed from its queue.
  • a command response processor 204 receives all the commands from the command stations and passes the commands to the validation function 206 .
  • the validation function 206 compares the received command against potential commands that are in the queue of the command sender 202 that could potentially provide such a result.
  • the validation function 206 determines one of four potential results from the comparison. First, the results could be simply bad data that is discarded. Second, the results could be partially executed commands which are likewise normally discarded. Third, the results could be valid responses but not relevant to any command sent. Such a case could result from the operator manually changing the state of devices on the model railroad or from another external device, assuming a shared interface to the DCS.
  • the results are validated and passed to the result processor 210 .
  • the results could be valid responses relevant to a command sent.
  • the corresponding command is removed from the command sender. 202 and the results passed to the result processor 210 .
  • the commands in the queue of the command sender 202 are retransmitted a predetermined number of times, then if error still occurs the digital command station is reset, which if the error still persists then the command is removed and the operator is notified of the error.
  • the digital command stations 18 program the digital devices, such as a locomotive and switches, of the railroad layout.
  • a locomotive may include several different registers that control the horn, how the light blinks, speed curves for operation, etc. In many such locomotives there are 106 or more programable values. Unfortunately, it may take 1-10 seconds per byte wide word if a valid register or control variable (generally referred to collectively as registers) and two to four minutes to error out if an invalid register to program such a locomotive or device, either of which may contain a decoder. With a large number of byte wide words in a locomotive its takes considerable time to fully program the locomotive.
  • the present inventor came to the realization that for the operation of a model railroad the anticipated state of the individual devices of the railroad, as programmed, should be maintained during the use of the model railroad and between different uses of the model railroad.
  • the software may determine which commands need to be sent to one or more of the digital command stations 18 of the model railroad.
  • the time necessary to program the railroad layout is substantially reduced. For example, if the command would duplicate the current state of the device then no command needs to be forwarded to the digital command stations 18 . This prevents redundantly programming the devices of the model railroad, thereby freeing up the operation of the model railroad for other activities.
  • the system of the present invention may encounter “conflicting” commands that attempt to write to and read from the devices of the model railroad.
  • the “conflicting” commands may inadvertently program the same device in an inappropriate manner, such as the locomotive to speed up to maximum and the locomotive to stop.
  • a user that desires to read the status of the entire model railroad layout will monopolize the digital decoders and command stations for a substantial time, such as up to two hours, thereby preventing the enjoyment of the model railroad for the other users.
  • a user that programs an extensive number of devices will likewise monopolize the digital decoders and command stations for a substantial time thereby preventing the enjoyment of the model railroad for other users.
  • the write cache contains those commands yet to be programmed by the digital command stations 18 . Valid commands from each user are passed to a queue in the write cache. In the event of multiple commands from multiple users (depending on user permissions and security) or the same user for the same event or action, the write cache will concatenate the two commands into a single command to be programmed by the digital command stations 18 . In the event of multiple commands from multiple users or the same user for different events or actions, the write cache will concatenate the two commands into a single command to be programmed by the digital command stations 18 . The write cache may forward either of the commands, such as the last received command, to the digital command station. The users are updated with the actual command programmed by the digital command station, as necessary.
  • the read cache contains the state of the different devices of the model railroad. After a command has been written to a digital device and properly acknowledged, if necessary, the read cache is updated with the current state of the model railroad. In addition, the read cache is updated with the state of the model railroad when the registers of the devices of the model railroad are read. Prior to sending the commands to be executed by the digital command stations 18 the data in the write cache is compared against the data in the read cache. In the event that the data in the read cache indicates that the data in the write cache does not need to be programmed, the command is discarded. In contrast, if the data in the read cache indicates that the data in the write cache needs to be programmed, then the command is programmed by the digital command station.
  • the read cache After programming the command by the digital command station the read cache is updated to reflect the change in the model railroad. As becomes apparent, the use of a write cache and a read cache permits a decrease in the number of registers that need to be programmed, thus speeding up the apparent operation of the model railroad to the operator.
  • the present inventor further determined that errors in the processing of the commands by the railroad and the initial unknown state of the model railroad should be taken into account for a robust system.
  • the state of the relevant data of the read cache is marked as unknown.
  • the unknown state merely indicates that the state of the register has some ambiguity associated therewith.
  • the unknown state may be removed by reading the current state of the relevant device or the data rewritten to the model railroad without an error occurring.
  • the command may be re-transmitted to the digital command station in an attempt to program the device properly. If desirable, multiple commands may be automatically provided to the digital command stations to increase the likelihood of programming the appropriate registers.
  • the initial state of a register is likewise marked with an unknown state until data becomes available regarding its state.
  • the commands to be executed by the digital command stations 18 they are preferably first checked against the read cache, as previously mentioned. In the event that the read cache indicates that the state is unknown, such as upon initialization or an error, then the command should be sent to the digital command station because the state is not known. In this manner the state will at least become known, even if the data in the registers is not actually changed.
  • the present inventor further determined a particular set of data that is useful for a complete representation of the state of the registers of the devices of the model railroad.
  • An invalid representation of a register indicates that the particular register is not valid for both a read and a write operation. This permits the system to avoid attempting to read from and write to particular registers of the model railroad. This avoids the exceptionally long error out when attempting to access invalid registers.
  • An in use representation of a register indicates that the particular register is valid for both a read and a write operation. This permits the system to read from and write to particular registers of the model railroad. This assists in accessing valid registers where the response time is relatively fast.
  • a read error (unknown state) representation of a register indicates that each time an attempt to read a particular register results in an error.
  • a read dirty representation of a register indicates that the data in the read cache has not been validated by reading its valid from the decoder. If both the read error and the read dirty representations are clear then a valid read from the read cache may be performed. A read dirty representation may be cleared by a successful write operation, if desired.
  • a read only representation indicates that the register may not be written to. If this flag is set then a write error may not occur.
  • a write error (unknown state) representation of a register indicates that each time an attempt to write to a particular register results in an error.
  • a write dirty representation of a register indicates that the data in the write cache has not been written to the decoder yet. For example, when programming the decoders the system programs the data indicated by the write dirty. If both the write error and the write dirty representations are clear then the state is represented by the write cache. This assists in keeping track of the programming without excess overhead.
  • a write only representation indicates that the register may not be read from. If this flag is set then a read error may not occur.
  • the system constructs a set of representations of the model railroad devices and the model railroad itself indicating the invalid registers, read errors, and write errors which may increases the efficiently of programming and changing the states of the model railroad. This permits the system to avoid accessing particular registers where the result will likely be an error.
  • the present inventor came to the realization that the valid registers of particular devices is the same for the same device of the same or different model railroads. Further, the present inventor came to the realization that a template may be developed for each particular device that may be applied to the representations of the data to predetermine the valid registers. In addition, the template may also be used to set the read error and write error, if desired.
  • the template may include any one or more of the following representations, such as invalid, in use, read error, write only, read dirty, read only, write error, and write dirty for the possible registers of the device.
  • the predetermination of the state of each register of a particular device avoids the time consuming activity of receiving a significant number of errors and thus constructing the caches. It is to be noted that the actual read and write cache may be any suitable type of data structure.
  • FIG. 4 illustrates the organization of train dispatching by “timetable and train order” (T&TO) techniques.
  • T&TO timetable and train order
  • Many of the rules governing T&TO operation are related to the superiority of trains which principally is which train will take siding at the meeting point. Any misinterpretation of these rules can be the source of either hazard or delay. For example, misinterpreting the rules may result in one train colliding with another train.
  • T&TO operation must rely upon time spacing and flag protection to keep each train a sufficient distance apart. For example, a train may not leave a station less than five minutes after the preceding train has departed. Unfortunately, there is no assurance that such spacing will be retained as the trains move along the line, so the flagman (rear brakeman) of a train slowing down or stopping will light and throw off a five-minute red flare which may not be passed by the next train while lit. If a train has to stop, a flagman trots back along the line with a red flag or lantern a sufficient distance to protect the train, and remains there until the train is ready to move at which time he is called back to the train. A flare and two track torpedoes provide protection as the flagman scrambles back and the train resumes speed. While this type of system works, it depends upon a series of human activities.
  • Block signal systems prevent a train from ramming the train ahead of it by dividing the main line into segments, otherwise known as blocks, and allowing only one train in a block at a time, with block signals indicating whether or not the block ahead is occupied.
  • the signals are set by a human operator. Before clearing the signal, he must verify that any train which has previously entered the block is now clear of it, a written record is kept of the status of each block, and a prescribed procedure is used in communicating with the next operator. The degree to which a block frees up operation depends on whether distant signals (as shown in FIG. 5 ) are provided and on the spacing of open stations, those in which an operator is on duty. If as is usually the case it is many miles to the next block station and thus trains must be equally spaced. Nevertheless, manual block does afford a high degree of safety.
  • ABS automatic block signals
  • the track circuit's key feature is that it is fail-safe. As can be seen in FIG. 6 , if the battery or any wire connection fails, or a rail is broken, the relay can't pick up, and a clear signal will not be displayed.
  • the track circuit is also an example of what is designated in railway signaling practice as a vital circuit, one which can give an unsafe indication if some of its components malfunction in certain ways.
  • the track circuit is fail-safe, but it could still give a false clear indication should its relay stick in the closed or picked-up position.
  • Vital circuit relays therefore, are built to very stringent standards: they are large devices; rely on gravity (no springs) to drop their armature; and use special non-loading contacts which will not stick together if hit by a large surge of current (such as nearby lightning).
  • the principal improvement in the basic circuit has been to use slowly-pulsed DC so that the relay drops out and must be picked up again continually when a block is unoccupied. This allows the use of a more sensitive relay which will detect a train, but additionally work in track circuits twice as long before leakage between the rails begins to threaten reliable relay operation.
  • FIGS. 7A and 7B the situations determining the minimum block length for the standard two-block, three-indication ABS system. Since the train may stop with its rear car just inside the rear boundary of a block, a following train will first receive warning just one block-length away. No allowance may be made for how far the signal indication may be seen by the engineer. Swivel block must be as long as the longest stopping distance for any train on the route, traveling at its maximum authorized speed.
  • the three-block, four-indication signaling shown in FIG. 7 reduces the excess train spacing by 50%. with warning two blocks to the rear and signal spacing need be only 1 ⁇ 2 the braking distance. In particularly congested areas such as downgrades where stopping distances are long and trains are likely to bunch up, four-block, four-indication signaling may be provided and advanced approach, approach medium, approach and stop indications give a minimum of three-block warning, allowing further block-shortening and keeps things moving.
  • FIG. 8 uses aspects of upper quadrant semaphores to illustrate block signaling. These signals use the blade rising 90 degrees to give the clear indication.
  • FIG. 8 Some of the systems that are currently developed by different railroads are shown in FIG. 8 .
  • a railroad is free to establish the simplest and most easily maintained system of aspects and indications that will keep traffic moving safely and meet any special requirements due to geography, traffic pattern, or equipment.
  • aspects such as flashing yellow for approach medium, for example, may be used to provide an extra indication without an extra signal head. This is safe because a stuck flasher will result in either a steady yellow approach or a more restrictive light-out aspect.
  • FIGS. 9A and 9B show typical signal aspects and indications as they would appear to an engineer.
  • route locking is used to insure that nothing can be changed to reduce the route's speed capability from the time the train approaching it is admitted to enter until it has cleared the last switch.
  • Additional refinements to the basic system to speed up handling trains in rapid sequence include sectional route locking which unlocks portions of the route as soon as the train has cleared so that other routes can be set up promptly.
  • Interlocking signals also function as block signals to provide rear-end protection.
  • an automatic interlocking can respond to the approach of a train by clearing the route if there are no opposing movements cleared or in progress. Automatic interlocking returns everything to stop after the train has passed.
  • the movement of multiple trains among the track potentially involves a series of interconnected activities and decisions which must be performed by a controller, such as a dispatcher.
  • a controller such as a dispatcher.
  • the dispatcher controls the operation of the trains and permissions may be set by computer control, thereby controlling the railroad.
  • the dispatcher fails to obey the rules as put in place, traffic collisions may occur.
  • the controller In the context of a model railroad the controller is operating a model railroad layout including an extensive amount of track, several locomotives (trains), and additional functionality such as switches.
  • the movement of different objects, such as locomotives and entire trains, may be monitored by a set of sensors.
  • the operator issues control commands from his computer console, such as in the form of permissions and class warrants for the time and track used.
  • a single operator from a single terminal may control the system effectively.
  • the present inventor has observed that in a multi-user environment where several clients are attempting to simultaneously control the same model railroad layout using their terminals, collisions periodically nevertheless occur.
  • significant delay is observed between the issuance of a command and its eventual execution.
  • the present inventor has determined that unlike full scale railroads where the track is controlled by a single dispatcher, the use of multiple dispatchers each having a different dispatcher console may result in conflicting information being sent to the railroad layout.
  • the system is designed as a computer control system to implement commands but in no manner can the dispatcher consoles control the actions of users. For example, a user input may command that an event occur resulting in a crash.
  • a user may override the block permissions or class warrants for the time and track used thereby causing a collision.
  • two users may inadvertently send conflicting commands to the same or different trains thereby causing a collision.
  • each user is not aware of the intent and actions of other users aside from any feedback that may be displayed on their terminal.
  • the feedback to their dispatcher console may be delayed as the execution of commands issued by one or more users may take several seconds to several minutes to be executed.
  • the client program 14 preferably includes a control panel 300 which provides a graphical interface (such as a personal computer with software thereon or a dedicated hardware source) for computerized control of the model railroad 302 .
  • the graphical interface may take the form of those illustrated in FIGS. 5-9 , or any other suitable command interface to provide control commands to the model railroad 302 .
  • Commands are issued by the client program 14 to the controlling interface using the control panel 300 .
  • the commands are received from the different client programs 14 by the controlling interface 16 .
  • the commands control the operation of the model railroad 302 , such as switches, direction, and locomotive throttle. Of particular importance is the throttle which is a state which persists for an indefinite period of time, potentially resulting in collisions if not accurately monitored.
  • the controlling interface 16 accepts all of the commands and provides an acknowledgment to free up the communications transport for subsequent commands.
  • the acknowledgment may take the form of a response indicating that the command was executed thereby updating the control panel 300 .
  • the response may be subject to updating if more data becomes available indicating the previous response is incorrect.
  • the command may have yet to be executed or verified by the controlling interface 16 .
  • the controlling interface 16 passes the command (in a modified manner, if desired) to a dispatcher controller 310 .
  • the dispatcher controller 310 includes a rule-based processor together with the layout of the railroad 302 and the status of objects thereon.
  • the objects may include properties such as speed, location, direction, length of the train, etc.
  • the dispatcher controller 310 processes each received command to determine if the execution of such a command would violate any of the rules together with the layout and status of objects thereon. If the command received is within the rules, then the command may be passed to the model railroad 302 for execution. If the received command violates the rules, then the command may be rejected and an appropriate response is provided to update the clients display. If desired, the invalid command may be modified in a suitable manner and still be provided to the model railroad 302 . In addition, if the dispatcher controller 310 determines that an event should occur, such as stopping a model locomotive, it may issue the command and update the control panels 300 accordingly. If necessary, an update command is provided to the client program 14 to show the update that occurred.
  • the controlling interface 16 may accept the command, validate it quickly by the dispatcher controller, and provide an acknowledgment to the client program 14 . In this manner, the client program 14 will not require updating if the command is not valid. In a likewise manner, when a command is valid the control panel 300 of all client programs 14 should be updated to show the status of the model railroad 302 .
  • a manual throttle 320 may likewise provide control over devices, such as the locomotive, on the model railroad 302 .
  • the commands issued by the manual throttle 320 may be passed first to the dispatcher controller 310 for validation in a similar manner to that of the client programs 14 .
  • commands from the manual throttle 320 may be directly passed to the model railroad 302 without first being validated by the dispatcher controller 302 .
  • a response will be provided to the controlling interface 16 which in response may check the suitability of the command, if desired. If the command violates the layout rules then a suitable correctional command is issued to the model railroad 302 . If the command is valid then no correctional command is necessary. In either case, the status of the model railroad 302 is passed to the client programs 14 (control panels 300 ).
  • the event driven dispatcher controller 310 maintains the current status of the model railroad 302 so that accurate validation may be performed to minimize conflicting and potentially damaging commands.
  • the control panel 300 is updated in a suitable manner, but in most cases, the communication transport 12 is freed up prior to execution of the command by the model railroad 302 .
  • the computer dispatcher may also be distributed across the network, if desired.
  • the computer architecture described herein supports different computer interfaces at the client program 14 .

Abstract

A system which operates a digitally controlled model railroad transmitting a first command from a first client program to a resident external controlling interface through a first communications transport. A second command is transmitted from a second client program to the resident external controlling interface through a second communications transport. The first command and the second command are received by the resident external controlling interface which queues the first and second commands. The resident external controlling interface sends third and fourth commands representative of the first and second commands, respectively, to a digital command station for execution on the digitally controlled model railroad.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • This application is a continuation of U.S. patent application Ser. No. 11/981,263, filed Oct. 30, 2007, which is a continuation of U.S. patent application Ser. No. 11/607,233, filed Dec. 1, 2006, which is a continuation of U.S. patent application Ser. No. 11/375,794, filed Mar. 14, 2006, now U.S. Pat. No. 7,209,812, which is a continuation of U.S. patent application Ser. No. 10/989,815, filed Nov. 16, 2004, now U.S. Pat. No. 7,177,733, which is a continuation of U.S. patent application Ser. No. 10/713,476, filed Nov. 14, 2003, now U.S. Pat. No. 6,909,945, which is a continuation of U.S. patent application Ser. No. 09/311,936, filed May 14, 1999, now U.S. Pat. No. 6,676,089, which is a continuation of U.S. patent application Ser. No. 09/104,461, filed Jun. 24, 1998, now U.S. Pat. No. 6,065,406.
  • BACKGROUND OF THE INVENTION
  • The present invention relates to a system for controlling a model railroad.
  • Model railroads have traditionally been constructed with of a set of interconnected sections of train track, electric switches between different sections of the train track, and other electrically operated devices, such as train engines and draw bridges. Train engines receive their power to travel on the train track by electricity provided by a controller through the track itself. The speed and direction of the train engine is controlled by the level and polarity, respectively, of the electrical power supplied to the train track. The operator manually pushes buttons or pulls levers to cause the switches or other electrically operated devices to function, as desired. Such model railroad sets are suitable for a single operator, but unfortunately they lack the capability of adequately controlling multiple trains independently. In addition, such model railroad sets are not suitable for being controlled by multiple operators, especially if the operators are located at different locations distant from the model railroad, such as different cities.
  • A digital command control (DDC) system has been developed to provide additional controllability of individual train engines and other electrical devices. Each device the operator desires to control, such as a train engine, includes an individually addressable digital decoder. A digital command station (DCS) is electrically connected to the train track to provide a command in the form of a set of encoded digital bits to a particular device that includes a digital decoder. The digital command station is typically controlled by a personal computer. A suitable standard for the digital command control system is the NMRA DCC Standards, issued March 1997, and is incorporated herein by reference. While providing the ability to individually control different devices of the railroad set, the DCC system still fails to provide the capability for multiple operators to control the railroad devices, especially if the operators are remotely located from the railroad set and each other.
  • DigiToys Systems of Lawrenceville, Ga. has developed a software program for controlling a model railroad set from a remote location. The software includes an interface which allows the operator to select desired changes to devices of the railroad set that include a digital decoder, such as increasing the speed of a train or switching a switch. The software issues a command locally or through a network, such as the internet, to a digital command station at the railroad set which executes the command. The protocol used by the software is based on Cobra from Open Management Group where the software issues a command to a communication interface and awaits confirmation that the command was executed by the digital command station. When the software receives confirmation that the command executed, the software program sends the next command through the communication interface to the digital command station. In other words, the technique used by the software to control the model railroad is analogous to an inexpensive printer where commands are sequentially issued to the printer after the previous command has been executed. Unfortunately, it has been observed that the response of the model railroad to the operator appears slow, especially over a distributed network such as the internet. One technique to decrease the response time is to use high-speed network connections but unfortunately such connections are expensive.
  • What is desired, therefore, is a system for controlling a model railroad that effectively provides a high-speed connection without the additional expense associated therewith.
  • BRIEF SUMMARY OF THE INVENTION
  • The present invention overcomes the aforementioned drawbacks of the prior art, in a first aspect, by providing a system for operating a digitally controlled model railroad that includes transmitting a first command from a first client program to a resident external controlling interface through a first communications transport. A second command is transmitted from a second client program to the resident external controlling interface through a second communications transport. The first command and the second command are received by the resident external controlling interface which queues the first and second commands. The resident external controlling interface sends third and fourth commands representative of the first and second commands, respectively, to a digital command station for execution on the digitally controlled model railroad.
  • Incorporating a communications transport between the multiple client program and the resident external controlling interface permits multiple operators of the model railroad at locations distant from the physical model railroad and each other. In the environment of a model railroad club where the members want to simultaneously control devices of the same model railroad layout, which preferably includes multiple trains operating thereon, the operators each provide commands to the resistant external controlling interface, and hence the model railroad. In addition by queuing by commands at a single resident external controlling interface permits controlled execution of the commands by the digitally controlled model railroad, would may otherwise conflict with one another.
  • In another aspect of the present invention the first command is selectively processed and sent to one of a plurality of digital command stations for execution on the digitally controlled model railroad based upon information contained therein. Preferably, the second command is also selectively processed and sent to one of the plurality of digital command stations for execution on the digitally controlled model railroad based upon information contained therein. The resident external controlling interface also preferably includes a command queue to maintain the order of the commands.
  • The command queue also allows the sharing of multiple devices, multiple clients to communicate with the same device (locally or remote) in a controlled manner, and multiple clients to communicate with different devices. In other words, the command queue permits the proper execution in the cases of: (1) one client to many devices, (2) many clients to one device, and (3) many clients to many devices.
  • In yet another aspect of the present invention the first command is transmitted from a first client program to a first processor through a first communications transport. The first command is received at the first processor. The first processor provides an acknowledgement to the first client program through the first communications transport indicating that the first command has properly executed prior to execution of commands related to the first command by the digitally controlled model railroad. The communications transport is preferably a COM or DCOM interface.
  • The model railroad application involves the use of extremely slow real-time interfaces between the digital command stations and the devices of the model railroad. In order to increase the apparent speed of execution to the client, other than using high-speed communication interfaces, the resident external controller interface receives the command and provides an acknowledgement to the client program in a timely manner before the execution of the command by the digital command stations. Accordingly, the execution of commands provided by the resident external controlling interface to the digital command stations occur in a synchronous manner, such as a first-in-first-out manner. The COM and DOOM communications transport between the client program and the resident external controlling interface is operated in an asynchronous manner, namely providing an acknowledgement thereby releasing the communications transport to accept further communications prior to the actual execution of the command. The combination of the synchronous and the asynchronous data communication for the commands provides the benefit that the operator considers the commands to occur nearly instantaneously while permitting the resident external controlling interface to verify that the command is proper and cause the commands to execute in a controlled manner by the digital command stations, all without additional high-speed communication networks. Moreover, for traditional distributed software execution there is no motivation to provide an acknowledgment prior to the execution of the command because the command executes quickly and most commands are sequential in nature. In other words, the execution of the next command is dependent upon proper execution of the prior command so there would be no motivation to provide an acknowledgment prior to its actual execution.
  • The foregoing and other objectives, features, and advantages of the invention will be more readily understood upon consideration of the following detailed description of the invention, taken in conjunction with the accompanying drawings.
  • BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS
  • FIG. 1 is a block diagram of an exemplary embodiment of a model train control system.
  • FIG. 2 is a more detailed block diagram of the model train control system of FIG. 1 including external device control logic.
  • FIG. 3 is a block diagram of the external device control logic of FIG. 2.
  • FIG. 4 is an illustration of a track and signaling arrangement.
  • FIG. 5 is an illustration of a manual block signaling arrangement.
  • FIG. 6 is an illustration of a track circuit.
  • FIGS. 7A and 7B are illustrations of block signaling and track capacity.
  • FIG. 8 is an illustration of different types of signals.
  • FIGS. 9A and 9B are illustrations of speed signaling in approach to a junction.
  • FIG. 10 is a further embodiment of the system including a dispatcher.
  • DETAILED DESCRIPTION OF PREFERRED EMBODIMENT
  • Referring to FIG. 1, a model train control system 10 includes a communications transport 12 interconnecting a client program 14 and a resident external controlling interface 16. The client program 14 executes on the model railroad operator's computer and may include any suitable system to permit the operator to provide desired commands to the resident external controlling interface 16. For example, the client program 14 may include a graphical interface representative of the model railroad layout where the operator issues commands to the model railroad by making changes to the graphical interface. The client program 14 also defines a set of Application Programming Interfaces (API's), described in detail later, which the operator accesses using the graphical interface or other programs such as Visual Basic, C++, Java, or browser based applications, There may be multiple client programs interconnected with the resident external controlling interface 16 so that multiple remote operators may simultaneously provide control commands to the model railroad.
  • The communications transport 12 provides an interface between the client program 14 and the resident external controlling interface 16. The communications transport 12 may be any suitable communications medium for the transmission of data, such as the internet, local area network, satellite links, or multiple processes operating on a single computer. The preferred interface to the communications transport 12 is a COM or DCOM interface, as developed for the Windows operating system available from Microsoft Corporation. The communications transport 12 also determines if the resident external controlling interface 16 is system resident or remotely located on an external system. The communications transport 12 may also use private or public communications protocol as a medium for communications. The client program 14 provides commands and the resident external controlling interface 16 responds to the communications transport 12 to exchange information. A description of COM (common object model) and DCOM (distributed common object model) is provided by Chappel in a book entitled Understanding ActiveX and OLE, Microsoft Press, and is incorporated by reference herein.
  • Incorporating a communications transport 12 between the client program(s) 14 and the resident external controlling interface 16 permits multiple operators of the model railroad at locations distant from the physical model railroad and each other. In the environment of a model railroad club where the members want to simultaneously control devices of the same model railroad layout, which preferably includes multiple trains operating thereon, the operators each provide commands to the resistant external controlling interface, and hence the model railroad.
  • The manner in which commands are executed for the model railroad under COM and DCOM may be as follows, The client program 14 makes requests in a synchronous manner using COM/DCOM to the resident external interface controller 16. The synchronous manner of the request is the technique used by COM and DCOM to execute commands. The communications transport 12 packages the command for the transport mechanism to the resident external controlling interface 16. The resident external controlling interface 16 then passes the command to the digital command stations 18 which in turn executes the command. After the digital command station 18 executes the command an acknowledgement is passed back to the resident external controlling interface 16 which in turn passes an acknowledgement to the client program 14. Upon receipt of the acknowledgement by the client program 14, the communications transport 12 is again available to accept another command. The train control system 10, without more, permits execution of commands by the digital command stations 18 from multiple operators, but like the DigiToys Systems' software the execution of commands is slow.
  • The present inventor came to the realization that unlike traditional distributed systems where the commands passed through a communications transport are executed nearly instantaneously by the server and then an acknowledgement is returned to the client, the model railroad application involves the use of extremely slow real-time interfaces between the digital command stations and the devices of the model railroad. The present inventor came to the further realization that in order to increase the apparent speed of execution to the client, other than using high-speed communication interfaces, the resident external controller interface 16 should receive the command and provide an acknowledgement to the client program 12 in a timely manner before the execution of the command by the digital command stations 18. Accordingly, the execution of commands provided by the resident external controlling interface 16 to the digital command stations 18 occur in a synchronous manner, such as a first-in-first-out manner. The COM and DCOM communications transport 12 between the client program 14 and the resident external controlling interface 16 is operated in an asynchronous manner, namely providing an acknowledgement thereby releasing the communications transport 12 to accept further communications prior to the actual execution of the command. The combination of the synchronous and the asynchronous data communication for the commands provides the benefit that the operator considers the commands to occur nearly instantaneously while permitting the resident external controlling interface 16 to verify that the command is proper and cause the commands to execute in a controlled manner by the digital command stations 18, all without additional high-speed communication networks. Moreover, for traditional distributed software execution there is no motivation to provide an acknowledgment prior to the execution of the command because the command executes quickly and most commands are sequential in nature. In other words, the execution of the next command is dependent upon proper execution of the prior command so there would be no motivation to provide an acknowledgment prior to its actual execution. It is to be understood that other devices, such as digital devices, may be controlled in a manner as described for model railroads.
  • Referring to FIG. 2, the client program 14 sends a command over the communications transport 12 that is received by an asynchronous command processor 100. The asynchronous command processor 100 queries a local database storage 102 to determine if it is necessary to package a command to be transmitted to a command queue 104. The local database storage 102 primarily contains the state of the devices of the model railroad, such as for example, the speed of a train, the direction of a train, whether a draw bridge is up or down, whether a light is turned on or off, and the configuration of the model railroad layout. If the command received by the asynchronous command processor 100 is a query of the state of a device, then the asynchronous command processor 100 retrieves such information from the local database storage 102 and provides the information to an asynchronous response processor 106. The asynchronous response processor 106 then provides a response to the client program 14 indicating the state of the device and releases the communications transport 12 for the next command.
  • The asynchronous command processor 100 also verifies, using the configuration information in the local database storage 102, that the command received is a potentially valid operation. If the command is invalid, the asynchronous command processor 100 provides such information to the asynchronous response processor 106, which in turn returns an error indication to the client program 14.
  • The asynchronous command processor 100 may determine that the necessary information is not contained in the local database storage 102 to provide a response to the client program 14 of the device state or that the command is a valid action. Actions may include, for example, an increase in the train's speed, or turning on/off of a device. In either case, the valid unknown state or action command is packaged and forwarded to the command queue 104. The packaging of the command may also include additional information from the local database storage 102 to complete the client program 14 request, if necessary. Together with packaging the command for the command queue 104, the asynchronous command processor 100 provides a command to the asynchronous request processor 106 to provide a response to the client program 14 indicating that the event has occurred, even though such an event has yet to occur on the physical railroad layout.
  • As such, it can be observed that whether or not the command is valid, whether or not the information requested by the command is available to the asynchronous command processor 100, and whether or not the command has executed, the combination of the asynchronous command processor 100 and the asynchronous response processor 106 both verifies the validity of the command and provides a response to the client program 14 thereby freeing up the communications transport 12 for additional commands. Without the asynchronous nature of the resident external controlling interface 16, the response to the client program 14 would be, in many circumstances, delayed thereby resulting in frustration to the operator that the model railroad is performing in a slow and painstaking manner. In this manner, the railroad operation using the asynchronous interface appears to the operator as nearly instantaneously responsive.
  • Each command in the command queue 104 is fetched by a synchronous command processor 110 and processed. The synchronous command processor 110 queries a controller database storage 112 for additional information, as necessary, and determines if the command has already been executed based on the state of the devices in the controller database storage 112. In the event that the command has already been executed, as indicated by the controller database storage 112, then the synchronous command processor 110 passes information to the command queue 104 that the command has been executed or the state of the device. The asynchronous response processor 106 fetches the information from the command cue 104 and provides a suitable response to the client program 14, if necessary, and updates the local database storage 102 to reflect the updated status of the railroad layout devices.
  • If the command fetched by the synchronous command processor 110 from the command queue 104 requires execution by external devices, such as the train engine, then the command is posted to one of several external device control logic 114 blocks. The external device control logic 114 processes the command from the synchronous command processor 110 and issues appropriate control commands to the interface of the particular external device 116 to execute the command on the device and ensure that an appropriate response was received in response. The external device is preferably a digital command control device that transmits digital commands to decoders using the train track. There are several different manufacturers of digital command stations, each of which has a different set of input commands, so each external device is designed for a particular digital command station. In this manner, the system is compatible with different digital command stations. The digital command stations 18 of the external devices 116 provide a response to the external device control logic 114 which is checked for validity and identified as to which prior command it corresponds to so that the controller database storage 112 may be updated properly. The process of transmitting commands to and receiving responses from the external devices 116 is slow.
  • The synchronous command processor 110 is notified of the results from the external control logic 114 and, if appropriate, forwards the results to the command queue 104. The asynchronous response processor 100 clears the results from the command queue 104 and updates the local database storage 102 and sends an asynchronous response to the client program 14, if needed. The response updates the client program 14 of the actual state of the railroad track devices, if changed, and provides an error message to the client program 14 if the devices actual state was previously improperly reported or a command did not execute properly.
  • The use of two separate database storages, each of which is substantially a mirror image of the other, provides a performance enhancement by a fast acknowledgement to the client program 14 using the local database storage 102 and thereby freeing up the communications transport 12 for additional commands. In addition, the number of commands forwarded to the external device control logic 114 and the external devices 116, which are relatively slow to respond, is minimized by maintaining information concerning the state and configuration of the model railroad. Also, the use of two separate database tables 102 and 112 allows more efficient multi-threading on multi-processor computers.
  • In order to achieve the separation of the asynchronous and synchronous portions of the system the command queue 104 is implemented as a named pipe, as developed by Microsoft for Windows. The queue 104 allows both portions to be separate from each other, where each considers the other to be the destination device. In addition, the command queue maintains the order of operation which is important to proper operation of the system.
  • The use of a single command queue 104 allows multiple instant rations of the asynchronous functionality, with one for each different client. The single command queue 104 also allows the sharing of multiple devices, multiple clients to communicate with the same device (locally or remote) in a controlled manner, and multiple clients to communicate with different devices. In other words, the command queue 104 permits the proper execution in the cases of: (1) one client to many devices, (2) many clients to one device, and (3) many clients to many devices.
  • The present inventor came to the realization that the digital command stations provided by the different vendors have at least three different techniques for communicating with the digital decoders of the model railroad set. The first technique, generally referred to as a transaction (one or more operations), is a synchronous communication where a command is transmitted, executed, and a response is received therefrom prior to the transmission of the next sequentially received command. The DCS may execute multiple commands in this transaction. The second technique is a cache with out of order execution where a command is executed and a response received therefrom prior to the execution of the next command, but the order of execution is not necessarily the same as the order that the commands were provided to the command station. The third technique is a local-area-network model where the commands are transmitted and received simultaneously. In the LAN model there is no requirement to wait until a response is received for a particular command prior to sending the next command. Accordingly, the LAN model may result in many commands being transmitted by the command station that have yet to be executed. In addition, some digital command stations use two or more of these techniques.
  • With all these different techniques used to communicate with the model railroad set and the system 10 providing an interface for each different type of command station, there exists a need for the capability of matching up the responses from each of the different types of command stations with the particular command issued for record keeping purposes. Without matching up the responses from the command stations, the databases can not be updated properly.
  • Validation functionality is included within the external device control logic 114 to accommodate all of the different types of command stations. Referring to FIG. 3, an external command processor 200 receives the validated command from the synchronous command processor 110. The external command processor 200 determines which device the command should be directed to, the particular type of command it is, and builds state information for the command. The state information includes, for example, the address, type, port, variables, and type of commands to be sent out. In other words, the state information includes a command set for a particular device on a particular port device. In addition, a copy of the original command is maintained for verification purposes. The constructed command is forwarded to the command sender 202 which is another queue, and preferably a circular queue. The command sender 202 receives the command and transmits commands within its queue in a repetitive nature until the command is removed from its queue. A command response processor 204 receives all the commands from the command stations and passes the commands to the validation function 206. The validation function 206 compares the received command against potential commands that are in the queue of the command sender 202 that could potentially provide such a result. The validation function 206 determines one of four potential results from the comparison. First, the results could be simply bad data that is discarded. Second, the results could be partially executed commands which are likewise normally discarded. Third, the results could be valid responses but not relevant to any command sent. Such a case could result from the operator manually changing the state of devices on the model railroad or from another external device, assuming a shared interface to the DCS. Accordingly, the results are validated and passed to the result processor 210. Fourth, the results could be valid responses relevant to a command sent. The corresponding command is removed from the command sender. 202 and the results passed to the result processor 210. The commands in the queue of the command sender 202, as a result of the validation process 206, are retransmitted a predetermined number of times, then if error still occurs the digital command station is reset, which if the error still persists then the command is removed and the operator is notified of the error.
  • The digital command stations 18 program the digital devices, such as a locomotive and switches, of the railroad layout. For example, a locomotive may include several different registers that control the horn, how the light blinks, speed curves for operation, etc. In many such locomotives there are 106 or more programable values. Unfortunately, it may take 1-10 seconds per byte wide word if a valid register or control variable (generally referred to collectively as registers) and two to four minutes to error out if an invalid register to program such a locomotive or device, either of which may contain a decoder. With a large number of byte wide words in a locomotive its takes considerable time to fully program the locomotive. Further, with a railroad layout including many such locomotives and other programmable devices, it takes a substantial amount of time to completely program all the devices of the model railroad layout. During the programming of the railroad layout, the operator is sitting there not, enjoying the operation of the railroad layout, is frustrated, loses operating enjoyment, and will not desire to use digital programmable devices. In addition, to reprogram the railroad layout the operator must reprogram all of the devices of the entire railroad layout which takes substantial time. Similarly, to determine the state of all the devices of the railroad layout the operator must read the registers of each device likewise taking substantial time. Moreover, to reprogram merely a few bytes of a particular device requires the operator to previously know the state of the registers of the device which is obtainable by reading the registers of the device taking substantial time, thereby still frustrating the operator.
  • The present inventor came to the realization that for the operation of a model railroad the anticipated state of the individual devices of the railroad, as programmed, should be maintained during the use of the model railroad and between different uses of the model railroad. By maintaining data representative of the current state of the device registers of the model railroad determinations may be made to efficiently program the devices. When the user designates a command to be executed by one or more of the digital command stations 18, the software may determine which commands need to be sent to one or more of the digital command stations 18 of the model railroad. By only updating those registers of particular devices that are necessary to implement the commands of a particular user, the time necessary to program the railroad layout is substantially reduced. For example, if the command would duplicate the current state of the device then no command needs to be forwarded to the digital command stations 18. This prevents redundantly programming the devices of the model railroad, thereby freeing up the operation of the model railroad for other activities.
  • Unlike a single-user single-railroad environment, the system of the present invention may encounter “conflicting” commands that attempt to write to and read from the devices of the model railroad. For example, the “conflicting” commands may inadvertently program the same device in an inappropriate manner, such as the locomotive to speed up to maximum and the locomotive to stop. In addition, a user that desires to read the status of the entire model railroad layout will monopolize the digital decoders and command stations for a substantial time, such as up to two hours, thereby preventing the enjoyment of the model railroad for the other users. Also, a user that programs an extensive number of devices will likewise monopolize the digital decoders and command stations for a substantial time thereby preventing the enjoyment of the model railroad for other users.
  • In order to implement a networked selective updating technique the present inventor determined that it is desirable to implement both a write cache and a read cache. The write cache contains those commands yet to be programmed by the digital command stations 18. Valid commands from each user are passed to a queue in the write cache. In the event of multiple commands from multiple users (depending on user permissions and security) or the same user for the same event or action, the write cache will concatenate the two commands into a single command to be programmed by the digital command stations 18. In the event of multiple commands from multiple users or the same user for different events or actions, the write cache will concatenate the two commands into a single command to be programmed by the digital command stations 18. The write cache may forward either of the commands, such as the last received command, to the digital command station. The users are updated with the actual command programmed by the digital command station, as necessary.
  • The read cache contains the state of the different devices of the model railroad. After a command has been written to a digital device and properly acknowledged, if necessary, the read cache is updated with the current state of the model railroad. In addition, the read cache is updated with the state of the model railroad when the registers of the devices of the model railroad are read. Prior to sending the commands to be executed by the digital command stations 18 the data in the write cache is compared against the data in the read cache. In the event that the data in the read cache indicates that the data in the write cache does not need to be programmed, the command is discarded. In contrast, if the data in the read cache indicates that the data in the write cache needs to be programmed, then the command is programmed by the digital command station. After programming the command by the digital command station the read cache is updated to reflect the change in the model railroad. As becomes apparent, the use of a write cache and a read cache permits a decrease in the number of registers that need to be programmed, thus speeding up the apparent operation of the model railroad to the operator.
  • The present inventor further determined that errors in the processing of the commands by the railroad and the initial unknown state of the model railroad should be taken into account for a robust system. In the event that an error is received in response to an attempt to program (or read) a device, then the state of the relevant data of the read cache is marked as unknown. The unknown state merely indicates that the state of the register has some ambiguity associated therewith. The unknown state may be removed by reading the current state of the relevant device or the data rewritten to the model railroad without an error occurring. In addition, if an error is received in response to an attempt to program (or read) a device, then the command may be re-transmitted to the digital command station in an attempt to program the device properly. If desirable, multiple commands may be automatically provided to the digital command stations to increase the likelihood of programming the appropriate registers. In addition, the initial state of a register is likewise marked with an unknown state until data becomes available regarding its state.
  • When sending the commands to be executed by the digital command stations 18 they are preferably first checked against the read cache, as previously mentioned. In the event that the read cache indicates that the state is unknown, such as upon initialization or an error, then the command should be sent to the digital command station because the state is not known. In this manner the state will at least become known, even if the data in the registers is not actually changed.
  • The present inventor further determined a particular set of data that is useful for a complete representation of the state of the registers of the devices of the model railroad.
  • An invalid representation of a register indicates that the particular register is not valid for both a read and a write operation. This permits the system to avoid attempting to read from and write to particular registers of the model railroad. This avoids the exceptionally long error out when attempting to access invalid registers.
  • An in use representation of a register indicates that the particular register is valid for both a read and a write operation. This permits the system to read from and write to particular registers of the model railroad. This assists in accessing valid registers where the response time is relatively fast.
  • A read error (unknown state) representation of a register indicates that each time an attempt to read a particular register results in an error.
  • A read dirty representation of a register indicates that the data in the read cache has not been validated by reading its valid from the decoder. If both the read error and the read dirty representations are clear then a valid read from the read cache may be performed. A read dirty representation may be cleared by a successful write operation, if desired.
  • A read only representation indicates that the register may not be written to. If this flag is set then a write error may not occur.
  • A write error (unknown state) representation of a register indicates that each time an attempt to write to a particular register results in an error.
  • A write dirty representation of a register indicates that the data in the write cache has not been written to the decoder yet. For example, when programming the decoders the system programs the data indicated by the write dirty. If both the write error and the write dirty representations are clear then the state is represented by the write cache. This assists in keeping track of the programming without excess overhead.
  • A write only representation indicates that the register may not be read from. If this flag is set then a read error may not occur.
  • Over time the system constructs a set of representations of the model railroad devices and the model railroad itself indicating the invalid registers, read errors, and write errors which may increases the efficiently of programming and changing the states of the model railroad. This permits the system to avoid accessing particular registers where the result will likely be an error.
  • The present inventor came to the realization that the valid registers of particular devices is the same for the same device of the same or different model railroads. Further, the present inventor came to the realization that a template may be developed for each particular device that may be applied to the representations of the data to predetermine the valid registers. In addition, the template may also be used to set the read error and write error, if desired. The template may include any one or more of the following representations, such as invalid, in use, read error, write only, read dirty, read only, write error, and write dirty for the possible registers of the device. The predetermination of the state of each register of a particular device avoids the time consuming activity of receiving a significant number of errors and thus constructing the caches. It is to be noted that the actual read and write cache may be any suitable type of data structure.
  • Many model railroad systems include computer interfaces to attempt to mimic or otherwise emulate the operation of actual full-scale railroads. FIG. 4 illustrates the organization of train dispatching by “timetable and train order” (T&TO) techniques. Many of the rules governing T&TO operation are related to the superiority of trains which principally is which train will take siding at the meeting point. Any misinterpretation of these rules can be the source of either hazard or delay. For example, misinterpreting the rules may result in one train colliding with another train.
  • For trains following each other, T&TO operation must rely upon time spacing and flag protection to keep each train a sufficient distance apart. For example, a train may not leave a station less than five minutes after the preceding train has departed. Unfortunately, there is no assurance that such spacing will be retained as the trains move along the line, so the flagman (rear brakeman) of a train slowing down or stopping will light and throw off a five-minute red flare which may not be passed by the next train while lit. If a train has to stop, a flagman trots back along the line with a red flag or lantern a sufficient distance to protect the train, and remains there until the train is ready to move at which time he is called back to the train. A flare and two track torpedoes provide protection as the flagman scrambles back and the train resumes speed. While this type of system works, it depends upon a series of human activities.
  • It is perfectly possible to operate a railroad safely without signals. The purpose of signal systems is not so much to increase safety as it is to step up the efficiency and capacity of the line in handling traffic. Nevertheless, it's convenient to discuss signal system principals in terms of three types of collisions that signals are designed to prevent, namely, rear-end, side-on, and head-on.
  • Block signal systems prevent a train from ramming the train ahead of it by dividing the main line into segments, otherwise known as blocks, and allowing only one train in a block at a time, with block signals indicating whether or not the block ahead is occupied. In many blocks, the signals are set by a human operator. Before clearing the signal, he must verify that any train which has previously entered the block is now clear of it, a written record is kept of the status of each block, and a prescribed procedure is used in communicating with the next operator. The degree to which a block frees up operation depends on whether distant signals (as shown in FIG. 5) are provided and on the spacing of open stations, those in which an operator is on duty. If as is usually the case it is many miles to the next block station and thus trains must be equally spaced. Nevertheless, manual block does afford a high degree of safety.
  • The block signaling which does the most for increasing line capacity is automatic block signals (ABS), in which the signals are controlled by the trains themselves. The presence or absence of a train is determined by a track circuit. Invented by Dr. William Robinson in 1872, the track circuit's key feature is that it is fail-safe. As can be seen in FIG. 6, if the battery or any wire connection fails, or a rail is broken, the relay can't pick up, and a clear signal will not be displayed.
  • The track circuit is also an example of what is designated in railway signaling practice as a vital circuit, one which can give an unsafe indication if some of its components malfunction in certain ways. The track circuit is fail-safe, but it could still give a false clear indication should its relay stick in the closed or picked-up position. Vital circuit relays, therefore, are built to very stringent standards: they are large devices; rely on gravity (no springs) to drop their armature; and use special non-loading contacts which will not stick together if hit by a large surge of current (such as nearby lightning).
  • Getting a track circuit to be absolutely reliable is not a simple matter. The electrical leakage between the rails is considerable, and varies greatly with the seasons of the year and the weather. The joints and bolted-rail track are by-passed with bond wire to assure low resistance at all times, but the total resistance still varies. It is lower, for example, when cold weather shrinks the rails and they pull tightly on the track bolts or when hot weather expands to force the ends tightly together. Battery voltage is typically limited to one or two volts, requiring a fairly sensitive relay. Despite this, the direct current track circuit can be adjusted to do an excellent job and false-clears are extremely rare. The principal improvement in the basic circuit has been to use slowly-pulsed DC so that the relay drops out and must be picked up again continually when a block is unoccupied. This allows the use of a more sensitive relay which will detect a train, but additionally work in track circuits twice as long before leakage between the rails begins to threaten reliable relay operation. Referring to FIGS. 7A and 7B, the situations determining the minimum block length for the standard two-block, three-indication ABS system. Since the train may stop with its rear car just inside the rear boundary of a block, a following train will first receive warning just one block-length away. No allowance may be made for how far the signal indication may be seen by the engineer. Swivel block must be as long as the longest stopping distance for any train on the route, traveling at its maximum authorized speed.
  • From this standpoint, it is important to allow trains to move along without receiving any approach indications which will force them to slow down. This requires a train spacing of two block lengths, twice the stopping distance, since the signal can't clear until the train ahead is completely out of the second block. When fully loaded trains running at high speeds, with their stopping distances, block lengths must be long, and it is not possible to get enough trains over the line to produce appropriate revenue.
  • The three-block, four-indication signaling shown in FIG. 7 reduces the excess train spacing by 50%. with warning two blocks to the rear and signal spacing need be only ½ the braking distance. In particularly congested areas such as downgrades where stopping distances are long and trains are likely to bunch up, four-block, four-indication signaling may be provided and advanced approach, approach medium, approach and stop indications give a minimum of three-block warning, allowing further block-shortening and keeps things moving.
  • FIG. 8 uses aspects of upper quadrant semaphores to illustrate block signaling. These signals use the blade rising 90 degrees to give the clear indication.
  • Some of the systems that are currently developed by different railroads are shown in FIG. 8. With the general rules discussed below, a railroad is free to establish the simplest and most easily maintained system of aspects and indications that will keep traffic moving safely and meet any special requirements due to geography, traffic pattern, or equipment. Aspects such as flashing yellow for approach medium, for example, may be used to provide an extra indication without an extra signal head. This is safe because a stuck flasher will result in either a steady yellow approach or a more restrictive light-out aspect. In addition, there are provisions for interlocking so the trains may branch from one track to another.
  • To take care of junctions where trains are diverted from one route to another, the signals must control train speed. The train traveling straight through must be able to travel at full speed. Diverging routes will require some limit, depending on the turnout members and the track curvature, and the signals must control train speed to match. One approach is to have signals indicate which route has been set up and cleared for the train. In the American approach of speed signaling, in which the signal indicates not where the train is going but rather what speed is allowed through the interlocking. If this is less than normal speed, distant signals must also give warning so the train can be brought down to the speed in time. FIGS. 9A and 9B show typical signal aspects and indications as they would appear to an engineer. Once a route is established and the signal cleared, route locking is used to insure that nothing can be changed to reduce the route's speed capability from the time the train approaching it is admitted to enter until it has cleared the last switch. Additional refinements to the basic system to speed up handling trains in rapid sequence include sectional route locking which unlocks portions of the route as soon as the train has cleared so that other routes can be set up promptly. Interlocking signals also function as block signals to provide rear-end protection. In addition, at isolated crossings at grade, an automatic interlocking can respond to the approach of a train by clearing the route if there are no opposing movements cleared or in progress. Automatic interlocking returns everything to stop after the train has passed. As can be observed, the movement of multiple trains among the track potentially involves a series of interconnected activities and decisions which must be performed by a controller, such as a dispatcher. In essence, for a railroad the dispatcher controls the operation of the trains and permissions may be set by computer control, thereby controlling the railroad. Unfortunately, if the dispatcher fails to obey the rules as put in place, traffic collisions may occur.
  • In the context of a model railroad the controller is operating a model railroad layout including an extensive amount of track, several locomotives (trains), and additional functionality such as switches. The movement of different objects, such as locomotives and entire trains, may be monitored by a set of sensors. The operator issues control commands from his computer console, such as in the form of permissions and class warrants for the time and track used. In the existing monolithic computer systems for model railroads a single operator from a single terminal may control the system effectively. Unfortunately, the present inventor has observed that in a multi-user environment where several clients are attempting to simultaneously control the same model railroad layout using their terminals, collisions periodically nevertheless occur. In addition, significant delay is observed between the issuance of a command and its eventual execution. The present inventor has determined that unlike full scale railroads where the track is controlled by a single dispatcher, the use of multiple dispatchers each having a different dispatcher console may result in conflicting information being sent to the railroad layout. In essence, the system is designed as a computer control system to implement commands but in no manner can the dispatcher consoles control the actions of users. For example, a user input may command that an event occur resulting in a crash. In addition, a user may override the block permissions or class warrants for the time and track used thereby causing a collision. In addition, two users may inadvertently send conflicting commands to the same or different trains thereby causing a collision. In such a system, each user is not aware of the intent and actions of other users aside from any feedback that may be displayed on their terminal. Unfortunately, the feedback to their dispatcher console may be delayed as the execution of commands issued by one or more users may take several seconds to several minutes to be executed.
  • One potential solution to the dilemma of managing several users attempt to simultaneously control a single model railroad layout is to develop a software program that is operating on the server which observes what is occurring. In the event that the software program determines that a collision is imminent, a stop command is issued to the train overriding all other commands to avoid such a collision. However, once the collision is avoided the user may, if desired, override such a command thereby restarting the train and causing a collision. Accordingly, a software program that merely oversees the operation of track apart from the validation of commands to avoid imminent collisions is not a suitable solution for operating a model railroad in a multi-user distributed environment. The present inventor determined that prior validation is important because of the delay in executing commands on the model railroad and the potential for conflicting commands. In addition, a hardware throttle directly connected to the model railroad layout may override all such computer based commands thereby resulting in the collision. Also, this implementation provides a suitable security model to use for validation of user actions.
  • Referring to FIG. 10, the client program 14 preferably includes a control panel 300 which provides a graphical interface (such as a personal computer with software thereon or a dedicated hardware source) for computerized control of the model railroad 302. The graphical interface may take the form of those illustrated in FIGS. 5-9, or any other suitable command interface to provide control commands to the model railroad 302. Commands are issued by the client program 14 to the controlling interface using the control panel 300. The commands are received from the different client programs 14 by the controlling interface 16. The commands control the operation of the model railroad 302, such as switches, direction, and locomotive throttle. Of particular importance is the throttle which is a state which persists for an indefinite period of time, potentially resulting in collisions if not accurately monitored. The controlling interface 16 accepts all of the commands and provides an acknowledgment to free up the communications transport for subsequent commands. The acknowledgment may take the form of a response indicating that the command was executed thereby updating the control panel 300. The response may be subject to updating if more data becomes available indicating the previous response is incorrect. In fact, the command may have yet to be executed or verified by the controlling interface 16. After a command is received by the controlling interface 16, the controlling interface 16 passes the command (in a modified manner, if desired) to a dispatcher controller 310. The dispatcher controller 310 includes a rule-based processor together with the layout of the railroad 302 and the status of objects thereon. The objects may include properties such as speed, location, direction, length of the train, etc. The dispatcher controller 310 processes each received command to determine if the execution of such a command would violate any of the rules together with the layout and status of objects thereon. If the command received is within the rules, then the command may be passed to the model railroad 302 for execution. If the received command violates the rules, then the command may be rejected and an appropriate response is provided to update the clients display. If desired, the invalid command may be modified in a suitable manner and still be provided to the model railroad 302. In addition, if the dispatcher controller 310 determines that an event should occur, such as stopping a model locomotive, it may issue the command and update the control panels 300 accordingly. If necessary, an update command is provided to the client program 14 to show the update that occurred.
  • The “asynchronous” receipt of commands together with a “synchronous” manner of validation and execution of commands from the multiple control panels 300 permits a simplified dispatcher controller 310 to be used together with a minimization of computer resources, such as com ports. In essence, commands are managed independently from the client program 14. Likewise, a centralized dispatcher controller 310 working in an “off-line” mode increases the likelihood that a series of commands that are executed will not be conflicting resulting in an error. This permits multiple model railroad enthusiasts to control the same model railroad in a safe and efficient manner. Such concerns regarding the interrelationships between multiple dispatchers does not occur in a dedicated non-distributed environment. When the command is received or validated all of the control panels 300 of the client programs 14 may likewise be updated to reflect the change. Alternatively, the controlling interface 16 may accept the command, validate it quickly by the dispatcher controller, and provide an acknowledgment to the client program 14. In this manner, the client program 14 will not require updating if the command is not valid. In a likewise manner, when a command is valid the control panel 300 of all client programs 14 should be updated to show the status of the model railroad 302.
  • A manual throttle 320 may likewise provide control over devices, such as the locomotive, on the model railroad 302. The commands issued by the manual throttle 320 may be passed first to the dispatcher controller 310 for validation in a similar manner to that of the client programs 14. Alternatively, commands from the manual throttle 320 may be directly passed to the model railroad 302 without first being validated by the dispatcher controller 302. After execution of commands by the external devices 18, a response will be provided to the controlling interface 16 which in response may check the suitability of the command, if desired. If the command violates the layout rules then a suitable correctional command is issued to the model railroad 302. If the command is valid then no correctional command is necessary. In either case, the status of the model railroad 302 is passed to the client programs 14 (control panels 300).
  • As it can be observed, the event driven dispatcher controller 310 maintains the current status of the model railroad 302 so that accurate validation may be performed to minimize conflicting and potentially damaging commands. Depending on the particular implementation, the control panel 300 is updated in a suitable manner, but in most cases, the communication transport 12 is freed up prior to execution of the command by the model railroad 302.
  • The computer dispatcher may also be distributed across the network, if desired. In addition, the computer architecture described herein supports different computer interfaces at the client program 14.
  • The terms and expressions which have been employed in the foregoing specification are used therein as terms of description and not of limitation, and there is no intention, in the use of such terms and expressions, of excluding equivalents of the features shown and described or portions thereof, it being recognized that the scope of the invention is defined and limited only by the claims which follow.

Claims (10)

1. (canceled)
2. A system for operating a digitally controlled model railroad comprising:
(a) a first general purpose computing device transmitting a first command from a first program to a second program of a second general purpose computing device;
(b) a third general purpose computing device transmitting a second command from a third program to said second program of said second general purpose computing device, where said first, second, and third general purposes computing devices are spaced apart from one another; and
(c) said second program of said second general purpose computing device sending third and fourth commands from said second program representative of said first and second commands, respectively, to a digital command station that is in a spaced apart location from said first, second, and third general purpose computing devices.
3. The system of claim 1, further comprising:
(a) said second program providing an acknowledgment to said first program in response to receiving said first command by said second program prior to sending said third command to said digital command station; and
(b) said second program providing an acknowledgment to said third program in response to receiving said second command by said second program prior to sending said fourth command to said digital command station.
4. The system of claim 2, further comprising:
(a) said second program selectively sending said third command to one of a plurality of digital command stations; and
(b) said second program selectively sending said fourth command to one of said plurality of digital command stations.
5. The system of claim 3, further comprising said second program receiving command station responses representative of the state of said digitally controlled model railroad from said plurality of digital command stations.
6. The system of claim 4, further comprising said second program comparing said command station responses to previous commands sent to at least one of said plurality of digital command stations to determine which of said previous commands it corresponds with.
7. The system of claim 5, further comprising the steps of:
(a) said second program maintaining a sending queue of commands to be transmitted to said plurality of digital command stations; and
(b) said second program retransmitting at least one of said commands in said sending queue periodically until removed from said sending queue as a result of the comparison of said command station responses to previous commands.
8. The system of claim 6, further comprising said second program updating a database of the state of said digitally controlled model railroad based upon said receiving command station responses representative of said state of said digitally controlled model railroad.
9. The system of claim 7, further comprising said second program providing said acknowledgment to said first program in response to receiving said first command by said second program together with state information from said database related to said first command
10. The system of claim 8 wherein said first command and said third command are the same command, and said second command and said fourth command are the same command.
US13/053,564 1998-06-24 2011-03-22 Model train control system Abandoned US20110172857A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/053,564 US20110172857A1 (en) 1998-06-24 2011-03-22 Model train control system

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
US09/104,461 US6065406A (en) 1998-06-24 1998-06-24 Model train control system
US09/311,936 US6676089B1 (en) 1998-06-24 1999-05-14 Model train control system
US10/713,476 US6909945B2 (en) 1998-06-24 2003-11-14 Model train control system
US10/989,815 US7177733B2 (en) 1998-06-24 2004-11-16 Model train control system
US11/375,794 US7209812B2 (en) 1998-06-24 2006-03-14 Model train control system
US11/607,233 US20070106435A1 (en) 1998-06-24 2006-12-01 Model train control system
US11/981,263 US7912595B2 (en) 1998-06-24 2007-10-30 Model train control system
US13/053,564 US20110172857A1 (en) 1998-06-24 2011-03-22 Model train control system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US11/981,263 Continuation US7912595B2 (en) 1998-06-24 2007-10-30 Model train control system

Publications (1)

Publication Number Publication Date
US20110172857A1 true US20110172857A1 (en) 2011-07-14

Family

ID=22300605

Family Applications (15)

Application Number Title Priority Date Filing Date
US09/104,461 Expired - Fee Related US6065406A (en) 1998-06-24 1998-06-24 Model train control system
US09/311,936 Expired - Fee Related US6676089B1 (en) 1998-06-24 1999-05-14 Model train control system
US09/550,904 Expired - Fee Related US6267061B1 (en) 1998-06-24 2000-04-17 Model train control system
US10/713,476 Expired - Fee Related US6909945B2 (en) 1998-06-24 2003-11-14 Model train control system
US10/989,815 Expired - Fee Related US7177733B2 (en) 1998-06-24 2004-11-16 Model train control system
US11/375,794 Expired - Fee Related US7209812B2 (en) 1998-06-24 2006-03-14 Model train control system
US11/593,770 Abandoned US20070142983A1 (en) 1998-06-24 2006-11-07 Model train control system
US11/607,233 Abandoned US20070106435A1 (en) 1998-06-24 2006-12-01 Model train control system
US11/981,302 Expired - Fee Related US7904215B2 (en) 1998-06-24 2007-10-30 Model train control system
US11/981,238 Expired - Fee Related US7856296B2 (en) 1998-06-24 2007-10-30 Model train control system
US11/981,262 Expired - Fee Related US7890224B2 (en) 1998-06-24 2007-10-30 Model train control system
US11/981,320 Expired - Fee Related US7818102B2 (en) 1998-06-24 2007-10-30 Model train control system
US11/981,263 Expired - Fee Related US7912595B2 (en) 1998-06-24 2007-10-30 Model train control system
US12/939,784 Expired - Fee Related US8065045B2 (en) 1998-06-24 2010-11-04 Model train control system
US13/053,564 Abandoned US20110172857A1 (en) 1998-06-24 2011-03-22 Model train control system

Family Applications Before (14)

Application Number Title Priority Date Filing Date
US09/104,461 Expired - Fee Related US6065406A (en) 1998-06-24 1998-06-24 Model train control system
US09/311,936 Expired - Fee Related US6676089B1 (en) 1998-06-24 1999-05-14 Model train control system
US09/550,904 Expired - Fee Related US6267061B1 (en) 1998-06-24 2000-04-17 Model train control system
US10/713,476 Expired - Fee Related US6909945B2 (en) 1998-06-24 2003-11-14 Model train control system
US10/989,815 Expired - Fee Related US7177733B2 (en) 1998-06-24 2004-11-16 Model train control system
US11/375,794 Expired - Fee Related US7209812B2 (en) 1998-06-24 2006-03-14 Model train control system
US11/593,770 Abandoned US20070142983A1 (en) 1998-06-24 2006-11-07 Model train control system
US11/607,233 Abandoned US20070106435A1 (en) 1998-06-24 2006-12-01 Model train control system
US11/981,302 Expired - Fee Related US7904215B2 (en) 1998-06-24 2007-10-30 Model train control system
US11/981,238 Expired - Fee Related US7856296B2 (en) 1998-06-24 2007-10-30 Model train control system
US11/981,262 Expired - Fee Related US7890224B2 (en) 1998-06-24 2007-10-30 Model train control system
US11/981,320 Expired - Fee Related US7818102B2 (en) 1998-06-24 2007-10-30 Model train control system
US11/981,263 Expired - Fee Related US7912595B2 (en) 1998-06-24 2007-10-30 Model train control system
US12/939,784 Expired - Fee Related US8065045B2 (en) 1998-06-24 2010-11-04 Model train control system

Country Status (6)

Country Link
US (15) US6065406A (en)
AU (1) AU4711399A (en)
CA (1) CA2330931C (en)
DE (1) DE19983318T1 (en)
GB (1) GB2353228B (en)
WO (1) WO1999066999A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013132539A (en) * 2011-12-27 2013-07-08 Michiyasu Okamoto Vehicle travel control method and automatic operation device of railway model
WO2015187954A1 (en) * 2014-06-04 2015-12-10 Throttle Up! Corp., Dba Sound Traxx Decoder for a model train and method of operating a decoder for a model train

Families Citing this family (60)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6275739B1 (en) * 1997-10-14 2001-08-14 Anthony John Ireland Attached logic module technique for control and maintenance in a distributed and networked control system
US6281606B1 (en) * 1998-04-07 2001-08-28 Mike's Train House Plural output electric train control station
US6270040B1 (en) * 2000-04-03 2001-08-07 Kam Industries Model train control system
US6065406A (en) * 1998-06-24 2000-05-23 Katzer; Matthew A. Model train control system
US6441570B1 (en) * 1999-06-14 2002-08-27 Lionel, Llc. Controller for a model toy train set
US7188341B1 (en) * 1999-09-24 2007-03-06 New York Air Brake Corporation Method of transferring files and analysis of train operational data
US6460467B2 (en) 2000-04-17 2002-10-08 Matthew A. Katzer Model train control method
US6530329B2 (en) * 2001-05-15 2003-03-11 Matthew A. Katzer Model train control system
US6320346B1 (en) * 2000-08-11 2001-11-20 Atlas Model Railroad Company, Incorporated DCC decoder for model railroad
US7421430B2 (en) * 2001-05-14 2008-09-02 International Business Machines Corporation Method for processing real-time mobile transactions in a three-tier distributed database system
US6536716B1 (en) * 2001-10-17 2003-03-25 Anthony J. Ireland Conversion throttle interface for model railroads
ITSV20020009A1 (en) * 2002-02-22 2003-08-22 Alstom Transp Spa METHOD FOR THE GENERATION OF LOGICAL CONTROL UNITS OF THE VITAL COMPUTER STATION EQUIPMENT, THAT IS IN THE CENTRAL CONTROL UNITS
US10569792B2 (en) 2006-03-20 2020-02-25 General Electric Company Vehicle control system and method
US20070225878A1 (en) * 2006-03-20 2007-09-27 Kumar Ajith K Trip optimization system and method for a train
US9233696B2 (en) 2006-03-20 2016-01-12 General Electric Company Trip optimizer method, system and computer software code for operating a railroad train to minimize wheel and track wear
US9733625B2 (en) * 2006-03-20 2017-08-15 General Electric Company Trip optimization system and method for a train
US10308265B2 (en) 2006-03-20 2019-06-04 Ge Global Sourcing Llc Vehicle control system and method
US8924049B2 (en) 2003-01-06 2014-12-30 General Electric Company System and method for controlling movement of vehicles
US8154227B1 (en) * 2003-11-26 2012-04-10 Liontech Trains Llc Model train control system
US7142954B2 (en) * 2004-06-14 2006-11-28 Neiser Robert C Model train controller interface device
US20060100982A1 (en) * 2004-11-08 2006-05-11 International Business Machines Corporation Storage configuration loader with automatic error recovery
US20060100753A1 (en) * 2004-11-10 2006-05-11 Katzer Matthew A Model train control
US20070001058A1 (en) * 2005-06-30 2007-01-04 Severson Frederick E Model railroad control and sound systems
JP4437795B2 (en) * 2006-03-13 2010-03-24 株式会社デンソー Vehicle control system and electronic control device
US9201409B2 (en) 2006-03-20 2015-12-01 General Electric Company Fuel management system and method
US8290645B2 (en) 2006-03-20 2012-10-16 General Electric Company Method and computer software code for determining a mission plan for a powered system when a desired mission parameter appears unobtainable
US9527518B2 (en) 2006-03-20 2016-12-27 General Electric Company System, method and computer software code for controlling a powered system and operational information used in a mission by the powered system
US8370006B2 (en) * 2006-03-20 2013-02-05 General Electric Company Method and apparatus for optimizing a train trip using signal information
US20080167766A1 (en) * 2006-03-20 2008-07-10 Saravanan Thiyagarajan Method and Computer Software Code for Optimizing a Range When an Operating Mode of a Powered System is Encountered During a Mission
US8370007B2 (en) 2006-03-20 2013-02-05 General Electric Company Method and computer software code for determining when to permit a speed control system to control a powered system
US8788135B2 (en) * 2006-03-20 2014-07-22 General Electric Company System, method, and computer software code for providing real time optimization of a mission plan for a powered system
US8473127B2 (en) * 2006-03-20 2013-06-25 General Electric Company System, method and computer software code for optimizing train operations considering rail car parameters
US8126601B2 (en) 2006-03-20 2012-02-28 General Electric Company System and method for predicting a vehicle route using a route network database
US8249763B2 (en) * 2006-03-20 2012-08-21 General Electric Company Method and computer software code for uncoupling power control of a distributed powered system from coupled power settings
US9156477B2 (en) 2006-03-20 2015-10-13 General Electric Company Control system and method for remotely isolating powered units in a vehicle system
US8768543B2 (en) * 2006-03-20 2014-07-01 General Electric Company Method, system and computer software code for trip optimization with train/track database augmentation
US8401720B2 (en) * 2006-03-20 2013-03-19 General Electric Company System, method, and computer software code for detecting a physical defect along a mission route
US9266542B2 (en) * 2006-03-20 2016-02-23 General Electric Company System and method for optimized fuel efficiency and emission output of a diesel powered system
JP5503692B2 (en) * 2006-06-07 2014-05-28 株式会社日立製作所 Wireless control security system
US8019002B2 (en) * 2006-06-08 2011-09-13 Qualcomm Incorporated Parallel batch decoding of video blocks
US7873586B2 (en) * 2008-01-08 2011-01-18 International Business Machines Corporation Risk assessment in a gate area of an airport
US7885908B2 (en) * 2008-01-09 2011-02-08 International Business Machines Corporation Risk assessment within an aircraft
US7870085B2 (en) 2008-01-09 2011-01-11 International Business Machines Corporation Risk assessment between aircrafts
US7895144B2 (en) * 2008-01-09 2011-02-22 International Business Machines Corporation Risk assessment in a pre/post security area within an airport
US7885909B2 (en) * 2008-01-09 2011-02-08 International Business Machines Corporation Risk assessment between airports
US7895143B2 (en) * 2008-01-09 2011-02-22 International Business Machines Corporation Risk assessment in an area external to an airport
CN101686238A (en) * 2008-09-25 2010-03-31 鸿富锦精密工业(深圳)有限公司 Communication protocol detection system and method
US8237583B2 (en) * 2008-11-05 2012-08-07 General Electric Company Method and system for vital display systems
US9834237B2 (en) 2012-11-21 2017-12-05 General Electric Company Route examining system and method
US8234023B2 (en) * 2009-06-12 2012-07-31 General Electric Company System and method for regulating speed, power or position of a powered vehicle
US8894020B2 (en) * 2011-02-28 2014-11-25 Harvey J. Rosener Block module for model train layout control
JP5759331B2 (en) * 2011-09-30 2015-08-05 日本信号株式会社 Train control system
US9669851B2 (en) 2012-11-21 2017-06-06 General Electric Company Route examination system and method
JP6153882B2 (en) * 2014-03-27 2017-06-28 日立建機株式会社 Vehicle traveling system and operation management server
US9923316B1 (en) * 2014-04-13 2018-03-20 Jarrod Little Model railroad accessory interface
CN109562844B (en) 2016-08-06 2022-03-01 深圳市大疆创新科技有限公司 Automated landing surface topography assessment and related systems and methods
US10279823B2 (en) * 2016-08-08 2019-05-07 General Electric Company System for controlling or monitoring a vehicle system along a route
GB2559196B (en) * 2017-01-31 2021-11-17 Sony Europe Bv Determining a position of a vehicle on a track
US20210138356A1 (en) * 2019-11-08 2021-05-13 James Bevan LEWIS Led scene controller for a model train system and related methods
CN114371735B (en) * 2022-01-07 2023-11-03 广东汇天航空航天科技有限公司 Aircraft geofence data processing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5749547A (en) * 1992-02-11 1998-05-12 Neil P. Young Control of model vehicles on a track
US6281606B1 (en) * 1998-04-07 2001-08-28 Mike's Train House Plural output electric train control station
US20070001058A1 (en) * 2005-06-30 2007-01-04 Severson Frederick E Model railroad control and sound systems

Family Cites Families (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE2601790A1 (en) 1976-01-20 1977-07-21 Bastian Dipl Ing Ingbert Control system for model electric railway - has pulsed DC which controls speed and direction of trains drawn by three different locomotives
US4307302A (en) 1977-07-18 1981-12-22 Russell Jack A Electronic control system
US4914431A (en) 1984-11-16 1990-04-03 Severson Frederick E Electronic control system for model railroads
US5448142A (en) 1987-04-13 1995-09-05 Severson; Frederick E. Signaling techniques for DC track powered model railroads
US4853883A (en) * 1987-11-09 1989-08-01 Nickles Stephen K Apparatus and method for use in simulating operation and control of a railway train
US5475818A (en) * 1992-03-18 1995-12-12 Aeg Transportation Systems, Inc. Communications controller central processing unit board
US5463552A (en) * 1992-07-30 1995-10-31 Aeg Transportation Systems, Inc. Rules-based interlocking engine using virtual gates
US5456604A (en) 1993-10-20 1995-10-10 Olmsted; Robert A. Method and system for simulating vehicle operation using scale models
US5493642A (en) 1994-04-26 1996-02-20 Jocatek, Inc. Graphically constructed control and scheduling system
CA2140398A1 (en) * 1994-11-16 1996-05-17 Gregory S. Balukin Apparatus to enable controlling a throttle controller from a remote host
DE19622132A1 (en) * 1996-06-01 1997-12-04 Josef Duell PC-controlled model railway
AT409827B (en) 1996-06-03 2002-11-25 Roessler Elfriede CONTROL DEVICE FOR CONTROLLING THE DIFFERENT MOTION FUNCTIONS OF A MODEL VEHICLE
US5681015A (en) * 1996-12-20 1997-10-28 Westinghouse Air Brake Company Radio-based electro-pneumatic control communications system
US6275739B1 (en) * 1997-10-14 2001-08-14 Anthony John Ireland Attached logic module technique for control and maintenance in a distributed and networked control system
US6270040B1 (en) 2000-04-03 2001-08-07 Kam Industries Model train control system
US6065406A (en) 1998-06-24 2000-05-23 Katzer; Matthew A. Model train control system
US6441570B1 (en) * 1999-06-14 2002-08-27 Lionel, Llc. Controller for a model toy train set
US6220552B1 (en) 1999-07-15 2001-04-24 Anthony John Ireland Model railroad detection equipment
US6729584B2 (en) 1999-07-15 2004-05-04 Anthony John Ireland Model railroad occupancy detection equipment
US6460467B2 (en) 2000-04-17 2002-10-08 Matthew A. Katzer Model train control method
US6530329B2 (en) * 2001-05-15 2003-03-11 Matthew A. Katzer Model train control system
US6320346B1 (en) * 2000-08-11 2001-11-20 Atlas Model Railroad Company, Incorporated DCC decoder for model railroad
US6457681B1 (en) 2000-12-07 2002-10-01 Mike's Train House, Inc. Control, sound, and operating system for model trains
US6539292B1 (en) 2001-06-09 2003-03-25 Stanley R. Ames, Jr. Using location-influenced behavior to control model railroads
US20040239268A1 (en) 2002-11-27 2004-12-02 Grubba Robert A. Radio-linked, Bi-directional control system for model electric trains
US7142954B2 (en) * 2004-06-14 2006-11-28 Neiser Robert C Model train controller interface device
US20060226298A1 (en) 2005-03-30 2006-10-12 Lionel L.L.C. Graphical method and system for model vehicle and accessory control
US20060256593A1 (en) 2005-05-11 2006-11-16 Lionel L.L.C. Voltage controller with true RMS indicator

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5749547A (en) * 1992-02-11 1998-05-12 Neil P. Young Control of model vehicles on a track
US6281606B1 (en) * 1998-04-07 2001-08-28 Mike's Train House Plural output electric train control station
US20070001058A1 (en) * 2005-06-30 2007-01-04 Severson Frederick E Model railroad control and sound systems

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013132539A (en) * 2011-12-27 2013-07-08 Michiyasu Okamoto Vehicle travel control method and automatic operation device of railway model
WO2015187954A1 (en) * 2014-06-04 2015-12-10 Throttle Up! Corp., Dba Sound Traxx Decoder for a model train and method of operating a decoder for a model train

Also Published As

Publication number Publication date
US20080065283A1 (en) 2008-03-13
US8065045B2 (en) 2011-11-22
US20070142983A1 (en) 2007-06-21
US20080082224A1 (en) 2008-04-03
US7912595B2 (en) 2011-03-22
DE19983318T1 (en) 2001-08-16
US7209812B2 (en) 2007-04-24
US6065406A (en) 2000-05-23
US20110054722A1 (en) 2011-03-03
US20080065284A1 (en) 2008-03-13
US7890224B2 (en) 2011-02-15
WO1999066999A1 (en) 1999-12-29
US20080059011A1 (en) 2008-03-06
US7177733B2 (en) 2007-02-13
US7904215B2 (en) 2011-03-08
US20040099770A1 (en) 2004-05-27
US7818102B2 (en) 2010-10-19
US6267061B1 (en) 2001-07-31
US6676089B1 (en) 2004-01-13
CA2330931C (en) 2004-08-24
GB0026435D0 (en) 2000-12-13
US7856296B2 (en) 2010-12-21
AU4711399A (en) 2000-01-10
GB2353228A (en) 2001-02-21
US20080071435A1 (en) 2008-03-20
CA2330931A1 (en) 1999-12-29
US20070106435A1 (en) 2007-05-10
US6909945B2 (en) 2005-06-21
GB2353228B (en) 2003-08-27
US20050159859A1 (en) 2005-07-21
US20060241825A1 (en) 2006-10-26

Similar Documents

Publication Publication Date Title
US7890224B2 (en) Model train control system
US6877699B2 (en) Model train control system
US20040254694A1 (en) Model train control system
US3219816A (en) Electric rail switch and control system
US2647988A (en) Apparatus for controlling highway crossing signals
US2102988A (en) Railway traffic controlling apparatus
US1126122A (en) Electric-railway safety system.
US852628A (en) Automatic electrical train-stop.
US852635A (en) Automatic electrical train-stop.
GB304830A (en) Improvements relating to apparatus for the control of railway traffic

Legal Events

Date Code Title Description
STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION