JP2021061061A - Stylus, control method performed by stylus, and program - Google Patents

Stylus, control method performed by stylus, and program Download PDF

Info

Publication number
JP2021061061A
JP2021061061A JP2021003262A JP2021003262A JP2021061061A JP 2021061061 A JP2021061061 A JP 2021061061A JP 2021003262 A JP2021003262 A JP 2021003262A JP 2021003262 A JP2021003262 A JP 2021003262A JP 2021061061 A JP2021061061 A JP 2021061061A
Authority
JP
Japan
Prior art keywords
stylus
local
signal
uplink signal
processor
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
JP2021003262A
Other languages
Japanese (ja)
Other versions
JP7136940B2 (en
Inventor
定雄 山本
Sadao Yamamoto
定雄 山本
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.)
Wacom Co Ltd
Original Assignee
Wacom 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 Wacom Co Ltd filed Critical Wacom Co Ltd
Priority to JP2021003262A priority Critical patent/JP7136940B2/en
Publication of JP2021061061A publication Critical patent/JP2021061061A/en
Priority to JP2022139123A priority patent/JP2022164861A/en
Application granted granted Critical
Publication of JP7136940B2 publication Critical patent/JP7136940B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Position Input By Displaying (AREA)

Abstract

To flexibly change allocation of a slot to each stylus in units of slots shorter than a frame.SOLUTION: A stylus according to the present invention is a stylus that communicates with a sensor controller connected to a sensor, and includes: an electrode that receives, through electrostatic coupling, an uplink signal transmitted from the sensor and including a local ID; a memory; and a processor that causes the memory to store the local ID included in the uplink signal when the local ID included in the uplink signal received by the electrode is not stored in the memory.SELECTED DRAWING: Figure 2

Description

本発明はスタイラス、センサコントローラ、及び電子定規に関し、特に、複数のスタイラスの同時使用(マルチスタイラス)に対応するスタイラス、センサコントローラ、及び電子定規に関する。 The present invention relates to a stylus, a sensor controller, and an electronic ruler, and more particularly to a stylus, a sensor controller, and an electronic ruler that support simultaneous use (multi-stylus) of a plurality of styli.

電子機器の表面に設けられたタッチ面上でのスタイラスによる手書き入力を可能にする位置検出システムの具体的な方式の一つとして、アクティブ静電方式が知られている。以下、アクティブ静電方式に対応するスタイラスを「アクティブスタイラス」と称する。 The active electrostatic method is known as one of the specific methods of a position detection system that enables handwriting input by a stylus on a touch surface provided on the surface of an electronic device. Hereinafter, the stylus corresponding to the active electrostatic method will be referred to as an "active stylus".

アクティブスタイラスは、電子機器に対して信号(ダウンリンク信号)を送信可能に構成される。ダウンリンク信号の送信は、アクティブスタイラスの先端に設けた電極に送信信号を供給し、それによって信号に応じた電界を電極近傍の空間に生じさせることによって実行される。電子機器は、タッチ面の下側に配設されたマトリクス状の電極群を含むセンサボードと、このセンサボードに接続されたセンサコントローラとを有しており、上記交番電界によってセンサボード内の電極群に生ずる電荷量の変化をセンサコントローラが検出することによって、ダウンリンク信号を受信するよう構成される。特許文献1には、ダウンリンク信号の一例が開示されている。この例によるダウンリンク信号は、位置検出用の無変調の連続信号(位置信号)と、筆圧情報や固有IDなどのデータによって変調された信号(データ信号)とによって構成される。 The active stylus is configured to be able to transmit a signal (downlink signal) to an electronic device. The transmission of the downlink signal is performed by supplying the transmission signal to the electrode provided at the tip of the active stylus, thereby generating an electric field corresponding to the signal in the space near the electrode. The electronic device has a sensor board including a matrix-shaped electrode group arranged on the lower side of the touch surface, and a sensor controller connected to the sensor board, and electrodes in the sensor board by the above alternating electric charge. The sensor controller is configured to receive a downlink signal by detecting a change in the amount of charge generated in the group. Patent Document 1 discloses an example of a downlink signal. The downlink signal according to this example is composed of an unmodulated continuous signal (position signal) for position detection and a signal (data signal) modulated by data such as pen pressure information and unique ID.

アクティブ静電方式では、電子機器内のセンサコントローラもまた、アクティブスタイラスに対して信号(アップリンク信号)を送信可能に構成される。センサコントローラは、センサボードを構成する電極群に送信信号を供給し、それによってパネル上に電界を生成することにより、スタイラスに向けてアップリンク信号を送信する。アクティブスタイラスは、この電界により上記電極に誘導される電荷量を検出することによって、アップリンク信号を検出するよう構成される。特許文献2には、アップリンク信号を受信するアクティブスタイラスの例が記載されている。 In the active electrostatic method, the sensor controller in the electronic device is also configured to be able to transmit a signal (uplink signal) to the active stylus. The sensor controller supplies an uplink signal to the stylus by supplying a transmission signal to a group of electrodes constituting the sensor board, thereby generating an electric field on the panel. The active stylus is configured to detect the uplink signal by detecting the amount of charge induced in the electrode by this electric field. Patent Document 2 describes an example of an active stylus that receives an uplink signal.

ところで、近年では、いわゆるタブレットコンピュータのように、タッチ面が液晶の表示面を兼ねることが多くなっている。この場合、センサボードは、液晶パネルの上又は内部に配置されることになる。液晶パネル上にセンサボードが載設された位置検出システムは、「アウトセル型」と呼ばれる。特許文献3,4には、アウトセル型の位置検出システムの例が開示されている。また、液晶パネル内にセンサボードが載設された位置検出システムには、液晶パネル内部のカラーフィルターガラスや基盤ガラスの上にセンサボード用の電極群が配置される「オンセル型」や、液晶パネルの共通電極あるいは画素電極がセンサボード用の電極群の一部を兼ねる「インセル型」がある。非特許文献1には、オンセル型及びインセル型の位置検出システムの例が開示されている。 By the way, in recent years, as in a so-called tablet computer, the touch surface often doubles as a liquid crystal display surface. In this case, the sensor board will be arranged on or inside the liquid crystal panel. A position detection system in which a sensor board is mounted on a liquid crystal panel is called an "out-cell type". Patent Documents 3 and 4 disclose examples of out-cell type position detection systems. In addition, the position detection system in which the sensor board is mounted inside the liquid crystal panel includes the "on-cell type" in which the electrode group for the sensor board is arranged on the color filter glass and the base glass inside the liquid crystal panel, and the liquid crystal panel. There is an "in-cell type" in which the common electrode or pixel electrode of the above is also a part of the electrode group for the sensor board. Non-Patent Document 1 discloses examples of on-cell type and in-cell type position detection systems.

アウトセル型又はオンセル型の位置検出システムにおいては、センサボードの下部に存在する液晶パネル内の駆動信号がノイズとなり、センサコントローラの動作に影響を及ぼすことが知られている。このようなノイズの代表的な一つは、液晶パネルの画素を駆動するための電極に供給される電圧信号の交流成分である。この電圧信号は各画素の液晶の配向を制御するためのもので、AC結合によってセンサボードを構成する電極群に入り込み、ノイズとなる。また、インセル型の位置検出システムでは、画素の駆動動作と位置検出動作との両方に共用される電極群は、画素の駆動動作が実行されている間には位置検出動作に利用することができない。 In the out-cell type or on-cell type position detection system, it is known that the drive signal in the liquid crystal panel existing at the lower part of the sensor board becomes noise and affects the operation of the sensor controller. One of the typical examples of such noise is an AC component of a voltage signal supplied to an electrode for driving a pixel of a liquid crystal panel. This voltage signal is for controlling the orientation of the liquid crystal of each pixel, and enters the electrode group constituting the sensor board by AC coupling and becomes noise. Further, in the in-cell type position detection system, the electrode group shared for both the pixel drive operation and the position detection operation cannot be used for the position detection operation while the pixel drive operation is being executed. ..

国際公開第2015/111159号公報International Publication No. 2015/11159 米国特許出願公開第2013/0106797号明細書U.S. Patent Application Publication No. 2013/01067797 特開平5−6153号公報Japanese Unexamined Patent Publication No. 5-6153 国際公開2015/141349号公報International Publication 2015/141349

「JDI、LG、シャープのスマホ向けインセル/オンセル戦略を読む」、[online]、日経テクノロジーオンライン、[平成28年8月16日検索]、インターネット<URL:http://techon.nikkeibp.co.jp/article/NEWS/20150121/400160/>"Read JDI, LG, Sharp's in-cell / on-cell strategy for smartphones", [online], Nikkei Technology Online, [Search on August 16, 2016], Internet <URL: http://techon.nikkeibp.co. jp / article / NEWS / 20150121/400160 />

上記のようなタッチ面が液晶の表示面を兼ねる場合の課題に鑑み、近年、液晶パネルの表示動作期間を1フレームとし、その中において周期的に現れる複数のブランク期間(液晶ノイズの発生頻度が相対的に小さい期間)のそれぞれを1スロットとするフレーム通信により、アクティブスタイラスとセンサコントローラの間の通信を行う方式が検討されている。 In view of the problem when the touch surface also serves as the display surface of the liquid crystal as described above, in recent years, the display operation period of the liquid crystal panel is set to one frame, and a plurality of blank periods (the frequency of occurrence of liquid crystal noise) appearing periodically in the frame are set. A method of communicating between the active stylus and the sensor controller by frame communication in which each slot is used for a relatively small period of time is being studied.

ここで、位置検出システムに要求される仕様の1つに、複数のスタイラスを同時に使用できる(マルチスタイラス)、というものがある。そこで、上記フレーム通信についてもマルチスタイラスに対応させることが検討されており、それによれば、センサコントローラは、フレームごとに、スロットの割り当てを指示するためのアップリンク信号を各スタイラスにブロードキャスト送信する。そして、各スタイラスは、割り当てられたスロットを利用して、ダウンリンク信号を送信する。こうすることで、時分割により、複数のアクティブスタイラスとセンサコントローラの間の通信を実現することが可能になる。 Here, one of the specifications required for the position detection system is that a plurality of styli can be used at the same time (multi-styli). Therefore, it is considered to support the multi-stylus for the above-mentioned frame communication, and according to the study, the sensor controller broadcasts an uplink signal for instructing slot allocation to each stylus for each frame. Then, each stylus uses the assigned slot to transmit a downlink signal. By doing so, it becomes possible to realize communication between a plurality of active styli and a sensor controller by time division.

しかしながら、表示動作レート等に限らず、何らかの時間周期で固定されたフレームごとのアップリンク信号によって各スタイラスにスロットの割り当てを指示することとすると、各スタイラスに対するスロットの割り当ては、その固定されたフレームレートに依存することになる。つまり、検討中の上記方式には、各スタイラスに対するスロットの割り当てを、フレームより短い時間で柔軟に変更することができないという課題があった。また、各スタイラスのスキャンレートは、フレームレートの整数倍に固定されてしまうという課題があった。 However, if the slot allocation is instructed to each stylus by an uplink signal for each frame fixed at some time cycle regardless of the display operation rate, the slot allocation to each stylus is the fixed frame. It will depend on the rate. That is, the above-mentioned method under consideration has a problem that the slot allocation for each stylus cannot be flexibly changed in a shorter time than the frame. Further, there is a problem that the scan rate of each stylus is fixed to an integral multiple of the frame rate.

また、検討中の上記方式には、1フレーム中に送信する複数のスロットの割り当てを指示するためのアップリンク信号のサイズが必然的に大きくなってしまうという課題もあった。アップリンク信号のサイズが大きいと、1フレーム中におけるアップリンク信号の占有率が高くなり、通信効率が低下することになる。また、サイズの大きな信号を複数のスタイラスの各々に対し送信し設定が反映されたか否かを確認する処理には、数フレーム分の時間がかかることから、送信時間の割り当てが実際に全てのスタイラスに反映されるまでの遅延時間が大きくなることになる。ユーザが複数のスタイラスや電子定規のようなデバイスを電子機器に対して頻繁に近接させたり離間させたりして利用する場合に、この遅延時間はユーザの使用感に影響を与える可能性がある。 Further, the above-mentioned method under consideration has a problem that the size of the uplink signal for instructing the allocation of a plurality of slots to be transmitted in one frame is inevitably large. If the size of the uplink signal is large, the occupancy rate of the uplink signal in one frame becomes high, and the communication efficiency is lowered. Also, since it takes several frames to send a large signal to each of multiple styli and check whether the settings are reflected, the transmission time allocation is actually assigned to all styli. The delay time until it is reflected in is increased. This delay time can affect the user's usability when the user frequently uses devices such as multiple styli and electronic rulers in close proximity to or separated from the electronic device.

また、スタイラスの一種に文房具の定規を模して作られた電子定規があるが、一般的なペン型のスタイラスは利用されている間の移動速度が大きいのに対し、電子定規は一度パネル面におかれるとしばらくの間同じ位置に置かれ、ペン型のスタイラスに比較して小さい移動速度で利用されることが多い。したがって、デバイスタイプに応じてスキャンレートを変更できることが望ましい。 In addition, there is an electronic ruler made to imitate a stationery ruler as a kind of stylus, but while a general pen-shaped stylus moves at a high speed while being used, the electronic ruler once has a panel surface. When placed in the stylus, it is placed in the same position for a while and is often used at a smaller movement speed than a pen-shaped stylus. Therefore, it is desirable to be able to change the scan rate according to the device type.

また、電子定規は、手に把持されて利用されるペン型のスタイラスとは異なり、ユーザが操作していない間であっても、パネル面上に置かれたまま利用される場合がある。このような場合に、電子定規とセンサコントローラとの間で信号の送受信を行うことは、電子定規の消費電力を増加させ、また、センサコントローラとスタイラス(ペン型又は電子定規)との間の通信リソースを不使用時にも消費することになる。 Further, unlike a pen-type stylus that is held by a hand and used, the electronic ruler may be used while being placed on the panel surface even while the user is not operating the stylus. In such a case, transmitting and receiving signals between the electronic ruler and the sensor controller increases the power consumption of the electronic ruler, and also communicates between the sensor controller and the stylus (pen type or electronic ruler). Resources will be consumed even when not in use.

したがって、本発明の目的の一つは、各スタイラスに対する送信時間の割り当てをフレームよりも短い時間で柔軟に変更し、各スタイラスに反映させるすることのできるスタイラス、センサコントローラ、及び電子定規を提供することにある。 Therefore, one of the objects of the present invention is to provide a stylus, a sensor controller, and an electronic ruler that can flexibly change the transmission time allocation for each stylus in a time shorter than a frame and reflect it in each stylus. There is.

また、本発明の他の目的の一つは、送信時間の割り当てを指示するためのアップリンク信号のサイズを小さくすることのできるスタイラス、センサコントローラ、及び電子定規を提供することにある。 Another object of the present invention is to provide a stylus, a sensor controller, and an electronic ruler capable of reducing the size of an uplink signal for instructing transmission time allocation.

また、本発明のさらに他の目的の一つは、デバイスの種別や利用形態の特性に応じて、スキャンレートを変更可能とすることである。 Further, one of still other objects of the present invention is to make it possible to change the scan rate according to the characteristics of the type of device and the usage pattern.

また、本発明のさらに他の目的の一つは、電子定規がパネル面上に放置されている場合における、電子定規の消費電力の低減と、通信リソースの有効活用とを実現することにある。 Further, one of still other objects of the present invention is to realize reduction of power consumption of the electronic ruler and effective utilization of communication resources when the electronic ruler is left on the panel surface.

本発明によるスタイラスは、静電結合を利用してセンサに接続されたセンサコントローラと双方向に信号を送受信するスタイラスであって、ローカルIDの値を一時的に記憶するメモリと、前記センサコントローラが送信したアップリンク信号を検出する都度、検出された前記アップリンク信号が前記メモリに記憶されているローカルIDの値を含むか否かを判定し、含むと判定した場合に、操作状態に基づくダウンリンク信号を生成して前記センサコントローラに対して送信するプロセッサとを含むスタイラスである。 The stylus according to the present invention is a stylus that sends and receives signals in both directions to and from a sensor controller connected to a sensor using electrostatic coupling, and the memory that temporarily stores the value of the local ID and the sensor controller Each time the transmitted uplink signal is detected, it is determined whether or not the detected uplink signal includes the value of the local ID stored in the memory, and if it is determined that the uplink signal is included, the down based on the operation state is determined. A stylus that includes a processor that generates a link signal and transmits it to the sensor controller.

上記スタイラスにおいて、前記プロセッサは、前記メモリに記憶されているローカルIDの値を含む前記ダウンリンク信号を生成し、前記センサコントローラに対して送信することとしてもよい。 In the stylus, the processor may generate the downlink signal including the value of the local ID stored in the memory and transmit it to the sensor controller.

本発明によるセンサコントローラは、1以上のスタイラスを検出する機能を有し、検出済みの1以上のスタイラスの位置をホストプロセッサに対してレポートするセンサコントローラであって、前記検出済みの1以上のスタイラスのそれぞれに割り当てられた1以上のローカルIDの値を記憶するメモリと、前記検出済みの1以上のスタイラスのそれぞれについてスキャンレートを決定し、決定した前記スキャンレートに基づいて、前記メモリに記憶される前記1以上のローカルIDの値のうちのいずれか1つを選択し、選択したローカルIDの値を含むアップリンク信号を送信し、該アップリンク信号に対して返信されたダウンリンク信号に基づいて、前記選択したローカルIDの値に対応するスタイラスの位置を導出するプロセッサとを含むセンサコントローラである。 The sensor controller according to the present invention is a sensor controller that has a function of detecting one or more styli and reports the position of one or more detected styli to the host processor, and is one or more detected styli. A scan rate is determined for each of the memory for storing the value of one or more local IDs assigned to each of the above and the detected one or more stylus, and the scan rate is stored in the memory based on the determined scan rate. Select any one of the above-mentioned one or more local ID values, transmit an uplink signal including the selected local ID value, and based on the downlink signal returned to the uplink signal. The sensor controller includes a processor that derives the position of the stylus corresponding to the value of the selected local ID.

上記センサコントローラにおいて、前記プロセッサは、前記検出済みの1以上のスタイラスそれぞれのデバイスタイプに基づいて、前記検出済みの1以上のスタイラスそれぞれについてのスキャンレートを決定することとしてもよい。 In the sensor controller, the processor may determine the scan rate for each of the detected one or more styli based on the device type of each of the detected one or more styli.

本発明による電子定規は、電子定規であって、定規部と、前記定規部に設けられた複数の電極と、センサコントローラから送信されたアップリンク信号を受信するための受信電極と、前記アップリンク信号を受信したことに応じて、前記複数の電極を順次切り替えつつ前記センサコントローラに対して信号を送信するプロセッサとを含む電子定規である。 The electronic ruler according to the present invention is an electronic ruler, which includes a ruler section, a plurality of electrodes provided on the ruler section, a receiving electrode for receiving an uplink signal transmitted from a sensor controller, and the uplink. It is an electronic ruler including a processor that transmits a signal to the sensor controller while sequentially switching the plurality of electrodes in response to receiving a signal.

本発明の他の一側面による電子定規は、電子定規であって、定規部と、前記定規部に設けられた2以上の電極と、前記定規部の上面に設けられ、ユーザの操作により動作状態であるか停止状態であるかを切り替えるための第1のスイッチと、前記第1のスイッチが前記動作状態である場合に前記2以上の電極を用いて前記センサコントローラに対してダウンリンク信号を送信し、前記第1のスイッチが前記停止状態である場合に前記ダウンリンク信号の送信処理を停止するプロセッサとを含む電子定規である。 The electronic ruler according to the other aspect of the present invention is an electronic ruler, which is provided on a ruler portion, two or more electrodes provided on the ruler portion, and an upper surface of the ruler portion, and is in an operating state by a user operation. A downlink signal is transmitted to the sensor controller using the first switch for switching between the state and the stopped state and the two or more electrodes when the first switch is in the operating state. An electronic ruler that includes a processor that stops the downlink signal transmission process when the first switch is in the stopped state.

本発明によれば、ローカルIDの値を含むアップリンク信号をセンサコントローラが送信時刻ごとに送信することにより、そのスロット内でダウンリンク信号を送信すべきスタイラスを指定することができる。したがって、各スタイラスに対する送信時間の割り当てを、フレームに依存せずフレームよりも短い時間で柔軟に変更することが可能になる。また、スタイラス側にはスケジュールについての状態が記憶されず、したがってこれらを変更するための時間を要さないため、新たなスタイラスが検出された場合などに必要となるスキャンレート等の変更について、システム全体としての応答速度を向上することができる。また、アップリンク信号にローカルIDの値を1つ含めるだけで、センサコントローラから各スタイラスに送信時間の割り当てを指示することが可能になるので、フレーム内での複数の送信時間の割り当てを指示するためのアップリンク信号のサイズを小さくすることが可能になる。 According to the present invention, the sensor controller transmits an uplink signal including the value of the local ID at each transmission time, so that a stylus to which the downlink signal should be transmitted can be specified in the slot. Therefore, it is possible to flexibly change the transmission time allocation for each stylus in a shorter time than the frame without depending on the frame. In addition, since the stylus does not store the status of the schedule and therefore does not require time to change them, the system can be used to change the scan rate, etc., which is required when a new stylus is detected. The response speed as a whole can be improved. In addition, since the sensor controller can instruct each stylus to allocate the transmission time only by including one local ID value in the uplink signal, the allocation of a plurality of transmission times within the frame is instructed. It is possible to reduce the size of the uplink signal for this.

また、本発明によれば、スタイラスが、メモリに一時的に記憶されているローカルIDの値を含むダウンリンク信号を生成し、センサコントローラに対して送信しているので、センサコントローラは、パネル面の複数箇所でダウンリンク信号が検出されたとしても、それらをスタイラスごとに弁別することができる。また、ローカルIDのビット数は後述するグローバルIDに比べて短くすることができるので、ローカルIDを送信するために必要なダウンリンク占有率を下げることが可能になる。 Further, according to the present invention, the stylus generates a downlink signal including the value of the local ID temporarily stored in the memory and transmits it to the sensor controller, so that the sensor controller has a panel surface. Even if downlink signals are detected at a plurality of locations, they can be discriminated for each stylus. Further, since the number of bits of the local ID can be shortened as compared with the global ID described later, it is possible to reduce the downlink occupancy rate required for transmitting the local ID.

また、本発明によれば、センサコントローラが、検出済みの1以上のスタイラスそれぞれのデバイスタイプに基づいて、検出済みの1以上のスタイラスそれぞれについてのスキャンレートを決定しているので、デバイスの種別や利用形態の特性に応じて、スキャンレートを変更することが可能となる。 Further, according to the present invention, the sensor controller determines the scan rate for each of the detected one or more styluses based on the device type of each of the detected one or more styluses. It is possible to change the scan rate according to the characteristics of the usage pattern.

また、本発明によれば、ユーザの操作により動作状態であるか停止状態であるかを切り替えるための第1のスイッチを電子定規に設けたので、電子定規がパネル面上に放置されている場合における、電子定規の消費電力の低減と、通信リソースの有効活用とが実現される。 Further, according to the present invention, since the electronic ruler is provided with the first switch for switching between the operating state and the stopped state by the user's operation, the electronic ruler is left on the panel surface. In, the power consumption of the electronic ruler can be reduced and the communication resources can be effectively used.

