JP2020204807A - program - Google Patents

program Download PDF

Info

Publication number
JP2020204807A
JP2020204807A JP2019110889A JP2019110889A JP2020204807A JP 2020204807 A JP2020204807 A JP 2020204807A JP 2019110889 A JP2019110889 A JP 2019110889A JP 2019110889 A JP2019110889 A JP 2019110889A JP 2020204807 A JP2020204807 A JP 2020204807A
Authority
JP
Japan
Prior art keywords
data
database
module
format
printer
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.)
Granted
Application number
JP2019110889A
Other languages
Japanese (ja)
Other versions
JP7290073B2 (en
Inventor
直毅 楠本
Naoki Kusumoto
直毅 楠本
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2019110889A priority Critical patent/JP7290073B2/en
Priority to US16/891,677 priority patent/US11435965B2/en
Publication of JP2020204807A publication Critical patent/JP2020204807A/en
Application granted granted Critical
Publication of JP7290073B2 publication Critical patent/JP7290073B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a technology to generate data in a form according to the type of a printer.SOLUTION: A main body module 43 causes a DLL of an OS to convert a character code of a CSV database into a unicode and acquires a file path of CSV data in the unicode. The main body module 43 causes a library 45 to acquire the acquired file path, a model name, and a database name. The library 45 specifies a local code type and an arrangement position corresponding to the model name on a conversion correspondence table (S35). The library 45 converts the unicode of the CSV database indicated by the file path into a character code indicated by the specified local code type (S36), converts the converted CSV database into a database in a PD3 form based on the specified arrangement position (S37), and converts the converted database in the PD3 form into a database in a specific form (S38).SELECTED DRAWING: Figure 4

Description

本発明は、プリンタに入力するデータを生成する技術に関する。 The present invention relates to a technique for generating data to be input to a printer.

プリンタに入力可能な形式のデータを生成してプリンタに入力するアプリケーションが知られている(例えば、特許文献1参照)。 An application that generates data in a format that can be input to a printer and inputs the data to the printer is known (see, for example, Patent Document 1).

特開2008−269265号公報Japanese Unexamined Patent Publication No. 2008-269265

プリンタのモデルごとに、プリンタに入力可能なデータの構造やコードの種類などであるデータの形態が異なることがある。特許文献1は、モデルの種別に応じた形態のデータを生成する技術について、十分に開示していない。 The data form, such as the structure of data that can be input to the printer and the type of code, may differ depending on the printer model. Patent Document 1 does not sufficiently disclose a technique for generating data in a form corresponding to a model type.

本発明は、プリンタの種別に応じた形態のデータを生成する技術を提供することを目的とする。 An object of the present invention is to provide a technique for generating data in a form corresponding to a type of printer.

本明細書では様々な開示を行う。開示例のプログラムは、情報処理装置のコンピュータによって実行され、かつ変換対応テーブルを有する。前記変換対応テーブルは、プリンタの種別を示す種別情報と、変換後のデータの構成と、変換後のデータの文字コードの種別とのうち少なくとも一方を特定する特定情報との対応を示すテーブルである。開示例のプログラムは、前記種別情報を取得する種別情報取得処理と、第1形式のデータである第1データを取得するデータ取得処理と、取得した前記種別情報に対応する前記特定情報を前記変換対応テーブルに基づいて特定する特定処理と、前記第1形式の前記第1データを、特定した前記特定情報に応じたデータであって、前記プリンタに入力可能な第2形式のデータである第2データに変換するデータ変換処理と、前記第2データを出力する出力処理と、を前記コンピュータに実行させる。 Various disclosures are made herein. The program of the disclosure example is executed by the computer of the information processing apparatus and has a conversion correspondence table. The conversion correspondence table is a table showing the correspondence between the type information indicating the type of the printer, the configuration of the data after conversion, and the specific information that specifies at least one of the character code types of the data after conversion. .. The program of the disclosure example has a type information acquisition process for acquiring the type information, a data acquisition process for acquiring the first data which is the data of the first format, and the conversion of the specific information corresponding to the acquired type information. The specific process specified based on the correspondence table, and the first data in the first format are the data corresponding to the specified specific information, and the second format data that can be input to the printer. The computer is made to execute a data conversion process for converting data and an output process for outputting the second data.

開示例のプログラムは、取得した種別情報に対応する特定情報を変換対応テーブルにおいて特定する。すなわち、開示例のプログラムは、プリンタの種別に応じたデータの構造や文字コードの種別を特定する。そして、開示例のプログラムは、特定情報に応じて、第1形式のデータを第2形式のデータに変換する。したがって、開示例のプログラムは、プリンタの種別に応じた形態のデータを生成することができる。 The program of the disclosure example specifies the specific information corresponding to the acquired type information in the conversion correspondence table. That is, the program of the disclosure example specifies the data structure and the character code type according to the printer type. Then, the program of the disclosure example converts the data of the first format into the data of the second format according to the specific information. Therefore, the program of the disclosure example can generate data in a form corresponding to the type of printer.

図1(A)は、情報処理装置10の機能ブロック図であり、図1(B)は、アプリケーション37の構成図である。FIG. 1A is a functional block diagram of the information processing apparatus 10, and FIG. 1B is a configuration diagram of an application 37. 図2(A)は、プリンタ11の機能ブロック図であり、図2(B)は、変換対応テーブル48を示す図であり、図2(C)は、データベースを示す図であり、図2(D)は、ラベルにおけるテキストの配置例を示す図である。2 (A) is a functional block diagram of the printer 11, FIG. 2 (B) is a diagram showing a conversion correspondence table 48, and FIG. 2 (C) is a diagram showing a database. D) is a diagram showing an example of text arrangement on the label. 図3は、タッチパネル22と、UIモジュール41と、本体モジュール43と、コモンモジュール44及びライブラリ45と、プリンタ11と、が実行する処理を説明する図である。FIG. 3 is a diagram illustrating a process executed by the touch panel 22, the UI module 41, the main module 43, the common module 44, the library 45, and the printer 11. 図4は、特定形式のデータ生成処理を説明する図である。FIG. 4 is a diagram illustrating a data generation process of a specific format. 図5(A)は、PD3における部分データの配置位置を説明する図であり、図5(B)は、PD3形式のデータベースの構成を示す図であり、図5(C)は、配置テーブルを示す図であり、図5(D)は、特定形式のデータベースの構成を示す図である。5 (A) is a diagram for explaining the arrangement position of partial data in PD3, FIG. 5 (B) is a diagram showing the configuration of a database in PD3 format, and FIG. 5 (C) is a diagram showing an arrangement table. It is a figure which shows, and FIG. 5D is a figure which shows the structure of the database of a specific form. 図6は、タッチパネル22、UIモジュール41、本体モジュール43、コモンモジュール44、及びプリンタ11が実行する処理を説明する図である。FIG. 6 is a diagram illustrating a process executed by the touch panel 22, the UI module 41, the main module 43, the common module 44, and the printer 11.

以下、適宜図面を参照して本発明の実施形態について説明する。なお、以下に説明される実施形態は開示例にすぎず、本発明の要旨を変更しない範囲で適宜変更できることは言うまでもない。例えば、後述する各処理の実行順序は、本発明の要旨を変更しない範囲で、適宜変更することができる。或いは、後述の各処理は、本発明の要旨を変更しない範囲で、適宜省略或いは変更することができる。 Hereinafter, embodiments of the present invention will be described with reference to the drawings as appropriate. It goes without saying that the embodiments described below are merely disclosure examples and can be appropriately modified without changing the gist of the present invention. For example, the execution order of each process described later can be appropriately changed without changing the gist of the present invention. Alternatively, each of the processes described below can be omitted or changed as appropriate without changing the gist of the present invention.

本実施形態では、図1に示される情報処理装置10に実装されるアプリケーション37を説明する。情報処理装置10は、携帯端末やタブレットやパーソナルコンピュータなどである。以下では、情報処理装置10が携帯端末である例を説明する。すなわち、携帯端末に実装されるアプリケーション37を説明する。 In this embodiment, the application 37 implemented in the information processing apparatus 10 shown in FIG. 1 will be described. The information processing device 10 is a mobile terminal, a tablet, a personal computer, or the like. Hereinafter, an example in which the information processing device 10 is a mobile terminal will be described. That is, the application 37 implemented in the mobile terminal will be described.

アプリケーション37は、プリンタ11に送信される印刷データを生成するプログラムである。プリンタ11は、例えば、ラベルに印刷を行うラベルプリンタである。ただし、プリンタ11は、ラベルプリンタに限られない。 The application 37 is a program that generates print data to be transmitted to the printer 11. The printer 11 is, for example, a label printer that prints on a label. However, the printer 11 is not limited to the label printer.

アプリケーション37は、画像データを変換して印刷データを生成する機能に加え、表作成プログラムが作成した表を変換して、プリンタ11に入力可能なデータを生成する機能を有する。以下、詳しく説明する。 The application 37 has a function of converting image data to generate print data and a function of converting a table created by a table creation program to generate data that can be input to the printer 11. The details will be described below.

プリンタ11は、図2(A)に示されるように、コントローラ51と、印刷エンジン52と、通信インタフェース53と、を備える。印刷エンジン52は、ラベルなどのシートを搬送する搬送機構と、搬送するシートに画像を印刷するヘッドと、を有する。ヘッドは、例えば、サーマルヘッドである。但し、ヘッドは、インク滴を吐出するインクジェット記録方式のヘッドなどであってもよい。通信インタフェース53は、USBケーブルやLANケーブルなどを用いて情報処理装置10と接続されてもよいし、情報処理装置10と無線接続されてもよい。プリンタ11は、通信インタフェース53を通じて情報処理装置10と通信を行う。 As shown in FIG. 2A, the printer 11 includes a controller 51, a printing engine 52, and a communication interface 53. The printing engine 52 has a transport mechanism for transporting a sheet such as a label, and a head for printing an image on the conveyed sheet. The head is, for example, a thermal head. However, the head may be an inkjet recording type head that ejects ink droplets. The communication interface 53 may be connected to the information processing device 10 by using a USB cable, a LAN cable, or the like, or may be wirelessly connected to the information processing device 10. The printer 11 communicates with the information processing device 10 through the communication interface 53.

