JPH10289037A - Battery voltage monitoring device and wireless printer - Google Patents

Battery voltage monitoring device and wireless printer

Info

Publication number
JPH10289037A
JPH10289037A JP9093556A JP9355697A JPH10289037A JP H10289037 A JPH10289037 A JP H10289037A JP 9093556 A JP9093556 A JP 9093556A JP 9355697 A JP9355697 A JP 9355697A JP H10289037 A JPH10289037 A JP H10289037A
Authority
JP
Japan
Prior art keywords
voltage
battery
correction value
data
reference voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9093556A
Other languages
Japanese (ja)
Inventor
Teruji Yamagishi
岸 照 治 山
Masato Tsukuda
正 人 佃
Tadao Nishimura
村 忠 雄 西
Masahiro Nakamura
村 政 広 中
Keiji Fujitani
谷 啓 次 藤
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP9093556A priority Critical patent/JPH10289037A/en
Publication of JPH10289037A publication Critical patent/JPH10289037A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To easily adjust detection voltage by calculating a correction value at the time of applying reference voltage and adding the correction value to measurement voltage. SOLUTION: CPU 6 starts a battery voltage correction program stored in F-ROM 7. A battery pack 1 is taken out and external reference voltage V is connected instead. External reference voltage V is divided into 1/2 by division resistances 2 and 3 and they become internal reference voltage. It is inputted to an A/D converter 5. A difference between external reference voltage V and measurement voltage is set to be the correction value and is stored in F-ROM 7. At a battery voltage detection mode, the battery voltage of the battery pack 1 is inputted and the correction value is added to measurement voltage at that time so as to make it to be detection voltage. The correction value is calculated and the correction value is added to measurement voltage. Thus, detection voltage can precisely be adjusted by absorbing the fluctuation of the respective parts of a device. Thus, detection voltage can highly precisely be adjusted by detecting a peripheral temperature and correcting fluctuation owing to the temperature.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、携帯端末に使用さ
れる電池電源の電圧を監視して、電圧低下の警告表示や
電源断などを行う電池電圧監視装置に関し、またホスト
端末と無線通信または光通信により接続されてホスト端
末からの指示により印字を行うワイヤレスプリンターに
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a battery voltage monitoring device for monitoring the voltage of a battery power supply used in a portable terminal, displaying a warning of a voltage drop or shutting down the power supply. The present invention relates to a wireless printer that is connected by optical communication and performs printing according to an instruction from a host terminal.

【0002】[0002]

【従来の技術】従来の電池電圧監視装置は、図6に示す
ように、電池パック101の電圧を分割抵抗102、1
03を通してA/D変換器6に入力し、その入力電圧を
A/D変換器106でA/D基準電圧105と比較し
て、あるレベル以下になるとCPU107がLED11
0の表示を点滅させたり、異なる色のLEDを点灯する
ことにより、電圧低下の警告表示を行っている。システ
ムの動作プログラムはROM108に格納され、RAM
109は動作に必要なデータを書き込んだり、読み出し
たりする。検出電圧の調整は、入力電圧の値を検出電圧
の値に設定した状態で、入力側の可変抵抗器104によ
り行う。
2. Description of the Related Art As shown in FIG. 6, a conventional battery voltage monitoring device divides the voltage of a battery pack 101 into divided resistors 102, 1 and 2.
03, the A / D converter 6 compares the input voltage with the A / D reference voltage 105. When the input voltage falls below a certain level, the CPU 107
By blinking the display of 0 or turning on the LED of a different color, a warning of a voltage drop is displayed. The operation program of the system is stored in the ROM 108,
109 writes and reads data necessary for the operation. Adjustment of the detection voltage is performed by the input-side variable resistor 104 in a state where the value of the input voltage is set to the value of the detection voltage.

【0003】一方、従来のワイヤレスプリンターは、電
源として電池を用いているので、電池をいかに長持ちさ
せるかが課題となる。ワイヤレスプリンターは、ホスト
端末から無線通信または光通信により送られてくるデー
タを印字するために、一旦RAMに格納してから印字す
るので、実際に印字されるまでには時間がかかり、その
間に電池容量は消費されることになる。
On the other hand, since a conventional wireless printer uses a battery as a power source, the problem is how to make the battery last longer. Since the wireless printer prints data sent from the host terminal by wireless or optical communication, the data is temporarily stored in RAM and then printed. The capacity will be consumed.

【0004】[0004]

【発明が解決しようとする課題】上記従来の電池電圧監
視装置では、検出電圧の調整には10mVオーダーの調
整が必要なため、可変抵抗器による調整では範囲が狭
く、装置の各部のばらつきのために調整範囲に入らなか
ったり、可変抵抗器の設定値が経年変化によりずれたり
して調整が難しいという問題があった。そこで本発明の
目的は、検出電圧の調整を容易に行うことのできる電池
電圧監視装置を提供することにある。
In the above-described conventional battery voltage monitoring device, the adjustment of the detection voltage requires an adjustment on the order of 10 mV, and the adjustment by the variable resistor has a narrow range. However, there is a problem that the adjustment is difficult because the adjustment value does not fall within the adjustment range or the set value of the variable resistor is shifted due to aging. Therefore, an object of the present invention is to provide a battery voltage monitoring device that can easily adjust a detection voltage.

