Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Access TCP Services of Application

The applications may have TCP services other than SSH, for example, it may have normal HTTP service. EdgeView TCP channel can be used to access those services by specifying the related ports. Here is an example of 'fledge' IoT application. It services 3 different TCP ports, 80, 8081 and 4840. Port 80 is for initial browser connection; after connect, there is a page to setup browser to another port 8081 usually. The port 4840 is for access the 'TCP binary' data for IoT applications, it requires a special OPC UA client software to access. Here is an example to access the 'fledge' application on EVE device:

  • first use 'edgeview.sh app' to find out the 'fledge' interface IP address, in this case it's 10.1.0.3

- app: fledge-app, appNum: 1

app uuid 9ce27b08-47e0-4568-a56e-b6dd0e4514cd

== bridge: bn1, nbu1x1, 10.1.0.3, 00:16:3e:00:01:01

  • setup the TCP channel for the 'fledge' endpoints: edgeview.sh tcp/10.1.0.3:80/10.1.0.3:8081/10.1.0.3:4840

tcp mapping locally listening 3 ports to remote:
0.0.0.0:9001 -> 10.1.0.3:80

0.0.0.0:9002 -> 10.1.0.3:8081

0.0.0.0:9003 -> 10.1.0.3:4840

  • open a web browser to 'http://localhost:9001', and setup the page for browser switching to endpoint 'localhost:9002' for HTTP service. To access the OPC data, on the MacOS, user can download the 'prosys-opc-us-client' and set the remote endpoint to 'localhost:9003'.

Access TCP Services of External Hosts

...