WO2018135160A1 - Usb device - Google Patents
Usb device Download PDFInfo
- Publication number
- WO2018135160A1 WO2018135160A1 PCT/JP2017/043556 JP2017043556W WO2018135160A1 WO 2018135160 A1 WO2018135160 A1 WO 2018135160A1 JP 2017043556 W JP2017043556 W JP 2017043556W WO 2018135160 A1 WO2018135160 A1 WO 2018135160A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- usb
- interface
- wireless communication
- information terminal
- slave
- Prior art date
Links
- 238000004891 communication Methods 0.000 claims abstract description 120
- 238000006243 chemical reaction Methods 0.000 claims abstract description 19
- 238000012986 modification Methods 0.000 description 7
- 230000004048 modification Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 239000000470 constituent Substances 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000007634 remodeling Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
Definitions
- the present invention relates to a USB (Universal Serial Bus) device.
- the present invention particularly relates to a USB device that enables wireless communication with a device having a USB interface.
- Patent Document 1 wireless communication between a portable information terminal and a servo amplifier is made possible by installing a wireless communication interface in a servo amplifier which is an example of a device. This eliminates the need for troublesome cable connections. By wireless communication, various settings can be made from the information terminal to the servo amplifier, and the state of the servo amplifier can be monitored.
- Patent Document 1 it is necessary to equip the servo amplifier with a wireless communication interface.
- the technique of Patent Document 1 cannot be applied to an existing servo amplifier that does not have a wireless communication interface (typically, a servo amplifier that has a USB (Universal Serial Bus, Universal Serial Bus) interface as a communication interface).
- a wireless communication interface typically, a servo amplifier that has a USB (Universal Serial Bus, Universal Serial Bus) interface as a communication interface.
- USB Universal Serial Bus
- USB Universal Serial Bus
- An object of the present invention is to provide a USB device that enables wireless communication between a device having a USB interface and an information terminal with less labor and cost than in the past.
- a USB device is a USB device connected to a device having a USB slave interface that operates as a USB (Universal Serial Bus) slave.
- the USB device is directly connected to the USB slave interface, and operates as a USB master, a wireless communication interface that performs wireless communication with the information terminal, and data conversion between the USB master interface and the wireless communication interface.
- a conversion circuit is a USB device connected to a device having a USB slave interface that operates as a USB (Universal Serial Bus) slave.
- the USB device is directly connected to the USB slave interface, and operates as a USB master, a wireless communication interface that performs wireless communication with the information terminal, and data conversion between the USB master interface and the wireless communication interface.
- the USB device has a readout circuit
- the device equipped with the USB slave interface has a nonvolatile memory that holds parameters necessary for wireless communication with the information terminal, and the USB device is connected to the USB slave interface.
- the readout circuit reads out the parameter from the nonvolatile memory via the USB master interface and the USB slave interface, and the wireless communication interface wirelessly communicates with the information terminal using the parameter read out by the USB master interface. Communication may be performed.
- the USB master interface when the USB master interface is connected to the USB slave interface, the USB master interface transmits the address in which the parameter is stored in the nonvolatile memory to the device having the USB slave interface via the USB slave interface.
- the parameter may be read from the volatile memory.
- USB device may be directly connected to the USB slave interface in the form of a USB dongle.
- the wireless communication interface may perform wireless communication with an information terminal connected to the Internet by connecting to the Internet via a wireless LAN (Local Area Network) router.
- a wireless LAN Local Area Network
- the device equipped with the USB interface may be a servo amplifier that drives a motor.
- the present invention provides a USB device that enables wireless communication between a device having a USB interface and an information terminal with less labor and cost than in the past.
- FIG. 2 is a block diagram showing detailed configurations of a USB device and peripheral devices according to the embodiment.
- 6 is a flowchart showing operations of the USB device and the servo amplifier when the USB device according to the embodiment is connected to the servo amplifier.
- FIG. 1 is a diagram illustrating a usage example of the USB device 20 according to the embodiment.
- peripheral devices the information terminal 10, the servo amplifier 30, and the motor 40 related to the USB device 20 are also illustrated.
- the information terminal 10 has a wireless communication interface.
- the information terminal 10 is a terminal for making various settings for the servo amplifier 30 by wireless communication and for monitoring the state of the servo amplifier.
- the information terminal 10 is, for example, a smartphone or a tablet terminal.
- the servo amplifier 30 is an example of a device having a USB slave interface that operates as a USB slave.
- the servo amplifier 30 is a device that drives the motor 40 in accordance with a command (such as a rotational position or a rotational speed) from the host controller.
- a command such as a rotational position or a rotational speed
- the servo amplifier 30 supplies power to the motor 40 corresponding to a command from the host controller by servo control using a feedback signal from an encoder of the motor 40.
- the motor 40 is an electric motor, for example, a servo motor including a stator, a rotor, and an encoder.
- the motor 40 feeds back a signal indicating the rotational position to the servo amplifier 30 from an encoder connected to the rotating shaft of the rotor.
- the motor 40 rotates the rotor according to the electric power supplied from the servo amplifier 30.
- the USB device 20 enables wireless communication with a device having a USB interface. Specifically, the USB device 20 operates as a wireless interface of the servo amplifier 30 by being directly connected (inserted here) to a USB slave interface that is provided in the servo amplifier 30 and operates as a USB slave. USB dongle as a USB master device.
- the USB master is a “host” that performs control in USB communication.
- the USB slave is a “device” controlled by USB communication. In USB communication, only the master of the master and the slave can start USB transfer.
- the USB dongle is a small device having a USB connector.
- the USB dongle is, for example, a device in which a USB connector is attached to a rectangular parallelepiped having a width of about 1 cm, a length of about 3 cm, and a thickness of about 5 mm.
- FIG. 2 is a block diagram showing a detailed configuration of the USB device 20 and peripheral devices (information terminal 10, servo amplifier 30, and motor 40) according to the embodiment.
- I / F is an abbreviation for “interface”.
- the information terminal 10 includes a wireless communication interface 12 for performing wireless communication with the USB device 20.
- the wireless communication interface 12 is a communication interface that functions as a master of a wireless LAN such as Wi-Fi, for example.
- the wireless LAN communication method is an ad hoc mode in which the information terminal 10 and the USB device 20 directly communicate with each other, but the information terminal 10 and the USB device 20 are connected via an access point 80 (see FIG. 6). It may be in the infrastructure mode where and communicate with each other.
- FIG. 6 is a diagram illustrating a configuration when the information terminal 10 and the USB device 20 according to the embodiment perform wireless communication in the infrastructure mode.
- the wireless communication interface may be Bluetooth (registered trademark).
- the wireless communication interface may be LTE (Long Term Evolution) / 4G / 3G, which is a communication system for mobile phones.
- LTE Long Term Evolution
- 4G Long Term Evolution
- 3G 3th Generation
- the wireless communication interface may be a specific low power wireless.
- the servo amplifier 30 includes a USB slave interface 32 and a nonvolatile memory 34 as components related to connection with the USB device 20. Illustration of other components (control circuit, communication interface, motor drive circuit, etc.) of the servo amplifier 30 is omitted.
- the non-volatile memory 34 is a non-volatile memory that holds parameters necessary for the servo amplifier 30 to perform wireless communication with the information terminal 10 via the USB device 20.
- the parameters stored in the nonvolatile memory 34 are, for example, an SSID (Service Set Identifier), a password for encrypted wireless communication, and the like.
- the USB slave interface 32 is a communication interface that operates as a USB slave.
- the USB slave interface 32 includes a USB connector and a circuit for communicating as a USB slave.
- the USB slave interface 32 includes, for example, a USB A female connector and a USB slave communication circuit.
- the USB device 20 is a USB dongle as a USB master device connected to the USB slave interface 32 included in the servo amplifier 30.
- the USB device 20 includes a wireless communication interface 22, a conversion circuit 24, a USB master interface 26, and a reading circuit 28.
- the USB master interface 26 is directly connected to a USB slave interface 32 provided in the servo amplifier 30.
- the USB master interface 26 is a communication interface that operates as a USB master (that is, a “host” as a control side).
- the USB master interface 26 includes a USB connector and a circuit for communicating as a USB master.
- the USB master interface 26 includes, for example, a USB A male connector and a communication circuit for a USB master.
- the read circuit 28 is connected to the nonvolatile memory 34 included in the servo amplifier 30 via the USB master interface 26 and the USB slave interface 32. It has a function to read parameters from. Specifically, when the USB device 20 is connected to the USB slave interface 32, the read circuit 28 is an address where parameters are stored in the nonvolatile memory 34 via the USB master interface 26 and the USB slave interface 32. Is transmitted to the servo amplifier 30. As a result, the read circuit 28 reads parameters from the nonvolatile memory 34.
- the read circuit 28 includes, for example, a ROM (Read Only Memory) storing a program, a RAM (Randam Access Memory), a processor for executing the program, a microcomputer (microcomputer) having an input / output port, and the like.
- the conversion circuit 24 is a circuit that performs data conversion (that is, bidirectional data conversion) between the USB master interface 26 and the wireless communication interface 22.
- the conversion circuit 24 includes, for example, a ROM storing a program, a RAM, a processor for executing the program, a microcomputer having an input / output port, and the like. Note that the read circuit 28 and the conversion circuit 24 may be realized by a program using the same microcomputer.
- the wireless communication interface 22 is a communication interface that performs wireless communication with the information terminal 10.
- the wireless communication interface 22 is a communication interface that functions as a wireless LAN slave such as Wi-Fi, for example.
- the wireless communication interface 22 has a function of performing wireless communication with the information terminal 10 using parameters read from the nonvolatile memory 34 of the servo amplifier 30 by the USB master interface 26.
- the wireless communication interface 22 uses the SSID (Service Set IDentifier) and password read from the nonvolatile memory 34 of the servo amplifier 30 by the USB master interface 26 as a wireless LAN slave, and the information terminal 10. Wireless communication with the wireless communication interface 12.
- SSID Service Set IDentifier
- USB device 20 Next, the operation of the USB device 20 according to the present embodiment configured as described above will be described.
- FIG. 3 is a flowchart showing operations of the USB device 20 and the servo amplifier 30 when the USB device 20 according to the embodiment is connected to the servo amplifier 30.
- the USB device 20 is connected to the servo amplifier 30 (step S1). Specifically, the USB connector included in the USB master interface 26 of the USB device 20 is inserted into the USB connector included in the USB slave interface 32 of the servo amplifier 30.
- the USB device 20 that has detected the connection requests the servo amplifier 30 to read parameters for wireless communication (such as SSID and password) (step S2). Specifically, the read circuit 28 of the USB device 20 has an address at which parameters are stored in the nonvolatile memory 34 of the servo amplifier 30 with respect to the USB slave interface 32 of the servo amplifier 30 via the USB master interface 26. A read request is made for.
- parameters for wireless communication such as SSID and password
- the servo amplifier 30 that has received the read request transmits the wireless communication parameters held therein to the USB device 20 (step S3).
- the USB slave interface 32 of the servo amplifier 30 that has received the read request reads the parameter stored in the designated address of the nonvolatile memory 34 and transmits it to the USB master interface 26 of the USB device 20.
- the USB device 20 that has received the parameter writes the received parameter in the register of the wireless communication interface 22 (step S4). Specifically, parameters read from the USB slave interface 32 of the servo amplifier 30 to the USB master interface 26 of the USB device 20 are transferred to a register included in the wireless communication interface 22 via the read circuit 28 and stored. Is done.
- the USB device 20 performs wireless communication with the wireless communication interface 12 of the information terminal 10 in accordance with the parameters stored in the internal register (step S5). Specifically, the wireless communication interface 22 of the USB device 20 performs wireless communication with the wireless communication interface 12 of the information terminal 10 as a wireless LAN slave according to parameters stored in an internal register.
- the motor speed request command When a motor speed request command is transmitted from the information terminal 10 equipped with dedicated software (such as an application) to monitor the motor speed (such as rpm per unit time), the motor speed request The command is transmitted wirelessly via the wireless communication interface 12 of the information terminal 10 and received by the wireless communication interface 22 of the USB device 20.
- the conversion circuit 24 converts the motor rotation speed request command received by the wireless communication interface 22 into a format that can be transmitted by USB, and passes through the USB master interface 26 to the USB slave interface 32 of the servo amplifier 30. Send.
- the servo amplifier 30 When the servo amplifier 30 that has received the motor rotation speed request command recognizes the received motor rotation speed request command, the servo amplifier 30 transmits the motor rotation speed data based on the signal read from the encoder of the motor 40 via the USB slave interface 32 to the USB device. Reply to 20.
- the conversion circuit 24 converts the motor rotation speed data received via the USB master interface 26 into a wireless format and transmits it via the wireless communication interface 22.
- the information terminal 10 receives the motor rotation number data via the wireless communication interface 12 and displays it on a screen or the like.
- the USB device 20 is a device connected to a device (servo amplifier 30) including the USB slave interface 32 that operates as a USB (Universal Serial Bus) slave.
- the USB master interface 26 that is directly connected to the USB slave interface 32 and operates as a USB master, the wireless communication interface 22 that performs wireless communication with the information terminal 10, and data between the USB master interface 26 and the wireless communication interface 22 And a conversion circuit 24 that performs conversion.
- the USB device 20 includes a USB master interface 26 that operates as a master with respect to the USB slave interface 32 provided in the device, and the USB device 20 converts wireless communication and USB communication. . Therefore, simply connecting the USB device 20 to the USB slave interface 32 of the device enables wireless communication between the device and the information terminal 10 via the USB device 20. In other words, wireless communication can be performed without the effort and cost of remodeling existing equipment that does not have a wireless communication interface and replacing the equipment with a wireless communication interface. Although no interface is provided, wireless communication between the information terminal 10 and an existing device provided with the USB slave interface 32 becomes possible.
- an information terminal can be wirelessly connected to a device that does not have a wireless communication means. Therefore, settings for various adjustments are made from the information terminal, and the device status such as the alarm occurrence status is set for a device installed at a high place where it is difficult to connect by wire or a device that moves at high speed. Can be monitored.
- the USB device 20 has a readout circuit 28.
- a device corresponding to the servo amplifier 30 provided with the USB slave interface 32 has a nonvolatile memory 34 that holds parameters necessary for wireless communication with the information terminal 10.
- the read circuit 28 reads parameters from the nonvolatile memory 34 via the USB master interface 26 and the USB slave interface 32.
- the wireless communication interface 22 performs wireless communication with the information terminal 10 using the parameters read by the read circuit 28 via the USB master interface 26.
- the USB master interface 26 provided in the USB device 20 has a function of starting USB communication (as a master). Therefore, just by connecting the USB device 20 to the device, the parameters held in the nonvolatile memory 34 of the device are read by the USB master interface 26 via the USB slave interface 32.
- the wireless communication interface 22 performs wireless communication with the information terminal 10 using the read parameters. Therefore, even when another USB device 20 is connected to the device, wireless communication between the information terminal 10 and the device using the parameters held in the device becomes possible.
- the USB device 20 can operate as a wireless communication interface unique to the connected device. Therefore, the USB device 20 has high versatility that can operate without depending on parameters held in the device. As a result, it is not necessary to perform wireless setting for the USB device 20, and the USB device 20 connected to the device does not need to be unique. For this reason, even when the USB device 20 is replaced, no special work is required, and the USB device 20 can be easily performed.
- the read circuit 28 included in the USB device 20 sends the address at which the parameter is stored in the nonvolatile memory 34 via the USB slave interface 32 to the USB device 20.
- the information is transmitted to a device having the slave interface 32.
- the read circuit 28 included in the USB device 20 reads the parameters from the nonvolatile memory 34 after designating the address of the nonvolatile memory 34. Therefore, even if a parameter is stored at a specific address in the nonvolatile memory 34 of the device, the parameter is read out to the reading circuit 28 of the USB device 20.
- the USB device 20 is directly connected to the USB slave interface 32 in the form of a USB dongle.
- the wireless communication interface 22 When the wireless communication interface 22 is a wireless LAN, it can be connected to the Internet via a wireless LAN router connected to the Internet. Thereby, the wireless communication interface 22 can also perform wireless communication with the information terminal 10 in a remote place.
- the USB device 20 is a dongle that is directly connected to the USB slave interface 32 of the device, and is a small device. Therefore, the USB device 20 can be easily attached to a device even in a narrow space where many cables and the like are nearby.
- an example of the servo amplifier 30 has been described as a device to which the USB device 20 is connected.
- the device is not limited to this.
- a PLC Programmable Logic Control
- a host controller that controls the servo amplifier may be a device.
- FIG. 4 is a diagram illustrating a connection example of a USB device according to a modification of the embodiment.
- the USB device is connected to the PLC 50 as a device.
- EtherCAT registered trademark
- a multi-axis control system comprising a PLC 50 for sending commands is shown.
- USB devices 20a to 20d are connected to the servo amplifiers 30a to 30c and the PLC 50, respectively.
- the USB devices 20a to 20d are all the same as the USB device 20.
- the USB devices 20a to 20d can perform wireless communication based on parameters unique to the connected devices.
- the servo amplifiers 30a to 30c and the PLC 50 are wirelessly connected to the information terminal 10. Therefore, the multi-axis control system uses the information terminal 10 to perform various settings for any of the servo amplifiers 30a to 30c and the PLC 50 constituting the multi-axis control system by wireless communication without connecting a cable. Or monitor the status of the device.
- USB devices 20a to 20d can be wirelessly connected regardless of which device is connected. For this reason, even when the USB device is changed or replaced, it is possible to save the trouble of newly performing wireless setting. Since it is not necessary to manage a specific USB device and a specific device in association with each other, the management can be simplified. It is possible to prevent a mistake that the operator of the information terminal changes the setting value of a device different from the device intended by the user and monitors the device state due to a mistake in attaching the USB device.
- servo amplifiers and PLCs are shown as devices, but servo amplifiers, industrial devices other than PLCs, controllers, and the like may be used.
- the USB device according to the present invention has been described based on the embodiment and the modification.
- the present invention is not limited to the embodiment and the modification. Unless it deviates from the main point of this invention, the various form which those skilled in the art thought is given to embodiment or a modification, or another form constructed
- assembled combining the one part component in embodiment and a modification are also included within the scope of the present invention.
- the servo amplifier 30 includes a nonvolatile memory 34 that holds parameters for wireless communication.
- the nonvolatile memory 34 is not necessarily provided. This is because when the wireless communication parameters are held in advance in the register of the wireless communication interface 22 of the USB device 20, it is not necessary to store the wireless communication parameters in the servo amplifier 30.
- the USB device 20 includes only the wireless communication interface 22, the conversion circuit 24, the USB master interface 26, and the reading circuit 28.
- the present invention is not limited to such components, and for example, a control circuit composed of a microcomputer or the like may be provided. In that case, the wireless communication interface 22, the conversion circuit 24, and the USB master interface 26 perform the above-described operations under the control of the control circuit.
- FIG. 5 is a diagram illustrating a configuration in which the USB device according to the embodiment is connected to the Internet via a wireless LAN router.
- the wireless LAN routers 60 a and 60 b are connected to the Internet 70.
- the USB device 20 can connect to the Internet 70 via the wireless LAN router 60a by performing wireless communication with the wireless LAN router 60a.
- the information terminal 10 can connect to the Internet 70 via the wireless LAN router 60b by performing wireless communication with the wireless LAN router 60b. That is, the wireless communication interface 22 of the USB device 20 is connected to the Internet 70 via the wireless LAN router 60a.
- the wireless communication interface 22 of the USB device 20 performs wireless communication with the information terminal 10 connected to the Internet 70. Accordingly, since the information terminal 10 and the USB device 20 are connected to the Internet 70, for example, a device connected to the USB device 20 in China can be monitored from the information terminal 10 in Japan.
- the information terminal 10 and the wireless LAN router 60b are wirelessly connected.
- the wired LAN port of the information terminal 10 and the router connected to the Internet may be connected by a wired LAN.
- the present invention can be used particularly as a USB device that enables wireless communication with a device having a USB interface with less labor and cost than in the past.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
Abstract
A universal serial bus (USB) device is a device connected to an apparatus provided with a USB slave interface which operates as a slave of a USB, and is provided with: a USB master interface which is directly connected to the USB slave interface and operates as a master of the USB; a wireless communication interface which performs wireless communication with an information terminal; and a conversion circuit which performs data conversion between the USB master interface and the wireless communication interface.
Description
本発明は、USB(Universal Serial Bus)装置に関する。本発明は、特に、USBインターフェースを備える機器との無線通信を可能にするUSB装置に関する。
The present invention relates to a USB (Universal Serial Bus) device. The present invention particularly relates to a USB device that enables wireless communication with a device having a USB interface.
従来、工場における自動化に用いられる機器であるFA(Factory Automation、ファクトリー・オートメーション)装置等の、USBインターフェースを備える機器では、機器と通信可能に接続された情報端末により、機器に対して各種設定をしたり、機器の状態を監視したりする(例えば、特許文献1を参照)。
Conventionally, in devices equipped with a USB interface, such as FA (Factory Automation, factory automation) devices that are devices used for automation in factories, various settings can be made to the devices using an information terminal connected to the devices. Or monitor the state of the device (see, for example, Patent Document 1).
特許文献1では、機器の一例であるサーボアンプに無線通信インターフェースを装備させることで、携帯型の情報端末とサーボアンプとの間の無線通信を可能にしている。これによって、煩わしいケーブル接続が不要となる。無線通信により、情報端末からサーボアンプに対して各種設定をしたり、サーボアンプの状態を監視したりすることができる。
In Patent Document 1, wireless communication between a portable information terminal and a servo amplifier is made possible by installing a wireless communication interface in a servo amplifier which is an example of a device. This eliminates the need for troublesome cable connections. By wireless communication, various settings can be made from the information terminal to the servo amplifier, and the state of the servo amplifier can be monitored.
しかしながら、特許文献1の技術では、サーボアンプに無線通信インターフェースを装備させる必要がある。特許文献1の技術では、無線通信インターフェースを備えない既設のサーボアンプ(典型的には、通信インターフェースとしてUSB(Universal Serial Bus、ユニバーサル・シリアル・バス)インターフェースを備えるサーボアンプ)には適用できないという問題がある。つまり、無線通信インターフェースを備えない既設のサーボアンプに対しては、無線通信インターフェースを新たに組み込む改造をするか、無線通信インターフェースを装備したサーボアンプと置き換えるかが必要とされる。このためには、多大な労力又はコストを要する。
However, in the technique of Patent Document 1, it is necessary to equip the servo amplifier with a wireless communication interface. The technique of Patent Document 1 cannot be applied to an existing servo amplifier that does not have a wireless communication interface (typically, a servo amplifier that has a USB (Universal Serial Bus, Universal Serial Bus) interface as a communication interface). There is. In other words, for an existing servo amplifier that does not include a wireless communication interface, it is necessary to make a modification to newly incorporate the wireless communication interface or replace the servo amplifier with a wireless communication interface. This requires a great deal of labor or cost.
そこで、本発明は、このような問題に鑑みてなされたものである。本発明は、従来よりも少ない労力及びコストで、USBインターフェースを備える機器と情報端末との無線通信を可能にするUSB装置を提供することを目的とする。
Therefore, the present invention has been made in view of such problems. An object of the present invention is to provide a USB device that enables wireless communication between a device having a USB interface and an information terminal with less labor and cost than in the past.
上記目的を達成するために、本発明の一形態に係るUSB装置は、USB(ユニバーサル・シリアル・バス)のスレーブとして動作するUSBスレーブインターフェースを備えた機器に接続されるUSB装置である。USB装置は、USBスレーブインターフェースに直接接続され、USBのマスタとして動作するUSBマスタインターフェースと、情報端末と無線通信を行う無線通信インターフェースと、USBマスタインターフェースと無線通信インターフェースとの間のデータ変換を行う変換回路とを備える。
To achieve the above object, a USB device according to an embodiment of the present invention is a USB device connected to a device having a USB slave interface that operates as a USB (Universal Serial Bus) slave. The USB device is directly connected to the USB slave interface, and operates as a USB master, a wireless communication interface that performs wireless communication with the information terminal, and data conversion between the USB master interface and the wireless communication interface. A conversion circuit.
ここで、USB装置は読み出し回路を有し、USBスレーブインターフェースを備えた機器は、情報端末との無線通信に必要なパラメータを保持する不揮発性メモリを有し、USB装置は、USBスレーブインターフェースに接続された場合に、読み出し回路により、USBマスタインターフェース及びUSBスレーブインターフェースを介して、不揮発性メモリから前記パラメータを読み出し、無線通信インターフェースは、USBマスタインターフェースによって読み出されたパラメータを用いて情報端末と無線通信を行ってもよい。
Here, the USB device has a readout circuit, the device equipped with the USB slave interface has a nonvolatile memory that holds parameters necessary for wireless communication with the information terminal, and the USB device is connected to the USB slave interface. In this case, the readout circuit reads out the parameter from the nonvolatile memory via the USB master interface and the USB slave interface, and the wireless communication interface wirelessly communicates with the information terminal using the parameter read out by the USB master interface. Communication may be performed.
また、USBマスタインターフェースは、USBスレーブインターフェースに接続された場合に、USBスレーブインターフェースを介して、不揮発性メモリにおいてパラメータが格納されているアドレスを、USBスレーブインターフェースを備えた機器に伝えることにより、不揮発性メモリから前記パラメータを読み出してもよい。
Further, when the USB master interface is connected to the USB slave interface, the USB master interface transmits the address in which the parameter is stored in the nonvolatile memory to the device having the USB slave interface via the USB slave interface. The parameter may be read from the volatile memory.
また、USB装置は、USBドングルの形態で、USBスレーブインターフェースに直接接続されてもよい。
Also, the USB device may be directly connected to the USB slave interface in the form of a USB dongle.
また、無線通信インターフェースは、無線LAN(Local Area Network)ルータを介してインターネットと接続することにより、インターネットに接続された情報端末と無線通信を行ってもよい。
Further, the wireless communication interface may perform wireless communication with an information terminal connected to the Internet by connecting to the Internet via a wireless LAN (Local Area Network) router.
また、USBインターフェースを備えた機器は、モータを駆動するサーボアンプであってもよい。
Further, the device equipped with the USB interface may be a servo amplifier that drives a motor.
本発明により、従来よりも少ない労力及びコストで、USBインターフェースを備える機器と情報端末との無線通信を可能にするUSB装置が提供される。
The present invention provides a USB device that enables wireless communication between a device having a USB interface and an information terminal with less labor and cost than in the past.
以下、本発明の実施の形態について、図面を用いて詳細に説明する。なお、以下で説明する実施の形態は、いずれも本発明の一具体例を示すものである。以下の実施の形態で示される数値、形状、構成要素、構成要素の配置位置及び接続形態、ステップ、ステップの順序等は、一例であり、本発明を限定する主旨ではない。また、以下の実施の形態における構成要素のうち、本発明の最上位概念を示す独立請求項に記載されていない構成要素については、任意の構成要素として説明される。また、各図は、必ずしも厳密に図示したものではない。各図において、実質的に同一の構成については同一の符号を付し、重複する説明は省略又は簡略化する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Note that each of the embodiments described below shows a specific example of the present invention. Numerical values, shapes, components, arrangement positions and connection forms of components, steps, order of steps, and the like shown in the following embodiments are merely examples, and are not intended to limit the present invention. In addition, among the constituent elements in the following embodiments, constituent elements that are not described in the independent claims indicating the highest concept of the present invention are described as optional constituent elements. Also, the drawings are not necessarily shown strictly. In each figure, substantially the same configuration is denoted by the same reference numeral, and redundant description is omitted or simplified.
図1は、実施の形態に係るUSB装置20の使用例を示す図である。ここでは、USB装置20だけでなく、USB装置20と関連する周辺装置(情報端末10、サーボアンプ30、モータ40)も併せて図示されている。
FIG. 1 is a diagram illustrating a usage example of the USB device 20 according to the embodiment. Here, not only the USB device 20 but also peripheral devices (the information terminal 10, the servo amplifier 30, and the motor 40) related to the USB device 20 are also illustrated.
情報端末10は、無線通信インターフェースを有する。情報端末10は、無線通信によってサーボアンプ30に対して各種設定をしたり、サーボアンプの状態を監視したりするための端末である。情報端末10は、例えば、スマートフォン、又はタブレット端末等である。
The information terminal 10 has a wireless communication interface. The information terminal 10 is a terminal for making various settings for the servo amplifier 30 by wireless communication and for monitoring the state of the servo amplifier. The information terminal 10 is, for example, a smartphone or a tablet terminal.
サーボアンプ30は、USBのスレーブとして動作するUSBスレーブインターフェースを備えた機器の一例である。サーボアンプ30は、上位コントローラからの指令(回転位置、又は回転速度等)に従って、モータ40を駆動する装置である。サーボアンプ30は、例えば、モータ40が有するエンコーダからのフィードバック信号を用いたサーボ制御により、上位コントローラからの指令に対応する電力供給をモータ40に対して行う。
The servo amplifier 30 is an example of a device having a USB slave interface that operates as a USB slave. The servo amplifier 30 is a device that drives the motor 40 in accordance with a command (such as a rotational position or a rotational speed) from the host controller. For example, the servo amplifier 30 supplies power to the motor 40 corresponding to a command from the host controller by servo control using a feedback signal from an encoder of the motor 40.
モータ40は、電動機であり、例えば、ステータ、ロータ及びエンコーダから構成されるサーボモータである。モータ40は、ロータの回転軸に接続されたエンコーダから、回転位置を示す信号をサーボアンプ30にフィードバックする。モータ40は、サーボアンプ30から供給される電力に従ってロータを回転させる。
The motor 40 is an electric motor, for example, a servo motor including a stator, a rotor, and an encoder. The motor 40 feeds back a signal indicating the rotational position to the servo amplifier 30 from an encoder connected to the rotating shaft of the rotor. The motor 40 rotates the rotor according to the electric power supplied from the servo amplifier 30.
USB装置20は、USBインターフェースを備える機器との無線通信を可能にする。USB装置20は、具体的には、サーボアンプ30に設けられた、USBのスレーブとして動作するUSBスレーブインターフェースに直接接続される(ここでは、差し込まれる)ことで、サーボアンプ30の無線インターフェースとして動作するUSBマスタ装置としてのUSBドングルである。
The USB device 20 enables wireless communication with a device having a USB interface. Specifically, the USB device 20 operates as a wireless interface of the servo amplifier 30 by being directly connected (inserted here) to a USB slave interface that is provided in the servo amplifier 30 and operates as a USB slave. USB dongle as a USB master device.
なお、USBのマスタとは、USB通信において制御を行う側の「ホスト」である。USBのスレーブとは、USB通信において制御される側の「デバイス」である。USB通信では、マスタとスレーブのうち、マスタだけがUSB転送を開始することができる。USBドングルは、USBコネクタを有する小型の装置である。USBドングルは、例えば、幅が約1cm、長さが約3cm、厚さが約5mmの直方体にUSBコネクタが取り付けられた装置である。
Note that the USB master is a “host” that performs control in USB communication. The USB slave is a “device” controlled by USB communication. In USB communication, only the master of the master and the slave can start USB transfer. The USB dongle is a small device having a USB connector. The USB dongle is, for example, a device in which a USB connector is attached to a rectangular parallelepiped having a width of about 1 cm, a length of about 3 cm, and a thickness of about 5 mm.
図2は、実施の形態に係るUSB装置20及び周辺装置(情報端末10、サーボアンプ30、モータ40)の詳細な構成を示すブロック図である。なお、図2において、「I/F」は、「インターフェース」の省略表記である。
FIG. 2 is a block diagram showing a detailed configuration of the USB device 20 and peripheral devices (information terminal 10, servo amplifier 30, and motor 40) according to the embodiment. In FIG. 2, “I / F” is an abbreviation for “interface”.
情報端末10は、USB装置20と無線通信を行うための無線通信インターフェース12を備える。無線通信インターフェース12は、例えば、Wi-Fi等の無線LANのマスタとして機能する通信インターフェースである。
The information terminal 10 includes a wireless communication interface 12 for performing wireless communication with the USB device 20. The wireless communication interface 12 is a communication interface that functions as a master of a wireless LAN such as Wi-Fi, for example.
なお、無線LANの通信方式として、図1では、情報端末10とUSB装置20とが直接通信するアドホックモードであるが、アクセスポイント80(図6を参照)を介して情報端末10とUSB装置20とが通信を行う、インフラストラクチャー・モードでも良い。図6は、実施の形態に係る情報端末10とUSB装置20とが、インフラストラクチャー・モードで無線通信を行う場合の構成を示す図である。
In FIG. 1, the wireless LAN communication method is an ad hoc mode in which the information terminal 10 and the USB device 20 directly communicate with each other, but the information terminal 10 and the USB device 20 are connected via an access point 80 (see FIG. 6). It may be in the infrastructure mode where and communicate with each other. FIG. 6 is a diagram illustrating a configuration when the information terminal 10 and the USB device 20 according to the embodiment perform wireless communication in the infrastructure mode.
なお、無線通信インターフェースとしては、Bluetooth(登録商標)でも良い。
Note that the wireless communication interface may be Bluetooth (registered trademark).
なお、無線通信インターフェースとしては、携帯電話の通信方式であるLTE(Long Term Evolution)/4G/3Gでも良い。
The wireless communication interface may be LTE (Long Term Evolution) / 4G / 3G, which is a communication system for mobile phones.
なお、無線通信インターフェースとしては、特定小電力無線でも良い。
Note that the wireless communication interface may be a specific low power wireless.
サーボアンプ30は、USB装置20との接続に関連する構成要素として、USBスレーブインターフェース32及び不揮発性メモリ34を備える。なお、サーボアンプ30の他の構成要素(制御回路、通信インターフェース、モータ駆動回路等)の図示は省略されている。
The servo amplifier 30 includes a USB slave interface 32 and a nonvolatile memory 34 as components related to connection with the USB device 20. Illustration of other components (control circuit, communication interface, motor drive circuit, etc.) of the servo amplifier 30 is omitted.
不揮発性メモリ34は、サーボアンプ30がUSB装置20を介して情報端末10と無線通信を行うのに必要なパラメータを保持する不揮発性のメモリである。不揮発性メモリ34に保持されるパラメータは、例えば、SSID(Service Set Identifier)及び暗号化無線通信のためのパスワード等である。
The non-volatile memory 34 is a non-volatile memory that holds parameters necessary for the servo amplifier 30 to perform wireless communication with the information terminal 10 via the USB device 20. The parameters stored in the nonvolatile memory 34 are, for example, an SSID (Service Set Identifier), a password for encrypted wireless communication, and the like.
USBスレーブインターフェース32は、USBのスレーブとして動作する通信インターフェースである。USBスレーブインターフェース32は、USBコネクタと、USBスレーブとして通信するための回路とを含む。USBスレーブインターフェース32は、例えば、USB Aメス側コネクタと、USBスレーブ用の通信回路とを含む。
The USB slave interface 32 is a communication interface that operates as a USB slave. The USB slave interface 32 includes a USB connector and a circuit for communicating as a USB slave. The USB slave interface 32 includes, for example, a USB A female connector and a USB slave communication circuit.
USB装置20は、サーボアンプ30が備えるUSBスレーブインターフェース32に接続されるUSBマスタ装置としてのUSBドングルである。USB装置20は、無線通信インターフェース22、変換回路24、USBマスタインターフェース26、及び、読み出し回路28を備える。
The USB device 20 is a USB dongle as a USB master device connected to the USB slave interface 32 included in the servo amplifier 30. The USB device 20 includes a wireless communication interface 22, a conversion circuit 24, a USB master interface 26, and a reading circuit 28.
USBマスタインターフェース26は、サーボアンプ30が備えるUSBスレーブインターフェース32に直接接続される。USBマスタインターフェース26は、USBのマスタ(つまり、制御を行う側としての「ホスト」)として動作する通信インターフェースである。USBマスタインターフェース26は、USBコネクタと、USBマスタとして通信するための回路とを含む。USBマスタインターフェース26は、例えば、USB Aオス側コネクタと、USBマスタ用の通信回路とを含む。
The USB master interface 26 is directly connected to a USB slave interface 32 provided in the servo amplifier 30. The USB master interface 26 is a communication interface that operates as a USB master (that is, a “host” as a control side). The USB master interface 26 includes a USB connector and a circuit for communicating as a USB master. The USB master interface 26 includes, for example, a USB A male connector and a communication circuit for a USB master.
ここで、読み出し回路28は、USB装置20が、サーボアンプ30が備えるUSBスレーブインターフェース32に接続されると、USBマスタインターフェース26及びUSBスレーブインターフェース32を介して、サーボアンプ30が有する不揮発性メモリ34からパラメータを読み出す機能を有する。具体的には、読み出し回路28は、USB装置20がUSBスレーブインターフェース32に接続された場合に、USBマスタインターフェース26及びUSBスレーブインターフェース32を介して、不揮発性メモリ34においてパラメータが格納されているアドレスをサーボアンプ30に伝える。これにより、読み出し回路28は、不揮発性メモリ34からパラメータを読み出す。読み出し回路28は、例えば、プログラムを格納したROM(Read Only Memory)、RAM(Randam Access Memory)、プログラムを実行するプロセッサ、入出力ポート等を有するマイコン(マイクロコンピュータ)等で構成される。
Here, when the USB device 20 is connected to the USB slave interface 32 included in the servo amplifier 30, the read circuit 28 is connected to the nonvolatile memory 34 included in the servo amplifier 30 via the USB master interface 26 and the USB slave interface 32. It has a function to read parameters from. Specifically, when the USB device 20 is connected to the USB slave interface 32, the read circuit 28 is an address where parameters are stored in the nonvolatile memory 34 via the USB master interface 26 and the USB slave interface 32. Is transmitted to the servo amplifier 30. As a result, the read circuit 28 reads parameters from the nonvolatile memory 34. The read circuit 28 includes, for example, a ROM (Read Only Memory) storing a program, a RAM (Randam Access Memory), a processor for executing the program, a microcomputer (microcomputer) having an input / output port, and the like.
変換回路24は、USBマスタインターフェース26と無線通信インターフェース22との間のデータ変換(つまり、双方向のデータ変換)を行う回路である。変換回路24は、例えば、プログラムを格納したROM、RAM、プログラムを実行するプロセッサ、入出力ポート等を有するマイクロコンピュータ等で構成される。なお、読み出し回路28及び変換回路24は、同じマイクロコンピュータを用い、プログラムによって実現されてもよい。
The conversion circuit 24 is a circuit that performs data conversion (that is, bidirectional data conversion) between the USB master interface 26 and the wireless communication interface 22. The conversion circuit 24 includes, for example, a ROM storing a program, a RAM, a processor for executing the program, a microcomputer having an input / output port, and the like. Note that the read circuit 28 and the conversion circuit 24 may be realized by a program using the same microcomputer.
無線通信インターフェース22は、情報端末10と無線通信を行う通信インターフェースである。無線通信インターフェース22は、例えば、Wi-Fi等の無線LANのスレーブとして機能する通信インターフェースである。ここで、無線通信インターフェース22は、USBマスタインターフェース26によってサーボアンプ30の不揮発性メモリ34から読み出されたパラメータを用いて、情報端末10と無線通信を行う機能を有する。具体的には、無線通信インターフェース22は、USBマスタインターフェース26によってサーボアンプ30の不揮発性メモリ34から読み出されたSSID(Service Set IDentifier)及びパスワードを用いて、無線LANのスレーブとして、情報端末10の無線通信インターフェース12と無線通信を行う。
The wireless communication interface 22 is a communication interface that performs wireless communication with the information terminal 10. The wireless communication interface 22 is a communication interface that functions as a wireless LAN slave such as Wi-Fi, for example. Here, the wireless communication interface 22 has a function of performing wireless communication with the information terminal 10 using parameters read from the nonvolatile memory 34 of the servo amplifier 30 by the USB master interface 26. Specifically, the wireless communication interface 22 uses the SSID (Service Set IDentifier) and password read from the nonvolatile memory 34 of the servo amplifier 30 by the USB master interface 26 as a wireless LAN slave, and the information terminal 10. Wireless communication with the wireless communication interface 12.
次に、以上のように構成された本実施の形態に係るUSB装置20の動作について説明する。
Next, the operation of the USB device 20 according to the present embodiment configured as described above will be described.
図3は、実施の形態に係るUSB装置20をサーボアンプ30に接続した場合のUSB装置20及びサーボアンプ30の動作を示すフローチャートである。
FIG. 3 is a flowchart showing operations of the USB device 20 and the servo amplifier 30 when the USB device 20 according to the embodiment is connected to the servo amplifier 30.
まず、USB装置20をサーボアンプ30に接続する(ステップS1)。具体的には、USB装置20のUSBマスタインターフェース26が有するUSBコネクタを、サーボアンプ30のUSBスレーブインターフェース32が有するUSBコネクタに差し込む。
First, the USB device 20 is connected to the servo amplifier 30 (step S1). Specifically, the USB connector included in the USB master interface 26 of the USB device 20 is inserted into the USB connector included in the USB slave interface 32 of the servo amplifier 30.
その接続を検知したUSB装置20は、サーボアンプ30に対して、無線通信用のパラメータ(SSID及びパスワード等)の読み出し要求を行う(ステップS2)。具体的には、USB装置20の読み出し回路28は、USBマスタインターフェース26を介して、サーボアンプ30のUSBスレーブインターフェース32に対して、サーボアンプ30の不揮発性メモリ34においてパラメータが格納されているアドレスに対する読み出し要求をする。
The USB device 20 that has detected the connection requests the servo amplifier 30 to read parameters for wireless communication (such as SSID and password) (step S2). Specifically, the read circuit 28 of the USB device 20 has an address at which parameters are stored in the nonvolatile memory 34 of the servo amplifier 30 with respect to the USB slave interface 32 of the servo amplifier 30 via the USB master interface 26. A read request is made for.
読み出し要求を受けたサーボアンプ30は、内部に保持する無線通信用のパラメータをUSB装置20に送信する(ステップS3)。具体的には、読み出し要求を受けたサーボアンプ30のUSBスレーブインターフェース32は、不揮発性メモリ34の指定されたアドレスに格納されているパラメータを読み出し、USB装置20のUSBマスタインターフェース26に送信する。
The servo amplifier 30 that has received the read request transmits the wireless communication parameters held therein to the USB device 20 (step S3). Specifically, the USB slave interface 32 of the servo amplifier 30 that has received the read request reads the parameter stored in the designated address of the nonvolatile memory 34 and transmits it to the USB master interface 26 of the USB device 20.
パラメータを受信したUSB装置20は、受信したパラメータを無線通信インターフェース22が有するレジスタに書き込む(ステップS4)。具体的には、サーボアンプ30のUSBスレーブインターフェース32から、USB装置20のUSBマスタインターフェース26に読み出されたパラメータは、読み出し回路28を介して、無線通信インターフェース22が有するレジスタに転送されて格納される。
The USB device 20 that has received the parameter writes the received parameter in the register of the wireless communication interface 22 (step S4). Specifically, parameters read from the USB slave interface 32 of the servo amplifier 30 to the USB master interface 26 of the USB device 20 are transferred to a register included in the wireless communication interface 22 via the read circuit 28 and stored. Is done.
USB装置20は、内部のレジスタに格納されたパラメータに従って、情報端末10の無線通信インターフェース12と無線通信を行う(ステップS5)。具体的には、USB装置20の無線通信インターフェース22は、内部のレジスタに格納されたパラメータに従って、無線LANのスレーブとして、情報端末10の無線通信インターフェース12と無線通信を行う。
The USB device 20 performs wireless communication with the wireless communication interface 12 of the information terminal 10 in accordance with the parameters stored in the internal register (step S5). Specifically, the wireless communication interface 22 of the USB device 20 performs wireless communication with the wireless communication interface 12 of the information terminal 10 as a wireless LAN slave according to parameters stored in an internal register.
このようにUSB装置20を介して情報端末10とサーボアンプ30とが無線接続されると、例えば、次のような通信が行われる。
Thus, when the information terminal 10 and the servo amplifier 30 are wirelessly connected via the USB device 20, for example, the following communication is performed.
専用のソフトウェア(アプリ等)を搭載した情報端末10からモータ40の回転数(単位時間当たりの回転数rpmなど)をモニタするために、モータ回転数要求コマンドを送信した場合、そのモータ回転数要求コマンドは、情報端末10の無線通信インターフェース12を介して無線で送信され、USB装置20の無線通信インターフェース22で受信される。USB装置20では、変換回路24は、無線通信インターフェース22で受信されたモータ回転数要求コマンドをUSBで送信できるフォーマットに変換し、USBマスタインターフェース26を介して、サーボアンプ30のUSBスレーブインターフェース32に送信する。モータ回転数要求コマンドを受信したサーボアンプ30は、受信したモータ回転数要求コマンドを認識すると、モータ40のエンコーダから読み出した信号に基づくモータ回転数データを、USBスレーブインターフェース32を介して、USB装置20に返信する。USB装置20では、変換回路24は、USBマスタインターフェース26を介して受信したモータ回転数データを無線のフォーマットに変換し、無線通信インターフェース22を介して送信する。情報端末10は、無線通信インターフェース12を介してモータ回転数データを受信し、画面等に表示する。
When a motor speed request command is transmitted from the information terminal 10 equipped with dedicated software (such as an application) to monitor the motor speed (such as rpm per unit time), the motor speed request The command is transmitted wirelessly via the wireless communication interface 12 of the information terminal 10 and received by the wireless communication interface 22 of the USB device 20. In the USB device 20, the conversion circuit 24 converts the motor rotation speed request command received by the wireless communication interface 22 into a format that can be transmitted by USB, and passes through the USB master interface 26 to the USB slave interface 32 of the servo amplifier 30. Send. When the servo amplifier 30 that has received the motor rotation speed request command recognizes the received motor rotation speed request command, the servo amplifier 30 transmits the motor rotation speed data based on the signal read from the encoder of the motor 40 via the USB slave interface 32 to the USB device. Reply to 20. In the USB device 20, the conversion circuit 24 converts the motor rotation speed data received via the USB master interface 26 into a wireless format and transmits it via the wireless communication interface 22. The information terminal 10 receives the motor rotation number data via the wireless communication interface 12 and displays it on a screen or the like.
以上のように、本実施の形態に係るUSB装置20は、USB(ユニバーサル・シリアル・バス)のスレーブとして動作するUSBスレーブインターフェース32を備えた機器(サーボアンプ30)に接続される装置であって、USBスレーブインターフェース32に直接接続され、USBのマスタとして動作するUSBマスタインターフェース26と、情報端末10と無線通信を行う無線通信インターフェース22と、USBマスタインターフェース26と無線通信インターフェース22との間のデータ変換を行う変換回路24とを備える。
As described above, the USB device 20 according to the present embodiment is a device connected to a device (servo amplifier 30) including the USB slave interface 32 that operates as a USB (Universal Serial Bus) slave. The USB master interface 26 that is directly connected to the USB slave interface 32 and operates as a USB master, the wireless communication interface 22 that performs wireless communication with the information terminal 10, and data between the USB master interface 26 and the wireless communication interface 22 And a conversion circuit 24 that performs conversion.
これにより、USB装置20には、機器に設けられたUSBスレーブインターフェース32に対して、マスタとして動作するUSBマスタインターフェース26が備えられ、かつ、USB装置20において無線通信とUSB通信とが変換される。よって、USB装置20を機器のUSBスレーブインターフェース32に接続するだけで、USB装置20を介した機器と情報端末10との無線通信が可能になる。つまり、無線通信インターフェースを備えない既設の機器に対して、無線通信インターフェースを新たに組み込む改造をしたり、無線通信インターフェースを装備した機器に置き換えたりするような労力及びコストをかけることなく、無線通信インターフェースを備えないが、USBスレーブインターフェース32を備える既設の機器と情報端末10との無線通信が可能になる。
Accordingly, the USB device 20 includes a USB master interface 26 that operates as a master with respect to the USB slave interface 32 provided in the device, and the USB device 20 converts wireless communication and USB communication. . Therefore, simply connecting the USB device 20 to the USB slave interface 32 of the device enables wireless communication between the device and the information terminal 10 via the USB device 20. In other words, wireless communication can be performed without the effort and cost of remodeling existing equipment that does not have a wireless communication interface and replacing the equipment with a wireless communication interface. Although no interface is provided, wireless communication between the information terminal 10 and an existing device provided with the USB slave interface 32 becomes possible.
その結果、無線通信手段を有していない機器に対して、情報端末で無線接続できるようになる。よって、有線接続するのが困難な高所に取り付けられた機器、又は、高速で移動する機器に対して、情報端末から、各種調整のための設定を行ったり、アラーム発生状態等の機器状態をモニタしたりすることができる。
As a result, an information terminal can be wirelessly connected to a device that does not have a wireless communication means. Therefore, settings for various adjustments are made from the information terminal, and the device status such as the alarm occurrence status is set for a device installed at a high place where it is difficult to connect by wire or a device that moves at high speed. Can be monitored.
また、USB装置20は読み出し回路28を有する。USBスレーブインターフェース32を備えたサーボアンプ30に相当する機器は、情報端末10との無線通信に必要なパラメータを保持する不揮発性メモリ34を有する。USB装置20は、USBスレーブインターフェース32に接続された場合に、読み出し回路28により、USBマスタインターフェース26及びUSBスレーブインターフェース32を介して、不揮発性メモリ34からパラメータを読み出す。無線通信インターフェース22は、USBマスタインターフェース26を介し、読み出し回路28によって読み出されたパラメータを用いて情報端末10と無線通信を行う。
In addition, the USB device 20 has a readout circuit 28. A device corresponding to the servo amplifier 30 provided with the USB slave interface 32 has a nonvolatile memory 34 that holds parameters necessary for wireless communication with the information terminal 10. When the USB device 20 is connected to the USB slave interface 32, the read circuit 28 reads parameters from the nonvolatile memory 34 via the USB master interface 26 and the USB slave interface 32. The wireless communication interface 22 performs wireless communication with the information terminal 10 using the parameters read by the read circuit 28 via the USB master interface 26.
これにより、USB装置20が備えるUSBマスタインターフェース26は、USB通信を開始できる(マスタとしての)機能を有する。したがって、USB装置20を機器に接続するだけで、機器の不揮発性メモリ34に保持されたパラメータが、USBスレーブインターフェース32を介してUSBマスタインターフェース26によって読み出される。読み出されたパラメータを用いて、無線通信インターフェース22は、情報端末10と無線通信を行う。よって、機器に別のUSB装置20が接続された場合であっても、機器に保持されたパラメータを用いた情報端末10と機器との無線通信が可能になる。
Thereby, the USB master interface 26 provided in the USB device 20 has a function of starting USB communication (as a master). Therefore, just by connecting the USB device 20 to the device, the parameters held in the nonvolatile memory 34 of the device are read by the USB master interface 26 via the USB slave interface 32. The wireless communication interface 22 performs wireless communication with the information terminal 10 using the read parameters. Therefore, even when another USB device 20 is connected to the device, wireless communication between the information terminal 10 and the device using the parameters held in the device becomes possible.
つまり、USB装置20は、別の機器に接続されても、接続された機器に固有の無線通信インターフェースとして動作することができる。したがって、USB装置20は、機器に保持されたパラメータに依存することなく動作できる高い汎用性をもつ。その結果、USB装置20に対して無線の設定を行う必要がなくなり、機器に接続するUSB装置20はユニークである必要がなくなる。このため、USB装置20を交換する場合でも特別な作業を必要とせず、簡単に行うことができる。
That is, even if the USB device 20 is connected to another device, the USB device 20 can operate as a wireless communication interface unique to the connected device. Therefore, the USB device 20 has high versatility that can operate without depending on parameters held in the device. As a result, it is not necessary to perform wireless setting for the USB device 20, and the USB device 20 connected to the device does not need to be unique. For this reason, even when the USB device 20 is replaced, no special work is required, and the USB device 20 can be easily performed.
また、USB装置20が備える読み出し回路28は、USB装置20がUSBスレーブインターフェース32に接続された場合に、USBスレーブインターフェース32を介して、不揮発性メモリ34においてパラメータが格納されているアドレスを、USBスレーブインターフェース32を備えた機器に伝える。
In addition, when the USB device 20 is connected to the USB slave interface 32, the read circuit 28 included in the USB device 20 sends the address at which the parameter is stored in the nonvolatile memory 34 via the USB slave interface 32 to the USB device 20. The information is transmitted to a device having the slave interface 32.
これにより、USB装置20が備える読み出し回路28は、不揮発性メモリ34のアドレスを指定したうえで、不揮発性メモリ34からパラメータを読み出す。したがって、機器の不揮発性メモリ34における特定のアドレスにパラメータを格納しておいても、そのパラメータがUSB装置20の読み出し回路28に読み出される。
Thereby, the read circuit 28 included in the USB device 20 reads the parameters from the nonvolatile memory 34 after designating the address of the nonvolatile memory 34. Therefore, even if a parameter is stored at a specific address in the nonvolatile memory 34 of the device, the parameter is read out to the reading circuit 28 of the USB device 20.
また、USB装置20は、USBドングルの形態で、USBスレーブインターフェース32に直接接続される。
The USB device 20 is directly connected to the USB slave interface 32 in the form of a USB dongle.
また、無線通信インターフェース22が、無線LANの場合には、インターネットに接続された無線LANルータを介して、インターネットに接続できる。これにより、無線通信インターフェース22は、遠隔地にある情報端末10と無線通信を行うこともできる。
When the wireless communication interface 22 is a wireless LAN, it can be connected to the Internet via a wireless LAN router connected to the Internet. Thereby, the wireless communication interface 22 can also perform wireless communication with the information terminal 10 in a remote place.
USB装置20は、機器のUSBスレーブインターフェース32に直接接続されるドングルであり、小型の装置である。したがって、USB装置20は、多くのケーブル等が近くにある狭小空間であっても、容易に機器に装着され得る。
The USB device 20 is a dongle that is directly connected to the USB slave interface 32 of the device, and is a small device. Therefore, the USB device 20 can be easily attached to a device even in a narrow space where many cables and the like are nearby.
なお、実施の形態では、USB装置20が接続される機器として、サーボアンプ30の例が説明された。しかし、機器はこれに限定されない。例えば、サーボアンプを制御する上位コントローラであるPLC(Programmable Logic Control)が機器であってもよい。
In the embodiment, an example of the servo amplifier 30 has been described as a device to which the USB device 20 is connected. However, the device is not limited to this. For example, a PLC (Programmable Logic Control) that is a host controller that controls the servo amplifier may be a device.
図4は、実施の形態の変形例に係るUSB装置の接続例を示す図である。図4では、USB装置を、機器としてのPLC50に接続している。ここでは、多軸のそれぞれに対応した複数のモータ40a~40cと、モータ40a~40cのそれぞれを駆動するサーボアンプ30a~30cと、サーボアンプ30a~30cに対してEtherCAT(登録商標)等を介して指令を送るPLC50とから構成される多軸制御システムが示されている。
FIG. 4 is a diagram illustrating a connection example of a USB device according to a modification of the embodiment. In FIG. 4, the USB device is connected to the PLC 50 as a device. Here, a plurality of motors 40a to 40c corresponding to each of the multi-axes, servo amplifiers 30a to 30c for driving each of the motors 40a to 40c, and the servo amplifiers 30a to 30c via EtherCAT (registered trademark) or the like. A multi-axis control system comprising a PLC 50 for sending commands is shown.
サーボアンプ30a~30c及びPLC50には、それぞれ、USB装置20a~20dが接続されている。USB装置20a~20dは、いずれも、USB装置20と同じものである。USB装置20a~20dは、それぞれの機器に接続されることで、接続された機器に固有のパラメータに基づく無線通信を行うことができる。
USB devices 20a to 20d are connected to the servo amplifiers 30a to 30c and the PLC 50, respectively. The USB devices 20a to 20d are all the same as the USB device 20. When the USB devices 20a to 20d are connected to the respective devices, the USB devices 20a to 20d can perform wireless communication based on parameters unique to the connected devices.
USB装置20a~20dを含む多軸制御システムによれば、サーボアンプ30a~30c及びPLC50は、情報端末10と無線接続される。よって、多軸制御システムは、情報端末10を用いて、ケーブルを接続することなく、無線通信により、多軸制御システムを構成するサーボアンプ30a~30c及びPLC50のいずれに対しても、各種設定をしたり、機器の状態を監視したりすることができる。
According to the multi-axis control system including the USB devices 20a to 20d, the servo amplifiers 30a to 30c and the PLC 50 are wirelessly connected to the information terminal 10. Therefore, the multi-axis control system uses the information terminal 10 to perform various settings for any of the servo amplifiers 30a to 30c and the PLC 50 constituting the multi-axis control system by wireless communication without connecting a cable. Or monitor the status of the device.
USB装置20a~20dは、そのいずれをいずれの機器に接続しても無線接続できる。このため、USB装置を変更又は交換した場合でも、新たに無線設定を行うという手間を省くことができる。特定のUSB装置と特定の機器とを紐付けて管理する必要がないため、管理を簡単にすることができる。USB装置の付け間違いにより、情報端末の操作者が自分の意図した機器とは異なる機器の設定値を変更して機器状態をモニタしてしまう、といった間違いを防ぐことができる。
USB devices 20a to 20d can be wirelessly connected regardless of which device is connected. For this reason, even when the USB device is changed or replaced, it is possible to save the trouble of newly performing wireless setting. Since it is not necessary to manage a specific USB device and a specific device in association with each other, the management can be simplified. It is possible to prevent a mistake that the operator of the information terminal changes the setting value of a device different from the device intended by the user and monitors the device state due to a mistake in attaching the USB device.
図1、図4では、機器としてサーボアンプ、PLCを示したが、サーボアンプ、PLC以外の産業用装置、コントローラ等でも良い。
1 and 4, servo amplifiers and PLCs are shown as devices, but servo amplifiers, industrial devices other than PLCs, controllers, and the like may be used.
以上、本発明に係るUSB装置について、実施の形態及び変形例に基づいて説明したが、本発明は、実施の形態及び変形例に限定されるものではない。本発明の主旨を逸脱しない限り、当業者が思いつく各種変形を実施の形態又は変形例に施したもの、又は、実施の形態及び変形例における一部の構成要素を組み合わせて構築される別の形態も、本発明の範囲内に含まれる。
As described above, the USB device according to the present invention has been described based on the embodiment and the modification. However, the present invention is not limited to the embodiment and the modification. Unless it deviates from the main point of this invention, the various form which those skilled in the art thought is given to embodiment or a modification, or another form constructed | assembled combining the one part component in embodiment and a modification Are also included within the scope of the present invention.
例えば、実施の形態では、サーボアンプ30は、無線通信用のパラメータを保持する不揮発性メモリ34を備える。しかし、必ずしもこのような不揮発性メモリ34を備える必要はない。USB装置20の無線通信インターフェース22が有するレジスタに、予め無線通信用のパラメータが保持されている場合には、サーボアンプ30に無線通信用のパラメータが保持される必要がないからである。
For example, in the embodiment, the servo amplifier 30 includes a nonvolatile memory 34 that holds parameters for wireless communication. However, the nonvolatile memory 34 is not necessarily provided. This is because when the wireless communication parameters are held in advance in the register of the wireless communication interface 22 of the USB device 20, it is not necessary to store the wireless communication parameters in the servo amplifier 30.
また、実施の形態では、USB装置20は、無線通信インターフェース22、変換回路24、USBマスタインターフェース26、及び、読み出し回路28だけを備える。しかし、このような構成要素に限られず、例えば、さらに、マイクロコンピュータ等からなる制御回路を備えてもよい。その場合には、制御回路による制御の下で、無線通信インターフェース22、変換回路24、及び、USBマスタインターフェース26が上述した動作を行う。
In the embodiment, the USB device 20 includes only the wireless communication interface 22, the conversion circuit 24, the USB master interface 26, and the reading circuit 28. However, the present invention is not limited to such components, and for example, a control circuit composed of a microcomputer or the like may be provided. In that case, the wireless communication interface 22, the conversion circuit 24, and the USB master interface 26 perform the above-described operations under the control of the control circuit.
図5は、実施の形態に係るUSB装置を、無線LANルータを介してインターネットに接続する構成を示す図である。無線LANルータ60a、60bはインターネット70に接続されている。USB装置20は無線LANルータ60aと無線通信を行うことで、無線LANルータ60aを介してインターネット70と接続できる。情報端末10は、無線LANルータ60bと無線通信を行うことで、無線LANルータ60bを介してインターネット70に接続できる。つまり、USB装置20の無線通信インターフェース22は、無線LANルータ60aを介してインターネット70と接続する。これにより、USB装置20の無線通信インターフェース22は、インターネット70に接続された情報端末10と無線通信を行う。これにより、情報端末10及びUSB装置20はインターネット70に接続されているため、例えば、中国にあるUSB装置20に接続された機器を、日本にある情報端末10からモニタすることが可能となる。
FIG. 5 is a diagram illustrating a configuration in which the USB device according to the embodiment is connected to the Internet via a wireless LAN router. The wireless LAN routers 60 a and 60 b are connected to the Internet 70. The USB device 20 can connect to the Internet 70 via the wireless LAN router 60a by performing wireless communication with the wireless LAN router 60a. The information terminal 10 can connect to the Internet 70 via the wireless LAN router 60b by performing wireless communication with the wireless LAN router 60b. That is, the wireless communication interface 22 of the USB device 20 is connected to the Internet 70 via the wireless LAN router 60a. Thereby, the wireless communication interface 22 of the USB device 20 performs wireless communication with the information terminal 10 connected to the Internet 70. Accordingly, since the information terminal 10 and the USB device 20 are connected to the Internet 70, for example, a device connected to the USB device 20 in China can be monitored from the information terminal 10 in Japan.
なお、図5では、情報端末10と無線LANルータ60bが無線接続している。しかし、情報端末10の有線LANポートとインターネットに接続されたルータとを有線LAN接続しても良い。
In FIG. 5, the information terminal 10 and the wireless LAN router 60b are wirelessly connected. However, the wired LAN port of the information terminal 10 and the router connected to the Internet may be connected by a wired LAN.
本発明は、特に、従来よりも少ない労力及びコストで、USBインターフェースを備える機器との無線通信を可能にするUSB装置として、利用できる。
The present invention can be used particularly as a USB device that enables wireless communication with a device having a USB interface with less labor and cost than in the past.
10 情報端末
12 無線通信インターフェース
20,20a~20d USB装置
22 無線通信インターフェース
24 変換回路
26 USBマスタインターフェース
28 読み出し回路
30,30a~30c サーボアンプ
32 USBスレーブインターフェース
34 不揮発性メモリ
40,40a~40c モータ
50 PLC
60a,60b 無線LANルータ
70 インターネット
80 アクセスポイント DESCRIPTION OFSYMBOLS 10 Information terminal 12 Wireless communication interface 20, 20a-20d USB apparatus 22 Wireless communication interface 24 Conversion circuit 26 USB master interface 28 Reading circuit 30, 30a-30c Servo amplifier 32 USB slave interface 34 Non-volatile memory 40, 40a-40c Motor 50 PLC
60a, 60bWireless LAN router 70 Internet 80 Access point
12 無線通信インターフェース
20,20a~20d USB装置
22 無線通信インターフェース
24 変換回路
26 USBマスタインターフェース
28 読み出し回路
30,30a~30c サーボアンプ
32 USBスレーブインターフェース
34 不揮発性メモリ
40,40a~40c モータ
50 PLC
60a,60b 無線LANルータ
70 インターネット
80 アクセスポイント DESCRIPTION OF
60a, 60b
Claims (6)
- USB(ユニバーサル・シリアル・バス)のスレーブとして動作するUSBスレーブインターフェースを備えた機器に接続されるUSB装置であって、
前記USBスレーブインターフェースに直接接続され、USBのマスタとして動作するUSBマスタインターフェースと、
情報端末と無線通信を行う無線通信インターフェースと、
前記USBマスタインターフェースと前記無線通信インターフェースとの間のデータ変換を行う変換回路と
を備えるUSB装置。 A USB device connected to a device having a USB slave interface that operates as a USB (Universal Serial Bus) slave,
A USB master interface connected directly to the USB slave interface and operating as a USB master;
A wireless communication interface for performing wireless communication with an information terminal;
A USB device comprising a conversion circuit for performing data conversion between the USB master interface and the wireless communication interface. - 前記USB装置は読み出し回路を有し、
前記USBスレーブインターフェースを備えた前記機器は、前記情報端末との無線通信に必要なパラメータを保持する不揮発性メモリを有し、
前記USB装置は、前記USBスレーブインターフェースに接続された場合に、前記読み出し回路により、前記USBマスタインターフェース及び前記USBスレーブインターフェースを介して、前記不揮発性メモリから前記パラメータを読み出し、
前記無線通信インターフェースは、前記USBマスタインターフェースによって読み出された前記パラメータを用いて前記情報端末と無線通信を行う
請求項1記載のUSB装置。 The USB device has a readout circuit;
The device having the USB slave interface has a nonvolatile memory that holds parameters necessary for wireless communication with the information terminal,
When the USB device is connected to the USB slave interface, the read circuit reads the parameters from the nonvolatile memory via the USB master interface and the USB slave interface,
The USB device according to claim 1, wherein the wireless communication interface performs wireless communication with the information terminal using the parameters read by the USB master interface. - 前記USBマスタインターフェースは、前記USBスレーブインターフェースに接続された場合に、前記USBスレーブインターフェースを介して、前記不揮発性メモリにおいて前記パラメータが格納されているアドレスを、前記USBスレーブインターフェースを備えた前記機器に伝えることにより、前記不揮発性メモリから前記パラメータを読み出す
請求項2記載のUSB装置。 When the USB master interface is connected to the USB slave interface, an address at which the parameter is stored in the nonvolatile memory is sent to the device having the USB slave interface via the USB slave interface. The USB device according to claim 2, wherein the parameter is read from the nonvolatile memory by transmitting the parameter. - 前記USB装置は、USBドングルの形態で、前記USBスレーブインターフェースに直接接続される
請求項1に記載のUSB装置。 The USB device according to claim 1, wherein the USB device is directly connected to the USB slave interface in the form of a USB dongle. - 前記無線通信インターフェースは、無線LANルータを介してインターネットと接続することにより、前記インターネットに接続された前記情報端末と無線通信を行う
請求項1に記載のUSB装置。 The USB device according to claim 1, wherein the wireless communication interface performs wireless communication with the information terminal connected to the Internet by connecting to the Internet via a wireless LAN router. - 前記USBインターフェースを備えた前記機器は、モータを駆動するサーボアンプである
請求項1に記載のUSB装置。 The USB device according to claim 1, wherein the device including the USB interface is a servo amplifier that drives a motor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018563200A JPWO2018135160A1 (en) | 2017-01-19 | 2017-12-05 | USB device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017007849 | 2017-01-19 | ||
JP2017-007849 | 2017-01-19 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018135160A1 true WO2018135160A1 (en) | 2018-07-26 |
Family
ID=62909241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2017/043556 WO2018135160A1 (en) | 2017-01-19 | 2017-12-05 | Usb device |
Country Status (2)
Country | Link |
---|---|
JP (1) | JPWO2018135160A1 (en) |
WO (1) | WO2018135160A1 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008257419A (en) * | 2007-04-04 | 2008-10-23 | Nec Electronics Corp | Communication adapter and data transfer method for communication adapter |
JP2010056897A (en) * | 2008-08-28 | 2010-03-11 | Sii Ido Tsushin Kk | Communication terminal device |
US20110171903A1 (en) * | 2010-01-08 | 2011-07-14 | Cisco Technology, Inc. | Wireless adapter |
-
2017
- 2017-12-05 WO PCT/JP2017/043556 patent/WO2018135160A1/en active Application Filing
- 2017-12-05 JP JP2018563200A patent/JPWO2018135160A1/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008257419A (en) * | 2007-04-04 | 2008-10-23 | Nec Electronics Corp | Communication adapter and data transfer method for communication adapter |
JP2010056897A (en) * | 2008-08-28 | 2010-03-11 | Sii Ido Tsushin Kk | Communication terminal device |
US20110171903A1 (en) * | 2010-01-08 | 2011-07-14 | Cisco Technology, Inc. | Wireless adapter |
Also Published As
Publication number | Publication date |
---|---|
JPWO2018135160A1 (en) | 2019-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102424708B1 (en) | System for monitoring and controlling an industrial plant | |
US20020161478A1 (en) | Robot, robot system, and robot control method | |
JP2016076927A (en) | Communication promotion method, plant wireless access point and non-transitory tangible computer-readable medium | |
US9838959B2 (en) | Environment control device (ECD) and method for configuring the ECD to operate a Wi-Fi communication interface | |
CN110580004B (en) | Remote management device and remote management method | |
WO2015136960A1 (en) | Controller | |
US20130272317A1 (en) | Protocol conversion device and protocol conversion method | |
JP2017093209A (en) | Selection apparatus for selecting motor system and network system | |
CA2785167A1 (en) | Universal human machine interface for automation installation | |
CN104802033A (en) | Fixed type wireless cable tool | |
US20160161934A1 (en) | System for use in Automation Technology | |
JP4849340B2 (en) | Programmable controller and unit | |
CN114731304A (en) | Remote activation of the wireless service interface of the control device via the radio interface | |
JP5792866B2 (en) | Profibus DP master device | |
WO2018135160A1 (en) | Usb device | |
WO2020195503A1 (en) | Network management device, management method, management program, and recording medium | |
WO2019187115A1 (en) | Sensor management device, sensor management method, and program | |
US10067486B2 (en) | System and method for providing a control program code | |
US10270319B2 (en) | Dynamoelectric machine assemblies having memory for use by external devices | |
KR101452692B1 (en) | Iot-based termination apparatus of assembly type | |
JP2016157158A (en) | Controller | |
JP2020119272A (en) | Inspection support device, inspection support method, and inspection support system, and controller | |
JP2024155110A (en) | Information processing device, information processing system, and information processing method | |
KR101738689B1 (en) | A network system | |
KR101335199B1 (en) | System for Remote Control Using Mobile Device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17892798 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2018563200 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17892798 Country of ref document: EP Kind code of ref document: A1 |