【0005】また、上記従来のワイヤレスプリンターで
は、すべてのデータをホスト端末からの伝送に依拠して
いるため、データ伝送量が多い場合には、印刷時間だけ
でなく通信時間も長くなり、それだけ電池容量を消費す
ることになる。そこで本発明の目的は、電池容量の消費
を抑えることのできるワイヤレスプリンターを提供する
ことにある。
Further, in the above-mentioned conventional wireless printer, since all data is transmitted from a host terminal, when the amount of data transmission is large, not only the printing time but also the communication time becomes longer, and the battery becomes longer. It will consume capacity. Therefore, an object of the present invention is to provide a wireless printer that can suppress consumption of battery capacity.

【0006】[0006]

【課題を解決するための手段】本発明の電池電圧監視装
置は、検出電圧の調整を可変抵抗器ではなく、ソフトウ
エア的に処理するようにしたものであり、基準電圧印加
時における補正値を算出してその補正値を測定電圧に加
えることにより、装置各部のばらつきを吸収した正確な
検出電圧の調整を行うことができる。また周囲の温度を
検出して温度による変動も補正することにより、より精
度の高い検出電圧の調整を行うことができる。
The battery voltage monitoring device according to the present invention is arranged such that the detection voltage is adjusted not by a variable resistor but by software, and the correction value at the time of applying a reference voltage is adjusted. By calculating and adding the correction value to the measured voltage, it is possible to perform accurate adjustment of the detected voltage, which absorbs variations in each part of the device. Further, by detecting the ambient temperature and correcting the fluctuation due to the temperature, the detection voltage can be adjusted with higher accuracy.

【0007】本発明のワイヤレスプリンターは、帳票な
どの固定フォーマットを有するデータは、ホスト端末か
らワイヤレスプリンターに伝送することなく、ワイヤレ
スプリンター自体に持たせて、変更データのみをホスト
端末からワイヤレスプリンターに伝送し、ワイヤレスプ
リンター側で固定フォーマットデータと合成することに
より、伝送時間を大幅に短縮して電池容量の消費を抑え
るようにしたものである。
According to the wireless printer of the present invention, data having a fixed format such as a form is not transmitted from the host terminal to the wireless printer, but is stored in the wireless printer itself, and only the changed data is transmitted from the host terminal to the wireless printer. However, by combining the data with the fixed format data on the wireless printer side, the transmission time is greatly reduced, and the consumption of battery capacity is suppressed.

【0008】[0008]

【発明の実施の形態】本発明の請求項1に記載の発明
は、電池電圧の低下を検出して所定の警告動作を行う電
池電圧監視装置において、基準電圧設定モードでは、外
部基準電圧を入力してその時のA/D変換値とA/D基
準電圧値とA/D分解能とから測定電圧を求めるととも
に、前記外部基準電圧と測定電圧との差を補正値として
記憶手段に記憶させ、電池電圧検出モードでは、電池電
圧を入力してその時の測定電圧に前記補正値を加えて検
出電圧とする制御手段を備えた電池電圧監視装置であ
り、検出電圧の調整を正確に行うという作用を有する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention according to a first aspect of the present invention is directed to a battery voltage monitoring device that detects a decrease in battery voltage and performs a predetermined warning operation. Then, a measurement voltage is obtained from the A / D conversion value, the A / D reference voltage value, and the A / D resolution at that time, and the difference between the external reference voltage and the measurement voltage is stored as a correction value in a storage unit. In the voltage detection mode, the battery voltage monitoring device is provided with control means for inputting a battery voltage and adding the correction value to the measured voltage at that time to obtain a detection voltage, and has an operation of accurately adjusting the detection voltage. .

【0009】本発明の請求項2に記載の発明は、温度検
出手段を備え、検出した温度により検出電圧を補正する
ことを特徴とする請求項1記載の電池電圧監視装置であ
り、検出電圧の調整を正確に行うという作用を有する。
According to a second aspect of the present invention, there is provided the battery voltage monitoring apparatus according to the first aspect, further comprising a temperature detecting means, wherein the detected voltage is corrected based on the detected temperature. This has the effect of performing the adjustment accurately.

【0010】本発明の請求項3に記載の発明は、ホスト
端末と無線通信または光通信により接続されてホスト端
末からの指示により印字を行うワイヤレスプリンターに
おいて、ホスト端末との間でデータの授受を行うワイヤ
レス通信手段と、固定フォーマットを予め登録しておく
記憶手段と、前記固定フォーマットに変更データを組み
込んで印字データを作成する制御手段と、前記作成され
た印字データを印字するプリント手段とを備えたワイヤ
レスプリンターであり、データ伝送時間を短縮して電池
容量の消費を抑えるという作用を有する。
According to a third aspect of the present invention, there is provided a wireless printer which is connected to a host terminal by wireless communication or optical communication and performs printing in accordance with an instruction from the host terminal, and exchanges data with the host terminal. Wireless communication means for performing, a storage means for registering a fixed format in advance, a control means for creating print data by incorporating change data in the fixed format, and a printing means for printing the created print data Wireless printer, which has the effect of reducing data transmission time and suppressing battery capacity consumption.

