CN101287054A - Apparatus and method for direct printing - Google Patents

Apparatus and method for direct printing Download PDF

Info

Publication number
CN101287054A
CN101287054A CNA2008101063248A CN200810106324A CN101287054A CN 101287054 A CN101287054 A CN 101287054A CN A2008101063248 A CNA2008101063248 A CN A2008101063248A CN 200810106324 A CN200810106324 A CN 200810106324A CN 101287054 A CN101287054 A CN 101287054A
Authority
CN
China
Prior art keywords
unit
printer
pictbridge
ptp
control command
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.)
Pending
Application number
CNA2008101063248A
Other languages
Chinese (zh)
Inventor
李志刚
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.)
Vimicro Corp
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CNA2008101063248A priority Critical patent/CN101287054A/en
Publication of CN101287054A publication Critical patent/CN101287054A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a device for direct printing, which comprises: a transmission unit comprises a sending module used for sending objects encapsulated from a PTP unit to a printer, a receiving module used for sending a pictbridge control command from the printer to the PTP unit, wherein, the PTP unit comprises: a data manipulation module used for executing the pictbridge control command from the printer and respectively encapsulating the data, the pictbridge control command in a command control module and XML documents of a DPS unit as objects which are sent to the transmission unit; and a command control module used for sending the pictbridge control command to the printer so as to establish a transmission connection, wherenin, the DPS unit is used for selecting the corresponding XML documents and triggering the PTP unit to send the data to the printer and so on. The invention also discloses a method for direct printing. The device and method of the invention can be applied in mobile terminals such as digital cameras, telephones, etc., thus realizing direct printing.

Description