本発明の実施の形態による位置検出システムの全体を示す図である。It is a figure which shows the whole position detection system by embodiment of this invention. 図1に示したスタイラス2a,2bの第1の例の詳細な構成を示す図である。It is a figure which shows the detailed structure of the 1st example of the stylus 2a, 2b shown in FIG. 図1に示したスタイラス2a,2bの第2の例の詳細な構成を示す図である。It is a figure which shows the detailed structure of the 2nd example of the stylus 2a, 2b shown in FIG. 図3に示した6軸IMU50の説明図である。It is explanatory drawing of 6-axis IMU50 shown in FIG. 図1に示したスタイラス2c(定規型デバイス)の詳細な構成を示す図である。It is a figure which shows the detailed structure of the stylus 2c (ruler type device) shown in FIG. 図1に示したスタイラス2c(定規型デバイス)の上面図である。It is a top view of the stylus 2c (ruler type device) shown in FIG. 図1に示した電子機器3の詳細な構成を示す図である。It is a figure which shows the detailed structure of the electronic device 3 shown in FIG. 図7に示したID管理テーブル70を示す図である。It is a figure which shows the ID management table 70 shown in FIG. 図1に示したセンサコントローラ31の処理フローを示すフロー図である。It is a flow chart which shows the processing flow of the sensor controller 31 shown in FIG. 図9に示した設定指示送信処理の詳細フローを示すフロー図である。It is a flow chart which shows the detailed flow of the setting instruction transmission processing shown in FIG. 図9に示したコマンド信号送信処理の詳細フローを示すフロー図である。It is a flow chart which shows the detailed flow of the command signal transmission processing shown in FIG. 図9に示したコマンド信号送信処理の詳細フローを示すフロー図である。It is a flow chart which shows the detailed flow of the command signal transmission processing shown in FIG. 図9に示したコマンド信号送信処理の詳細フローを示すフロー図である。It is a flow chart which shows the detailed flow of the command signal transmission processing shown in FIG. 図9に示したコマンド信号送信処理の詳細フローを示すフロー図である。It is a flow chart which shows the detailed flow of the command signal transmission processing shown in FIG. 図9に示したコマンド信号送信処理の詳細フローを示すフロー図である。It is a flow chart which shows the detailed flow of the command signal transmission processing shown in FIG. 図1に示したスタイラス2a〜2cの処理フローを示すフロー図である。It is a flow chart which shows the processing flow of the stylus 2a to 2c shown in FIG. 図16に示したコマンド信号受信処理の詳細フローを示すフロー図である。It is a flow chart which shows the detailed flow of the command signal reception processing shown in FIG. 図16に示したコマンド信号受信処理の詳細フローを示すフロー図である。It is a flow chart which shows the detailed flow of the command signal reception processing shown in FIG. 図16に示したコマンド信号受信処理の詳細フローを示すフロー図である。It is a flow chart which shows the detailed flow of the command signal reception processing shown in FIG. 図16に示したコマンド信号受信処理の詳細フローを示すフロー図である。It is a flow chart which shows the detailed flow of the command signal reception processing shown in FIG. 図1に示したスタイラス2aとセンサコントローラ31との間で送受信される信号(センサコントローラ31がスタイラス2aを新たに登録する場面)を示すタイムチャートである。It is a time chart which shows the signal which is transmitted and received between the stylus 2a and the sensor controller 31 shown in FIG. 1 (the scene where the sensor controller 31 newly registers the stylus 2a). 図1に示したスタイラス2a,2bとセンサコントローラ31との間で送受信される信号(センサコントローラ31がスタイラス2aを登録した後、さらにスタイラス2bを登録する場面)を示すタイムチャートである。It is a time chart which shows the signal transmitted and received between the stylus 2a, 2b and the sensor controller 31 shown in FIG. 1 (the scene where the sensor controller 31 registers the stylus 2a, and then further registers the stylus 2b). 図1に示したスタイラス2a,2bとセンサコントローラ31との間で送受信される信号(センサコントローラ31がスタイラス2a,2bそれぞれのデバイスタイプに基づいて送信スケジュールの再調整を行う場面)を示すタイムチャートである。A time chart showing signals transmitted and received between the stylus 2a and 2b and the sensor controller 31 shown in FIG. 1 (a scene in which the sensor controller 31 readjusts the transmission schedule based on each device type of the stylus 2a and 2b). Is. 図1に示したスタイラス2a,2cとセンサコントローラ31との間で送受信される信号(センサコントローラ31がスタイラス2a,2cそれぞれのデバイスタイプに基づいて送信スケジュールの再調整を行った後、スタイラス2a,2cによる通常の書き込みが行われている場面)を示すタイムチャートである。Signals transmitted and received between the stylus 2a and 2c shown in FIG. 1 and the sensor controller 31 (after the sensor controller 31 readjusts the transmission schedule based on the device types of the stylus 2a and 2c, the stylus 2a, It is a time chart which shows the scene (the scene where the normal writing by 2c is performed). 図1に示したセンサコントローラ31及びスタイラス2aのそれぞれによるローカルIDの登録の解除の説明図である。It is explanatory drawing of the deregistration of the local ID by each of the sensor controller 31 and the stylus 2a shown in FIG. 図1に示したスタイラス2a,2bとセンサコントローラ31との間で送受信される信号(スタイラス2a,2bが1つの設定指示に対して同時に応答した場面)を示すタイムチャートである。It is a time chart which shows the signal transmitted and received between the stylus 2a, 2b and the sensor controller 31 shown in FIG. 1 (the scene where the stylus 2a, 2b responded to one setting instruction at the same time). 図1に示したスタイラス2a,2bとセンサコントローラ31との間で送受信される信号(同じローカルIDを有するスタイラス2a,2bが1つのデータ送信指示に対して同時に応答した場面)及びスタイラス2a,2bの状態を示すタイムチャートである。Signals transmitted and received between the stylus 2a and 2b and the sensor controller 31 shown in FIG. 1 (a scene in which the stylus 2a and 2b having the same local ID respond to one data transmission instruction at the same time) and the stylus 2a and 2b. It is a time chart showing the state of. 本発明の実施の形態の第1の変形例によるスタイラス2a,2bとセンサコントローラ31との間で送受信される信号(センサコントローラ31がスタイラス2bを新たに登録する場面)を示すタイムチャートである。It is a time chart which shows the signal (the scene where the sensor controller 31 newly registers a stylus 2b) transmitted and received between the stylus 2a, 2b and the sensor controller 31 by the 1st modification of embodiment of this invention. 本発明の実施の形態の第1の変形例によるスタイラス2a,2cとセンサコントローラ31との間で送受信される信号(スタイラス2a,2cによる通常の書き込みが行われている場面)を示すタイムチャートである。A time chart showing signals transmitted and received between the stylus 2a and 2c and the sensor controller 31 (a scene in which normal writing is performed by the stylus 2a and 2c) according to the first modification of the embodiment of the present invention. is there. 本発明の実施の形態の第2の変形例によるスタイラス2の処理フローを示すフロー図である。It is a flow figure which shows the processing flow of the stylus 2 by the 2nd modification of the Embodiment of this invention.

以下、添付図面を参照しながら、本発明の好ましい実施の形態について詳細に説明する。 Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

図1は、本実施の形態による位置検出システム1の全体を示す図である。同図に示すように、位置検出システム1は、2本のペン型スタイラス2a,2bと、1個の定規型スタイラス2cと、電子機器3とを含んで構成される。電子機器3は、センサ電極30と、センサコントローラ31と、パネル32と、電子機器制御部33(ホストプロセッサ)と、液晶表示部34とを含んで構成される。 FIG. 1 is a diagram showing the entire position detection system 1 according to the present embodiment. As shown in the figure, the position detection system 1 includes two pen-type styli 2a and 2b, one ruler-type stylus 2c, and an electronic device 3. The electronic device 3 includes a sensor electrode 30, a sensor controller 31, a panel 32, an electronic device control unit 33 (host processor), and a liquid crystal display unit 34.

位置検出システム1においては、センサコントローラ31がマスターであって、1以上のスタイラス2がスレーブである。位置検出システム1は、センサコントローラ31からローカルIDを含むポーリング要求(後述するコマンド信号)が発行されると、その中に含まれたローカルIDを有するスタイラス2のみが、ポーリングに対する応答期間に返信(後述するダウンリンク信号DSの送信)を許されることとなるよう構成される。スタイラス2は、ポーリング要求を検出する都度、検出されたポーリング要求が自身の記憶しているローカルIDの値を含むか否かを判定し、含むと判定した場合に、ダウンリンク信号DSを送信する。ローカルIDは、センサコントローラ31により各スタイラス2に付与され、スタイラス2によって記憶される。 In the position detection system 1, the sensor controller 31 is the master and one or more styluses 2 are slaves. In the position detection system 1, when a polling request (command signal described later) including a local ID is issued from the sensor controller 31, only the stylus 2 having the local ID included in the polling request replies to the polling response period ( (Transmission of downlink signal DS, which will be described later) is permitted. Each time the stylus 2 detects a polling request, it determines whether or not the detected polling request includes the value of the local ID stored in the stylus 2, and if it determines that the polling request is included, transmits a downlink signal DS. .. The local ID is assigned to each stylus 2 by the sensor controller 31 and stored by the stylus 2.

スタイラス2a〜2cはいずれも上述したアクティブスタイラスであり、1以上のユーザによって同時又は別々に使用される。以下、スタイラス2a〜2cを特に区別する必要がない場合には、スタイラス2と表記する場合がある。 The styli 2a to 2c are all the active styli described above and are used simultaneously or separately by one or more users. Hereinafter, when it is not necessary to distinguish the stylus 2a to 2c, it may be referred to as a stylus 2.

例えばスタイラス2aを使用する場合、ユーザはスタイラス2aを液晶パネル32のパネル面に徐々に近づけ(ペンダウン。図1では「DOWN」と表記している)、最終的にスタイラス2aのペン先をパネル面に接触させる(ペンタッチ)。そして、ユーザがこの接触状態を保ちつつパネル面上でペン先を移動させる(ペンムーブ)と、図示したように、電子機器3の処理によってパネル面上に移動の軌跡st1が描画される。この描画は、ユーザがスタイラス2aのペン先をパネル面から離す(ペンアップ。図1では「UP」と表記している)まで継続される。その後、ユーザがペンダウン、ペンタッチ、ペンムーブ、ペンアップを再度実施すると、電子機器3の処理によって、その移動の軌跡st2がパネル面上に同様に描画される。図1には、スタイラス2bのペンダウン、ペンタッチ、ペンムーブ、ペンアップによって生じた軌跡st3も図示している。 For example, when using the stylus 2a, the user gradually brings the stylus 2a closer to the panel surface of the liquid crystal panel 32 (pen down, which is indicated as "DOWN" in FIG. 1), and finally brings the pen tip of the stylus 2a to the panel surface. (Pen touch). Then, when the user moves the pen tip on the panel surface while maintaining this contact state (pen move), as shown in the figure, the movement locus st1 is drawn on the panel surface by the processing of the electronic device 3. This drawing is continued until the user separates the pen tip of the stylus 2a from the panel surface (pen-up, which is indicated as "UP" in FIG. 1). After that, when the user performs pen down, pen touch, pen move, and pen up again, the movement locus st2 is similarly drawn on the panel surface by the processing of the electronic device 3. FIG. 1 also illustrates the locus st3 generated by the pen down, pen touch, pen move, and pen up of the stylus 2b.

スタイラス2cは、詳しくは後述するが、直線状に並べて配置された複数の電極を有する特殊なデバイスである。典型的には「電子定規」と称されるデジタル文房具用のデバイスであるが、本明細書では動作の説明の簡略のためスタイラス2cと称する。電子機器3は、スタイラス2cによって直線の入力を受け付け可能に構成される。より具体的に言えば、電子機器3は、ユーザがスタイラス2cの直線状のペン先をパネル面に接触させた(ペンタッチ)とき、そのペン先に平行な仮想線Xをパネル面上に描画するように構成される。 The stylus 2c is a special device having a plurality of electrodes arranged in a straight line, which will be described in detail later. Although it is typically a device for digital stationery called an "electronic ruler", it is referred to herein as a stylus 2c for the sake of brevity of operation. The electronic device 3 is configured to be able to accept a linear input by the stylus 2c. More specifically, when the user brings the linear pen tip of the stylus 2c into contact with the panel surface (pen touch), the electronic device 3 draws a virtual line X parallel to the pen tip on the panel surface. It is configured as follows.

スタイラス2a〜2cはそれぞれ、電子機器3のセンサコントローラ31がセンサ電極30を介して送信したアップリンク信号USを受信するともに、そのアップリンク信号USへの応答としてダウンリンク信号DSを送信するように構成される。ダウンリンク信号DSはセンサ電極30によって受信され、センサ電極30からセンサコントローラ31に供給される。 Each of the stylus 2a to 2c receives the uplink signal US transmitted by the sensor controller 31 of the electronic device 3 via the sensor electrode 30, and transmits the downlink signal DS as a response to the uplink signal US. It is composed. The downlink signal DS is received by the sensor electrode 30, and is supplied from the sensor electrode 30 to the sensor controller 31.

アップリンク信号USには、スタイラス検索信号とコマンド信号の2種類がある。スタイラス検索信号は未検出のスタイラス2を新たに検出するためのもので、既知の検出パターンc1と、末尾に付加される区切りパターンSTPとにより構成される。検出パターンc1及び区切りパターンSTPの詳細な内容については、後述する。スタイラス2は、検出パターンc1の検出動作を間欠的に行うように構成され、検出パターンc1を検出した場合に、センサコントローラ31の存在を検出する。また、検出パターンc1を検出したスタイラス2はそのまま検出動作を続け、区切りパターンSTPを検出したタイミングに基づいてセンサコントローラ31と同期する。 There are two types of uplink signal US, a stylus search signal and a command signal. The stylus search signal is for newly detecting the undetected stylus 2, and is composed of a known detection pattern c1 and a delimiter pattern STP added to the end. The detailed contents of the detection pattern c1 and the delimiter pattern STP will be described later. The stylus 2 is configured to intermittently perform the detection operation of the detection pattern c1, and detects the presence of the sensor controller 31 when the detection pattern c1 is detected. Further, the stylus 2 that has detected the detection pattern c1 continues the detection operation as it is, and synchronizes with the sensor controller 31 based on the timing at which the delimiter pattern STP is detected.

一方、コマンド信号はスタイラス2に対して指示(コマンド)を伝えるためのもので、パネル面上に現在存在している1以上のスタイラス2の中の1つを特定する情報(ローカルID)と、特定したスタイラス2に対する指示(コマンド)とを含んで構成される。スタイラス2は、自身のローカルIDを含むコマンド信号が受信された場合に、その中に含まれるコマンドを取得し、その内容に応じた処理を行う。この処理には、ダウンリンク信号DSの送信処理が含まれる。ローカルIDは、センサコントローラ31がパネル面上に現在存在している1以上のスタイラス2の中の1つを特定することができればよい情報であるため、後述するグローバルIDに比して少ないビット数の情報でよい。好適には16本のスタイラス2を識別することができる4ビット以下の値を取る情報である。なお、4ビットのローカルIDのうち0000bや1111bなどを、所謂ブロードキャストアドレスのような全部あるいは未検出のスタイラス2を特定する特別なローカルIDとして用いてもよい。また、後述の各図では、ローカルIDを「LID」(Local IDentifierの略称)と表記し、グローバルIDを「GID」(Global IDentifierの略称)と表記する。 On the other hand, the command signal is for transmitting an instruction (command) to the stylus 2, and information (local ID) for identifying one of the one or more stylus 2 currently existing on the panel surface is used. It is configured to include instructions (commands) for the specified stylus 2. When the stylus 2 receives a command signal including its own local ID, the stylus 2 acquires a command included in the command signal and performs processing according to the content thereof. This process includes a downlink signal DS transmission process. Since the local ID is information that requires the sensor controller 31 to be able to identify one of the one or more styluses 2 currently existing on the panel surface, the number of bits is smaller than that of the global ID described later. Information is sufficient. Preferably, it is information that takes a value of 4 bits or less that can identify 16 styluses 2. Of the 4-bit local IDs, 0000b, 1111b, and the like may be used as special local IDs for identifying all or undetected stylus 2 such as so-called broadcast addresses. Further, in each figure described later, the local ID is described as "LID" (abbreviation of Local IDentifier), and the global ID is described as "GID" (abbreviation of Global IDentifier).

ダウンリンク信号DSは、無変調のキャリア信号からなるバースト信号と、コマンドに応じたデータ(そのダウンリンク信号DSを送信しているスタイラス2に割り当てられたローカルIDを含む)によって変調されたキャリア信号からなるデータ信号とを含んで構成される。スタイラス2は、ダウンリンク信号DSを送信する際、初めにバースト信号を送信し、続けてデータ信号を送信するよう構成される。電子機器3のセンサコントローラ31は、センサ電極30を用いてバースト信号を受信することにより、スタイラス2の存在とその位置を検出するよう構成される。図1に示した指示位置P1,P2は、こうして検出される位置の例を示している。上述した軌跡st1〜st3は、この指示位置P1,P2の移動の軌跡である。 The downlink signal DS is a burst signal consisting of an unmodulated carrier signal and a carrier signal modulated by data according to a command (including a local ID assigned to the stylus 2 transmitting the downlink signal DS). It is configured to include a data signal consisting of. When transmitting the downlink signal DS, the stylus 2 is configured to first transmit a burst signal and then transmit a data signal. The sensor controller 31 of the electronic device 3 is configured to detect the presence and position of the stylus 2 by receiving a burst signal using the sensor electrode 30. The indicated positions P1 and P2 shown in FIG. 1 show an example of the positions thus detected. The above-mentioned loci st1 to st3 are loci of movement of the designated positions P1 and P2.

センサコントローラ31がスタイラス2を検出するためには、ダウンリンク信号DSをセンサコントローラ31が受信できる程度にまで、スタイラス2が電子機器3のタッチ面に接近している必要がある。図1に破線で示したセンシング範囲SRは、ダウンリンク信号DSをセンサコントローラ31が受信できる範囲を模式的に示したものである。センサコントローラ31は、スタイラス2がこのセンシング範囲SRに入った場合に、センサ電極30を介してダウンリンク信号DSを受信し、それによってスタイラス2を検出できるようになる。上述した「ペンダウン」は、センシング範囲SRの外から中に移動するというスタイラス2の動きを意味する。ペンダウンは通常、スタイラス2を電子機器3のパネル面に近づけるというユーザの操作によって実行される。スタイラス2がペンダウンによってセンシング範囲SRに入ったものの、未だパネル面に接触していない状態は「ホバー状態」と呼ばれる。 In order for the sensor controller 31 to detect the stylus 2, the stylus 2 needs to be close to the touch surface of the electronic device 3 to such an extent that the sensor controller 31 can receive the downlink signal DS. The sensing range SR shown by the broken line in FIG. 1 schematically shows the range in which the sensor controller 31 can receive the downlink signal DS. When the stylus 2 enters the sensing range SR, the sensor controller 31 receives the downlink signal DS via the sensor electrode 30, whereby the stylus 2 can be detected. The above-mentioned "pen down" means the movement of the stylus 2 to move from the outside to the inside of the sensing range SR. Pendown is usually performed by a user operation of bringing the stylus 2 closer to the panel surface of the electronic device 3. A state in which the stylus 2 has entered the sensing range SR by pen-down but has not yet touched the panel surface is called a "hover state".

一方、スタイラス2は、センシング範囲SRの外にいる場合であっても、センサコントローラ31が送信するアップリンク信号USを受信できる場合がある。アップリンク信号USは、パネル面に並行して配設されたマトリクス状の電極の全てを用いて送信することが可能であり、スタイラス2の先端付近の電極21(後述)から送信されるダウンリンク信号DSに比べて高い強度で送信することができるためである。図示したアップリンク検出高さAHは、スタイラス2がアップリンク信号USを受信できる高さ(パネル面からの距離)の限界を示している。アップリンク検出高さAHは、センシング範囲SRの上限よりも高い位置(パネル面から遠い位置)となる。 On the other hand, the stylus 2 may be able to receive the uplink signal US transmitted by the sensor controller 31 even when it is outside the sensing range SR. The uplink signal US can be transmitted using all of the matrix-shaped electrodes arranged in parallel on the panel surface, and is transmitted from the electrode 21 (described later) near the tip of the stylus 2. This is because it can be transmitted with a higher intensity than the signal DS. The illustrated uplink detection height AH indicates the limit of the height (distance from the panel surface) at which the stylus 2 can receive the uplink signal US. The uplink detection height AH is a position higher than the upper limit of the sensing range SR (a position far from the panel surface).

図2は、図1に示したスタイラス2a,2bの第1の例の詳細な構成を示す図である。同図に示すスタイラス2a,2bは、芯体20a、電極21、スイッチ22、筆圧検出センサ23(筆圧検出部)、及び信号処理部24を有して構成される。 FIG. 2 is a diagram showing a detailed configuration of the first example of the stylus 2a and 2b shown in FIG. The stylus 2a and 2b shown in the figure include a core body 20a, an electrode 21, a switch 22, a pen pressure detection sensor 23 (pen pressure detection unit), and a signal processing unit 24.

芯体20aは、スタイラス2のペン先を構成する導電性部材であり、電極21を兼ねている。電極21は、ダウンリンク信号DSを送信するためのアンテナの役割を果たすとともに、センサコントローラ31からセンサ電極30を介して送信されるアップリンク信号USを受信するためのアンテナとしての役割も果たす。なお、芯体20a及び電極21を、後述する図3のように別部材として構成してもよい。また、ダウンリンク信号DSを送信する電極と、アップリンク信号USを受信する電極とを別々に設けることとしてもよい。 The core body 20a is a conductive member that constitutes the pen tip of the stylus 2, and also serves as an electrode 21. The electrode 21 serves as an antenna for transmitting the downlink signal DS and also serves as an antenna for receiving the uplink signal US transmitted from the sensor controller 31 via the sensor electrode 30. The core body 20a and the electrode 21 may be configured as separate members as shown in FIG. 3, which will be described later. Further, the electrode for transmitting the downlink signal DS and the electrode for receiving the uplink signal US may be provided separately.

スイッチ22は、スタイラス2の側面に設けられるサイドスイッチや後端部に設けられるテイルスイッチなど、ユーザの操作によってオンオフいずれかの状態を取るスイッチである。筆圧検出センサ23は、芯体20aの先端に加えられる圧力(筆圧)を検出するための圧力センサである。具体的には、例えば圧力に応じて静電容量が変化する可変容量コンデンサや、圧力に応じて抵抗値が変化する圧力センサなどの公知の技術を用いて、筆圧検出センサ23を構成することができる。 The switch 22 is a switch that takes either an on / off state by a user's operation, such as a side switch provided on the side surface of the stylus 2 or a tail switch provided on the rear end portion. The pen pressure detection sensor 23 is a pressure sensor for detecting the pressure (pen pressure) applied to the tip of the core body 20a. Specifically, the pen pressure detection sensor 23 is configured by using a known technique such as a variable capacitance capacitor whose capacitance changes according to pressure and a pressure sensor whose resistance value changes according to pressure. Can be done.

信号処理部24は、電極21を介してセンサコントローラ31からアップリンク信号USを受信し、その内容に応じた処理を行うとともに、センサコントローラ31に対して送信するダウンリンク信号DSを生成し、電極21を介してセンサコントローラ31に向けて送信する機能を有する。具体的には、機能的に切替部40、受信部41、制御部44、及び送信部46を含んで構成される。以下、これらのそれぞれについて、順に説明する。 The signal processing unit 24 receives the uplink signal US from the sensor controller 31 via the electrode 21, performs processing according to the content thereof, and generates a downlink signal DS to be transmitted to the sensor controller 31 to generate the electrode. It has a function of transmitting to the sensor controller 31 via 21. Specifically, it functionally includes a switching unit 40, a receiving unit 41, a control unit 44, and a transmitting unit 46. Hereinafter, each of these will be described in order.

切替部40は、共通端子とT端子及びR端子のいずれか一方とが接続されるように構成された1回路2接点のスイッチ素子である。切替部40の共通端子は電極21に接続され、T端子は送信部46の出力端に接続され、R端子は受信部41の入力端に接続される。切替部40の状態は、制御部44からの制御信号SWCによって制御される。制御部44は、センサコントローラ31からのアップリンク信号USを受信する場合、R端子と共通端子とが接続されるよう、制御信号SWCによって切替部40を制御する。また、センサコントローラ31に対してダウンリンク信号DSを送信する場合、T端子と共通端子とが接続されるよう、制御信号SWCによって切替部40を制御する。制御部44は、初期状態、すなわちスタイラス2が後述する検出パターンc1を検出するまでの間においては、切替部40をR端子と共通端子が接続された状態に固定したうえで、スタイラス2の消費電力を削減するべく間欠的にのみ受信動作を実行するように、オン状態とスリープ状態とを繰り返すスリープ状態となることもある。 The switching unit 40 is a switch element having one circuit and two contacts configured so that the common terminal and any one of the T terminal and the R terminal are connected. The common terminal of the switching unit 40 is connected to the electrode 21, the T terminal is connected to the output terminal of the transmitting unit 46, and the R terminal is connected to the input terminal of the receiving unit 41. The state of the switching unit 40 is controlled by the control signal SWC from the control unit 44. When the control unit 44 receives the uplink signal US from the sensor controller 31, the control unit 44 controls the switching unit 40 by the control signal SWC so that the R terminal and the common terminal are connected. Further, when the downlink signal DS is transmitted to the sensor controller 31, the switching unit 40 is controlled by the control signal SWC so that the T terminal and the common terminal are connected. The control unit 44 consumes the stylus 2 after fixing the switching unit 40 in a state in which the R terminal and the common terminal are connected until the initial state, that is, until the stylus 2 detects the detection pattern c1 described later. A sleep state may be created in which an on state and a sleep state are repeated so that the reception operation is executed only intermittently in order to reduce power consumption.

受信部41は、切替部40から供給される信号(電極21に到来した信号)の受信と、受信した信号に含まれるチップ列のデコードを行う回路であり、この例では、波形再生部42及び相関演算器43を含んで構成される。受信部41は、このデコードにより、上述した検出パターンc1、区切りパターンSTP、ローカルID、及びコマンドのそれぞれを検出可能に構成される。受信部41は、上述した通りスタイラス2の消費電力を削減するため、検出パターンc1を検出するまでの間、間欠的にのみ受信動作を行う。 The receiving unit 41 is a circuit that receives the signal supplied from the switching unit 40 (the signal arriving at the electrode 21) and decodes the chip sequence included in the received signal. In this example, the waveform reproducing unit 42 and the receiving unit 41 It is configured to include a correlation calculator 43. The receiving unit 41 is configured to be able to detect each of the above-mentioned detection pattern c1, delimiter pattern STP, local ID, and command by this decoding. As described above, the receiving unit 41 performs the receiving operation only intermittently until the detection pattern c1 is detected in order to reduce the power consumption of the stylus 2.

波形再生部42は、電極21に誘導された電荷(電圧)のレベルを、センサコントローラ31がアップリンク信号USの拡散を行う際に使用する拡散符号PN(後述)のチップレートの数倍(例えば4倍)のクロックで2値化し、正負の極性値のバイナリ列(チップ列)に整形して出力する。相関演算器43は、波形再生部42が出力したチップ列をレジスタに格納し、上記クロックで順次シフトしながら拡散符号PN(又は、該拡散符号PNに対して反転及び巡回シフトのいずれか少なくとも一方を施してなる符号)との相関演算を行うことで、受信信号に含まれていたチップ列をデコードする。 The waveform reproduction unit 42 increases the level of the electric charge (voltage) induced in the electrode 21 to several times the chip rate of the diffusion code PN (described later) used by the sensor controller 31 when spreading the uplink signal US (for example,). It is binarized with a clock of 4 times), shaped into a binary string (chip string) with positive and negative polarity values, and output. The correlation calculator 43 stores the chip sequence output by the waveform reproduction unit 42 in a register, and shifts sequentially with the clock to spread code PN (or at least one of inversion and cyclic shift with respect to the spread code PN). The chip sequence included in the received signal is decoded by performing the correlation calculation with the code obtained by applying.

受信部41は、逐次、相関演算器43のデコードにより得られたシンボルの値が検出パターンc1を示しているか否かの判定を行う。その結果として検出パターンc1を検出すると、センサコントローラ31が存在することを検出し、制御部44に対して、コマンド信号により示されるコマンドに応じた処理などを実行可能にするための起動信号ENを発行する。 The receiving unit 41 sequentially determines whether or not the symbol value obtained by decoding the correlation calculator 43 indicates the detection pattern c1. When the detection pattern c1 is detected as a result, the presence of the sensor controller 31 is detected, and an activation signal EN for enabling the control unit 44 to execute processing according to the command indicated by the command signal is set. Issue.

また、受信部41は、検出パターンc1を検出した場合、上記起動信号ENにより起動された制御部44からの指示により受信動作を間欠的から連続的に切り替え、逐次、デコードにより得られたシンボルの値が上述した区切りパターンSTPを示しているか否かの判定を行う。その結果として区切りパターンSTPを検出すると、受信部41は、その検出時刻t2を制御部44に対して出力する。 When the receiving unit 41 detects the detection pattern c1, the receiving unit 41 continuously switches the receiving operation from intermittent to continuous according to the instruction from the control unit 44 activated by the activation signal EN, and sequentially decodes the symbols obtained. It is determined whether or not the value indicates the above-mentioned delimiter pattern STP. When the delimiter pattern STP is detected as a result, the receiving unit 41 outputs the detection time t2 to the control unit 44.

区切りパターンSTPを検出した後の受信部41は、制御部44の制御に従って、センサコントローラ31が送信するコマンド信号の受信動作を行う。具体的には、受信動作の実施中に相関演算器43によって得られる一連のシンボルの値からローカルID及び制御情報c2(センサコントローラ31による指示を含む情報)のセットを取得し、制御部44に出力する。 After detecting the delimiter pattern STP, the receiving unit 41 performs a command signal receiving operation to be transmitted by the sensor controller 31 under the control of the control unit 44. Specifically, a set of local ID and control information c2 (information including an instruction by the sensor controller 31) is acquired from a series of symbol values obtained by the correlation calculator 43 during the reception operation, and the control unit 44 receives the set. Output.

制御部44はマイクロプロセッサ(MCU)により構成され、受信部41から起動信号ENが供給されたことを契機として起動する。起動した制御部44が行う処理には、上述した間欠的な受信動作から連続的な受信動作への切り替えの他に、受信部41にコマンド信号を受信させる処理と、自身のローカルIDを決定してメモリ45に一時的に記憶させる処理と、送信部46にダウンリンク信号DSを送信させる処理とが含まれる。なお、受信部41にコマンド信号を受信させる処理には、R端子と共通端子を接続するための制御信号SWCを切替部40に供給する処理が含まれる。同様に、送信部46にダウンリンク信号DSを送信させる処理には、T端子と共通端子を接続するための制御信号SWCを切替部40に供給する処理が含まれる。 The control unit 44 is composed of a microprocessor (MCU), and is activated when the activation signal EN is supplied from the reception unit 41. In the processing performed by the activated control unit 44, in addition to the above-mentioned switching from the intermittent reception operation to the continuous reception operation, the processing for causing the reception unit 41 to receive the command signal and its own local ID are determined. A process of temporarily storing the downlink signal DS in the memory 45 and a process of causing the transmission unit 46 to transmit the downlink signal DS are included. The process of causing the receiving unit 41 to receive the command signal includes a process of supplying the control signal SWC for connecting the R terminal and the common terminal to the switching unit 40. Similarly, the process of causing the transmission unit 46 to transmit the downlink signal DS includes a process of supplying the control signal SWC for connecting the T terminal and the common terminal to the switching unit 40.

制御部44は、受信部41から検出時刻t2が供給されるとまず、受信部41にコマンド信号を受信させる処理を行う。詳しくは後述するが、センサコントローラ31は、検出パターンc1の繰り返し及び区切りパターンSTPにより構成されるスタイラス検索信号を送信した直後に、ローカルIDの設定指示を示すコマンド信号(検出済みの1以上のスタイラスに含まれない新たなスタイラスを検出するためのアップリンク信号)を送信するよう構成される。制御部44は、この設定指示を示すコマンドを受信部41から受信すると、自己のメモリ45にまだローカルIDがまだ記憶されていない初期状態においては、そのコマンドにより示されるローカルIDを自身のローカルIDとして決定し、メモリ45に格納する。これ以降、制御部44は、受信部41からローカルID及びコマンドのセットが供給される都度、その中のローカルIDがメモリ45に格納したローカルIDと一致するか否かを判定し、一致する場合にのみ、セット内に含まれるコマンドに応じた処理(送信部46にダウンリンク信号DSを送信させる処理を含む)を行う。制御部44はまた、ローカルID及びコマンドのセットの供給を最後に受けてから所定時間が経過した場合に、メモリ45内に格納しているローカルIDを削除する処理を行う。メモリ45は、センサコントローラ31により付与されたローカルIDの値を一時的にのみ保持するため、後述するグローバルID記憶部51とは異なり、揮発性のメモリでよい。 When the detection time t2 is supplied from the receiving unit 41, the control unit 44 first performs a process of causing the receiving unit 41 to receive a command signal. As will be described in detail later, the sensor controller 31 sends a command signal (one or more detected stylus) indicating a local ID setting instruction immediately after transmitting a stylus search signal composed of the repetition of the detection pattern c1 and the delimiter pattern STP. It is configured to transmit an uplink signal) to detect a new stylus not included in. When the control unit 44 receives the command indicating this setting instruction from the reception unit 41, the control unit 44 sets the local ID indicated by the command as its own local ID in the initial state in which the local ID is not yet stored in its own memory 45. And store it in the memory 45. After that, each time the receiving unit 41 supplies a set of local IDs and commands, the control unit 44 determines whether or not the local IDs in the local IDs match the local IDs stored in the memory 45, and if they match. (Including the process of causing the transmission unit 46 to transmit the downlink signal DS) according to the command included in the set. The control unit 44 also performs a process of deleting the local ID stored in the memory 45 when a predetermined time has elapsed since the last supply of the local ID and the set of commands. Since the memory 45 holds the value of the local ID assigned by the sensor controller 31 only temporarily, it may be a volatile memory unlike the global ID storage unit 51 described later.

制御部44が送信部46に送信させるダウンリンク信号DSには、上述したように、バースト信号及びデータ信号が含まれる。制御部44は、バースト信号を送信させる際には、送信部46に無変調のキャリア信号を送信させる。一方、データ信号を送信する際には、受信部41から供給されるコマンドによって送信を指示されたデータを取得し、メモリ45内に格納されているローカルIDとともに送信部46に供給する。これにより、送信部46から送信されるダウンリンク信号DSは、コマンドによって送信を指示されたデータとローカルIDとを含む信号となる。コマンドによって送信を指示されるデータには、スイッチ22のオンオフ状態を示すデータや、筆圧検出センサ23によって検出された筆圧を示すデータなどの、コマンドを受信した時点でのスタイラス2の操作状態に基づくデータが含まれる。 As described above, the downlink signal DS transmitted by the control unit 44 to the transmission unit 46 includes a burst signal and a data signal. When transmitting the burst signal, the control unit 44 causes the transmission unit 46 to transmit an unmodulated carrier signal. On the other hand, when transmitting the data signal, the data instructed to be transmitted by the command supplied from the receiving unit 41 is acquired and supplied to the transmitting unit 46 together with the local ID stored in the memory 45. As a result, the downlink signal DS transmitted from the transmission unit 46 becomes a signal including the data instructed to be transmitted by the command and the local ID. The data instructed to be transmitted by the command includes the operation state of the stylus 2 at the time when the command is received, such as data indicating the on / off state of the switch 22 and data indicating the pen pressure detected by the pen pressure detection sensor 23. Contains data based on.

送信部46は、制御部44による制御に応じてダウンリンク信号DSを生成し、電極21に供給する回路であり、変調部47及び昇圧回路48により構成される。 The transmission unit 46 is a circuit that generates a downlink signal DS in response to control by the control unit 44 and supplies it to the electrode 21, and is composed of a modulation unit 47 and a booster circuit 48.

変調部47は、所定周波数又は制御部44からの制御に従う周波数のキャリア信号(例えば矩形波信号)を生成し、制御部44の制御に基づき、そのまま或いは変調したうえで出力する回路である。バースト信号送信時の変調部47は、制御部44の指示に従い、キャリア信号を変調せずにそのまま出力する。なお、既知の値のパターンで変調してなる信号をバースト信号として用いることとしてもよく、その場合の変調部47は、キャリア信号を上記既知の値のパターンで変調したうえで出力する。一方、データ信号送信時の変調部47は、制御部44から供給されるデータによりキャリア信号を変調(OOK、PSK等)し、その結果として得られる変調信号を出力する。 The modulation unit 47 is a circuit that generates a carrier signal (for example, a rectangular wave signal) having a predetermined frequency or a frequency that is controlled by the control unit 44, and outputs the carrier signal as it is or after modulation based on the control of the control unit 44. The modulation unit 47 at the time of burst signal transmission outputs the carrier signal as it is without modulating it according to the instruction of the control unit 44. A signal modulated with a pattern of a known value may be used as a burst signal, and in that case, the modulation unit 47 modulates the carrier signal with the pattern of the known value and then outputs the signal. On the other hand, the modulation unit 47 at the time of data signal transmission modulates the carrier signal (OK, PSK, etc.) with the data supplied from the control unit 44, and outputs the modulation signal obtained as a result.

昇圧回路48は、変調部47の出力信号を一定の振幅まで昇圧することにより、ダウンリンク信号DSを生成する回路である。昇圧回路48によって生成されたダウンリンク信号DSは、切替部40を経て電極21から空間に送出される。 The booster circuit 48 is a circuit that generates a downlink signal DS by boosting the output signal of the modulation unit 47 to a constant amplitude. The downlink signal DS generated by the booster circuit 48 is transmitted from the electrode 21 to the space via the switching unit 40.

図3は、図1に示したスタイラス2a,2bの第2の例の詳細な構成を示す図である。同図に示すスタイラス2a,2bは、芯体20aと電極21とが別部材により構成される点、及び、信号処理部24内に6軸IMU(Inertial Measurement Unit)50及びグローバルID記憶部51を含む点で、図2に示したスタイラス2a,2bと異なる。以下、図2に示したスタイラス2a,2bとの相違点に着目して説明する。 FIG. 3 is a diagram showing a detailed configuration of a second example of the stylus 2a and 2b shown in FIG. The stylus 2a and 2b shown in the figure include a point in which the core body 20a and the electrode 21 are made of separate members, and a 6-axis IMU (Inertial Measurement Unit) 50 and a global ID storage unit 51 in the signal processing unit 24. It differs from the stylus 2a and 2b shown in FIG. 2 in that it includes the stylus. Hereinafter, the differences from the styluses 2a and 2b shown in FIG. 2 will be focused on.

本例による芯体20aは、スタイラス2のペン先を構成する絶縁性部材によって構成される。電極21は、芯体20aの先端の近傍に設けられる導電性部材である。電極21の役割は、図2に示した電極21と同じである。 The core body 20a according to this example is composed of an insulating member constituting the pen tip of the stylus 2. The electrode 21 is a conductive member provided near the tip of the core body 20a. The role of the electrode 21 is the same as that of the electrode 21 shown in FIG.

6軸IMU50は、3軸の加速度センサ及び3軸のジャイロセンサを含む慣性計測装置であり、計測結果を示す値を制御部44に出力するよう構成される。 The 6-axis IMU50 is an inertial measurement unit including a 3-axis acceleration sensor and a 3-axis gyro sensor, and is configured to output a value indicating a measurement result to the control unit 44.

図4は、6軸IMU50の説明図である。同図(a)はスタイラス2a,2bを横側から見た図を示し、同図(b)は、同図(a)に示すA−A線に対応するスタイラス2a,2bの断面を示している。 FIG. 4 is an explanatory diagram of the 6-axis IMU50. FIG. 2A shows a side view of the stylus 2a and 2b, and FIG. 2B shows a cross section of the stylus 2a and 2b corresponding to the line AA shown in the figure (a). There is.

6軸IMU50は、図4(a)に示すように、スタイラス2a,2bの長手方向をZ軸として使用する。また、図4(b)に示すように、スタイラス2a,2bの断面の中心からスイッチ22に向かう方向をY軸として使用し、Z軸及びY軸の両方に垂直な方向をX軸として使用する。6軸IMU50は、これらX軸〜Z軸それぞれの方向について、スタイラス2a,2bの加速度と角速度とを取得し、制御部44に出力する。 As shown in FIG. 4A, the 6-axis IMU50 uses the longitudinal direction of the stylus 2a and 2b as the Z-axis. Further, as shown in FIG. 4B, the direction from the center of the cross section of the stylus 2a and 2b toward the switch 22 is used as the Y-axis, and the direction perpendicular to both the Z-axis and the Y-axis is used as the X-axis. .. The 6-axis IMU50 acquires the acceleration and angular velocity of the stylus 2a and 2b in each of the X-axis to Z-axis directions and outputs them to the control unit 44.

図3に戻る。グローバルID記憶部51は、スタイラス2ごとに異なる情報であるグローバルIDを記憶する。グローバルIDは、スタイラス2のベンダーの識別子、ベンダー内でのスタイラス2の識別番号、スタイラス2のデバイスタイプ(ペン型又は定規型など)などを示す例えば64ビットの情報である。グローバルIDは、スタイラス2の製造の時点でグローバルID記憶部51に書き込まれる。グローバルID記憶部51としては、揮発性のメモリ45とは異なり不揮発性メモリが利用される。グローバルIDがベンダ―の識別子などを含みグローバルにユニークな識別子であるのに対し、ローカルIDはセンサコントローラ31が自己の検出範囲内で存在する複数のスタイラス2のうちの1つをローカルに識別するための識別子である点で、これらは互いに相違している。 Return to FIG. The global ID storage unit 51 stores the global ID, which is different information for each stylus 2. The global ID is, for example, 64-bit information indicating the identifier of the vendor of the stylus 2, the identification number of the stylus 2 within the vendor, the device type of the stylus 2 (pen type, ruler type, etc.), and the like. The global ID is written in the global ID storage unit 51 at the time of manufacturing the stylus 2. As the global ID storage unit 51, a non-volatile memory is used unlike the volatile memory 45. While the global ID is a globally unique identifier including the vendor's identifier, the local ID locally identifies one of the plurality of styli 2 existing within the detection range of the sensor controller 31. They differ from each other in that they are identifiers for.

スタイラス2a,2bが図3に示す構成を有するものである場合、センサコントローラ31がコマンド信号によって送信を指示するデータには、上述したスタイラス2の操作状態に基づくデータに加え、6軸IMU50の計測結果及びグローバルIDが含まれる。6軸IMU50の計測結果の送信を指示された場合の制御部44は、6軸IMU50から計測結果を示すデータを取得し、送信対象のデータとして送信部46に供給する。同様に、グローバルIDの送信を指示された場合の制御部44は、グローバルID記憶部51からグローバルIDを読み出し、送信対象のデータとして送信部46に供給する。 When the stylus 2a and 2b have the configuration shown in FIG. 3, the data instructing the transmission by the sensor controller 31 by the command signal includes the measurement of the 6-axis IMU50 in addition to the data based on the operation state of the stylus 2 described above. The result and global ID are included. When instructed to transmit the measurement result of the 6-axis IMU50, the control unit 44 acquires data indicating the measurement result from the 6-axis IMU50 and supplies it to the transmission unit 46 as data to be transmitted. Similarly, when instructed to transmit the global ID, the control unit 44 reads the global ID from the global ID storage unit 51 and supplies it to the transmission unit 46 as data to be transmitted.

図5は、図1に示したスタイラス2c(定規型デバイス)の詳細な構成を示す図である。また、図6は、スタイラス2cの上面図である。これらの図に示すように、スタイラス2cは、芯体20aに代えて定規20b(定規部)を有する点、n個の電極21_1〜21_nを有する点、切替部27を有する点、スイッチ22及び筆圧検出センサ23に代えて2つのスイッチ25,26を有する点、6軸IMU50を有しない点で、図3に示したスタイラス2a,2bと異なる。以下、図3に示したスタイラス2a,2bとの相違点に着目して説明する。 FIG. 5 is a diagram showing a detailed configuration of the stylus 2c (ruler type device) shown in FIG. Further, FIG. 6 is a top view of the stylus 2c. As shown in these figures, the stylus 2c has a ruler 20b (ruler portion) instead of the core body 20a, a point having n electrodes 21_1 to 21_n, a point having a switching portion 27, a switch 22 and a brush. It differs from the stylus 2a and 2b shown in FIG. 3 in that it has two switches 25 and 26 instead of the pressure detection sensor 23 and does not have a 6-axis IMU50. Hereinafter, the differences from the styluses 2a and 2b shown in FIG. 3 will be focused on.

定規20bは薄い板状の絶縁性部材であり、文房具の定規を模して作られている。電極21_1〜21_nはそれぞれ薄い板状の導電性部材であり、定規20bの長手方向一端と他端の少なくとも2カ所に配置されている。なお、図5の例では、3つ以上の電極21が、定規20bの長手方向の一端から他端にかけて、定規20bの長手方向に沿ってその内部に等間隔に並べて配置されている。また、図6の例では、2つの電極21が、それぞれ定規20bの長手方向の一端と他端とに配置されている。電極21_1〜21_nはそれぞれが、図2及び図3に示した電極21と同様、ダウンリンク信号DSを送信するためのアンテナの役割を果たすとともに、センサコントローラ31からセンサ電極30を介して送信されるアップリンク信号USを受信するためのアンテナとしての役割も果たす。なお、電極21を送信専用とし、受信電極を別に設けることとしてもよい。この場合、受信電極は、例えばブルートゥース(登録商標)等の他の近接型無線通信手段によりアップリンク信号USを受信するものとしてもよい。 The ruler 20b is a thin plate-shaped insulating member, and is made to imitate a stationery ruler. The electrodes 21_1 to 21_n are thin plate-shaped conductive members, and are arranged at at least two positions, one end and the other end in the longitudinal direction of the ruler 20b. In the example of FIG. 5, three or more electrodes 21 are arranged at equal intervals inside the ruler 20b from one end to the other end in the longitudinal direction of the ruler 20b. Further, in the example of FIG. 6, two electrodes 21 are arranged at one end and the other end of the ruler 20b in the longitudinal direction, respectively. Each of the electrodes 21_1 to 21_n acts as an antenna for transmitting the downlink signal DS, like the electrodes 21 shown in FIGS. 2 and 3, and is transmitted from the sensor controller 31 via the sensor electrode 30. It also serves as an antenna for receiving the uplink signal US. The electrode 21 may be dedicated to transmission and a receiving electrode may be provided separately. In this case, the receiving electrode may receive the uplink signal US by other proximity wireless communication means such as Bluetooth (registered trademark).

切替部27は、共通端子とn個の電極側端子のいずれか一方とが接続されるように構成された1回路n接点のスイッチ素子である。切替部27の共通端子は切替部40の共通端子に接続され、切替部27のn個の電極側端子は、電極21_1〜21_nと一対一に接続される。 The switching unit 27 is a 1-circuit n-contact switch element configured so that either one of the common terminal and the n electrode-side terminals is connected. The common terminals of the switching unit 27 are connected to the common terminals of the switching unit 40, and the n electrode-side terminals of the switching unit 27 are connected one-to-one with the electrodes 21_1 to 21_n.

スイッチ25(第1のスイッチ)は、スタイラス2cが動作状態であるか停止状態であるかを切り替えるためのスイッチである。また、スイッチ26(第2のスイッチ)は、センサコントローラ31が備える電子機器3に対して、後述する仮想線の確定など所定の処理を起動させるためスイッチである。これらスイッチ25、26は、図6に例示するように、定規20bの上面の、望ましくは長手方向中央付近に設けられる。 The switch 25 (first switch) is a switch for switching whether the stylus 2c is in the operating state or the stopped state. Further, the switch 26 (second switch) is a switch for activating a predetermined process such as confirmation of a virtual line, which will be described later, on the electronic device 3 included in the sensor controller 31. These switches 25 and 26 are provided on the upper surface of the ruler 20b, preferably near the center in the longitudinal direction, as illustrated in FIG.

制御部44は、ユーザがスイッチ25を押してからスイッチ26を押下するまでの間、受信部41から自身に割り当てられたローカルIDに対応するコマンドが供給される都度、送信部46にダウンリンク信号DSを送信させるよう構成される。このとき切替部27は、ダウンリンク信号DSの送信の都度、共通端子の接続先となる電極側端子を切り替えていく動作を行う。これにより、電極21_1〜21_nのそれぞれから順に、ダウンリンク信号DSが送信される。 From the time when the user presses the switch 25 to the time when the user presses the switch 26, the control unit 44 sends the downlink signal DS to the transmission unit 46 each time a command corresponding to the local ID assigned to itself is supplied from the reception unit 41. Is configured to be sent. At this time, the switching unit 27 performs an operation of switching the electrode side terminal to which the common terminal is connected each time the downlink signal DS is transmitted. As a result, the downlink signal DS is transmitted in order from each of the electrodes 21_1 to 21_n.

センサコントローラ31は、コマンド信号によりグローバルIDの送信を指示し、これに応答してスタイラス2cが送信するグローバルIDを確認することによって、スタイラス2cが定規型のデバイスであることを認識する。定規型のデバイスであると認識したスタイラス2cについてセンサコントローラ31は、順次受信されるダウンリンク信号DSによって特定される複数の位置を記憶し、それらをつなぐ仮想線X(図1参照)を表示するよう構成される。 The sensor controller 31 instructs the transmission of the global ID by a command signal, and confirms the global ID transmitted by the stylus 2c in response to the instruction, thereby recognizing that the stylus 2c is a ruler type device. Regarding the stylus 2c recognized as a ruler type device, the sensor controller 31 stores a plurality of positions specified by the downlink signal DS sequentially received, and displays a virtual line X (see FIG. 1) connecting them. Is configured.

また、制御部44は、ユーザがスイッチ26(第2のスイッチ)を押下した場合、その旨を示すデータをダウンリンク信号DSに含めて送信部46に送信させるよう構成される。センサコントローラ31は、このデータを受信することにより、仮想線Xの位置を確定させるためのデータを電子機器制御部33に対して通知する。 Further, when the user presses the switch 26 (second switch), the control unit 44 is configured to include data indicating that fact in the downlink signal DS and transmit it to the transmission unit 46. By receiving this data, the sensor controller 31 notifies the electronic device control unit 33 of the data for determining the position of the virtual line X.

スタイラス2a,2bのようペン型のスタイラス2は利用されている間の移動速度が大きいのに対し、スタイラス2cのような定規型のスタイラス2は、一度パネル面におかれるとしばらくの間同じ位置に置かれ、ペン型のスタイラス2に比較して小さい移動速度で利用されることが多い。したがって、定規型のスタイラス2には高いスキャンレートを割り当てる必要がない場合が多いことから、本実施の形態によるセンサコントローラ31は、グローバルIDの確認によって定規型であると認識したスタイラス2について、そのスキャンレートを小さくするようにしている。詳しくは後述する。 While the pen-shaped stylus 2 such as the stylus 2a and 2b has a high moving speed while being used, the ruler-shaped stylus 2 such as the stylus 2c is in the same position for a while once it is placed on the panel surface. It is often used at a smaller moving speed than the pen-shaped stylus 2. Therefore, since it is often not necessary to assign a high scan rate to the ruler type stylus 2, the sensor controller 31 according to the present embodiment has the stylus 2 recognized as a ruler type by confirming the global ID. I try to reduce the scan rate. Details will be described later.

また、定規型のスタイラス2は、手に把持されて利用されるペン型のスタイラス2とは異なり、ユーザが操作していない間であっても、パネル面上に置かれたまま利用される場合がある。このような場合に、定規型のスタイラス2とセンサコントローラ31との間で信号の送受信を行うことは、定規型のスタイラス2の消費電力を増加させ、また、センサコントローラ31と各スタイラス2との間の通信リソースを不使用時にも消費することになる。そこで本実施の形態によるスタイラス2cでは、スイッチ25,26の操作によってダウンリンク信号DSの送信期間をユーザが指定できるようにしている。こうすることで、スタイラス2cがパネル面上に放置されている場合における、スタイラス2cの消費電力の低減と、通信リソースの有効活用とが実現される。 Further, unlike the pen-type stylus 2 which is used by being held by the hand, the ruler-type stylus 2 is used while being placed on the panel surface even when the user is not operating the stylus 2. There is. In such a case, transmitting and receiving signals between the ruler-type stylus 2 and the sensor controller 31 increases the power consumption of the ruler-type stylus 2 and also causes the sensor controller 31 and each stylus 2 to communicate with each other. Communication resources between them will be consumed even when not in use. Therefore, in the stylus 2c according to the present embodiment, the user can specify the transmission period of the downlink signal DS by operating the switches 25 and 26. By doing so, when the stylus 2c is left on the panel surface, the power consumption of the stylus 2c can be reduced and the communication resources can be effectively utilized.

次に、図7は、図1に示した電子機器3の詳細な構成を示す図である。以下、この図7を参照しながら、電子機器3の構成及び動作について詳しく説明する。 Next, FIG. 7 is a diagram showing a detailed configuration of the electronic device 3 shown in FIG. Hereinafter, the configuration and operation of the electronic device 3 will be described in detail with reference to FIG. 7.

センサ電極30は、それぞれX方向に延在する複数の線状電極30Xと、それぞれY方向に延在する複数の線状電極30Yとによって構成される。センサ電極30は、これら線状電極30X,30Yにより、スタイラス2と容量結合するように構成される。上述したアップリンク信号US及びダウンリンク信号DSは、この容量結合を介して送受信される。 The sensor electrode 30 is composed of a plurality of linear electrodes 30X extending in the X direction and a plurality of linear electrodes 30Y extending in the Y direction, respectively. The sensor electrode 30 is configured to be capacitively coupled to the stylus 2 by these linear electrodes 30X and 30Y. The uplink signal US and the downlink signal DS described above are transmitted and received via this capacitive coupling.

センサコントローラ31は、図7に示すように、MCU60、ロジック部61、送信部62、受信部63、及び選択部64を有して構成される。 As shown in FIG. 7, the sensor controller 31 includes an MCU 60, a logic unit 61, a transmission unit 62, a reception unit 63, and a selection unit 64.

MCU60及びロジック部61は、送信部62、受信部63、及び選択部64を制御することにより、センサコントローラ31の送受信動作を制御する制御部である。具体的に説明すると、MCU60は、内部にROMおよびRAMを有し、所定のプログラムに基づき動作するマイクロプロセッサである。一方、ロジック部61は、MCU60の制御に基づき、制御信号ctrl_1〜ctrl_4及びctrl_rを出力するよう構成される。 The MCU 60 and the logic unit 61 are control units that control the transmission / reception operation of the sensor controller 31 by controlling the transmission unit 62, the reception unit 63, and the selection unit 64. Specifically, the MCU 60 is a microprocessor that has a ROM and a RAM inside and operates based on a predetermined program. On the other hand, the logic unit 61 is configured to output control signals ctrl_1 to ctrl_4 and ctrl_r based on the control of the MCU 60.

MCU60は、図7に示すように、ID管理テーブル70を格納するメモリをその内部に有している。また、MCU60は機能的に、ID管理部71、位置導出部72、状態検出部73を有して構成される。 As shown in FIG. 7, the MCU 60 has a memory for storing the ID management table 70 inside. Further, the MCU 60 is functionally configured to include an ID management unit 71, a position derivation unit 72, and a state detection unit 73.

図8は、ID管理テーブル70を示す図である。同図に示すように、ID管理テーブル70は、ローカルIDごとに、グローバルID、速度、現在状態、オペレーション状態、リセットコマンド未発行フラグ1、リセットコマンド未発行フラグ2、削除カウンタ、及びダウンリンク信号送信スケジュールを記憶するテーブルである。 FIG. 8 is a diagram showing an ID management table 70. As shown in the figure, the ID management table 70 contains a global ID, a speed, a current state, an operation state, a reset command unissued flag 1, a reset command unissued flag 2, a deletion counter, and a downlink signal for each local ID. It is a table that stores the transmission schedule.

ID管理部71は、ID管理テーブル70に記憶されるローカルIDの登録及び消去を実行する機能を有する。具体的に説明すると、ID管理部71は、まだID管理テーブル70に登録されていないローカルIDの設定指示を含む制御情報c2を送信部62に供給するとともに、この制御情報c2を示すコマンド信号を送信するよう、送信部62を制御する。そして、このコマンド信号を受けたスタイラス2が指示されたローカルIDを含むダウンリンク信号DSを送信すると、ID管理部71は、受信部63を通じてこのダウンリンク信号DSを受信し、その中に設定を指示したローカルIDが含まれるか否かを判定する。ID管理部71は、この判定結果が肯定的なものであった場合に、そのローカルIDの値をID管理テーブル70に登録する処理を行う。ローカルIDの消去については、後ほど図12のフロー図を参照しながら詳しく説明する。 The ID management unit 71 has a function of executing registration and erasure of the local ID stored in the ID management table 70. Specifically, the ID management unit 71 supplies the control information c2 including the setting instruction of the local ID that has not yet been registered in the ID management table 70 to the transmission unit 62, and also supplies a command signal indicating the control information c2. The transmission unit 62 is controlled so as to transmit. Then, when the stylus 2 that receives this command signal transmits the downlink signal DS including the instructed local ID, the ID management unit 71 receives the downlink signal DS through the receiving unit 63, and sets in the downlink signal DS. It is determined whether or not the instructed local ID is included. When the determination result is positive, the ID management unit 71 performs a process of registering the value of the local ID in the ID management table 70. The erasure of the local ID will be described in detail later with reference to the flow chart of FIG.

ID管理部71はまた、ローカルID以外の各種データ(図2に示したスイッチ22のオンオフ状態を示すデータ、図2に示した筆圧検出センサ23によって検出された筆圧を示すデータ、図3に示した6軸IMU50の計測結果を示すデータ、図3に示したグローバルID記憶部51に記憶されるグローバルIDなど)の送信指示を含む制御情報c2を送信部62に供給するとともに、この制御情報c2を示すコマンド信号を送信するよう、送信部62を制御する機能も有する。このとき送信部62に供給される制御情報c2には、送信指示の宛先となるスタイラス2のローカルIDが含まれる。上述したように、スタイラス2は、受信したコマンド信号に含まれるローカルIDが自身に割り当てられたローカルIDと一致する場合にのみ、そのローカルIDとコマンドによって送信を指示されたデータとを含むダウンリンク信号DSを送信するよう構成される。ID管理部71は、こうして送信されたダウンリンク信号を受信部63を通じて受信すると、その中に含まれるローカルID及びデータを検出する処理を行う。そして、検出したローカルID及びデータ(図7ではRes(応答データの意)と記す)を、後述する位置導出部72により導出される座標x,yとともに、電子機器制御部33(図1参照)にレポートする。また、検出したデータにグローバルIDが含まれている場合には、そのグローバルIDをID管理テーブル70に書き込む処理も行う。 The ID management unit 71 also includes various data other than the local ID (data indicating the on / off state of the switch 22 shown in FIG. 2, data indicating the pen pressure detected by the pen pressure detection sensor 23 shown in FIG. 2, and FIG. 3). The control information c2 including the transmission instruction of the data showing the measurement result of the 6-axis IMU50 shown in FIG. 3 and the global ID stored in the global ID storage unit 51 shown in FIG. 3) is supplied to the transmission unit 62, and this control is performed. It also has a function of controlling the transmission unit 62 so as to transmit a command signal indicating information c2. The control information c2 supplied to the transmission unit 62 at this time includes the local ID of the stylus 2 which is the destination of the transmission instruction. As described above, the stylus 2 is a downlink containing the local ID and the data instructed to be transmitted by the command only when the local ID included in the received command signal matches the local ID assigned to itself. It is configured to transmit the signal DS. When the ID management unit 71 receives the downlink signal transmitted in this way through the receiving unit 63, the ID management unit 71 performs a process of detecting the local ID and data contained therein. Then, the detected local ID and data (referred to as Res (meaning response data) in FIG. 7) are combined with the coordinates x and y derived by the position derivation unit 72 described later, and the electronic device control unit 33 (see FIG. 1). Report to. If the detected data includes a global ID, the process of writing the global ID to the ID management table 70 is also performed.

ID管理部71はさらに、ID管理テーブル70に記憶される1以上のローカルIDのそれぞれにつき、ダウンリンク信号DSの送信スケジュールを決定し、ID管理テーブル70に書き込む機能も有する。この送信スケジュールは、ダウンリンク信号DSの送信頻度(スキャンレート)と、ダウンリンク信号DSの送信継続時間という2種類のパラメータによって構成される。デフォルトでは、ID管理部71は、ID管理テーブル70に登録中のすべてのローカルIDについて、スキャンレート及びダウンリンク信号DSの送信継続時間をそれぞれ等しい値に設定する。 The ID management unit 71 also has a function of determining a transmission schedule of the downlink signal DS for each of the one or more local IDs stored in the ID management table 70 and writing the downlink signal DS in the ID management table 70. This transmission schedule is composed of two types of parameters: the transmission frequency (scan rate) of the downlink signal DS and the transmission duration of the downlink signal DS. By default, the ID management unit 71 sets the scan rate and the transmission duration of the downlink signal DS to equal values for all the local IDs registered in the ID management table 70.

ここで、定規型のスタイラス2に与えられるスキャンレートは、ペン型のスタイラス2に比べて小さな値でよいと考えられる。定規型のスタイラス2は、ペン型のスタイラス2に比べて、パネル面上での移動が少ないと考えられるからである。同様の理由により、後述する移動速度(状態検出部73によって算出されるもの)により現にあまり動いていないことが示されるスタイラス2についても、よく動いていることが示されるスタイラス2に比べて小さなスキャンレートで足りると考えられる。また、各スタイラス2によるダウンリンク信号DSの送信継続時間は、各スタイラス2の仕様によって異なる。例えば、あるベンダーのスタイラス2は、他のベンダーのスタイラス2に比べて2倍の時間にわたって、ダウンリンク信号DSの送信を継続するよう構成される。 Here, it is considered that the scan rate given to the ruler type stylus 2 may be a smaller value than that of the pen type stylus 2. This is because the ruler-type stylus 2 is considered to move less on the panel surface than the pen-type stylus 2. For the same reason, the stylus 2 which is shown to be not moving much by the movement speed (calculated by the state detection unit 73) described later is also smaller than the stylus 2 which is shown to be moving well. The rate is considered sufficient. Further, the transmission duration of the downlink signal DS by each stylus 2 differs depending on the specifications of each stylus 2. For example, the stylus 2 of one vendor is configured to continue transmitting the downlink signal DS for twice as long as the stylus 2 of another vendor.