【0011】本発明の請求項4に記載の発明は、制御手
段が、複数の固定フォーマットを組み合わせて一つの固
定フォーマットに合成する機能を備えた請求項3記載の
ワイヤレスプリンターであり、データ伝送時間を短縮し
て電池容量の消費を抑えるという作用を有する。
According to a fourth aspect of the present invention, there is provided the wireless printer according to the third aspect, wherein the control means has a function of combining a plurality of fixed formats into one fixed format. To reduce the battery capacity consumption.

【0012】(実施の形態1)図1は本発明の実施の形
態1における電池電圧監視装置の構成を示すものであ
る。図1において、1は電池パックであり、リチウムイ
オン電池が使用されている。2および3は分割抵抗器で
あり、両者の接続点がA/D変換器5の一方の入力側に
接続されている。4はA/D変換器5の他方の入力側に
接続されたA/D基準電圧である。A/D変換器5は、
入力電圧とA/D基準電圧4とを比較してその結果をデ
ジタル値として出力する。6はCPUであり、装置全体
を制御するとともに、A/D変換された検出電圧の判定
を行う。7はF−ROM(フラッシュROM)であり、
補正プログラムおよびシステムプログラムと補正プログ
ラムにより算出された補正値を記憶する。8はRAMで
あり、装置の動作に必要なデータの書き込み、読み出し
を行う。9はサーミスタ10とともに分割抵抗を構成す
る抵抗器であり、両者の接続点がA/D変換器11の入
力側に接続されている。サーミスタ10は、装置の周囲
の温度を検出する温度センサーである。A/D変換器1
1の他方の入力側には、A/D基準電圧4が接続され、
出力側はCPU6に接続されている。12はLEDであ
り、CPU6に制御されて、電池電圧が一定のレベル以
下になると点灯状態を変えたり、または他の色のLED
を点灯させたりする。
(Embodiment 1) FIG. 1 shows a configuration of a battery voltage monitoring apparatus according to Embodiment 1 of the present invention. In FIG. 1, reference numeral 1 denotes a battery pack, which uses a lithium ion battery. Reference numerals 2 and 3 denote divided resistors, and a connection point between the two is connected to one input side of the A / D converter 5. Reference numeral 4 denotes an A / D reference voltage connected to the other input side of the A / D converter 5. The A / D converter 5
The input voltage is compared with the A / D reference voltage 4 and the result is output as a digital value. Reference numeral 6 denotes a CPU, which controls the entire apparatus and determines an A / D converted detection voltage. 7 is an F-ROM (flash ROM),
The correction values calculated by the correction program, the system program, and the correction program are stored. Reference numeral 8 denotes a RAM for writing and reading data necessary for the operation of the apparatus. Reference numeral 9 denotes a resistor that forms a dividing resistor together with the thermistor 10, and a connection point between the two is connected to the input side of the A / D converter 11. The thermistor 10 is a temperature sensor that detects the temperature around the device. A / D converter 1
A / D reference voltage 4 is connected to the other input side of 1,
The output side is connected to CPU6. Reference numeral 12 denotes an LED, which is controlled by the CPU 6 to change the lighting state when the battery voltage falls below a certain level, or to switch the LED of another color.
Lights up.

【0013】次に本実施の形態における検出電圧の調整
動作について説明する。CPU6はF−ROM7に格納
された電池電圧補正プログラムを起動する。まず電池パ
ック1を取り外し、代わりに外部基準電圧Vを接続す
る。外部基準電圧Vは、分割抵抗器2、3により1/2
に分割されて内部基準電圧となり、A/D変換器5に入
力される。外部基準電圧VとA/D変換値Nとの関係
(理論値)は次のようになる。 V=N×(A/D基準電圧×2×1000)÷A/D分解能 ・・・(1) ここで、かっこ内の数字2は分割抵抗により入力電圧が
1/2に分割されたのを元に戻すためであり、数字10
00はmAに変換するためである。
Next, the operation of adjusting the detection voltage in the present embodiment will be described. The CPU 6 activates a battery voltage correction program stored in the F-ROM 7. First, the battery pack 1 is removed, and an external reference voltage V is connected instead. The external reference voltage V is halved by the split resistors 2 and 3.
And becomes an internal reference voltage, which is input to the A / D converter 5. The relationship (theoretical value) between the external reference voltage V and the A / D conversion value N is as follows. V = N × (A / D reference voltage × 2 × 1000) ÷ A / D resolution (1) Here, the number 2 in parentheses indicates that the input voltage was divided into に よ り by the dividing resistor. Number 10 to restore
00 is for converting to mA.

