
28
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. Examples are shown below:
$VE => http://172.16.16.49/?COMMAND=%24ve
$WN 1 => http://172.16.16.49/?COMMAND=%24wn+1
$AW => http://172.16.16.49/?COMMAND=%24aw
The reply is received via the web page displayed. See section on HTTP configuration above for an example.
Note:
HTTP uses TCP Port 80 by convention
Searching for EA-1 Devices on the Network:
The
“OphirEthernetApp”
application uses the UDP protocol to search for EA-1 devices connected on the network.
The search is performed when the application starts up, or when pressing the “Search” button.
Customers can also incorporate a similar search using the UDP protocol into their own software, in order to detect
any Ophir devices connected to their network. This is especially useful if there are multiple EA-1 devices connected,
or if the customer wants to query the IP address of their device.
In order to use the UDP the following steps are necessary:
1. Send broadcast UDP message (UDP PORT:11000) "Search Ophir's devices\0"
2. Listen to broadcast UDP messages, wait for messages starting with string "Ophir's Sensor"
3. Extract the IP address for each device from the full UDP message it returns
The full reply string format is as follows:
Ophir's Sensor\n
Fixed string, can be used to identify the Ophir device
[sensor name]\n
Local name of sensor attached to EA-1 device
[s/n]\n
Sensor serial number
[xxx.xxx.xxx.xxx]\n
EA-1 device IP address
[device user name]\n
EA-1 device user-defined name
For example:
Ophir's Sensor
FL250A-BB35
630979
172.16.16.41
PHOTODIODE