そこで、ID管理部71は、スタイラス2のグローバルID(デバイスタイプ)又は移動速度を取得できた場合には、これらに基づいて各スタイラス2にとって最適なスキャンレート及びダウンリンク信号DSの送信継続時間を決定し、その結果に基づいて、ダウンリンク信号DSの送信スケジュールの再調整を行う。具体的な例を挙げると、移動速度が大きいほどスキャンレートが大きくなるよう、ID管理テーブル70に記憶される1以上のローカルIDのそれぞれについてのスキャンレートを決定し、ID管理テーブル70に書き込む。また、他の例では、各スタイラス2のデバイスタイプに基づいて各スタイラス2のダウンリンク信号DSの送信継続時間を決定し、ID管理テーブル70に書き込む。この再調整については、後ほど図23及び図24を参照しながら、より詳しく説明する。 Therefore, when the ID management unit 71 can acquire the global ID (device type) or movement speed of the stylus 2, the optimum scan rate and downlink signal DS transmission duration for each stylus 2 are determined based on these. The decision is made, and the transmission schedule of the downlink signal DS is readjusted based on the result. To give a specific example, the scan rate for each of the one or more local IDs stored in the ID management table 70 is determined and written in the ID management table 70 so that the scan rate increases as the moving speed increases. In another example, the transmission duration of the downlink signal DS of each stylus 2 is determined based on the device type of each stylus 2 and written in the ID management table 70. This readjustment will be described in more detail later with reference to FIGS. 23 and 24.

ID管理テーブル70に書き込まれたダウンリンク信号DSの送信スケジュールは、ID管理部71が、各ローカルIDに宛てたコマンド信号の送信頻度と、コマンド信号の送信間隔とを制御することにより、実現される。具体的に説明すると、ID管理部71は、各ローカルIDに宛てたコマンド信号の送信頻度を制御することにより、ID管理テーブル70に設定したスキャンレートを実現する。例えば、ID管理テーブル70に2つのローカルID#1,#2が設定されており、それぞれのスキャンレートがともに1/2であれば、ID管理部71は、ローカルID#1,#2のそれぞれに宛てたコマンド信号を交互に送信する。また、ID管理テーブル70に2つのローカルID#1,#2が設定されており、ローカルID#1のスキャンレートが1/4、ローカルID#2のスキャンレートが3/4であれば、ID管理部71はローカルID#1に宛ててコマンド信号を1回送信した後、ローカルID#2に宛ててコマンド信号を3回送信する、という頻度で、コマンド信号の送信を行う。また、ID管理部71は、コマンド信号の送信間隔を制御することにより、ID管理テーブル70に設定したダウンリンク信号DSの送信継続時間を実現する。すなわち、センサコントローラ31はコマンド信号の送信インターバルの間にダウンリンク信号DSの受信を行うことから、例えばコマンド信号の送信間隔を長くするほど、ダウンリンク信号DSの検出動作を継続する時間が長くなる。したがって、ダウンリンク信号DSの送信継続時間を長く取れることになる。センサコントローラ31は、このようなダウンリンク信号DSの送信スケジュールに適合する形で各スタイラス2からダウンリンク信号DSが送信されるように、各IDを含む送信要求コマンドであるアップリンク信号USを発行するポーリングスケジュールを決定する。このポーリングスケジュールに従って、各ローカルIDを含むアップリンク信号USが送信される。 The transmission schedule of the downlink signal DS written in the ID management table 70 is realized by the ID management unit 71 controlling the transmission frequency of the command signal addressed to each local ID and the transmission interval of the command signal. To. Specifically, the ID management unit 71 realizes the scan rate set in the ID management table 70 by controlling the transmission frequency of the command signal addressed to each local ID. For example, if two local IDs # 1 and # 2 are set in the ID management table 70 and their scan rates are both 1/2, the ID management unit 71 has the local IDs # 1 and # 2, respectively. Command signals addressed to are transmitted alternately. Further, if two local IDs # 1 and # 2 are set in the ID management table 70, the scan rate of the local ID # 1 is 1/4, and the scan rate of the local ID # 2 is 3/4, the ID The management unit 71 transmits the command signal at a frequency of transmitting the command signal to the local ID # 1 once and then transmitting the command signal to the local ID # 2 three times. Further, the ID management unit 71 realizes the transmission duration of the downlink signal DS set in the ID management table 70 by controlling the transmission interval of the command signal. That is, since the sensor controller 31 receives the downlink signal DS during the command signal transmission interval, for example, the longer the command signal transmission interval, the longer the duration of the downlink signal DS detection operation. .. Therefore, the transmission duration of the downlink signal DS can be lengthened. The sensor controller 31 issues an uplink signal US, which is a transmission request command including each ID, so that the downlink signal DS is transmitted from each stylus 2 in a form conforming to the transmission schedule of the downlink signal DS. Determine the polling schedule. According to this polling schedule, the uplink signal US including each local ID is transmitted.

位置導出部72は、受信部63から供給されるデジタル信号に基づいて各複数の線状電極30X,30Yそれぞれにおけるダウンリンク信号DSの受信強度を取得し、その結果に基づいて、スタイラス2の位置を示す座標x,yを導出する処理を行う。 The position deriving unit 72 acquires the reception strength of the downlink signal DS at each of the plurality of linear electrodes 30X and 30Y based on the digital signal supplied from the receiving unit 63, and based on the result, the position of the stylus 2 The process of deriving the coordinates x and y indicating the above is performed.

状態検出部73は、各ローカルIDについて位置導出部72により導出される位置の変化から各スタイラス2の移動速度を算出し、ID管理テーブル70に書き込む処理を行う。また、各ローカルIDについて、アップリンク信号USへの応答としてのダウンリンク信号DSが受信されているか否か、受信されている場合にはその中に含まれる筆圧の値が0か0より大きいかを判定し、その結果をスタイラス2の現在状態としてID管理テーブル70に書き込む処理を行う。具体的には、図8に示すように、アップリンク信号USへの応答としてのダウンリンク信号DSが受信されていないローカルIDについては「アップリンク信号返信なし」を示す値を、アップリンク信号USへの応答としてのダウンリンク信号DSが受信されているローカルIDについては「ペンダウン状態」を示す値を、筆圧の値が0であるローカルIDについてはさらに「筆圧=0」を示す値を、筆圧の値が0より大きいローカルIDについてはさらに「筆圧>0」を示す値をそれぞれ書き込む。 The state detection unit 73 calculates the moving speed of each stylus 2 from the change in the position derived by the position derivation unit 72 for each local ID, and performs a process of writing to the ID management table 70. Further, for each local ID, whether or not the downlink signal DS as a response to the uplink signal US is received, and if so, the pen pressure value contained therein is 0 or greater than 0. Is determined, and the result is written in the ID management table 70 as the current state of the stylus 2. Specifically, as shown in FIG. 8, for the local ID in which the downlink signal DS as a response to the uplink signal US is not received, a value indicating "no uplink signal reply" is used for the uplink signal US. For the local ID for which the downlink signal DS is received as a response to, a value indicating "pen-down state" is used, and for a local ID having a pen pressure value of 0, a value indicating "pen pressure = 0" is further used. , For a local ID whose pen pressure value is larger than 0, further write a value indicating "pen pressure> 0".

状態検出部73はまた、各ローカルIDにつき、オペレーション状態、リセットコマンド未発行フラグ1、リセットコマンド未発行フラグ2、削除カウンタを取得し、ID管理テーブル70に書き込む処理を行う。これらの詳細については、後ほどセンサコントローラ31の処理フロー図を参照しながら、より詳しく説明する。 The state detection unit 73 also acquires the operation status, the reset command unissued flag 1, the reset command unissued flag 2, and the deletion counter for each local ID, and performs a process of writing them to the ID management table 70. These details will be described in more detail later with reference to the processing flow chart of the sensor controller 31.

送信部62は、MCU60及びロジック部61の制御に従ってアップリンク信号USを生成する回路であり、図7に示すように、パターン供給部80、スイッチ81、符号列保持部82、拡散処理部83、及び送信ガード部84を含んで構成される。なお、このうち特にパターン供給部80に関して、本実施の形態では送信部62内に含まれるものとして説明するが、MCU60内に含まれることとしてもよい。 The transmission unit 62 is a circuit that generates an uplink signal US under the control of the MCU 60 and the logic unit 61, and as shown in FIG. 7, the pattern supply unit 80, the switch 81, the code string holding unit 82, the diffusion processing unit 83, And a transmission guard unit 84 are included. Of these, the pattern supply unit 80 will be described as being included in the transmission unit 62 in the present embodiment, but may be included in the MCU 60.

アップリンク信号USには、上述したように、スタイラス検索信号とコマンド信号の2種類が含まれる。また、このうちのスタイラス検索信号は、所定の検出パターンc1の繰り返しと、末尾に配置される所定の区切りパターンSTPとによって構成される。 As described above, the uplink signal US includes two types, a stylus search signal and a command signal. Further, the stylus search signal is composed of the repetition of the predetermined detection pattern c1 and the predetermined delimiter pattern STP arranged at the end.

検出パターンc1は、スタイラス2がセンサコントローラ31の存在を検出するために用いられるシンボルの値のパターンであり、事前に(スタイラス2がセンサコントローラ31を検出する前に)スタイラス2に既知にされている。シンボルは、送信処理においては変調に用いる情報の単位(送信信号が表現する情報の単位)であり、受信処理においては受信信号である1シンボルを復調して得られる情報の単位である。シンボルの値は、ビット列に変換される値(以下、「ビット列対応値」と称する)と、シンボルを受信したスタイラス2によってビット列に変換されない値(以下、「ビット列非対応値」と称する)とを含むことができる。具体的な例では、検出パターンc1は、2種類のビット列非対応値「P」「M」の結合からなるパターン「PM」により構成される。 The detection pattern c1 is a pattern of symbol values used by the stylus 2 to detect the presence of the sensor controller 31, and is known to the stylus 2 in advance (before the stylus 2 detects the sensor controller 31). There is. A symbol is a unit of information used for modulation in transmission processing (a unit of information expressed by a transmission signal), and is a unit of information obtained by demodulating one symbol which is a reception signal in reception processing. The symbol value is a value that is converted into a bit string (hereinafter referred to as "bit string compatible value") and a value that is not converted into a bit string by the stylus 2 that receives the symbol (hereinafter referred to as "bit string non-compatible value"). Can include. In a specific example, the detection pattern c1 is composed of a pattern "PM" composed of a combination of two types of bit string non-corresponding values "P" and "M".

区切りパターンSTPは、検出パターンc1の繰り返し期間の終了をスタイラス2に通知するためのシンボルの値のパターンであり、検出パターンc1の繰り返し中に現れないパターンによって構成される。区切りパターンSTPも、事前に(スタイラス2がセンサコントローラ31を検出する前に)スタイラス2に既知にされている。一例を挙げると、上記のように検出パターンc1を2つのビット列非対応値「P」「M」の結合「PM」により構成する場合、区切りパターンSTPは、ビット列非対応値「P」を2回連続させてなるパターン「PP」により構成することができる。区切りパターンSTPと検出パターンc1との構成を逆にして、区切りパターンを「PM」により構成して検出パターンc1を「PP」により構成してもよい。 The delimiter pattern STP is a symbol value pattern for notifying the stylus 2 of the end of the repetition period of the detection pattern c1, and is composed of a pattern that does not appear during the repetition of the detection pattern c1. The delimiter pattern STP is also known to the stylus 2 in advance (before the stylus 2 detects the sensor controller 31). As an example, when the detection pattern c1 is configured by the combination “PM” of two bit string non-corresponding values “P” and “M” as described above, the delimiter pattern STP sets the bit string non-corresponding value “P” twice. It can be configured by a continuous pattern "PP". The configuration of the delimiter pattern STP and the detection pattern c1 may be reversed, the delimiter pattern may be configured by "PM", and the detection pattern c1 may be configured by "PP".

パターン供給部80は、検出パターンc1及び区切りパターンSTPを保持しており、ロジック部61から供給される制御信号ctrl_t1の指示に従ってこれらを所定の順序で出力するよう構成される。具体的には、所定の連続送信期間の間、検出パターンc1を連続して繰り返し出力するとともに、連続送信期間の終了直後に、区切りパターンSTPを出力するよう構成される。これにより、スタイラス検索信号の送信が実現される。 The pattern supply unit 80 holds the detection pattern c1 and the delimiter pattern STP, and is configured to output these in a predetermined order according to the instruction of the control signal ctrl_t1 supplied from the logic unit 61. Specifically, the detection pattern c1 is continuously and repeatedly output during a predetermined continuous transmission period, and the delimiter pattern STP is output immediately after the end of the continuous transmission period. As a result, transmission of the stylus search signal is realized.

スイッチ81は、ロジック部61から供給される制御信号ctrl_t2に基づいてパターン供給部80及びMCU60のいずれか一方を選択し、選択した一方の出力を拡散処理部83に供給する機能を有する。スイッチ81がパターン供給部80を選択した場合、拡散処理部83には、パターン供給部80から検出パターンc1又は区切りパターンSTPが供給される。一方、スイッチ81がMCU60を選択した場合、拡散処理部83には、MCU60から制御情報c2が供給される。 The switch 81 has a function of selecting one of the pattern supply unit 80 and the MCU 60 based on the control signal ctrl_t2 supplied from the logic unit 61, and supplying the selected output to the diffusion processing unit 83. When the switch 81 selects the pattern supply unit 80, the pattern supply unit 80 supplies the detection pattern c1 or the delimiter pattern STP to the diffusion processing unit 83. On the other hand, when the switch 81 selects the MCU 60, the control information c2 is supplied from the MCU 60 to the diffusion processing unit 83.

制御情報c2は、上述したように、ローカルIDの設定指示、又は、ローカルID以外の各種データの送信指示を含む情報である。制御情報c2は、スタイラス2との間でその値が事前に共有されていない点で、検出パターンc1や区切りパターンSTPと異なっている。制御情報c2は、例えば、ビット列に対応づけられるシンボルの値(例えば0〜15)に対応付けられて送信される。 As described above, the control information c2 is information including a local ID setting instruction or an instruction to transmit various data other than the local ID. The control information c2 is different from the detection pattern c1 and the delimiter pattern STP in that the value is not shared with the stylus 2 in advance. The control information c2 is transmitted in association with, for example, a symbol value (for example, 0 to 15) associated with the bit string.

符号列保持部82は、ロジック部61から供給される制御信号ctrl_t3に基づき、自己相関特性を有する所定チップ長の拡散符号PNを生成して保持する機能を有する。符号列保持部82が保持している拡散符号PNは、拡散処理部83に供給される。 The code sequence holding unit 82 has a function of generating and holding a diffusion code PN having a predetermined chip length having an autocorrelation characteristic based on the control signal ctrl_t3 supplied from the logic unit 61. The diffusion code PN held by the code string holding unit 82 is supplied to the diffusion processing unit 83.

拡散処理部83は、スイッチ81を介して供給されるシンボルの値(検出パターンc1、区切りパターンSTP、又は制御情報c2)に基づいて符号列保持部82によって保持される拡散符号PNを変調することにより、所定チップ長の送信チップ列を得る機能を有する。拡散処理部83は、取得した送信チップ列を送信ガード部84に供給するよう構成される。 The spreading processing unit 83 modulates the spreading code PN held by the code string holding unit 82 based on the value of the symbol (detection pattern c1, delimiter pattern STP, or control information c2) supplied via the switch 81. Therefore, it has a function of obtaining a transmission chip sequence having a predetermined chip length. The diffusion processing unit 83 is configured to supply the acquired transmission chip sequence to the transmission guard unit 84.

送信ガード部84は、ロジック部61から供給される制御信号ctrl_t4に基づき、アップリンク信号USの送信期間とダウンリンク信号DSの受信期間との間に、送信動作と受信動作を切り替えるために必要となるガード期間(送信と受信の両方を行わない期間)を挿入する機能を有する。 The transmission guard unit 84 is required to switch between the transmission operation and the reception operation between the transmission period of the uplink signal US and the reception period of the downlink signal DS based on the control signal ctrl_t4 supplied from the logic unit 61. It has a function to insert a guard period (a period during which both transmission and reception are not performed).

受信部63は、ロジック部61の制御信号ctrl_rに基づいて、スタイラス2が送信したダウンリンク信号DSを受信するための回路である。具体的には、増幅回路85、検波回路86、及びアナログデジタル(AD)変換器87を含んで構成される。 The receiving unit 63 is a circuit for receiving the downlink signal DS transmitted by the stylus 2 based on the control signal ctrl_r of the logic unit 61. Specifically, it includes an amplifier circuit 85, a detection circuit 86, and an analog-to-digital (AD) converter 87.

増幅回路85は、選択部64から供給されるダウンリンク信号DSを増幅して出力する。検波回路86は、増幅回路85の出力信号のレベルに対応した電圧を生成する回路である。AD変換器87は、検波回路86から出力される電圧を所定時間間隔でサンプリングすることによって、デジタル信号を生成する回路である。AD変換器87が出力するデジタル信号は、MCU60に供給される。MCU60は、こうして供給されたデジタル信号に基づき、スタイラス2が送信したデータ(ローカルID、グローバルID、筆圧など)を取得する。 The amplifier circuit 85 amplifies and outputs the downlink signal DS supplied from the selection unit 64. The detection circuit 86 is a circuit that generates a voltage corresponding to the level of the output signal of the amplifier circuit 85. The AD converter 87 is a circuit that generates a digital signal by sampling the voltage output from the detection circuit 86 at predetermined time intervals. The digital signal output by the AD converter 87 is supplied to the MCU 60. The MCU 60 acquires the data (local ID, global ID, pen pressure, etc.) transmitted by the stylus 2 based on the digital signal thus supplied.

選択部64は、スイッチ88x,88yと、導体選択回路89x,89yとを含んで構成される。 The selection unit 64 includes switches 88x and 88y and conductor selection circuits 89x and 89y.

スイッチ88x,88yはそれぞれ、共通端子とT端子及びR端子のいずれか一方とが接続されるように構成された1回路2接点のスイッチ素子である。スイッチ88xの共通端子は導体選択回路89xに接続され、T端子は送信部62の出力端に接続され、R端子は受信部63の入力端に接続される。また、スイッチ88yの共通端子は導体選択回路89yに接続され、T端子は送信部62の出力端に接続され、R端子は受信部63の入力端に接続される。 The switches 88x and 88y are 1-circuit 2-contact switch elements configured so that the common terminal and any one of the T terminal and the R terminal are connected, respectively. The common terminal of the switch 88x is connected to the conductor selection circuit 89x, the T terminal is connected to the output terminal of the transmitting unit 62, and the R terminal is connected to the input terminal of the receiving unit 63. Further, the common terminal of the switch 88y is connected to the conductor selection circuit 89y, the T terminal is connected to the output terminal of the transmitting unit 62, and the R terminal is connected to the input terminal of the receiving unit 63.

導体選択回路89xは、複数の線状電極30Xを選択的にスイッチ88xの共通端子に接続するためのスイッチ素子である。導体選択回路89xは、複数の線状電極30Xの一部又は全部を同時にスイッチ88xの共通端子に接続することも可能に構成される。 The conductor selection circuit 89x is a switch element for selectively connecting a plurality of linear electrodes 30X to the common terminal of the switch 88x. The conductor selection circuit 89x is configured so that a part or all of the plurality of linear electrodes 30X can be connected to the common terminal of the switch 88x at the same time.

導体選択回路89yは、複数の線状電極30Yを選択的にスイッチ88yの共通端子に接続するためのスイッチ素子である。導体選択回路89yも、複数の線状電極30Yの一部又は全部を同時にスイッチ88yの共通端子に接続することも可能に構成される。 The conductor selection circuit 89y is a switch element for selectively connecting a plurality of linear electrodes 30Y to the common terminal of the switch 88y. The conductor selection circuit 89y is also configured so that a part or all of the plurality of linear electrodes 30Y can be connected to the common terminal of the switch 88y at the same time.

選択部64には、ロジック部61から4つの制御信号sTRx,sTRy,selX,selYが供給される。具体的には、制御信号sTRxはスイッチ88xに、制御信号sTRyはスイッチ88yに、制御信号selXは導体選択回路89xに、制御信号selYは導体選択回路89yにそれぞれ供給される。ロジック部61は、これら制御信号sTRx,sTRy,selX,selYを用いて選択部64を制御することにより、スタイラス検索信号及びコマンド信号を含むアップリンク信号USの送信と、バースト信号及びデータ信号を含むダウンリンク信号DSの受信とを実現する。 Four control signals sTRx, sTRy, selX, and selY are supplied to the selection unit 64 from the logic unit 61. Specifically, the control signal sTRx is supplied to the switch 88x, the control signal sTRy is supplied to the switch 88y, the control signal selX is supplied to the conductor selection circuit 89x, and the control signal selY is supplied to the conductor selection circuit 89y. The logic unit 61 controls the selection unit 64 by using these control signals sTRx, sTRy, selX, and selY to transmit an uplink signal US including a stylus search signal and a command signal, and includes a burst signal and a data signal. Realizes reception of downlink signal DS.

より具体的に説明すると、ロジック部61は、スタイラス検索信号を送信する場合には、複数の線状電極30Yのすべて(又は複数の線状電極30Xのすべて)が送信部62の出力端に接続されるよう、選択部64を制御する。また、コマンド信号を送信する場合には、各複数の線状電極30X,30Yのうち送信対象のスタイラス2について直前に導出された位置の近傍にある所定数本が送信部62の出力端に接続されるよう、選択部64を制御する。 More specifically, when transmitting the stylus search signal, the logic unit 61 connects all of the plurality of linear electrodes 30Y (or all of the plurality of linear electrodes 30X) to the output end of the transmission unit 62. The selection unit 64 is controlled so as to be performed. When transmitting a command signal, a predetermined number of the plurality of linear electrodes 30X and 30Y near the position derived immediately before the stylus 2 to be transmitted are connected to the output end of the transmission unit 62. The selection unit 64 is controlled so as to be performed.

バースト信号を受信する場合のロジック部61は、バースト信号の送信が継続している間に各複数の線状電極30X,30Yのすべてが順に受信部63の入力端に接続されるよう、選択部64を制御する。こうすることで、MCU60は各複数の線状電極30X,30Yのそれぞれにおけるバースト信号の受信強度を取得することができるので、上述したようにスタイラス2の位置を導出することが可能になる。一方、データ信号を受信する場合のロジック部61は、各複数の線状電極30X,30Yのうち、そのデータ信号を送信するスタイラス2について直前のバースト信号により導出した位置に最も近い1本のみが受信部63の入力端に接続されるよう、選択部64を制御する。こうすることで、データ信号の送信時間を、スタイラス2からセンサコントローラ31にデータを送るためにフルに活用することが可能になる。 The logic unit 61 when receiving the burst signal is a selection unit so that all of the plurality of linear electrodes 30X and 30Y are sequentially connected to the input ends of the receiving unit 63 while the transmission of the burst signal is continued. 64 is controlled. By doing so, the MCU 60 can acquire the reception intensity of the burst signal at each of the plurality of linear electrodes 30X and 30Y, so that the position of the stylus 2 can be derived as described above. On the other hand, in the logic unit 61 when receiving the data signal, of the plurality of linear electrodes 30X and 30Y, only one of the stylus 2 for transmitting the data signal is closest to the position derived from the burst signal immediately before. The selection unit 64 is controlled so as to be connected to the input terminal of the reception unit 63. By doing so, the transmission time of the data signal can be fully utilized for transmitting data from the stylus 2 to the sensor controller 31.

以上、位置検出システム1を構成するスタイラス2及び電子機器3の構成及び動作について、詳細に説明した。次に、スタイラス2及びセンサコントローラ31が行う処理のフロー図を参照しながら、スタイラス2及びセンサコントローラ31の本発明に関する動作について、より詳しく説明する。 The configuration and operation of the stylus 2 and the electronic device 3 constituting the position detection system 1 have been described in detail above. Next, the operation of the stylus 2 and the sensor controller 31 according to the present invention will be described in more detail with reference to the flow chart of the processing performed by the stylus 2 and the sensor controller 31.

図9〜図15は、センサコントローラ31の処理フローを示すフロー図である。また、図16〜図20は、スタイラス2の処理フローを示すフロー図である。さらに、図21〜図24及び図26〜図29は、スタイラス2a〜2cのうちの1つ又は2つと、センサコントローラ31との間で送受信される信号を示すタイムチャートである。また、図25は、センサコントローラ31及びスタイラス2aのそれぞれによるローカルIDの登録の解除の説明図である。以下、これらの図を参照しながら説明する。 9 to 15 are flow charts showing the processing flow of the sensor controller 31. 16 to 20 are flow charts showing the processing flow of the stylus 2. Further, FIGS. 21 to 24 and 26 to 29 are time charts showing signals transmitted and received between one or two of the stylus 2a to 2c and the sensor controller 31. Further, FIG. 25 is an explanatory diagram of deregistration of the local ID by each of the sensor controller 31 and the stylus 2a. Hereinafter, description will be made with reference to these figures.

初めに図9に示すように、センサコントローラ31は、前回のスタイラス検索信号送信からの経過時間が所定時間以上であるか所定時間未満であるかを判定する(ステップS1)。センサコントローラ31は、未検出のスタイラス2を検出するために所定時間ごとにスタイラス検索信号を送信する必要があり、ステップS1では、このスタイラス検索信号の送信タイミングが到来したか否かを判定している。 First, as shown in FIG. 9, the sensor controller 31 determines whether the elapsed time from the previous stylus search signal transmission is greater than or equal to the predetermined time or less than the predetermined time (step S1). The sensor controller 31 needs to transmit a stylus search signal at predetermined time intervals in order to detect the undetected stylus 2, and in step S1, it is determined whether or not the transmission timing of the stylus search signal has arrived. There is.

ステップS1で所定時間以上であると判定した場合、センサコントローラ31はスタイラス検索信号を送信する(ステップS2)。図21には、このようにしてセンサコントローラ31から所定時間ごとに送信されるスタイラス検索信号を図示している。センサコントローラ31は、スタイラス検索信号を送信した後、その処理をステップS1に戻す。 If it is determined in step S1 that the time is equal to or longer than the predetermined time, the sensor controller 31 transmits a stylus search signal (step S2). FIG. 21 illustrates a stylus search signal transmitted from the sensor controller 31 at predetermined time intervals in this way. After transmitting the stylus search signal, the sensor controller 31 returns the process to step S1.

ステップS1で所定時間未満であると判定した場合、センサコントローラ31は、現在がスタイラス検索信号の送信直後であるか否かを判定する(ステップS3)。その結果、送信直後であると判定した場合には設定指示送信処理を実行し(ステップS4)、送信直後でないと判定した場合にはコマンド信号送信処理を実行する(ステップS5)。なお、スタイラス検索信号の中に設定指示のコマンドの情報を含めることができる場合は、ステップS4とステップS5を1つの処理としてもよい。 If it is determined in step S1 that the time is less than the predetermined time, the sensor controller 31 determines whether or not the present is immediately after the transmission of the stylus search signal (step S3). As a result, if it is determined that it is immediately after transmission, the setting instruction transmission process is executed (step S4), and if it is determined that it is not immediately after transmission, the command signal transmission process is executed (step S5). If the stylus search signal can include the information of the command for setting instruction, step S4 and step S5 may be combined into one process.

図10には、設定指示送信処理の詳細を示している。同図に示すように、設定指示送信処理を開始したセンサコントローラ31は、まず初めに、ローカルIDの登録状況に基づいて設定対象のローカルID#nを決定する(ステップS10)。ローカルIDの登録状況の確認は、図8に示したID管理テーブル70を参照することによって行う。続いてセンサコントローラ31は、決定したローカルID#nの設定指示を示すコマンド信号を送信する(ステップS11)。図21に示すように、このコマンド信号はスタイラス検索信号の送信から連続して行われることになる。 FIG. 10 shows the details of the setting instruction transmission process. As shown in the figure, the sensor controller 31 that has started the setting instruction transmission process first determines the local ID # n to be set based on the registration status of the local ID (step S10). The registration status of the local ID is confirmed by referring to the ID management table 70 shown in FIG. Subsequently, the sensor controller 31 transmits a command signal indicating the determined setting instruction of the local ID # n (step S11). As shown in FIG. 21, this command signal is continuously performed from the transmission of the stylus search signal.

次にセンサコントローラ31は、ダウンリンク信号DSの受信動作を実施し(ステップS12)、ローカルID#nを含むダウンリンク信号DSを受信したか否かを判定する(ステップS13)。この場合においてセンサコントローラ31は、ダウンリンク信号DS内のデータ信号を復号することによって、そのダウンリンク信号DSがローカルID#nを含むか否かの確認を行う。この点は、後述する他のステップでの受信判定においても同様である。 Next, the sensor controller 31 performs a downlink signal DS reception operation (step S12), and determines whether or not the downlink signal DS including the local ID # n has been received (step S13). In this case, the sensor controller 31 verifies whether or not the downlink signal DS includes the local ID # n by decoding the data signal in the downlink signal DS. This point is the same in the reception determination in other steps described later.

ステップS13で受信していないと判定した場合、センサコントローラ31は、それ以上特段の処理をせずに設定指示送信処理を終了し、図9のステップS1に戻る。 If it is determined in step S13 that the sensor controller 31 has not received the signal, the sensor controller 31 ends the setting instruction transmission process without any further processing, and returns to step S1 in FIG.

一方、ステップS13においてローカルID#nを含むダウンリンク信号DSをパネル面内の1カ所のみで受信したと判定した場合、センサコントローラ31は、ローカルID#nをID管理テーブル70に登録する(ステップS14)。 On the other hand, when it is determined in step S13 that the downlink signal DS including the local ID # n is received at only one place on the panel surface, the sensor controller 31 registers the local ID # n in the ID management table 70 (step). S14).

図21には、センサコントローラ31がスタイラス2aを新たに登録する場面を示している。同図の初期状態は、ID管理テーブル70にローカルIDが1つも登録されていない状態である。ペンダウンしたことによってスタイラス検索信号を受信したスタイラス2aは、続いてローカルID#1の設定指示を示すコマンド信号を受信する。そして、このコマンド信号に応答して、ローカルID#1を含むダウンリンク信号DSを送信する。センサコントローラ31は、このダウンリンク信号DSを受信したことに応じて、ローカルID#1をID管理テーブル70に登録する。 FIG. 21 shows a scene in which the sensor controller 31 newly registers the stylus 2a. The initial state in the figure is a state in which no local ID is registered in the ID management table 70. The stylus 2a, which has received the stylus search signal due to pendown, subsequently receives a command signal indicating a setting instruction for the local ID # 1. Then, in response to this command signal, the downlink signal DS including the local ID # 1 is transmitted. The sensor controller 31 registers the local ID # 1 in the ID management table 70 in response to receiving the downlink signal DS.

図22には、センサコントローラ31がスタイラス2aを登録した後、さらにスタイラス2bを登録する場面を示している。同図の初期状態は、図21においてスタイラス2aが登録された状態(スタイラス2aにローカルID#1が割り当てられている状態)である。ローカルID#1がID管理テーブル70に登録済みであることから、センサコントローラ31がスタイラス検索信号に続けて送信するコマンド信号は、ローカルID#2の設定指示を示すコマンド信号となる。ペンダウンしたことによってスタイラス検索信号を受信したスタイラス2bは、続いてローカルID#2の設定指示を示すコマンド信号を受信する。そして、このコマンド信号に応答して、ローカルID#2を含むダウンリンク信号DSを送信する。センサコントローラ31は、このダウンリンク信号DSを受信したことに応じて、ローカルID#2をID管理テーブル70に登録する。 FIG. 22 shows a scene in which the sensor controller 31 registers the stylus 2a and then further registers the stylus 2b. The initial state in the figure is a state in which the stylus 2a is registered in FIG. 21 (a state in which the local ID # 1 is assigned to the stylus 2a). Since the local ID # 1 is already registered in the ID management table 70, the command signal transmitted by the sensor controller 31 following the stylus search signal is a command signal indicating the setting instruction of the local ID # 2. The stylus 2b, which has received the stylus search signal due to pendown, subsequently receives a command signal indicating a setting instruction for the local ID # 2. Then, in response to this command signal, the downlink signal DS including the local ID # 2 is transmitted. The sensor controller 31 registers the local ID # 2 in the ID management table 70 in response to receiving the downlink signal DS.

図10に戻る。ステップS14でローカルID#nをID管理テーブル70に登録したセンサコントローラ31は、受信したダウンリンク信号DS内のバースト信号に基づいてスタイラス2の位置を導出する(ステップS15)。また、ダウンリンク信号DS内のデータ信号がローカルID#n以外のデータを含む場合には、そのデータの抽出を行う(ステップS16)。 Return to FIG. The sensor controller 31 that has registered the local ID # n in the ID management table 70 in step S14 derives the position of the stylus 2 based on the burst signal in the received downlink signal DS (step S15). If the data signal in the downlink signal DS includes data other than the local ID # n, the data is extracted (step S16).

さらにセンサコントローラ31は、新たに登録したローカルID#nに対応するスタイラス2にダウンリンク信号DSの送信機会を与えるため、ダウンリンク信号DSの送信スケジュールの再調整を行い、その結果によりID管理テーブル70を更新する(ステップS17)。 Further, the sensor controller 31 readjusts the transmission schedule of the downlink signal DS in order to give the stylus 2 corresponding to the newly registered local ID # n an opportunity to transmit the downlink signal DS, and the ID management table is based on the result. Update 70 (step S17).

再度図21及び図22を参照すると、ローカルID#1のみが登録されている図21の状態では、スタイラス検索信号直後のコマンド信号を除くすべてのコマンド信号は、ローカルID#1(スタイラス2a)に宛てたものとされる。すなわち、スタイラス2aのスキャンレートは1とされている。 Referring to FIGS. 21 and 22 again, in the state of FIG. 21 in which only the local ID # 1 is registered, all the command signals except the command signal immediately after the stylus search signal are set to the local ID # 1 (stylus 2a). It is supposed to be addressed. That is, the scan rate of the stylus 2a is 1.

図22に示すようにローカルID#2が新たに登録されると、センサコントローラ31は、ローカルID#2(スタイラス2b)にもダウンリンク信号DSの送信機会を与える必要がある。そこで、図22の例では、ローカルID#1とローカルID#2に同じ値のスキャンレート(=1/2)を与え、スタイラス2a,2bが交互にダウンリンク信号DSを送信できるようにしている。このようにセンサコントローラ31は、デフォルト(グローバルID又はスタイラス2の移動速度に基づいてスキャンレートを決定する前の状態)では、検出済みの1以上のスタイラスそれぞれについてのスキャンレートが互いに等しくなるよう、検出済みの1以上のスタイラスそれぞれについてのスキャンレートを決定する。 When the local ID # 2 is newly registered as shown in FIG. 22, the sensor controller 31 needs to provide the local ID # 2 (stylus 2b) with an opportunity to transmit the downlink signal DS. Therefore, in the example of FIG. 22, the scan rate (= 1/2) of the same value is given to the local ID # 1 and the local ID # 2, so that the stylus 2a and 2b can alternately transmit the downlink signal DS. .. In this way, the sensor controller 31 defaults (the state before determining the scan rate based on the global ID or the moving speed of the stylus 2) so that the scan rates for each of the detected one or more styluses are equal to each other. Determine the scan rate for each of the detected styluses.

図10のステップS17における送信スケジュールの再調整は、この図22に示した例のように、新たに登録されたスタイラス2にダウンリンク信号DSの送信機会を与えるために行われる。ステップS17の終了後、センサコントローラ31は設定指示送信処理を終了し、図9のステップS1に戻る。 The readjustment of the transmission schedule in step S17 of FIG. 10 is performed to give the newly registered stylus 2 an opportunity to transmit the downlink signal DS, as in the example shown in FIG. 22. After the end of step S17, the sensor controller 31 ends the setting instruction transmission process, and returns to step S1 of FIG.

ステップS13においてローカルID#nを含むダウンリンク信号DSをパネル面内の複数カ所で受信したと判定した場合には、センサコントローラ31は、ID管理テーブル70において、ローカルID#nのオペレーション状態の値を「第1のリセットモード」に設定する(ステップS18)とともに、ローカルID#nのリセットコマンド未発行フラグ1に「TRUE」を設定する(ステップS19)。第1のリセットモードは、図26に例示するように、ローカルID#nの設定指示を示すコマンド信号を送信した直後に、そのローカルID#nの割り当てを一旦解除するため動作モードである。リセットコマンド未発行フラグ1は、第1のリセットモードにおいて送信されるべきリセット命令が未だ送信されていないときに「TRUE」となり、それ以外のときに「FALSE」となる2値のフラグ情報である。これらを利用するリセット処理の詳細な内容については、後ほど図13及び図14を参照して説明する。ステップS19の終了後、センサコントローラ31は設定指示送信処理を終了し、図9のステップS1に戻る。 When it is determined in step S13 that the downlink signal DS including the local ID # n has been received at a plurality of locations on the panel surface, the sensor controller 31 indicates the value of the operation state of the local ID # n in the ID management table 70. Is set to the "first reset mode" (step S18), and "TRUE" is set to the reset command unissued flag 1 of the local ID # n (step S19). As illustrated in FIG. 26, the first reset mode is an operation mode for temporarily canceling the allocation of the local ID # n immediately after transmitting the command signal indicating the setting instruction of the local ID # n. The reset command unissued flag 1 is binary flag information that becomes "TRUE" when the reset command to be transmitted in the first reset mode has not yet been transmitted, and becomes "FALSE" at other times. .. The detailed contents of the reset process using these will be described later with reference to FIGS. 13 and 14. After the end of step S19, the sensor controller 31 ends the setting instruction transmission process, and returns to step S1 of FIG.

次に、図11には、コマンド信号送信処理の詳細を示している。同図に示すように、コマンド信号送信処理を開始したセンサコントローラ31はまず、ID管理テーブル70に登録されている各ローカルIDの送信スケジュールに基づき、コマンド信号の送信対象となるローカルID#kを決定(選択)する(ステップS20)。より具体的には、各ローカルIDについて決定済みのスキャンレートに基づいて、コマンド信号の送信対象となるローカルID#kを決定(選択)する。そして、ID管理テーブル70のオペレーション状態の値を再び参照することにより、ローカルID#kのオペレーション状態の値が「通常モード」「第1のリセットモード」「第2のリセットモード」のいずれであるかを判定する(ステップS21)。 Next, FIG. 11 shows the details of the command signal transmission process. As shown in the figure, the sensor controller 31 that has started the command signal transmission process first determines the local ID # k to be transmitted of the command signal based on the transmission schedule of each local ID registered in the ID management table 70. Determine (select) (step S20). More specifically, the local ID # k to be transmitted of the command signal is determined (selected) based on the scan rate determined for each local ID. Then, by referring again to the value of the operation state of the ID management table 70, the value of the operation state of the local ID # k is any of "normal mode", "first reset mode", and "second reset mode". (Step S21).

図12には、ステップS21でセンサコントローラ31がローカルID#kのオペレーション状態を「通常モード」と判定した場合の処理を示している。同図に示すように、この場合のセンサコントローラ31はまず、ローカルID#kにより特定されるスタイラス2に対して、データ送信指示を示すコマンド信号を送信する(ステップS30)。ここで送信を指示されるデータは、例えば、図2に示したスイッチ22のオンオフ状態を示すデータ、図2に示した筆圧検出センサ23によって検出された筆圧を示すデータ、図3に示した6軸IMU50の計測結果を示すデータなどの、データ送信指示を示すコマンド信号を受信した時点での操作状態を示すデータ、並びに、図3に示したグローバルID記憶部51に記憶されるグローバルIDなどである。 FIG. 12 shows a process when the sensor controller 31 determines that the operation state of the local ID # k is “normal mode” in step S21. As shown in the figure, the sensor controller 31 in this case first transmits a command signal indicating a data transmission instruction to the stylus 2 specified by the local ID # k (step S30). The data instructed to be transmitted here are, for example, data indicating the on / off state of the switch 22 shown in FIG. 2, data indicating the pen pressure detected by the pen pressure detection sensor 23 shown in FIG. 2, and FIG. Data indicating the operation state at the time when a command signal indicating a data transmission instruction is received, such as data indicating the measurement result of the 6-axis IMU50, and a global ID stored in the global ID storage unit 51 shown in FIG. And so on.

ステップS30でコマンド信号を送信したセンサコントローラ31は、次にダウンリンク信号DSの受信動作を実施し(ステップS31)、ローカルID#kを含むダウンリンク信号DSを受信したか否かを判定する(ステップS32)。 The sensor controller 31 that has transmitted the command signal in step S30 then performs a downlink signal DS reception operation (step S31), and determines whether or not the downlink signal DS including the local ID # k has been received (step S31). Step S32).

ステップS32においてローカルID#kを含むダウンリンク信号DSをパネル面内の1カ所のみで受信したと判定した場合、センサコントローラ31はまず、ID管理テーブル70においてローカルID#kの削除カウンタに0を設定する(ステップS33)。削除カウンタは、ダウンリンク信号DSの受信を試みたにも関わらず受信されなかった回数を示すカウンタであり、ローカルIDごとに設けられる。削除カウンタは、対応するローカルID#kを含むダウンリンク信号DSが受信された場合に、0にリセットされる。ローカルID#kの削除カウンタが0である場合、そのローカルID#kの登録解除は実行されない。 When it is determined in step S32 that the downlink signal DS including the local ID # k is received at only one place on the panel surface, the sensor controller 31 first sets 0 to the deletion counter of the local ID # k in the ID management table 70. Set (step S33). The deletion counter is a counter that indicates the number of times that the downlink signal DS is not received even though it is attempted to be received, and is provided for each local ID. The delete counter is reset to 0 when a downlink signal DS containing the corresponding local ID # k is received. If the deletion counter of the local ID # k is 0, the deregistration of the local ID # k is not executed.

次にセンサコントローラ31は、受信したダウンリンク信号DS内のバースト信号に基づいてスタイラス2の位置を導出する(ステップS34)とともに、ダウンリンク信号DS内のデータ信号に含まれるデータの抽出を行う(ステップS35)。センサコントローラ31はさらに、送信スケジュールの再調整を行う(ステップS36)。 Next, the sensor controller 31 derives the position of the stylus 2 based on the burst signal in the received downlink signal DS (step S34), and extracts the data included in the data signal in the downlink signal DS (step S34). Step S35). The sensor controller 31 further adjusts the transmission schedule (step S36).

図23には、ステップS36において実行される送信スケジュールの再調整の一例を示している。この例では、スタイラス2a,2bが同時にパネル面上に存在し、スタイラス2a,2bにそれぞれローカルID#1,#2が付与されている。また、スタイラス2b(ローカルID#2)によるダウンリンク信号DSの送信継続時間は、デフォルト値の2倍とされている。センサコントローラ31は、スタイラス2bからグローバルIDを受信し、受信したグローバルIDに基づいて、スタイラス2bのデバイスタイプを判定する。そして、その判定結果から、スタイラス2bによるダウンリンク信号DSの送信継続時間がデフォルト値の2倍である事実を把握する。センサコントローラ31は、こうして把握した事実に基づき、スタイラス2bによるダウンリンク信号DSの送信継続時間がデフォルト値の2倍となるよう各ローカルIDのダウンリンク信号DSの送信スケジュールを決定し、ID管理テーブル70に設定する。そしてそれ以降、スタイラス2bからダウンリンク信号DSの受信を行う場合の受信動作の継続期間がデフォルト値の2倍となるよう、コマンド信号の送信間隔を制御する。 FIG. 23 shows an example of readjustment of the transmission schedule executed in step S36. In this example, the styli 2a and 2b are simultaneously present on the panel surface, and the styli 2a and 2b are given local IDs # 1 and # 2, respectively. Further, the transmission duration of the downlink signal DS by the stylus 2b (local ID # 2) is set to be twice the default value. The sensor controller 31 receives the global ID from the stylus 2b and determines the device type of the stylus 2b based on the received global ID. Then, from the determination result, the fact that the transmission duration of the downlink signal DS by the stylus 2b is twice the default value is grasped. Based on the facts grasped in this way, the sensor controller 31 determines the transmission schedule of the downlink signal DS of each local ID so that the transmission duration of the downlink signal DS by the stylus 2b is twice the default value, and determines the ID management table. Set to 70. After that, the transmission interval of the command signal is controlled so that the duration of the reception operation when receiving the downlink signal DS from the stylus 2b is twice the default value.

ここで、図23では、グローバルIDを受信する際のセンサコントローラ31の受信動作継続時間が通常より長くなっているが、これは、上述したようにグローバルIDが64ビットという長大なサイズのデータであるためである。このような長大なデータであるグローバルIDを受信するため、センサコントローラ31は、グローバルIDの送信指示を示すコマンド信号を送信した後に行う受信動作の継続期間を、グローバルIDのサイズに合わせて長くしている。この受信動作継続期間の調整は、送信スケジュールの再調整とは別に行われる動作である。 Here, in FIG. 23, the reception operation duration of the sensor controller 31 when receiving the global ID is longer than usual, but this is data having a large size of 64 bits for the global ID as described above. Because there is. In order to receive the global ID, which is such a long data, the sensor controller 31 lengthens the duration of the reception operation performed after transmitting the command signal indicating the transmission instruction of the global ID according to the size of the global ID. ing. This adjustment of the reception operation duration is an operation performed separately from the readjustment of the transmission schedule.

図24には、ステップS36において実行される送信スケジュールの再調整の他の一例を示している。この例では、スタイラス2a,2cが同時にパネル面上に存在し、スタイラス2a,2cにそれぞれローカルID#1,#2が付与されている。センサコントローラ31は、スタイラス2a,2cのそれぞれからグローバルIDを受信し(図示せず)、それによって、スタイラス2aがペン型デバイスであり、スタイラス2cが定規型デバイスである事実を把握する。センサコントローラ31は、こうして把握した事実に基づき、スタイラス2aのスキャンレートがスタイラス2cのスキャンレートの3倍となるよう各ローカルIDのダウンリンク信号DSの送信スケジュールを決定し、ID管理テーブル70に設定する。そしてそれ以降、スタイラス2aのスキャンレートがスタイラス2cのスキャンレートの3倍となるよう、各ローカルIDに宛てたコマンド信号の送信頻度を制御する。 FIG. 24 shows another example of readjustment of the transmission schedule executed in step S36. In this example, the styli 2a and 2c are simultaneously present on the panel surface, and the styli 2a and 2c are given local IDs # 1 and # 2, respectively. The sensor controller 31 receives the global ID from each of the stylus 2a and 2c (not shown), thereby grasping the fact that the stylus 2a is a pen-type device and the stylus 2c is a ruler-type device. Based on the facts grasped in this way, the sensor controller 31 determines the transmission schedule of the downlink signal DS of each local ID so that the scan rate of the stylus 2a is three times the scan rate of the stylus 2c, and sets it in the ID management table 70. To do. After that, the transmission frequency of the command signal addressed to each local ID is controlled so that the scan rate of the stylus 2a is three times the scan rate of the stylus 2c.

図12に戻る。ステップS36で送信スケジュールの再調整を行ったセンサコントローラ31は、コマンド信号送信処理を終了し、図9のステップS1に戻る。 Return to FIG. The sensor controller 31 that has readjusted the transmission schedule in step S36 ends the command signal transmission process, and returns to step S1 of FIG.

一方、図12のステップS32においてローカルID#kを含むダウンリンク信号DSをパネル面内の複数カ所で受信したと判定した場合、センサコントローラ31は、ID管理テーブル70において、ローカルID#kの削除カウンタに0を設定する(ステップS37)。また、同じくID管理テーブル70において、ローカルID#kのオペレーション状態の値を「第2のリセットモード」に設定する(ステップS38)とともに、ローカルID#kのリセットコマンド未発行フラグ2に「TRUE」を設定する(ステップS39)。第2のリセットモードは、ローカルID#kの割り当てを解除するための動作モードである点で、図10に示したステップS18で設定される第1のリセットモードと同じであるが、第2のリセットモードは、図27に例示するようにローカルID#nに対して(設定指示ではなく)データ送信指示を示すコマンド信号を送信しているときに重複検出がされた場合に、ローカルID#nの割り当てを優先付けを持って解除するための動作モードである点で、第1のリセットモードと相違する。リセットコマンド未発行フラグ2は、第2のリセットモードにおいて送信されるべきリセット命令が未だ送信されていないときに「TRUE」となり、それ以外のときに「FALSE」となる2値のフラグ情報である。これらを利用するリセット処理の詳細な内容については、後ほど図15を参照して説明する。ステップS39の終了後、センサコントローラ31はコマンド信号送信処理を終了し、図9のステップS1に戻る。 On the other hand, when it is determined in step S32 of FIG. 12 that the downlink signal DS including the local ID # k has been received at a plurality of locations on the panel surface, the sensor controller 31 deletes the local ID # k in the ID management table 70. The counter is set to 0 (step S37). Similarly, in the ID management table 70, the value of the operation state of the local ID # k is set to the "second reset mode" (step S38), and the reset command unissued flag 2 of the local ID #k is set to "TRUE". Is set (step S39). The second reset mode is the same as the first reset mode set in step S18 shown in FIG. 10 in that it is an operation mode for canceling the allocation of the local ID # k, but the second reset mode is the second. In the reset mode, as illustrated in FIG. 27, when duplicate detection is performed while transmitting a command signal indicating a data transmission instruction (not a setting instruction) to the local ID # n, the local ID # n It differs from the first reset mode in that it is an operation mode for releasing the allocation of the above with priority. The reset command unissued flag 2 is binary flag information that becomes "TRUE" when the reset command to be transmitted in the second reset mode has not yet been transmitted, and becomes "FALSE" at other times. .. The detailed contents of the reset process using these will be described later with reference to FIG. After the end of step S39, the sensor controller 31 ends the command signal transmission process, and returns to step S1 of FIG.

図12のステップS32においてローカルID#kを含むダウンリンク信号DSを受信していないと判定した場合のセンサコントローラ31は、ID管理テーブル70に格納されるローカルID#kの削除カウンタが所定の閾値Dより大きいか否かを判定し(ステップS40)、大きくないと判定した場合には、ローカルID#kの削除カウンタを1増加させる(ステップS43)。一方、大きいと判定した場合には、ID管理テーブル70からローカルID#kの行を削除することにより、ローカルID#kの登録を解除する(ステップS41)。そして、ローカルID#kに対応するスタイラス2に与えていたダウンリンク信号DSの送信機会を他のスタイラス2に割り振るため、ダウンリンク信号DSの送信スケジュールの再調整を行い、その結果によりID管理テーブル70を更新する(ステップS42)。 In step S32 of FIG. 12, when it is determined that the downlink signal DS including the local ID # k has not been received, the sensor controller 31 has a predetermined threshold value for the deletion counter of the local ID # k stored in the ID management table 70. It is determined whether or not it is larger than D (step S40), and if it is determined that it is not larger, the deletion counter of the local ID # k is incremented by 1 (step S43). On the other hand, if it is determined to be large, the registration of the local ID # k is canceled by deleting the row of the local ID # k from the ID management table 70 (step S41). Then, in order to allocate the transmission opportunity of the downlink signal DS given to the stylus 2 corresponding to the local ID # k to another stylus 2, the transmission schedule of the downlink signal DS is readjusted, and the ID management table is read based on the result. Update 70 (step S42).

ステップS40の判定は、要するに、ローカルID#kに対応するスタイラス2からのコマンド信号に対する応答のない状態がD回より多い回数にわたって続いたか否かを判定する処理である。応答のない状態が継続する場合、スタイラス2は、図1に示したセンシング範囲SRを離脱した可能性が高いと考えられる。そこで、センサコントローラ31は、そのような場合にローカルID#kの登録を解除するようにしている。ステップS42又はステップS43の処理を終了したセンサコントローラ31は、コマンド信号送信処理を終了し、図9のステップS1に戻る。 The determination in step S40 is, in short, a process of determining whether or not the state in which there is no response to the command signal from the stylus 2 corresponding to the local ID # k continues for more than D times. If the unresponsive state continues, it is highly probable that the stylus 2 has left the sensing range SR shown in FIG. Therefore, the sensor controller 31 cancels the registration of the local ID # k in such a case. The sensor controller 31 that has completed the process of step S42 or step S43 ends the command signal transmission process, and returns to step S1 of FIG.

図25は、センサコントローラ31及びスタイラス2aのそれぞれによるローカルIDの登録の解除の説明図である。同図には、ローカルID#1を割り当てられたスタイラス2aが最初パネル面に接触しており(L1)、そこからセンシング範囲SRの外に移動し(L2)、さらにアップリンク検出高さAHを超える高さまで移動する(L3,L4)場合の例を示している。センサコントローラ31は、上記したステップS40〜S43の処理により、スタイラス2aがセンシング範囲SRの外に移動して所定時間(上記閾値Dに対応する時間)が経過すると、スタイラス2aに割り当てていたローカルID#1の登録を解除する。これに対し、スタイラス2は、センシング範囲SRの外であってもアップリンク検出高さAHを超えていなければアップリンク信号USを受信できるので、自身の高さがアップリンク検出高さAHを超えていない場合、ローカルID#kの登録を解除しない。スタイラス2aによるローカルID#1の登録の解除は、後述する図17で説明するように、アップリンク信号USを受信できなくなって所定時間が経過した後に実行される。 FIG. 25 is an explanatory diagram of deregistration of the local ID by each of the sensor controller 31 and the stylus 2a. In the figure, the stylus 2a to which the local ID # 1 is assigned first contacts the panel surface (L1), moves out of the sensing range SR (L2), and further sets the uplink detection height AH. An example of moving to a height exceeding (L3, L4) is shown. When the stylus 2a moves out of the sensing range SR and a predetermined time (time corresponding to the threshold value D) elapses in the process of steps S40 to S43 described above, the sensor controller 31 assigns the local ID to the stylus 2a. Cancel the registration of # 1. On the other hand, the stylus 2 can receive the uplink signal US as long as it does not exceed the uplink detection height AH even outside the sensing range SR, so that its own height exceeds the uplink detection height AH. If not, do not unregister the local ID # k. The cancellation of the registration of the local ID # 1 by the stylus 2a is executed after a predetermined time has elapsed since the uplink signal US cannot be received, as will be described with reference to FIG.

次に、図13及び図14には、図11のステップS21でローカルID#kのオペレーション状態の値が「第1のリセットモード」と判定された場合の処理を示している。図13に示すように、この場合のセンサコントローラ31は、まず初めに、ID管理テーブル70を参照することによりローカルID#kのリセットコマンド未発行フラグ1の値を判定する(ステップS50)。その結果、ローカルID#kのリセットコマンド未発行フラグ1が「TRUE」であった場合、ローカルID#kのリセット命令を示すコマンド信号を送信する(ステップS51)。このコマンド信号を受けたスタイラス2は、自身のメモリ45(図2参照)内に記憶しているローカルID#kを削除する。センサコントローラ31はその後、ローカルID#kのリセットコマンド未発行フラグ1に「FALSE」を設定し(ステップS52)、続いてダウンリンク信号DSの受信動作を実施する(ステップS53)。このステップS53では、センサコントローラ31は、たとえローカルID#kを含むダウンリンク信号DSが受信されたとしても、その信号に基づく動作を行わない。ただし、ダウンリンク信号DS内のローカルIDを判定する動作を行うこととしてもよく、そのローカルIDがローカルID#k以外のローカルIDであった場合には、そのダウンリンク信号DSに基づく動作(図12のステップS34〜ステップS36に示した動作)をさらに行うこととしてもよい。 Next, FIGS. 13 and 14 show processing when the value of the operation state of the local ID # k is determined to be the “first reset mode” in step S21 of FIG. As shown in FIG. 13, the sensor controller 31 in this case first determines the value of the reset command unissued flag 1 of the local ID # k by referring to the ID management table 70 (step S50). As a result, when the reset command unissued flag 1 of the local ID # k is "TRUE", a command signal indicating the reset command of the local ID # k is transmitted (step S51). Upon receiving this command signal, the stylus 2 deletes the local ID # k stored in its own memory 45 (see FIG. 2). After that, the sensor controller 31 sets “FALSE” in the reset command unissued flag 1 of the local ID # k (step S52), and subsequently executes the downlink signal DS reception operation (step S53). In this step S53, even if the downlink signal DS including the local ID # k is received, the sensor controller 31 does not operate based on the signal. However, the operation of determining the local ID in the downlink signal DS may be performed, and when the local ID is a local ID other than the local ID # k, the operation based on the downlink signal DS (Fig.) The operation (operation shown in step S34 to step S36) of step 12 may be further performed.

ステップS53の後、センサコントローラ31は、送信スケジュールの再調整を行うこととしてもよい(ステップS54)。この再調整は、リセット命令を出したローカルID#kに割り当てたスキャンレート及びダウンリンク信号DSの送信継続時間を、デフォルトの値に戻す処理であるとしてよい。 After step S53, the sensor controller 31 may readjust the transmission schedule (step S54). This readjustment may be a process of returning the scan rate assigned to the local ID # k that issued the reset command and the transmission duration of the downlink signal DS to the default values.

ステップS50でローカルID#kのリセットコマンド未発行フラグ1が「FALSE」であると判定した場合、センサコントローラ31は、図14に示すように、まずローカルID#kの設定指示を示すコマンド信号を送信する(ステップS55)。これは要するに、ステップS51においてローカルID#kのリセット命令を示すコマンド信号を送信した後、ローカルID#kにかかるコマンド信号を送信する次の機会における処理である。コマンド信号を送信した後、センサコントローラ31はダウンリンク信号DSの受信動作を実施し(ステップS56)、ローカルID#kを含むダウンリンク信号DSを受信したか否かを判定する(ステップS57)。 When it is determined in step S50 that the reset command unissued flag 1 of the local ID # k is "FALSE", the sensor controller 31 first sends a command signal indicating a setting instruction of the local ID # k, as shown in FIG. Transmit (step S55). In short, this is a process at the next opportunity to transmit the command signal related to the local ID # k after transmitting the command signal indicating the reset command of the local ID # k in step S51. After transmitting the command signal, the sensor controller 31 performs a downlink signal DS reception operation (step S56), and determines whether or not the downlink signal DS including the local ID # k has been received (step S57).

