TW201928693A - A real time lateral recording circuit for a printer, method, and non-transitory computer readable storage medium - Google Patents
A real time lateral recording circuit for a printer, method, and non-transitory computer readable storage medium Download PDFInfo
- Publication number
- TW201928693A TW201928693A TW106144846A TW106144846A TW201928693A TW 201928693 A TW201928693 A TW 201928693A TW 106144846 A TW106144846 A TW 106144846A TW 106144846 A TW106144846 A TW 106144846A TW 201928693 A TW201928693 A TW 201928693A
- Authority
- TW
- Taiwan
- Prior art keywords
- printer
- chip
- authentication command
- compatible
- response value
- Prior art date
Links
Abstract
Description
本發明係有關於一種印表機晶片的即時側錄電路、方法、及非暫態電腦可讀取記錄媒體,特別是指一種用於印表機碳粉匣或其他類似耗材的即時側錄電路、方法、及非暫態電腦可讀取記錄媒體。 The invention relates to an instant recording circuit and method for a printer chip, and a non-transitory computer readable recording medium, in particular to an instant side recording circuit for a printer toner cartridge or other similar consumables. , methods, and non-transitory computers can read recording media.
印表機的通訊協定涵蓋多種已知或未知的協議,在已知的協議上包含I2C(Inter-Integrated Circuit)通訊協定、UART(Universal Asynchronous Receiver/Transmitter)通訊協定、SPI通訊協議以及寬窄比通訊協議等等,這些協議均是利用一只或多只時脈線(CLK)、以及一只或多只資料線(SDA)傳輸訊號,以協同單一個或複數個主、從裝置完成資料收送。 The printer's communication protocol covers a variety of known or unknown protocols, including I2C (Inter-Integrated Circuit) protocol, UART (Universal Asynchronous Receiver/Transmitter) protocol, SPI protocol, and wide-narrow-ratio communication. Protocols, etc., all of which use one or more clock lines (CLK) and one or more data lines (SDA) to transmit signals to cooperate with a single or multiple master and slave devices to complete data transmission. .
印表機對應於晶片的命令,一般分成二大類,其中一種是加密的認證命令,另一種是讀寫內部數據的命令。目前市面上,印表機生產廠商為了維持企業的利潤,多會在命令中參雜認證命令,以排除用戶使用它廠晶片。其中認證命令就是印表機所送出 的題目,晶片要能正確回答答案,印表機才會繼續讀取晶片。為了破解這些加密運算,需要花費很多時間及人力進行研究分析。有些認證命令無法由兼容晶片執行、或是必須耗費相當大的資源去破解,導致耗材沒法被再生使用,同時相容耗材廠商也沒法生產可通用的耗材,使得印表機廠商得以壟斷市場、限制競業競爭,造成消費者無法選擇其他更符合自身需求的耗材。 Printers correspond to wafer commands and are generally divided into two categories, one of which is an encrypted authentication command and the other is a command to read and write internal data. In the market, in order to maintain the profits of the company, printer manufacturers will often use the certification order in the order to exclude users from using the factory chips. The certification order is sent by the printer. The title of the wafer, in order to correctly answer the answer, the printer will continue to read the wafer. In order to crack these encryption operations, it takes a lot of time and manpower to conduct research and analysis. Some authentication commands cannot be executed by compatible chips, or they must be devastated by considerable resources, resulting in consumables being reusable, and compatible consumable manufacturers cannot produce universal consumables, allowing printer manufacturers to monopolize the market. Restricting competition in competition, causing consumers to choose other consumables that are more in line with their own needs.
本發明的主要目的,在於解決習知兼容晶片無法處理並執行認證命令的缺失。 The main object of the present invention is to solve the problem that the conventional compatible chip cannot process and execute the authentication command.
為達到上述目的,本發明係提供一種印表機晶片的即時側錄電路,包括一個或複數個原廠晶片及一個或複數個兼容晶片,並聯設置於印表機端的串列資料匯流排(SDA)及串列時脈匯流排(SCL)上,其中,該兼容晶片於接收到該印表機端詢答的認證命令時,係回報錯誤訊息至該印表機端,並啟動一側錄模組記錄該印表機端詢答的認證命令以及由該原廠晶片回傳的回應值以供該印表機端再次對該兼容晶片詢答時進行驗證。 In order to achieve the above object, the present invention provides an instant recording circuit for a printer chip, comprising one or a plurality of original wafers and one or more compatible wafers, and a serial data bus (SDA) arranged in parallel at the printer end. And the serial clock bus (SCL), wherein the compatible chip returns an error message to the printer end when receiving the authentication command of the printer end inquiry, and starts the side recording mode The group records the authentication command of the printer end inquiry and the response value returned by the original wafer for verification when the printer end queries the compatible wafer again.
進一步地,該兼容晶片係具有一用以儲存該認證命令及該回應值的儲存單元。 Further, the compatible chip has a storage unit for storing the authentication command and the response value.
進一步地,該兼容晶片係將該認證命令及該回應值製作成查找表(Look-up table)儲存於該儲存單元內。 Further, the compatible chip is configured to store the authentication command and the response value into a look-up table in the storage unit.
本發明的另一目的,在於提供一種印表機晶片的即時側錄方法,包括:接收該印表機端詢答的認證命令;於無法處理 時,回報錯誤訊息至該印表機端;以及經由串列資料匯流排(SDA)及串列時脈匯流排(SCL)側錄該印表機端詢答的認證命令以及由該原廠晶片回傳的回應值。 Another object of the present invention is to provide an instant side recording method for a printer chip, comprising: receiving an authentication command of the printer end inquiry; Returning an error message to the printer; and verifying the printer's authentication command via the serial data bus (SDA) and the serial clock bus (SCL) and the original wafer The response value returned.
進一步地,所述的印表機晶片的即時側錄方法包括將該詢答的認證命令以及由該原廠晶片回傳的該回應值做成查找表並儲存於一儲存單元內。 Further, the instant recording method of the printer chip includes the authentication command of the inquiry and the response value returned by the original wafer as a lookup table and stored in a storage unit.
進一步地,於接收到該印表機的認證命令時,係依據該查找表搜尋對應的回應值並將其回送至該印表機端。 Further, when receiving the authentication command of the printer, the corresponding response value is searched according to the lookup table and sent back to the printer.
本發明的另一目的,在於提供一種非暫態電腦可讀取記錄媒體,係用以儲存一程式,並供處理器載入該程式後係執行如上所述的方法。 Another object of the present invention is to provide a non-transitory computer readable recording medium for storing a program and for loading the program by the processor to perform the method as described above.
是以,本發明的兼容晶片部分的命令除了可以透過兼容晶片自己回應,無法進行的命令則透過印表機端讀取原廠晶片時側錄認證命令及回應值而供再次驗證時作為回應值,藉此可以大幅地降低開發兼容晶片時所需的時間及人力成本。 Therefore, in addition to the command of the compatible chip portion of the present invention, the command that cannot be performed can be used as a response value by reading the authentication command and the response value when the original wafer is read by the printer terminal for re-verification. This can greatly reduce the time and labor costs required to develop compatible wafers.
100‧‧‧即時側錄電路 100‧‧‧ Instant side recording circuit
10‧‧‧碳粉匣 10‧‧‧Toner
12‧‧‧原廠晶片 12‧‧‧Original wafer
11‧‧‧兼容晶片 11‧‧‧Compatible wafer
111‧‧‧微處理器 111‧‧‧Microprocessor
112‧‧‧儲存單元 112‧‧‧storage unit
11A‧‧‧驗證模組 11A‧‧‧ verification module
11B‧‧‧側錄模組 11B‧‧‧Side recording module
20‧‧‧印表機端 20‧‧‧Printer end
步驟S01-步驟S04 Step S01-Step S04
圖1,係為本發明印表機的即時側錄電路的方塊示意圖(一)。 FIG. 1 is a block diagram (1) of an instant side recording circuit of the printer of the present invention.
圖2,係為本發明印表機的即時側錄電路的方塊示意圖(二)。 2 is a block diagram (2) of the instant side recording circuit of the printer of the present invention.
圖3,係為本發明印表機的即時側錄方法的流程示意圖。 FIG. 3 is a schematic flow chart of the instant side recording method of the printer of the present invention.
有關本發明之詳細說明及技術內容,現就配合圖式說明如下。再者,本發明中之圖式,為說明方便,其比例未必照實際比例繪製,該等圖式及其比例並非用以限制本發明之範圍,在此先行敘明。 The detailed description and technical contents of the present invention will now be described with reference to the drawings. In addition, the drawings in the present invention are for convenience of description, and the ratios thereof are not necessarily drawn to actual scales, and the drawings and their proportions are not intended to limit the scope of the present invention, and are described herein.
於本發明中所述的時脈線、資料線並不限於一只,舉凡時脈線、資料線數量的擴充或增加均屬於本發明所欲保護的範圍。 The clock line and the data line described in the present invention are not limited to one. Any expansion or increase of the number of clock lines and data lines is within the scope of the present invention.
以下係針對本發明舉一較佳實施態樣進行說明。請一併參閱「圖1」及「圖2」,係本發明印表機晶片的即時側錄電路的方塊示意圖(一)及方塊示意圖(二),如圖所示:本發明係提供一種印表機晶片的即時側錄電路100,係安裝於印表機端20的碳粉匣10或其他類似的耗材上,並於碳粉匣10安裝於印表機端20時與印表機端20的匯流排構成即時側錄電路。所述的即時側錄電路100主要包括一個或複數個原廠晶片12及一個或複數個兼容晶片11,並聯設置於該印表機端20的串列資料匯流排(SDA)及串列時脈匯流排(SCL)上。其中,本發明中的圖式雖揭示原廠晶片12的數量為三個,惟該等數量並非本發明所欲限制的範圍。於本發明中的即時側錄電路100可以應用於積體電路匯流排(Inter-Integrated Circuit,I2C)、通用非同步收發傳輸器(Universal Asynchronous Receiver/Transmitter,UART)、串行外設介面(Serial Peripheral Interface Bus,SPI)、寬窄訊號調變或其他類似 的通訊協定上,於本發明中不予以限制。 Hereinafter, a preferred embodiment of the present invention will be described. Please refer to "FIG. 1" and "FIG. 2" as a block diagram (1) and block diagram (2) of the instant recording circuit of the printer chip of the present invention. As shown in the figure, the present invention provides a printing. The instant skimming circuit 100 of the watch machine is mounted on the toner cartridge 10 of the printer end 20 or other similar consumables, and is mounted on the printer end 20 with the printer end 20 when the toner cartridge 10 is mounted on the printer end 20 The bus bar constitutes an instant side recording circuit. The instant-side recording circuit 100 mainly includes one or a plurality of original wafers 12 and one or more compatible wafers 11, and a serial data bus (SDA) and a serial clock set in parallel at the printer terminal 20. On the bus (SCL). Here, the drawings in the present invention disclose that the number of the original wafers 12 is three, but the number is not the range as intended by the present invention. The instant-side recording circuit 100 in the present invention can be applied to an integrated circuit (I 2 C), a Universal Asynchronous Receiver/Transmitter (UART), and a serial peripheral interface. (Serial Peripheral Interface Bus, SPI), wide-band signal modulation, or other similar communication protocol, which is not limited in the present invention.
所述的兼容晶片11如圖2所示,主要包括微處理器111(MCU)以及儲存單元112,該儲存單元112係用以儲存程式,並供該微處理器111載入並執行。於一較佳實施態樣中,該微處理器111與該儲存單元112係可以共構為一處理器而實施,於本發明中不予以限制。 As shown in FIG. 2, the compatible chip 11 mainly includes a microprocessor 111 (MCU) and a storage unit 112. The storage unit 112 is used to store a program and is loaded and executed by the microprocessor 111. In a preferred embodiment, the microprocessor 111 and the storage unit 112 can be implemented as a processor, which is not limited in the present invention.
該兼容晶片11係具有一驗證模組11A、以及一側錄模組11B,該驗證模組11A及該側錄模組11B係可以分別由獨立的晶片或處理器實施,或是如本實施態樣直接將程式寫入儲存單元112內,並由微處理器111存取並執行,於本發明中不予以限制。 The compatible chip 11 has a verification module 11A and a side recording module 11B. The verification module 11A and the side recording module 11B can be respectively implemented by independent chips or processors, or as in the embodiment. The program is directly written into the storage unit 112 and accessed and executed by the microprocessor 111, which is not limited in the present invention.
該驗證模組11A係用以接收並辨識印表機端20的認證命令並針對該認證命令進行回應。當該兼容晶片11於接收到該印表機端20詢答的認證命令時,該驗證模組11A係預先判斷該認證命令是否可以回應,若是該認證命令是可以被回應的(亦即認證命令依據目前的查找表或是資料庫是可以被處理的),則驗證模組11A係直接對應該認證命令回傳回應值給印表機端20;當驗證模組11A無法處理該認證命令,驗證模組11A係回報錯誤訊息至該印表機端20。其中當驗證模組11A判定認證命令是無法讀取的,兼容晶片11將啟動該側錄模組11B記錄該印表機端20詢答的認證命令以及由該原廠晶片12回傳的回應值,該等紀錄會儲存於該儲存單元112內,當該印表機端20再次對該兼容晶片11詢答時,該驗證模組11A將依據認證命令的內容找到適當的回應值,藉由該回應值作為 自己的回應值傳送至該印表機端20進行驗證。 The verification module 11A is configured to receive and recognize an authentication command of the printer terminal 20 and respond to the authentication command. When the compatible chip 11 receives the authentication command for the printer terminal 20 to query, the verification module 11A pre-determines whether the authentication command can respond, and if the authentication command is responsive (ie, the authentication command) According to the current lookup table or the database can be processed, the verification module 11A directly responds to the authentication command return value to the printer terminal 20; when the verification module 11A cannot process the authentication command, the verification The module 11A reports an error message to the printer terminal 20. When the verification module 11A determines that the authentication command is unreadable, the compatible chip 11 will activate the side recording module 11B to record the authentication command that the printer terminal 20 answers and the response value returned by the original wafer 12. The records are stored in the storage unit 112. When the printer terminal 20 queries the compatible chip 11 again, the verification module 11A will find an appropriate response value according to the content of the authentication command. Response value as Its own response value is transmitted to the printer terminal 20 for verification.
於一較佳實施態樣中,該兼容晶片11係將側錄模組11B所取得的認證命令及回應值直接製作成查找表(Look-up table)儲存於該儲存單元112內,當驗證模組11A再次收到認證命令時,係將該認證命令作為索引搜尋對應的回應值,藉由該回應值回覆印表機端20。 In a preferred embodiment, the compatible chip 11 directly generates the authentication command and the response value obtained by the side recording module 11B into a look-up table and stores it in the storage unit 112. When the group 11A receives the authentication command again, the authentication command is used as an index to search for the corresponding response value, and the response value is returned to the printer terminal 20.
以下係針對本發明印表機晶片的即時側錄方法進行說明,請參閱「圖3」,係為本發明印表機晶片的即時側錄方法的流程示意圖,如圖所示:本發明的即時側錄方法係可以實施於一或複數個兼容晶片11上,該兼容晶片11係與一或複數個原廠晶片12共同並聯於該印表機端20的匯流排。本發明的即時側錄方法如下:兼容晶片11接收該印表機端20詢答的認證命令,並確認該認證命令是否可以回應(步驟S01);於兼容晶片11確認認證命令可以回應時,係回傳對應的回應值至該印表機端20以進行驗證(步驟S02);當該兼容晶片11確認該認證命令無法處理時,該兼容晶片11係回報錯誤訊息至該印表機端20(步驟S03);此時依照印表機端20的運作邏輯,印表機端20會順序的傳送相同的認證命令至第二原廠晶片、第三原廠晶片、及第四原廠晶片(其他該原廠晶片12)等(如圖2所示),此時該兼容晶片11係可以經由串列資料匯流排(SDA)及串列時脈匯流排(SCL)側錄該 印表機端20詢答的認證命令以及由該原廠晶片12回傳的回應值,並將該詢答的認證命令以及由該原廠晶片12回傳的該回應值作成查找表儲存於儲存單元112內(步驟S04)。藉此,當印表機端20再次提出相同的認證命令時,兼容晶片11得以依據該查找表搜尋對應的回應值並將其回送至該印表機端20。 The following is a description of the instant side recording method of the printer chip of the present invention. Please refer to FIG. 3, which is a schematic flow chart of the instant side recording method of the printer chip of the present invention, as shown in the figure: The skimming method can be implemented on one or more compatible wafers 11 that are co-parallel to one or more of the original wafers 12 to the busbars of the printer end 20. The instant side recording method of the present invention is as follows: the compatible chip 11 receives the authentication command queried by the printer terminal 20, and confirms whether the authentication command can respond (step S01); when the compatible chip 11 confirms that the authentication command can respond, The corresponding response value is returned to the printer terminal 20 for verification (step S02); when the compatible wafer 11 confirms that the authentication command cannot be processed, the compatible chip 11 reports an error message to the printer terminal 20 ( Step S03); at this time, according to the operation logic of the printer end 20, the printer end 20 sequentially transmits the same authentication command to the second original wafer, the third original wafer, and the fourth original wafer (other The original wafer 12) and the like (as shown in FIG. 2), at this time, the compatible wafer 11 can be recorded via the serial data bus (SDA) and the serial clock bus (SCL) side. The printer terminal 20 queries the authentication command and the response value returned by the original chip 12, and the authentication command of the inquiry and the response value returned by the original wafer 12 are stored in a lookup table and stored in the storage. The unit 112 is inside (step S04). Thereby, when the printer terminal 20 again proposes the same authentication command, the compatible chip 11 can search for the corresponding response value according to the lookup table and send it back to the printer terminal 20.
本發明所提供的即時側錄方法亦可以作為程式撰寫後儲存於非暫態電腦可讀取記錄媒體中實施,並供處理器載入該程式後係執行如上所述的方法。該非暫態電腦可讀取記錄媒體例如包括:磁性媒體,像是硬碟、軟性磁碟、磁帶;光學媒體,像是CD-ROMs與DVD;及磁光媒體,像是軟磁光碟;與硬體裝置,像是ROMs、RAMs;與特別是配置來儲存與執行程式指令的快閃記憶體。此外,非暫態電腦可讀式記錄媒體可以是用來傳送訊號的傳送媒體,其中程式指令與資料結構是被設計好的。程式指令可以包括:由編譯器編輯的機器語言碼、以及由使用翻譯器的電腦執行的高階語言碼。 The instant side recording method provided by the present invention can also be implemented as a program and stored in a non-transitory computer readable recording medium, and is executed by the processor to execute the method as described above. The non-transitory computer readable recording medium includes, for example, magnetic media such as a hard disk, a flexible disk, a magnetic tape, optical media such as CD-ROMs and DVDs, and magneto-optical media such as a soft magnetic disk; Devices, such as ROMs, RAMs; and flash memory that is specifically configured to store and execute program instructions. In addition, the non-transitory computer readable recording medium may be a transmission medium for transmitting signals, wherein the program instructions and data structures are designed. The program instructions may include: a machine language code edited by the compiler, and a high-level language code executed by a computer using the translator.
綜上所述,本發明的兼容晶片部分的命令除了可以透過兼容晶片自己回應,無法進行的命令則透過印表機讀取原廠晶片時側錄認證命令及回應值而供再次驗證時作為回應值,藉此可以大幅地降低開發兼容晶片時所需的時間及人力成本。 In summary, the command of the compatible chip portion of the present invention can respond in response to the compatible chip itself, and the unmanageable command is responded to when the printer reads the original wafer and reads the authentication command and the response value for re-verification. The value, by which the time and labor costs required to develop a compatible wafer can be greatly reduced.
以上已將本發明做一詳細說明,惟以上所述者,僅為本發明之一較佳實施例而已,當不能以此限定本發明實施之範圍,即凡依本發明申請專利範圍所作之均等變化與修飾,皆應仍屬本 發明之專利涵蓋範圍內。 The present invention has been described in detail above, but the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Changes and modifications should still be The patents of the invention are covered.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106144846A TWI648633B (en) | 2017-12-20 | 2017-12-20 | A real time lateral recording circuit for a printer, method, and non-transitory computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106144846A TWI648633B (en) | 2017-12-20 | 2017-12-20 | A real time lateral recording circuit for a printer, method, and non-transitory computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI648633B TWI648633B (en) | 2019-01-21 |
TW201928693A true TW201928693A (en) | 2019-07-16 |
Family
ID=65803854
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW106144846A TWI648633B (en) | 2017-12-20 | 2017-12-20 | A real time lateral recording circuit for a printer, method, and non-transitory computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI648633B (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6702417B2 (en) * | 1997-07-12 | 2004-03-09 | Silverbrook Research Pty Ltd | Printing cartridge with capacitive sensor identification |
TWI286972B (en) * | 2005-12-22 | 2007-09-21 | Microjet Technology Co Ltd | Inkjet printhead identification circuit for printer |
JP4259557B2 (en) * | 2006-09-19 | 2009-04-30 | セイコーエプソン株式会社 | Printing apparatus and logical packet processing method |
US8922795B2 (en) * | 2012-02-03 | 2014-12-30 | Apple Inc. | Enabling access to supported capabilities of printers prior to installing printer-specific software for the printers |
CN104097401A (en) * | 2014-06-24 | 2014-10-15 | 中山铭祺电子科技有限公司 | General chip for printing supplies |
CN104441982A (en) * | 2014-11-10 | 2015-03-25 | 中山铭祺电子科技有限公司 | Universal chip for regenerating printing supplies and communication verification method |
-
2017
- 2017-12-20 TW TW106144846A patent/TWI648633B/en active
Also Published As
Publication number | Publication date |
---|---|
TWI648633B (en) | 2019-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109086199B (en) | Method, terminal and storage medium for automatically generating test script | |
US20190197041A1 (en) | Answerer extraction system, answerer extraction method, and non-transitory computer-readable medium | |
KR100876627B1 (en) | Interface circuit, system device and data interface method using this interface circuit | |
JP2000242454A (en) | Image processing system and recording medium | |
CN102707963B (en) | Device flags | |
US6779052B2 (en) | Electronic apparatus, system and method for controlling communication among devices coupled through different interfaces | |
US8838866B2 (en) | Operation method for a computer system | |
TWI648633B (en) | A real time lateral recording circuit for a printer, method, and non-transitory computer readable storage medium | |
US11144305B2 (en) | Method for updating IC firmware | |
CN101261611A (en) | Peripheral apparatus data-transmission apparatus and transmission method | |
CN101197985B (en) | Data transfer device and transfer control method | |
US7945714B2 (en) | Apparatus and method of tracing descriptors in host controller | |
CN116150119A (en) | Log processing method, system, electronic equipment and computer readable storage medium | |
US20190095636A1 (en) | Information processing device and medium storing information processing program | |
CN112346665B (en) | PCIE-based communication method, device, equipment, system and storage medium | |
US8296275B2 (en) | Data processing method, data processing system, and storage device controller | |
CN111159070B (en) | Mark compression system and system on chip based on AHB bus | |
US10909155B2 (en) | Information processing apparatus | |
US11272263B2 (en) | Electronic apparatus, control method of electronic apparatus, and recording medium | |
US20170228333A1 (en) | Reader/writer device, information processing device, and data transfer control method, and program | |
US20100138577A1 (en) | Apparatus and method for writing bitwise data in system on chip | |
JP2006185012A (en) | Interface device and interface program | |
CN102819471A (en) | Software backup system and software backup method of equipment terminal | |
EP3460666B1 (en) | Method, apparatus, and storage medium for optimizing memory card performance | |
CN108062211A (en) | The real-time side record circuit and method of printer chip |