コントローラ51は、中央演算装置であるCPU61と、メモリ62と、バス63と、を備える。コントローラ51は、例えば、パターン回路基板と、パターン回路基板に実装されたマイクロコンピュータや種々のICやコンデンサやダイオードなどの種々の電子部品によって実現される。 The controller 51 includes a CPU 61 which is a central arithmetic unit, a memory 62, and a bus 63. The controller 51 is realized by, for example, a pattern circuit board and various electronic components such as a microcomputer, various ICs, capacitors, and diodes mounted on the pattern circuit board.

CPU61、メモリ62、印刷エンジン52、通信インタフェース53は、バス63に接続されている。すなわち、CPU61は、メモリ62、印刷エンジン52、及び通信インタフェース53と、バス63を介して接続されている。 The CPU 61, the memory 62, the print engine 52, and the communication interface 53 are connected to the bus 63. That is, the CPU 61 is connected to the memory 62, the print engine 52, and the communication interface 53 via the bus 63.

CPU61は、後述のOS66と制御プログラム67とを疑似的に並行して実行する。すなわち、OS66及び制御プログラム67は、いわゆるマルチタスク処理によって実行される。 The CPU 61 executes the OS 66 and the control program 67, which will be described later, in a pseudo-parallel manner. That is, the OS 66 and the control program 67 are executed by so-called multitasking processing.

メモリ62は、例えば、ROMやRAMやEEPROMやHDDやCPU61が備えるバッファ等である。メモリ62は、OS66及び制御プログラム67を記憶するプログラム記憶領域64と、情報やデータを記憶するデータ記憶領域65と、を有する。OS66は、オペレーティングシステムである。 The memory 62 is, for example, a buffer included in a ROM, a RAM, an EEPROM, an HDD, or a CPU 61. The memory 62 has a program storage area 64 for storing the OS 66 and the control program 67, and a data storage area 65 for storing information and data. OS66 is an operating system.

制御プログラム67は、通信インタフェース53を通じて入力した印刷データを印刷エンジン52に入力して印刷エンジン52に印刷を実行させる機能を有する。また、制御プログラム67は、入力したデータベース(図2(C))を用いて、図2(D)に示されるラベルのテンプレートデータに、当該データベースの各レコードを順に印刷エンジン52に印刷させる機能を有する。 The control program 67 has a function of inputting print data input through the communication interface 53 into the print engine 52 and causing the print engine 52 to execute printing. Further, the control program 67 has a function of causing the printing engine 52 to print each record of the database in order on the template data of the label shown in FIG. 2D by using the input database (FIG. 2C). Have.

詳しく説明すると、メモリ62のデータ記憶領域65は、「TEXT1」の印刷領域を示す領域データと、「TEXT2」の印刷領域を示す領域データと、「TEXT3」の印刷領域を示す領域データと、を含むラベルのテンプレートデータを記憶する。当該テンプレートデータは、データ記憶領域65に予めデフォルトとして記憶されていてもよいし、後述のアプリケーション37やその他のプログラムによって生成されて、プリンタ11に入力されてもよい。プリンタ11に入力されるデータベースは、複数のレコードと、複数の項目とを有する。複数の項目は、「番号」、「TEXT1」、「TEXT2」、「TEXT3」である。レコードは、各項目に対応する入力フィールドに入力された種々の文字を有する。図示例では、番号「1」を有するレコードの各項目に対応する各入力フィールドには、「1階」、「空調」、「200V」の文字がそれぞれ入力されている。 More specifically, the data storage area 65 of the memory 62 includes area data indicating the print area of "TEXT1", area data indicating the print area of "TEXT2", and area data indicating the print area of "TEXT3". Store the template data of the label to be included. The template data may be stored in the data storage area 65 as a default in advance, or may be generated by an application 37 or another program described later and input to the printer 11. The database input to the printer 11 has a plurality of records and a plurality of items. The plurality of items are "number", "TEXT1", "TEXT2", and "TEXT3". The record has various characters entered in the input fields corresponding to each item. In the illustrated example, the characters "1st floor", "air conditioning", and "200V" are input to each input field corresponding to each item of the record having the number "1".

制御プログラム67は、例えば、番号「1」で特定されるレコードをデータベースから読み出す。そして、制御プログラム67は、読み出したレコードの項目「TEXT1」、「TEXT2」、及び「TEXT3」にそれぞれ登録された「1階」、「空調」、及び「200V」の文字を、図2(D)に示される「TEXT1」、「TEXT2」、及び「TEXT3」の印刷領域にそれぞれ配置して、印刷エンジン52に入力するデータを生成する。そして、制御プログラム67は、生成したデータを印刷エンジン52に入力し、印刷エンジン52に、ラベルへの印刷を実行させる。制御プログラム67は、例えば、番号の順にレコードを読み出してデータを生成し、或いは、ユーザの指定を受け付け、ユーザが指定した番号のレコードをデータベースから読み出して、データを生成する。 The control program 67 reads, for example, the record specified by the number "1" from the database. Then, the control program 67 displays the characters "1st floor", "air conditioning", and "200V" registered in the read record items "TEXT1", "TEXT2", and "TEXT3", respectively, in FIG. 2 (D). ), The data to be input to the print engine 52 is generated by arranging the data in the print areas of "TEXT1", "TEXT2", and "TEXT3", respectively. Then, the control program 67 inputs the generated data to the printing engine 52, and causes the printing engine 52 to execute printing on the label. The control program 67, for example, reads records in the order of numbers to generate data, or accepts a user's designation and reads records of numbers specified by the user from a database to generate data.

プリンタ11のユーザは、例えば、建物の電気設備の施工或いは保守を行う者である。ユーザは、例えば、建物に使用される電気ケーブルに貼着されるラベルを、プリンタ11を用いて作製する。ユーザは、後述の情報処理装置10のアプリケーション37を用いて一のデータベースをプリンタ11に入力し、一の建物に使用するラベルを作製する。そして、ユーザは、アプリケーション37を用いて他のデータベースをプリンタ11に入力し、他の建物に使用するラベルを作製する。 The user of the printer 11 is, for example, a person who constructs or maintains electrical equipment in a building. The user uses the printer 11 to create, for example, a label to be attached to an electric cable used in a building. The user inputs one database to the printer 11 by using the application 37 of the information processing apparatus 10 described later, and creates a label to be used for one building. Then, the user inputs another database to the printer 11 using the application 37 to create a label to be used for another building.

図1(A)に示されるように、情報処理装置10は、コントローラ21と、タッチパネル22と、通信インタフェース23と、を備える。通信インタフェース23は、例えばWi−Fi(登録商標)やBluetooth(登録商標)の通信規格を用いて、或いは、NFCなどの近接無線通信の通信規格を用いて、プリンタ11と通信を行う。 As shown in FIG. 1A, the information processing device 10 includes a controller 21, a touch panel 22, and a communication interface 23. The communication interface 23 communicates with the printer 11 using, for example, a communication standard of Wi-Fi (registered trademark) or Bluetooth (registered trademark), or a communication standard of near field communication such as NFC.

タッチパネル22は、文字や図形などを表示する表示パネル24と、表示パネル24に重畳された透明な膜状のタッチセンサ25と、を有する。タッチセンサ25は、ユーザがタッチした表示パネル24における位置を示す位置情報を出力する。位置情報は、例えば、表示パネル24の左上端を原点とし、右向きをx軸の正の向き、下向きをy軸の正の向きとしたx−y平面上の座標(x,y)として表現できる。後述のUIモジュール41は、表示パネル24に表示されたアイコン等を示す位置情報がタッチセンサ25から入力されたことに応じて、当該アイコン等がユーザによって選択されたと判断する。ユーザは、アイコン等をタッチすることにより、文字や数値をUIモジュール41に入力する。なお、情報処理装置10は、タッチセンサ25に代えて、或いはタッチセンサ25とともに、マイクロフォンを有していてもよい。マイクロフォンは、ユーザの声を音声信号に変換してコントローラ21に入力する。情報処理装置10がパーソナルコンピュータである場合、タッチセンサ25に代えて、マウスやキーボードが情報処理装置10に接続される。 The touch panel 22 has a display panel 24 for displaying characters, figures, and the like, and a transparent film-like touch sensor 25 superimposed on the display panel 24. The touch sensor 25 outputs position information indicating a position on the display panel 24 touched by the user. The position information can be expressed, for example, as coordinates (x, y) on the xy plane with the upper left end of the display panel 24 as the origin, the right direction as the positive direction of the x-axis, and the downward direction as the positive direction of the y-axis. .. The UI module 41, which will be described later, determines that the icon or the like has been selected by the user in response to the position information indicating the icon or the like displayed on the display panel 24 being input from the touch sensor 25. The user inputs characters and numerical values into the UI module 41 by touching an icon or the like. The information processing device 10 may have a microphone instead of the touch sensor 25 or together with the touch sensor 25. The microphone converts the user's voice into a voice signal and inputs it to the controller 21. When the information processing device 10 is a personal computer, a mouse or keyboard is connected to the information processing device 10 instead of the touch sensor 25.

コントローラ21は、中央演算処理装置であるCPU31と、メモリ32と、バス33と、を備える。CPU31は、コンピュータの一例である。コントローラ21の構成は、プリンタ11のコントローラ51の構成と概ね同じである。 The controller 21 includes a CPU 31 which is a central processing unit, a memory 32, and a bus 33. The CPU 31 is an example of a computer. The configuration of the controller 21 is substantially the same as the configuration of the controller 51 of the printer 11.

CPU31は、OS36、後述のアプリケーション37のUIモジュール41、本体モジュール43、コモンモジュール44、及びライブラリ45を疑似的に並行して実行する。すなわち、OS36、UIモジュール41、本体モジュール43、コモンモジュール44、及びライブラリ45は、いわゆるマルチタスク処理によって実行される。ライブラリ45は、プログラム及び第1モジュールの一例である。本体モジュール43は、第2モジュールの一例である。コモンモジュール44は、第3モジュールの一例である。UIモジュール41は、第4モジュールの一例である。 The CPU 31 executes the OS 36, the UI module 41 of the application 37 described later, the main module 43, the common module 44, and the library 45 in a pseudo-parallel manner. That is, the OS 36, the UI module 41, the main module 43, the common module 44, and the library 45 are executed by so-called multitask processing. Library 45 is an example of a program and a first module. The main body module 43 is an example of the second module. The common module 44 is an example of the third module. The UI module 41 is an example of the fourth module.

メモリ32の構成は、プリンタ11のメモリ62の構成と概ね同じである。メモリ32は、OS36及びアプリケーション37を記憶するプログラム記憶領域34と、情報やデータを記憶するデータ記憶領域35と、を有する。 The configuration of the memory 32 is substantially the same as the configuration of the memory 62 of the printer 11. The memory 32 has a program storage area 34 for storing the OS 36 and the application 37, and a data storage area 35 for storing information and data.

OS36は、例えば、Android(登録商標)OSや、iOS(登録商標)や、WindowsPhone(登録商標)や、BlackBerryOS(登録商標)などである。 OS36 is, for example, Android (registered trademark) OS, iOS (registered trademark), Windows Phone (registered trademark), BlackBerry OS (registered trademark), and the like.

OS36は、アプリケーション37によって呼び出される第2API(Application Programming Interfaceの略)38を有するDLL(dynamic link libraryの略)及び第4API39を有するDLLを備える。第2API38は、ローカルな文字コードをユニコードに変換するためのAPIである。第4API39は、通信インタフェース23を通じてプリンタ11にデータを送信するためのAPIである。詳しくは後述する。 The OS 36 includes a DLL (abbreviation of dynamic link library) having a second API (abbreviation of Application Programming Interface) 38 called by the application 37 and a DLL having a fourth API 39. The second API 38 is an API for converting a local character code into Unicode. The fourth API 39 is an API for transmitting data to the printer 11 through the communication interface 23. Details will be described later.

アプリケーション37は、図1(B)に示されるように、UI(User Innterfaceの略)モジュール41と、本体プログラム42と、を備える。すなわち、アプリケーション37は、ユーザの入力を受け付けるUIモジュール41と、印刷データや、プリンタ11に入力するデータベースのデータを生成する本体プログラム42と、を備える。 As shown in FIG. 1B, the application 37 includes a UI (abbreviation of User Innterface) module 41 and a main program 42. That is, the application 37 includes a UI module 41 that accepts user input, and a main program 42 that generates print data and database data input to the printer 11.

UIモジュール41は、アプリケーション37の開発者によって設計される。アプリケーション37の開発者は、AndroidOSや、iOSなど、OS36の種類に応じてUIモジュール41を設計する。UIモジュール41は、OS36が記述されたプログラム言語と同一のプログラム言語によって記述される。 The UI module 41 is designed by the developer of application 37. The developer of the application 37 designs the UI module 41 according to the type of OS 36 such as Android OS and iOS. The UI module 41 is described in the same program language as the program language in which the OS 36 is described.

本体プログラム42は、例えば、プリンタ11のベンダによって、アプリケーション37の開発者に提供される。すなわち、本体プログラム42は、いわゆるSDK(Software Development Kitの略)である。アプリケーション37の開発者は、プリンタ11のベンダが提供した本体プログラム42と、設計したUIモジュール41とをまとめて、アプリケーション37を開発する。本体プログラム42は、データ生成プログラムの一例である。 The main program 42 is provided to the developer of the application 37 by, for example, the vendor of the printer 11. That is, the main program 42 is a so-called SDK (abbreviation of Software Development Kit). The developer of the application 37 develops the application 37 by combining the main program 42 provided by the vendor of the printer 11 and the designed UI module 41. The main program 42 is an example of a data generation program.

本体プログラム42は、本体モジュール43と、コモンモジュール44と、ライブラリ45と、を備える。 The main body program 42 includes a main body module 43, a common module 44, and a library 45.

本体モジュール43は、OS36を介してUIモジュール41によって呼び出される第3API46を有する。第3API46は、UIモジュール41からデータベースのファイルパス及びデータベースの名称(以下、データベース名と記載する)の取得に用いられる。詳しくは後述する。 The main module 43 has a third API 46 called by the UI module 41 via the OS 36. The third API 46 is used to acquire the database file path and the database name (hereinafter referred to as the database name) from the UI module 41. Details will be described later.

コモンモジュール44は、画像データを印刷データに変換するモジュールである。ライブラリ45は、データベースのデータの形態を、プリンタ11に入力可能な形態のデータに変換するモジュールである。また、コモンモジュール44は、ライブラリ45にデータの変換を指示するモジュールでもある。 The common module 44 is a module that converts image data into print data. The library 45 is a module that converts the form of data in the database into data in a form that can be input to the printer 11. The common module 44 is also a module that instructs the library 45 to convert data.

ライブラリ45及びコモンモジュール44は、C++のプログラム言語で記述されている。したがって、C++で記述されたプログラムと情報やデータを受け渡し可能なプログラムであれば、ライブラリ45に情報やデータを受け渡してライブラリ45を利用することができる。すなわち、C++で記述されたコモンモジュール44は、ライブラリ45を利用することができる。なお、C++で記述されたプログラムと情報やデータを受け渡し可能なプログラムとは、Objective−Cで記述されたプログラムや、JNI(Java Native Interfaceの略)(Javaは登録商標)などのラッパを備えたプログラムである。 The library 45 and the common module 44 are described in the C ++ program language. Therefore, any program described in C ++ and a program capable of passing information and data can pass the information and data to the library 45 and use the library 45. That is, the common module 44 described in C ++ can use the library 45. The program described in C ++ and the program capable of passing information and data include a program described in Objective-C and a wrapper such as JNI (abbreviation of Java Native Interface) (Java is a registered trademark). It is a program.

コモンモジュール44は、本体モジュール43によって呼び出される第5API49を有している。第5API49は、コモンモジュール44が、データベース名、ファイルパス(以下、第1ファイルパスと記載)、及びモデル名を本体モジュール43から取得するために用いられる。詳しくは後述する。 The common module 44 has a fifth API 49 called by the main module 43. The fifth API 49 is used by the common module 44 to acquire the database name, the file path (hereinafter referred to as the first file path), and the model name from the main module 43. Details will be described later.

ライブラリ45は、コモンモジュール44によって呼び出される第1API47、及び変換対応テーブル48を有する。第1API47は、ライブラリ45がデータベース名、第1ファイルパス、及びモデル名をコモンモジュール44から取得するために用いられる。変換対応テーブル48は、図2(B)に示されるように、モデル名と、ローカルコード種別と、配置種別との対応を示すテーブルである。ライブラリ45は、本体モジュール43から取得したモデル名と対応するローカルコード種別及び配置種別を変換対応テーブル48において特定し、特定したローカルコード種別及び配置種別を用いて、プリンタ11に入力可能なデータベースのデータを生成する。詳しくは後述する。モデル名は、プリンタの種別を示す種別情報の一例である。 The library 45 has a first API 47 called by the common module 44 and a conversion correspondence table 48. The first API 47 is used by the library 45 to obtain the database name, the first file path, and the model name from the common module 44. As shown in FIG. 2B, the conversion correspondence table 48 is a table showing the correspondence between the model name, the local code type, and the arrangement type. The library 45 specifies the local code type and the arrangement type corresponding to the model name acquired from the main body module 43 in the conversion correspondence table 48, and uses the specified local code type and the arrangement type to input to the printer 11. Generate data. Details will be described later. The model name is an example of type information indicating the type of printer.

以下、図3、図4、及び図5を参照して、ライブラリ45が、プリンタ11に入力可能なデータの形態のデータベースを生成する処理について説明する。 Hereinafter, a process in which the library 45 generates a database in the form of data that can be input to the printer 11 will be described with reference to FIGS. 3, 4, and 5.

本明細書では、基本的に、アプリケーション37に記述された命令に従ったCPU31の処理を説明する。すなわち、以下の説明における「判断」、「抽出」、「選択」、「算出」、「決定」、「特定」、「取得」、「受付」、「制御」、「設定」等の処理は、CPU31の処理を表している。CPU31による処理は、OS36などのコントローラを介したハードウェア制御も含む。なお、「取得」は要求を必須とはしない概念で用いる。すなわち、CPU31が要求することなくデータを受信するという処理も、「CPU31がデータを取得する」という概念に含まれる。また、本明細書中の「データ」とは、コンピュータに読取可能なビット列で表される。そして、実質的な意味内容が同じでフォーマットが異なるデータは、同一のデータとして扱われるものとする。本明細書中の「情報」についても同様である。「命令」「応答」「要求」等の処理は、「命令」「応答」「要求」等を示す情報を通信することにより行われる。また、「命令」「応答」「要求」等の文言を、「命令」「応答」「要求」等を示す情報そのものという意味で記載してもよい。 In the present specification, basically, the processing of the CPU 31 according to the instruction described in the application 37 will be described. That is, the processes such as "judgment", "extraction", "selection", "calculation", "decision", "specification", "acquisition", "acceptance", "control", and "setting" in the following description are It represents the processing of the CPU 31. The processing by the CPU 31 also includes hardware control via a controller such as OS36. Note that "acquisition" is used in a concept that does not require a request. That is, the process of receiving data without the CPU 31 requesting is also included in the concept of "the CPU 31 acquires the data". Further, the "data" in the present specification is represented by a computer-readable bit string. Then, data having the same substantial meaning and content but different formats are treated as the same data. The same applies to "information" in the present specification. Processing such as "command", "response", and "request" is performed by communicating information indicating "command", "response", "request", and the like. Further, words such as "command", "response", and "request" may be described in the meaning of information itself indicating "command", "response", "request", and the like.

また、プログラムに記述された命令に従ったCPU31の処理を、省略した文言で記載することがある。例えば、「CPU31が行う」「本体モジュール43が行う」「コモンモジュール44が行う」「ライブラリ45が行う」のように記載することがある。 Further, the processing of the CPU 31 according to the instruction described in the program may be described in abbreviated wording. For example, it may be described as "performed by the CPU 31", "performed by the main module 43", "performed by the common module 44", or "performed by the library 45".

また、CPU31による、情報Aは事柄Bであることを示しているか否かを判断する処理を、「情報Aから、事柄Bであるか否かを判断する」のように概念的に記載することがある。CPU31による、情報Aが事柄Bであることを示しているか、事柄Cであるかを示しているかを判断する処理を、「情報Aから、事柄Bであるか事柄Cであるかを判断する」のように概念的に記載することがある。 Further, the process of determining whether or not the information A indicates that the information A is the matter B by the CPU 31 is conceptually described as "determining whether or not the information A is the matter B from the information A". There is. The process of determining whether the information A indicates that the information A is the matter B or the matter C by the CPU 31 is "determined from the information A whether the information A is the matter B or the matter C". It may be described conceptually as.

