201128519 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及一種列印系統及列印方法,尤指一種可列印 移動終端之網頁之列印系統及列印方法。 【先前技冬抒】 [0002] 現今,越來越多移動終端(如手機、個人數位助理等) 支援上網功能,給人們之生活、工作帶來了便利。用戶 可藉由該等移動終端隨時隨地上網查詢所需資訊,有時 ,亦需要將當前瀏覽之網頁列印出來。然,當前大多移 動終端不能與印表機通信連接,因而無法直接將網頁列 印出來,需借助與印表機相連之電腦才能將網頁列印出 來。即使能與印表機通信連接之移動終端,因印表機未 安裝相應之識別、解碼軟體,不能識別移動終端之網頁 ,因而亦無法直接將移動終端之網頁列印出來。 【發明内容】 [0003] 鑒於以上内容,有必要提供一種可直接列印移動終端之 網頁之列印系統及列印方法。 [0004] 一種列印系統,包括一印表機及一可供用戶瀏覽網頁之 移動終端,所述移動終端藉由網路連接至所述印表機, 所述移動終端安裝有一固件並且在打開網頁後提供一列 印所述網頁之按紐,在所述列印網頁之按鈕被啟動後, 所述移動終端之固件將所述網頁轉換為圖片、再將圖片 轉換為印表機檔進而將該印表機檔傳送至所述印表機列 印〇 一種列印方法,包括以下步驟:將一移動終端藉由網路 099103724 表單編號A0101 第4頁/共16頁 0992006997-0 [0005] 201128519 連接至一印表機;在所述移動終端打開一網頁;選擇列 印所述網頁;將網頁轉換為圖片;將圖片轉換成印表機 檔;將所述印表機檔傳送至所述印表機;及將所述網頁 顯示之内容列印出來。 [0006] Ο [0007] [0008]201128519 VI. Description of the Invention: [Technical Field] The present invention relates to a printing system and a printing method, and more particularly to a printing system for printing a web page of a mobile terminal and a printing method. [Previous technical winter 抒] [0002] Nowadays, more and more mobile terminals (such as mobile phones, personal digital assistants, etc.) support the Internet access function, which brings convenience to people's life and work. Users can use the mobile terminals to access the information they need at any time and any place. Sometimes, they need to print the currently viewed web pages. However, most mobile terminals currently cannot communicate with the printer, so the web page cannot be printed directly, and the web page connected to the printer can be used to print the web page. Even if the mobile terminal can communicate with the printer, since the printer does not have the corresponding identification and decoding software installed, the web page of the mobile terminal cannot be identified, and thus the web page of the mobile terminal cannot be directly printed. SUMMARY OF THE INVENTION [0003] In view of the above, it is necessary to provide a printing system and a printing method for directly printing a web page of a mobile terminal. [0004] A printing system includes a printer and a mobile terminal for a user to browse a webpage, the mobile terminal is connected to the printer by a network, the mobile terminal is installed with a firmware and is open After the webpage is provided with a button for printing the webpage, after the button of the printing webpage is activated, the firmware of the mobile terminal converts the webpage into a picture, and then converts the image into a printer file, thereby The printer file is sent to the printer for printing a printing method, comprising the following steps: a mobile terminal by network 099103724 Form No. A0101 Page 4 / Total 16 Page 0992006997-0 [0005] 201128519 Connecting to a printer; opening a webpage at the mobile terminal; selecting to print the webpage; converting the webpage into a picture; converting the picture into a printer file; transmitting the printer file to the printing a watch machine; and print out the content displayed on the web page. [0006] [0008] [0008]
相對習知技術,本發明實施方式中,該列印系統及列印 方法可將移動終端顯示之網頁轉換成印表機檔,並傳送 至印表機列印,無需於印表機端額外安裝軟體,可根據 用戶之需要方便地列印移動終端顯示之網頁。 【實施方式】 請參閱圖1,本發明之一實施方式中,一種列印系統包括 一可瀏覽網頁之移動終端10及一印表機20。所述移動終 端10藉由區域網(LAN)30與所述印表機20相連。所述區 域網30可以是基於GPRS、WIFKWireless Fidelity, 無線保真)、藍牙等協定之無線網路。 請參閱圖2,所述移動終端10包括一第一轉換模組12、一 第二轉換模組14、一印表機搜索模組〗6及一用於傳送待 列印資料至所述印表機20的傳送模組18,所述第一轉換 模組12、第二轉換模組14、印表機搜索模組16及傳送模 組18可作為一個固件(firmware)安裝於所述移動終端 10中,在不需要列印時,該固件處於休眠狀態,不佔用 系統資源,不會影響所述移動終端10運行其他應用程式 之效率。用戶可在所述移動終端10打開網頁,所述移動 終端10顯示之介面包括一列印按鈕,在需要列印當前顯 示之網頁時,可啟動該列印按鈕,發出列印該網頁之指 令。列印之前,所述第一轉換模組12將所述網頁轉換為 099103724 表單編號A0101 第5頁/共16頁 0992006997-0 201128519 圖片,所述第二轉換模組14將所述圖片轉換成所述印表 機20能識別之prn檔(print檔,又稱印表機檔,擴展名 為.prn) ’所述印表機搜索模組π藉由發出upnp (Uni_ versal Plug and Play,通用即插即用)信號搜索所 述印表機20之資訊(包括印表機之ip位址、埠號、型號 等),所述傳送模組18根據所述印表機2〇之ip位址、埠 號將所述prn檔傳送至所述印表機20,所述印表機2〇在收 到所述prn檐之後,即可將所述網頁列印出來。 [0009] 請參閱圖3 - 5,一種基於上述列印:系統之列印方法,包括 以下步驟: [0010] S01 :打開網路瀏覽器,在所述移動終端10打開需要列印 之網頁。 [0011] [0012] [0013] S02 :在所述移動終端1〇網路瀏覽器之功能表(menu)下 找到列印按鈕。 : S〇 3 :啟動所述移動終端1 〇上顯示之列印按紐,發出列印 所述網頁之指令。 S04 :所述移動終端10將所述網頁轉換成所述印表機2〇能 識別之prn標。 [0014] 該步驟S04進一步包括如下子步驟(見圖4): [0015] S41 :下載URL ( Uni form Resource Locator,統一資 源定位器)’ URL亦被稱為網頁位址,是網際網路上標準 的資源的位址,根據該網頁位址,可找到所需列印之網 頁; 099103724 表單蝙號A0101 第6頁/共16頁 0992006997-0 201128519 [0016] [0017] S42 :計算網頁框架大小, 終端10之第一轉換模組12根據網頁、 S43 :所述移動 寸構建圖片榧架; [0018] [0019] 544 :所述移動 容複製到圖片榧架上; 545 :所述移動終端10之第 終端10之第一轉換模組12將網頁顯厂 之内 轉換模組12將網買擁存為Compared with the prior art, in the embodiment of the present invention, the printing system and the printing method can convert the webpage displayed by the mobile terminal into a printer file and transmit it to the printer for printing, without additionally installing on the printer end. The software can conveniently print the webpage displayed by the mobile terminal according to the needs of the user. [Embodiment] Please refer to FIG. 1. In an embodiment of the present invention, a printing system includes a mobile terminal 10 and a printer 20 that can browse a webpage. The mobile terminal 10 is connected to the printer 20 via a local area network (LAN) 30. The regional network 30 may be a wireless network based on protocols such as GPRS, WIFK Wireless Fidelity, Bluetooth, and Bluetooth. Referring to FIG. 2, the mobile terminal 10 includes a first conversion module 12, a second conversion module 14, a printer search module 6 and a device for transmitting the data to be printed to the printer. The transmission module 18 of the machine 20, the first conversion module 12, the second conversion module 14, the printer search module 16 and the transmission module 18 can be installed as a firmware on the mobile terminal 10. In the case that printing is not required, the firmware is in a dormant state, does not occupy system resources, and does not affect the efficiency of the mobile terminal 10 running other applications. The user can open a webpage at the mobile terminal 10. The interface displayed by the mobile terminal 10 includes a print button. When the currently displayed webpage needs to be printed, the print button can be activated to issue an instruction to print the webpage. Before the printing, the first conversion module 12 converts the webpage into a 099103724 form number A0101 page 5 / a total of 16 pages 0992006997-0 201128519 picture, the second conversion module 14 converts the picture into a The printer can recognize the prn file (print file, also known as printer file, extension.prn). The printer search module π is issued by upnp (Uni_ versal Plug and Play, universal The plug-and-play signal searches for information of the printer 20 (including the IP address, nickname, model, etc. of the printer), and the transfer module 18 is based on the IP address of the printer 2 The nickname transmits the prn file to the printer 20, and the printer 2 can print the web page after receiving the prn. Referring to FIG. 3-5, a printing method based on the above printing system includes the following steps: [0010] S01: Opening a web browser to open a webpage to be printed on the mobile terminal 10. [0013] [0213] S02: Find a print button under the menu of the mobile terminal 1 web browser. : S〇 3: The print button displayed on the mobile terminal 1 is activated, and an instruction to print the web page is issued. S04: The mobile terminal 10 converts the web page into a prn target that the printer 2 can recognize. [0014] The step S04 further includes the following sub-steps (see FIG. 4): [0015] S41: Download URL (Uniform Resource Locator) URL is also referred to as a web address, which is a standard on the Internet. The address of the resource, according to the address of the webpage, can find the webpage to be printed; 099103724 Form bat number A0101 Page 6 / Total 16 page 0992006997-0 201128519 [0016] [0017] S42: Calculate the size of the webpage frame, The first conversion module 12 of the terminal 10 constructs a picture truss according to the webpage, S43: the mobile inch; [0019] 544: the mobile capacity is copied to the picture truss; 545: the mobile terminal 10 The first conversion module 12 of the terminal 10 stores the online shopping module 12 as a conversion module of the webpage display factory.
[0020] [0021] [0022] [0023] [0024] 〇 [0025] [0026] 546 :所述移動終端10之第二轉換模組14將圖片轉換為 述印表機20能識別之prn檔;及 547 :儲存所述Prn槽。 傳送多 S05 :所述移動終端10之傳送模組18將所述ΡΠ1 所述印表機20 ° 該步驟S05包括如下子步棘:,,., 551 :所述㈣終端1G之印表機搜索模組16搜^述印表 機2 0之IP位址、埠號等資訊; 552 :判斷取得印表機資訊是否成功? 553 :如果取得印表機資訊成功’所述移動終端1G之傳送 模組18根據所述印表機20之IP位址及埠號開始發送所述 prn檔;如果未取得印表機資訊,則結束後繼流程’ [0027] S54 :判斷所述印表機20是否成功接收所述prn檔?如果 所述印表機20能成功接收所述prn檔,則進入步驟S55 ; 如果所述印表機20不能成功接收所述prn權,則結束後繼 099103724 表單編號A0101 第7頁/共16頁 0992006997-0 201128519 流程; [0028] S55 :判斷所述prn檔是否發送完畢,如果所述prn檔傳 送完畢,則傳送所述prn檔之流程結束,可繼續後繼流程 ;如果所述prn檔尚未發送完畢,則返回步驟S53繼續發 送所述prn檀案。 [0029] S0 6 :所述印表機20開始列印所述prn檔。 [0030] S07 :判斷列印是否成功? [0031] S08 :如果列印任務成功,則返回列印成功資訊至移動終 端10。 [0032] S09 :如果列印任務不成功,則返回列印出錯之資訊至移 動終端10。 [0033] S1 0 :收到列印出錯之資訊後,找出出錯原因進行出錯處 理。 [0034] 本發明實施方式中之列印系統及列印方法具有以下優點 :1 ·適用性高:僅需要在所述移動終端10上安裝一個固 件(firmware),該固件之程式平時處於休眠狀態,需 要列印時啟動,不會影響系統之效率。2 ·操作簡單:僅 需要在所述移動終端10上輸入網址,再點擊列印按鈕即 可列印當前瀏覽之網頁。3 ·使用方便:用戶可時隨地 進行列印,解決了以往不能在移動終端上列印網頁之苦 惱。4 .節約成本:僅需要開發移動終端之固件,不必在 印表機端開發任何軟體,無需印表機生產商之技術支援 099103724 表單編號A0101 第8頁/共16頁 0992006997-0 201128519 [0035] 综上所述,本創作確已符合發明專利要求,爰依法提出 專利申請。惟,以上所述者僅為本創作之較佳實施例, 舉凡熟悉本創作技藝之人士,爰依本創作之精神所作之 等效修飾或變化,皆應涵蓋於以下之申請專利範圍内。 【圖式簡單說明】 [0036] 圖1為本發明一實施方式中列印系統組成圖。 [0037] 圖2為圖1中移動終端之組成圖。 [0038] 圖3為本發明一實施方式中列印方法之流程圖。[0025] [0024] [0025] [0026] 546: The second conversion module 14 of the mobile terminal 10 converts the picture into a prn file that the printer 20 can recognize. ; and 547: Store the Prn slot. Transmitting multiple S05: the transmitting module 18 of the mobile terminal 10 will use the printer 1 of the ΡΠ1. The step S05 includes the following sub-steps: ,,, 551: the printer of the (4) terminal 1G is searched. The module 16 searches for the IP address, nickname and the like of the printer 20; 552: Determine whether the information of the printer is successful? 553: If the printer information is successfully obtained, the transmission module 18 of the mobile terminal 1G starts to send the prn file according to the IP address and the nickname of the printer 20; if the printer information is not obtained, Ending the subsequent process '[0027] S54: determining whether the printer 20 successfully receives the prn file? If the printer 20 can successfully receive the prn file, proceed to step S55; if the printer 20 cannot successfully receive the pnn right, then the subsequent 099103724 form number A0101 page 7 / total 16 pages 0992006997 -0 201128519 process; [0028] S55: determining whether the prn file is sent, if the pnn file is transmitted, the process of transmitting the prn file ends, and the subsequent process may continue; if the prn file has not been sent yet Then, returning to step S53, the transmission of the prn is continued. [0029] S0 6: The printer 20 starts printing the prn file. [0030] S07: Determine whether the printing is successful? [0031] S08: If the printing task is successful, the printing success information is returned to the mobile terminal 10. [0032] S09: If the printing task is unsuccessful, the information of the printing error is returned to the mobile terminal 10. [0033] S1 0: After receiving the information of the printing error, the cause of the error is found and the error processing is performed. [0034] The printing system and the printing method in the embodiment of the present invention have the following advantages: 1. High applicability: only one firmware needs to be installed on the mobile terminal 10, and the firmware program is normally in a sleep state. , need to start when printing, will not affect the efficiency of the system. 2 · Simple operation: It is only necessary to input a web address on the mobile terminal 10, and then click the print button to print the currently viewed web page. 3 • Easy to use: Users can print anywhere and anytime, solving the problem of not being able to print web pages on mobile terminals in the past. 4. Cost saving: only need to develop the firmware of the mobile terminal, no need to develop any software on the printer side, no technical support of the printer manufacturer 099103724 Form No. A0101 Page 8 / Total 16 Page 0992006997-0 201128519 [0035] In summary, this creation has indeed met the requirements of the invention patent, and has filed a patent application in accordance with the law. However, the above description is only a preferred embodiment of the present invention, and equivalent modifications or variations made by those skilled in the art of the present invention should be included in the following claims. BRIEF DESCRIPTION OF THE DRAWINGS [0036] FIG. 1 is a diagram showing the composition of a printing system according to an embodiment of the present invention. 2 is a composition diagram of the mobile terminal of FIG. 1. 3 is a flow chart of a printing method according to an embodiment of the present invention.
[0039] 圖4為圖3中步驟S04之流程圖。 [0040] 圖5為圖3中步驟S05之流程圖。 【主要元件符號說明】 [0041] 移動終端:10 [0042] 第一轉換模組:124 is a flow chart of step S04 in FIG. 3. [0040] FIG. 5 is a flow chart of step S05 in FIG. [Main component symbol description] [0041] Mobile terminal: 10 [0042] First conversion module: 12
[0043] 第二轉換模組:14 [0044] 印表機搜索模組:16 [0045] 傳送模組:18 [0046] 印表機:20 [0047] 區域網:30 099103724 表單編號A0101 第9頁/共16頁 0992006997-0[0043] Second conversion module: 14 [0044] Printer search module: 16 [0045] Transmission module: 18 [0046] Printer: 20 [0047] Area network: 30 099103724 Form number A0101 No. 9 Page / Total 16 Pages 0992006997-0