【0014】一方、外部基準電源Vでなく実際に電池パ
ック1を取り付けた時の測定電圧Vbat は、分割抵抗器
2、3やA/D基準電圧4などのばらつきによる変動分
を補正するための補正値αを式(1)に加えた式(2)
のようになる。 Vbat =N×(A/D基準電圧×2×1000)÷A/D分解能+補正値α ・・・(2)
On the other hand, the measured voltage Vbat when the battery pack 1 is actually mounted, not the external reference power supply V, is used to correct the fluctuation due to variations in the split resistors 2, 3 and the A / D reference voltage 4. Expression (2) obtained by adding the correction value α to Expression (1)
become that way. Vbat = N × (A / D reference voltage × 2 × 1000) ÷ A / D resolution + correction value α (2)

【0015】次に外部から基準電圧7.2Vを印加した
時のA/D変換値Nを取得する。取得したA/D変換値
Nが750であった場合、式(2)から測定電圧Vbat
を算出する。ここでA/D基準電圧は5V、A/D分解
能はA/D変換器5が10ビットの場合1024ステッ
プとなる。 測定電圧Vbat =750×(5×2×1000)÷1024+α =7324+α(mV)
Next, an A / D conversion value N when a reference voltage of 7.2 V is applied from the outside is obtained. When the acquired A / D conversion value N is 750, the measured voltage Vbat is obtained from the equation (2).
Is calculated. Here, the A / D reference voltage is 5 V, and the A / D resolution is 1024 steps when the A / D converter 5 has 10 bits. Measurement voltage Vbat = 750 × (5 × 2 × 1000) ÷ 1024 + α = 7324 + α (mV)

【0016】そして新しい補正値αi は、基準電圧と測
定電圧の差に前回の補正値αを加えた式(3)のように
なる。最初の補正の場合は補正値がゼロであるから影響
はないが、2度目以降の補正の場合は前回の補正値の影
響が残っているため、その影響をキャンセルするために
前回の補正値αを加算する。 新補正値αi =基準電圧−測定電圧+α ・・・(3) ここで測定電圧は上記した7324+α(mV)である
から、新補正値αi は次のようになる。 新補正値αi =7200−(7324+α)+α =−124 この新補正値αi =−124をフラッシュROM7に書
き込んで電池電圧補正プログラムを終了する。
The new correction value αi is given by the following equation (3) in which the previous correction value α is added to the difference between the reference voltage and the measured voltage. In the case of the first correction, there is no effect because the correction value is zero, but in the case of the second and subsequent corrections, since the effect of the previous correction value remains, the previous correction value α is used to cancel the effect. Is added. New correction value αi = reference voltage−measurement voltage + α (3) Since the measurement voltage is 7324 + α (mV), the new correction value αi is as follows. The new correction value αi = 7200− (7324 + α) + α = −124 This new correction value αi = −124 is written in the flash ROM 7 and the battery voltage correction program is terminated.

【0017】次に、通常の電池電圧検出動作に移行す
る。外部基準電圧を外して電池パック1を接続する。電
池パック1の電圧をA/D変換器5に入力してA/D変
換値Nを取得する。例えば電池パック1の電圧が7.2
Vだったとすると、A/D変換値は750になり、この
時の測定電圧Vbat は式(2)から次のようになる。 測定電圧Vbat =750×(5×2×1000)÷1024−124 =7200(mV) このように、新補正値−124を加えることにより正し
い測定電圧7200mVが得られたことが分かる。
Next, the operation shifts to a normal battery voltage detecting operation. Remove the external reference voltage and connect the battery pack 1. The voltage of the battery pack 1 is input to the A / D converter 5 to obtain an A / D conversion value N. For example, when the voltage of the battery pack 1 is 7.2
If it is V, the A / D conversion value is 750, and the measured voltage Vbat at this time is as follows from equation (2). Measurement voltage Vbat = 750 × (5 × 2 × 1000) ÷ 1024-124 = 7200 (mV) Thus, it can be seen that the correct measurement voltage 7200 mV was obtained by adding the new correction value -124.

【0018】検出電圧を補正した後は、定期的に電池パ
ック1の電圧を測定し、測定値と予め設定されてF−R
OM7に格納されている検出電圧値テーブルとを比較し
て、検出電圧が一定のレベル以下に低下すると、CPU
6がLED12を点滅表示に変えたり、色の異なるLE
Dを点灯してユーザに電池充電の必要性を警告したり、
誤動作を防止するために電源断の処理を行う。
After the detection voltage is corrected, the voltage of the battery pack 1 is periodically measured, and the measured value is set in advance to F-R
The detected voltage is compared with a detected voltage value table stored in OM7.
6 changes LED12 to blinking display, LE of different color
Lights D to warn the user of the need to charge the battery,
Perform power-off processing to prevent malfunction.

【0019】また、リチウムイオン電池は、電池の容量
と電圧がほぼ比例関係にあるため、電池電圧を測定する
ことにより電池の残量検出を行うことができるが、電池
電圧が温度によって大きく変わるという特性も持ってい
る。このため、従来においても、20度以上、20度か
ら10度、10度以下の3段階に分けて検出値の補正を
行っているが、本実施の形態では、サーミスタ10によ
り周囲温度を検出し、その値とA/D基準電圧4とをA
/D変換器11で比較してCPU6に入力し、上記した
検出電圧値テーブルを切り替えることにより、より精度
の高い電池電圧検出値の補正を行うことができる。
In a lithium ion battery, since the capacity and the voltage of the battery are substantially proportional to each other, the remaining amount of the battery can be detected by measuring the battery voltage. However, the battery voltage greatly changes depending on the temperature. It also has characteristics. For this reason, conventionally, the detection value is corrected in three stages of 20 degrees or more, 20 degrees to 10 degrees, and 10 degrees or less, but in the present embodiment, the ambient temperature is detected by the thermistor 10. , Its value and A / D reference voltage 4
By comparing the detected voltage value table with the / D converter 11 and inputting it to the CPU 6 and switching the above-described detected voltage value table, it is possible to perform more accurate correction of the battery voltage detected value.

