Electronic driver log application with bi-directional messaging to multiple backend systems

Abstract
Systems and methods are described for electronically logging a truck driver using a mobile device by collecting data using a mobile device electronic log application; sending a message from a mobile device messaging module to a server messaging module; and determining an availability of a target enterprise computer, and if the target enterprise computer is unavailable, rolling back an update to the target computer and restoring the message in the server messaging module.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 shows a conventional client-server architecture.



FIG. 2 shows a conventional database synchronization architecture.



FIG. 3 shows an exemplary operating environment for electronically tracking driver logs.



FIG. 4 illustrates an exemplary message-based client-server architecture method of performing electronic driver log applications.



FIG. 5 shows an exemplary process in accordance with the present invention.





DESCRIPTION

Reference will now be made in detail to the preferred embodiments of the invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with the preferred embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description of the present invention, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be obvious to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well known methods, procedures, components, and circuits have not been described in detail as not to unnecessarily obscure aspects of the present invention.



FIG. 3 is an illustration of an exemplary system supporting electronic driver logging. Information is communicated between host facility (or host) 100 and ultimately vehicle 102 in the form of voice and/or data communications. Host 100 communicates information to central station 104 using well known communication channels, such as wireline or wireless telephone channels, fiber optic channels, or the like. Host 100 is typically a freight transportation company, otherwise known as a carrier, owning a large fleet of vehicles that are widely dispersed over a large geographic area. Typically, each vehicle carries a handheld device 106 such as a smart cell phone which can act as mobile communication terminal to enable communications with host 100 by way of cellular towers 108 and central station 104. Alternative communication techniques include satellite communication or dedicated terrestrial radio stations. Although only one host 100 and one vehicle 102 is shown in FIG. 3, in practice, many hosts 100 use central station 104 to communicate information to and from their respective fleet vehicles.


The information sent by host 100 to central station 104 may contain voice or data information that is directed to one or more vehicles in the communication system. Information may also originate from central station 104 independently of host 100. In the case of information being transmitted from host 100, central station 104 receives the information and attempts to forward it to the identified vehicle or vehicles, as the case may be. The particular vehicle or vehicles for which the message is intended is identified by specifying an alpha-numeric code, typically a code corresponding to a serial number which has been pre-assigned to mobile communication terminal 106 installed on vehicle 102. However, any known method may be used to uniquely identify vehicles in the communication system.


In one embodiment, the system includes a Vehicle Interface Module (VIM). The VIM is installed in the vehicle through a plug-in SAE J1962 connector. The VIM includes a microcontroller and memory, a Bluetooth radio, and an SDIO slot for the addition of an optional Key FOB. The VIM provides full access to the vehicle's ECU data and allows the system to access Diagnostic Trouble Codes reported by the vehicle's ECU. The VIM helps users to service and maintain the vehicle with live sensor display. The VIM also reads and displays reason for Check Engine Light or MIL (Malfunction Indicator Light) which indicates presence of fault codes (DTC, Diagnostic Trouble Codes). The VIM can collect data such as Throttle position, Engine RPM, Vehicle speed, Calculated load value, Ignition timing advance, Intake air flow rate, Short term fuel trim, Long term fuel trim, Air temperature, Coolant temperature, Oxygen sensors. The VIM can also display diagnostics trouble codes (DTC), clear Check Engine lamp, retrieve and clear Generic and Manufacturer specific diagnostic trouble codes (DTC), display live sensor data and freeze frame data, and communicates with Engine Management System and Emissions Systems.


The VIM communicates with the handheld device 106, which can be a cell phone or PDA capable of running the J2ME, Windows Mobile, or BREW operating systems. The handheld device 106 is also equipped with Bluetooth and GSM/GPRS, CDMA/1X, or iDEN voice and data communications. Exemplary handheld device 106 can be the Java J2ME cell phones, Nextel i730, i850, i355, i605, Blackberry, Nextel, Verizon Wireless, Cingular, Sprint MS Windows Mobile Smartphone Edition, Nextel, Verizon Wireless, Cingular, Sprint MS Windows Mobile Pocket PC Edition, Nextel, Verizon Wireless, Cingular, Sprint BREW cell phones. The handheld device 106 runs mobile software components 108 such as a Consumer Application (CA). The CA serves as the user interface to vehicle control and configuration functions and OBDII (SAE standard for On Board Diagnostics II for cars and light trucks) data access on the VIM via Bluetooth. The CA also supports the ability to transmit the data, manually or automatically, and receive commands remotely via standard wide area wireless networks.