また、本明細書中の「データ」と「情報」とは、コンピュータによって取り扱い可能なビット或いはビット列である点において共通する。「データ」とは、各ビットが示す意味内容をコンピュータが考慮することなく取り扱えるものを指す。これに対して、「情報」とは、各ビットが示す意味内容によってコンピュータの動作が分岐するものを指す。さらに、「指示」は、送信先の装置に対して次の動作を促すための制御信号であって、情報を含んでいることもあるし、それ自体が情報としての性質を有していることもある。 Further, "data" and "information" in the present specification are common in that they are bits or bit strings that can be handled by a computer. "Data" refers to data that can be handled without the computer considering the meaning and content of each bit. On the other hand, "information" refers to information in which the operation of a computer branches depending on the meaning and content indicated by each bit. Further, the "instruction" is a control signal for prompting the destination device to perform the next operation, may include information, and has the property of information itself. There is also.

上記の「データ」及び「情報」の区別は厳密なものではなく、例外的な取り扱いも許容される。例えば、データが一時的に情報として扱われてもよいし、情報が一時的にデータとして扱われてもよい。また、ある装置ではデータとして扱われるものが、他の装置では情報として扱われてもよい。さらには、データの中から情報が取り出されてもよいし、情報の中からデータが取り出されてもよい。 The above distinction between "data" and "information" is not strict, and exceptional handling is permitted. For example, the data may be temporarily treated as information, or the information may be temporarily treated as data. Further, what is treated as data in one device may be treated as information in another device. Furthermore, information may be extracted from the data, or data may be extracted from the information.

また、本明細書中の「に応じて」は、当該文字列の前に記載された条件が満たされた場合に、当該文字列の後に記載された処理が実行されることを示す。なお、処理が実行されるタイミングは、条件が満たされた後であればよく、当該条件が満たされた直後である必要は必ずしもない。 In addition, "according to" in the present specification indicates that the processing described after the character string is executed when the conditions described before the character string are satisfied. The timing at which the processing is executed may be after the condition is satisfied, and does not necessarily have to be immediately after the condition is satisfied.

アプリケーション37は、例えば、データベースを作成した表作成プログラムからの指示により、OS36によって起動される。或いは、アプリケーション37は、タッチセンサ25から入力されたユーザの起動指示により起動される。 The application 37 is started by the OS 36, for example, according to an instruction from the table creation program that created the database. Alternatively, the application 37 is activated by the user's activation instruction input from the touch sensor 25.

起動されたアプリケーション37の本体モジュール43は、例えば、OS36が通信可能なプリンタ11の名称及びモデル名の一覧の返信を要求するコマンドをOS36に入力し、プリンタ11の名称及びモデル名の一覧をOS36から取得する(S11)。そして、本体モジュール43は、取得したプリンタ11の名称及びモデル名の一覧をタッチパネル22にOS36を介して出力する(S12)。タッチパネル22は、プリンタ11の名称及びモデル名の一覧を有する入力画面(不図示)を表示する(S13)。当該入力画面は、プリンタ11の名称及びモデル名の一覧の他、データベース名の入力を受け付けるテキストボックスなどを有する。なお、プリンタ11の名称及びモデル名を選択する入力画面と、データベース名を入力する入力画面とは、異なっていてもよい。 The main module 43 of the started application 37 inputs, for example, a command requesting a reply of a list of printer names and model names that OS 36 can communicate with to OS 36, and displays a list of printer 11 names and model names in OS 36. Obtained from (S11). Then, the main body module 43 outputs the acquired list of printer names and model names to the touch panel 22 via the OS 36 (S12). The touch panel 22 displays an input screen (not shown) having a list of printer names and model names (S13). The input screen includes a list of printer names and model names, as well as a text box that accepts input of a database name. The input screen for selecting the name and model name of the printer 11 and the input screen for inputting the database name may be different.

ユーザは、入力画面において、一のプリンタ11の名称及びモデル名を選択し、また、データベース名を入力する(S14)。アプリケーション37のUIモジュール41は、選択されたプリンタ11の名称及びモデル名と、データベース名とを取得する(S14)。そして、UIモジュール41は、本体モジュール43の第3API46を呼び出し(S15)、呼び出した第3API46の引数として、選択されたモデル名及びデータベース名を本体モジュール43に受け渡す(S16)。 The user selects the name and model name of one printer 11 on the input screen, and inputs the database name (S14). The UI module 41 of the application 37 acquires the name and model name of the selected printer 11 and the database name (S14). Then, the UI module 41 calls the third API 46 of the main module 43 (S15), and passes the selected model name and database name to the main module 43 as arguments of the called third API 46 (S16).

本体モジュール43は、OS36にコマンドを入力し、データベースのファイルであるデータベースファイル、或いは当該データベースを示すファイルパスと、コード種別と、を取得する(S17)。コード種別は、データベースに使用されている文字コードの種別を示す。コード種別が示す文字コードは、例えば、JIS、Shift−JIS、ASCII、EBCDIC、ユニコード、EUC等の任意の文字コードである。なお、データベースのファイルパス或いはデータベースファイルと、コード種別とは、アプリケーション37の起動時において、OS36から本体モジュール43に受け渡されてもよい。以下では、本体モジュール43やコモンモジュール44やライブラリ45が、ファイルパスを用いてデータベースを受け渡す例を説明する。 The main module 43 inputs a command to the OS 36 and acquires a database file which is a database file, a file path indicating the database, and a code type (S17). The code type indicates the type of character code used in the database. The character code indicated by the code type is, for example, an arbitrary character code such as JIS, Shift-JIS, ASCII, EBCDIC, Unicode, and EUC. The database file path or database file and the code type may be passed from the OS 36 to the main module 43 when the application 37 is started. In the following, an example in which the main module 43, the common module 44, and the library 45 pass a database using a file path will be described.

上述の表作成プログラムが作成するデータベースは、例えばCSV(Comma Separated Valueの略)のデータ形式のファイルである。以下では、表作成プログラムが、CSVのデータ形式のファイルとして生成したデータベースを、CSVデータベースファイルと記載して説明する。CSVデータベースファイルは、第4形式の元データの一例である。本体モジュール43が、CSVデータベースファイル或いは第1ファイルパスを取得するステップS17の処理は、元データ取得処理の一例である。 The database created by the above-mentioned table creation program is, for example, a file in a CSV (abbreviation of Comma Separated Value) data format. In the following, a database generated by the table creation program as a CSV data format file will be described as a CSV database file. The CSV database file is an example of the original data in the fourth format. The process of step S17 in which the main module 43 acquires the CSV database file or the first file path is an example of the original data acquisition process.

本体モジュール43は、ステップS17で取得したコード種別に応じたAPIであって、OS36が提供する第2API38を呼び出し、ステップS17で取得した第1ファイルパスを第2API38を通じてOS36が提供するDLLに受け渡す。すなわち、本体モジュール43は、第1ファイルパスが示すCSVデータベースの文字コードをユニコードに変換することを、OS36が提供するDLLに指示する(S18)。当該DLLは、第1ファイルパスが示すデータベースの文字コードをユニコードに変換する。当該DLLは、ユニコードに変換したCSVデータベースであるユニコードCSVデータベースのファイルパス(以下、第2ファイルパスと記載)を本体モジュール43に受け渡す。ユニコードは、共通文字コードの一例である。なお、本体モジュール43がステップS17において取得した第1ファイルパスが示すCSVデータベースファイルがユニコードで記述されている場合、ステップS18の処理は省略される。 The main module 43 is an API corresponding to the code type acquired in step S17, calls the second API 38 provided by OS36, and passes the first file path acquired in step S17 to the DLL provided by OS36 through the second API38. .. That is, the main module 43 instructs the DLL provided by the OS 36 to convert the character code of the CSV database indicated by the first file path into Unicode (S18). The DLL converts the character code of the database indicated by the first file path into Unicode. The DLL passes the file path of the Unicode CSV database (hereinafter, referred to as the second file path), which is the CSV database converted to Unicode, to the main module 43. Unicode is an example of a common character code. If the CSV database file indicated by the first file path acquired by the main module 43 in step S17 is described in Unicode, the process of step S18 is omitted.

本体モジュール43は、OS36が提供する上記DLLから第2ファイルパスを取得する(S19)。そして、本体モジュール43、コモンモジュール44、及びライブラリ45は、ステップS16で取得したモデル名及びデータベース名と、ステップS19で取得した第2ファイルパスに基づいて、プリンタ11に入力可能なデータベースのデータを生成する特定形式のデータ生成処理を実行する(S20)。図4及び図5を参照して、特定形式のデータ生成処理について詳しく説明する。 The main module 43 acquires the second file path from the DLL provided by the OS 36 (S19). Then, the main module 43, the common module 44, and the library 45 input the database data that can be input to the printer 11 based on the model name and the database name acquired in step S16 and the second file path acquired in step S19. The data generation process of the specific format to be generated is executed (S20). The specific format data generation process will be described in detail with reference to FIGS. 4 and 5.

図4に示されるように、本体モジュール43は、コモンモジュール44の第5API49を呼び出し(S31)、取得したモデル名、データベース名、及び第2ファイルパスをコモンモジュール44に受け渡す(S32)。 As shown in FIG. 4, the main module 43 calls the fifth API49 of the common module 44 (S31), and passes the acquired model name, database name, and second file path to the common module 44 (S32).

コモンモジュール44は、第5API49の引数として、モデル名、データベース名、及び第2ファイルパスを取得する(S32)。コモンモジュール44は、ライブラリ45の第1API47を呼び出し(S33)、取得したモデル名、データベース名、及び第2ファイルパスをライブラリ45に受け渡す(S34)。ステップS34の処理は、受渡処理の一例である。 The common module 44 acquires the model name, the database name, and the second file path as the arguments of the fifth API49 (S32). The common module 44 calls the first API 47 of the library 45 (S33) and passes the acquired model name, database name, and second file path to the library 45 (S34). The process of step S34 is an example of the delivery process.