【0020】このように、本実施の形態1によれば、基
準電圧設定モードでは、外部基準電圧を入力してその時
のA/D変換値とA/D基準電圧値とA/D分解能とか
ら測定電圧を求めるとともに、外部基準電圧と測定電圧
との差を補正値としてF−ROMに記憶させ、電池電圧
検出モードでは、電池パックの電池電圧を入力してその
時の測定電圧に前記補正値を加えて検出電圧とするの
で、正確で精度の高い検出電圧の調整を行うことができ
る。
As described above, according to the first embodiment, in the reference voltage setting mode, an external reference voltage is input, and the A / D conversion value, the A / D reference voltage value, and the A / D resolution at that time are used. In addition to obtaining the measurement voltage, the difference between the external reference voltage and the measurement voltage is stored in the F-ROM as a correction value. In the battery voltage detection mode, the battery voltage of the battery pack is input, and the correction value is applied to the measurement voltage at that time. In addition, since the detection voltage is used, the detection voltage can be adjusted accurately and accurately.

【0021】(実施の形態2)図2は本発明の実施の形
態2におけるワイヤレスプリンターの構成を示すもので
ある。図2において、21はホスト端末と赤外線により
データの送受信を行うIrDAモジュールであり、22
はIrDAモジュール21による通信を制御する通信制
御部であり、23は装置全体の制御を行うCPUであ
る。24はRS−232Cに準拠して他のホスト端末と
ケーブルを通じてデータの送受信を行うシリアルコネク
タである。25は動作に必要なデータの書き込み、読み
出しを行うRAM、26は通信制御プログラムと固定フ
ォーマットデータを登録するF−RO M、27はフォ
ントデータを格納するフォントROM、28は装置の動
作状態をLEDにより表示する表示部、29はリチウム
イオン電池を使用する電池電源、30は印字を行うプリ
ンタ部であり、印字パターンを展開するページバッファ
RAMやプリンタドライバを制御する制御部そして実際
の印字を行うプリンタヘッド等からなる。
(Embodiment 2) FIG. 2 shows a configuration of a wireless printer according to Embodiment 2 of the present invention. In FIG. 2, reference numeral 21 denotes an IrDA module for transmitting and receiving data to and from a host terminal by infrared rays;
Is a communication control unit for controlling communication by the IrDA module 21, and 23 is a CPU for controlling the entire apparatus. Reference numeral 24 denotes a serial connector that transmits and receives data to and from another host terminal via a cable in accordance with RS-232C. 25 is a RAM for writing and reading data required for operation, 26 is an F-ROM for registering a communication control program and fixed format data, 27 is a font ROM for storing font data, and 28 is an LED indicating the operation state of the device. Display unit 29, a battery power supply using a lithium ion battery, 30 a printer unit for printing, a control unit for controlling a page buffer RAM and a printer driver for developing a print pattern, and a printer for actual printing It consists of a head and the like.

【0022】ホスト端末から赤外線により送られてきた
データは、IrDAモジュール21で受信され、通信制
御部22で解読されてプリンタ部30のバッファRAM
にページ単位で蓄えられた後、プリンタ部30から打ち
出される。帳票などの固定フォーマットを有するデータ
の場合は、ホスト端末からは変更部のデータのみが送ら
れてくるので、CPU23は、そのデータを一旦RAM
25に蓄え、F−ROM26から必要な固定フォーマッ
トを読み出して変更データと合成してプリンタ部30へ
渡す。プリンタ部30では合成されたデータを基に印字
を行う。
The data sent from the host terminal by infrared rays is received by the IrDA module 21, decoded by the communication control unit 22, and decoded by the buffer RAM of the printer unit 30.
Is stored in the printer unit 30 and is output from the printer unit 30. In the case of data having a fixed format such as a form, since only the data of the change unit is sent from the host terminal, the CPU 23 temporarily stores the data in the RAM.
25, read out the required fixed format from the F-ROM 26, combine it with the changed data, and pass it to the printer unit 30. The printer unit 30 performs printing based on the synthesized data.

