meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
start:opc_ua_on_bbb [2019/01/08 11:27] admin |
start:opc_ua_on_bbb [2019/01/08 11:29] (current) admin |
||
---|---|---|---|
Line 15: | Line 15: | ||
* OpenSSL (development files) | * OpenSSL (development files) | ||
* cmake and compiler | * cmake and compiler | ||
- | <code> | + | <Code:bash> |
~# apt-get install libavahi-compat-libdnssd-dev libssl-dev cmake build-essential | ~# apt-get install libavahi-compat-libdnssd-dev libssl-dev cmake build-essential | ||
- | </code> | + | </Code> |
Getting the source code for the LDS and the OPC-UA ANSI-C stack from github and link the ANSI C stack into the LDS directory: | Getting the source code for the LDS and the OPC-UA ANSI-C stack from github and link the ANSI C stack into the LDS directory: | ||
- | <code> | + | <Code:bash> |
guest:~$ mkdir OPC | guest:~$ mkdir OPC | ||
guest:~$ cd OPC | guest:~$ cd OPC | ||
Line 28: | Line 28: | ||
guest:~$ ln -s ../UA-AnsiC stack | guest:~$ ln -s ../UA-AnsiC stack | ||
guest:~$ chmod u+x build_linux.sh | guest:~$ chmod u+x build_linux.sh | ||
- | </code> | + | </Code> |
=== FreeOpcUa python client === | === FreeOpcUa python client === | ||
This is a GUI client written in python3 which has following prerequisits from stretch and buster: | This is a GUI client written in python3 which has following prerequisits from stretch and buster: | ||
- | <code> | + | <Code:bash> |
~# sudo apt-get install python3 python3-pip python3-setuptools python3-pyqt5 python3-cryptography python3-opcua python3-pyqtgraph | ~# sudo apt-get install python3 python3-pip python3-setuptools python3-pyqt5 python3-cryptography python3-opcua python3-pyqtgraph | ||
- | </code> | + | </Code> |
The GUI client from python repo needs to be installed with python pip3 like this: | The GUI client from python repo needs to be installed with python pip3 like this: | ||
- | <code> | + | <Code:bash> |
~# sudo pip3 install opcua-client | ~# sudo pip3 install opcua-client | ||
- | </code> | + | </Code> |
Start GUI as normal user: | Start GUI as normal user: | ||
- | <code> | + | <Code:bash> |
guest:~$ opcua-client | guest:~$ opcua-client | ||
- | </code> | + | </Code> |
Line 50: | Line 50: | ||
=== open62541 server === | === open62541 server === | ||
Get latest open62541 sources: | Get latest open62541 sources: | ||
- | <code> | + | <Code:bash> |
guest:~$ git clone --recurse-submodules https://github.com/open62541/open62541.git | guest:~$ git clone --recurse-submodules https://github.com/open62541/open62541.git | ||
- | </code> | + | </Code> |
Create build dir: | Create build dir: | ||
- | <code> | + | <Code:bash> |
guest:~$ cd open62541 | guest:~$ cd open62541 | ||
guest:~$ mkdir build | guest:~$ mkdir build | ||
- | </code> | + | </Code> |
Create makefiles: | Create makefiles: | ||
- | <code> | + | <Code:bash> |
guest:~$ cd build | guest:~$ cd build | ||
guest:~$ ccmake .. | guest:~$ ccmake .. | ||
- | </code> | + | </Code> |
Build all: | Build all: | ||
- | <code> | + | <Code:bash> |
guest:~$ make | guest:~$ make | ||
- | </code> | + | </Code> |
Results of examples are in bin/examples. | Results of examples are in bin/examples. | ||