ステップS57においてローカルID#kを含むダウンリンク信号DSをパネル面内の1カ所のみで受信したと判定した場合、センサコントローラ31はまず、ID管理テーブル70においてローカルID#kの削除カウンタに0を設定する(ステップS58)。次にセンサコントローラ31は、ID管理テーブル70においてローカルID#kの登録を一旦解除し、再度ローカルID#kをID管理テーブル70に登録する処理を行う(ステップS59)。一旦解除するため、ローカルID#kのオペレーション状態の値(図8参照)は、ここで「通常モード」に戻る。そして、受信したダウンリンク信号DS内のバースト信号に基づいてスタイラス2の位置を導出する(ステップS60)とともに、もしダウンリンク信号DS内のデータ信号がローカルID#k以外のデータを含む場合には、そのデータの抽出を行う(ステップS61)。その後センサコントローラ31は、ステップS17と同様に送信スケジュールの再調整を行う(ステップS62)。このステップS62の終了後、センサコントローラ31はコマンド信号送信処理を終了し、図9のステップS1に戻る。 When it is determined in step S57 that the downlink signal DS including the local ID # k is received at only one place on the panel surface, the sensor controller 31 first sets 0 to the deletion counter of the local ID # k in the ID management table 70. Set (step S58). Next, the sensor controller 31 temporarily cancels the registration of the local ID # k in the ID management table 70, and performs a process of registering the local ID # k in the ID management table 70 again (step S59). The value of the operation state of the local ID # k (see FIG. 8) returns to the "normal mode" here in order to release it once. Then, the position of the stylus 2 is derived based on the burst signal in the received downlink signal DS (step S60), and if the data signal in the downlink signal DS includes data other than the local ID # k, the position is derived. , The data is extracted (step S61). After that, the sensor controller 31 readjusts the transmission schedule in the same manner as in step S17 (step S62). After the end of this step S62, the sensor controller 31 ends the command signal transmission process, and returns to step S1 of FIG.

図26には、第1のリセットモードに関わるセンサコントローラ31及びスタイラス2の動作の一例を示している。この例では、センサコントローラ31が送信したローカルID#1の設定指示に対し、スタイラス2a,2bの両方が同時に応答している。このような状況は、図26にも示すように、スタイラス検索信号の送信インターバルの間にスタイラス2a,2bがともにペンダウン状態となった場合に生じ得る。センサコントローラ31は、複数カ所でローカルID#1を含むダウンリンク信号DSを受信したことを検出すると(図26の「重複を検出」。フロー図では、図10のステップS13)、ローカルID#1のリセット命令を示すコマンド信号を送信する(フロー図では、図13のステップS51)。その後、センサコントローラ31は、ローカルID#1の設定指示を示すコマンド信号を複数回にわたり送信する(フロー図では、図14のステップS55)。 FIG. 26 shows an example of the operation of the sensor controller 31 and the stylus 2 related to the first reset mode. In this example, both the stylus 2a and 2b are simultaneously responding to the setting instruction of the local ID # 1 transmitted by the sensor controller 31. As shown in FIG. 26, such a situation may occur when both the stylus 2a and 2b are in the pen-down state during the transmission interval of the stylus search signal. When the sensor controller 31 detects that the downlink signal DS including the local ID # 1 has been received at a plurality of locations (“detection of duplication” in FIG. 26. In the flow diagram, step S13 in FIG. 10), the local ID # 1 A command signal indicating the reset command of is transmitted (in the flow chart, step S51 of FIG. 13). After that, the sensor controller 31 transmits a command signal indicating a setting instruction of the local ID # 1 a plurality of times (in the flow chart, step S55 in FIG. 14).

スタイラス2の動作の詳細については後述するが、スタイラス2a,2bはそれぞれ、このローカルID#1のリセット命令を示すコマンド信号を受信した後、ローカルID#1の登録を解除するとともにID設定ウェイトカウンタの値を発生し、その値に応じた時間だけ、次に受信される設定指示を無視する。この無視する期間が終了した後、センサコントローラ31によって送信されるローカルID#1の設定指示を示すコマンド信号を受信したスタイラス2(図26ではスタイラス2a)は、ローカルID#1を含むダウンリンク信号DSを送信し、これによってローカルID#1が改めてID管理テーブル70に登録される(図26の「#1を登録」。フロー図では、図14のステップS59)。このように、本実施の形態によるセンサコントローラ31及びスタイラス2の処理によれば、スタイラス検索信号の送信直後に送信される設定指示に対して複数のスタイラス2から応答があった場合であっても、速やかに、そのうちの1つのみにローカルIDを割り当て直すことができる。なお、ローカルID#1を割り当てられなかったスタイラス2bは、図26にも示すように、次のスタイラス検索信号の直後に送信されるローカルID#2の設定指示を示すコマンド信号を受信することにより、ローカルID#2としてセンサコントローラ31との通信を開始することになる。 The details of the operation of the stylus 2 will be described later, but after each of the stylus 2a and 2b receives the command signal indicating the reset command of the local ID # 1, the registration of the local ID # 1 is canceled and the ID setting wait counter is used. Generates the value of, and ignores the next set instruction received for the time corresponding to that value. After the ignoring period ends, the stylus 2 (the stylus 2a in FIG. 26) that receives the command signal indicating the setting instruction of the local ID # 1 transmitted by the sensor controller 31 is the downlink signal including the local ID # 1. The DS is transmitted, and the local ID # 1 is registered in the ID management table 70 again (“Register # 1” in FIG. 26. In the flow diagram, step S59 in FIG. 14). As described above, according to the processing of the sensor controller 31 and the stylus 2 according to the present embodiment, even when there are responses from the plurality of styluses 2 to the setting instruction transmitted immediately after the transmission of the stylus search signal. , You can quickly reassign the local ID to only one of them. As shown in FIG. 26, the stylus 2b to which the local ID # 1 has not been assigned receives the command signal indicating the setting instruction of the local ID # 2 transmitted immediately after the next stylus search signal. , Communication with the sensor controller 31 will be started as the local ID # 2.

図14に戻る。ステップS57においてローカルID#kを含むダウンリンク信号DSをパネル面内の複数カ所で受信したと判定した場合、センサコントローラ31は、ID管理テーブル70においてローカルID#kの削除カウンタに0を設定する(ステップS63)とともに、ローカルID#kのリセットコマンド未発行フラグ1に再度「TRUE」を設定したうえで(ステップS64)、コマンド信号送信処理を終了し、図9のステップS1に戻る。これは、上述したID設定ウェイトカウンタの値が偶然一致した場合の処理であり、ステップS64においてローカルID#kのリセットコマンド未発行フラグ1に再度「TRUE」を設定することにより、リセット命令を示すコマンド信号の送信(図13のステップS51)から処理がやり直されることになる。 Return to FIG. When it is determined in step S57 that the downlink signal DS including the local ID # k has been received at a plurality of locations on the panel surface, the sensor controller 31 sets 0 in the deletion counter of the local ID # k in the ID management table 70. (Step S63), the reset command unissued flag 1 of the local ID # k is set to "TRUE" again (step S64), the command signal transmission process is terminated, and the process returns to step S1 of FIG. This is a process when the values of the ID setting weight counters described above coincide with each other by chance, and the reset command is indicated by setting "TRUE" again to the reset command unissued flag 1 of the local ID # k in step S64. The process is restarted from the transmission of the command signal (step S51 in FIG. 13).

ステップS57においてローカルID#kを含むダウンリンク信号DSを受信していないと判定した場合のセンサコントローラ31は、ローカルID#kの削除カウンタ(図8参照)が所定の閾値Dより大きいか否かを判定し(ステップS65)、大きくないと判定した場合には、ローカルID#kの削除カウンタを1増加させる(ステップS68)。一方、大きいと判定した場合には、ID管理テーブル70からローカルID#kの行を削除することにより、ローカルID#kの登録を解除する(ステップS66)。そして、ローカルID#kに対応するスタイラス2に与えていたダウンリンク信号DSの送信機会を他のスタイラス2に割り振るため、ダウンリンク信号DSの送信スケジュールの再調整を行い、その結果によりID管理テーブル70を更新する(ステップS67)。ステップS65〜S68の処理は、例えば図26の例で言えば、センサコントローラ31がローカルID#1の設定指示を示すコマンド信号を送信している間に、スタイラス2a,2bの両方がセンシング範囲SRを離脱した場合に実行されることになる。 When it is determined in step S57 that the downlink signal DS including the local ID # k has not been received, the sensor controller 31 determines whether or not the deletion counter (see FIG. 8) of the local ID # k is larger than the predetermined threshold value D. (Step S65), and if it is determined that the value is not large, the deletion counter of the local ID # k is incremented by 1 (step S68). On the other hand, if it is determined to be large, the registration of the local ID # k is canceled by deleting the row of the local ID # k from the ID management table 70 (step S66). Then, in order to allocate the transmission opportunity of the downlink signal DS given to the stylus 2 corresponding to the local ID # k to another stylus 2, the transmission schedule of the downlink signal DS is readjusted, and the ID management table is read based on the result. 70 is updated (step S67). In the processing of steps S65 to S68, for example, in the example of FIG. 26, both the stylus 2a and 2b have the sensing range SR while the sensor controller 31 transmits a command signal indicating a setting instruction of the local ID # 1. It will be executed when you leave.

次に、図15には、図11のステップS21で「第2のリセットモード」と判定された場合の処理を示している。 Next, FIG. 15 shows a process when the “second reset mode” is determined in step S21 of FIG.

ここで、第2のリセットモードにおけるセンサコントローラ31及びスタイラス2の処理について、先に図27を参照して詳しく説明する。 Here, the processing of the sensor controller 31 and the stylus 2 in the second reset mode will be described in detail with reference to FIG. 27 first.

図12を参照して説明したように、あるローカルID#kのオペレーション状態の値が第2のリセットモードに設定されるのは、ローカルID#kについての設定指示を示すコマンド信号に対してではなく、ローカルID#kのデータ送信指示を示すコマンド信号に対して、2つ以上のスタイラス2が同時に、ローカルID#kを含むダウンリンク信号DSを送信した場合である。図27には、このような状態が生ずる場合の一例を示している。同図の例では、初期状態として、スタイラス2aのみにローカルID#1が割り当てられており、スタイラス2bにはローカルIDは割り当てられていない。この状況でスタイラス2aがセンシング範囲SRを離脱する(時刻t1)と、スタイラス2aからのダウンリンク信号DSが届かなくなることから、センサコントローラ31は所定時間の後にローカルID#1の登録を解除する。しかし、図25を参照して説明したように、スタイラス2におけるローカルIDの登録の解除はセンサコントローラ31に比べて遅れて実行されるので、図27の例では、センサコントローラ31がローカルID#1の登録を解除した後も、スタイラス2におけるローカルIDの登録の解除は実行されていない。 As described with reference to FIG. 12, the operational state value of a local ID # k is set to the second reset mode for a command signal indicating a setting instruction for the local ID # k. This is a case where two or more styluses 2 simultaneously transmit a downlink signal DS including the local ID # k in response to a command signal indicating a data transmission instruction of the local ID # k. FIG. 27 shows an example of a case where such a state occurs. In the example of the figure, as an initial state, the local ID # 1 is assigned only to the stylus 2a, and the local ID is not assigned to the stylus 2b. In this situation, when the stylus 2a leaves the sensing range SR (time t1), the downlink signal DS from the stylus 2a does not reach, so that the sensor controller 31 cancels the registration of the local ID # 1 after a predetermined time. However, as described with reference to FIG. 25, the deregistration of the local ID in the stylus 2 is executed later than that of the sensor controller 31, so in the example of FIG. 27, the sensor controller 31 is the local ID # 1. Even after the registration of the local ID is canceled, the registration of the local ID in the stylus 2 is not canceled.

スタイラス2aがローカルID#1を保持したままの状態であっても、スタイラス2bが新たにセンシング範囲SR内に入る(時刻t2)と、スタイラス2bはセンサコントローラ31が送信するローカルID#1の設定指示を示すコマンド信号を受信し、その結果として、センサコントローラ31はスタイラス2bにローカルID#1を割り当てることになる。その後、ローカルID#1を保持したままのスタイラス2aが再びセンシング範囲SR内に入る(時刻t3)と、スタイラス2a,2bの双方が、ローカルID#1に宛てたデータ送信指示を示すコマンド信号に対して応答することになる。これが、図12に示したステップS32で「複数カ所で受信」と判定される場合であり、図15には、このようなローカルID#1の重複(複数のスタイラス2が同じローカルID#kを保持している状態)を解消するための処理が記載されている。 Even if the stylus 2a retains the local ID # 1, when the stylus 2b newly enters the sensing range SR (time t2), the stylus 2b sets the local ID # 1 transmitted by the sensor controller 31. Upon receiving the command signal indicating the instruction, the sensor controller 31 assigns the local ID # 1 to the stylus 2b. After that, when the stylus 2a holding the local ID # 1 enters the sensing range SR again (time t3), both the stylus 2a and 2b send a command signal indicating a data transmission instruction addressed to the local ID # 1. Will respond to it. This is the case where it is determined in step S32 shown in FIG. 12 that "received at a plurality of places", and in FIG. 15, such duplication of local ID # 1 (a plurality of styluses 2 have the same local ID # k). The process for resolving the holding state) is described.

図15に戻る。この場合のセンサコントローラ31は、まず初めに、ローカルID#kのリセットコマンド未発行フラグ2の値を判定する(ステップS70)。その結果、ローカルID#kのリセットコマンド未発行フラグ2が「TRUE」であった場合、ローカルID#kのリセット命令を示すコマンド信号を送信する(ステップS71)とともに、ID管理テーブル70においてローカルID#kのリセットコマンド未発行フラグ2に「FALSE」を設定する(ステップS72)。これらは、センサコントローラ31がローカルID#kの重複を検出した直後に行う処理である。図27では、「重複を検出」の直後のリセット命令が、ステップS71で送信されるリセット命令に相当する。一方、ステップS70においてローカルID#kのリセットコマンド未発行フラグ1が「FALSE」であると判定した場合、センサコントローラ31は、ローカルID#kのデータ送信指示を示すコマンド信号を送信する(ステップS73)。 Return to FIG. In this case, the sensor controller 31 first determines the value of the reset command unissued flag 2 of the local ID # k (step S70). As a result, when the reset command unissued flag 2 of the local ID # k is "TRUE", a command signal indicating the reset command of the local ID # k is transmitted (step S71), and the local ID is displayed in the ID management table 70. “FALSE” is set in the reset command unissued flag 2 of #k (step S72). These are the processes performed immediately after the sensor controller 31 detects the duplication of the local ID # k. In FIG. 27, the reset instruction immediately after “detecting duplication” corresponds to the reset instruction transmitted in step S71. On the other hand, when it is determined in step S70 that the reset command unissued flag 1 of the local ID # k is "FALSE", the sensor controller 31 transmits a command signal indicating a data transmission instruction of the local ID # k (step S73). ).

ステップS72又はステップS73の終了後、センサコントローラ31は、ダウンリンク信号DSの受信動作を実施する(ステップS74)。そして、ローカルID#kを含むダウンリンク信号DSを受信したか否かを判定する(ステップS75)。 After the end of step S72 or step S73, the sensor controller 31 performs a downlink signal DS reception operation (step S74). Then, it is determined whether or not the downlink signal DS including the local ID # k has been received (step S75).

ステップS75においてローカルID#kを含むダウンリンク信号DSを受信したと判定した場合、センサコントローラ31は、受信したダウンリンク信号DS内のバースト信号に基づいてスタイラス2の位置を導出する(ステップS76)。ここで、詳しくは後述するが、スタイラス2は、新たなローカルIDを登録した直後でなければ、リセット命令を示すコマンド信号を受信しても、リセット(ローカルIDの登録の解除)をしばらくの間先延ばしし、データ送信指示を示すコマンド信号への応答としてのダウンリンク信号DSの送信を実行し続けるよう構成される。この先延ばし期間の長さは、後述するID解除ウェイトカウンタの値によって決定される。したがって、ステップS76では、しばらくの間、1以上の位置が導出され続けることになる。 When it is determined in step S75 that the downlink signal DS including the local ID # k has been received, the sensor controller 31 derives the position of the stylus 2 based on the burst signal in the received downlink signal DS (step S76). .. Here, as will be described in detail later, the stylus 2 resets (cancels the registration of the local ID) for a while even if it receives a command signal indicating a reset command unless it is immediately after registering a new local ID. It is configured to procrastinate and continue to transmit the downlink signal DS in response to a command signal indicating a data transmission instruction. The length of this postponement period is determined by the value of the ID release wait counter described later. Therefore, in step S76, one or more positions will continue to be derived for a while.

センサコントローラ31は、ステップS76で導出した1以上の位置の中から、以前に導出していた位置と連続する位置を選択する(ステップS77)。図27の例で言えば、センサコントローラ31が重複を検出する直前までセンサコントローラ31と通信していたのはスタイラス2bであるので、ステップS77では、スタイラス2bのダウンリンク信号DSに基づいて導出された位置が選択されることになる。 The sensor controller 31 selects a position continuous with the previously derived position from the one or more positions derived in step S76 (step S77). In the example of FIG. 27, it is the stylus 2b that was communicating with the sensor controller 31 until just before the sensor controller 31 detected the duplication. Therefore, in step S77, the stylus 2b is derived based on the downlink signal DS. The position will be selected.

次いでセンサコントローラ31は、ステップS77で位置を選択できたか否かを判定する(ステップS78)。上述したように、スタイラス2はリセット命令を示すコマンド信号の受信後、ID解除ウェイトカウンタの値によって決定される期間にわたり、データ送信指示を示すコマンド信号への応答を継続する。したがって、以前に導出していた位置と連続する位置にあるスタイラス2が他のスタイラス2よりも先に応答を中止する場合があり得、その場合には、ステップS78で選択できなかったと判定されることになる。 Next, the sensor controller 31 determines whether or not the position can be selected in step S77 (step S78). As described above, after receiving the command signal indicating the reset command, the stylus 2 continues to respond to the command signal indicating the data transmission instruction for a period determined by the value of the ID release wait counter. Therefore, the stylus 2 at a position continuous with the previously derived position may stop responding before the other stylus 2, in which case it is determined that the stylus could not be selected in step S78. It will be.

ステップS78で選択できたと判定した場合、センサコントローラ31は、ID管理テーブル70においてローカルID#kの削除カウンタに0を設定する(ステップS79)とともに、選択した位置に対応するダウンリンク信号DS内のデータ信号に含まれるデータの抽出を行う(ステップS80)。これにより、以前に導出していた位置と連続する位置にあるスタイラス2の位置を示す座標x,y、ローカルID、及びデータのみが、電子機器制御部33にレポートされることになる。センサコントローラ31はさらに、データの内容によっては(例えば、抽出したデータがグローバルIDである場合など)送信スケジュールの再調整を行ったうえで(ステップS81)、コマンド信号送信処理を終了し、図9のステップS1に戻る。 When it is determined that the selection can be made in step S78, the sensor controller 31 sets 0 in the deletion counter of the local ID # k in the ID management table 70 (step S79), and in the downlink signal DS corresponding to the selected position. The data included in the data signal is extracted (step S80). As a result, only the coordinates x, y, the local ID, and the data indicating the position of the stylus 2 at the position continuous with the previously derived position are reported to the electronic device control unit 33. The sensor controller 31 further adjusts the transmission schedule depending on the content of the data (for example, when the extracted data is a global ID) (step S81), and then ends the command signal transmission process. Return to step S1 of.

ステップS75においてローカルID#kを含むダウンリンク信号DSを受信しなかったと判定した場合、又は、ステップS78で選択できなかったと判定した場合、センサコントローラ31は、ローカルID#kの削除カウンタ(図8参照)が所定の閾値Dより大きいか否かを判定し(ステップS82)、大きくないと判定した場合には、ローカルID#kの削除カウンタを1増加させる(ステップS85)。一方、大きいと判定した場合には、ID管理テーブル70からローカルID#kの行を削除することにより、ローカルID#kの登録を解除する(ステップS83)。これにより、図11のステップS20においてローカルID#kが送信対象と決定されることがなくなるので、ステップS73におけるローカルID#kのデータ送信指示を示すコマンド信号の送信も中止される。そしてセンサコントローラ31は、ローカルID#kに対応するスタイラス2に与えていたダウンリンク信号DSの送信機会を他のスタイラス2に割り振るため、ダウンリンク信号DSの送信スケジュールの再調整を行い、その結果によりID管理テーブル70を更新する(ステップS84)。ステップS84の処理を終了したセンサコントローラ31は、コマンド信号送信処理を終了し、図9のステップS1に戻る。 When it is determined in step S75 that the downlink signal DS including the local ID # k has not been received, or when it is determined in step S78 that the downlink signal DS cannot be selected, the sensor controller 31 determines that the local ID # k has been deleted (FIG. 8). It is determined whether or not (see) is larger than the predetermined threshold value D (step S82), and if it is determined that it is not larger, the deletion counter of the local ID # k is incremented by 1 (step S85). On the other hand, if it is determined to be large, the registration of the local ID # k is canceled by deleting the row of the local ID # k from the ID management table 70 (step S83). As a result, since the local ID # k is not determined to be the transmission target in step S20 of FIG. 11, the transmission of the command signal indicating the data transmission instruction of the local ID # k in step S73 is also stopped. Then, the sensor controller 31 readjusts the transmission schedule of the downlink signal DS in order to allocate the transmission opportunity of the downlink signal DS given to the stylus 2 corresponding to the local ID # k to the other stylus 2, and as a result. Updates the ID management table 70 according to (step S84). The sensor controller 31 that has completed the process of step S84 ends the command signal transmission process, and returns to step S1 of FIG.

以上、センサコントローラ31の本発明に関する動作について詳しく説明した。次に、スタイラス2の本発明に関する動作について詳しく説明する。 The operation of the sensor controller 31 according to the present invention has been described in detail above. Next, the operation of the stylus 2 according to the present invention will be described in detail.

スタイラス2は、図16に示すように、まずセンサコントローラ31の検出状態を判定する(ステップS100)。その結果、センサコントローラ31を未だ検出していない未検出状態であると判定した場合、スタイラス2は、上述した検出パターンc1の検出を試行する(ステップS101)。この処理は、センサコントローラ31が間欠的に送信しているスタイラス検索信号を検出するための処理である。 As shown in FIG. 16, the stylus 2 first determines the detection state of the sensor controller 31 (step S100). As a result, when it is determined that the sensor controller 31 is in an undetected state that has not yet been detected, the stylus 2 tries to detect the detection pattern c1 described above (step S101). This process is for detecting the stylus search signal intermittently transmitted by the sensor controller 31.

次にスタイラス2は、ステップS101での試行の結果、検出パターンc1を検出したか否かを判定する(ステップS102)。その結果、検出していないと判定した場合には、所定時間動作を休止した後(ステップS103)、ステップS100に戻って検出パターンc1の検出の試行を繰り返す。ステップS103で動作を休止しているのは、受信動作を間欠的に行うことによってスタイラス2の電力消費を抑えるためである。一方、ステップ102で検出したと判定した場合には、スタイラス検索信号の終了を待機する(ステップS104)。上述したように、スタイラス検索信号は、既知の検出パターンc1の繰り返しと、末尾に付加される区切りパターンSTPとにより構成される信号である。そこでスタイラス2は、区切りパターンSTPを検出することにより、検出パターンの終了を検出する。その後、スタイラス2は、センサコントローラ31の検出状態を検出済状態に設定し、ステップS100に戻る。 Next, the stylus 2 determines whether or not the detection pattern c1 is detected as a result of the trial in step S101 (step S102). As a result, if it is determined that the detection has not been performed, the operation is paused for a predetermined time (step S103), and then the process returns to step S100 to repeat the trial of detecting the detection pattern c1. The reason why the operation is suspended in step S103 is to suppress the power consumption of the stylus 2 by performing the reception operation intermittently. On the other hand, if it is determined that the stylus is detected in step 102, the end of the stylus search signal is awaited (step S104). As described above, the stylus search signal is a signal composed of the repetition of the known detection pattern c1 and the delimiter pattern STP added to the end. Therefore, the stylus 2 detects the end of the detection pattern by detecting the delimiter pattern STP. After that, the stylus 2 sets the detection state of the sensor controller 31 to the detected state, and returns to step S100.

ステップS100において検出済状態であると判定した場合には、スタイラス2は、コマンド信号受信処理を行う(ステップS106)。 If it is determined in step S100 that the stylus is in the detected state, the stylus 2 performs command signal reception processing (step S106).

図17には、コマンド信号受信処理の詳細を示している。同図に示すように、コマンド信号受信処理を開始したスタイラス2は、アップリンク信号USの未検出時間の測定を開始する(ステップS110)。そして、コマンド信号の受信動作を実施し(ステップS111)、コマンド信号を受信したか否かを判定する(ステップS112)。 FIG. 17 shows the details of the command signal reception process. As shown in the figure, the stylus 2 that has started the command signal reception process starts measuring the undetected time of the uplink signal US (step S110). Then, the command signal reception operation is performed (step S111), and it is determined whether or not the command signal has been received (step S112).

ステップS112でコマンド信号を受信していないと判定した場合、スタイラス2は、ステップS110で未検出時間の測定を開始してから所定時間が経過したか否かを判定する(ステップS113)。この所定時間は、例えば数百ミリ秒等の1秒よりも短い時間である。ここで経過していないと判定した場合には、ステップS111に戻り、再度、コマンド信号の受信動作を実施する。一方、経過したと判定した場合(すなわち、アップリンク信号USが所定期間にわたって検出されない場合)には、センサコントローラ31の検出状態を未検出状態に設定する(ステップS114)とともに、メモリ45(図2参照)にローカルIDが登録されていれば、消去することによってそのローカルIDの登録を解除したうえで(ステップS115)、コマンド信号受信処理を終了し、図16のステップS100に戻る。ステップS114,S115の処理は、スタイラス2が図1に示したアップリンク検出高さAHを超える高さまで移動し、アップリンク信号USを受信できなくなった場合に行われる処理である。 If it is determined in step S112 that the command signal has not been received, the stylus 2 determines whether or not a predetermined time has elapsed since the measurement of the undetected time was started in step S110 (step S113). This predetermined time is shorter than one second, for example, several hundred milliseconds. If it is determined that the elapse has not occurred, the process returns to step S111, and the command signal reception operation is performed again. On the other hand, when it is determined that the elapse has passed (that is, when the uplink signal US is not detected for a predetermined period), the detection state of the sensor controller 31 is set to the undetected state (step S114), and the memory 45 (FIG. 2). If the local ID is registered in (see), the registration of the local ID is canceled by deleting the local ID (step S115), the command signal reception process is terminated, and the process returns to step S100 in FIG. The processes of steps S114 and S115 are processes performed when the stylus 2 moves to a height exceeding the uplink detection height AH shown in FIG. 1 and cannot receive the uplink signal US.

ここで、スタイラス2は、ローカルIDがメモリ45に登録済みである場合には、上記のようにアップリンク信号USが所定期間にわたって検出されない場合だけでなく、メモリ45に登録されているローカルIDを含むアップリンク信号USが所定期間にわたって検出されない場合にも、ローカルIDの登録を解除することとしてもよい。こうすることで、例えば、スタイラス2がローカルIDをメモリ45に記憶しており、かつ、アップリンク検出高さAHより低い位置に留まっているが、センサコントローラ31にはそのローカルIDが登録されていない(解除済みである)場合など、スタイラス2から見て、アップリンク信号USは検出できるものの自己のローカルIDを含むアップリンク信号USがいつまで待っても検出されない、という状態が生じた場合に、スタイラス2をアップリンク検出高さAHより高い位置に移動させなくても、センサコントローラ31からスタイラス2に新たなローカルIDを割り当てることが可能になる。 Here, when the local ID is registered in the memory 45, the stylus 2 obtains the local ID registered in the memory 45 as well as the case where the uplink signal US is not detected for a predetermined period as described above. Even when the including uplink signal US is not detected for a predetermined period, the registration of the local ID may be canceled. By doing so, for example, the stylus 2 stores the local ID in the memory 45 and stays at a position lower than the uplink detection height AH, but the local ID is registered in the sensor controller 31. When there is no (cancelled), etc., the uplink signal US can be detected from the stylus 2, but the uplink signal US including its own local ID is not detected no matter how long it waits. It is possible to assign a new local ID to the stylus 2 from the sensor controller 31 without moving the stylus 2 to a position higher than the uplink detection height AH.

一方、ステップS112でコマンド信号を受信したと判定した場合、スタイラス2は、未検出時間の値をリセットするとともに、受信したコマンド信号により示されるコマンドの内容が「設定指示」「リセット命令」「データ送信指示」のいずれであるかを判定する(ステップS117)。 On the other hand, when it is determined that the command signal has been received in step S112, the stylus 2 resets the value of the undetected time, and the contents of the command indicated by the received command signal are "setting instruction", "reset instruction", and "data". It is determined which of the "transmission instructions" is (step S117).