【0023】以下、固定フォーマットの登録動作につい
て説明する。固定フォーマットの登録には、キャラクタ
登録、罫線登録、バーコード登録、ビット・イメージ登
録の4種類が用意されている。この4種類の固定フォー
マットは、同一の番号で登録して一つの帳票のビットパ
ターンを作成し、プリンタドライバにビット・イメージ
で転送することにより、1枚の帳票として印字すること
もできる。また、これら4種類の固定フォーマットをそ
れぞれ独立に登録して、いくつかの固定フォーマットを
任意に組み合わせて1枚の帳票として印字することがで
きる。印字する帳票は、予め印面設計を行い、どの位置
に何を印字するか、またどの位置の文字を可変データと
するかを決定しておく。フォーマット登録コマンド(キ
ャラクタ、漢字)は、印字場所のX、Yデータ、印字デ
ータ長、印字フォント、印字の方向などのデータを登録
する。
The operation of registering a fixed format will be described below. There are four types of fixed format registration: character registration, ruled line registration, barcode registration, and bit image registration. These four types of fixed formats can be printed as a single form by registering them under the same number, creating a bit pattern of one form, and transmitting the same as a bit image to a printer driver. Also, these four types of fixed formats can be registered independently, and some fixed formats can be arbitrarily combined and printed as one sheet. The form to be printed is preliminarily designed with a stamp surface, and it is determined in advance what position should be printed and what position the character should be variable data. The format registration command (character, kanji) registers data such as X and Y data of a print location, print data length, print font, and print direction.

【0024】図3は固定フォーマットの登録におけるビ
ットの振り分けの例を示している。nの値により登録/
指定/ビット・イメージ指定の機能分けがされ、ページ
モードの諸設定が行われる。b0からb4まではフォー
マット登録番号(0≦n≦31、設定内容により登録数
が変化する。)であり、漢字データ、罫線、ビット・イ
メージを重ねて印字する場合は、同一の登録番号とす
る。b5からb7までのビットを使用して、バージョン
設定登録、キャラクタ、漢字コード登録、罫線登録、バ
ーコード登録、ビット・イメージ登録、キャラクタ、漢
字コード指定、フォーマット指定、バーコード指定の諸
設定を行う。また、ページモードで動作する1ページの
大きさを設定するための用紙設定登録を行う場合は、b
5からb7をゼロとし、横印字設定領域Xおよび縦印字
領域設定Yを行う。図4はキャラクタ、漢字コード登録
の一例であり、図5はその中の印字フォント設定Zmの
一例である。
FIG. 3 shows an example of bit distribution in registration of a fixed format. Registered by the value of n /
The functions of designation / bit image designation are classified, and various page mode settings are made. b0 to b4 are format registration numbers (0 ≦ n ≦ 31, the number of registrations changes depending on the setting contents). When kanji data, ruled lines, and bit images are printed in an overlapping manner, the same registration number is used. . Using the bits b5 to b7, various settings such as version setting registration, character, kanji code registration, ruled line registration, barcode registration, bit image registration, character, kanji code designation, format designation, and barcode designation are performed. . Also, when performing paper setting registration for setting the size of one page operating in the page mode, b
The horizontal print setting area X and the vertical print area setting Y are performed by setting 5 to b7 to zero. FIG. 4 shows an example of character and kanji code registration, and FIG. 5 shows an example of a print font setting Zm therein.

【0025】以上のように、本実施の形態2によれば、
ホスト端末と無線通信または光通信により接続されてホ
スト端末からの指示により印字を行うワイヤレスプリン
ターにおいて、ホスト端末との間でデータの授受を行う
IrDAモジュール21および通信制御部22と、固定
フォーマットを予め登録しておくF−ROM26と、固
定フォーマットに変更データを組み込んで印字データを
作成するCPU23と、作成された印字データを印字す
るプリント部30とを備えているので、固定フォーマッ
トを有するデータの場合は、ホスト端末からのデータ伝
送時間を大幅に短縮することができ、ワイヤレスプリン
ターにおける電池電源29の電池容量の消耗を抑えるこ
とができる。
As described above, according to the second embodiment,
In a wireless printer that is connected to the host terminal by wireless communication or optical communication and performs printing in accordance with an instruction from the host terminal, an IrDA module 21 and a communication control unit 22 that exchange data with the host terminal and a fixed format are previously stored. Since there is provided an F-ROM 26 to be registered, a CPU 23 for creating print data by incorporating changed data into a fixed format, and a print unit 30 for printing the created print data, data having a fixed format is used. Can greatly reduce the data transmission time from the host terminal, and can suppress the consumption of the battery capacity of the battery power supply 29 in the wireless printer.

【0026】[0026]

【発明の効果】本発明の電池電圧監視装置は、上記実施
の形態から明らかなように、基準電圧印加時における補
正値を算出してその補正値を測定電圧に加えることによ
り、装置各部のばらつきを吸収した正確な検出電圧の調
整を行うことができる。また周囲の温度を検出して温度
による変動も補正することにより、より精度の高い検出
電圧の調整を行うことができる。
As is clear from the above embodiment, the battery voltage monitoring device of the present invention calculates a correction value when a reference voltage is applied and adds the correction value to the measured voltage, thereby obtaining a variation in each part of the device. It is possible to perform accurate adjustment of the detection voltage that absorbs the above. Further, by detecting the ambient temperature and correcting the fluctuation due to the temperature, the detection voltage can be adjusted with higher accuracy.