ライブラリ45は、第1API47の引数として、モデル名、データベース名、及び第2ファイルパスを取得する(S34)。ライブラリ45は、取得したモデル名と、上述の変換対応テーブル48(図2(B))とに基づいて、ローカルコード種別と、配置種別とを特定する(S35)。ローカルコード種別とは、特定のモデルのプリンタが解釈可能な文字コードの種別であり、モデル毎に異なるローカルコード種別が用意されている。以下では、ローカルコード種別が示す文字コードをローカルコードと記載して説明する。 The library 45 acquires the model name, the database name, and the second file path as the arguments of the first API 47 (S34). The library 45 specifies the local code type and the arrangement type based on the acquired model name and the conversion correspondence table 48 (FIG. 2B) described above (S35). The local code type is a character code type that can be interpreted by a printer of a specific model, and different local code types are prepared for each model. In the following, the character code indicated by the local code type will be described as a local code.

ライブラリ45は、取得した第2ファイルパスが示すユニコードCSVデータベースを、特定したローカルコード種別が示す文字コードで記述されたデータベースであるローカルコードデータベースに変換する(S36)。ローカルコードは、変換後の文字コードの一例である。ライブラリ45がモデル名を取得するステップS34の処理は、種別情報取得処理の一例である。また、ライブラリ45が、ユニコードCSVデータベースを示す第2ファイルパスを取得するステップS34の処理は、データ取得処理の一例である。ユニコードCSVデータベースは、第1形式の第1データの一例である。上述の配置位置及びローカルコードは、特定情報の一例である。ライブラリ45が、ローカルコード及び配置位置を特定するステップS35の処理は、特定処理の一例である。 The library 45 converts the Unicode CSV database indicated by the acquired second file path into a local code database which is a database described by the character code indicated by the specified local code type (S36). The local code is an example of the converted character code. The process of step S34 in which the library 45 acquires the model name is an example of the type information acquisition process. Further, the process of step S34 in which the library 45 acquires the second file path indicating the Unicode CSV database is an example of the data acquisition process. The Unicode CSV database is an example of first data in the first format. The above-mentioned arrangement position and local code are examples of specific information. The process of step S35 in which the library 45 specifies the local code and the arrangement position is an example of the specific process.

次に、ライブラリ45は、ステップS35で特定した配置種別と、配置テーブル(図5(C))とに基づいて、PD3のデータ形式のデータベースを生成する(S37)。PD3のデータ形式は、CSVデータベースである基本データの他、プリンタ11に双方向通信を指示するコマンドをヘッダに有するデータ形式である。双方向通信とは、例えば、プリンタ11の制御プログラム67が、データの一部の受信を完了したことに応じて、データの残りの一部の送信を情報処理装置10に要求し、情報処理装置10がプリンタ11に送信するデータを、プリンタ11に順次送信する場合などに用いられる。PD3のデータ形式は、第3形式の一例である。PD3のデータ形式のデータベースは、第3データの一例である。 Next, the library 45 generates a database in the PD3 data format based on the arrangement type specified in step S35 and the arrangement table (FIG. 5 (C)) (S37). The data format of PD3 is a data format having a command in the header for instructing the printer 11 to perform bidirectional communication in addition to the basic data which is a CSV database. In the bidirectional communication, for example, the control program 67 of the printer 11 requests the information processing device 10 to transmit the remaining part of the data in response to the completion of receiving a part of the data, and the information processing device. It is used when the data transmitted by 10 to the printer 11 is sequentially transmitted to the printer 11. The PD3 data format is an example of the third format. The PD3 data format database is an example of the third data.

ライブラリ45が、PD3形式のデータベースを生成するステップS37の処理について、図5を参照して詳しく説明する。PD3形式のデータは、CSVデータベースに対応するバイナリデータである基本データや、ローカルコードの名称や、ローカルコードで記述されたデータベース名や、インデックスデータなどを有する。以下では、基本データや、ローカルコードの名称や、データベース名や、インデックスデータを、部分データと記載して説明する。部分データの配置位置は、変換後のデータの構成の一例である。 The process of step S37 in which the library 45 generates a database in PD3 format will be described in detail with reference to FIG. The PD3 format data includes basic data which is binary data corresponding to a CSV database, a name of a local code, a database name described in the local code, index data, and the like. In the following, basic data, local code names, database names, and index data will be described as partial data. The arrangement position of the partial data is an example of the structure of the data after conversion.

PD3形式のデータは、図5(A)に示されるように、部分データを、第1配置位置から順に配置して生成される。図における第1配置位置や、第2配置位置や、第3配置位置や、第4配置位置などの配置位置に配置される部分データの種類は、プリンタ11のモデル名ごとに相違する。各配置位置に配置される部分データの種類は、図5(C)に示される配置テーブルによって決定される。 The PD3 format data is generated by arranging the partial data in order from the first arrangement position as shown in FIG. 5A. The types of partial data arranged at the first arrangement position, the second arrangement position, the third arrangement position, the fourth arrangement position, and the like in the figure differ depending on the model name of the printer 11. The type of partial data arranged at each arrangement position is determined by the arrangement table shown in FIG. 5C.

配置テーブルは、配置種別と、各配置位置と、部分データの種別との対応を示すテーブルである。図示例では、配置種別「k011」と、第1配置位置「ローカルコードの名称」と、第2配置位置「データベース名」と、第3配置位置「基本データ」と、第4配置位置「インデックスデータ」とが対応付けられている。 The arrangement table is a table showing the correspondence between the arrangement type, each arrangement position, and the type of partial data. In the illustrated example, the placement type "k011", the first placement position "local code name", the second placement position "database name", the third placement position "basic data", and the fourth placement position "index data". "Is associated with.

ライブラリ45は、ローカルコードデータベースに含まれる基本データ及びデータベース名や、特定したローカルコードの名称や、生成したインデックスデータを、配置テーブルが示す配置位置で配置し、PD3形式のデータベースを生成する。図5(B)は、特定した配置種別が「k011」である場合に生成されるPD3形式のデータベースを示す。 The library 45 arranges the basic data and the database name included in the local code database, the name of the specified local code, and the generated index data at the arrangement position indicated by the arrangement table, and generates a PD3 format database. FIG. 5B shows a PD3 format database generated when the specified arrangement type is “k011”.

ライブラリ45は、図4に示されるように、ステップS37で生成したPD3形式のデータベースに基づいて、特定形式のデータベースを生成する(S38)。特定形式は、図5(D)に示されるように、PD3形式のデータベースを含むデータ形式である。特定形式のデータベースは、PD3形式のデータベースに加え、プリンタ11に片方向通信でデータを入力する指示を示すコマンドをヘッダに有する。すなわち、ライブラリ45は、双方向通信でプリンタ11に入力する形式のPD3データではなく、片方向通信でプリンタ11にデータを入力する特定形式のデータを生成する。片方向通信は、例えば、情報処理装置10が、プリンタ11に送信すべきデータを、プリンタ11に対して確認を行わずに実行する通信である。 As shown in FIG. 4, the library 45 generates a specific format database based on the PD3 format database generated in step S37 (S38). The specific format is a data format including a database in PD3 format, as shown in FIG. 5 (D). In addition to the PD3 format database, the specific format database has a command in the header indicating an instruction for inputting data to the printer 11 by one-way communication. That is, the library 45 generates data in a specific format for inputting data to the printer 11 in one-way communication, not PD3 data in a format for inputting to the printer 11 in two-way communication. The one-way communication is, for example, a communication in which the information processing apparatus 10 executes data to be transmitted to the printer 11 without confirming with the printer 11.

ライブラリ45がPD3形式のデータベース(バイナリデータ)を生成するステップS37の処理、或いは、ライブラリ45が特定形式のデータベース(バイナリデータ)を生成するステップS38の処理は、データ変換処理の一例である。PD3形式のデータベース(バイナリデータ)或いは特定形式のデータベース(バイナリデータ)は、第2形式の第2データの一例である。 The process of step S37 in which the library 45 generates a database (binary data) in PD3 format, or the process of step S38 in which the library 45 generates a database (binary data) in a specific format is an example of a data conversion process. The PD3 format database (binary data) or the specific format database (binary data) is an example of the second data in the second format.

ステップS34からS38までの処理について、さらに具体的に説明する。コモンモジュール44は、ライブラリ45が有する第1サブAPIを呼び出し、取得したモデル名をライブラリ45に受け渡す。ライブラリ45は、受け渡されたモデル名から、第2サブAPIを生成する。第1サブAPI及び第2サブAPIは、第1API47に含まれる。 The processes from steps S34 to S38 will be described in more detail. The common module 44 calls the first sub API of the library 45 and passes the acquired model name to the library 45. The library 45 generates a second sub-API from the passed model name. The first sub-API and the second sub-API are included in the first API 47.

第2サブAPIは、第1クラス、第2クラス、及び第3クラスを示すAPIである。第1クラスは、ユニコードCSVデータベース及びデータベース名を、ローカルコードのCSVデータベース及びデータベース名に変換するクラスである。第2クラスは、上述の配置テーブルに基づいて配置位置を決定し、決定した配置位置で上述の部分データを配置してPD3形式のデータベースを生成するクラスである。第3クラスは、PD3形式のデータベースを特定形式のデータベースに変換するクラスである。ライブラリ45は、ローカルコード種別の数に応じた数の第1クラスと、一の第2クラスと、一の第3クラスとを予め有する。ライブラリ45は、受け渡されたモデル名に基づいて特定した第1クラスと、第2クラス及び第3クラスを示す第2サブAPIをコモンモジュール44に受け渡す。 The second sub-API is an API indicating a first class, a second class, and a third class. The first class is a class that converts a Unicode CSV database and database name into a local code CSV database and database name. The second class is a class that determines the arrangement position based on the above-mentioned arrangement table, arranges the above-mentioned partial data at the determined arrangement position, and generates a PD3 format database. The third class is a class that converts a PD3 format database into a specific format database. The library 45 has a number of first classes, one second class, and one third class in advance according to the number of local code types. The library 45 passes the first class specified based on the passed model name and the second sub-API indicating the second class and the third class to the common module 44.

コモンモジュール44は、受け渡された第2サブAPIに、取得したデータベース名及び第2ファイルパスを入力し、インスタンスを生成する。生成されたインスタンスは、ユニコードのCSVデータベース及びデータベース名を、ローカルコードのCSVデータベース及びデータベース名に変換し、部分データを、モデル名で特定される配置位置に配置してPD3形式のデータベースを生成し、生成したPD3形式のデータベースを特定形式のデータベースに変換する処理を示す。コモンモジュール44は、生成したインスタンスをライブラリ45に受け渡す(S34)。 The common module 44 inputs the acquired database name and the second file path into the passed second sub API, and creates an instance. The generated instance converts the Unicode CSV database and database name to the local code CSV database and database name, and arranges the partial data at the arrangement position specified by the model name to generate a PD3 format database. , The process of converting the generated PD3 format database into a specific format database is shown. The common module 44 passes the generated instance to the library 45 (S34).

