Пробовал развернуть на плаформах x86 и Raspberry.
Без проблем собирается и работает.
Поизучал https://github.com/contactless/wirenboard/blob/master/README.md
Пытался собрать для WB.
К сожалению нет большого опыта крос компиляции.
Поэтому результат отрицательный.
Думаю что данный софт будет достаточно полезен для WB.
Обращаюсь к сообществу!
Буду благодарен любому совету, или последовательной инструкции как реализовать это на WB.
root@wirenboard-AD27YKDE:~/mbusd.git/build# cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/root/mbusd.git/build/CMakeFiles/CMakeOutput.log".
See also "/root/mbusd.git/build/CMakeFiles/CMakeError.log".
CMakeError.log
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags:
The output was:
No such file or directory
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags: -c
The output was:
No such file or directory
Ниже наглядная схема планируемой реализации.
WB выступает в качестве gateway.
Это позволит обращаться к каждому устройству modbus rtu по ip, напрямую - прозрачно, указывая modbus ID устройства, в зависимости от того, к какому устройству идет запрос.
План такой.
Протестировано на raspberry.
Опыт с WB будет со временем.
Как то так.