【0027】本発明のワイヤレスプリンターは、上記実
施の形態から明らかなように、帳票などの固定フォーマ
ットを有するデータをワイヤレスプリンター自体に持
ち、変更データのみをホスト端末から伝送して、ワイヤ
レスプリンター側で固定フォーマットデータと合成する
ので、伝送時間を大幅に短縮して電池容量の消費を抑え
ることができる。
As is clear from the above embodiment, the wireless printer of the present invention has data in a fixed format such as a form in the wireless printer itself, transmits only the changed data from the host terminal, and transmits the changed data to the wireless printer. Since the data is synthesized with the fixed format data, the transmission time can be greatly reduced, and the consumption of the battery capacity can be suppressed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態1における電池電圧監視装
置の構成を示す概略ブロック図
FIG. 1 is a schematic block diagram showing a configuration of a battery voltage monitoring device according to a first embodiment of the present invention.

【図2】本発明の実施の形態2におけるワイヤレスプリ
ンターの構成を示す概略ブロック図
FIG. 2 is a schematic block diagram illustrating a configuration of a wireless printer according to a second embodiment of the present invention.

【図3】本発明の実施の形態2における固定フォーマッ
ト登録動作を説明するためのビット構成図
FIG. 3 is a bit configuration diagram for describing a fixed format registration operation according to the second embodiment of the present invention.

【図4】本発明の実施の形態2におけるキャラクタ、漢
字コード登録動作を説明するためのデータ構造図
FIG. 4 is a data structure diagram for describing a character / kanji code registration operation in the second embodiment of the present invention.

【図5】キャラクタ、漢字登録動作における印字フォン
ト設定のためのビット構成図
FIG. 5 is a diagram illustrating a bit configuration for setting a print font in a character / kanji registration operation.

【図6】従来の電池電圧監視装置の構成を示す概略ブロ
ック図
FIG. 6 is a schematic block diagram showing a configuration of a conventional battery voltage monitoring device.

【符号の説明】[Explanation of symbols]

1 電池パック 2、3 分割抵抗器 4 A/D基準電圧 5 A/D変換器 6 CPU 7 F−ROM 8 RAM 9 分割抵抗器 10 サーミスタ 11 A/D変換器 12 LED 21 IrDAモジュール 22 通信制御部 23 CPU 24 シリアルコネクタ 25 RAM 26 F−ROM 27 フォントROM 28 表示部 29 電池電源 30 プリンタ部 DESCRIPTION OF SYMBOLS 1 Battery pack 2, 3 divided resistor 4 A / D reference voltage 5 A / D converter 6 CPU 7 F-ROM 8 RAM 9 Divided resistor 10 Thermistor 11 A / D converter 12 LED 21 IrDA module 22 Communication control unit 23 CPU 24 Serial Connector 25 RAM 26 F-ROM 27 Font ROM 28 Display 29 Battery Power 30 Printer

───────────────────────────────────────────────────── フロントページの続き (72)発明者 中 村 政 広 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 藤 谷 啓 次 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 ──────────────────────────────────────────────────の Continued on the front page (72) Inventor Masahiro Nakamura 1006 Kazuma Kadoma, Osaka Prefecture Inside Matsushita Electric Industrial Co., Ltd. Inside the corporation

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 電池電圧の低下を検出して所定の警告動
作を行う電池電圧監視装置において、基準電圧設定モー
ドでは、外部基準電圧を入力してその時のA/D変換値
とA/D基準電圧値とA/D分解能とから測定電圧を求
めるとともに、前記外部基準電圧と測定電圧との差を補
正値として記憶手段に記憶させ、電池電圧検出モードで
は、電池電圧を入力してその時の測定電圧に前記補正値
を加えて検出電圧とする制御手段を備えた電池電圧監視
装置。
In a reference voltage setting mode, an external reference voltage is inputted, an A / D conversion value at that time, and an A / D reference value are detected. The measured voltage is obtained from the voltage value and the A / D resolution, and the difference between the external reference voltage and the measured voltage is stored in a storage unit as a correction value. In the battery voltage detection mode, the battery voltage is inputted and the measurement at that time is performed. A battery voltage monitoring device comprising: a control unit that adds the correction value to a voltage to obtain a detection voltage.
【請求項2】 温度検出手段を備え、検出した温度によ
り検出電圧を補正することを特徴とする請求項1記載の
電池電圧監視装置。
2. The battery voltage monitoring device according to claim 1, further comprising a temperature detecting means, wherein the detected voltage is corrected based on the detected temperature.
【請求項3】 ホスト端末と無線通信または光通信によ
り接続されてホスト端末からの指示により印字を行うワ
イヤレスプリンターにおいて、ホスト端末との間でデー
タの授受を行うワイヤレス通信手段と、固定フォーマッ
トを予め登録しておく記憶手段と、前記固定フォーマッ
トに変更データを組み込んで印字データを作成する制御
手段と、前記作成された印字データを印字するプリント
手段とを備えたワイヤレスプリンター。
3. A wireless printer which is connected to a host terminal by wireless communication or optical communication and performs printing in accordance with an instruction from the host terminal, wherein a wireless communication means for exchanging data with the host terminal and a fixed format are provided in advance. A wireless printer comprising: storage means for registering; control means for creating print data by incorporating changed data into the fixed format; and print means for printing the created print data.
【請求項4】 制御手段が、複数の固定フォーマットを
組み合わせて一つの固定フォーマットに合成する機能を
備えた請求項3記載のワイヤレスプリンター。
4. The wireless printer according to claim 3, wherein the control means has a function of combining a plurality of fixed formats and combining them into one fixed format.
JP9093556A 1997-04-11 1997-04-11 Battery voltage monitoring device and wireless printer Pending JPH10289037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9093556A JPH10289037A (en) 1997-04-11 1997-04-11 Battery voltage monitoring device and wireless printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9093556A JPH10289037A (en) 1997-04-11 1997-04-11 Battery voltage monitoring device and wireless printer