<D.ID設定指示に対する動作>
図18には、図17のステップS117で「設定指示」と判定された場合の処理を示している。この場合、スタイラス2は、まずID設定ウェイトカウンタが0であるか否かを判定する。ID設定ウェイトカウンタは、ID設定指示を受けたスタイラス2が設定指示があっても即座に反映しない(無視する)期間を表すものであって、後述するステップS135で設定されるものであり、初期状態では0である。ID設定ウェイトカウンタが0でない場合、スタイラス2はID設定ウェイトカウンタを1減少させる処理を行ったうえで(ステップS125)コマンド信号受信処理を終了し、図16のステップS100に戻る。この場合、センサコントローラ31によるローカルIDの設定指示は、スタイラス2によって無視されることになる。
<D. Operation for ID setting instruction>
FIG. 18 shows a process when it is determined as a “setting instruction” in step S117 of FIG. In this case, the stylus 2 first determines whether or not the ID setting weight counter is 0. The ID setting weight counter represents a period during which the stylus 2 that has received the ID setting instruction does not immediately reflect (ignore) the setting instruction even if the setting instruction is given, and is set in step S135 described later, and is initially set. The state is 0. If the ID setting weight counter is not 0, the stylus 2 performs a process of decrementing the ID setting weight counter by 1 (step S125), ends the command signal reception process, and returns to step S100 of FIG. In this case, the instruction to set the local ID by the sensor controller 31 is ignored by the stylus 2.

一方、ID設定ウェイトカウンタが0であれば、スタイラス2は、自身のメモリ45(図2参照)にローカルIDが登録済みであるか否かを判定する(ステップS121)。ここで登録済みと判定した場合、スタイラス2は、特段の処理を行わずにコマンド信号受信処理を終了し、図16のステップS100に戻る。一方、登録済みでないと判定した場合のスタイラス2は、コマンド信号からローカルIDを抽出し、自身のメモリ45に登録する(ステップS122)。そして、登録したローカルIDを含むダウンリンク信号DSを送信し(ステップS123)、さらに設定暫定フラグに「TRUE」を設定したうえで(ステップS124)、コマンド信号受信処理を終了し、図16のステップS100に戻る。設定暫定フラグが「TRUE」であることは、ローカルIDの設定が暫定的なものであり、設定暫定フラグが「FALSE」であることは、メモリに保持されているローカルIDが確定していることを意味する。 On the other hand, if the ID setting weight counter is 0, the stylus 2 determines whether or not the local ID has been registered in its own memory 45 (see FIG. 2) (step S121). If it is determined that the stylus has been registered here, the stylus 2 ends the command signal reception process without performing any special process, and returns to step S100 in FIG. On the other hand, when it is determined that the stylus is not registered, the stylus 2 extracts the local ID from the command signal and registers it in its own memory 45 (step S122). Then, the downlink signal DS including the registered local ID is transmitted (step S123), and after setting "TRUE" in the provisional setting flag (step S124), the command signal reception process is terminated, and the step of FIG. 16 Return to S100. If the provisional setting flag is "TRUE", the setting of the local ID is provisional, and if the provisional setting flag is "FALSE", the local ID held in the memory is confirmed. Means.

<E.リセット指示に対する動作>
図19には、図17のステップS117で「リセット命令」と判定された場合の処理を示している。この場合のスタイラス2はまず、受信されたコマンド信号が登録中のローカルIDを含むか否かを判定する(ステップS130)。含まないと判定した場合には、特段の処理を行わずにコマンド信号受信処理を終了し、図16のステップS100に戻る。これは、自分宛でないコマンド信号を無視するための処理である。一方、含むと判定した場合には、次に筆圧検出センサ23(図24)で検出されている筆圧が0を超えているか否かを判定する(ステップS131)。その結果、筆圧が0を超えていれば、特段の処理を行わずにコマンド信号受信処理を終了し、図16のステップS100に戻る。これは、既にスタイラス2がパネル操作面で利用されペンタッチ操作されているような場合(典型的には、スタイラス2をつかった描画処理等が開始されている場合)には、リセット命令に従わずに処理を継続することを意味する。一方、筆圧が0であれば、次に設定暫定フラグの値を判定する(ステップS132)。
<E. Operation for reset instruction>
FIG. 19 shows a process when a “reset command” is determined in step S117 of FIG. The stylus 2 in this case first determines whether or not the received command signal includes the registered local ID (step S130). If it is determined that it is not included, the command signal reception process is terminated without performing any special processing, and the process returns to step S100 in FIG. This is a process for ignoring command signals that are not addressed to you. On the other hand, when it is determined that the pen pressure is included, it is next determined whether or not the pen pressure detected by the pen pressure detection sensor 23 (FIG. 24) exceeds 0 (step S131). As a result, if the writing pressure exceeds 0, the command signal reception process is terminated without performing any special processing, and the process returns to step S100 in FIG. This does not follow the reset command when the stylus 2 is already used on the panel operation surface and is operated by pen touch (typically, when the drawing process using the stylus 2 is started). Means to continue processing. On the other hand, if the writing pressure is 0, the value of the provisional setting flag is then determined (step S132).

設定暫定フラグが「TRUE」であった場合、スタイラス2は、メモリ45からローカルIDを削除することによってローカルIDの登録を解除する(ステップS133)。これにより、スタイラス2はローカルID未登録の状態となる。続いてスタイラス2は、設定暫定フラグに「FALSE」を設定する(ステップS134)とともにID設定ウェイトカウンタを発生し(ステップS135)たうえで、コマンド信号受信処理を終了し、図16のステップS100に戻る。 When the provisional setting flag is "TRUE", the stylus 2 cancels the registration of the local ID by deleting the local ID from the memory 45 (step S133). As a result, the stylus 2 is in a state where the local ID is not registered. Subsequently, the stylus 2 sets "FALSE" in the provisional setting flag (step S134), generates an ID setting wait counter (step S135), ends the command signal reception process, and proceeds to step S100 in FIG. Return.

ステップS132で設定暫定フラグが「TRUE」であると判定されることは、スタイラス2がローカルIDを登録した直後にリセット命令を示すコマンド信号が送信されたことを意味する。これは、図26に例示するように、センサコントローラ31が送信したローカルIDの設定指示に対し、複数のスタイラス2が応答した場合である。ステップS135で生成されるID設定ウェイトカウンタは、このような場合にリセット命令を受けたスタイラス2が、設定指示を無視する期間を表している。なお、ID設定ウェイトカウンタや、後述するステップS136で生成されるID解除ウェイトカウンタの値は、スタイラス2の筐体毎に異なる値であればよく、グローバルIDのシリアル番号などから生成するとしても良いし、デバイスタイプに応じて優先される値が決まっているとしてもよいし、乱数生成器により生成されるとしてもよい。こうしてID設定ウェイトカウンタに応じた期間だけ各スタイラス2が設定指示を無視することにより、図26を参照して前述したように、そのうちの1つのスタイラス2だけに、同じローカルIDを再度割り当てることが可能になる。 If the provisional setting flag is determined to be "TRUE" in step S132, it means that a command signal indicating a reset command is transmitted immediately after the stylus 2 registers the local ID. This is a case where a plurality of styli 2 respond to a local ID setting instruction transmitted by the sensor controller 31, as illustrated in FIG. 26. The ID setting wait counter generated in step S135 represents a period during which the stylus 2 that has received the reset instruction ignores the setting instruction in such a case. The value of the ID setting weight counter and the ID release weight counter generated in step S136 described later may be different for each case of the stylus 2, and may be generated from the serial number of the global ID or the like. However, the priority value may be determined according to the device type, or may be generated by a random number generator. In this way, each stylus 2 ignores the setting instruction for a period corresponding to the ID setting weight counter, so that the same local ID can be reassigned to only one of the stylus 2 as described above with reference to FIG. It will be possible.

図19に戻る。ステップS132において設定暫定フラグが「FALSE」であると判定した場合、スタイラス2は、ID解除ウェイトカウンタを発生する(ステップS136)とともに、リセット実行中フラグに「TRUE」を設定する(ステップS137)。そして、コマンド信号受信処理を終了し、図16のステップS100に戻る。 Return to FIG. When it is determined in step S132 that the provisional setting flag is "FALSE", the stylus 2 generates an ID release wait counter (step S136) and sets "TRUE" in the reset execution flag (step S137). Then, the command signal reception process is completed, and the process returns to step S100 of FIG.

ステップS132で設定暫定フラグが「FALSE」であると判定される場合とは、スタイラス2がローカルIDを登録した直後など暫定的にローカルIDが設定されたときでなく既にローカルIDが確定された後に、リセット命令を示すコマンド信号が送信されたことを意味する。これは、図27を参照して説明したように、データ送信指示を示すコマンド信号に対して、2つ以上のスタイラス2が同時に、同じローカルIDを含むダウンリンク信号DSを送信した場合である。ステップS136で生成されるID解除ウェイトカウンタは、このような場合にリセット命令を受けたスタイラス2が、ローカルIDの登録解除の実行を遅らせる時間を表している。こうしてID解除ウェイトカウンタに応じた期間だけ各スタイラス2がローカルIDの登録解除の実行を遅らせることにより、図27に例示するように、センサコントローラ31は引き続き、スタイラス2の位置検出及びスタイラス2からのデータ取得を行うことが可能になる。なお、図15を参照して説明したように、センサコントローラ31は、このような場合に、以前の導出位置と連続する位置に対応するダウンリンク信号DSのみを処理の対象としている(ステップS76〜S81)ので、新たにセンシング範囲SR内に入ってきたスタイラス2(図27ではスタイラス2a)ではなく、引き続きセンシング範囲SR内に留まっているスタイラス2(図27ではスタイラス2b)についてのみ、位置検出とデータ取得が行われることになる。したがって、ユーザがあるスタイラス2(第1のスタイラス2)をペンタッチさせてパネル面上で使用し始めた後で、アップリンク検出高さAH内に維持されていた他のスタイラス2(第2のスタイラス2)が時間差を置いてセンシング範囲SR内に入ったときに発生するローカルIDに対して、センサコントローラ31は引き続き第1のスタイラス2である蓋然性の高い方の座標値を利用して座標を検出し、電子機器制御部33にレポートする、という動作を実現することが可能となる。 The case where the provisional setting flag is determined to be "FALSE" in step S132 is not when the local ID is provisionally set, such as immediately after the stylus 2 registers the local ID, but after the local ID has already been determined. , Means that a command signal indicating a reset command has been transmitted. This is a case where two or more styluses 2 simultaneously transmit a downlink signal DS including the same local ID in response to a command signal indicating a data transmission instruction, as described with reference to FIG. 27. The ID release wait counter generated in step S136 represents the time for the stylus 2 that has received the reset instruction in such a case to delay the execution of the registration release of the local ID. In this way, each stylus 2 delays the execution of deregistration of the local ID by the period corresponding to the ID release wait counter, so that the sensor controller 31 continues to detect the position of the stylus 2 and from the stylus 2 as illustrated in FIG. It becomes possible to acquire data. As described with reference to FIG. 15, in such a case, the sensor controller 31 processes only the downlink signal DS corresponding to the position continuous with the previous derivation position (steps S76 to S76 to). Since S81), the position is detected only for the stylus 2 (the stylus 2b in FIG. 27) that remains within the sensing range SR, not the stylus 2 (the stylus 2a in FIG. 27) that has newly entered the sensing range SR. Data acquisition will be performed. Therefore, after a user has pen-touched a stylus 2 (first stylus 2) and started using it on the panel surface, another stylus 2 (second stylus 2) maintained within the uplink detection height AH. For the local ID generated when 2) enters the sensing range SR with a time lag, the sensor controller 31 continues to detect the coordinates using the coordinate value of the one with the higher probability of being the first stylus 2. Then, it is possible to realize the operation of reporting to the electronic device control unit 33.

<F.データ送信指示に対する動作>
図20には、図17のステップS117で「データ送信指示」と判定された場合の処理を示している。この場合のスタイラス2はまず、受信されたコマンド信号が登録中のローカルIDを含むか否かを判定する(ステップS140)。含まないと判定した場合には、特段の処理を行わずに現在受信しているコマンド信号についてのコマンド信号受信処理を終了し、図16のステップS100に戻り、次のコマンド信号受信処理を開始する。これは、自分宛でないコマンド信号を無視し、次のコマンドに対する応答の準備を開始するための処理である。一方、含むと判定した場合には、設定暫定フラグに「FALSE」を設定し(ステップS141)、続いてリセット実行中フラグの値を判定する(ステップS142)。
<F. Operation for data transmission instruction>
FIG. 20 shows a process when it is determined as a “data transmission instruction” in step S117 of FIG. The stylus 2 in this case first determines whether or not the received command signal includes the registered local ID (step S140). If it is determined that the command signal is not included, the command signal reception process for the command signal currently being received is terminated without any special processing, the process returns to step S100 of FIG. 16, and the next command signal reception process is started. .. This is a process for ignoring a command signal not addressed to itself and starting preparation for a response to the next command. On the other hand, when it is determined that the flag is included, "FALSE" is set in the provisional setting flag (step S141), and then the value of the reset executing flag is determined (step S142).

リセット実行中フラグが「FALSE」であった場合、スタイラス2は、登録中のローカルIDと、コマンド信号によって送信を指示されたデータとを含むダウンリンク信号DSを送信する(ステップS147)。そして、コマンド信号受信処理を終了し、図16のステップS100に戻る。この処理は、データ送信指示を示すコマンド信号に対する通常の応答である。 When the reset execution flag is "FALSE", the stylus 2 transmits a downlink signal DS including the registered local ID and the data instructed to be transmitted by the command signal (step S147). Then, the command signal reception process is completed, and the process returns to step S100 of FIG. This process is a normal response to a command signal indicating a data transmission instruction.

一方、ステップS142においてリセット実行中フラグが「TRUE」であると判定した場合、スタイラス2は、まずID解除ウェイトカウンタが0であるか否かを判定する(ステップS143)。ID解除ウェイトカウンタの初期状態はID設定ウェイトカウンタと同じく0であるが、スタイラス2がローカルIDの登録直後でない時期にリセット命令を受けた直後には、ステップS136において、ID解除ウェイトカウンタに0でない値が設定されている。ID解除ウェイトカウンタが0でないと判定した場合、スタイラス2はID解除ウェイトカウンタを1減少させる処理を行ったうえで(ステップS146)、登録中のローカルIDと、コマンド信号によって送信を指示されたデータとを含むダウンリンク信号DSを送信する(ステップS147)。そして、コマンド信号受信処理を終了し、図16のステップS100に戻る。このステップS146,S147の処理は、図27を参照して説明したように、スタイラス2がローカルIDの登録解除の実行を遅らせている場合の処理である。 On the other hand, when it is determined in step S142 that the reset execution flag is "TRUE", the stylus 2 first determines whether or not the ID release wait counter is 0 (step S143). The initial state of the ID release wait counter is 0 as in the ID setting wait counter, but immediately after the stylus 2 receives the reset command at a time other than immediately after the registration of the local ID, the ID release wait counter is not 0 in step S136. The value is set. When it is determined that the ID release wait counter is not 0, the stylus 2 performs a process of decrementing the ID release wait counter by 1 (step S146), and then the registered local ID and the data instructed to be transmitted by the command signal. A downlink signal DS including and is transmitted (step S147). Then, the command signal reception process is completed, and the process returns to step S100 of FIG. The processing of steps S146 and S147 is a processing when the stylus 2 delays the execution of deregistration of the local ID, as described with reference to FIG. 27.

一方、ステップS142においてID解除ウェイトカウンタが0であると判定した場合、スタイラス2は、メモリ45からローカルIDを削除することによってローカルIDの登録を解除する(ステップS144)とともに、リセット実行中フラグに「FALSE」を設定する(ステップS145)。そして、コマンド信号受信処理を終了し、図16のステップS100に戻る。これにより、遅らせていたローカルIDの登録解除が実行される。 On the other hand, when it is determined in step S142 that the ID release wait counter is 0, the stylus 2 cancels the registration of the local ID by deleting the local ID from the memory 45 (step S144), and sets the reset executing flag. “FALSE” is set (step S145). Then, the command signal reception process is completed, and the process returns to step S100 of FIG. As a result, the delayed registration of the local ID is deregistered.

以上説明したように、本実施の形態によるセンサコントローラ31及びスタイラス2によれば、センサコントローラ31は、設定指示を示すコマンド信号によりスタイラス2にローカルIDを割り当て、さらに、その他のコマンド信号にローカルIDを含めることにより、そのコマンド信号に応答すべきスタイラス2を指定することができる。したがって、各スタイラスがダウンリンク信号DSを送信するタイミングを柔軟に変更することが可能になる。 As described above, according to the sensor controller 31 and the stylus 2 according to the present embodiment, the sensor controller 31 assigns a local ID to the stylus 2 by a command signal indicating a setting instruction, and further assigns a local ID to other command signals. By including, the stylus 2 to respond to the command signal can be specified. Therefore, it is possible to flexibly change the timing at which each stylus transmits the downlink signal DS.

また、センサコントローラ31は、コマンド信号にローカルIDの値を1つ含めるだけで、コマンド信号に応答すべきスタイラス2を指定することができるので、各スタイラス2がダウンリンク信号DSを送信するタイミングを予め行うネゴシエーションにより決定する場合に比べ、コマンド信号のサイズを小さくすることが可能になる。 Further, since the sensor controller 31 can specify the stylus 2 to respond to the command signal only by including one local ID value in the command signal, the timing at which each stylus 2 transmits the downlink signal DS can be determined. It is possible to reduce the size of the command signal as compared with the case of determining by negotiation performed in advance.

また、ステップS130又はステップS140において、受信されたコマンド信号が登録中のローカルIDを含まないと判定した場合、スタイラス2は、直ちに次のコマンド信号の受信動作(ステップS111)に移ることができる。したがって、他のスタイラス2が送信するダウンリンク信号DSの長さによらず、好適に次のコマンド信号を受信することが可能になる。 If it is determined in step S130 or step S140 that the received command signal does not include the registered local ID, the stylus 2 can immediately move to the next command signal reception operation (step S111). Therefore, it is possible to preferably receive the next command signal regardless of the length of the downlink signal DS transmitted by the other stylus 2.

以上、本発明の好ましい実施の形態について説明したが、本発明はこうした実施の形態に何等限定されるものではなく、本発明が、その要旨を逸脱しない範囲において、種々なる態様で実施され得ることは勿論である。 Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and the present invention can be implemented in various embodiments without departing from the gist thereof. Of course.

例えば、上記実施の形態では、位置検出システム1が2本のペン型スタイラス2a,2bと1個の定規型スタイラス2cとを含むものとして説明したが、位置検出システム1に含まれるスタイラス2の数はこれに限られない。本発明は、形態を問わず複数のスタイラス2を含む位置検出システム1に適用可能である。 For example, in the above embodiment, the position detection system 1 has been described as including two pen-type styli 2a and 2b and one ruler-type stylus 2c, but the number of styluses 2 included in the position detection system 1 Is not limited to this. The present invention can be applied to a position detection system 1 including a plurality of styli 2 regardless of the form.

図28及び図29はそれぞれ、本発明の実施の形態の第1の変形例によるスタイラス2a,2bとセンサコントローラ31との間で送受信される信号を示すタイムチャートである。図28には、図22と同様に、センサコントローラ31がスタイラス2aを登録した後、さらにスタイラス2bを登録する場面を示し、図29には、図24と同様に、センサコントローラ31がスタイラス2a,2cそれぞれのデバイスタイプに基づいて送信スケジュールの再調整を行った後、スタイラス2a,2cによる通常の書き込みが行われている場面を示している。 28 and 29 are time charts showing signals transmitted and received between the stylus 2a and 2b and the sensor controller 31 according to the first modification of the embodiment of the present invention, respectively. FIG. 28 shows a scene in which the sensor controller 31 registers the stylus 2a and then further registers the stylus 2b as in FIG. 22, and FIG. 29 shows a scene in which the sensor controller 31 registers the stylus 2a, as in FIG. 24. 2c Shows a scene in which normal writing is performed by the styli 2a and 2c after the transmission schedule is readjusted based on each device type.

本変形例では、上述したフレーム通信により、スタイラス2a,2bとセンサコントローラ31との間の通信が行われる。このフレーム通信は、それぞれ4つのスロットT1〜T4を含むフレームF1,F2,・・・を利用して実行される。なお、1フレーム内のスロットの数は4つに限定されない。上述したように、各フレームは液晶パネル32(図1参照)の表示動作期間であり、各スロットのタイミングは液晶パネル32のブランク期間に基づいて決定される。センサコントローラ31は、液晶パネル32から発生するノイズを観測するか、又は、液晶パネル32から情報を取得することにより、各スロットのタイミング及び時間長、並びに、各フレームに含まれるスロットの数を決定する。決定されたこれらの情報は、アップリンク信号USにより、センサコントローラ31からスタイラス2に対して通知される。 In this modification, communication between the stylus 2a and 2b and the sensor controller 31 is performed by the frame communication described above. This frame communication is executed using frames F1, F2, ... Containing four slots T1 to T4, respectively. The number of slots in one frame is not limited to four. As described above, each frame is a display operation period of the liquid crystal panel 32 (see FIG. 1), and the timing of each slot is determined based on the blank period of the liquid crystal panel 32. The sensor controller 31 determines the timing and time length of each slot and the number of slots included in each frame by observing the noise generated from the liquid crystal panel 32 or acquiring information from the liquid crystal panel 32. To do. The determined information is notified from the sensor controller 31 to the stylus 2 by the uplink signal US.

センサコントローラ31は、所定数(図28では3個)のフレームごとに、その最初のスロットT1を利用してスタイラス検索信号を送信するよう構成される。また、その他の各スロットの先頭で、コマンド信号を送信するよう構成される。一方、スタイラス2は、コマンド信号を受信した場合に、そのコマンド信号に応答してダウンリンク信号DSを送信するよう構成される。 The sensor controller 31 is configured to transmit a stylus search signal using the first slot T1 for each predetermined number of frames (three in FIG. 28). It is also configured to send a command signal at the beginning of each of the other slots. On the other hand, when the stylus 2 receives a command signal, the stylus 2 is configured to transmit a downlink signal DS in response to the command signal.

本実施の形態においても、ダウンリンク信号DSの送信継続時間はスタイラス2の仕様によって異なり得る。センサコントローラ31は、グローバルIDの受信によってスタイラス2のダウンリンク信号DSの送信継続時間を取得した場合には、取得したダウンリンク信号DSの送信継続時間に基づいて送信スケジュールを決定し、ID管理テーブル70に書き込む。そして、書き込んだダウンリンク信号DSの送信継続時間を実現すべく、コマンド信号の送信間隔を制御する。もしダウンリンク信号DSの送信継続時間が1つのスロット内に収まらないほどに長い場合には、センサコントローラ31は、スロットの先頭でのアップリンク信号USの送信をスキップすることにより、そのダウンリンク信号DSの送信継続時間を実現する。 Also in this embodiment, the transmission duration of the downlink signal DS may differ depending on the specifications of the stylus 2. When the sensor controller 31 acquires the transmission duration of the downlink signal DS of the stylus 2 by receiving the global ID, the sensor controller 31 determines the transmission schedule based on the acquired transmission duration of the downlink signal DS, and determines the transmission schedule. Write to 70. Then, the transmission interval of the command signal is controlled in order to realize the transmission duration of the written downlink signal DS. If the transmission duration of the downlink signal DS is too long to fit in one slot, the sensor controller 31 skips the transmission of the uplink signal US at the beginning of the slot, thereby causing the downlink signal. Achieve the transmission duration of DS.

本変形例は、その他の点では、上記実施の形態と同一である。したがって、本変形例によっても、図28に示すように、ローカルIDの設定指示を示すコマンド信号により新たなローカルIDをスタイラス2及びセンサコントローラ31の双方に登録することが可能であるし、図29に例示するように、ローカルIDによってスキャンレートを変更することも可能である。 This modification is the same as the above embodiment in other respects. Therefore, also in this modification, as shown in FIG. 28, a new local ID can be registered in both the stylus 2 and the sensor controller 31 by the command signal indicating the setting instruction of the local ID, and FIG. 29 As illustrated in, it is also possible to change the scan rate by the local ID.

以上説明したように、本変形例によれば、ローカルIDの値を含むコマンド信号をセンサコントローラ31が送信時間ごとに送信しているので、センサコントローラ31は、その送信時間内でダウンリンク信号DSを送信すべきスタイラス2を指定することができる。したがって、各スタイラス2に対する送信時間の割り当てを、フレームよりも短いスロットの単位で柔軟に変更することが可能になる。また、コマンド信号にローカルIDの値を1つ含めるだけで、センサコントローラ31から各スタイラス2に送信時間(本変形例ではスロット)の割り当てを指示することが可能になるので、上述したようにフレームごとにスロットの割り当てを指示するためのアップリンク信号を各スタイラスにブロードキャスト送信する場合に比べ、送信時間としてのスロットの割り当てを指示するためのアップリンク信号のサイズを小さくすることが可能になる。 As described above, according to the present modification, since the sensor controller 31 transmits a command signal including the value of the local ID for each transmission time, the sensor controller 31 transmits the downlink signal DS within the transmission time. You can specify the stylus 2 to send. Therefore, the allocation of the transmission time to each stylus 2 can be flexibly changed in units of slots shorter than the frame. Further, since it is possible to instruct each stylus 2 to allocate the transmission time (slot in this modification) from the sensor controller 31 only by including one local ID value in the command signal, the frame as described above can be instructed. Compared with the case where an uplink signal for instructing slot allocation is broadcast to each stylus for each slot, the size of the uplink signal for instructing slot allocation as a transmission time can be reduced.

図30は、本発明の実施の形態の第2の変形例によるスタイラス2の処理フローを示すフロー図である。本変形例は、「データ送信指示」を示すコマンド信号が「設定指示」を兼ねている点、スタイラス2が設定指示を無視する期間(図26)を設けない点、リセット命令を受けたスタイラス2がローカルIDの登録の解除を先延ばしする期間(図27)を設けない点、ローカルIDの登録を解除する前に筆圧の判定を行わない(筆圧によらずローカルIDの登録の解除を行う)点等で、上記実施の形態と相違する。以下、図30を参照しながら、本変形例によるスタイラス2の動作について説明する。 FIG. 30 is a flow chart showing a processing flow of the stylus 2 according to a second modification of the embodiment of the present invention. In this modification, the command signal indicating the "data transmission instruction" also serves as the "setting instruction", the stylus 2 does not provide a period for ignoring the setting instruction (FIG. 26), and the stylus 2 that has received the reset instruction. Does not set a period (Fig. 27) to postpone the cancellation of the registration of the local ID, and does not judge the pen pressure before canceling the registration of the local ID (cancellation of the registration of the local ID regardless of the pen pressure). It differs from the above embodiment in that it is performed). Hereinafter, the operation of the stylus 2 according to this modification will be described with reference to FIG. 30.

本変形例によるスタイラス2は、初めにスタイラス検索信号の検出を試行し(ステップS200)、その結果としてスタイラス検索信号を検出したか否かを判定する(ステップS201)。スタイラス検索信号の具体的な内容及び検出の方法は上述した実施の形態と同様でよく、その場合には、ステップS201で肯定判定がされるのは、区切りパターンSTPが検出されたときである。 The stylus 2 according to this modification first tries to detect the stylus search signal (step S200), and determines whether or not the stylus search signal is detected as a result (step S201). The specific content of the stylus search signal and the detection method may be the same as those in the above-described embodiment. In that case, the affirmative determination is made in step S201 when the delimiter pattern STP is detected.

ステップS201で否定判定を得た場合、スタイラス2は、ステップS200に戻ってスタイラス検索信号の検出の試行を繰り返す。一方、ステップS201で肯定判定を得た場合のスタイラス2は、コマンド信号の受信動作を実施し(ステップS202)、コマンド信号を受信したか否かを判定する(ステップS203)。ステップS202,S203の処理は、図17に示したステップS111,S112と同様の処理である。 If a negative determination is obtained in step S201, the stylus 2 returns to step S200 and repeats the trial of detecting the stylus search signal. On the other hand, when the affirmative determination is obtained in step S201, the stylus 2 performs a command signal reception operation (step S202) and determines whether or not the command signal has been received (step S203). The processing of steps S202 and S203 is the same as the processing of steps S111 and S112 shown in FIG.

ステップS203で否定判定を得た場合、スタイラス2は、最後にコマンド信号を受信してから所定時間が経過したか否かを判定する(ステップS204)。その結果、経過していないと判定した場合には、ステップS202に戻ってコマンド信号の受信動作を繰り返し、経過したと判定した場合には、その時点でローカルIDがメモリ45(図2参照)に登録されていれば、メモリ45からローカルIDを消去することによってローカルIDの登録を解除し、ステップS200に戻る。 If a negative determination is obtained in step S203, the stylus 2 determines whether or not a predetermined time has elapsed since the last command signal was received (step S204). As a result, if it is determined that the elapse has not occurred, the process returns to step S202 and the command signal reception operation is repeated. If it is determined that the elapse has occurred, the local ID is stored in the memory 45 (see FIG. 2) at that time. If it is registered, the registration of the local ID is canceled by erasing the local ID from the memory 45, and the process returns to step S200.