ライブラリ45は、コモンモジュール44から受け渡されたインスタンスを処理し(S35〜S38)、特定形式のデータベースを生成する(S38)。第2クラスから生成されたインスタンスに基づいて実行される処理は、特定した前記特定情報が示す前記配置位置で複数の前記部分データを配置する処理の一例である。第3クラスから生成されたインスタンスに基づいて実行される処理は、配置したデータを前記第2形式の前記第2データに変換する処理の一例である。ライブラリ45は、自己が有する第2サブAPIが示すクラスから生成したインスタンスを処理するので、コモンモジュール44から受け渡されたインスタンスを確実に処理して特定形式のデータベースを生成することができる。 The library 45 processes the instance passed from the common module 44 (S35 to S38) and generates a database of a specific format (S38). The process executed based on the instance generated from the second class is an example of the process of arranging a plurality of the partial data at the arrangement position indicated by the specified specific information. The process executed based on the instance generated from the third class is an example of the process of converting the arranged data into the second data of the second format. Since the library 45 processes the instance generated from the class indicated by the second sub API that it has, it is possible to reliably process the instance passed from the common module 44 and generate a database of a specific format.

なお、第1サブAPI、第2サブAPI、第1クラス、第2クラス、及び第3クラスに基づいて上述のステップS34からS38の処理が実行される例を説明したが、他の構成によってステップS34からS38の処理が実行されてもよい。 An example in which the processes of steps S34 to S38 described above are executed based on the first sub-API, the second sub-API, the first class, the second class, and the third class has been described, but the steps are based on other configurations. The processes of S34 to S38 may be executed.

ライブラリ45は、図4に示されるように、生成した特定形式のデータベースを示すファイルパスである第3ファイルパスを、第1API47の戻り値としてコモンモジュール44に受け渡し(S39)、特定形式のデータ生成処理を終了する。コモンモジュール44は、第3ファイルパスをライブラリ45から取得し(S39)、取得した第3ファイルパスを、第5API49の戻り値として本体モジュール43に受け渡し(S40)、特定形式のデータ生成処理を終了する。本体モジュール43は、第3ファイルパスをコモンモジュール44から取得し(S40)、特定形式のデータ生成処理を終了する。ライブラリ45が、特定形式のデータをコモンモジュール44に受け渡すステップS39の処理は、出力処理の一例である。 As shown in FIG. 4, the library 45 passes a third file path, which is a file path indicating the generated specific format database, to the common module 44 as a return value of the first API 47 (S39), and generates data in the specific format. End the process. The common module 44 acquires the third file path from the library 45 (S39), passes the acquired third file path to the main module 43 as the return value of the fifth API 49 (S40), and ends the data generation process of the specific format. To do. The main module 43 acquires the third file path from the common module 44 (S40), and ends the data generation process of the specific format. The process of step S39 in which the library 45 passes the data of the specific format to the common module 44 is an example of the output process.

本体モジュール43は、図3に示されるように、特定形式のデータ生成処理(S20)の終了後、OS36が提供するDLLの第4API39(図1)を呼び出して(S21)、第3ファイルパスを第4API39に受け渡し、第3ファイルパスが示す特定形式のデータベースをプリンタ11に送信することを、OS36が提供するDLLに指示する。当該DLLは、受け渡された第3ファイルパスが示す特定形式のデータベースを、通信インタフェース23を通じて片方向通信でプリンタ11に送信する(S22)。 As shown in FIG. 3, the main module 43 calls the fourth API 39 (FIG. 1) of the DLL provided by the OS 36 (S21) after the end of the data generation process (S20) of the specific format, and sets the third file path. It instructs the DLL provided by the OS 36 to pass it to the 4th API 39 and send the database of the specific format indicated by the 3rd file path to the printer 11. The DLL transmits the database of the specific format indicated by the passed third file path to the printer 11 by one-way communication through the communication interface 23 (S22).

プリンタ11に実装された制御プログラム67は、特定形式のデータベースを通信インタフェース53を通じて受信する(S22)。制御プログラム67は、受信した特定形式のデータベースを、プリンタ11のメモリ62に記憶させて登録する(S23)。制御プログラム67は、登録されたデータベースに基づいて、印刷処理を実行する(S24)。例えば、制御プログラム67は、データベース(図2(C))の番号「1」の印刷の指示を受け付けたことに応じて、データベースから「1階」、「空調」、及び「200V」を読み出し、読み出した「1階」、「空調」、及び「200V」を、上述の印刷領域データが示す「TEXT1」、「TEXT2」、及び「TEXT3」にそれぞれ配置して、印刷エンジン52に入力するデータを生成する。そして、制御プログラム67は、生成したデータを印刷エンジン52に入力し、印刷エンジン52に対して、ラベルに画像を印刷させる。 The control program 67 implemented in the printer 11 receives a database of a specific format through the communication interface 53 (S22). The control program 67 stores the received database of the specific format in the memory 62 of the printer 11 and registers it (S23). The control program 67 executes the printing process based on the registered database (S24). For example, the control program 67 reads "1st floor", "air conditioning", and "200V" from the database in response to receiving the printing instruction of the number "1" of the database (FIG. 2C). The read "1st floor", "air conditioning", and "200V" are arranged in "TEXT1", "TEXT2", and "TEXT3" indicated by the above-mentioned print area data, respectively, and the data to be input to the print engine 52 is input. Generate. Then, the control program 67 inputs the generated data to the print engine 52, and causes the print engine 52 to print an image on the label.

次に、アプリケーション37が、入力された画像データを変換して印刷データを生成し、生成した印刷データをプリンタ11に入力してプリンタ11に印刷を実行させる処理について、図6を参照して説明する。すなわち、アプリケーション37は、データベースをプリンタ11に入力することができ、かつ、入力された画像データから印刷データを生成してプリンタ11に入力することができるプログラムである。 Next, a process in which the application 37 converts the input image data to generate print data, inputs the generated print data to the printer 11, and causes the printer 11 to perform printing will be described with reference to FIG. To do. That is, the application 37 is a program that can input the database to the printer 11 and can generate print data from the input image data and input it to the printer 11.

アプリケーション37は、例えば、画像データを作成したプログラムからの指示により、OS36によって起動される。或いは、アプリケーション37は、ユーザの起動指示により起動される。起動されたアプリケーション37の本体モジュール43は、上述のステップS11からS15までの処理を実行し、プリンタ11のモデル名を取得する(S41)。また、本体モジュール43は、OS36から、画像データのファイルパスを取得する(S42)。 The application 37 is started by the OS 36, for example, according to an instruction from the program that created the image data. Alternatively, the application 37 is started by a user's start instruction. The main module 43 of the activated application 37 executes the above-described processes S11 to S15 to acquire the model name of the printer 11 (S41). Further, the main body module 43 acquires the file path of the image data from the OS 36 (S42).

本体モジュール43は、コモンモジュール44が有する不図示のAPIを呼び出し(S43)、取得したモデル名及び画像データのファイルパスをコモンモジュール44に受け渡す(S44)。 The main module 43 calls an API (not shown) included in the common module 44 (S43), and passes the acquired model name and the file path of the image data to the common module 44 (S44).

コモンモジュール44は、本体モジュール43からモデル名及びファイルパスを取得する(S44)。コモンモジュール44は、取得したモデル名と、取得したファイルパスが示す画像データに基づいて、印刷データを生成する(S45)。コモンモジュール44は、例えば周知の技術を用いて印刷データを生成する。コモンモジュール44は、生成した印刷データのファイルパスを、上述のAPIの戻り値として本体モジュール43に受け渡す(S46)。 The common module 44 acquires the model name and the file path from the main module 43 (S44). The common module 44 generates print data based on the acquired model name and the image data indicated by the acquired file path (S45). The common module 44 generates print data using, for example, a well-known technique. The common module 44 passes the generated print data file path to the main module 43 as the return value of the API described above (S46).

本体モジュール43は、OS36が提供するDLLの第4API39を呼び出し(S47)、印刷データのファイルパスを当該DLLに受け渡す。当該DLLは、ファイルパスが示す印刷データを、通信インタフェース23を通じてプリンタ11に送信する(S48)。 The main module 43 calls the fourth API 39 of the DLL provided by the OS 36 (S47), and passes the file path of the print data to the DLL. The DLL transmits the print data indicated by the file path to the printer 11 through the communication interface 23 (S48).

プリンタ11に実装された制御プログラム67は、通信インタフェース53を通じて印刷データを受信する(S48)。制御プログラム67は、受信した印刷データを印刷エンジン52に入力し、印刷データが示す画像をラベルに印刷させる(S49)。 The control program 67 mounted on the printer 11 receives print data through the communication interface 53 (S48). The control program 67 inputs the received print data to the print engine 52, and causes the label to print the image indicated by the print data (S49).

[実施形態の作用効果]
ライブラリ45は、取得したモデル名に対応するローカルコード種別の文字コードと配置位置とを変換対応テーブル48において特定する。そして、ライブラリ45は、特定した文字コードと配置位置とに基づいて、ユニコードのCSVデータベースを、特定したローカルコードの特定形式のデータベースに変換する。したがって、ライブラリ45は、プリンタ11の種別に応じて、プリンタ11に入力可能なデータの形態のデータベースを生成することができる。
[Action and effect of the embodiment]
The library 45 specifies the character code of the local code type corresponding to the acquired model name and the arrangement position in the conversion correspondence table 48. Then, the library 45 converts the Unicode CSV database into a specific format database of the specified local code based on the specified character code and the arrangement position. Therefore, the library 45 can generate a database in the form of data that can be input to the printer 11 according to the type of the printer 11.

また、ライブラリ45は、モデル名と配置位置とを対応付けたテーブルを有しているので、部分データの配置位置がプリンタ11の種別によって異なるPD3のデータ形式のデータベースを生成することができる。 Further, since the library 45 has a table in which the model name and the arrangement position are associated with each other, it is possible to generate a database of the PD3 data format in which the arrangement position of the partial data differs depending on the type of the printer 11.