The VIM can run an OBDII Application Platform (OAP) or SAE J1708/J1939 Adapter (for heavy trucks) written for the VIM that accepts and responds to requests for OBDII/J1708/J1939 data and configuration settings from the consumer application. The OAP or J1708/J1939 adapter implements a range of OBDII/J1708/J1939 protocols for access to vehicle systems such as the engine, transmission, safety, and chassis. The handheld device also supports an API that enables 3rd party developers to access the VIM.


The handheld device 106 communicates with a server over a wide area network (WAN) such as the Internet. Wireless access to the Internet can be provided through cellular towers 108 that access the Internet through the cellular wireless carriers or service providers that own the towers 108.


In one embodiment, the position of vehicle 102 is provided to central station 104 at predetermined time intervals, such as once per hour, and is commonly referred to as a position report. The position of vehicle 102 may be provided generally in one of two ways. In the exemplary embodiment, the position of vehicle 102 is determined at central station 104 using a positioning unit such as GPS, GLONASS or GALILEO position receiver. These systems are well-known in the art for providing accurate, real time position information, generally in the form of latitude and longitude coordinates, to a GPS receiver located onboard vehicle 102. The position of vehicle 102 as provided by the GPS receiver is transmitted to central station 104 at predetermined intervals. The GPS information may be transmitted alone, or it may be appended to voice or text messages.



FIG. 4 shows one embodiment to provide e-log applications using a bi-directional messaging based system that ensures data consistency among all applications in the system. The system of FIG. 4 also allows updates to flow from the client or the server in real time. An e-log application (3.1) interfaces with a Database (3.2) and a Messaging System (3.3). The Database is used to store configuration and temporary data. The Messaging System connects through a Network (3.4) to the Messaging System (3.5) on the Server. Updates from the e-log application are handed off the client-side Message System (3.3) which will store the updates until a network connection is available to the server-side Messaging System (3.5). At that time, the system transfers the updates as messages to the server. The server-side Messaging System (3.5) transfers each message to the Transaction Monitor (3.6) which peels off appropriate data from the message for each of the backend Enterprise Systems (3.7, 3.8, 3.9). If any of the Enterprise Systems expecting an update is unavailable, the Transaction Monitor will roll back all the updates to previous Enterprise Systems and put the message back into the Messaging System (3.5). The entire system is thus copasetic at all times. The Messaging System will then stop processing of any messages to the Enterprise Systems and send out an alert to the administrator to fix the Enterprise System that is unavailable. Once the administrator has corrected the situation, he can tell the Messaging System to continue updating the Enterprise Systems. All this while, the Messaging System is still running and able to get updates from the client. This ensures that the devices are able to send messages to the server all the time without waiting for an Enterprise System to be available. The server-side Messaging System (3.5) stores the messages in first-in first-out (FIFO) queues so that when the Enterprise Systems are available, the messages are played to them in the same order that the devices intended.


Updates from Enterprise Systems can also be sent to the e-log application. For example, if an alert from the Asset Management System needs to be sent to the driver, the Asset Management System creates a message and sends it to the server-side Messaging System (3.5) which then forwards it on to the client-side Messaging System (3.3). The e-log application (3.1) implements an interface (in the case of the Java programming language) that is called when a message is sent from the server. It then processes the message; typically by updating the Database (3.2) and any screens in the e-log application (3.1).


The Messaging System consists of the main server (3.5) which stores all messages into persistent storage (eg. disk) so that if any part of the system goes down, the message is not lost. It implements a reliable “once and only once protocol” for handing off messages. The Messaging systems can implement several policies. The “best effort” policy states that the messaging system will make its best attempt to send a message but offers no guarantees whether the message makes it, or whether it gets delivered multiple times. The “at least once” policy will guarantee that the message gets delivered, but it might be sent multiple times; this might happen for example if an acknowledgement from the receiving end is lost but the message actually made it, so in resending the message, it gets received twice. As each message is considered a legal and binding record of a driver's activities, the strictest “one and only once” policy is preferred over the other two policies, but in certain applications, other policies can be used. The “once and only once” policy can be implemented in a manner similar to the “at least once” messaging system, where a message is re-sent until confirmed with a positive acknowledgement by the recipient. In addition, the policy keeps track of which message was sent or received by stamping each one with a unique identifier. If a positive acknowledgement was lost for some reason, the recipient will receive a duplicate from the sender but because it knows that it already received the message, it simply deletes the duplicate and sends another acknowledgement.


