Summary of the invention
The objective of the invention is to, though provide a kind of that in single task OS, also can move reliably, be used for the image source apparatus directly printed.
The image source apparatus that one embodiment of the present invention is related is carried out printer direct-connected with it and is printed, and wherein possesses: the application program handling part; Driver, it is based on the indication from described application program handling part, and standard according to the rules and described printer communicate, and print thereby described printer is carried out; And storage part.And, described driver is when described application program handling part is received initialization requests, notify it to receive described initialization requests to described application program handling part, carry out initialization process then according to the described initialization requests of receiving, after described initialization process finishes, receiving the obtaining before the indication of the information relevant with the specification of described printer from described application program handling part, obtain the information of a plurality of projects relevant with the specification of described printer from described printer, be stored to described storage part, described driver receive from described application program handling part any project described a plurality of project obtain order the time, do not communicate but the described storage part of reference with described printer, this information that obtains the related project of order is turned back to described application program handling part, when printer sends instruction, discharge OS at described driver.
Thus, shortened the time of application program handling part wait-for-response,, also may be limited in the stand-by period of in fact no problem degree even under the situation of moving under the single task OS.
In preferred embodiment, described driver is after described initialization process finishes, even without receive from described application program handling part described a plurality of projects any obtain order, also can send the request that obtains the information of described a plurality of projects from described printer.
Thus, when the application program handling part sends initialization requests, and received its notified after, when OS is in d/d state, driver can spontaneously send the request that obtains a plurality of projects relevant with the specification of printer from printer, and receives its response.At this moment, if discharge OS according to send the request of obtaining at every turn, even then in single task OS, a task can not occupied OS for a long time yet.
Other the related image source apparatus of embodiment of the present invention is carried out printer direct-connected with it and is printed, and wherein possesses: the application program handling part; Driver, it is based on the indication from described application program handling part, and standard according to the rules and described printer communicate, and print thereby described printer is carried out; And storage part, described driver is when described application program handling part is received initialization requests, notify it to receive described initialization requests to described application program handling part, carry out initialization process then according to the described initialization requests of receiving, after described initialization process finishes, when receive from described application program handling part first project a plurality of projects relevant with the specification of described printer obtain order the time, obtain the information of a plurality of projects that comprise described first project from described printer according to described standard, the information of described first project is turned back to described application program handling part, and the information stores to described first project of major general project in addition arrives described storage part, discharges OS at described driver when printer sends instruction.
In preferred embodiment, when the information of described a plurality of projects is stored in described storage part, receiving from described application program handling part under the situation that obtains order of second project, can be with reference to described storage part, the information of described second project is turned back to described application program handling part.
In preferred embodiment, contain the information of the more than one project in the described a plurality of projects of expression in the initialization requests from described application program handling part, described driver can be obtained the information of the more than one project that contains the described initialization requests from described printer.
In preferred embodiment, described standard is that promptly to clap be the mark standard, and described driver is promptly to clap promptly to beat driver.
In preferred embodiment, described application program handling part can output to the interface screen of regulation with the information of a plurality of projects relevant with the specification of obtained described printer.
Embodiment
Below, with reference to accompanying drawing the related print system of one embodiment of the present invention is described.
Fig. 1 is the pie graph of the related print system of present embodiment 1.
This system 1 possesses printer 3 and digital camera 5, and both directly connect by the communications cable 7.And digital camera 5 becomes the image source apparatus that view data is provided to printer 3, and printer 3 is carried out and printed.
In the present embodiment, in printer 3, be equipped with usb host controller, in digital camera 5, be equipped with the USB device controller.Thus, printer 3 communicates by USB (Universal Serial Bus) with digital camera 5.
And, in the present embodiment, be that the mark standard is carried out image data transmission and following illustrated such information relevant with the specification of printer that exchanges according to promptly clapping.
The following illustrated formation and the function of digital camera 5 for example can realize by the computer program that computing machine with processor and storer is put rules into practice.
In addition, as image source apparatus, except digital camera, also can be other digital devices that the mobile phone, Photo Browser etc. of band camera store view data.
Fig. 2 is the figure of the communication sequence in this print system 1 of expression.
As shown in the drawing, possess in the digital camera 5: according to promptly clapping is that application program (AP) 53, the Capability storage part 55 of driver 51, regulation are promptly beaten in the accurate i.e. bat that communicates with printer 3 of mark.
And, promptly clap and promptly beat driver 51 according to carried out promptly clapping the initialization process of promptly beating from the indication of AP53 after, obtain the ability relevant information such as (Capability) that is had with printer 3 from printer 3.So-called ability (Capability) for example is can be by the printing image quality of printer prints, paper size, two-sided/single face etc.
At first, in step S11, with after digital camera 5 is connected, AP53 promptly beats driver 51 and sends promptly to clap and promptly beat initialization command promptly clapping at printer 3.In step S12, after bat in sight is promptly beaten driver 51 and received this order, return notified to AP53.
At this constantly, AP53 receives at after promptly the response of initialization command is promptly played in bat, temporarily ends task.That is, at this constantly, the OS of digital camera 5 has discharged the task of AP53.Therefore, even when digital camera 5 moves under single task OS, other tasks also can be moved.
In step S21, with notified turn back to AP53 after, promptly clap and promptly beat the initialize process that driver 51 is carried out PTP (Picture Transfer Protocol).
In step S23, PTP initialize process is and then promptly clapped and is promptly beaten driver 51 and will send the DPS_Configure-print-Service order, in step S24, receives this response from printer 3.
Then, if printer 3 is ordered the information of notifying the state that could print of expression printer with DPS_NotifyDeviceStatus in step S25, then in step S26, promptly clap and promptly beat driver 51 this is responded.
Here, in step S27, promptly clap and promptly beat driver 51 and do not wait for indication, and printer 3 is sent the DPS_GetCapability order from AP53.DPS_GetCapability order is the order that is used to obtain the relevant information of the ability (Capability) that had with printer 3.
In step S28, promptly clap and promptly beat driver 51 and obtain response from printer 3 at the DPS_GetCapability order.Promptly clap and promptly beat driver 51 project of ability (Capability) appointment, send the DPS_GetCapability order at printer 3.Then, as its response, obtain the information of specified project.Therefore, for the ability (Capability) that obtains a plurality of projects, i.e. bat is promptly beaten driver 51 and is specified obtained entry name respectively, repeatedly sends the DPS_GetCapability order.
In step S29, the information of the ability (Capability) that obtains from printer 3 is stored in the Capability storage part 55.
Thus, digital camera 5 can be obtained the information of ability (Capability) in advance from printer, it is remained in the Capability storer 55.
The information of ability (Capability) for example is: the print quality information of support (is printed default value, benchmark, high-quality etc.), paper size (is printed default value, A4, the L version, 4 * 6 etc.), the sheet type of using according to paper size (is printed default value, common paper, printing paper etc.), layout information according to paper size (is printed default value, do not have to cut apart non-flanged is arranged, two cut apart, four cut apart etc.), file type (is printed default value, Exif/JPEG, JPEG, GIF etc.), support information (the ON that the band date prints, OFF etc.), support information (the ON that filename is printed, OFF etc.), support information (the ON that the optimization of image is printed, OFF etc.), appointment will be fixed as the support information (A4 of the fixed measure printing of which kind of size with the image that paper size is differently printed, the L version, 4 * 6 etc.), and the support information (ON of image segmentation printing, OFF etc.) etc.
Here, the order that driver 51 is sent is promptly played in promptly clapping of step S23 and S27, promptly beats driver 51 and gives an order and end task by promptly clap at every turn.That is, give an order if driver 51 is promptly beaten in i.e. bat, then OS is released.Therefore, during wait-for-response, OS can handle other task.
Then, if AP53 has received promptly to clap and promptly beats after initialization command notified through the stipulated time in step S12, then AP53 promptly beats driver 51 and sends Capability and obtain order promptly clapping in step S13.Obtain in the order at this Capability, specify AP53 to wish the project that obtains.
Receive that the i.e. bat that Capability from AP53 obtains order promptly beats driver 51, in step S14, from obtaining in advance and keep reading the information of appointed project the Capability storage part 55 of information of appointed project, and in step S15, return this information to AP53.
AP53 sends Capability repeatedly at the project of needs and obtains order, promptly beats the information that driver 51 obtains necessity from promptly clapping.
Thus, owing to maintain the information of ability (Capability) in the Capability storage part 55 in digital camera 5 in advance, so, when AP53 receives that Capability obtains order, do not need again printer 3 to be conducted interviews.Therefore, AP53 can send after Capability obtains order, obtains the information of ability (Capability) with the extremely short time.Return response with the short time after obtaining order sending Capability, can also shorten the time that AP53 occupies OS,, also can in practicality, can move hardly with going wrong even in single task OS.
In addition, in step S11, also can clap shortly and promptly beat the project that comprises in the initialization command ability (Capability) and carry out specified message.At this moment, promptly clap driver 51 can be obtained the project of designated ability (Capability) from printer 3 the information of promptly beating, also can preferentially from printer 3, obtain the information of the project of designated ability (Capability), then, from printer 3, obtain the information of unappropriated project.
And AP53 can be shown to the information that obtains as described above user interface picture 100 shown in Figure 3.
Fig. 4 is the figure of other communication sequences in this print system 1 of expression.
Communication sequence shown in Figure 4 and the communication sequence of Fig. 2 have following difference.Promptly, its difference is: in the communication sequence of Fig. 2, and then the PTP initialize process 21, promptly clap and promptly beat driver 51 and do not wait for indication from AP53, and printer 3 is sent the DPS_GetCapability order, but in the communication sequence of Fig. 4, after PTP initialize process 201, promptly clap and promptly beat driver 51 after the indication that receives from AP53, send DPS_GetCapability order 207.Below, be that the center describes with this difference.
At first, in step S101, AP53 promptly beats driver 51 and sends promptly to clap and promptly beat initialization command promptly clapping, and bat in sight is promptly beaten driver 51 and received and return notified in step S102 to AP53 after this order.
Then, in step S201, promptly clap and promptly beat the initialize process that driver 51 is carried out PTP, subsequently, in step S203, i.e. bat is promptly beaten driver 51 and is sent the DPS_Configure_Print_Service order, and receives this response from printer 3 in step S204.And then, if printer 3 is ordered the information of notifying the state that could print of expression printer with DPS_NotifyDeviceStatus in step S205, then promptly clap and promptly beat driver 51 and in step S206, this is responded.
Under this state, i.e. bat is promptly beaten driver 51 and is in free time (IDLE) state, becomes the state that wait is ordered next time.At this moment, in step S103, AP53 sends Capability and obtains order, promptly beats driver 51 by i.e. bat and obtains.Obtain in the order at this Capability, at least one project is designated.
Here, in step S207, i.e. bat is promptly made 51 pairs of printers 3 of driver and is sent the DPS_GetCapability order, and obtains the corresponding with it response from printer 3 in step S208.The information of the ability (Capability) that obtains from printer 3 is stored in Capability storage part 55 in step S209.
At this moment, except being obtained by Capability the project of order appointment, i.e. bat is promptly beaten driver 51 and also all items outside it is sent the DPS_GetCapability order, obtains the information of projects, and it is stored in Capability storage part 55.That is, in the present embodiment, when receiving that from AP53 first Capability obtains order, i.e. bat is promptly beaten 51 pairs of project projects in addition by this order appointment of driver and is also obtained ability (Capability).
Then, after these obtain end, in step S104, from Capability storage part 55, read by Capability and obtain order and the information of the project of appointment, and in step S105, return to AP53 from AP53.
According to the processing sequence of present embodiment, also can access the effect identical with processing illustrated in fig. 2.
In addition, for the information that obtains the specified project of order by first Capability, also can not be stored in Capability storage part 55, and promptly beat driver 51 and return to AP53 from promptly clapping from AP53.That is, under this situation, make by first Capability and obtain the information stores of the project outside the specified project of order in Capability storage part 55.Therefore,, then promptly clap and promptly beat driver 51 and obtain this information, turn back to AP53 from Capability storage part 55 if obtain order for sending Capability after this from other the project of AP53.
In addition, as mentioned above, when receiving that first Capability obtains order, i.e. bat is promptly beaten driver 51 and has been obtained the ability of all items (Capability) in the lump, still, also can be divided into repeatedly and obtain.For example, can determine the project that will obtain according to the user interface picture of next one demonstration.
For example, consider following situation: have user interface picture (basic picture) 200 that essential information is shown shown in Figure 5 and the user interface picture (detailed picture) 300 that details are shown shown in Figure 6.At this moment, when basic picture 200 is shown in digital camera 5, obtain order if send the Capability that comprises the content that shows basic picture 200 from AP53, then promptly clap and (for example promptly beat 51 pairs of projects that this picture contained of driver, the print quality information of supporting, paper size, with the layout information of sheet type, file type, support) send DPS_GetCapability and order, and with obtained information stores in Capability storage part 55.Then, when in basic picture 200, having selected detailed setting button, when on digital camera 5, showing detailed picture 300, obtain order if send the Capability that comprises the content that shows detailed picture 300 from AP53, then promptly clap and (for example promptly beat 51 pairs of projects that this picture comprised of driver, the support information that the support information that the support information that filename is printed, the optimization of image are printed, fixed measure are printed, the support information of cutting apart printing of image) send the DPS_GetCapability order, and with obtained information stores in Capability storage part 55.
Above-mentioned embodiment of the present invention is to be used to illustrate example of the present invention, and its purport is not that scope of the present invention is defined in these embodiments.Those skilled in the art can implement the present invention with other variety of way in not breaking away from purport scope of the present invention.
For example, in the above-described embodiment, adopt promptly to clap and promptly beat the standard of directly printing as being used for, but the present invention is also applicable to the standard of promptly clapping outside promptly beating.