また、ライブラリ45は、部分データを、特定した配置位置で配置してPD3形式のデータベースを生成するインスタンスを生成する一の第2クラスと、生成したPD3形式のデータベースを特定形式のデータベースに変換するインスタンスを生成する一の第3クラスとを有する第2サブAPIを有する。したがって、プリンタの種別ごとに、PD3形式のデータベースを生成し、生成したPD3形式のデータベースを特定形式のデータベースに変換するAPIをライブラリ45に設ける場合に比べて、ライブラリ45が有するクラスの数を低減することができる。その結果、ライブラリ45が簡素化され、携帯端末に実装することができるアプリケーション37が実現される。 In addition, the library 45 converts the generated PD3 format database into a specific format database and the first second class that generates an instance that generates a PD3 format database by arranging the partial data at a specific arrangement position. It has a second sub-API with one third class that creates an instance. Therefore, the number of classes in the library 45 is reduced as compared with the case where the library 45 is provided with an API that generates a PD3 format database for each printer type and converts the generated PD3 format database into a specific format database. can do. As a result, the library 45 is simplified and an application 37 that can be implemented in a mobile terminal is realized.

また、ライブラリ45は、ユニコードを、プリンタ11の種別に応じたローカルコード種別の文字コードに変換するインスタンスを生成する第1クラスを有する。そして、ライブラリ45は、第1クラスに基づいて生成されたインスタンスを処理することにより、ユニコードのCSVデータベースを、プリンタ11の種別に応じた文字コードのCSVデータベースに変換することができる。したがって、ライブラリ45は、プリンタ11の種別に応じた文字コードのデータベースを生成することができる。したがって、ライブラリ45は、プリンタ11の種別に拘わらず、プリンタ11が解釈可能な文字コードで記述されたデータベースを生成することができる。 Further, the library 45 has a first class that generates an instance that converts Unicode into a character code of a local code type according to the type of the printer 11. Then, the library 45 can convert the Unicode CSV database into the character code CSV database according to the type of the printer 11 by processing the instance generated based on the first class. Therefore, the library 45 can generate a database of character codes according to the type of the printer 11. Therefore, the library 45 can generate a database described by a character code that can be interpreted by the printer 11, regardless of the type of the printer 11.

本体モジュール43は、OS36が提供するDLLの第2API38を呼び出して、当該DLLに、表作成プログラムが作成したCSVデータベースの文字コードをユニコードのCSVデータベースに変換させる(S18)。そして、本体モジュール43は、ユニコードのCSVデータベースを、コモンモジュール44を介してライブラリ45に受け渡す。したがって、ライブラリ45に入力するCSVデータベースの文字コードをユニコードに限定することができる。したがって、種々の文字コードで記述されたCSVデータベースをライブラリ45に入力する場合に比べ、ライブラリ45で実行する処理を低減することができる。 The main module 43 calls the second API 38 of the DLL provided by the OS 36, and causes the DLL to convert the character code of the CSV database created by the table creation program into the Unicode CSV database (S18). Then, the main body module 43 passes the Unicode CSV database to the library 45 via the common module 44. Therefore, the character code of the CSV database input to the library 45 can be limited to Unicode. Therefore, the processing executed by the library 45 can be reduced as compared with the case where the CSV database described by various character codes is input to the library 45.

アプリケーション37は、ライブラリ45に加え、コモンモジュール44を備える。したがって、アプリケーション37は、プリンタ11に入力可能な特定形式のデータベースを生成することもできるし、画像データから印刷データを生成することもできる。 The application 37 includes a common module 44 in addition to the library 45. Therefore, the application 37 can generate a database of a specific format that can be input to the printer 11, or can generate print data from the image data.

また、ライブラリ45は、C++のプログラム言語で記述されている。したがって、C++で記述されたプログラムと情報やデータを受け渡し可能なプログラムであれば、ライブラリ45に情報やデータを受け渡してライブラリ45を利用することができる。 The library 45 is described in the C ++ program language. Therefore, any program described in C ++ and a program capable of passing information and data can pass the information and data to the library 45 and use the library 45.

[その他の変形例]
上述の実施形態では、本体モジュール43が、ライブラリ45が生成した特定形式のデータベース(バイナリデータ)をOS36を介してプリンタ11に送信する例を説明した。しかしながら、本体モジュール43は、ライブラリ45が生成した特定形式のデータベース(バイナリデータ)をバイナリデータのまま、或いはファイル形式にして、メモリ32のデータ記憶領域35に記憶させてもよい。また、本体モジュール43は、ライブラリ45が生成した特定形式のデータベース(バイナリデータ)を、バイナリデータのまま、或いはファイル形式にして、プリンタ11以外の装置に送信してもよい。
[Other variants]
In the above-described embodiment, an example has been described in which the main module 43 transmits a database (binary data) of a specific format generated by the library 45 to the printer 11 via the OS 36. However, the main module 43 may store the database (binary data) of the specific format generated by the library 45 in the data storage area 35 of the memory 32 as binary data or in a file format. Further, the main module 43 may transmit the database (binary data) of the specific format generated by the library 45 to a device other than the printer 11 as binary data or in a file format.

上述の実施形態では、OS36が提供するDLLに、表作成プログラムが作成したCSVデータベースの文字コードをユニコードのCSVデータベースに変換させる例を説明した。しかしながら、アプリケーション37は、表作成プログラムが作成したCSVデータベースの文字コードをユニコードのCSVデータベースに変換するモジュールをさらに備えていてもよい。 In the above-described embodiment, an example in which the DLL provided by the OS 36 converts the character code of the CSV database created by the table creation program into the Unicode CSV database has been described. However, the application 37 may further include a module that converts the character code of the CSV database created by the table creation program into a Unicode CSV database.

上述の実施形態では、ライブラリ45が、特定形式のデータベースを生成し、生成した特定形式のデータベースをコモンモジュール44に受け渡す例を説明した。しかしながら、ライブラリ45は、PD3形式のデータベースを生成し(S37)、生成したPD3形式のデータベースをコモンモジュール44に受け渡してもよい。 In the above-described embodiment, an example has been described in which the library 45 generates a database of a specific format and passes the generated database of the specific format to the common module 44. However, the library 45 may generate a PD3 format database (S37) and pass the generated PD3 format database to the common module 44.

上述の実施形態では、アプリケーション37に入力されるデータベースが、CSVデータベースである例を説明した。しかしながら、アプリケーション37に入力されるデータベースは、CSVデータベースに限定されない。 In the above-described embodiment, an example in which the database input to the application 37 is a CSV database has been described. However, the database input to the application 37 is not limited to the CSV database.

上述の実施形態では、部分データの例として、「ローカルコードの名称」、「データベース名」、「基本データ」、「インデックスデータ」を説明した。しかしながら、部分データは、例示したデータ以外のデータであってもよい。 In the above-described embodiment, "local code name", "database name", "basic data", and "index data" have been described as examples of partial data. However, the partial data may be data other than the illustrated data.

上述の実施形態では、印刷データを生成するコモンモジュール44が、データベースのデータ形式の変換をライブラリ45に指示する例を説明した。しかしながら、本体モジュール43が、データベースのデータ形式の変換をライブラリ45に直接指示してもよいし、データベースのデータ形式の変換をコモンモジュール44以外のモジュールを介してライブラリ45に指示してもよい。 In the above-described embodiment, an example in which the common module 44 that generates print data instructs the library 45 to convert the data format of the database has been described. However, the main module 43 may directly instruct the library 45 to convert the data format of the database, or may instruct the library 45 to convert the data format of the database via a module other than the common module 44.

上述の実施形態では、変換前のCSVデータベースファイルを示す第1ファイルパスと、変換後のユニコードCSVデータベースを示す第2ファイルパスとが相違する例を説明した。同様に、第2ファイルパスと第3ファイルパスとが相違する例を説明した。しかしながら、第1ファイルパスと第2ファイルパスとが同一のファイルパスであってもよいし、第2ファイルパスと第3ファイルパスとが同一のファイルパスであってもよい。すなわち、変換前のデータを示すファイルパスと、変換後のデータを示すファイルパスとは、同一であってもよい。 In the above-described embodiment, an example in which the first file path indicating the CSV database file before conversion and the second file path indicating the Unicode CSV database after conversion are different has been described. Similarly, an example in which the second file path and the third file path are different has been described. However, the first file path and the second file path may be the same file path, or the second file path and the third file path may be the same file path. That is, the file path indicating the data before conversion and the file path indicating the data after conversion may be the same.

10・・・情報処理装置
11・・・プリンタ
23・・・通信インタフェース
37・・・アプリケーション
38・・・第2API
41・・・UIモジュール
42・・・本体プログラム
43・・・本体モジュール
44・・・コモンモジュール
45・・・ライブラリ
46・・・第3API
47・・・第1API
48・・・変換対応テーブル
10 ... Information processing device 11 ... Printer 23 ... Communication interface 37 ... Application 38 ... Second API
41 ... UI module 42 ... Main body program 43 ... Main body module 44 ... Common module 45 ... Library 46 ... Third API
47 ... 1st API
48 ... Conversion compatible table

Claims (10)