ステップS203で肯定判定を得た場合のスタイラス2は、受信したコマンド信号により示されるコマンドの内容が「リセット命令」「データ送信指示」のいずれであるかを判定する。本変形例では、上記したように「データ送信指示」を示すコマンド信号が「設定指示」を兼ねているので、3種類のコマンド内容を判別する図17のステップS117とは異なり、ステップS203で判別されるコマンドの内容は2種類である。 When the affirmative determination is obtained in step S203, the stylus 2 determines whether the content of the command indicated by the received command signal is a "reset instruction" or a "data transmission instruction". In this modification, as described above, the command signal indicating the "data transmission instruction" also serves as the "setting instruction", so that the determination is made in step S203, unlike step S117 in FIG. There are two types of commands to be executed.

ステップS206で「リセット命令」であると判定した場合、スタイラス2は、受信されたコマンド信号が登録中のローカルIDを含むか否かを判定する(ステップS207)。そして、含まないと判定した場合には、ステップS202に戻ってコマンド信号の受信動作を繰り返し、含むと判定した場合には、メモリ45からローカルIDを消去することによってローカルIDの登録を解除し、ステップS200に戻る。 If it is determined in step S206 that it is a "reset instruction", the stylus 2 determines whether or not the received command signal includes a registered local ID (step S207). Then, when it is determined that it is not included, the process returns to step S202 and the command signal reception operation is repeated. When it is determined that it is included, the registration of the local ID is canceled by erasing the local ID from the memory 45. Return to step S200.

ステップS206で「データ送信指示」であると判定した場合には、スタイラス2は、次に、自身のメモリ45にローカルIDが登録済みか否かを判定する(ステップS209)。そして、登録されていなければ、受信されたコマンド信号からローカルIDを抽出し、メモリ45に登録する(ステップS210)。そして、登録したローカルIDと、コマンド信号によって送信を指示されたデータとを含むダウンリンク信号DSを送信する(ステップS147)。その後、スタイラス2は、ステップS202に戻ってコマンド信号の受信動作を繰り返す。 When it is determined in step S206 that the "data transmission instruction" is given, the stylus 2 then determines whether or not the local ID has been registered in its own memory 45 (step S209). Then, if it is not registered, the local ID is extracted from the received command signal and registered in the memory 45 (step S210). Then, the downlink signal DS including the registered local ID and the data instructed to be transmitted by the command signal is transmitted (step S147). After that, the stylus 2 returns to step S202 and repeats the operation of receiving the command signal.

ステップS209でローカルIDが登録済みであると判定した場合のスタイラス2は、次に、受信されたコマンド信号が登録中のローカルIDを含むか否かを判定する(ステップS212)。そして、含まないと判定した場合には、ステップS202に戻ってコマンド信号の受信動作を繰り返す。一方、含むと判定した場合には、登録中のローカルIDと、コマンド信号によって送信を指示されたデータとを含むダウンリンク信号DSを送信し(ステップS213)、その後、ステップS202に戻ってコマンド信号の受信動作を繰り返す。 When it is determined in step S209 that the local ID has been registered, the stylus 2 then determines whether or not the received command signal includes the registered local ID (step S212). Then, if it is determined that it is not included, the process returns to step S202 and the command signal reception operation is repeated. On the other hand, if it is determined to be included, a downlink signal DS including the registered local ID and the data instructed to be transmitted by the command signal is transmitted (step S213), and then the process returns to step S202 to return to the command signal. The reception operation of is repeated.

本変形例によっても、センサコントローラ31は、設定指示を示すコマンド信号によりスタイラス2にローカルIDを割り当て、さらに、その他のコマンド信号にローカルIDを含めることにより、そのコマンド信号に応答すべきスタイラス2を指定することができる。したがって、各スタイラスがダウンリンク信号DSを送信するタイミングを柔軟に変更することが可能になる。 Also in this modification, the sensor controller 31 assigns a local ID to the stylus 2 by a command signal indicating a setting instruction, and further includes a local ID in other command signals to provide a stylus 2 to respond to the command signal. Can be specified. Therefore, it is possible to flexibly change the timing at which each stylus transmits the downlink signal DS.

また、センサコントローラ31は、コマンド信号にローカルIDの値を1つ含めるだけで、コマンド信号に応答すべきスタイラス2を指定することができるので、各スタイラス2がダウンリンク信号DSを送信するタイミングを予め行うネゴシエーションにより決定する場合に比べ、コマンド信号のサイズを小さくすることが可能になる。 Further, since the sensor controller 31 can specify the stylus 2 to respond to the command signal only by including one local ID value in the command signal, the timing at which each stylus 2 transmits the downlink signal DS can be determined. It is possible to reduce the size of the command signal as compared with the case of determining by negotiation performed in advance.

また、本変形例では、「データ送信指示」を示すコマンド信号が「設定指示」を兼ねているため、スタイラス2は、ローカルIDを登録した直後のステップS211で、データを含む通常のダウンリンク信号DSを送信することができる。したがって、「設定指示」への返答をデータを含まないダウンリンク信号DSにより行う場合に比べ、ダウンリンク信号DSの送信機会を1回増やすことがてきる。 Further, in this modification, since the command signal indicating the "data transmission instruction" also serves as the "setting instruction", the stylus 2 is a normal downlink signal including data in step S211 immediately after registering the local ID. DS can be transmitted. Therefore, as compared with the case where the response to the "setting instruction" is performed by the downlink signal DS that does not include data, the transmission opportunity of the downlink signal DS can be increased once.

なお、上記実施の形態では、ダウンリンク信号DSはバースト信号及びデータ信号という2つの信号を含んで構成されるとしたが、バースト信号のみやデータ信号のみなど、これら2つの信号の一方のみを含むものとしてもよい。 In the above embodiment, the downlink signal DS is configured to include two signals, a burst signal and a data signal, but includes only one of these two signals such as only a burst signal and only a data signal. It may be a thing.

また、上記実施の形態では、グローバルIDの送信を静電結合を利用するダウンリンク信号DSを用いて実行する例を説明したが、グローバルIDは、アップリンク信号USを受信した時点で変化する操作状態とは異なり静的な情報であるため、例えばブルートゥース(登録商標)等の他の近接型無線通信手段によって、スタイラス2からセンサコントローラ31に通知することとしてもよい。これにより、静電結合を利用する通信のうち、グローバルIDを送信するための通信時間を削減することができ、筆圧値やスイッチの押下状態など操作状態を含むデータ信号の送信機会を増加させることができる。 Further, in the above embodiment, an example in which the transmission of the global ID is executed by using the downlink signal DS using electrostatic coupling has been described, but the global ID is an operation that changes when the uplink signal US is received. Since the information is static unlike the state, the stylus 2 may notify the sensor controller 31 by other proximity wireless communication means such as Bluetooth (registered trademark). As a result, it is possible to reduce the communication time for transmitting the global ID among the communications using electrostatic coupling, and increase the opportunity to transmit the data signal including the operation state such as the pen pressure value and the pressed state of the switch. be able to.

また、上記実施の形態では、アップリンク信号USには、スタイラス検索信号とコマンド信号の2種類があると説明したが、スタイラス検索信号が、新たな未検出のスタイラス2に対するローカルID設定指示コマンドを含んでいるとしてもよい。このようにすることで、スタイラス2は、スタイラス検索信号を受信したタイミングで速やかにローカルIDを設定することが可能になる。 Further, in the above embodiment, it has been explained that the uplink signal US has two types, a stylus search signal and a command signal. However, the stylus search signal issues a local ID setting instruction command for a new undetected stylus 2. It may be included. By doing so, the stylus 2 can quickly set the local ID at the timing when the stylus search signal is received.

また、上記実施の形態では、制御情報c2、検出パターンc1、区切りパターンSTP等の送信方法として「P」「M」「0〜15」等多値をとるシンボルの値を利用する例を説明したが、他の送信方法、例えば、OOK、PSK等の変調方式を利用した送信方法によりこれらの情報ないしパターンを送信することとしてもよい。 Further, in the above embodiment, an example of using the values of symbols having multiple values such as "P", "M", and "0 to 15" as a transmission method of the control information c2, the detection pattern c1, the delimiter pattern STP, etc. has been described. However, these information or patterns may be transmitted by another transmission method, for example, a transmission method using a modulation method such as OK or PSK.

1 位置検出システム
2,2a〜2c スタイラス
3 電子機器
20a 芯体
20b 定規
21,21_1〜21_n 電極
22 スイッチ
23 筆圧検出センサ
24 信号処理部
25,26 スイッチ
27 切替部
30 センサ電極
30X,30Y 線状電極
31 センサコントローラ
32 液晶パネル
33 電子機器制御部
40 切替部
41 受信部
42 波形再生部
43 相関演算器
44 制御部
45 メモリ
46 送信部
47 変調部
48 昇圧回路
50 6軸IMU
51 グローバルID記憶部
60 MCU
61 ロジック部
62 送信部
63 受信部
64 選択部
70 ID管理テーブル
71 ID管理部
72 位置導出部
73 状態検出部
80 パターン供給部
81 スイッチ
82 符号列保持部
83 拡散処理部
84 送信ガード部
85 増幅回路
86 検波回路
87 AD変換器
88x,88y スイッチ
89x,89y 導体選択回路
DS ダウンリンク信号
GID グローバルID
LID ローカルID
SR センシング範囲
US アップリンク信号
1 Position detection system 2, 2a to 2c Stylus 3 Electronic device 20a Core body 20b Ruler 21,21_1 to 21_n Electrode 22 Switch 23 Pen pressure detection sensor 24 Signal processing unit 25, 26 Switch 27 Switching unit 30 Sensor electrode 30X, 30Y Linear Electrode 31 Sensor controller 32 Liquid crystal panel 33 Electronic device control unit 40 Switching unit 41 Reception unit 42 Waveform reproduction unit 43 Correlation calculator 44 Control unit 45 Memory 46 Transmission unit 47 Modulation unit 48 Booster circuit 50 6-axis IMU
51 Global ID storage unit 60 MCU
61 Logic unit 62 Transmission unit 63 Reception unit 64 Selection unit 70 ID management table 71 ID management unit 72 Position derivation unit 73 State detection unit 80 Pattern supply unit 81 Switch 82 Code string holding unit 83 Diffusion processing unit 84 Transmission guard unit 85 Amplifier circuit 86 Detection circuit 87 AD converter 88x, 88y Switch 89x, 89y Conductor selection circuit DS Downlink signal GID Global ID
LID local ID
SR sensing range US uplink signal

Claims (27)

センサに接続されるセンサコントローラと通信するスタイラスであって、
前記センサから送信されるアップリンク信号でありローカルIDを含むアップリンク信号を静電結合を通じて受信する電極と、
メモリと、
前記電極によって受信されたアップリンク信号に含まれるローカルIDが前記メモリに記憶されていない場合に、前記アップリンク信号に含まれるローカルIDを前記メモリに記憶させるプロセッサと、
を有することを特徴とするスタイラス。
A stylus that communicates with the sensor controller connected to the sensor.
An electrode that receives an uplink signal that is an uplink signal transmitted from the sensor and includes a local ID through electrostatic coupling,
Memory and
A processor that stores the local ID included in the uplink signal in the memory when the local ID included in the uplink signal received by the electrode is not stored in the memory.
A stylus characterized by having.
前記プロセッサは、前記電極によって受信されたアップリンク信号に含まれるローカルIDが前記メモリに記憶されている場合に、前記メモリに記憶されているローカルIDを含むダウンリンク信号を生成するプロセッサであり、
前記電極は、前記センサに対して前記ダウンリンク信号を、前記静電結合を通じて送信する電極である、
ことを特徴とする請求項1記載のスタイラス。
The processor is a processor that generates a downlink signal including a local ID stored in the memory when the local ID included in the uplink signal received by the electrode is stored in the memory.
The electrode is an electrode that transmits the downlink signal to the sensor through the electrostatic coupling.
The stylus according to claim 1, wherein the stylus is characterized in that.
前記プロセッサは、前記アップリンク信号が所定期間にわたって前記電極によって受信されない場合、または、前記メモリに記憶されているローカルIDを含むアップリンク信号を受信することなく前記メモリに記憶されていないローカルIDを含むアップリンク信号を所定期間にわたって受信した場合、前記メモリに記憶されているローカルIDを削除するプロセッサである、
ことを特徴とする請求項1記載のスタイラス。
The processor receives a local ID that is not stored in the memory when the uplink signal is not received by the electrode for a predetermined period of time, or without receiving an uplink signal that includes a local ID stored in the memory. A processor that deletes the local ID stored in the memory when the including uplink signal is received for a predetermined period of time.
The stylus according to claim 1, wherein the stylus is characterized in that.
前記プロセッサは、前記アップリンク信号に含まれるコマンドであり前記ローカルIDを前記スタイラスに設定するためのコマンドに基づいて、前記アップリンク信号に含まれるローカルIDを前記メモリに記憶させるプロセッサである、
ことを特徴とする請求項1記載のスタイラス。
The processor is a processor that stores the local ID included in the uplink signal in the memory based on a command included in the uplink signal and a command for setting the local ID in the stylus.
The stylus according to claim 1, wherein the stylus is characterized in that.
前記プロセッサは、前記アップリンク信号に含まれるコマンドであり前記ローカルIDを前記スタイラスからリセットするためのコマンドに基づいて、前記メモリに記憶されているローカルIDを削除するプロセッサである、
ことを特徴とする請求項1記載のスタイラス。
The processor is a processor that deletes a local ID stored in the memory based on a command included in the uplink signal and a command for resetting the local ID from the stylus.
The stylus according to claim 1, wherein the stylus is characterized in that.
前記プロセッサは、前記アップリンク信号に含まれるコマンドであり前記ローカルIDを前記スタイラスからリセットするためのコマンドに基づく前記メモリに記憶されているローカルIDの削除を先延ばしするプロセッサであり、
前記電極は、前記プロセッサによる前記ローカルIDの削除の先延ばしの期間中、前記ダウンリンク信号を前記静電結合を通じて前記センサに送信する電極である、
ことを特徴とする請求項1記載のスタイラス。
The processor is a processor that is a command included in the uplink signal and that delays the deletion of the local ID stored in the memory based on the command for resetting the local ID from the stylus.
The electrode is an electrode that transmits the downlink signal to the sensor through the electrostatic coupling during the procrastination period of the deletion of the local ID by the processor.
The stylus according to claim 1, wherein the stylus is characterized in that.
前記プロセッサは、前記アップリンク信号に含まれるコマンドであり前記スタイラスからデータを送信するためのコマンドに基づいて、前記データを含むダウンリンク信号を生成するプロセッサであり、
前記電極は、前記ダウンリンク信号を前記静電結合を通じて前記センサに送信する電極である、
ことを特徴とする請求項1記載のスタイラス。
The processor is a processor that generates a downlink signal including the data based on a command included in the uplink signal and a command for transmitting data from the stylus.
The electrode is an electrode that transmits the downlink signal to the sensor through the electrostatic coupling.
The stylus according to claim 1, wherein the stylus is characterized in that.
前記プロセッサは、前記ローカルIDの有するビット数よりも多いビット数を有するグローバルIDであり前記スタイラスを他のスタイラスと識別するためのグローバルIDを含むダウンリンク信号を生成するプロセッサであり、
前記電極は、前記グローバルIDを含むダウンリンク信号を前記静電結合を通じて前記センサに送信する電極である、
ことを特徴とする請求項7記載のスタイラス。
The processor is a processor that generates a downlink signal that is a global ID having a number of bits larger than the number of bits of the local ID and includes a global ID for distinguishing the stylus from other styluses.
The electrode is an electrode that transmits a downlink signal including the global ID to the sensor through the electrostatic coupling.
7. The stylus according to claim 7.
前記ローカルIDは、前記センサコントローラによって前記スタイラスに割り当てられるIDである、
ことを特徴とする請求項1記載のスタイラス。
The local ID is an ID assigned to the stylus by the sensor controller.
The stylus according to claim 1, wherein the stylus is characterized in that.
センサコントローラと通信可能なスタイラスによって実行される制御方法であって、
電極は、前記センサコントローラに接続されるセンサから送信されるアップリンク信号でありローカルIDを含むアップリンク信号を静電結合を通じて受信し、
プロセッサは、前記電極によって受信されたアップリンク信号に含まれるローカルIDがメモリに記憶されていない場合に、前記アップリンク信号に含まれるローカルIDを前記メモリに記憶させる、
ことを特徴とする制御方法。
A control method performed by a stylus capable of communicating with a sensor controller.
The electrode is an uplink signal transmitted from a sensor connected to the sensor controller, and receives an uplink signal including a local ID through electrostatic coupling.
When the local ID included in the uplink signal received by the electrode is not stored in the memory, the processor stores the local ID included in the uplink signal in the memory.
A control method characterized by that.
前記プロセッサは、前記電極によって受信されたアップリンク信号に含まれるローカルIDが前記メモリに記憶されている場合に、前記メモリに記憶されているローカルIDを含むダウンリンク信号を生成し、
前記電極は、前記センサに対して前記ダウンリンク信号を、前記静電結合を通じて送信する、
ことを特徴とする請求項10記載の制御方法。
When the local ID included in the uplink signal received by the electrode is stored in the memory, the processor generates a downlink signal including the local ID stored in the memory.
The electrode transmits the downlink signal to the sensor through the electrostatic coupling.
10. The control method according to claim 10.
前記プロセッサは、前記アップリンク信号が所定期間にわたって前記電極によって受信されない場合、または、前記メモリに記憶されているローカルIDを含むアップリンク信号を受信することなく前記メモリに記憶されていないローカルIDを含むアップリンク信号を所定期間にわたって受信した場合、前記メモリに記憶されているローカルIDを削除する、
ことを特徴とする請求項10記載の制御方法。
The processor receives a local ID that is not stored in the memory when the uplink signal is not received by the electrode for a predetermined period of time, or without receiving an uplink signal that includes a local ID stored in the memory. When the including uplink signal is received for a predetermined period, the local ID stored in the memory is deleted.
10. The control method according to claim 10.
前記プロセッサは、前記アップリンク信号に含まれるコマンドであり前記ローカルIDを前記スタイラスに設定するためのコマンドに基づいて、前記アップリンク信号に含まれるローカルIDを前記メモリに記憶させる、
ことを特徴とする請求項10記載の制御方法。
The processor stores the local ID included in the uplink signal in the memory based on the command included in the uplink signal and the command for setting the local ID in the stylus.
10. The control method according to claim 10.
前記プロセッサは、前記アップリンク信号に含まれるコマンドであり前記ローカルIDを前記スタイラスからリセットするためのコマンドに基づいて、前記メモリに記憶されているローカルIDを削除する、
ことを特徴とする請求項10記載の制御方法。
The processor deletes the local ID stored in the memory based on the command included in the uplink signal and the command for resetting the local ID from the stylus.
10. The control method according to claim 10.
前記プロセッサは、前記アップリンク信号に含まれるコマンドであり前記ローカルIDを前記スタイラスからリセットするためのコマンドに基づく前記メモリに記憶されているローカルIDの削除を先延ばしし、
前記電極は、前記プロセッサによる前記ローカルIDの削除の先延ばしの期間中、前記ダウンリンク信号を前記静電結合を通じて前記センサに送信する、
ことを特徴とする請求項10記載の制御方法。
The processor defer the deletion of the local ID stored in the memory based on the command contained in the uplink signal and the command to reset the local ID from the stylus.
The electrodes transmit the downlink signal to the sensor through the electrostatic coupling during the procrastination period of the deletion of the local ID by the processor.
10. The control method according to claim 10.
前記プロセッサは、前記アップリンク信号に含まれるコマンドであり前記スタイラスからデータを送信するためのコマンドに基づいて、前記データを含むダウンリンク信号を生成し、
前記電極は、前記ダウンリンク信号を前記静電結合を通じて前記センサに送信する、
ことを特徴とする請求項10記載の制御方法。
The processor generates a downlink signal including the data based on a command included in the uplink signal and a command for transmitting data from the stylus.
The electrode transmits the downlink signal to the sensor through the electrostatic coupling.
10. The control method according to claim 10.
前記プロセッサは、前記ローカルIDの有するビット数よりも多いビット数を有するグローバルIDであり前記スタイラスを他のスタイラスと識別するためのグローバルIDを含むダウンリンク信号を生成し、
前記電極は、前記グローバルIDを含むダウンリンク信号を前記静電結合を通じて前記センサに送信する、
ことを特徴とする請求項16記載の制御方法。
The processor generates a downlink signal that includes a global ID that has more bits than the local ID has and that identifies the stylus from other styluses.
The electrode transmits a downlink signal including the global ID to the sensor through the electrostatic coupling.
16. The control method according to claim 16.
前記ローカルIDは、前記センサコントローラによって前記スタイラスに割り当てられるIDである、
ことを特徴とする請求項10記載の制御方法。
The local ID is an ID assigned to the stylus by the sensor controller.
10. The control method according to claim 10.
プロセッサに、
センサコントローラに接続されるセンサから送信されるアップリンク信号であり静電結合を通じて電極によって受信されたアップリンク信号に含まれるローカルIDがメモリに記憶されているか否かを判断すること、及び、
前記ローカルIDが前記メモリに記憶されていないと判断した場合に、前記アップリンク信号に含まれるローカルIDを前記メモリに記憶させること、
を実行させるためのプログラム。
To the processor
To determine whether or not the local ID, which is an uplink signal transmitted from the sensor connected to the sensor controller and is included in the uplink signal received by the electrodes through electrostatic coupling, is stored in the memory, and
When it is determined that the local ID is not stored in the memory, the local ID included in the uplink signal is stored in the memory.
A program to execute.
前記プロセッサに、
前記電極によって受信されたアップリンク信号に含まれるローカルIDが前記メモリに記憶されている場合に、前記メモリに記憶されているローカルIDを含むダウンリンク信号を生成すること、
を実行させるための請求項19記載のプログラム。
To the processor
When the local ID included in the uplink signal received by the electrode is stored in the memory, the downlink signal including the local ID stored in the memory is generated.
19. The program according to claim 19.
前記プロセッサに、
前記アップリンク信号が所定期間にわたって前記電極によって受信されない場合、または、前記メモリに記憶されているローカルIDを含むアップリンク信号を受信することなく前記メモリに記憶されていないローカルIDを含むアップリンク信号を所定期間にわたって受信した場合に、前記メモリに記憶されているローカルIDを削除すること、
を実行させるための請求項19記載のプログラム。
To the processor
If the uplink signal is not received by the electrode for a predetermined period of time, or if the uplink signal including the local ID stored in the memory is not received and the uplink signal including the local ID not stored in the memory is received. To delete the local ID stored in the memory when the is received for a predetermined period of time.
19. The program according to claim 19.
前記プロセッサに、
前記アップリンク信号に含まれるコマンドであり前記ローカルIDを前記スタイラスに設定するためのコマンドに基づいて、前記アップリンク信号に含まれるローカルIDを前記メモリに記憶させること、
を実行させるための請求項19記載のプログラム。
To the processor
To store the local ID included in the uplink signal in the memory based on the command included in the uplink signal and for setting the local ID in the stylus.
19. The program according to claim 19.
前記プロセッサに、
前記アップリンク信号に含まれるコマンドであり前記ローカルIDを前記スタイラスからリセットするためのコマンドに基づいて、前記メモリに記憶されているローカルIDを削除すること、
を実行させるための請求項19記載のプログラム。
To the processor
To delete the local ID stored in the memory based on the command included in the uplink signal for resetting the local ID from the stylus.
19. The program according to claim 19.
前記プロセッサに、
前記アップリンク信号に含まれるコマンドであり前記ローカルIDを前記スタイラスからリセットするためのコマンドに基づく前記メモリに記憶されているローカルIDの削除を先延ばしすること、
を実行させるための請求項19記載のプログラム。
To the processor
Deferring the deletion of the local ID stored in the memory based on the command included in the uplink signal and the command for resetting the local ID from the stylus.
19. The program according to claim 19.
前記プロセッサに、
前記アップリンク信号に含まれるコマンドであり前記スタイラスからデータを送信するためのコマンドに基づいて、前記データを含むダウンリンク信号を生成すること、
を実行させるための請求項19記載のプログラム。
To the processor
Generating a downlink signal containing the data based on a command included in the uplink signal for transmitting data from the stylus.
19. The program according to claim 19.
前記プロセッサに、
前記ローカルIDの有するビット数よりも多いビット数を有するグローバルIDであり前記スタイラスを他のスタイラスと識別するためのグローバルIDを含むダウンリンク信号を生成すること、
を実行させるための請求項25記載のプログラム。
To the processor
Generating a downlink signal that is a global ID that has more bits than the local ID has and that includes a global ID that distinguishes the stylus from other styluses.
25. The program according to claim 25.
前記ローカルIDは、前記センサコントローラによって前記スタイラスに割り当てられるIDである、
請求項19記載のプログラム。
The local ID is an ID assigned to the stylus by the sensor controller.
The program according to claim 19.
JP2021003262A 2021-01-13 2021-01-13 Stylus, control method and program executed by stylus Active JP7136940B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2021003262A JP7136940B2 (en) 2021-01-13 2021-01-13 Stylus, control method and program executed by stylus
JP2022139123A JP2022164861A (en) 2021-01-13 2022-09-01 stylus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021003262A JP7136940B2 (en) 2021-01-13 2021-01-13 Stylus, control method and program executed by stylus

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2018536607A Division JP6824992B2 (en) 2016-09-01 2016-09-01 Stylus, sensor controller, and electronic ruler

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2022139123A Division JP2022164861A (en) 2021-01-13 2022-09-01 stylus

Publications (2)

Publication Number Publication Date
JP2021061061A true JP2021061061A (en) 2021-04-15
JP7136940B2 JP7136940B2 (en) 2022-09-13

Family

ID=75380392

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2021003262A Active JP7136940B2 (en) 2021-01-13 2021-01-13 Stylus, control method and program executed by stylus
JP2022139123A Pending JP2022164861A (en) 2021-01-13 2022-09-01 stylus

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2022139123A Pending JP2022164861A (en) 2021-01-13 2022-09-01 stylus

Country Status (1)

Country Link
JP (2) JP7136940B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003283505A (en) * 2002-03-27 2003-10-03 Mitsubishi Electric Corp Gateway apparatus
JP2004199560A (en) * 2002-12-20 2004-07-15 Fujitsu Ltd Ultrasonic type coordinate input device
JP2009211340A (en) * 2008-03-04 2009-09-17 Wao Corporation Digital pen authentication apparatus, digital pen authentication method and program
JP2012022543A (en) * 2010-07-15 2012-02-02 Panasonic Corp Touch panel system
JP2015138559A (en) * 2015-05-01 2015-07-30 株式会社ワコム Position indication method and position detection method
JP2016029531A (en) * 2014-07-25 2016-03-03 シャープ株式会社 Touch input system and display terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5094566B2 (en) * 2008-06-02 2012-12-12 三菱電機株式会社 Video display system
US9703433B2 (en) * 2014-08-18 2017-07-11 Stmicroelectronics Asia Pacific Pte Ltd System and method of communication between a capacitive touch screen and an active stylus
JP6352803B2 (en) * 2014-12-25 2018-07-04 シャープ株式会社 Display system, communication apparatus, and computer program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003283505A (en) * 2002-03-27 2003-10-03 Mitsubishi Electric Corp Gateway apparatus
JP2004199560A (en) * 2002-12-20 2004-07-15 Fujitsu Ltd Ultrasonic type coordinate input device
JP2009211340A (en) * 2008-03-04 2009-09-17 Wao Corporation Digital pen authentication apparatus, digital pen authentication method and program
JP2012022543A (en) * 2010-07-15 2012-02-02 Panasonic Corp Touch panel system
JP2016029531A (en) * 2014-07-25 2016-03-03 シャープ株式会社 Touch input system and display terminal
JP2015138559A (en) * 2015-05-01 2015-07-30 株式会社ワコム Position indication method and position detection method

Also Published As

Publication number Publication date
JP7136940B2 (en) 2022-09-13
JP2022164861A (en) 2022-10-27

Similar Documents

Publication Publication Date Title
JP7064037B2 (en) Auxiliary devices and electronic devices
CN111665961B (en) Input device
JP7473699B2 (en) Sensor Controller
CN112352211A (en) Sensor controller, active pen and communication method
JP7482706B2 (en) Method performed by a stylus and sensor controller, stylus and sensor controller
JP7136940B2 (en) Stylus, control method and program executed by stylus
TWI847161B (en) Touch pen, control method implemented by touch pen, and non-temporary recording medium readable by computer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210205

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220208

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220329

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: 20220809

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220901

R150 Certificate of patent or registration of utility model

Ref document number: 7136940

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150