Publications (1)

Publication Number Publication Date
JPH10289037A true JPH10289037A (en) 1998-10-27

Family

ID=14085534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9093556A Pending JPH10289037A (en) 1997-04-11 1997-04-11 Battery voltage monitoring device and wireless printer

Country Status (1)

Country Link
JP (1) JPH10289037A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001185233A (en) * 1999-12-27 2001-07-06 Fujitsu Kiden Ltd Detection circuit for battery voltage, battery pack and detection method of battery voltage
US6919706B2 (en) 2001-05-17 2005-07-19 Sanyo Electric Co., Ltd. Voltage measuring circuit of battery pack
JP2006254611A (en) * 2005-03-11 2006-09-21 Seiko Epson Corp Battery control circuit and electronic apparatus equipped with battery control circuit
JP2007078465A (en) * 2005-09-13 2007-03-29 Seiko Epson Corp Voltage calculator
JP2008215866A (en) * 2007-02-28 2008-09-18 Matsushita Electric Works Ltd Analog input switching circuit
JP2019049476A (en) * 2017-09-11 2019-03-28 トヨタ自動車株式会社 Power source voltage detector
US10338151B2 (en) 2013-03-21 2019-07-02 Continental Automotive France Method and device for measuring a DC voltage such as the voltage of a motor vehicle battery
WO2023157548A1 (en) * 2022-02-17 2023-08-24 ソニーセミコンダクタソリューションズ株式会社 Voltage measurement device and voltage measurement method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001185233A (en) * 1999-12-27 2001-07-06 Fujitsu Kiden Ltd Detection circuit for battery voltage, battery pack and detection method of battery voltage
JP4523099B2 (en) * 1999-12-27 2010-08-11 富士通フロンテック株式会社 Battery voltage detection circuit and battery voltage detection method
US6919706B2 (en) 2001-05-17 2005-07-19 Sanyo Electric Co., Ltd. Voltage measuring circuit of battery pack
JP2006254611A (en) * 2005-03-11 2006-09-21 Seiko Epson Corp Battery control circuit and electronic apparatus equipped with battery control circuit
JP4577502B2 (en) * 2005-03-11 2010-11-10 セイコーエプソン株式会社 Battery control circuit and electronic device provided with the battery control circuit
JP2007078465A (en) * 2005-09-13 2007-03-29 Seiko Epson Corp Voltage calculator
JP2008215866A (en) * 2007-02-28 2008-09-18 Matsushita Electric Works Ltd Analog input switching circuit
JP4497166B2 (en) * 2007-02-28 2010-07-07 パナソニック電工株式会社 Analog input switching circuit
US10338151B2 (en) 2013-03-21 2019-07-02 Continental Automotive France Method and device for measuring a DC voltage such as the voltage of a motor vehicle battery
JP2019049476A (en) * 2017-09-11 2019-03-28 トヨタ自動車株式会社 Power source voltage detector
WO2023157548A1 (en) * 2022-02-17 2023-08-24 ソニーセミコンダクタソリューションズ株式会社 Voltage measurement device and voltage measurement method

Similar Documents

Publication Publication Date Title
JPH10289037A (en) Battery voltage monitoring device and wireless printer
KR100314824B1 (en) Video printer
EP0824228B1 (en) Method for setting a power saving mode access time in an image forming apparatus
WO2005060695A3 (en) System and method for closed-loop color control of printed media
JP2004347800A (en) Image forming system and image forming apparatus
JPH08282016A (en) Multicolor printing device
JPH0825764A (en) Printer
EP2554389A1 (en) Image-forming apparatus, accelerator and image-forming method
JP2839094B2 (en) Image processing device
JP4554746B2 (en) Portable electronic devices
JP4645531B2 (en) Correction characteristic generation apparatus, program, and color signal conversion apparatus
JP3167062B2 (en) Image recording device
JPS618364A (en) Temperature controller for thermal print head
JP3492071B2 (en) Image recording device
JPS63272145A (en) Dump output device
KR100267235B1 (en) Method for print state control in printer
JPH04358868A (en) Printer
JPH09169131A (en) Transfer controlling method for multi-line thermal printer
JPH0229467Y2 (en)
JP3001318B2 (en) Printing device
KR0178752B1 (en) Ribbon remnant display device of a color printer
JPH1058787A (en) Method and device for print processing
KR940004477B1 (en) Page length setting method by specificated paper in printer
JPH07177352A (en) Printer
JPH04236117A (en) Overload protective device