Configuring the eWON VPN Gateway to stream data to JCore Clarity
Log in to the eWON Web Console
Pull up the eWON's web interface by pointing your browser at your eWON's IP address, e.g. http://192.168.1.100
The eWON's default login is username adm, password adm.
Configure I/O Servers in the eWON
Click on I/O Servers in the sidebar, and select the communications protocol of your source device, e.g. MODBUS. The example below shows a Modbus device at 192.168.1.2.
Create eWON Tags
Click on Tags -> Values in the sidebar, and click the MODE switch to enter SETUP mode. Click the Add button to create a new tag.
Configure the tag by entering a name, selecting the source I/O server under Server Name, and entering information like the tag's source address and data type.
Create a JCore Clarity Account
If you do not already have a JCore Clarity account for yourself or your customer, create one by going to the JCore Clarity Signup Page. For additional info on the signup process, see Creating a Clarity Account.
Create a JCore Clarity Device
Click on the + button next to DEVICES in the sidebar to create a new device.
Enter a device name, login username, and login password to associate with your eWON. Keep the JSON protocol selected.
For security reasons, each device that connects to JCore Clarity must have a unique login. The device's MQTT username will always be prefixed with your organization's name.
After you create the device, you'll see a complete set of communications configuration options. Enterdata for MQTT Topic if you're using the script we provide with your eWON.
Copy BASIC script to eWON device
JCore provides a script that exports eWON data to Clarity using the eWON's BASIC programming environment.
Go to SETUP -> BASIC IDE in the eWON's sidebar. If the script is RUNNING, click on the Script Execution switch to stop it.
Paste the contents of the script below into the Init Section window, and replace myOrganization/myDeviceUsernameand myDevicePassword with the device username and password you entered in Clarity.
If you don't replace myOrganization/myDeviceUsername and myDevicePassword with the actual username and password you configured in Clarity, your device will be unable to connect!
Enable Autorun to ensure that the script runs each time your eWON boots up:
Start the script by switching Script Execution to RUNNING:
If you configured everything correctly, the device should connect to JCore Clarity, create tags, and publish data:
Troubleshooting
If your MQTT username or password do not match the values you entered in JCore Clarity, the eWON will fail to connect. The Clarity screen for the device will look like this:
And the eWON's console section will have log messages indicating the the eWON couldn't connect:
If the eWON can't connect, try re-entering the device's username and password in both Clarity and at the top of the eWON script.
If you're sure that the device username and password match and the eWON still won't connect, please verify that the eWON has a working Internet connection.