Contents About this document: ............................... 4 Definition of Terms: ..............................4 Chapter 1 - Introduction: ..............................5 General Description: ..............................5 Package Contents: ................................. 6 Connection Protocols: ..............................6 Ethernet Cables and Ground Connections to EA-1 Device: ..................7 Chapter 2 - Configuration: ..............................8 Device Default Configuration: ............................
Page 3
Log Files and Buffer Files: ............................29 Chapter 5 - Other Features and Protocols: ........................31 Using HTTP Protocol: ..............................31 Searching for EA-1 Devices on the Network: ......................31 Summary of TCP Port Numbers: ..........................32 Chapter 6 - Details of User Commands: .......................... 33 General Rules: ................................
About this document: This manual contains instructions for using the Ophir “EA-1 Ethernet Adapter” device. The manual is divided into several sections: Introduction to the EA-1 and general description of the product Instructions for initial configuration and setup ...
Chapter 1 - Introduction: This chapter provides some basic information about the EA-1 and a general description of the device. General Description: The EA-1 is an Ethernet Adapter intended for OEM customers. It is designed to work with standard or OEM Ophir smart-plug sensors using a D15 connector.
On the sides: Two M3 mounting holes are provided along each side of the device allowing attachment of an optional bracket (as shown in the illustration above). The bracket makes it easier for the customer to attach the device into his mechanical system. A set of two brackets and four screws are supplied with the device. Full device specifications are included in Appendix A below.
commands directly using the HTTP protocol. As for the Telnet connection, the host device is the “client” and the EA-1 device is the “server”. Details are listed later on in this document. UDP: For situations where Telnet is not available (for example - working with some PLCs) another option is to connect to the device using a UDP connection.
Chapter 2 - Configuration: Configuration of the EA-1 adapter is necessary before using the device for the first time. In particular, the IP address (and other related settings) must be set. Two IP address modes are supported - static allocation (default) or dynamic allocation (using DHCP).
Page 9
An IP address for the EA-1 adapter needs to be obtained from the network administrator; this example uses an IP Address 172.16.16.49, Subnet Mask 255.255.255.0 (default), IP Gateway 172.16.16.1 Note: In order to connect to the device using a PC, it may be necessary to first set the PC to a static IP address. Instructions for doing this are shown in Appendix 2 below.
The settings have been saved in the device EEPROM but will only become active after the next power up of the device. Before disconnecting, repeat the above process for the Subnet Mask and Default Gateway settings, and press “Save” for each one. See example above (on the right). Now the device should be powered down (if using PoE, disconnect the Ethernet cable;...
Page 11
Check the “Telnet Client” option is switched on, then click “OK” and close the window. To open the Telnet connection, go to a command prompt window. Go to the “Start” button, click in the “Search programs and files” box, and type “cmd”, then <enter>: Alternatively, open windows explorer and navigate to the folder “C:\windows\system32\cmd.exe”...
$NS 1 172.16.16.49 <enter> writes the new IP address into the local EEPROM, response should be “SAVED (need reset)” $NS 2 <enter> queries the present setting of Subnet Mask $NS 2 255.255.255.0 <enter> writes the new Subnet Mask value into the local EEPROM, if the value was changed the response should be *SAVED (need reset) $NS 3 <enter>...
Page 13
Using the “Set IP Address” button on the main window is the simplest method. This method will work even if the present IP address does not match the network to which the EA-1 is connected, for example the first time it is used. Open the application, choose a sensor, and click on “Set IP Address”: Then click on “Use current network settings”...
Click on Set IP Address and follow the instructions above to fix the IP address to a good value. Using the “Setup Device” screen: An alternative method to change the IP settings is to use the “Select-Device” screen. After selecting the sensor in the main window (by clicking on it in the “Sensor Choice”...
Several software commands are provided to enable or disable dynamic allocation mode, and to query the IP Address allocated and the other device settings once it is enabled. These commands are listed in the Software Commands section below. In order to send these commands, a connection must be established with the device using one of the methods described above (HTTP, Ethernet, or USB VCP).
Choose the correct new setting and then press “Save”. This has to be done once before using the device and is stored permanently in the device memory thereafter. The default factory setting is 50Hz. The same thing can be done by sending the series of commands $MA 1|2 (use parameter 1 for 50Hz, 2 for 60Hz), followed by $IC (see details below).
Chapter 3 - HTTP and the Built-In Web Server: The EA-1 Adapter has a web server built into its firmware, allowing the user to perform simple tasks via a standard web browser such as Internet Explorer. Tasks that can be performed via the web server include: ...
Page 18
A full list of user commands is included at the end of this manual. To view the power being measured by the attached sensor, return to the “Start Page” and click on the “Power Monitor” button. The following page will be displayed: The latest power measurement will be displayed in red as in the example above.
Chapter 4 - Using the “OphirEthernetApp” Application: The most convenient way to get started with the EA-1 Adapter is to use the PC Application “OphirEthernetApp” supplied with the device. This chapter explains how to use the application. Getting started: The PC application is provided as a setup file which is self-installing. The name of the installation file is: “OphirEthernetApp-1.xx.exe”...
On opening the application, or after clicking on “Search Sensors”, the application searches for all Ophir EA-1 Adapters it can locate on the network and lists them in the box shown above, with details of the sensor attached to each device. While performing the search, the mouse icon is changed to the “busy” symbol. The search includes devices it can locate either via Ethernet or via the USB Virtual COM Port connection, if present.
Choosing Measurement Range: Choose the power or energy range using the drop down “Range” menu as shown: In most cases, an AUTO range option is available, allowing the sensor to choose its own best measurement range based on the present power incident on sensor. Alternatively the customer can choose manually from the available ranges, shown in descending order.
Choosing Wavelength Option, Calibration Curve: Some sensors, such as photodiodes and some types of thermopiles, contain a calibration curve over a certain range of wavelength. With these sensors, the user can choose up to six “favorite” wavelengths, which can be chosen using the simple drop down as for the Discrete Laser Points mentioned above.
Select the wavelength option to remove and click on “Remove”, and that wavelength will be removed from the list. After making any selection or modifying the favorites, if the user wants to keep the present setup after the next startup, he can click on the Save Startup button as mentioned below. Saving the Startup Settings: In order to save the present settings of measurement range and favorite wavelength as the default startup settings, click on the “Save Startup”...
Page 24
On sensors that do not offer energy measurements, this button will be hidden from view. The energy measurement screen will open: The controls in the energy screen are similar to the power screen, except that the statistics are not available. In addition there is a status label just below the Energy value display, as shown below: Wait for the “READY”...
Measuring Average Power for Low Frequency Pulsed Lasers - “Low Freq. Power Mode”: Starting from app & firmware v1.17 (Jan. 2019), a second method to measure average power on photodiode sensors is to use the “Low Freq. Power Mode”. This method is useful when measuring average power for pulsed lasers with frequency in the region of ~5Hz to ~100Hz.
high, or the peak power is saturating the electronics. Note that when using this mode, the EA-1 device can sometimes be in saturation before the average power level exceeds the maximum power defined for the selected range. This is because the peak power of a pulse laser may exceed the allowed peak power for the selected power range.
Firmware Upgrade: The “OphirEthernetApp” software allows the user to upgrade the firmware loaded into the EA-1 device. This should be done only when a new version firmware is available from Ophir: The software will first check for a new firmware BIN file in the local sub-folder “Firmware” and will notify if a firmware upgrade is really necessary.
Sometimes a new version of firmware may be released on the Ophir website separately from the PC Application installation file. In that case, it will be necessary to copy the firmware “BIN” file (“EA1Axxx.bin”) to the local firmware folder of the PC Application (as defined above). The next time the PC Application is started up with the EA-1 attached, the application will prompt to upgrade the firmware.
Log Files and Buffer Files: The “OphirEthernetApp” application automatically creates log files while the sensor window is open and the sensor is measuring. These log files are located in the “My Documents” folder under “\OphirEthernetApp\”. The files are stored in “CSV” format, which is a comma delimited text file that Microsoft Excel can open directly. A new log file is created each time the sensor window is opened, and closed when the sensor window is closed.
Page 30
communication commands between the EA-1 device and the computer via the Telnet channel. This buffer file is a useful way to check which commands are being used by the application, and as a way to provide examples when writing custom software to talk to the device. It is also useful for debugging in case there are errors or problems with the software - the buffer file can be sent to Ophir to investigate any problem that might occur.
Chapter 5 - Other Features and Protocols: This chapter contains some general information about connecting with the EA-1 device using other methods and querying Ophir devices on the network using the UDP Protocol. Using HTTP Protocol: Using an HTTP connection, commands can be sent directly to the device using the IP address and some extra characters.
Chapter 6 - Details of User Commands: The intended use of the EA-1 Adapter is for OEM customers who wish to embed the device inside their own laser system. In order to allow customers to control the device using their own software package, a set of “User Commands”...
UDP Protocol: If using a UDP connection, a special protocol is defined to enable sending commands to the device and receive back replies. This sub-section details the special UDP protocol. In order to send commands to the device via UDP: Send a UDP packet to device IP address port 11000 with the command string as defined here: Command String Format: OPHCMDXXXX$VE<params>[CR] where:...
Ethernet Commands: These commands are specific to Ophir Ethernet devices and control the Ethernet settings and other related issues. Device User Name ($DN): Queries (with no parameter) or sets “Device User Name”. If present value is undefined, returns “?NOT DEFINED”. If parameter is “DELETE”, the present value is erased.
Examples: $NP 1 -> “*IP : 172.16.16.42” $NP 2 -> “*Subnet Mask: 255.255.255.0” Network Dynamic IP Address Mode ($ND): This command sets, or queries the present setting, of DHCP (Dynamic IP address mode). Any changes will be used after the next device power up. Parameters: No parameter ->...
Note: Some of the commands are specific to the type of sensor being used, for example some commands work only for energy mode; other commands work only with sensors which have a continuous calibration curve (all photodiodes and some thermopiles) rather than discrete calibration points (some thermos). Some commands work only with thermopile or only with photodiode sensors.
Mains Setting ($MA): $MA <1 | 2>[CR] -> * 1 50Hz 60Hz[CR][LF] {Sets the internal measurement period used for sampling data to either 20ms for 50Hz regions, or 16.666ms for 60Hz regions. In some cases this can reduce noise. Sending the command with no parameter queries the present setting;...
Page 39
All Ranges ($AR): $AR[CR] –> * 2 AUTO 10.0W 3.00W 300mW 30.0mW [CR][LF] {Returns a list of all available power ranges (scales) (or energy scales if sensor is set to measure energy) including an index value showing which range is presently selected. In the example shown above, top scale (index 0) is 10W, scale 1=3W, scale 2=300mW, scale 3=30mW, and an auto- ranging scale is also available ("AUTO"...
Using the Low Freq. Power Mode (Photodiode Sensors): This section is relevant for photodiode sensors measuring low frequency pulsed sources, such as VCSELs. This measurement mode is available using firmware 1.17 or above. See notes above on “Low Freq. Power Mode” for the PC application for more details.
Page 41
Send Energy Command ($SE): $SE[CR] -> *1.2345E1[CR] (Energy in Joules), or “*OVER[CR]” {Returns latest energy value measured in Joules, or "OVER" if last energy measurement was overrange. Returns "?NOT MEASURING ENERGY[CR]" if sensor is not measuring energy but only power} Notes: The Energy value is returned using same format defined for $SP.
tell the application that this value was ‘over-range’, and that it should change to a higher energy scale before continuing (or reduce the energy of the laser). Continue sending the $EF command until seeing "1" again, and then continue as above from. After changing energy range using $WN command, the sensor takes several seconds to settle before allowing energy measurements to resume.
"CONTINUOUS" indicates that this sensor contains a laser calibration curve. In this case, the user can select any wavelength within the min and max limits of the curve configured inside the sensor, and also choose up to 6 "favorite" wavelengths that are more easy to choose using the $WI or $WL commands, see below. "200"...
As opposed to the more normal "Command/Reply" mode that is used for most other commands such as $SP, $VE, "Continuous Send" mode places the device into a state where it transmits data continuously to the PC without being specifically requested to. This mode can sometimes make the software support easier inside a PC application supporting the device, and reduces the amount of communication overhead necessary to achieve the same thing using Command/Reply mode.
$DP 0 - enables polling until next reset $DP 1 - disables polling until next reset $DP 2 - enables polling permanently (responds “0”) $DP 3 - disables polling permanently (responds “1”) Note: Factory default is polling enabled; the result of disabling is that if a sensor is swapped over, the software (firmware and host application) will not be aware of the change and will carry on assuming nothing has happened.
The commands supported are: $FE, $EF, $SE. For higher performance, and in particular for higher data rates when using fast pulsed lasers, use the “Continuous Send” mode instead as described in the following section. Diffuser Query ($DQ): $DQ -> *1 OUT IN[CR] {This command queries or changes the setting for diffuser in/out for sensors which contain a removable diffuser.
Page 47
1. ASCII MODE $CS 2 (max data rate ~14kHz): Using this mode, energy data is returned in a simple ASCII format with 4 significant digits. Data is terminated with the Line Feed/Carriage Return characters, in a similar way to responses from a regular command. Once per second, frequency data averaged over the last second is provided with the additional key word “FREQ”.
Page 48
Details of Binary Mode: In Binary Mode, data is delivered in large blocks. A block consists of a 16-byte header followed by multiple data packages (8-bytes each). The header contains information about the number of bytes included in the block, a counter, and some fixed value bytes which allow the user to synchronize the data.
Appendix 2 - Configuring a PC to Connect Directly to the EA-1 Device: This Appendix describes how to set up a PC in order to connect using default EA-1 device IP Address 10.0.0.2, to configure the IP address. The PC is changed from using a Dynamic IP address to using a static IP address of 10.0.0.3 and the default gateway is changed to 10.0.0.1.
Page 51
Changing the PC IP settings using Windows 7: Go to: Control Panel -> Network and Sharing Center -> Change adapter settings (on left panel, shown below) Properties Select “Local Area Connection”. (Tip - connect the cable from the PC to the EA-1 device before entering this screen, otherwise the Local Area Network connection may not be displayed) Double-click, or right click and choose “properties”, to open its properties screen.
Page 52
Using Windows 8, 10: Not tested, should be similar to Windows 7. Checking communications using Telnet: Open a command window (Start Menu -> Run -> cmd <enter> ) and type “telnet 10.0.0.2” to open a “Telnet” connection to the device. Then type commands to send to the EA-1 device such as “$VE<enter>”...
Page 53
As an example, let's assume the IP address of the PC is 172.16.18.50, the Subnet Mast is 255.255.252.0, and the Default Gateway is 172.16.16.1 (as shown in the example). e. Connect the EA-1 device to the PC using both the USB and Ethernet cable, and connect the power cable to the EA- 1.
Page 54
l) If using StarLab 3.30(+), the IP address will have to be set up correctly in the settings screen. Look for this icon in the Select Devices screen (below). The EA-1 device should be detected in the "Available Devices" list. Add the device to the list of "My Devices"...
Appendix 3 - Considerations Regarding Cables and Grounding: This appendix discusses types of Ethernet cable that should be used with the EA-1 device. Ophir supplies a short “cross-over” cable along with the EA-1 device, which can be used for initial setup if required. A “cross-over”...
Appendix 4 - Version History: [Any questions? Errors in the document? Please contact Julian.Marsden@ophiropt.com with your comments] v1-v9 - Older versions of application v10 15-Apr-18 (PC app rev 1.14; firmware v1.14-2) Updated instructions for telnet connections on windows 7 & laptops. Expanded Appendix 2 on how to connect between laptops/PC and EA-1.
Need help?
Do you have a question about the Ophir EA-1 and is the answer not in the manual?
Questions and answers