A kind of apparatus and method of direct printing
Technical field
The present invention relates to field of computer technology, be meant a kind of apparatus and method of direct printing especially.
Background technology
Printer when print image, generally with the image data transmission of mobile phone or digital camera storage to computer, realize the printing of image by the printer that computer connected.When adopting this technology to print, because on need the computer with the unloading of view data elder generation, the hardware integrated level of computer be higher, uses on mobile phone that the inapplicable integrated level of the printing technique of Ying Yonging is lower or the digital camera on computers; In addition, owing to need the unloading of view data, when the client need print image or not have to supply the computer of view data unloading at short notice, the image that is stored on mobile phone or the digital camera can't be realized printing.
Summary of the invention
In view of this, the invention reside in the apparatus and method that a kind of direct printing is provided, to solve the problem of using on lower mobile phone of the above-mentioned inapplicable integrated level of using on computers of printing technique or the digital camera.
For addressing the above problem, the invention provides a kind of device of direct printing, comprising:
Transmission unit, image transmission control PTP unit, digital picture control DPS unit,
Described transmission unit comprises:
Sending module is used for will transferring to printer from the object of described PTP unit package, print data with predetermined physical layer protocol form;
Receiver module is used for will transferring to described PTP unit from the pictbridge control command of printer with predetermined physical layer protocol form;
Described PTP unit comprises:
Data operation modules is used to carry out the pictbridge control command from described printer, and the XML file of the pictbridge control command in described data, the command control module, described DPS unit is encapsulated as object respectively, is sent to described transmission unit;
Command control module is used to carry out described DPS unit triggers, sends the pictbridge control command to printer, sets up transmission and connects;
Described DPS unit comprises:
Trigger module is used for selecting corresponding XML file according to user's operation, triggers described PTP unit and sends the pictbridge control command that begins to transmit described data, reaches the XML file to printer.
Preferably, described sending module, receiver module are the module with bluetooth, USB, infrared or 802.11 functions.
Preferably, described PTP also has identification module in the unit, is used to the object of each encapsulation to give unique sign.
Preferably, described DPS unit also comprises:
Parsing module, it is preferred to be used to resolve the XML literary composition from printer that described receiver module receives, and described device is installed in mobile phone or the digital camera.
The present invention also provides a kind of method of direct printing, comprising:
Corresponding XML file is selected according to the operation of user's input in the DPS unit, and trigger the PTP unit and send the pictbridge control command that has been ready to the XML file to printer, the pictbridge control command that transmission unit sends described PTP unit is encapsulated as object and transfers to printer;
Described PTP unit receives and to obtain the pictbridge control command of XML file from printer, and described XML file is encapsulated as object by described transmission unit transfers to printer;
Described PTP unit receives from behind the printer analyzing XML file, and the pictbridge control command of obtaining data of transmission, the data encapsulation that will print are that object transfers to printer and prints.
Preferably, described transmission unit is transmitted as:
Adopt bluetooth, USB, infrared or 802.11 technical transmission.
Preferably, printer prints also comprises after finishing: described DPS unit receives the XML file from printer, and the information that parses is shown to the user.
Preferably, also comprise, when described transmission unit transmits described object, for each object is given unique sign respectively.
Device of the present invention can be installed in mobile phone, digital camera etc. to have in the terminal of memory function or camera function, terminal is with after printer is connected, can or use method of the present invention to realize printing image, the text data of storage by device of the present invention, and needn't pass through apparatus such as computer unloading data, transfer of data is convenient, the realization printing function is simple, has satisfied user's direct printing demand.
Description of drawings
Fig. 1 is the embodiment of apparatus of the present invention;
Fig. 2 is the embodiment of the inventive method.
Embodiment
For clearly demonstrating apparatus and method of the present invention, provide preferred embodiment below and be described with reference to the accompanying drawings.
Referring to Fig. 1, this device comprises: transmission unit, picture transmission control (PTP, picturetransfer protocol) unit, digital picture control (DPS, Digital Photo Solutions) unit,
Described transmission unit comprises:
Sending module is used for will transferring to printer from the object of described PTP unit package, print data with predetermined physical layer protocol form;
Receiver module is used for will transferring to described PTP unit from the pictbridge control command of printer with predetermined physical layer protocol form;
Described PTP unit comprises:
Data operation modules is used to carry out the pictbridge control command from described printer, and the XML file of the pictbridge control command in described data, the command control module, described DPS unit is encapsulated as object respectively, is sent to described transmission unit;
Command control module is used to carry out described DPS unit triggers, sends the pictbridge control command to printer, sets up transmission and connects;
Described DPS unit comprises:
Trigger module is used for selecting corresponding XML file according to user's operation, triggers described PTP unit and sends the pictbridge control command that begins to transmit described data, reaches the XML file to printer.
In this device busy process, after connecting with printer, carry out initialization and connect, the user searches the data that will print by the operating system on the terminal, and data can be text data or view data etc.; The user finds data by the operating system on the terminal, and the input operation order, and corresponding XML file is selected with the operational order of user's input in the DPS unit in the device, and the XML file of selecting is converted into the pictbridge control command; The pictbridge control command that transforms can be selected text data or select image data etc., text data that printing is chosen or image data etc. for opening file.
Data operation modules in the PTP unit can generate the pictbridge control command according to the printing incident, as the trigger action data according to printer, data, pictbridge control command is encapsulated as operations such as object respectively.The command operation module can receive the pictbridge control command of DPS unit, to described data manipulation, as selecting image data etc.; Object Object after the PTP unit will encapsulate is sent to transmission unit; Also have identification module in the PTP unit,, give unique sign ID, to guarantee the data correctness in printer interface time receiving each object for guaranteeing the correctness of transmission.
Transmission unit transfers to printer with data, the pictbridge control command that is encapsulated as object respectively, the control print data.Sending module in the transmission unit, receiver module can adopt have bluetooth, the module of USB, infrared or 802.11 functions.
This device with the data exchange process of printer in, can receive the XML file that printer sends, also comprise parsing module in the DPS unit, behind the XML file that receives by transmission unit, parsing module can be resolved, the data that parse are shown to the client, as the attribute of current time-write interval, print data, whether print successfully and wait.
Top embodiment describes device of the present invention in detail, describes the embodiment of the inventive method in detail below in conjunction with accompanying drawing.
Participate in Fig. 2, this method comprises:
Corresponding XML file is selected according to the operation of user's input in the 201:DPS unit, and trigger the PTP unit and send the pictbridge control command that has been ready to the XML file to printer, the pictbridge control command that transmission unit sends described PTP unit is encapsulated as object and transfers to printer;
202: described PTP unit receives and to obtain the pictbridge control command of XML file from printer, and described XML file is encapsulated as object by described transmission unit transfers to printer;
203: described PTP unit receives from behind the printer analyzing XML file, and the pictbridge control command of obtaining data of transmission, the data encapsulation that will print are that object transfers to printer and prints.
In 202, unique correct when guaranteeing the object transmission given a unique sign for each object, avoids abandoning identical object in the printer interface time receiving, with the correctness that guarantees to receive.
In 203, when transmission data and control command, can adopt bluetooth, USB, infrared or 802.11 technical transmission,
In the process of print data, printer can return the state of printing and the result of printing with the form of XML file, therefore, in the process of printing, as receive XML file, the data in the XML file that parses are shown to the user from printer, as printing image data, picture name is " landscape ", and size is 138K, prints successfully.
Select corresponding XML file by user's operation, described XML file is converted into the pictbridge control command,, print image data etc. as selected image data; Can generate corresponding pictbridge control command according to the printing incident,, data are divided into operations such as object, transmission data as trigger action data according to printer.
Device of the present invention can be installed in mobile phone, digital camera etc. to have in the terminal of memory function or camera function, terminal is with after printer is connected, can or use method of the present invention to realize printing image, the text data of storage by device of the present invention, and needn't pass through apparatus such as computer unloading data, transfer of data is convenient, the realization printing function is simple, has satisfied user's direct printing demand.
For the apparatus and method of being set forth among each embodiment of the present invention, within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1, a kind of device of direct printing is characterized in that, comprising: transmission unit, image transmission control PTP unit, digital picture control DPS unit,
Described transmission unit comprises:
Sending module is used for will transferring to printer from the object of described PTP unit package, print data with predetermined physical layer protocol form;
Receiver module is used for will transferring to described PTP unit from the pictbridge control command of printer with predetermined physical layer protocol form;
Described PTP unit comprises:
Data operation modules is used to carry out the pictbridge control command from described printer, and the XML file of the pictbridge control command in described data, the command control module, described DPS unit is encapsulated as object respectively, is sent to described transmission unit;
Command control module is used to carry out described DPS unit triggers, sends the pictbridge control command to printer, sets up transmission and connects;
Described DPS unit comprises:
Trigger module is used for selecting corresponding XML file according to user's operation, triggers described PTP unit and sends the pictbridge control command that begins to transmit described data, reaches the XML file to printer.
2, device according to claim 1 is characterized in that, described sending module, receiver module are the module with bluetooth, USB, infrared or 802.11 functions.
3, device according to claim 1 is characterized in that, described PTP also has identification module in the unit, is used to the object of each encapsulation to give unique sign.
4, device according to claim 1 is characterized in that, described DPS unit also comprises:
Parsing module is used to resolve the XML file from printer that described receiver module receives, and is converted into user's identifiable information and is shown to the user.
5, device according to claim 1 is characterized in that, described device is installed in mobile phone or the digital camera.
6, a kind of method of direct printing is characterized in that, comprising:
Corresponding XML file is selected according to the operation of user's input in the DPS unit, and trigger the PTP unit and send the pictbridge control command that has been ready to the XML file to printer, the pictbridge control command that transmission unit sends described PTP unit is encapsulated as object and transfers to printer;
Described PTP unit receives and to obtain the pictbridge control command of XML file from printer, and described XML file is encapsulated as object by described transmission unit transfers to printer;
Described PTP unit receives from behind the printer analyzing XML file, and the pictbridge control command of obtaining data of transmission, the data encapsulation that will print are that object transfers to printer and prints.
7, method according to claim 6 is characterized in that, described transmission unit is transmitted as:
Adopt bluetooth, USB, infrared or 802.11 technical transmission.
8, method according to claim 6 is characterized in that, printer prints also comprises after finishing: described DPS unit receives the XML file from printer, and the information that parses is shown to the user.
9, method according to claim 6 is characterized in that, also comprises, when described transmission unit transmits described object, for each object is given unique sign respectively.
CNA2008101063248A 2008-05-12 2008-05-12 Apparatus and method for direct printing Pending CN101287054A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101063248A CN101287054A (en) 2008-05-12 2008-05-12 Apparatus and method for direct printing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101063248A CN101287054A (en) 2008-05-12 2008-05-12 Apparatus and method for direct printing

