JP6662199B2 - Program, method for extracting device identification information, and communication device - Google Patents
Program, method for extracting device identification information, and communication device Download PDFInfo
- Publication number
- JP6662199B2 JP6662199B2 JP2016106426A JP2016106426A JP6662199B2 JP 6662199 B2 JP6662199 B2 JP 6662199B2 JP 2016106426 A JP2016106426 A JP 2016106426A JP 2016106426 A JP2016106426 A JP 2016106426A JP 6662199 B2 JP6662199 B2 JP 6662199B2
- Authority
- JP
- Japan
- Prior art keywords
- order
- identification information
- devices
- acquisition
- transmission
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Description
本発明は、プログラム,機器の識別情報の抽出方法,及び通信装置に関する。 The present invention relates to a program, a method for extracting identification information of a device, and a communication device.
近年、IoT(Internet of Things)やM2M(Machine to Machine)が注目を集めており、様々な業界や現場でセンサネットワーク化が始まろうとしている。例えば、介護の現場にセンサを導入し、被介護者の状態を把握することが考えられる。或いは、家庭にセンサやコントローラを導入し、HEMS(Home Energy Management System:家庭用(住
宅用)エネルギー管理システム)を構築することが考えられる。或いは、街や河川などにセンサを導入し、防犯・防災を図ることが考えられる。
In recent years, IoT (Internet of Things) and M2M (Machine to Machine) have attracted attention, and sensor networks are beginning to be used in various industries and sites. For example, it is conceivable to introduce a sensor at the care site to grasp the state of the care receiver. Alternatively, it is conceivable to construct a HEMS (Home Energy Management System: home (home) energy management system) by introducing sensors and controllers into the home. Alternatively, it is conceivable to introduce a sensor into a city or a river to achieve crime prevention and disaster prevention.
ネットワークの構築作業において、多様な通信機器の接続が簡単・安全に行われるように、或る通信機器への接続が許可される通信機器を限定したい場合がある。或いは、或る通信機器への多数の機器の収容作業を、一度に実施する場合もある。 In a network construction work, there are cases where it is desired to limit communication devices permitted to connect to a certain communication device so that various communication devices can be connected easily and safely. Alternatively, the work of accommodating many devices in a certain communication device may be performed at once.
或る通信機器への接続が許可される通信機器のMAC(Media Access Control)アドレスのリストを作成しようとする場合、従来では、以下の方法が考えられる。例えば、通信機器に貼付されたラベルに記載された通信機器のMACアドレスをリストに手入力することが考えられる。或いは、端末を用いて通信機器にログインし、通信機器に対するコマンド入力で応答されたMACアドレスをリストに転記することが考えられる。或いは、通信機器からパケットを出力させて、パケットの送信元アドレスとして設定されたMACアドレスを取得する方法も考えられる。 Conventionally, when creating a list of MAC (Media Access Control) addresses of communication devices permitted to connect to a certain communication device, the following method is considered. For example, it is conceivable to manually input the MAC address of the communication device described on the label attached to the communication device into the list. Alternatively, it is conceivable that the user logs in to the communication device using the terminal and transcribes the MAC address responded by the command input to the communication device to the list. Alternatively, a method in which a packet is output from a communication device and a MAC address set as a source address of the packet is obtained is also conceivable.
しかしながら、上記したいずれの方法も、手間がかかり煩雑であった。本発明は、対象外の機器の識別情報が混入した複数の識別情報から対象の機器の識別情報を抽出可能なプログラム,抽出方法,及び通信装置を提供することを目的とする。 However, all of the above methods are troublesome and complicated. An object of the present invention is to provide a program, an extraction method, and a communication device capable of extracting identification information of a target device from a plurality of pieces of identification information mixed with identification information of a non-target device.
一つの態様では、プログラムは、複数の機器の数と、複数の機器から所定の送信順で送信される各機器の識別情報を受信装置で受信する場合に取得された機器の識別情報と機器の識別情報の取得順との対応関係を記憶する処理と、対応関係における識別情報数が前記複数の機器数より多い場合に、送信順のうち少なくとも2つの順位にそれぞれ対応する機器の識別情報を取得し、対応関係と取得された識別情報とを用いて、送信順の順位と取得順の順位との対応付けを行い、送信順の順位と対応づかない識別情報を除去するとともに、送信順の順位と対応づく識別情報を複数の機器のいずれかの識別情報として抽出する処理とをコンピュータに実行させる。 In one aspect, the program includes the number of the plurality of devices, the identification information of the device obtained when the receiving device receives the identification information of each device transmitted in a predetermined transmission order from the plurality of devices, and the identification information of the device. A process of storing a correspondence relationship with the acquisition order of the identification information, and acquiring the identification information of the devices respectively corresponding to at least two of the transmission orders when the number of the identification information in the correspondence relationship is larger than the plurality of devices. Then, using the correspondence and the obtained identification information, the order of the transmission order and the order of the acquisition order are associated, and the identification information that does not correspond to the order of the transmission order is removed, and the order of the transmission order is removed. And extracting the identification information corresponding to the information as identification information of any of the plurality of devices.
一側面では、複数の識別情報から対象の機器の識別情報を抽出することができる。 In one aspect, identification information of a target device can be extracted from a plurality of identification information.
以下、図面を参照してプログラム,抽出方法,及び通信装置の実施形態について説明する。実施形態の構成は例示であり、実施形態の構成に限定されない。 Hereinafter, embodiments of a program, an extraction method, and a communication device will be described with reference to the drawings. The configuration of the embodiment is an exemplification, and is not limited to the configuration of the embodiment.
<実施形態1>
或るネットワーク装置(通信装置)への接続が許可される(ネットワーク装置への収容対象の)通信機器のMACアドレスをパケットから収集することを考える。収集方法の一例として、WPS(Wi-Fi Protected Setup)のPBC方式(Push Button Configuration,
プッシュボタン式とも呼ばれる)を用いることが考えられる。この場合、通信機器(以下
単に「機器」と表記する場合もある)に備えられたプッシュボタンを押すことで、機器からパケットを含んだ無線信号が送信され、当該パケットに含まれる機器のMACアドレスが収集される。
<First embodiment>
Assume that the MAC address of a communication device (to be accommodated in the network device) that is permitted to connect to a certain network device (communication device) is collected from the packet. As an example of the collection method, a PBC method (Push Button Configuration, WPS (Wi-Fi Protected Setup)) is used.
(Also referred to as a push button type). In this case, by pressing a push button provided on a communication device (hereinafter sometimes simply referred to as “device”), a wireless signal including a packet is transmitted from the device, and the MAC address of the device included in the packet is transmitted. Is collected.
収容対象の機器が複数ある場合、所定の順序(機器の操作順)で、各機器のプッシュボタンが押され、各機器からの送信されるパケットを受信することで、MACアドレス収集
が行われる。このような、各機器から送信される無線信号(パケット)を受信する場合に、収容対象外の無線機器からの無線信号が受信され、当該無線機器のMACアドレスが収集結果に混入する場合がある。以下、MACアドレスの収集結果に混入した対象外の機器のMACアドレスを除去するとともに、対象の機器のMACアドレスを抽出し得る通信装置,機器の識別情報の抽出方法及びプログラムについて説明する。
When there are a plurality of devices to be accommodated, a push button of each device is pressed in a predetermined order (operation order of the devices), and a MAC address is collected by receiving a packet transmitted from each device. When such a wireless signal (packet) transmitted from each device is received, a wireless signal from a wireless device not to be accommodated is received, and the MAC address of the wireless device may be mixed in the collection result. . Hereinafter, a description will be given of a communication device capable of extracting a MAC address of a non-target device mixed in a MAC address collection result and extracting a MAC address of the target device, a method of extracting identification information of the device, and a program.
<リスト作成システムの構成>
図1は、実施形態1に係るリスト作成システムの構成例を示し、図2は、ネットワーク装置のハードウェア構成例を示す図である。
<Configuration of list creation system>
FIG. 1 illustrates a configuration example of a list creation system according to the first embodiment, and FIG. 2 illustrates a hardware configuration example of a network device.
図1において、システムは、ネットワーク装置(通信装置)1と、ネットワーク装置1と接続可能な通信機器3とを含む。ネットワーク装置1は、例えば、無線LAN(IEEE 802.11シリーズ)のアクセスポイント(AP)やコントローラである。但し、後述するように、APやコントローラ以外であっても良い。例えば、ネットワーク装置1は、HUB,スイッチ(レイヤ2スイッチ,レイヤ3スイッチなど),ルータなどの集線装置であっても良く、サーバなどの端末装置であっても良い。ネットワーク装置1は、「通信装置」の一例である。
In FIG. 1, the system includes a network device (communication device) 1 and a
ネットワーク装置1は、無線通信部14Aと、通信インタフェース(通信IF)15と、許可リスト30(単にリスト30ともいう)と、通信可否判定部31とを含む。無線通信部14Aは、受信部141及び送信部142を含み、機器3との通信によって情報やデータを含むパケットを送受信する。
The
通信可否判定部31は、許可リスト30を参照し、パケットの送信元MACアドレスがネットワーク装置1への接続を許可された(許可リスト30に登録された)機器3(機器3Cと表記する)のMACアドレスか否かの判定を行う。送信元が機器3C以外の機器である場合、パケットは破棄される。通信可否判定部31は、「通信装置で受信された送信データの中継可否を前記抽出部によって抽出された機器の識別情報を用いて判定する判定部」の一例である。
The communication
通信IF15は、例えばLANのようなネットワーク(NW)2と接続されており、NW2との間で送受信されるパケットを扱う。NW2には、例えば、機器3Cとの通信相手が接続される(図2参照)。通信IF15は、機器3Cから通信相手向けのパケット送信や、通信相手から機器3C向けのパケット受信を行う。
The communication IF 15 is connected to a network (NW) 2 such as a LAN, for example, and handles packets transmitted / received to / from the
このように、実施形態1に係るネットワーク装置1は、ネットワーク装置1への接続が許可された機器3Cの識別情報(例えば、MACアドレス(物理アドレスの一例))がリスト30に登録(記憶)される。そして、リスト30に登録された機器3Cのパケット転送が許容され、機器3C以外のパケット転送は遮断される。
As described above, in the
ネットワーク装置1は、リスト30を生成する許可リスト生成部20を含む。ネットワーク装置1は、例えば、プッシュボタン式のWPS機能を有している。
The
ネットワーク装置1への収容対象の機器3(「機器3A」と表記する)は、プッシュボタン3aを有している。プッシュボタン3aが押されると、機器3AのMACアドレスを含んだパケットが機器3Aから送信される。受信部141は、機器3Aからのパケットを受信し、パケットを許可リスト生成部20に送る。
The
許可リスト生成部20は、受信部141で受信される、機器3AからのMACアドレスを収集できる。但し、このようなMACアドレスの収集時に、対象外の機器3(「機器3
B」と表記する)からの電波が受信部141で受信され、機器3BのMACアドレスも収集される(混入する)場合がある。混入を目的として、機器3Bが意図的にネットワーク装置1の無線通信エリアに配置される場合もあり得る。許可リスト生成部20は、このような混入したMACアドレスを除去する。
The permission
B) may be received by the
図1において、許可リスト生成部20は、操作部21と、収集部22と、制御部23と、抽出部24と、出力部25とを含む。操作部21は、機器3AからMACアドレスを収集するための操作に係るユーザインタフェース(UI)を作業者5に提供する。
In FIG. 1, the permission
収集部22は、受信部141で受信されたパケットのパケットキャプチャを行い、パケットに含まれる送信元MACアドレスを収集する。収集されたMACアドレスは抽出部24に供給される。
The
抽出部24は、MACアドレスの取得順と各取得順に対応するMACアドレスとの対応関係を示す対応表をメモリ上に生成する。受信部141は、機器3Aだけでなく、対象外(非収容対象)の機器3Bからの無線信号(パケット)も受信し得るので、機器3AのMACアドレス収集において、機器3BのMACアドレスが混入することがある。
The
抽出部24は、後述する方法で、収集部22で収集されたMACアドレス群から機器3AのMACアドレスを抽出する(機器3BのMACアドレスを除去する)。出力部25は、抽出された機器3AのMACアドレスを出力する。出力されたMACアドレスは、リスト30に登録(記憶)される。制御部23は、操作部21,収集部22,抽出部24,及び出力部25の動作を制御する。
The
<ネットワーク装置のハードウェア構成>
ネットワーク装置1(通信装置)は、例えば、図2に示す構成要素を含む、通信機能を備えた情報処理装置(コンピュータ)である。図2に示す例では、ネットワーク装置1は、バスを介して相互に接続された、Central Processing Unit(CPU)11と、主記憶
装置12と、補助記憶装置13と、無線通信回路14と、通信インタフェース(通信IF)15とを含む。無線通信回路14は、図示しないアンテナを含む。通信IF15は、NW2と接続される。ネットワーク装置1は、さらに、入力装置16と、出力装置17とを含む。
<Hardware configuration of network device>
The network device 1 (communication device) is, for example, an information processing device (computer) including the components illustrated in FIG. 2 and having a communication function. In the example illustrated in FIG. 2, the
主記憶装置12は、プログラムの展開領域,CPU11の作業領域,データやプログラムの記憶領域又はバッファ領域として使用される。主記憶装置12は、例えばRandom Access Memory(RAM),或いはRAMとRead Only Memory(ROM)との組み合わせで形成される。
The
補助記憶装置13は、データやプログラムの記憶領域として使用される。補助記憶装置13は、例えば、ハードディスクドライブ(HDD),Solid State Drive(SSD),
フラッシュメモリ,Electrically Erasable Programmable Read-Only Memory(EEPR
OM)などの不揮発性記憶媒体で形成される。補助記憶装置13には、ディスク型記憶媒体や、USBメモリなど、可搬性を有する記録媒体を含むことができる。主記憶装置12及び補助記憶装置13のそれぞれは、「記憶装置」,「記憶媒体」,「メモリ」,「記憶部」の一例である。以下の説明において、主記憶装置12及び補助記憶装置13の少なくとも一方を際して「メモリ」と表記することもある。
The
Flash memory, Electrically Erasable Programmable Read-Only Memory (EEPR)
OM) or the like. The
無線通信回路14は、ベースバンド回路(BB回路)と、Radio Frequency(RF)回
路とを含む。BB回路は、データ(ディジタル)信号とベースバンド信号(BB信号)との間の変換処理を行う。RF回路は、BB信号と無線信号との間の変換処理を行う。無線
信号はアンテナ(図示せず)によって送受信される。
The
通信IF15は、パケットの送受信処理等を行う通信インタフェース回路である。通信IFとして、例えば、LANカード或いはネットワークインタフェースカードと呼ばれるネットワークカードを適用できる。 The communication IF 15 is a communication interface circuit that performs packet transmission / reception processing and the like. For example, a network card called a LAN card or a network interface card can be applied as the communication IF.
入力装置16は、データや情報の入力に使用される。入力装置16は、例えば、キー,ボタン,ポインティングデバイス(マウスなど),タッチパネルなどである。出力装置17は、データや情報の出力に使用される。出力装置17は、例えば、ディスプレイやプリンタである。入力装置16は、マイクロフォンのような音声入力装置を含む。また、出力装置17は、スピーカやランプのような、音や光の出力装置も含む。
The
CPU11は、主記憶装置12及び補助記憶装置13の少なくとも一方に記憶されたプログラムを主記憶装置12にロードして実行する。CPU11がプログラムを実行することによって、ネットワーク装置1としての動作乃至処理が行われる。CPUは、「制御装置」,「制御部」,「コントローラ」,「プロセッサ」の一例である。
The
CPUは、MPU(Microprocessor)、プロセッサとも呼ばれる。CPUは、単一のプロセッサに限定される訳ではなく、マルチプロセッサ構成であってもよい。また、単一のソケットで接続される単一のCPUがマルチコア構成を有していても良い。CPUで行われる処理の少なくとも一部は、CPU以外のプロセッサ、例えば、Digital Signal Processor(DSP)、Graphics Processing Unit(GPU)、数値演算プロセッサ、ベクトルプロセッサ、画像処理プロセッサ等の専用プロセッサで行われても良い。 The CPU is also called an MPU (Microprocessor) or a processor. The CPU is not limited to a single processor, but may have a multiprocessor configuration. Further, a single CPU connected by a single socket may have a multi-core configuration. At least part of the processing performed by the CPU is performed by a processor other than the CPU, for example, a dedicated processor such as a digital signal processor (DSP), a graphics processing unit (GPU), a numerical processor, a vector processor, and an image processor. Is also good.
また、CPUで行われる処理の少なくとも一部は、集積回路(IC)、その他のディジタル回路で行われても良い。また、集積回路やディジタル回路はアナログ回路を含んでいても良い。集積回路は、LSI,Application Specific Integrated Circuit(ASIC),
プログラマブルロジックデバイス(PLD)を含む。PLDは、例えば、Field-Programmable Gate Array(FPGA)を含む。CPUで行われる処理の少なくとも一部は、プロセッサ
と集積回路との組み合わせにより実行されても良い。組み合わせは、例えば、マイクロコントローラ(MCU),SoC(System-on-a-chip),システムLSI,チップセットなどと呼ばれる。
At least a part of the processing performed by the CPU may be performed by an integrated circuit (IC) or another digital circuit. Further, the integrated circuit and the digital circuit may include an analog circuit. Integrated circuits are LSI, Application Specific Integrated Circuit (ASIC),
Includes a programmable logic device (PLD). The PLD includes, for example, a Field-Programmable Gate Array (FPGA). At least part of the processing performed by the CPU may be performed by a combination of a processor and an integrated circuit. The combination is called, for example, a microcontroller (MCU), a SoC (System-on-a-chip), a system LSI, a chip set, or the like.
無線通信回路14は、無線通信部14Aとして動作する。図1に示す例では、機器3Aとネットワーク装置1とが無線通信を行う構成を例示しているが、機器3Aとネットワーク装置1とは有線ネットワークで接続されても良い。この場合、無線通信回路14の代わりの通信IFがネットワーク装置1に設けられる。
The
CPU11は、プログラムの実行によって、許可リスト生成部20及び通信可否判定部31として動作する。許可リスト30は、主記憶装置12及び補助記憶装置13の少なくとも一方に記憶される。入力装置16及び出力装置17は、CPU11の制御下で、操作部21として作業者5にUIを提供するために使用される。
The
<ユーザインタフェース(UI)の例>
図3,図4,図5,及び図6は、作業者に提供されるUIの例を示す図である。図3は、出力装置17のディスプレイに表示される操作画面の表示例を示す。図3に示す操作画面は、上段の左側に設けられた第1欄211と、第1欄の右側に設けられた第2欄212と、第1欄211及び第2欄212の下側に設けられた第3欄213とを含む。
<Example of user interface (UI)>
FIGS. 3, 4, 5, and 6 are diagrams illustrating examples of the UI provided to the worker. FIG. 3 shows a display example of an operation screen displayed on the display of the
第1欄211は、操作工程が時系列で並べられたインデックスが表示され、インデック
スが指定(クリックなど)されると、インデックスに応じた詳細画面が第2欄212に表示される。第3欄213は、各種処理の経過状況が示される欄である。例えば、ネットワーク装置1への収容対象の機器数(収容対象数),特定済みのMACアドレスの数,残り数,混入したMACアドレスの総数,排除(除外)済みの数,残り数が表示される。
In the
図4は、収容対象機器数を入力する画面の例を示す。画面212aは、例えば、第1欄211に表示された操作工程「収容数入力」のインデックスが指定(クリックなど)されることによって、第2欄212に表示される。
FIG. 4 shows an example of a screen for inputting the number of accommodation target devices. The
画面212aには、操作指示のメッセージである、「収容対象機器数を入力して下さい」との文字列と、収容対象機器数の入力欄と、「決定」ボタンとが表示される。文字列に従って入力欄に機器数を入力し、「決定」ボタンを押すことで、作業者5は、収容対象機器数を生成部20に入力することができる。
On the
図5は、初回収集時の画面の例を示す。画面212bは、例えば、第1欄211に表示された操作工程「初回収集」のインデックスが指定(クリックなど)されることによって、第2欄212に表示される。
FIG. 5 shows an example of a screen at the time of initial collection. The
画面212bには、操作指示のメッセージである、「初回のMAC収集を行います。開始を押して・・・・」との文字列と、「開始」ボタンと、「終了」ボタンとが表示される。作業者5は、収容対象の複数の機器3Aについて、任意の操作順(ボタン3aを押す順)を決定しておき、以下の操作を行う。
On the
すなわち、作業者5は、「開始」ボタンを押した後、機器3Aのボタン3aを上記で決定した操作順に押す。続いて、「終了」ボタンを押す。「開始」ボタンの押し下げによって収集部22によるパケットキャプチャが開始され、「終了」ボタンの押し下げによってパケットキャプチャが終了する。これによって、ボタン3aが押された機器3AからのMACアドレスが収集部22で収集される。このとき、収集結果数>収容対象機器数であれば、再収集工程に移り図6を表示する。同数であれば、収集結果を出力する工程に移る。
That is, after pressing the “start” button, the
図6は、再収集時の画面の例を示す。画面212cには、操作指示のメッセージである、「再収集を行います。開始を押して・・・・」との文字列と、「開始」ボタンと、「終了」ボタンとが表示される。メッセージには、ボタン3aを押す(MACアドレスを再収集する)機器の指定情報が表示される。指定情報は、機器の初回操作時の操作順を特定する(表示する)ことで行われる。
FIG. 6 shows an example of a screen at the time of re-collection. The
作業者5は、「開始」ボタンを押した後、指定された機器3Aのボタン3aを押す。その後、「終了」ボタンを押す。これによって、ボタン3aが押された機器3AからのMACアドレスが収集部22で再収集される。操作順と結果順との対応付けが終了する(混入数が0となる)まで、再収集の操作を促す画面212cの表示が繰り返される。
After pressing the “start” button, the
なお、画面212b,212cにおける「開始」ボタンや「終了」ボタンを省略してもよい。この場合、例えば、画面212bや212cの表示とともにパケットキャプチャが開始され、パケットキャプチャの終了がタイマの満了によって管理されるようにしても良い。また、作業者5の誤操作に対応できるように、キャンセルボタンや送信ボタンのような他のボタンが設けられていても良い。
The “start” button and the “end” button on the
なお、上記したUIのデータ(画面データ)は、メモリに記憶され、CPU11は、入力画面210の描画処理を行う。CPU11は、描画したデータを遠隔のコンピュータ(情報処理装置)へ送信することもできる。
The above-described UI data (screen data) is stored in the memory, and the
収容対象の全てのMACアドレスが抽出された場合に、これらの抽出されたMACアドレスは、リスト30に登録(記憶)される。この結果、登録されたMACアドレスを有する機器3は、機器3Cとして扱われ、機器3CのMACアドレスを送信元とするパケットは、通信可否判定部31の判定において遮断(フィルタリング)されない。
When all the MAC addresses to be accommodated have been extracted, these extracted MAC addresses are registered (stored) in the
<リスト作成方法の例(動作例)>
一例として、図7〜図13を用い、ネットワーク装置1への接続が許可される(収容対象の)9台の機器3Aのリストを生成する場合の基本動作例について説明する。収容対象の9台の機器3Aについて、作業者5が、任意の操作順(「収集操作順」と称する)を決定する。作業者5は、操作部21からのUI(入力画面121a,121b)に従って、収容対象機器数の入力及び初回のMACアドレス収集を行う。これによって、収集操作順に従って各機器3Aが操作され、各機器3Aから送信されるパケットの送信元アドレスが機器3AのMACアドレスとして収集される。
<Example of list creation method (operation example)>
As an example, a basic operation example in the case of generating a list of nine
図7の上段は、MACアドレスの初回収集直後の状態を示す表である。対象の各機器3Aに対する初回の操作、即ち全9台の操作に対して、MACアドレスが12台分収集されている。図7の上段に示す例では、MACアドレス“X”,“A”,“B”・・・の順で受信(取得)され、各MACアドレスに受信順による順位が付与されている。このような、収集操作順に従った各機器の操作の間に収集されるMACアドレスの受信順序を「収集結果順」と呼ぶ。収集操作順は、「送信順」の一例であり、収集結果順は、「取得順」の一例である。
The upper part of FIG. 7 is a table showing a state immediately after the initial collection of the MAC address. For the first operation on each
収容対象機器数の9台に対して受信されたMACアドレス数が12であるため、収集結果数−収容対象数から、収容対象外のMACアドレスが3台分混入している“混在”と判定される。しかし、収集結果順の各順位が、収集操作順の各順位とどのように対応するかは不明である。このため、詳細検査として操作順と収集結果順との対応付けが行われる。 Since the number of MAC addresses received with respect to nine devices to be accommodated is 12, the number of collected results minus the number of accommodated devices is determined to be “mixed” in which three MAC addresses that are not accommodated are mixed. Is done. However, it is unknown how each rank in the collection result order corresponds to each rank in the collection operation order. For this reason, the order of operation and the order of collection result are associated as a detailed inspection.
図8は、対応付けの説明図である。図8では、収集結果順“1”においてMACアドレス“X”が取得され、収集結果順“2”においてMACアドレス“A”が得られている。検査では、これらの情報が既知であることを前提に、収容対象の機器の操作順を指定して再収集を行い、再収集によって得られたMACアドレスを用いて収集操作順に対する収集結果順の対応付けを行う。以下の説明において、収集結果順を「結果順」と表記し、収集操作順を「操作順」と表記することもある。MACアドレスは、「物理アドレス」、「機器の識別情報」の一例であり、機器を一意に識別できれば、物理アドレス以外のアドレスや情報などを機器の識別情報として適用可能である。 FIG. 8 is an explanatory diagram of the association. In FIG. 8, the MAC address “X” is obtained in the collection result order “1”, and the MAC address “A” is obtained in the collection result order “2”. In the inspection, assuming that such information is known, re-collection is performed by specifying the operation order of the equipment to be accommodated, and the collection result order is compared with the collection operation order using the MAC address obtained by the re-collection. Perform association. In the following description, the collection result order may be referred to as “result order”, and the collection operation order may be referred to as “operation order”. The MAC address is an example of “physical address” and “device identification information”. If the device can be uniquely identified, addresses and information other than the physical address can be applied as device identification information.
図8の例では、操作順“1”を指定し、操作順“1”に対応する機器を操作してMACアドレスを再取得した場合を仮定する。再取得の結果としてMACアドレス“A”が得られた場合、操作順“1”は結果順“2”に対応づけられる。 In the example of FIG. 8, it is assumed that the operation order “1” is designated, the device corresponding to the operation order “1” is operated, and the MAC address is reacquired. When the MAC address “A” is obtained as a result of the reacquisition, the operation order “1” is associated with the result order “2”.
図7の下段は、図7の上段に示した表に対する検査(対応付け)が最初の操作順“1”と最後の操作順“9”とについて行われた結果例を示す。図7の下段に示す例では、最初の操作順“1”と結果順“2”とが対応づけられる一方、最後の操作順“9”が結果順“11”と対応づけられている。 The lower part of FIG. 7 shows an example of the result of the inspection (association) performed on the table shown in the upper part of FIG. 7 for the first operation order “1” and the last operation order “9”. In the example shown in the lower part of FIG. 7, the first operation order “1” is associated with the result order “2”, while the last operation order “9” is associated with the result order “11”.
これより、対応するMACアドレス“A”及び“I”は、収容対象の機器3AのMACアドレスとして、MACアドレスの収集結果から抽出される。これに対し、結果順“1”に対応するMACアドレス“X”及び結果順“12”に対応するMACアドレス“Z”は、操作開始前と操作終了後に収集されたものであることから、収容対象の機器3AのMA
Cアドレスから除外される。残りの結果順“3”〜“10”が検査範囲となる。
Accordingly, the corresponding MAC addresses “A” and “I” are extracted from the MAC address collection result as the MAC address of the
Excluded from C address. The remaining result order “3” to “10” is the inspection range.
以降の処理を説明する前に、まず図9を用いて、二つの操作順と結果順とのペアの間(検査範囲)についての検査方法の原理を説明する。検査では、対象外のMACアドレスの混入の仕方(混入の態様)に応じた処理が行われる。混入の仕方は、“結果順差−操作順差=混入数”の式によって得られる“混入数”と、範囲内台数(検査範囲の機器の台数(MACアドレス数))とを用いて特定することができる。 Before describing the subsequent processing, the principle of an inspection method for a pair (inspection range) between two operation orders and a result order will be described first with reference to FIG. In the inspection, processing is performed in accordance with the manner of mixing of non-target MAC addresses (mixing mode). The method of mixing can be specified using the “mixing number” obtained by the equation “result order difference−operation order difference = mixing number” and the number of devices in the range (the number of devices in the inspection range (the number of MAC addresses)). it can.
図9(A)は、検査範囲に混入したMACアドレスがゼロと判定される場合を示す。図9(A)の例では、結果順“1”と操作順“1”のペアと、結果順“4”と操作順“4”のペアとの間にある結果順“2”,“3”に対応するMACアドレス“B”,“C”が検査対象である。操作順“1”と操作順“4”との間に存するMACアドレス数は2であり、結果順“1”と結果順“4”との間に存するMACアドレス数も2である。この場合、MACアドレス“B”は、操作順“2”の機器3AからのMACアドレスと推定できる。MACアドレス“C”は、操作順“3”の機器からのMACアドレスと推定できる。
FIG. 9A shows a case where the MAC address mixed in the inspection range is determined to be zero. In the example of FIG. 9A, the result order “2”, “3” between the result order “1” and the operation order “1” pair and the result order “4” and the operation order “4” pair The MAC addresses "B" and "C" corresponding to "" are to be inspected. The number of MAC addresses existing between the operation order “1” and the operation order “4” is two, and the number of MAC addresses existing between the result order “1” and the result order “4” is also two. In this case, the MAC address “B” can be estimated as the MAC address from the
図9(A)のケース(第1のケース)では、操作順と結果順とが対応付いた第1ペアと第2ペアは、操作順は連続しておらず、両ペア間のMACアドレス数は、結果順でも操作順でも同数の2である。この場合には、第1のペアの順位と第2のペアの順位との間の結果順に対応する各MACアドレスは、収容対象のMACアドレスとして、一括で抽出される。すなわち、第1ペアと第2ペアとの間に収容対象外のMACアドレスが混入していない(混入ゼロ)と判定される。 In the case (first case) of FIG. 9A, the first pair and the second pair in which the operation order and the result order correspond to each other, the operation order is not continuous, and the number of MAC addresses between the two pairs is different. Is the same number of 2 in both the result order and the operation order. In this case, each MAC address corresponding to the order of the result between the order of the first pair and the order of the second pair is collectively extracted as the MAC address to be accommodated. That is, it is determined that a MAC address that is not to be accommodated is not mixed between the first pair and the second pair (mixing is zero).
このように、実施形態1では、複数の機器3Aのうちの2つの機器から取得した識別情報と、2つの機器の操作順(送信順)とを用いて当該2つの機器に対応する結果順(取得順)の順位を求める。この場合に、2つの機器の操作順(送信順)における順位が連続せず、且つ求めた取得順の順位の間にある順位の数が2つの機器の送信順における順位の間の数と同じである場合がある。この場合に、求めた取得順の順位の間にある各順位と対応する識別情報を抽出する処理が行われる。
As described above, in the first embodiment, using the identification information acquired from two of the plurality of
上記した第1のケースにおける混入ゼロの判定は、“結果順差−操作順差=混入数”の計算式を用いて行うことができる。すなわち、混入数=0のとき、検査範囲の各MACアドレスは収容対象の機器3Aのアドレスと判定される。図9(A)の例では、混入数=(4−1)−(4−1)=0となる。
The determination of zero mixing in the first case described above can be made using a calculation formula of “result order difference−operation order difference = mixing number”. That is, when the number of mixing = 0, each MAC address in the inspection range is determined to be the address of the
図9(B)は、検査範囲にあるMACアドレスの全てが混入したMACアドレスであると判定される場合(第2のケース)を示す。図9(B)の例では、結果順及び操作順がともに“4”のペアが第1ペアであり、結果順“7”と操作順“5”とのペアが第2ペアである。第1ペアと第2ペアとの間に、2つの(結果順“5”,“6”に対応する)MACアドレス“Y”,“Z”がある。これらのMACアドレス“Y”,“Z”が検査範囲に属するMACアドレスである。 FIG. 9B shows a case (second case) in which all of the MAC addresses in the inspection range are determined to be mixed MAC addresses. In the example of FIG. 9B, the pair whose result order and operation order are both “4” is the first pair, and the pair of result order “7” and operation order “5” is the second pair. There are two MAC addresses "Y" and "Z" (corresponding to result order "5", "6") between the first pair and the second pair. These MAC addresses “Y” and “Z” are MAC addresses belonging to the inspection range.
第2のケースでは、第1ペアの操作順と第2ペアの操作順とが連続しているが、第1ペアの結果順と第2ペアの結果順とは連続していない。この場合、検査範囲にある全てのMACアドレスは、混入したMACアドレスと判定できる。 In the second case, the operation order of the first pair and the operation order of the second pair are continuous, but the result order of the first pair and the result order of the second pair are not continuous. In this case, all MAC addresses in the inspection range can be determined to be mixed MAC addresses.
第2のケースにおける判定は、上記した混入数及び範囲内台数を用いて行うことができる。すなわち、算出された混入数と範囲内台数(MACアドレス数)とが等しい場合に、検索範囲の各MACアドレスは混入した(非収容対象の)MACアドレスと判定される。図9(B)の例では、混入数=(7−4)−(5−4)=2であり、範囲内台数=2と等
しいので、各MACアドレスが非収容対象として除去される。
The determination in the second case can be made by using the number of mixing and the number within the range described above. That is, when the calculated number of mixing is equal to the number within the range (the number of MAC addresses), each MAC address in the search range is determined to be a mixed (non-accommodation target) MAC address. In the example of FIG. 9B, the number of mixing = (7−4) − (5−4) = 2, which is equal to the number within the range = 2, so that each MAC address is removed as a non-accommodation target.
このように、実施形態1では、複数の機器3Aのうちの2つの機器から取得した識別情報を用いて、2つの機器に対応する取得順の順位を求めた場合がある。この場合に、2つの機器の送信順(操作順)における順位が連続し、且つ2つの機器に対応する取得順(結果順)の順位が連続しないとき、取得順の順位の間にある各順位と対応する識別情報が除去される。
As described above, in the first embodiment, the order of the acquisition order corresponding to the two devices may be obtained by using the identification information acquired from two of the plurality of
図9(C)は、検査範囲内に収容対象のMACアドレスと対象外のMACアドレスとが混在していると判定される場合(第3のケース)を示す。図9(C)の例では、結果順及び操作順がともに“1”の第1ペアと、結果順“7”で操作順“5”の第2ペアがある。この場合、結果順“2”〜“6”の範囲が検査範囲となり、範囲内におけるMACアドレス数(範囲内台数)は5である。混入数は、上記した計算式により以下となる。
混入数=結果順差−操作順差=(7−1)−(5−1)=2
FIG. 9C shows a case where it is determined that a MAC address to be accommodated and a MAC address not to be accommodated are mixed in the inspection range (third case). In the example of FIG. 9C, there is a first pair in which both the result order and the operation order are “1”, and a second pair in which the result order is “7” and the operation order is “5”. In this case, the range of the result order “2” to “6” is the inspection range, and the number of MAC addresses (the number of devices in the range) in the range is 5. The number of mixing is given by the above formula.
Number of mixing = order difference of result−order difference of operation = (7-1) − (5-1) = 2
図9(C)は、混入数が0<混入数(2)<範囲内台数(5)となり混在と判定される、第3のケースの例である。 FIG. 9C is an example of the third case in which the number of mixing is 0 <the number of mixing (2) <the number of vehicles within the range (5), and it is determined that the number is mixed.
混在と判定される場合、検査範囲内の検査(詳細検査)が行われ、2分探索が用いられる。なお、図9(A)〜(C)の例では、第1ペアないし第2ペアの操作順位と結果順位が同位である場合を例としているが、混入数が上記不等式を満たせばよく、後述するように、各ペアにおける結果順と操作順とが異なっていても良い。 When it is determined that they are mixed, an inspection within the inspection range (detailed inspection) is performed, and a binary search is used. In the examples of FIGS. 9A to 9C, the case where the operation order and the result order of the first pair or the second pair are the same is taken as an example, but it is sufficient that the mixing number satisfies the above inequality, and will be described later. As such, the order of results and the order of operations in each pair may be different.
このように、実施形態1では、複数の機器中の2つの機器から取得した識別情報を用いて2つの機器に対応する操作順(送信順)及び結果順(取得順)の順位を求める。この場合に、2つの機器に係る取得順の順位の順位差(結果順差)と、2つの機器に係る送信順の順位の順位差(操作順差)とを求める。結果順差からを減じた値が零でなく且つ前記取得順の順位の間にある数より小さい場合がある。この場合に、2つの機器の送信順の順位の間にある少なくとも1つの順位に対応する機器の識別情報の取得と、送信順での順位と取得順での順位との対応付けとが行われる。そして、2つの機器の送信順の順位に対応する取得順の順位の間にある各順位に対応する識別情報についての除去又は抽出を行う処理が行われる。 As described above, in the first embodiment, the order of the operation order (the order of transmission) and the order of the results (the order of acquisition) corresponding to the two devices are obtained by using the identification information obtained from two of the plurality of devices. In this case, a ranking difference in the order of acquisition (result order difference) for the two devices and a ranking difference in the order of transmission (operation order difference) for the two devices are determined. In some cases, the value obtained by subtracting from the result order difference is not zero and is smaller than the number between the orders in the acquisition order. In this case, the acquisition of the identification information of the device corresponding to at least one of the orders in the transmission order of the two devices and the association of the order in the transmission order with the order in the acquisition order are performed. . Then, a process of removing or extracting the identification information corresponding to each rank in the order of acquisition corresponding to the rank of the transmission order of the two devices is performed.
図10は、図7に対して行われた検査の様子を示した図である。図10に示した検査1回目における対応づけの結果では、操作順“1”と結果順“2”とが第1ペアをなし、操作順“9”と結果順“11”とが第2ペアをなしている。結果順“2”と結果順“11”との間にある結果順“3”〜“10”が検査範囲であり、範囲内台数は8である。また、混入数は、(11−2)−(9−1)=1であり、0<1<8であるので、検査範囲内に対象外のMACアドレスが混入していると判定される。したがって、検査範囲に対する詳細検査が実行される。 FIG. 10 is a diagram showing a state of the inspection performed on FIG. In the result of the association in the first examination shown in FIG. 10, the operation order “1” and the result order “2” form a first pair, and the operation order “9” and the result order “11” form a second pair. Has made. The result range “3” to “10” between the result sequence “2” and the result sequence “11” is the inspection range, and the number of vehicles in the range is eight. Further, since the number of mixing is (11-2)-(9-1) = 1 and 0 <1 <8, it is determined that a non-target MAC address is mixed in the inspection range. Therefore, a detailed inspection for the inspection range is performed.
図11は、詳細検査(検査2回目)の説明図である。詳細検査は2分探索を用いて行われる。詳細検査では、操作順(“1”〜“9”)の中央値“5”に対応する機器の操作が行われ、結果順との対応付けを行う。実施形態1では、中央値を切り上げにより得ているが、切り下げても良い。図11の例では、操作の結果、MACアドレス“E”が得られ、操作順“5”に結果順“7”が対応づけられ、MACアドレス“E”が収集結果から抽出される。この操作順“5”と結果順“7”とのペアを境にして、検査範囲が前半(左側)と後半(右側)とに分けられる。操作順“1”の機器3Aは、「第1の機器」の一例であり、操作順“9”の機器3Aは、「第2の機器」の一例である。操作順“5”の機器3Aは、「第3の機器」の一例である。操作順“1”は、「第1の順位」の一例であり、操作
順“9”は、「第2の順位」の一例であり、操作順“5”は、「第3の順位」の一例である。
FIG. 11 is an explanatory diagram of the detailed inspection (the second inspection). The detailed inspection is performed using a binary search. In the detailed inspection, the operation of the device corresponding to the median value “5” in the operation order (“1” to “9”) is performed, and the operation is associated with the result order. In the first embodiment, the median is obtained by rounding up, but may be rounded down. In the example of FIG. 11, the MAC address “E” is obtained as a result of the operation, the operation order “5” is associated with the result order “7”, and the MAC address “E” is extracted from the collection result. The inspection range is divided into the first half (left side) and the second half (right side) on the basis of the pair of the operation order “5” and the result order “7”. The
図11の例では、操作順“1”と結果順“2”との第1ペアと操作順“5”と結果順“7”との第2ペアとの間(結果順“3”〜“6”)が、前半の検査範囲となる。一方、操作順“5”と結果順“7”との第1ペアと、操作順“9”と結果順“11”との第2ペアとの間(結果順“8”〜“10”)が、後半の検査範囲となる。 In the example of FIG. 11, between the first pair of the operation order “1” and the result order “2” and the second pair of the operation order “5” and the result order “7” (result order “3” to “3”) 6 ") is the inspection range in the first half. On the other hand, between the first pair of the operation order “5” and the result order “7” and the second pair of the operation order “9” and the result order “11” (result order “8” to “10”) Is the inspection range in the latter half.
図11の例では、前半の検査範囲は、第3のケース(混在と判定されるケース)に合致するので、再度の詳細検査の対象となる。一方、後半の検査範囲は、第1のケース(一括抽出のケース)に合致するので、後半の検査範囲にあるMACアドレス(E,F,G,H)は収容対象として収集結果から抽出される。 In the example of FIG. 11, the inspection range in the first half matches the third case (a case determined to be mixed), and thus becomes the target of the detailed inspection again. On the other hand, since the inspection range in the latter half matches the first case (case of batch extraction), the MAC addresses (E, F, G, H) in the inspection range in the latter half are extracted from the collection results as accommodation targets. .
このように、実施形態1では、2つの機器の操作順(送信順)の順位である第1の順位(操作順“1”)と第1の順位より遅い第2の順位(操作順“9”)との間の中央値である第3の順位(操作順“5”)が求められる。第3の順位に対応する機器3Aから識別情報(MACアドレス)が取得され、第3の順位と取得順との対応付けが行われる。そして、第1の順位と第3の順位とのそれぞれに対応する取得順の順位(結果順“2”,“5”)の間にある各順位(結果順“3”〜“6”)に対応する識別情報を検査対象とする検査が行われる。また、第3の順位(操作順“5”)と第2の順位(操作順“9”)とのそれぞれに対応する取得順の順位(結果順“7”,“11”)の間にある各順位(結果順“8”〜“10”)に対応するMACアドレスを検査対象とする検査が行われる。
As described above, in the first embodiment, the first order (operation order “1”), which is the order of operation (transmission order) of the two devices, and the second order (operation order “9”), which is slower than the first order. A third order (operation order “5”), which is the median value between “” and “)”, is obtained. The identification information (MAC address) is acquired from the
図12は、3回目の検査の説明図である。前述2回目の検査で要詳細検査となった図11の前半の検査範囲(結果順“3”〜“6”)に関して、検査範囲の画定に用いた操作順(“1”〜“5”)の中央値“3”に対応する機器を操作する。操作の結果、MACアドレス“C”が得られ、操作順“3”が結果順“5”に対応づけられるとともに、MACアドレス“C”が収集結果から抽出される。そして、操作順“3”と結果順“5”のペアを境に、検査範囲が前半と後半とに分けられる。前半の検査範囲及び後半の検査範囲のそれぞれに対し、混入の仕方に基づくMACアドレスの除去又は抽出が行われる。 FIG. 12 is an explanatory diagram of the third inspection. Regarding the first half inspection range (result order “3” to “6”) in FIG. 11 which became the detailed inspection required in the second inspection, the operation order (“1” to “5”) used for defining the inspection range The device corresponding to the median value “3” is operated. As a result of the operation, the MAC address “C” is obtained, the operation order “3” is associated with the result order “5”, and the MAC address “C” is extracted from the collection result. The inspection range is divided into the first half and the second half with a pair of the operation order “3” and the result order “5” as a boundary. MAC address removal or extraction is performed for each of the first half inspection range and the second half inspection range based on the manner of mixing.
後半の検査範囲(操作順“3”と操作順“5”との間)の混入数は零であるので、図9(A)で説明した第1のケースに合致する。このため、結果順“6”のMACアドレス“D”は収容対象のMACアドレスと判定され、収集結果から抽出される。これに対し、前半の検査範囲(操作順“1”と操作順“3”との間)については、混入数=1となり、0<1<2(範囲内台数)より混在と判定される。これより、前半の検査範囲に関して、4回目の詳細検査が実行される。 Since the number of mixing in the latter half of the inspection range (between the operation order “3” and the operation order “5”) is zero, it matches the first case described in FIG. 9A. Therefore, the MAC address “D” in the result order “6” is determined as the MAC address to be accommodated, and is extracted from the collection result. On the other hand, in the first half of the inspection range (between the operation order “1” and the operation order “3”), the number of mixing = 1, and 0 <1 <2 (the number within the range) is determined to be mixed. Thus, the fourth detailed inspection is executed for the inspection range in the first half.
図13は、4回目の検査の説明図である。前半の検査範囲(操作順“1”と操作順“3”との間)に関して、操作順の中央値“2”に対応する機器の操作が行われる。この結果、MACアドレス“B”が得られて、操作順“2”が結果順“3”に対応づけられる。さらに、MACアドレス“B”が収集結果から抽出される。操作順“2”と結果順“3”とのペアを境に前半と後半とに検査範囲が分けられる。但し、前半の検査範囲は存在しないので、検査は終了する。一方、後半の検査範囲(操作順“2”と操作順“3”の間)については、図9(B)を用いて説明した第2のケースに合致するので、MACアドレス“Y”が対象外と判定され、収集結果から除去される。 FIG. 13 is an explanatory diagram of the fourth inspection. For the first half inspection range (between the operation order “1” and the operation order “3”), the device corresponding to the median “2” in the operation order is operated. As a result, the MAC address “B” is obtained, and the operation order “2” is associated with the result order “3”. Further, the MAC address “B” is extracted from the collection result. The inspection range is divided into the first half and the second half with the pair of the operation order “2” and the result order “3” as a boundary. However, since the inspection range in the first half does not exist, the inspection ends. On the other hand, the inspection range in the latter half (between the operation order “2” and the operation order “3”) matches the second case described with reference to FIG. It is determined to be outside and is removed from the collection result.
以上によって、9台の機器3AのMACアドレス“A”〜“I”が収集結果から抽出される。出力部25は、MACアドレス“A”〜“I”を出力する。MACアドレス“A”〜“I”は、リスト30に登録(記憶)される。MACアドレスは一括でリスト30に記
憶されても良く、抽出される毎に記憶されても良い。このようにして、収容対象の機器3AのMACアドレス“A”〜“I”が記憶されたリスト30が生成される。
As described above, the MAC addresses “A” to “I” of the nine
実施形態1に係る検査方法によれば、収容結果順を得た(図1)後に、操作順“1”,“9”,“5”,“3”,及び“2”についての5回の再操作(MACアドレスの再取得)によって、収容対象の機器3AのMACアドレス“A”〜“I”のリストを生成できる。収容対象の全ての機器3Aを再操作する場合(全9回)よりも少ない再操作の数で、リストを作成することができる。よって、リスト作成に係る負荷低減、リスト作成の容易化が図られる。
According to the inspection method according to the first embodiment, after obtaining the accommodation result order (FIG. 1), the operation order “1”, “9”, “5”, “3”, and “2” are repeated five times. By the re-operation (re-acquisition of the MAC address), a list of the MAC addresses “A” to “I” of the
<処理フロー>
図14は、ネットワーク装置1(許可リスト生成部20)の処理例を示すフローチャートである。図14に示す処理は、許可リスト生成部20として動作するCPU11によって実行される。また、図14に示す処理は、例えば、作業者5の操作に応じて、画面212aを含む画面210 が作業者5に提供されることで開始される。
<Processing flow>
FIG. 14 is a flowchart illustrating a processing example of the network device 1 (permission list generation unit 20). The processing illustrated in FIG. 14 is executed by the
11では、CPU11は、作業者5によって入力される収容対象機器数Nを取得する。12では、CPU11は、初回の収集処理を行う。初回の収集処理では、後述する処理により、機器3のMACアドレスを複数収集する。
In 11, the
図14の13では、CPU11は、初回の収集結果順と、収集されたMACアドレスとの対応付けを行う。14では、CPU11は、非収容対象のMACアドレスの混入の仕方を判定する。すなわち、CPU11は、収集結果数=Nであれば、混入がゼロと判定し、そうでなければ、非収集対象が混入していると判定する。
In 13 of FIG. 14, the
15では、混入がゼロと判定する場合には、CPU11は、収集結果を収集対象として一括で抽出する。これに対し、混入がゼロでない(混在している)と判定する場合には、CPU11は、後述する詳細検査を行う(16)。その結果、12で収集された全MACア
ドレスについて抽出または除去が行われる。
In 15, when it is determined that the mixing is zero, the
詳細検査(16)の後、処理が17(図14)に進む。17において、CPU11は、抽出された収容対象の機器3AのMACアドレスを、リスト30に設定することによって、収容対象の機器3AのMACアドレスのリストを生成する。
After the detailed inspection (16), the process proceeds to 17 (FIG. 14). In 17, the
図15は、収集処理の一例を示すフローチャートである。図15の処理は、初回の収集及び再収集にて実行される。 FIG. 15 is a flowchart illustrating an example of the collection process. The processing in FIG. 15 is executed at the first collection and re-collection.
121では、CPU11は、初回収集か再収集かに応じた画面を用いて、操作指示メッセージを提示する。例えば、初回収集の場合には、画面212b(図5)が表示される。これに対し、再収集の場合には、画面212c(図6)が表示される。
In 121, the
122では、作業者5は、画面212b又は画面212cで表示される操作指示メッセージに従い、「開始」ボタンを押す。123にて、作業者5は、機器3Aのボタン3aを押す(124)。これにより、機器3Aは、パケットを送信する(125)。
At 122, the
一方、ネットワーク装置1では、CPU11は、「開始」ボタンの押し下げを契機として、受信部141を用いたパケットキャプチャを開始する。これによって、CPU11は、受信部141で受信されたパケットの送信元アドレスを、機器3のMACアドレスとして受け取ることができる(126)。
On the other hand, in the
パケットキャプチャ時に、127に示されるように、非収容対象(対象外)の機器3Bからパケットが送信されると、126にて、当該パケットの送信元アドレスは、機器3のMACアドレスとして収集される。すなわち、収集結果に対象外のMACアドレスが混入する。
When a packet is transmitted from the non-accommodation target (non-target)
作業者5は、初回では、収容対象の全て機器3Aのボタン3aを押した後、再収集では、指定された機器3Aのボタン3aを押した後、それぞれの指示メッセージに従った適宜のタイミングで、画面121b又は画面121cの「終了」ボタンを押す(128)。CPU11は、「終了」ボタンの押し下げを検出すると、パケットキャプチャを終了(停止)させる(129)。CPU11は、収集部22から抽出部24へのMACアドレスの引き渡し処理を行う。
The
図16は、詳細検査の処理例を示すフローチャートである。261では、CPU11は、検査範囲を設定する。261の時点では、検査範囲は、収集操作順の1〜N(全体)に設定する。262では、CPU11は、検査範囲の各端点のうち、操作順と収集順との対応が未判定のものを特定する。操作範囲が1〜Nであれば、操作順“1”及び操作順“N”が検査範囲の端点となる。
FIG. 16 is a flowchart illustrating a processing example of the detailed inspection. In 261, the
263では、CPU11は、262で特定した端点(操作順位)の機器3Aに係るMACアドレスの再収集を制御し、操作順と結果順との対応付けを行う。264では、CPU11は、操作順と結果順との対応を確認する。265では、CPU11は、操作順と結果順との対応関係が新たに確定した(対応付けにより機器3AのMACアドレスと判定し得る)MACアドレスを、収容対象の機器3AのMACアドレスとして抽出する。
In 263, the
266では、CPU11は、検査範囲について、非収容対象(対象外)のMACアドレスの混入の仕方を、図10を用いて説明した手法で判定する。このとき、検査範囲は両端点を除いた部分であり、この場合2〜N−1である。267では、CPU11は、混入の仕方が「混入ゼロ」,「全部対象外」,「混在」のいずれであるかを判定する。
In
混入の仕方が「混入ゼロ」であると判定される場合、処理が268に進む。268において、CPU11は、検査範囲にあるMACアドレスを、収容対象の機器3AのMACアドレスとして一括抽出する。また、CPU11は、抽出した各MACアドレスに関して、操作順と結果順との対応付けも行う。
If it is determined that the mixing method is “zero mixing”, the process proceeds to 268. In 268, the
混入の仕方が「全部対象外」と判定される場合には、処理が269に進む。269では、CPU11は、検査範囲内にあるMACアドレスを、非収容対象の機器3BのMACアドレスと判定し、一括で抽出対象から除去する。
If it is determined that the mixing method is “all out of target”, the process proceeds to 269. In 269, the
混入の仕方が「混在」と判定される場合には、処理が270に進む。270では、CPU11は、検査範囲を操作順の中央値で分割した前半及び後半に係る検査範囲を次の検査の範囲に指定する。268,269,270の各処理が終了すると、処理が271に進む。
If the mixing method is determined to be “mixed”, the process proceeds to 270. In 270, the
271では、CPU11は、詳細検査が終了か否かを判定する。詳細検査が終了と判定される場合には、図16の処理が終了し、そうでない場合には、処理が262に戻される。271の処理では、MACアドレスの除外数が混入したMACアドレスの総数と等しい場合、MACアドレスの抽出数=N(収容対象機器数)に達した場合、及び検査範囲に未抽出の結果順(MACアドレス)がない(残数0の)場合に、終了と判定される。
In 271, the
<実施形態1の効果>
実施形態によれば、収容対象の複数の機器3Aから所定の操作順(送信順)でパケットが送信される場合に、受信部141及び収集部22で取得されたMACアドレス(機器の識別情報)の収集結果(取得結果)を示す情報が生成される。情報は、MACアドレスの結果順(取得順)とMACアドレス(機器の識別情報)との対応関係(図7参照)を示し、CPU11によってメモリ(主記憶装置12及び補助記憶装置13の少なくとも一方)に記憶される。
<Effect of
According to the embodiment, when packets are transmitted from a plurality of
複数の機器3Aの数より上記対応関係におけるMACアドレスの数が多い場合(対象外のMACアドレスが混入している場合)に、操作順(送信順)の順位指定により特定される複数の機器3Aのうちの少なくとも2つについてのMACアドレスが取得される。取得されたMACアドレスを元に、操作順(送信順)での順位と結果順(取得順)での順位との対応づけがなされる。対応付けがなされたMACアドレスは、機器3AのMACアドレスとして抽出される。一方、対応付けがなされないMACアドレスは対象外として除去される。
When the number of MAC addresses in the above-mentioned correspondence is larger than the number of
すなわち、CPU11は、取得された識別情報について、送信順の順位と取得順の順位との対応付けを行い、送信順の順位と対応づかない識別情報(MACアドレス)を除去する。また、CPU11は、送信順の順位と対応づく識別情報(MACアドレス)を複数の機器3Aのいずれかの識別情報(MACアドレス)として抽出する。
That is, the
これによって、ネットワーク装置1への収容対象の複数の機器3AのMACアドレスを手書きで入力したり、コマンド入力で得たMACアドレスを転記したりするような煩雑な作業を回避できるので、複数の機器3Aのリストの作成作業の負荷を低減できる。
This can avoid complicated operations such as manually inputting the MAC addresses of a plurality of
また、実施形態1によれば、各機器3AからのMACアドレスの収集時に紛れ込んだ対象外のMACアドレスを、再取得が指定された少なくとも2つの機器3AのMACアドレス送信のための操作(ボタン3aの押し下げ)によって除去することができる。
Further, according to the first embodiment, the operation (
また、実施形態1によれば、図9を用いて説明したような、操作順と結果順との対応付けを用い、対象外のMACアドレスの混入の仕方に応じて検査範囲のMACアドレスを一括で抽出したり一括で除去したりする。これによって、MACアドレスを再取得する機器3Aの数を減らすことができ、ネットワーク装置1(CPU11)及び作業者5の負荷軽減を図ることができる。
Further, according to the first embodiment, as described with reference to FIG. 9, MAC addresses in the inspection range are collectively collected according to the way of mixing non-target MAC addresses using the association between the operation order and the result order. Extract or remove all at once. As a result, the number of
これまでに説明した実施形態1の構成は、例えば、以下に説明する実施形態2〜7のような変形が可能である。実施形態2〜7は、実施形態1と共通の構成を有するので、主として相違点について説明し、共通点については説明を省略する。
<実施形態2>
実施形態1では、機器3AからのMACアドレスの再収集において、指定された機器3A以外のMACアドレスが混入しない場合について説明している。但し、再収集時に、指定された機器3A以外の機器のMACアドレスが混入する場合があり得る。
The configuration of
<
In the first embodiment, a case where a MAC address other than the specified
例えば、図17(A)に示すように、時間軸1−1(1周目の1番目)において、操作順“1”(再収集対象)のMACアドレスを収集した結果において、MACアドレス“A”及びMACアドレス“X”が得られたと仮定する。この場合、どちらが機器3AのMACアドレスかが不明であるので、送信順に対応づけられない。
For example, as illustrated in FIG. 17A, in the result of collecting the MAC address of the operation order “1” (recollection target) on the time axis 1-1 (first in the first round), the MAC address “A "And the MAC address" X "are obtained. In this case, since it is unknown which is the MAC address of the
実施形態2は、上記問題を解決するために、以下のような構成を採用する。ネットワーク装置1のCPU11(許可リスト生成部20)は、同一の操作順の機器3AのMACアドレスの再収集を行う。すなわち、複数のMACアドレスが収集された場合には、CPU
11は、同一の操作順“1”の機器3Aに対する収集を再度行い、再収集の結果同士を対比する。このとき、CPU11は、複数の再収集の結果において、共通に含まれないMACアドレスを除去した結果、1つのMACアドレスが残る場合には、このMACアドレスを指定した機器3AのMACアドレスと判定する。
例えば、図17(B)に示すように、時間軸1−1(1周目1番目)で、操作順“1”の機器3Aについての収集が行われた結果として、MACアドレス“A”及びMACアドレス“X”が取得された場合を仮定する。この場合に、再度(例えば時間軸2−1において)、操作順“1”の機器3Aに対するMACアドレスの再収集を行う。この収集の結果として、MACアドレス“A”及びMACアドレス“Y”が取得されたとする。時間軸1−1で取得されたMACアドレス“A”及びMACアドレス“X”は「第1の情報」の一例であり、時間軸2−1で取得されたMACアドレス“A”及びMACアドレス“Y”は「第2の情報」の一例である。第1の情報と第2の情報とが得られた場合、両者の対比が行われる。
For example, as illustrated in FIG. 17B, as a result of the collection of the
同一の機器3AからのMACアドレスの収集を試行しているので、各収集結果(第1及び第2の情報)には、共通の機器3、すなわち収容対象の機器3AのMACアドレスが含まれていると考えられる。一方、第1及び第2の情報において共通に含まれないMACアドレスは、混入したMACアドレスと判定できる。
Since the collection of the MAC address from the
図17(B)の例では、CPU11は、共通に含まれないMACアドレス“X”,“Y”を、非収容対象の機器3BのMACアドレスと判定し、除去する。この結果、1つのMACアドレス“A”が複数の収集結果に共通に含まれるMACアドレスとして残る。CPU11は、このようなMACアドレス“A”を、収容対象の操作順“1”の機器3AのMACアドレスと判定する。
In the example of FIG. 17B, the
このように、実施形態2では、或る送信順(操作順“1”)に対応する機器3AからのMACアドレスの取得において複数のMACアドレス“A”,“X”を含む第1の情報が取得される。この場合に、或る送信順“1”に対応する機器の識別情報が再取得されることによって得られた第2の情報(“A”,“Y”)と第1の情報とが対比される。対比において、第1及び第2の情報に共通に含まれるMACアドレスが1つあるとき、このMACアドレスが或る送信順に対応する機器のMACアドレスとして抽出される。一方、第1の情報及び第2の情報に共通に含まれないMACアドレスは、非収容対象のMACアドレスとして除去される。
As described above, in the second embodiment, in the acquisition of the MAC address from the
さらに、実施形態2におけるCPU11は、異なる操作順の機器3Aに係る複数の再収集の結果において、同一の(共通な)MACアドレスが存在する場合には、このMACアドレスを、非収容対象のMACアドレスとして除去する。
Furthermore, if the same (common) MAC address exists in the results of multiple re-collections of the
例えば、図17(C)に示すように、操作順“1”の機器3Aについての収集結果(第1の情報の一例)がMACアドレス“A”及びMACアドレス“X”であり、操作順“9”の機器3Aに対するMACアドレスの収集結果が“1”および“X”であると仮定する。
For example, as illustrated in FIG. 17C, the collection result (an example of the first information) of the
操作順の異なる機器3AのMACアドレスの収集を試行しているので、収集結果間でMACアドレスが異なることが想定される。これに対し、同一の(共通な)MACアドレス“X”が得られている場合、MACアドレス“X”は、収容対象の機器3A以外の機器のMACアドレスである。よって、CPU11は、MACアドレス“X”を、非収容対象の機器3BのMACアドレスと判定する。一方、第1及び第2の情報において共通に含まれるMACアドレスの除去により、第1及び第2の情報のそれぞれに、共通しないMACア
ドレスが1つずつ残る場合がある。この場合、CPU11は、各MACアドレスを収容対象の機器3AのMACアドレスとして抽出する。図17(C)の例では、CPU11は、MACアドレス“A”を操作順“1”に対応する機器3AのMACアドレスと判定するとともに、MACアドレス“I”を操作順“9”に対応する機器3AのMACアドレスと判定する。
Since the collection of the MAC addresses of the
このように、実施形態では、或る送信順(操作順“1”)に対応する機器3AからのMACアドレスの取得において複数のMACアドレス“ア”,“X”を含む第1の情報が取得される場合がある。この場合に、或る送信順“1”と異なる送信順“9”に対応する機器からの識別情報の再取得によって得られた第2の情報(“I”,“X”)と第1の情報(“A”,“X”)とが対比される。対比において、第1の情報及び第2の情報に共通に含まれる(同一の)MACアドレス“X”が除去される。除去の結果として、第1及び第2の情報に共通に含まれないMACアドレスが1つずつ第1及び第2の情報のそれぞれに残る場合に、残ったMACアドレスのそれぞれが或る操作順及び或る操作順と異なる操作順に対応するMACアドレスとして抽出される。
As described above, in the embodiment, in the acquisition of the MAC address from the
図18は、実施形態2の他の例を示す。図18(A)に示すように、操作順“1”の機器3AからのMACアドレスの収集時に、MACアドレス“A”,MACアドレス“X”及びMACアドレス“Y”が収集されたと仮定する。図18の例では、収容対象機器数N=9とする。
FIG. 18 shows another example of the second embodiment. As shown in FIG. 18A, it is assumed that the MAC address “A”, the MAC address “X”, and the MAC address “Y” are collected when the MAC address is collected from the
この場合、CPU11は、収容対象機器数N=9における二分探索を用いた操作順の順位の数列を生成する。数列は、例えば、{1,9,5,3,7,2,4,6,8}となる。但し、数列は上記以外、例えば{9,1,5,7,3,8,6,4,2}などであっても良い。
In this case, the
CPU11は、数列の先頭から、操作順でMACアドレスの再収集を行い、操作順とMACアドレスの遡及確定を行う。図18(B)に示すように、CPU11は、再収集対象の操作順に係る数列{1,9,5,3,7,2,4,6,8}に従って、各操作順に対応する機器3Aから送信されるMACアドレスを収集する。操作順“1”の次に行われる操作順“9”の機器3AのMACアドレス収集では、収集の結果として、MACアドレス“I”及びMACアドレス“X”が取得されている。
The
この場合、図17(A)を用いて説明したように、共通のMACアドレス“X”は、異なる操作順“1”と操作順“9”とで得られているので、CPU11は、MACアドレス“X”を非収容対象のMACアドレスとして除去する。また、CPU11は、MACアドレスの除去によってMACアドレスが1つだけ残る操作順“9”をMACアドレス“1"
と対応付け、再収集対象から除外する。
In this case, as described with reference to FIG. 17A, since the common MAC address “X” is obtained in different operation orders “1” and “9”, the
And exclude from re-collection target.
操作順“9”の次に実施された操作順“5”の収集結果では、収集の結果として、MACアドレス“E”及びMACアドレス“Y”が取得されている。この場合、図17(A)を用いて説明したように、MACアドレス“Y”は、異なる操作順“1”と操作順“5”とで共通に得られている。このため、CPU11は、MACアドレス“Y”を非収容対象のMACアドレスとして除去する。また、CPU11は、MACアドレス“Y”の除去によってMACアドレスが1つずつ残る操作順“1”及び操作順“5”をそれぞれMACアドレス“A”と“E”と対応付け、再収集対象から除外する。
In the collection result of the operation order “5” executed after the operation order “9”, the MAC address “E” and the MAC address “Y” are acquired as the collection result. In this case, as described with reference to FIG. 17A, the MAC address “Y” is commonly obtained for different operation orders “1” and “5”. For this reason, the
操作順“5”の次に実施された操作順“3”の収集結果では、収集の結果として、MACアドレス“C”及びMACアドレス“W”が取得されている。操作順“3”は、再収集の対象として残される。その後、残りの数(操作順)についての再収集が行われ、同様の
判定がなされる。なお、図18(B)では、数列における操作順“3”より後の再収集の結果については省略している。
In the collection result of the operation order “3” performed after the operation order “5”, the MAC address “C” and the MAC address “W” are acquired as the collection result. The operation order “3” is left as a target of re-collection. After that, the remaining numbers (operation order) are re-collected, and the same determination is made. In FIG. 18B, the result of the re-collection after the operation order “3” in the sequence is omitted.
2周目では、再収集の対象に残った操作順についての再収集が繰り返される。すなわち、操作順“3”に係る再収集が行われる。結果として、MACアドレス“C”及びMACアドレス“Z”が得られたと仮定する。1周目(前回)の操作順“3”に係る結果との比較において、共通な(同一の)MACアドレス“C”があると、共通しない(異なる)MACアドレス“W”及びMACアドレス“Z”がある。従って、CPU11は、MACアドレス“C”を操作順“3”の機器3AのMACアドレスと判定し、MACアドレス“W”及びMACアドレス“Z”を非収容対象の機器3BのMACアドレスと判定する。
In the second lap, re-collection of the operation order remaining as the target of re-collection is repeated. That is, the re-collection according to the operation order “3” is performed. As a result, it is assumed that the MAC address “C” and the MAC address “Z” are obtained. In comparison with the result related to the operation order “3” in the first cycle (previous), if there is a common (identical) MAC address “C”, non-common (different) MAC addresses “W” and MAC addresses “Z” There is. Therefore, the
図19は、実施形態2に係る処理例を示すフローチャートである。図20及び図21は、図19の処理の説明図であり、フローチャート内処理の経過や動作を例示したものである。なお、実施例2と実施例1の差は、詳細検査処理を図16から図19に変更したのみである。このため、初回収集結果は実施例1と同一 (図7の上図)とし、前述した動作に
ついての説明も省略している。図19の処理は、許可リスト生成部20として動作するCPU11によって実行される。収容対象機器数Nは、例としてN=9である。以降では、図19のフローチャートについて、適宜図20および図21を参照しながら説明する。
FIG. 19 is a flowchart illustrating a processing example according to the second embodiment. 20 and 21 are explanatory diagrams of the processing of FIG. 19 and illustrate the progress and operation of the processing in the flowchart. The difference between the second embodiment and the first embodiment is only that the detailed inspection process is changed from FIG. 16 to FIG. Therefore, the result of the first collection is the same as that of the first embodiment (the upper diagram in FIG. 7), and the description of the above-described operation is omitted. The processing in FIG. 19 is executed by the
図19の301において、CPU11は、検査範囲を設定する。検査範囲は、収集操作順の1〜N(全体)に設定する。302において、CPU11は、検査範囲の2分探索時に端点となる数列を生成し、要再収集リストを生成する。
At 301 in FIG. 19, the
2分探索時に、操作順“1”と操作順“9”とは検査範囲の端点となり、これらの中央値“5”も端点となる。中央値“5”を境とした場合における前半及び後半の中央値は、3及び7であり、それぞれ端点となる。このようにして、図19の例では、CPU11は、{1,9,5,3,7,2,4,6,8}の数列(図20(A))を要再収集リストとして生成したと仮定する。
At the time of the binary search, the operation order “1” and the operation order “9” are end points of the inspection range, and the median value “5” is also an end point. The median values in the first half and the latter half when the median value is “5” are 3 and 7, respectively, which are end points. In this way, in the example of FIG. 19, the
303では、CPU11は、要再収集リスト内から1つの操作順を得て、304でCPU11は該当操作順に対応する機器3Aに係るMACアドレスの再収集を行う。例えば図20(A)に示す数列に従い、先頭の操作順“1”のMACアドレスの再収集を行う。
At 303, the
305では、CPU11は、再収集の結果を履歴に追加し、操作順とMACアドレスの遡及確定処理を行う。すなわち、CPU11は、今回のレコード(再収集の結果)と、今回のレコードより前に得られた他のレコードとの対比を行い、図17(A)や図17(B)で示したケースに該当するかを判定する。
In 305, the
ここで、再収集結果の履歴は、例えば図20(B)に示すような、時間軸に対する、再収集対象の操作順と再収集結果を含む表に記憶される。例えば、時間軸1−1に係る305の処理では、操作順“1”のMAC再収集に対しMACアドレス“A",“X",“Y"が取
得されたことが記録されている。さらに遡及確定結果は、例えば図20(D)に示すような、操作順と収容対象MACや非収容対象を管理する表に記録される。この例では、時間軸1−1に係る305の処理では、対比する他のレコードがなく確定したことがないため非収容対象及び操作順−MACともに“なし”が記憶される。時間軸1−2に係る305の処理では、時間軸1−2と過去の時間軸1−1の再収集結果レコードが対比した結果、操作順“9"とMACアドレス“I”の対応づけが確定し、MACアドレス“X”が非収容
対象として確定したことが記録される。
Here, the history of the recollection result is stored in a table including the operation order of the recollection target and the recollection result with respect to the time axis, for example, as illustrated in FIG. For example, in the process of 305 related to the time axis 1-1, it is recorded that the MAC addresses “A”, “X”, and “Y” have been acquired for the MAC re-collection of the operation order “1”. Further, the retroactive determination result is recorded in a table for managing the operation order and the accommodation target MAC and the non-accommodation target as shown in FIG. 20D, for example. In this example, in the processing of 305 relating to the time axis 1-1, "none" is stored for both the non-accommodation target and the operation order-MAC since there is no other record to be compared and there is no determination. In the processing of 305 relating to the time axis 1-2, as a result of comparing the time axis 1-2 with the re-collection result records of the past time axis 1-1, the association between the operation order “9” and the MAC address “I” is established. It is determined that the MAC address “X” has been determined as a non-accommodation target.
306で、CPU11は、遡及確定結果の初回の収集結果への反映を行う。この反映で
は、図21(A)に示すように、遡及確定結果として、操作順とMACアドレスの対応が確定した場合には、CPU11は、操作順と結果順との対応関係を記憶し、収容対象として抽出する。遡及確定結果において非収容対象となったMACアドレスに関して、同一のMACアドレスが要再収集リストにあれば、当該MACアドレスの除去が行われる。
In 306, the
ここで、遡及確定結果の反映は、例えば、図20(F)に示すような、MACアドレスと収集結果順と収集操作順の対応関係と時間軸を管理する表を用いて行われる。時間軸1−1に係る306の処理など遡及確定結果が何もない場合には反映は省略され、時間軸1−2に係る306の処理など確定結果がある場合は各MACアドレスについて記録が行われる。例えば時間軸1−2では、MACアドレス“X”については収集操作順に非収容対象を示す“非”が記録され、MACアドレス“I”については収集操作順に“9”が記録される。なお、収集結果順欄とMACアドレス欄は、初回のMACアドレス収集時に収集結果として記録されればよい。 Here, the reflection of the retrospective determination result is performed using, for example, a table for managing the correspondence between the MAC address, the collection result order, the collection operation order, and the time axis, as shown in FIG. If there is no retroactive determination result such as the processing of 306 on the time axis 1-1, the reflection is omitted. If there is a determination result such as the processing of 306 on the time axis 1-2, recording is performed for each MAC address. Will be For example, on the time axis 1-2, “non” indicating a non-accommodation target is recorded in the collection operation order for the MAC address “X”, and “9” is recorded in the collection operation order for the MAC address “I”. The collection result order column and the MAC address column may be recorded as the collection result at the time of the first MAC address collection.
307では、CPU11は、図19の処理を終了か否かを判定する。当該判定は、排除したMACアドレス数が総混入数と等しくなる場合、或いは、MACアドレスの抽出数が収容対象機器数Nと等しくなる場合に終了と判定される。時間軸1−1に係る307の処理などでは、上記いずれにも該当せず、次の308へ進む。
In 307, the
また、CPU11は、図20(E)に示すような検査を行う。例えば、時間軸1−2における収集結果への反映において、最後の操作順9のMACアドレスが確定した場合には、操作順9に対応する結果順“11”より後のMACアドレス“Z”を非収容対象として排除する。
In addition, the
308では、CPU11は、操作順と結果順との対応が新たに確定したものを端点に持つ検査範囲を抽出し、各検査範囲に処理SG1(図16の処理266〜269)を適用し、308bで、CPU11は、処理SG1の結果を初回収集結果に反映する。
In 308, the
このとき、308でCPU11に抽出される検査範囲は図21(B)のようになり、各検査範囲に処理SG1を適用した検査結果は、図20(E)となる。図21(B)では、時間軸1−1に係る308の処理では抽出される検査範囲はなく、時間軸1−2に係る308の処理では、収集操作順“9”(最後の操作順)が確定したことにより、収集操作順“9”より後ろの範囲が検査範囲として抽出されたことが記録されている。時間軸1−3に係る308の処理のように、新たに確定した結果に応じ検査範囲が複数抽出されることもある。
At this time, the inspection range extracted by the
309では、CPU11は、要再収集リストを更新する。すなわち、CPU11は、操作順とMACアドレスとの対応関係が確定されたレコードを要再収集リストから削除する。時間軸1−1に係る309の処理などのように、再収集で操作順とMACアドレスとの対応関係が確定しない場合には、CPU11は、その時間軸のレコードを要再収集リストの末尾に追加する(図20(G)参照)。
In 309, the
310では、CPU11は、307と同様の判定を行う。但し、307と同様の判定の代わりに、要再収集リストに残りのレコードがあるか否かを以て、310の判定処理としても良い。
At 310, the
実施形態2によれば、機器3AからのMACアドレスの再収集時に複数のMACアドレスが取得される場合であっても、対象外の機器3BからのMACアドレスを除去(排除)できる。そして、操作順と機器3AのMACアドレスとを対応づいた所望の機器3AのMACアドレスだけを抽出することができる。
According to the second embodiment, even when a plurality of MAC addresses are obtained at the time of re-collecting the MAC addresses from the
<実施形態3>
上述の実施形態では、通信方式(通信規格)として無線LAN(IEEE802.11シリーズ)で、機器3AからのMACアドレス(パケット)の送信トリガがWPSのプッシュボタン3aである場合を例に説明した。但し、通信方式及びパケットの送信方法は、上記例に限定されない。
<
In the above-described embodiment, an example has been described in which the transmission trigger of the MAC address (packet) from the
通信方式は、無線LAN以外に、Bluetooth(登録商標),WI−SUN(Wireless Smart Utility Network),ZigBeeなどの無線規格であっても良く, 有線LANのような有線の通信方式であっても良い。またパケット送信方法は、操作を契機に機器がブロードキャストパケットを送信するものであればよい。 The communication system may be a wireless standard such as Bluetooth (registered trademark), WI-SUN (Wireless Smart Utility Network), or ZigBee, or a wired communication system such as a wired LAN, in addition to the wireless LAN. . The packet transmission method may be any method as long as the device transmits a broadcast packet in response to an operation.
図22は、実施形態3の説明図である。図22には、通信方式と、パケット送信の操作(操作に使用されるボタン(スイッチ)や作業)と、収集部22への指定条件(収集(キャプチャ)対象のパケット及び取得対象のフィールド),作業者5への操作指示メッセージの例を示す表が示されている。図22の例では、無線LAN,Bluetooth(登録商標)
及び有線LANについての例が示されている。
FIG. 22 is an explanatory diagram of the third embodiment. FIG. 22 shows a communication method, packet transmission operations (buttons (switches) and operations used for operations), designation conditions (collection (capture) target packets and acquisition target fields) to the
And an example of a wired LAN.
例えば、操作(ボタン)としては、探索用のスキャンボタンや、無線のON・OFFボタンなどを適用可能である。有線の通信方式では、ボタン以外に、ネットワークケーブル(LANケーブル)に対する物理的な脱着やケーブルに対する通電も、操作に含み得る。また、所定のパケットの送信元アドレスが機器3Aのアドレス(識別情報)として取得される。操作指示メッセージは、例えば、通信方式やパケットの送信の操作に使用されるボタン(スイッチ)に応じたメッセージ内容となる。このように、通信方式に応じて、作業者への操作指示メッセージと収集部のMACアドレス抽出方法を決めることで、実施形態1ないし実施形態2の動作を、無線LAN以外の他通信方式にも適用できる。
For example, as the operation (button), a scan button for searching, a wireless ON / OFF button, or the like can be applied. In the wired communication method, in addition to the buttons, physical operations such as physically attaching and detaching a network cable (LAN cable) and energizing the cable can be included in the operation. Further, the source address of the predetermined packet is acquired as the address (identification information) of the
<実施形態4>
図23は、実施形態4に係る構成例を示す図である。実施形態1では、ネットワーク装置1が、機器3からMACアドレスを含むパケットを受信する無線通信部14Aと、許可リスト生成部20とを含む例について説明した。実施形態4は、実施形態1の構成に代えて、以下の構成を有する。なお、実施形態4は実施形態1の機能配置を変更したもので、実施形態1で示したフローチャートなどの処理詳細には影響しない。
<
FIG. 23 is a diagram illustrating a configuration example according to the fourth embodiment. In the first embodiment, an example has been described in which the
実施形態4では、ネットワーク装置1の代わりに、端末装置1Aと、ネットワーク装置1Bとを含む。端末装置1Aは、例えば、図2に示したハードウェア構成を有することができる。但し、図2における通信IF15は有していなくても良い。
In the fourth embodiment, a
端末装置1Aが備える無線通信回路14は、機器3との無線通信と、ネットワーク装置1Bとの無線通信とを並列に実行することができる(2以上の無線回線を持つ)。すなわち、図23に示すように、端末装置1Aは、機器3からパケットを受信する無線通信部14Aと、ネットワーク装置1BへMACアドレスの抽出結果を送信する無線通信部14Aとを含む構成を有する。但し、機器3との無線通信と、ネットワーク装置1Bとの無線通信を、1つの無線回線を用いてシーケンシャルに実行する構成を採用しても良い。すなわち、1つの無線通信部14Aを有する構成が採用されても良い。
The
端末装置1Aは、CPU11がメモリ(主記憶装置12及び補助記憶装置13の少なくとも一方)に記憶されたプログラムを実行することによって、許可リスト生成部20として動作する。但し、出力部25から出力される収容対象の機器3AのMACアドレス群(識別情報の抽出結果)は、無線通信によってネットワーク装置1Bに送信される。但し、
端末装置1Aとネットワーク装置1Bとが有線通信でMACアドレス群の送受信を行う場合もあり得る。
The
The
このように、通信装置の一例である端末装置1Aは、「送信データの中継可否を前記抽出部によって抽出された機器の識別情報を用いて判定する通信装置へ、前記抽出部によって抽出された機器の識別情報を送信する送信部」を備える。パケットは、「送信データ」の一例であり、ネットワーク装置1Bは、「通信装置」の一例である。無線通信部14Aは「送信部」の一例である。
As described above, the
ネットワーク装置1Bは、例えば、図2に示したハードウェア構成を有する。ネットワーク装置1Bの無線通信回路14は、端末装置1Aから送信されるパケット(収容対象のMACアドレス群を含む)を受信する。ネットワーク装置1BのCPU11は、メモリに記憶されたプログラムの実行によって、ネットワーク装置1Bのメモリ(主記憶装置12及び補助記憶装置13の少なくとも一方)上の許可リスト30にMACアドレス群を設定(登録)する。
The
ネットワーク装置1BのCPU11は、メモリに記憶されたプログラムの実行によって、通信可否判定部31として動作する。これにより、ネットワーク装置1Bは、パケットの中継を許可リスト30に、機器3CのMACアドレス(識別情報)が記憶されていることを条件に機器3Cからのパケットの中継を行い、非収容対象の機器3Bからのパケットを遮断する。
The
実施形態4では、使用者(機器)が制限される既存のネットワーク装置1Bに記憶させるMACアドレス群を端末装置1Aで抽出することができる。すなわち、ネットワーク装置1Bに許可リスト生成部20を実装するための改変を回避することができる。
In the fourth embodiment, the
<実施形態5>
図24は、実施形態5に係る構成例を示す図である。実施形態5では、実施形態4の構成に代えて、以下の構成を有する。すなわち、「受信装置」の一例である無線通信部14Aを含む端末装置1Aの代わりに、端末装置1Cと、サーバ1Dを備える。サーバ1Dは、ネットワーク2を介して端末装置1Cと接続される。サーバ1Dは、例えばクラウド上にあり、端末装置1Cと通信する。なお、実施形態5は実施形態1の機能配置を変更したもので、実施形態1で示したフローチャートなどの処理詳細には影響しない。
<
FIG. 24 is a diagram illustrating a configuration example according to the fifth embodiment. The fifth embodiment has the following configuration instead of the configuration of the fourth embodiment. That is, a terminal device 1C and a
端末装置1Cは、例えば、図2に示したハードウェア構成と同じハードウェア構成を有する。端末装置1CのCPU11は、メモリ(主記憶装置12及び補助記憶装置13の少なくとも一方)に記憶されたプログラムの実行によって、許可リスト生成部20Aとして動作する。
The terminal device 1C has, for example, the same hardware configuration as the hardware configuration illustrated in FIG. The
サーバ1Dは、図2に示したハードウェア構成と同じハードウェア構成を有する。サーバ1DのCPU11は、メモリ(主記憶装置12及び補助記憶装置13の少なくとも一方)に記憶されたプログラムの実行によって、許可リスト生成部20Bとして動作する。
The
許可リスト生成部20Bは、実施形態1で説明した操作部21,制御部23,抽出部24,及び出力部25を含む。但し、操作部21は、入力画面210など(図4〜図6)のUIに係る情報を、ネットワーク2を介して許可リスト生成部20Aに送る。許可リスト生成部20Aは、作業者5に対するUIとして、入力画面210などを、出力装置17であるディスプレイに表示するとともに、作業者5に入力装置16を用いて情報を入力させる。入力された情報は、ネットワーク2を介して操作部21へ送られる。
The permission
また、許可リスト生成部20Aは、実施形態1で説明した収集部22を有し、受信部141で受信されたパケット(又はパケット中のMACアドレス)をキャプチャし、ネットワーク2を介してサーバ1Dの許可リスト生成部20Bに送る。
The permission list generation unit 20A includes the
上記構成を除き、実施形態5は、実施形態4と同じである。実施形態5では、「受信装置」の一例である無線通信部14Aが、「通信装置」の一例であるサーバ1Dと異なる端末装置1Cに含まれる。端末装置1Cは、「通信装置と異なる装置」の一例である。この場合、サーバ1D(通信装置)は、異なる装置(端末装置1C)から送信される、受信装置(無線通信部14A)で取得された機器の識別情報(MACアドレス)を受け取る。
Except for the above configuration, the fifth embodiment is the same as the fourth embodiment. In the fifth embodiment, the
実施形態5では、端末装置1Cが、非収容対象の除去及び収容対象の抽出、並びに、ネットワーク装置1Bに対するリストの設定を行わなくて良い。このため、実施形態4における端末装置1Aに比べて端末装置1Cの負荷を軽減できる利点がある。
In the fifth embodiment, the terminal device 1C does not have to perform the removal of the non-accommodation target, the extraction of the accommodation target, and the setting of the list for the
<実施形態6>
図25は、実施形態の実施形態6の説明図である。実施形態6は、電力制御装置500を備えている。電力制御装置500は、ネットワーク装置1との通信IF(図示せず)を有し、ネットワーク装置1と通信することができる。電力制御装置500として、例えば、公知のスマート電源タップなどを利用できる。本実施形態6は、電源制御装置500を用いることで、後述するように、実施形態1に係る作業者の操作を減らすことを目的とする。
<
FIG. 25 is an explanatory diagram of
電力制御装置500は、電力制御部502と、複数のソケット504とを含んでいる。ネットワーク装置1は、実施形態で説明した許可リスト生成部20を有している(図25では、操作部21以外の図示を省略)。但し、許可リスト生成部20は、電力制御装置500への制御信号の送信機能が追加されている点において、実施形態と異なる。
The
ソケット504には、機器3Aが備える電源コード(ケーブル)の先端に設けられたプラグが挿入される。或いは、ソケットには、電源コード506の一端に設けられたプラグが挿入される。電源コード506の他端は、ワイヤレス給電パッド507と接続されており、ワイヤレス給電パッド507は、ワイヤレス給電パッド507と接触或いは近接する機器3Aに給電することができる。ワイヤレス給電パッドの代わりに、機器3Aが有する端子と物理的に接触させるパッド(電極)を有するパッドが適用されて良い。
A plug provided at the end of a power cord (cable) provided in the
電力制御部502は、電源からの電力を各ソケット504に供給する。ソケット504にプラグが接続されることで、対応する機器3Aに駆動用の電力が供給可能となる。電力制御部502は、操作部21からの制御情報に基づき、この制御情報で指定されたソケット504に対応する電力供給のオン・オフを行う。電力供給のオン・オフにより、ソケット504を介して接続された機器3Aの電源のオン・オフが制御され、これを契機に該当機器3Aのパケット送信が開始・停止される。
The
よって、ソケット504からの給電のオフによって電源がオフ状態の機器3Aに対し、電力制御部502が、操作部21からの制御信号に従って該当する機器3Aに対応するソケット504に対する電力供給を開始する。すると、機器3Aの電源がオンとなり、機器3Aは、MACアドレスを含むパケットを送信する。このように、実施形態6では、作業者5がボタン3aを押さなくても、制御信号にて指定された機器3Aから再収集のためのパケットを送信させることができる。
Therefore, the
電力制御部502の動作又は処理は、電力制御装置500がCPU及びメモリを含み、CPUのプログラム実行によって行われるようにしても良い。電力制御部502は、上記
した動作に係る処理を行うLSIなどの回路であっても良い。なお、電源制御部502は、給電開始から一定期間電極供給状態を継続し、その後電力供給を停止しても良い。或いは、電源制御部502は、操作部21からの制御信号に従って電力供給を停止するようにしても良い。
The operation or processing of the
実施形態1などでは、MACアドレスの再収集時に、作業者5に提供されるUIのメッセージに従って、作業者が操作順に対応する機器3Aのボタン3aを押していた。これに対し、実施形態6では、操作部21が、複数の機器3Aのうち操作順に対応する機器3Aから機器の識別情報(MACアドレス)を送信させる制御情報を電力制御装置500に供給する「供給部」の一例として動作する。電力制御装置は、「制御装置」の一例である。供給部の一例としての操作部21は、複数の機器3Aのそれぞれにパケット送信の契機となる制御情報を、電力制御装置500の電力制御部502に供給する。
In the first embodiment and the like, at the time of re-collection of the MAC address, the worker presses the
実施形態6によれば、ネットワーク装置1が、所望の機器3Aからパケット(MACアドレス)を送信させるための制御情報を出力し、電力制御装置500に供給する。電力制御装置500は、制御情報に従って、操作順に対応する機器3Aからパケットを送信させる。これによって、作業者5が指定された機器3Aのボタン3aを押す作業が不要となる。なお、本電力制御を用いた収集操作自動化は、実施形態3の図22において、操作欄を電力制御とし、作業者への操作指示メッセージ欄を、電力制御装置500への電力制御メッセージにすることに相当し、実施形態3で示したように、どの通信方式に対応できる。
According to the sixth embodiment, the
また、実施形態6におけるネットワーク装置1を、実施形態4の端末装置1Aや実施形態5の端末装置1C及びサーバ1Dに代えることもできる。すなわち、実施形態6の電力制御装置500の給電のオン・オフに係る制御信号を、端末装置1Aや端末装置1Cとの通信で受け取る構成を採用しても良い。
Further, the
<実施形態7>
実施形態7は、図25に示すように、実施形態6で説明した電力制御装置500の代わりの端末装置として、ネットワーク装置1と通信する端末装置1Aを備えている。ネットワーク装置1は、実施形態1で説明した許可リスト生成部20を有している(図25では、操作部21以外の図示を省略)。但し、許可リスト生成部20は、端末装置1Aへの制御信号の送信機能が追加されている点において、実施形態1と異なる。本実施形態7は、バッテリ駆動する機器3Aに対しても、実施形態6同様に電力制御を用いて、実施形態1に係る作業者の操作を減らすことを目的とする。
<
In the seventh embodiment, as shown in FIG. 25, a
端末装置1Aは、図2に示すハードウェア構成を有し、通信IF15を用いてネットワーク装置1と通信することができる。また、端末装置1Aは、電力制御部602と、無線通信部605とを含んでいる。
The
実施形態7において、各機器3Aは、物理結線604を介して接続された電池(バッテリ)603を有する。電池603は、例えば、乾電池を有するとともに、無線通信部605との無線通信機能を有する電池型IoT機器である。電池603は、無線通信部605から受信される制御信号に従って、機器3Aに対する電力供給のオン・オフを制御する。機器3Aは、電池603からの電力を受けてオンとなった場合にパケット(MACアドレス)をネットワーク装置1に送信する。
In the seventh embodiment, each
ネットワーク装置1の操作部21は、制御信号を電力制御部602に与える。制御信号は、電池603の指定情報と、指定情報で特定される電池603のオン又はオフを示す情報を含む。電力制御部602は、指定情報で特定される電池603宛てに、オン又はオフ信号を送信する。
The
電池603は、オン又はオフ信号に応じて機器3Aに対する電力供給のオン・オフを行う。電池603のオンによって、機器3Aの電源がオンとなり、機器3AからMACアドレスを含むパケットが送信される。このように、電池603のオン・オフ制御によって、機器3Aからパケット送信を制御することができる。
The
電力制御部602の動作は、CPU11がプログラムを実行することによって行われても良い。電力制御部602の動作は、LSIなどの回路により行われても良い。なお、機器3Aのオフは、例えば、電源オンからの所定期間経過によって行われるようにしても良く、端末装置1Aからのオフ信号によって行われるようにしても良い。
The operation of the
実施形態では、MACアドレスの再収集時に、作業者5に提供されるUIのメッセージに従って、作業者が操作順に対応する機器3Aのボタン3aを押していた。これに対し、実施形態7では、供給部の一例である操作部21は、電池603のオン・オフを制御する電力制御部602へ制御情報を供給する。電力制御部602は、電池603のオン・オフを制御する。複数の機器3Aのそれぞれは、電池603のオン(電力供給の開始)を契機に機器の識別情報(MACアドレス)を含むパケットを送信する。これによって、実施形態6と同様に、作業者5が指定された機器3Aのボタン3aを押す作業が不要となる。
In the embodiment, at the time of re-collection of the MAC address, the worker has pressed the
なお、実施形態7におけるネットワーク装置1を、実施形態5の端末装置1C及びサーバ1Dに代えることもできる。すなわち、実施形態7の端末装置1Aを、端末装置1Cとの通信でスイッチのオン・オフに係る制御信号を受け取る構成を採用しても良い。以上説明した実施形態1〜7の構成は、適宜組み合わせることができる。
Note that the
1・・・ネットワーク装置
11・・・CPU
12・・・主記憶装置
13・・・補助記憶装置
1
12 ...
Claims (18)
複数の機器の数と、前記複数の機器から所定の送信順で送信される各機器の識別情報を受信装置で受信する場合に前記受信装置で取得された機器の識別情報と前記取得された機器の識別情報の取得順との対応関係を記憶する処理と、
前記対応関係における識別情報の数が前記複数の機器の数より多い場合に、前記送信順のうち少なくとも2つの順位の夫々にそれぞれ対応する機器の識別情報を再取得する処理と、
記憶した対応関係の中から、前記再取得された識別情報と一致する識別情報を有する対応関係を特定し、特定した対応関係における前記取得順の順位と前記再取得された識別情報の前記送信順の順位との対応づけを行い、前記送信順の最初の順位に対応する取得順の順位より先の取得順に対応する識別情報、前記送信順の最後の順位に対応する取得順より後の取得順に対応する識別情報、及び前記送信順において連続する2つの順位の夫々に対応する取得順の間の取得順と対応する識別情報を前記複数の機器以外の機器の識別情報として除去し、残った識別情報を前記複数の機器のいずれかの識別情報として抽出する処理と
を実行させるプログラム。 In the computer provided in the communication device,
The number of a plurality of devices, the device identification information acquired by the receiving device when the receiving device receives the identification information of each device transmitted from the plurality of devices in a predetermined transmission order, and the acquired device a process of storing a correspondence relationship between the order of acquisition of the identification information,
Wherein when the number of identification information in correspondence is greater than the number of said plurality of devices, a process of re-acquiring the identification information of the corresponding device to each of at least two rank of the transmission order,
From among the stored correspondences, a correspondence having identification information that matches the re-acquired identification information is identified, and the order of the acquisition order and the transmission order of the re-acquired identification information in the identified correspondence are identified. The identification information corresponding to the acquisition order prior to the order of the acquisition order corresponding to the first order of the transmission order, the acquisition order after the acquisition order corresponding to the last order of the transmission order The corresponding identification information and the identification information corresponding to the acquisition order between the two consecutive acquisition orders in the transmission order are removed as the identification information of the devices other than the plurality of devices, and the remaining identification information is removed. Extracting information as identification information of any of the plurality of devices.
を前記コンピュータに実行させる請求項1に記載のプログラム。 When the transmission order and the acquisition order of two devices among the plurality of devices are associated with each other, the transmission order of the two devices is not continuous, and When the number of ranks between the transmission order and the corresponding order of the acquisition order is the same as the number between the ranks in the transmission order of the two devices, each rank between the order of the acquisition order and the corresponding order The program according to claim 1, wherein the program causes the computer to execute a process of extracting identification information of a device to be executed.
請求項2に記載のプログラム。 If the value obtained by subtracting the order difference between the transmission order of the two devices from the order difference between the acquisition order of the two devices is zero, the order of the acquisition order corresponding to the transmission order of the two devices is given to the computer. 3. The program according to claim 2, wherein the program executes a process of extracting identification information corresponding to each rank between the two.
を前記コンピュータに実行させる請求項1から3のいずれか1項に記載のプログラム。 When the order of transmission order and the order of acquisition of two devices among the plurality of devices are associated with each other, the order of transmission of the two devices is continuous, and the order of transmission of the two devices is 4. The method according to claim 1, wherein when the order of the acquisition order corresponding to the order of the order is not continuous, the computer executes a process of removing identification information corresponding to each order between the order of the acquisition of the two devices. 4. The program according to any one of 3.
請求項4に記載のプログラム。 In the computer, the value obtained by subtracting the difference in the order of transmission of the two devices from the difference in the order of acquisition of the two devices and the number of orders between the order of acquisition of the two devices are the same. 5. The computer-readable storage medium according to claim 4, wherein, in a certain case, the processing for removing the identification information corresponding to each of the rankings in the order of acquisition of the two devices is performed.
を前記コンピュータに実行させる請求項1から5のいずれか1項に記載のプログラム。 When the order of the transmission order of the first and second devices among the plurality of devices is associated with the order of the acquisition order of the first and second devices, the first and second A value obtained by subtracting the difference between the order of the transmission order of the first and second devices from the difference between the order of the order of acquisition of the devices is not zero, and the value obtained by subtracting the difference between the order of the acquisition order of the first and second devices is not zero. When the number is smaller than a certain number, the identification information of the third device corresponding to at least one of the orders of the transmission order of the first and second devices is obtained, and the transmission of the third device is performed. Of the order in the order of acquisition and the order of the order of acquisition, and the removal of the identification information corresponding to each order between the order of the acquisition order corresponding to the order of the transmission order of the two devices. Or causing the computer to execute a process of performing extraction. Program.
前記第3の順位と前記第3の機器の取得順との対応付けを行う処理と、
前記第1の順位と前記第3の順位とのそれぞれに対応する取得順の順位の間にある各順位に対応する識別情報を検査対象とする検査を行うとともに、前記第3の順位と前記第2の順位とのそれぞれに対応する前記取得順の順位の間にある各順位に対応する識別情報を検査対象とする検査を行う処理と
をコンピュータに実行させる請求項6に記載のプログラム。 A third order that is a median between a first order that is the order of the transmission order of the first device and a second order that is the order of the transmission order of the second device is the third order of the transmission order. A process of acquiring device identification information from the third device, which is the order,
A process of associating the third order with the acquisition order of the third device;
Inspection is performed with the identification information corresponding to each rank between the ranks of the acquisition order corresponding to the first rank and the third rank as a test target, and the third rank and the third rank are compared with each other. 7. The computer-readable storage medium according to claim 6, wherein the computer performs a process of performing an inspection using identification information corresponding to each order in the order of acquisition corresponding to each of the second order.
をコンピュータに実行させる請求項1から7のいずれか1項に記載のプログラム。 When the first information including a plurality of pieces of identification information is obtained in the acquisition of the identification information from the device corresponding to the certain transmission order, the first information obtained by the acquisition of the identification information from the device corresponding to the certain transmission order is obtained. The second information and the first information are compared, and when there is one identification information commonly included in the first and second information, the identification information commonly included corresponds to the certain transmission order. The program according to any one of claims 1 to 7, which causes the computer to execute a process of extracting as identification information of a device to be performed and removing identification information not commonly included in the first and second information.
をコンピュータに実行させる請求項1から8のいずれか1項に記載のプログラム。 When the first information including a plurality of pieces of identification information is obtained in the acquisition of the identification information from the device corresponding to the certain transmission order, the first information obtained by acquiring the identification information from the device having the transmission order different from the certain transmission order is obtained. The second information obtained is compared with the first information to remove identification information commonly included in the first and second information, and the first and second information are removed by removing the identification information. 9. The computer according to claim 1, wherein the computer is configured to execute a process of extracting one piece of identification information remaining in each piece of information as the identification information corresponding to the certain transmission order and a transmission order different from the certain transmission order. 9. Program.
複数の機器の数と、前記複数の機器から所定の送信順で送信される各機器の識別情報を
受信装置で受信する場合に前記受信装置で取得された機器の識別情報と前記取得された機器の識別情報の取得順との対応関係を記憶部に記憶し、
前記対応関係における識別情報の数が前記複数の機器の数より多い場合に、前記送信順のうち少なくとも2つの順位にそれぞれ対応する機器の識別情報を再取得し、
記憶した対応関係の中から、前記再取得された識別情報と一致する識別情報を有する対応関係を特定し、特定した対応関係における前記取得順の順位と前記再取得された識別情報の前記送信順の順位との対応づけを行い、前記送信順の最初の順位に対応する取得順の順位より先の取得順に対応する識別情報、前記送信順の最後の順位に対応する取得順より後の取得順に対応する識別情報、及び前記送信順において連続する2つの順位の夫々に対応する取得順の間の取得順と対応する識別情報を前記複数の機器以外の機器の識別情報として除去し、残った識別情報を前記複数の機器のいずれかの識別情報として抽出する
ことを含む機器の識別情報の抽出方法。 The communication device is
The number of a plurality of devices, the device identification information acquired by the receiving device when the receiving device receives the identification information of each device transmitted from the plurality of devices in a predetermined transmission order, and the acquired device the correspondence relationship between the order of acquisition of the identification information stored in the storage unit,
When the number of identification information in the correspondence relationship is larger than the number of the plurality of devices, re- acquires identification information of devices corresponding to at least two of the transmission orders,
From among the stored correspondences, a correspondence having identification information that matches the re-acquired identification information is identified, and the order of the acquisition order and the transmission order of the re-acquired identification information in the identified correspondence are identified. The identification information corresponding to the acquisition order prior to the order of the acquisition order corresponding to the first order of the transmission order, the acquisition order after the acquisition order corresponding to the last order of the transmission order The corresponding identification information and the identification information corresponding to the acquisition order between the two consecutive acquisition orders in the transmission order are removed as the identification information of the devices other than the plurality of devices, and the remaining identification information is removed. A method for extracting identification information of a device, comprising extracting information as identification information of any of the plurality of devices.
前記対応関係における識別情報の数が前記複数の機器の数より多い場合に、前記送信順のうち少なくとも2つの順位にそれぞれ対応する機器の識別情報を再取得する処理と、記憶した対応関係の中から、前記再取得された識別情報と一致する識別情報を有する対応関係を特定し、特定した対応関係における前記取得順の順位と前記再取得された識別情報の前記送信順の順位との対応づけを行い、前記送信順の最初の順位に対応する取得順の順位より先の取得順に対応する識別情報、前記送信順の最後の順位に対応する取得順より後の取得順に対応する識別情報、及び前記送信順において連続する2つの順位の夫々に対応する取得順の間の取得順と対応する識別情報を前記複数の機器以外の機器の識別情報として除去し、残った識別情報を前記複数の機器のいずれかの識別情報として抽出する処理とを行う抽出部と、
を含む通信装置。 The number of a plurality of devices, the device identification information acquired by the receiving device when the receiving device receives the identification information of each device transmitted from the plurality of devices in a predetermined transmission order, and the acquired device a storage unit for storing a correspondence relationship between the order of acquisition of the identification information,
Wherein when the number of identification information in correspondence is greater than the number of said plurality of devices, a process of re-acquiring the identification information of the corresponding device into at least two ranks of the transmission order, among the stored corresponding relationship And identifying a correspondence having identification information that matches the re-acquired identification information, and associating the order of the acquisition order in the identified correspondence with the order of the transmission order of the re-acquired identification information. Perform, identification information corresponding to the acquisition order earlier than the order of the acquisition order corresponding to the first order of the transmission order, identification information corresponding to the acquisition order after the acquisition order corresponding to the last order of the transmission order, and removing the corresponding identification information and the order of acquisition between the acquisition order corresponding to each of the two ranks consecutive in the transmission order as the identification information of the device other than the plurality of devices, the remaining identification information the An extraction unit that performs a process of extracting as any identity number of the device,
Communication device including.
をさらに含む請求項11に記載の通信装置。 The communication device according to claim 11, further comprising: a determination unit that determines whether relay of the transmission data received by the communication device is possible using the identification information of the device extracted by the extraction unit.
をさらに含む請求項11又は12に記載の通信装置。 13. The communication device according to claim 11, further comprising: a transmission unit that transmits the identification information of the device extracted by the extraction unit to a communication device that determines whether relay of the transmission data is possible using the identification information of the device extracted by the extraction unit. The communication device according to claim 1.
請求項11から13のいずれか1項に記載の通信装置。 14. The communication device according to claim 11, wherein the receiving device is included in the communication device.
前記通信装置が、前記異なる装置から送信される、前記受信装置で取得された機器の識別情報を受け取る
請求項11から14のいずれか1項に記載の通信装置。 The receiving device is included in a device different from the communication device,
The communication device according to any one of claims 11 to 14, wherein the communication device receives device identification information transmitted from the different device and acquired by the receiving device.
をさらに含む請求項11から15のいずれか1項に記載の通信装置。 The supply device according to any one of claims 11 to 15, further comprising: a supply unit that supplies control information for transmitting identification information of a device from a device corresponding to the order specified from the transmission order among the plurality of devices to the control device. The communication device according to claim 1.
請求項16に記載の通信装置。 17. The communication device according to claim 16, wherein the supply unit supplies the control information to a control device that supplies, as the control device, power that triggers transmission of device identification information to each of the plurality of devices.
前記複数の機器のそれぞれは、前記電池のオンを契機に機器の識別情報を送信する
請求項16に記載の通信装置。 The supply unit, as the control device, supplies the control information to a control device that controls on / off of a battery included in each of the plurality of devices,
17. The communication device according to claim 16, wherein each of the plurality of devices transmits device identification information when the battery is turned on.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016106426A JP6662199B2 (en) | 2016-05-27 | 2016-05-27 | Program, method for extracting device identification information, and communication device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016106426A JP6662199B2 (en) | 2016-05-27 | 2016-05-27 | Program, method for extracting device identification information, and communication device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2017212688A JP2017212688A (en) | 2017-11-30 |
| JP6662199B2 true JP6662199B2 (en) | 2020-03-11 |
Family
ID=60476926
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2016106426A Expired - Fee Related JP6662199B2 (en) | 2016-05-27 | 2016-05-27 | Program, method for extracting device identification information, and communication device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6662199B2 (en) |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| FR2640785B1 (en) * | 1988-12-15 | 1991-02-08 | Europ Rech Electr Lab | METHOD FOR REGISTRATION OF AN ORGAN IN A NETWORK AT LEAST PART OF WHICH IS CONSISTING OF AN OPEN CHANNEL |
| JP3323970B2 (en) * | 1993-06-30 | 2002-09-09 | アンリツ株式会社 | MAC bridge address filter |
| JP3800198B2 (en) * | 2003-05-16 | 2006-07-26 | ソニー株式会社 | Information processing apparatus, access control processing method, and computer program |
| JP2007019947A (en) * | 2005-07-08 | 2007-01-25 | Nec Infrontia Corp | Communication system and filter setting method |
| JP2007184704A (en) * | 2006-01-05 | 2007-07-19 | Sumitomo Electric Ind Ltd | Local area network connection method, management apparatus, and terminal device |
| WO2010041788A1 (en) * | 2008-10-10 | 2010-04-15 | Plustech Inc. | A method for neutralizing the arp spoofing attack by using counterfeit mac addresses |
| JP5974758B2 (en) * | 2012-09-14 | 2016-08-23 | 株式会社バッファロー | Network management system, management apparatus, wireless LAN access point, method for managing a plurality of wireless LAN stations, program, and recording medium |
| JP2014202959A (en) * | 2013-04-05 | 2014-10-27 | 大日本印刷株式会社 | Color filter and display device |
-
2016
- 2016-05-27 JP JP2016106426A patent/JP6662199B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2017212688A (en) | 2017-11-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3468256B1 (en) | Fast wireless fidelity connection method and apparatus | |
| CN109548045B (en) | Equipment debugging method, device, system and storage medium | |
| CN112152853A (en) | Device distribution method and device, computer-readable storage medium, and electronic device | |
| US10863562B2 (en) | Peripheral device pairing | |
| CN113271578A (en) | Network distribution method, device, equipment and computer readable storage medium | |
| CN104391586B (en) | A kind of input through keyboard detection method and detecting system based on mobile terminal | |
| CN106507501B (en) | Bluetooth connection method and device | |
| WO2017107383A1 (en) | Method and device for scanning for and displaying wireless hotspots | |
| CN114896115B (en) | Chip debugging method and device, storage medium and electronic device | |
| CN103995191A (en) | Method and device for identifying model of air conditioner | |
| CN104965676A (en) | Random access memory access method and apparatus and control chip | |
| CN108307526A (en) | Device connection method and related product | |
| CN107328592A (en) | Air conditioner testing method, device and system, processor and storage medium | |
| CN106604363B (en) | Wireless fidelity Wi-Fi scanning method, mobile terminal and storage medium | |
| CN105392142A (en) | Wireless fidelity Wi-Fi access point information storage method and device | |
| CN108885435B (en) | A control method, host, slave, mobile terminal and control system | |
| CN105323748B (en) | Test error uploading method and device | |
| JP6662199B2 (en) | Program, method for extracting device identification information, and communication device | |
| CN109451095B (en) | Remote controller detection method and device, storage medium and terminal | |
| CN107708141B (en) | A wireless network scanning method, mobile terminal and storage medium | |
| CN103763087A (en) | Information processing method and electronic devices | |
| CN106413130A (en) | Bluetooth connection method and device | |
| CN104244172A (en) | Information interaction method and device | |
| CN113190881B (en) | Method and device for determining machine number of charging module and terminal equipment | |
| CN112188456B (en) | Bluetooth device data acquisition method and device, storage medium and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190212 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20191029 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20191030 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20191210 |
|
| 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: 20200114 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200127 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6662199 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |