The entire disclosure of Japanese Patent Application No. 2008-140721, filed May 29, 2008 is expressly incorporated by reference herein.
1. Technical Field
The present invention relates to a technique for collecting information on consumables of a device.
2. Related Art
As a technique for collecting information on consumables, there is known a technique disclosed in JP-A-2000-259050, for example, which is the technique for storing count information on copied sheets in the EEPROM by mounting a ROM board including an EEPROM on a copy apparatus.
However, the count information may be lost when the ROM board is replaced. Therefore, a problem occurs in that the cumulative number of sheets copied in the copy apparatus cannot be obtained even when the count information is collected from the ROM board of the copy apparatus after the loss of the count information.
In general, this problem commonly occurs not only in the copy apparatus but also in the case where information on consumables of a device is collected.
An advantage of some aspects of the invention is that it provides a technique for collecting the total cumulative number of consumables in a device on the basis of the consumption number of consumables consumed in the device.
The following aspects of the invention can be realized in order to solve some of the above-described problems.
According to an aspect of the invention, there is provided an information collecting device including: a network interface unit which receives information on consumables from a plurality of devices connected through a network; a database access unit which accesses a database storing the information on consumables of each of the devices; and a control unit which controls the network interface unit and the database access unit. The information on consumables contains a device ID assigned to each of the devices and the consumption number of consumables as the number of consumables consumed by each of the devices. From the database, the database access unit acquires a value of a device ID field used to store the device ID, a value of a previous quantity field used to store the consumption number of consumables received at previous time, and a value of a total number field used to store the total number of consumables consumed by each of the devices. The control unit stores the consumption number of consumables in the previous quantity field and maintains the value of the total number field without update, when a difference value obtained by subtracting the value of the previous quantity field from the consumption number of consumables received from each of the devices is negative.
In this way, it is possible to appropriately maintain the total cumulative number of consumables in the device by storing the consumption number of consumables in the previous quantity field, when the difference value obtained by subtracting the value of the previous quantity field from the consumption number of consumables is negative.
In the information collecting device according to the above aspect of the invention, the control unit may store the consumption number of consumables in the previous quantity field and may add the difference value to the value of the total number field, when the difference value is positive. Accordingly, it is to obtain the total cumulative number of consumables in the device.
In the information collecting device according to the above aspect of the invention, the control unit may control the database access unit so as to store a predetermined initial value in the total number field, when the information on consumables received from each of the devices is the first information on each of the devices. Accordingly, it is possible to carry out a flexible operation by changing the initial value.
According to another aspect of the invention, there is provided an information collecting system including: an information collecting device; and a database server, wherein the information collecting device includes a network interface unit receiving information on consumables from a plurality of devices connected through a network, a database access unit which accesses a database storing the information on consumables of each of the devices, and a control unit which controls the network interface unit and the database access unit, wherein a table of the database server includes a device ID field used to store a device ID, a previous quantity field used to store the consumption number of consumables received at previous time, and a total number field used to store the total number of consumables consumed by each of the devices, wherein the information on consumables contains the device ID assigned to each of the devices and the consumption number of consumables as the number of consumables consumed by each of the devices, wherein from the database, the database access unit acquires a value of the device ID field, a value of the previous quantity field, and a value of the total number field, and wherein the control unit stores the consumption number of consumables in the previous quantity field and maintains the value of the total number field without update, when a difference value obtained by subtracting the value of the previous quantity field from the consumption number of consumables received from each of the devices is negative.
According to still another aspect of the invention, there is provided an information collecting method including: (a) receiving information on consumables from a device connected through a network; and (b) accessing a database which stores the information on consumables of the device, wherein the information on consumables contains a device ID assigned to the device and the consumption number of consumables as the number of consumables consumed by the device, and wherein (b) the accessing includes: (b1) accessing a device ID field used to store the device ID; (b2) accessing a previous quantity field used to store the consumption number of consumables received at previous time; (b3) accessing a total number field used to store the total number of consumables consumed by the device; and (b4) storing the consumption number of consumables in the previous quantity field and maintaining a value of the total number field without update, when a difference value obtained by subtracting a value of the previous quantity field from the consumption number of consumables received from the device is negative.
According to still another aspect of the invention, there is provided a computer program allowing a computer to execute a reception function receiving information on consumables from a device connected through a network; and an access function accessing a database which stores the information on consumables of the device. The information on consumables contains a device ID assigned to the device and the consumption number of consumables as the number of consumables consumed by the device. The access function includes: a function accessing a device ID field used to store the device ID; a function accessing a previous quantity field used to store the consumption number of consumables received at previous time; a function accessing a total number field used to store the total number of consumables consumed by the device; and a function storing the consumption number of consumables in the previous quantity field and maintaining a value of the total number field without update, when a difference value obtained by subtracting a value of the previous quantity field from the consumption number of consumables received from the device is negative.
According to still another aspect of the invention, there is provided a recording medium which records the computer program having the above configuration.
Various aspects of the invention can be realized. For example, the information collecting method and the information collecting device, the information collecting system, the computer program for realizing functions of the information collecting method and the information collecting device, and the recording medium recording the computer program can be realized.
The invention will be described with reference to the accompanying drawings, wherein like numbers reference like elements.
Hereinafter, an embodiment of the invention will be described in the following sequence:
A. Embodiment,
B. Comparative Example, and
C. Modified Example.
The information collecting system 10 includes a client computer 500 as a client connected through the Internet INET and a network printer 700. The client computer 500 as a proxy of a printer 600 having no function directly connecting with a network is a computer which functions as a client of the information collecting system 10. A network printer 700 is a printer which can directly connect with a network and thus functions as a client of the information collecting system 10. A plurality of the clients are connected to the information collecting system 10, but each one of these clients is illustrated in
The client computer 500 includes a network interface 520, an RP agent unit 540, and a printer interface 560. The network interface 520 is an interface used when the client computer 500 connects with the network. The RP agent unit 540 is a software normally loaded in the client computer 500 and functions to transmit the device ID and the consumption number UDN of consumables stored in the memory 660 of the printer 600 to the WEB server 400. The transmission can be performed at arbitrary time when the client computer 500 is connected to the network. The printer interface 560 is an interface which connects the client computer 500 to the printer 600. The client computer 500 acquires the device ID and the consumption number UDN of consumables of the printer 600 through the printer interface 560.
The WEB server 400 is a server which is located in the external network and receives information from a client to transmit the information to the application server 100. The firewall 300 functions as isolating the application server 100 and the database server 200 from the external network to protect the servers against dangers or viruses of the external network.
The application server 100 includes a network interface 120, a control unit 140, a DB access unit 160, and control information 180. The network interface 120 is an interface used when the application server 100 connects with the network. The control unit 140 controls the DB access unit 160 on the basis of information received through the network interface 120. The DB access unit 160 obtains an access to the database server 200 to read or write information. The control unit 140 and the DB access unit 160 are provided on a CPU (not shown) of the application server 100. The control information 180 is information necessary when the control unit 140 performs controlling and is stored in a memory such as a ROM or a RAM (not shown) of the application server 100.
The database server 200 includes a network interface 220 and a database 240. The network interface 220 is an interface used when the database server 200 connects with the network. The database 240 is a storage area in which data constructed in the database server 200 are stored. For example, the database 240 can be realized by using a relational database management system (RDBMS). A table of the database 240 contains a device ID field 242, a previous quantity field 244, and a total number field 246. The device ID field 242 is a field for storing a device ID stored in the memory of the printer 600. The previous quantity field 244 is a field used to store the consumption number PN of consumables notified at previous time from the printer 600. The total number field 246 is a field used to store the total number (cumulative consumption number) TN of consumables used in the printer 600. Communication between the respective devices and the servers connected to the each other through the network can be realized by TCP/IP, for example.
(1) information on consumables from a client,
UDN: the consumption number of consumables,
(2) values of fields in database,
PN: a value of the previous quantity field,
TN: a value of the total number field,
(3) internal variables of the application server,
LT: a variable maintaining the value PN of the previous quantity field,
UPDATE: a variable maintaining the value TN of the total number field, and
δ: a difference value (UDN−LT)=(UDN−PN).
In Step S1, information on the consumables transmitted from the client computer 500 is received through the network interface 120. The information on the consumables transmitted from the client computer 500 contains the device ID and the consumption number UDN of consumables. Even though the detailed description is omitted in
According to the above-described sequence, the value of the variable δ is added to the value TN of the total number field in Steps S6 and S8, when the value of the variable δ is positive. Alternatively, when the value of the variable δ is negative, the variable UPDATE is not changed and the value TN of the total number field is thus maintained without change. As understood from the process in Steps S2 and S4, the value of the variable δ is obtained by subtracting the value PN of the previous quantity field from the value of the consumption number UDN of consumables received at the present time. Therefore, when the value of the variable δ is positive, the cumulative consumption number of consumables can be obtained by adding the value of the variable δ to the value TN of the total number field. Alternatively, when the value of the variable δ is negative, it is assumed that an abnormality (for example, replacement of the ROM board of the printer 600) occurs in the consumption number UDN of consumables. Therefore, when the value of the variable δ is negative, the cumulative consumption number of consumables can be maintained with an appropriate value by maintaining the value TN of the total number field.
Here, a state where information is not once received from a client having the device ID “1234” is called an initial state. At time t0 of the initial state, the value PN of the previous quantity field 244 and the value TN of the total number field 246 in a record in which the value of the device ID field 242 of the database server 200 is “1234” are a null value.
At time t1, the client computer 500 transmits the device ID “1234” of the printer 600 connected to the client computer 500 and the consumption number UDN of consumables=3 to the application server 100 (Step S10 in
Next, at time t4, the client computer 500 transmits the device ID “1234” of the printer 600 connected to the client computer 500 and the consumption number UDN of consumables=4 to the application server 100 (Step S20 in
Next, at time t7, it is assumed that the data on the consumption number of consumables of the printer 600 connected to the client computer 500 are lost and a relation of the consumption number UDN of consumables=0 is satisfied. The reason of the loss of the data on the consumption number UDN of consumables is that a board is replaced due to breakdown of an EEPROM storing the consumption number UDN of consumables, for example. After the data on the consumption number of consumables are lost, the client computer 500 transmits the device ID “1234” of the printer 600 and the consumption number UDN of consumables=0 to the application server 100 (Step S30 in
In this embodiment, when the difference value δ between present transmission information (the consumption number UDN of consumables) and previous transmission information (the value PN of the previous quantity field 244) is negative, the total number field 246 is not updated and the value of the previous quantity field 244 is set as the value of the consumption number UDN of consumables. In consequence, the total cumulative number of consumables consumed in the printer 600 can be maintained appropriately.
Next, advantages of the embodiment will be described in comparison to a comparative example. In the comparative example, the description of the same constituent elements as those of the above-described embodiment is omitted.
(1) information on consumables from a client,
UDN: the consumption number of consumables,
(2) values of fields of database,
FN: a value of the first quantity field (where a first consumption number UDN of consumables is stored),
TN: a value of the total number field,
(3) internal variables of the application server,
FT: a variable maintaining the value FN of the first quantity field,
CN: a variable maintaining a present consumption number UDN of consumables, and
TOT: a variable representing a cumulative consumption number of consumables.
In Step S101, information on the consumables transmitted from the client computer 500 is received through the network interface 120. This process is carried out at the same manner as that of Step S1 in
In the process sequence according to the above-described comparative example, even when the value (UDN−FT) of the variable TOT obtained by subtracting the value FN of the first quantity field from the consumption number UDN of consumables received from the client is negative, the negative value is written as the value TN of the total number field of the database. Therefore, there is a possibility that a wrong total number of consumables is registered in the value TN of the total number field.
In
In the comparative example, the exact total number cannot be maintained, since an abnormal negative value is stored in the total number field 246 in the case where the process is continuously carried out after the loss of the data on the consumption number of consumables. In the above-described embodiment, however, when the data on the consumption number are lost, the total number field 246 is not updated and the value of the previous quantity field 244 is set as the value of the consumption number UDN of consumables received at the present time. In consequence, it is possible to appropriately maintain the value of the total number field 246.
The invention is not limited to the above-described embodiment, but modified in various forms without departing the gist of the invention. For example, the following modifications can be made.
In the above-described embodiment, one kind of the consumption number UDN of consumables stored in a printer has been used, but plural kinds of consumption numbers UDN of consumables may be stored. For example, the plural kinds of consumption numbers UDN of consumables may be separately stored by distinguishing black ink from color ink. In this case, it is preferable that plural previous quantity fields and plural total number fields of the database server are provided in correspondence with the consumption numbers UDN of consumables.
In the above-described embodiment, the technique for collecting the information on the consumption number of ink cartridges has been described. However, the invention is applicable to a technique for collecting information on the consumption number of consumables other than the ink cartridges. For example, the total number of consumables such as toner cartridges, photographic sheets, and films can be obtained by carrying out the process of the embodiment. The invention is applicable to a device other than a printer. For example, the total consumption number of CD-R (DVD-R) of a CD-RW drive (DVD-RW drive) can be obtained.
In the above-described embodiment, one application server, one database server, and one WEB server are provided, but a plurality of the respective servers may be provided. For example, when numerous clients are connected and a lot of access is estimated, it is preferable that a plurality of WEB servers are provided and then a load balancer is provided.
In the above-described embodiment, the application server, the database server, and the WEB server are individually provided, but one server may be provided to function as the application server, the database server, and the WEB server.
In the above-described embodiment, the client and the information collecting system are connected to each other through an internet, but may be constructed through an intranet.
Number | Date | Country | Kind |
---|---|---|---|
2008-140721 | May 2008 | JP | national |