情報処理装置のコンピュータによって実行され、かつ変換対応テーブルを有するプログラムであって、
前記変換対応テーブルは、プリンタの種別を示す種別情報と、変換後のデータの構成と、変換後のデータの文字コードの種別とのうち少なくとも一方を特定する特定情報との対応を示すテーブルであり、
前記種別情報を取得する種別情報取得処理と、
第1形式のデータである第1データを取得するデータ取得処理と、
取得した前記種別情報に対応する前記特定情報を前記変換対応テーブルに基づいて特定する特定処理と、
前記第1形式の前記第1データを、特定した前記特定情報に応じたデータであって、前記プリンタに入力可能な第2形式のデータである第2データに変換するデータ変換処理と、
前記第2データを出力する出力処理と、を前記コンピュータに実行させるプログラム。
A program that is executed by the computer of the information processing device and has a conversion compatible table.
The conversion correspondence table is a table showing the correspondence between the type information indicating the type of the printer, the configuration of the data after conversion, and the specific information that specifies at least one of the character code types of the data after conversion. ,
The type information acquisition process for acquiring the type information and
Data acquisition processing to acquire the first data, which is the data of the first format,
Specific processing for specifying the specific information corresponding to the acquired type information based on the conversion correspondence table, and
A data conversion process for converting the first data in the first format into second data, which is data corresponding to the specified specific information and is data in the second format that can be input to the printer.
A program that causes the computer to execute an output process for outputting the second data.
前記特定情報は、変換後のデータの構成を示しており、
前記データの構成は、前記第1データに含まれる複数の部分データの配置位置を示しており、
前記データ変換処理は、
特定した前記特定情報が示す前記配置位置で複数の前記部分データを配置する処理と、
配置したデータを前記第2形式の前記第2データに変換する処理と、を含む請求項1に記載のプログラム。
The specific information shows the structure of the converted data.
The structure of the data indicates the arrangement position of a plurality of partial data included in the first data.
The data conversion process
A process of arranging a plurality of the partial data at the arrangement position indicated by the specified specific information, and
The program according to claim 1, further comprising a process of converting the arranged data into the second data of the second format.
前記データ変換処理を実行する第1APIを有する請求項2に記載のプログラム。 The program according to claim 2, which has a first API that executes the data conversion process. 前記特定情報は、変換後のデータの文字コードの種別を示しており、
前記データ変換処理は、
前記第1データの文字コードを、特定した前記特定情報が示す種別の文字コードに変換する処理と、
前記特定情報が示す種別の文字コードに変換したデータを前記第2形式の前記第2データに変換する処理と、を含む請求項1から3のいずれかに記載のプログラム。
The specific information indicates the type of character code of the converted data.
The data conversion process
A process of converting the character code of the first data into a character code of the type indicated by the specified specific information, and
The program according to any one of claims 1 to 3, comprising a process of converting data converted into a character code of the type indicated by the specific information into the second data of the second format.
前記特定情報は、変換後のデータの構成及び変換後のデータの文字コードの種別を示しており、
前記データの構成は、前記第1データに含まれる複数の部分データの配置位置を示しており、
前記データ変換処理は、
前記第1データの文字コードを、特定した前記特定情報が示す種別の文字コードに変換する処理と、
特定した前記特定情報が示す前記配置位置で複数の前記部分データを配置して第3形式の第3データを生成する処理と、
配置したデータを前記第2形式の前記第2データに変換する処理と、を含んでおり、
前記データ変換処理を実行する第1APIを有する請求項1に記載のプログラム。
The specific information indicates the structure of the data after conversion and the type of character code of the data after conversion.
The structure of the data indicates the arrangement position of a plurality of partial data included in the first data.
The data conversion process
A process of converting the character code of the first data into a character code of the type indicated by the specified specific information, and
A process of arranging a plurality of the partial data at the arrangement position indicated by the specified specific information to generate a third data of the third format, and
It includes a process of converting the arranged data into the second data of the second format.
The program according to claim 1, which has a first API that executes the data conversion process.
前記第3データは、前記情報処理装置と前記プリンタとの間の双方向通信を指示するコマンドを含むデータであり、
前記第2データは、前記情報処理装置から前記プリンタへの片方向通信を指示するコマンドを含むデータである請求項5に記載のプログラム。
The third data is data including a command instructing bidirectional communication between the information processing device and the printer.
The program according to claim 5, wherein the second data is data including a command instructing one-way communication from the information processing device to the printer.
前記情報処理装置は、通信インタフェースを有する携帯端末である請求項1から6のいずれかに記載のプログラム。 The program according to any one of claims 1 to 6, wherein the information processing device is a mobile terminal having a communication interface. 請求項1から7のいずれかに記載のプログラムである第1モジュールと、
前記コンピュータによって実行される第2モジュールと、を備えており、
前記第2モジュールは、
第4形式のデータである元データを取得する元データ取得処理と、
共通コードに変換する第2APIであって、前記情報処理装置のOSが提供する当該第2APIに、前記元データの文字コードを共通文字コードに変換させて前記第1データを取得するデータ取得処理と、
取得した前記第1データを前記第1モジュールに取得させる受渡処理と、を前記コンピュータに実行させるデータ生成プログラム。
The first module, which is the program according to any one of claims 1 to 7,
It has a second module, which is executed by the computer.
The second module is
Original data acquisition process to acquire the original data which is the data of the 4th format,
A data acquisition process for converting the character code of the original data into a common character code and acquiring the first data in the second API provided by the OS of the information processing apparatus, which is a second API that converts to a common code. ,
A data generation program that causes the computer to execute a delivery process for causing the first module to acquire the acquired first data.
前記コンピュータによって実行されるモジュールであって、印刷データを生成する第3モジュールをさらに備える請求項8に記載のデータ生成プログラム。 The data generation program according to claim 8, further comprising a third module for generating print data, which is a module executed by the computer. 第4モジュールをさらに備えており、
前記第2モジュールは、前記第4モジュールによって呼び出される第3APIを有しており、
前記第4モジュールは、前記第3APIを呼び出して、前記第2モジュールに前記元データを受け渡す処理を前記コンピュータに実行させる請求項8または9に記載のデータ生成プログラム。


It also has a 4th module,
The second module has a third API called by the fourth module.
The data generation program according to claim 8 or 9, wherein the fourth module calls the third API and causes the computer to execute a process of passing the original data to the second module.


JP2019110889A 2019-06-14 2019-06-14 program Active JP7290073B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2019110889A JP7290073B2 (en) 2019-06-14 2019-06-14 program
US16/891,677 US11435965B2 (en) 2019-06-14 2020-06-03 Storage medium storing program for converting first data into second data to be inputted to printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019110889A JP7290073B2 (en) 2019-06-14 2019-06-14 program

Publications (2)

Publication Number Publication Date
JP2020204807A true JP2020204807A (en) 2020-12-24
JP7290073B2 JP7290073B2 (en) 2023-06-13

Family

ID=73838397

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019110889A Active JP7290073B2 (en) 2019-06-14 2019-06-14 program

Country Status (1)

Country Link
JP (1) JP7290073B2 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07129342A (en) * 1993-11-04 1995-05-19 Fuji Xerox Co Ltd Control system for printer device
JPH1195941A (en) * 1997-09-19 1999-04-09 Fujitsu Ltd Printer system, printer unit and computer device for the same
JP2000020259A (en) * 1998-07-07 2000-01-21 Nagano Nippon Denki Software Kk Printer control data conversion system and recording medium where program for printer control data conversion is recorded
US20020054345A1 (en) * 2000-08-29 2002-05-09 Casio Computer Co., Ltd. Peripheral device, printing apparatus, data acquisition method, print support method, print support system, portable communication terminal, and printing method
JP2002318677A (en) * 2002-01-24 2002-10-31 Seiko Epson Corp System for mediating printing on network
JP2005135180A (en) * 2003-10-30 2005-05-26 Teraoka Seiko Co Ltd Printing and character printing system
JP2005222459A (en) * 2004-02-09 2005-08-18 Fuji Xerox Co Ltd Business form printing data preparation system
JP2013210885A (en) * 2012-03-30 2013-10-10 Seiko Epson Corp Print control unit, print system, and print control method
JP2015227001A (en) * 2014-05-30 2015-12-17 ブラザー工業株式会社 Printer
JP2018069512A (en) * 2016-10-27 2018-05-10 セイコーエプソン株式会社 Printer and control method for the same

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07129342A (en) * 1993-11-04 1995-05-19 Fuji Xerox Co Ltd Control system for printer device
JPH1195941A (en) * 1997-09-19 1999-04-09 Fujitsu Ltd Printer system, printer unit and computer device for the same
JP2000020259A (en) * 1998-07-07 2000-01-21 Nagano Nippon Denki Software Kk Printer control data conversion system and recording medium where program for printer control data conversion is recorded
US20020054345A1 (en) * 2000-08-29 2002-05-09 Casio Computer Co., Ltd. Peripheral device, printing apparatus, data acquisition method, print support method, print support system, portable communication terminal, and printing method
JP2002175226A (en) * 2000-08-29 2002-06-21 Casio Comput Co Ltd Slaved device, printer, method of acquiring information, method and system for supporting printing, mobile communication terminal, and printing method
JP2002318677A (en) * 2002-01-24 2002-10-31 Seiko Epson Corp System for mediating printing on network
JP2005135180A (en) * 2003-10-30 2005-05-26 Teraoka Seiko Co Ltd Printing and character printing system
JP2005222459A (en) * 2004-02-09 2005-08-18 Fuji Xerox Co Ltd Business form printing data preparation system
JP2013210885A (en) * 2012-03-30 2013-10-10 Seiko Epson Corp Print control unit, print system, and print control method
JP2015227001A (en) * 2014-05-30 2015-12-17 ブラザー工業株式会社 Printer
JP2018069512A (en) * 2016-10-27 2018-05-10 セイコーエプソン株式会社 Printer and control method for the same

Also Published As

Publication number Publication date
JP7290073B2 (en) 2023-06-13

Similar Documents

Publication Publication Date Title
US10356181B2 (en) Information processing system, information processing method and computer program product
JP5154533B2 (en) Program generating apparatus and program
JP6729168B2 (en) Content processing device
KR100886044B1 (en) Contents editor and method of editing contents using the same, and program product
JP2013058090A (en) Information processing apparatus, information processing method, and program
CN109976681B (en) Information processing apparatus, image forming apparatus, and computer-readable recording medium
JP2021056757A (en) Program and information processing device
JP2012003410A (en) Cartoon production support system and program
US9134941B2 (en) Printer
JP2011232971A (en) Display picture generation program, display picture generation device, and display picture generation method
JP2017204209A (en) Selection program and selection apparatus
JP7290073B2 (en) program
JP7306088B2 (en) program group
US11435965B2 (en) Storage medium storing program for converting first data into second data to be inputted to printer
JP7234687B2 (en) modules and programs
JP2019020892A (en) Printing system and printer used in the same
JP7234688B2 (en) Program, application, information processing device
JP7263837B2 (en) Program, application, information processing device
JP2005107635A (en) Electronic form input system, method and program, and medium
JP3710719B2 (en) Information processing system and interface system
JP2007115189A (en) Form processor, control method and program
JP2020144523A (en) program
JP2005092522A (en) System for transition of screen state, interface system, program for transition of screen state, program for interface system, method for transition of screen state, and interface method
JP4457705B2 (en) Service processing apparatus and document processing system
JP3614136B2 (en) Information transmission method and information processing apparatus with transmission function

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220517

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230221

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230417

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230502

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230515

R150 Certificate of patent or registration of utility model

Ref document number: 7290073

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150