The Transaction Monitor (3.6) implements a two-phase commit operation similar or the same as the XA standard. This method first sets up a transaction envelope with a “begin transaction” when all Enterprise Systems are told to accept a transaction; this is the first phase. If any of the transactions fail, the previous systems will be issued a rollback command from the Transaction Monitor. If the transactions succeed, the systems are issued a commit command from the Transaction Monitor telling them that the transaction is complete. This is where the “end transaction” occurs.



FIG. 5 shows an exemplary method to process logging data with enterprise computers and mobile devices. The process collects data using a mobile device electronic log application (5.1). Next, a message is sent from a mobile device messaging module to a server messaging module (5.2). The process determines an availability of a target enterprise computer, and if the target enterprise computer is unavailable, rolling back an update to the target computer and restoring the message in the server messaging module (5.3).


In the process of FIG. 5, the system stores configuration and temporary data in a database on the mobile device. The mobile messaging module communicates with the server messaging module over a network. The system sends updates from the electronic logging application to the mobile messaging module for storage until a network connection is available to the server messaging module. The server messaging module transfers each message to a transaction monitor. The transaction monitor rolls back an update for each enterprise computer receiving the update if the enterprise computer is unavailable. The transaction monitor moves the message back to the server messaging module. The transaction monitor ensures that mobile device and the one or more enterprise computers are copasetic at all times. The server messaging module stops processing of a message to each unavailable enterprise computer. The server can also alert an administrator to fix the unavailable enterprise computer. When the enterprise computer is operating, the process can continue the e-logging process.


Although specific embodiments of the present invention have been illustrated in the accompanying drawings and described in the foregoing detailed description, it will be understood that the invention is not limited to the particular embodiments described herein, but is capable of numerous rearrangements, modifications, and substitutions without departing from the scope of the invention. The following claims are intended to encompass all such modifications.

Claims
  • 1. An electronic logging system, comprising: a mobile device having an electronic log application; anda mobile messaging module; anda server adapted to communicate with the mobile device, the server having: a server messaging module; andone or more enterprise computers coupled to the messaging module.
  • 2. The system of claim 1, comprising a database coupled to the mobile electronic application and the mobile messaging module, the database storing configuration and temporary data.
  • 3. The system of claim 1, wherein the mobile messaging module connects over a network to the server messaging module.
  • 4. The system of claim 1, wherein updates from the electronic logging application are sent to the mobile messaging module for storage until a network connection is available to the server messaging module.
  • 5. The system of claim 1, wherein the server messaging module transfers each message to a transaction monitor.
  • 6. The system of claim 5, wherein the transaction monitor rolls back each update for each enterprise computer receiving the update if the enterprise computer is unavailable.
  • 7. The system of claim 6, wherein the transaction monitor moves the message back to the server messaging module.
  • 8. The system of claim 1, wherein the transaction monitor ensures that mobile device and the one or more enterprise computers are copasetic.
  • 9. The system of claim 1, wherein the server messaging module stops processing of a message to an unavailable enterprise computer.
  • 10. The system of claim 9, wherein the server alerts an administrator to fix the unavailable enterprise computer.
  • 11. A method for electronically logging a truck driver using a mobile device, comprising: collecting data using a mobile device electronic log application;sending a message from a mobile device messaging module to a server messaging module; anddetermining an availability of a target enterprise computer, and if the target enterprise computer is unavailable, rolling back an update to one or more enterprise computers and restoring the message in the server messaging module.
  • 12. The method of claim 11, comprising storing configuration and temporary data in a database on the mobile device.
  • 13. The method of claim 11, wherein the mobile messaging module communicates with the server messaging module over a network.
  • 14. The method of claim 11, comprising sending updates from the electronic logging application to the mobile messaging module for storage until a network connection is available to the server messaging module.
  • 15. The method of claim 11, wherein the server messaging module transfers each message to a transaction monitor
  • 16. The method of claim 15, wherein the transaction monitor rolls back an update for each enterprise computer receiving the update if the enterprise computer is unavailable.
  • 17. The method of claim 16, wherein the transaction monitor moves the message back to the server messaging module.
  • 18. The method of claim 11, wherein the transaction monitor ensures that mobile device and the one or more enterprise computers are copasetic at all times.
  • 19. The method of claim 11, wherein the server messaging module stops processing of a message to each unavailable enterprise computer.
  • 20. The method of claim 19, wherein the server alerts an administrator to fix the unavailable enterprise computer.