Publications (1)

Publication Number Publication Date
CN101287054A true CN101287054A (en) 2008-10-15

Family

ID=40059010

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101063248A Pending CN101287054A (en) 2008-05-12 2008-05-12 Apparatus and method for direct printing

Country Status (1)

Country Link
CN (1) CN101287054A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340582A (en) * 2010-07-20 2012-02-01 上海闻泰电子科技有限公司 Mobile phone with functions of printing while photographing
CN101800835B (en) * 2009-01-28 2013-06-12 夏普株式会社 Communication system, information processing system, image forming apparatus and portable information terminal device
CN106325784A (en) * 2016-08-18 2017-01-11 沈迪 Method and system for printing instant message on package surface and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800835B (en) * 2009-01-28 2013-06-12 夏普株式会社 Communication system, information processing system, image forming apparatus and portable information terminal device
CN102340582A (en) * 2010-07-20 2012-02-01 上海闻泰电子科技有限公司 Mobile phone with functions of printing while photographing
CN106325784A (en) * 2016-08-18 2017-01-11 沈迪 Method and system for printing instant message on package surface and mobile terminal

Similar Documents

Publication Publication Date Title
RU2346406C2 (en) Portable communication device, printer system and control method implemented by them
CN101573957B (en) Method and apparatus for transferring images from imaging device to remote device
CN1838674B (en) Image forming system, image forming method and information terminal device
CN1984220B (en) Recording system and control method thereof
EP2080101B1 (en) Wireless card and card holder for digital camera
CN103581287A (en) Push notification system and method
JP2004310672A (en) Data input device and image output system
US20060092457A1 (en) Printing method using ordering file, and print system, image supply device and print device employing the method
US8144343B2 (en) Printing apparatus and an image supply device using picture transfer protocol having a function which checks attribute information of a file object managed in the image supply device
JP2004013348A5 (en)
CN1499386A (en) Image transceiver system, image transferring device and image receiver
CN104281423A (en) Printing method and printing system
CN101287054A (en) Apparatus and method for direct printing
US20090002757A1 (en) Converter and control method of converter
CN103412728A (en) Method and system for device file printing based on local area network
KR100569818B1 (en) Mobile Printing Device in use Wireless Communication
JP5219930B2 (en) Image transmission apparatus and image transmission method
JP2007034886A (en) Image output device, image output method, and network connection apparatus
JP2005119255A (en) Calling card printing device with function for incorporating cellular phone image
CN102917155A (en) Scanner, intelligent scanner system and method for controlling far-end printing of scanner
CN101299789B (en) Image transmission device and method
JP2007025771A (en) Image forming system and cell-phone unit
CN203522861U (en) Scanner with bidirectional wireless communication function
CN101566973A (en) Shooting and storing system capable of directly transmitting photos to computer
KR200297574Y1 (en) Direct Printing System For Mobile Phone Having Digital Camera

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20081015