supla-device na Linux

User avatar
lesny8
Posts: 2882
Joined: Mon Dec 11, 2017 9:43 pm

Post

Ostatnio @klew to już ogarnął, gdzieś na forum był też post na ten temat, ale nie chce mi się szukać ;) szybciej znalazłem info w changelogu
https://github.com/SUPLA/supla-device/b ... -14-pi-day
Add: Network: add obtaining of connection source IP address based on network client connection. Channel "state data" will be filled with source IP and then remaining state data is filled by network interface matching the source IP address. Add onLoadConfig to network classes.
Add: Linux: add IP address reporting in channel state.
Dlatego jak masz klienta zbudowanego w oparciu o ostatni release SD to widzisz już IP
Czekam na kolejne Supla Offline Party 👍
User avatar
Goral64
Posts: 3156
Joined: Fri Dec 27, 2019 6:22 pm
Location: Żerniki Wrocławskie

Post

lesny8 wrote: Sat May 04, 2024 9:10 pm Ostatnio @klew to już ogarnął, gdzieś na forum był też post na ten temat, ale nie chce mi się szukać ;) szybciej znalazłem info w changelogu
https://github.com/SUPLA/supla-device/b ... -14-pi-day
Add: Network: add obtaining of connection source IP address based on network client connection. Channel "state data" will be filled with source IP and then remaining state data is filled by network interface matching the source IP address. Add onLoadConfig to network classes.
Add: Linux: add IP address reporting in channel state.
Dlatego jak masz klienta zbudowanego w oparciu o ostatni release SD to widzisz już IP
A widzisz, przegapiłem...
... ale moje wątpliwości pozostały ;)
Widzimy się na Supla Offline Party Season 2 :D

Image
User avatar
Goral64
Posts: 3156
Joined: Fri Dec 27, 2019 6:22 pm
Location: Żerniki Wrocławskie

Post

OK, tutaj w tym branchu jest już działający prototyp supla device for linux, który potrafi odczytywać dane z brokera MQTT a także wysyłać do niego sterowanie przekaźnikiem (CustomRelay). Zapraszam do znęcania się :)
https://github.com/Goral64/supla-device ... inux-relay
Widzimy się na Supla Offline Party Season 2 :D

Image
User avatar
kris.sg
Posts: 421
Joined: Mon Aug 07, 2017 8:08 pm
Location: Przezchlebie

Post

Mam problem z kompilacją SD linux po update :
Po wydaniu poleceń:

Code: Select all

pi@malina:~/supla-device $ cd extras
pi@malina:~/supla-device/extras $ cd examples
pi@malina:~/supla-device/extras/examples $ cd linux
pi@malina:~/supla-device/extras/examples/linux $ git pull
podpowiedź: Odradza się zaciągania bez podania, jak pogodzić rozbieżne gałęzie.
podpowiedź: Można uciszyć ten komunikat wykonując jedno z poniższych
podpowiedź: poleceń kiedyś przed następnym zaciągnięciem:
podpowiedź: 
podpowiedź:   git config pull.rebase false  # scalenie (domyślna strategia)
podpowiedź:   git config pull.rebase true   # przestawienie
podpowiedź:   git config pull.ff only       # tylko przewinięcie
podpowiedź: 
podpowiedź: Można zamienić ,,git config" na ,,git config --global", aby ustawić domyślny
podpowiedź: wybór do wszystkich repozytoriów. Można też przekazać --rebase, --no-rebase
podpowiedź: lub --ff-only w wierszu poleceń, aby zmienić ustawione zachowanie
podpowiedź: w jednym wywołaniu.
Już aktualne.
pi@malina:~/supla-device/extras/examples/linux $ export SUPLA_DEVICE_PATH=~/supla-device
pi@malina:~/supla-device/extras/examples/linux $ cd build
pi@malina:~/supla-device/extras/examples/linux/build $ cmake ..
-- Using the single-header code from /home/pi/supla-device/extras/examples/linux/build/_deps/json-src/single_include/
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/supla-device/extras/examples/linux/build
pi@malina:~/supla-device/extras/examples/linux/build $ make -j5
Komilacja zakończona błędem:

Code: Select all

In file included from /usr/include/c++/10/map:61,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.h:24,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.cpp:21:
/usr/include/c++/10/bits/stl_map.h: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = nlohmann::basic_json<>; _Compare = std::less<void>; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >]':
/usr/include/c++/10/bits/stl_map.h:501:37: note: parameter passing for argument of type 'std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> >, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >, std::less<void>, std::allocator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > > >::const_iterator' changed in GCC 7.1
  501 |    __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  502 |          std::tuple<const key_type&>(__k),
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  503 |          std::tuple<>());
      |          ~~~~~~~~~~~~~~~             
In file included from /usr/include/c++/10/map:60,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.h:24,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.cpp:21:
/usr/include/c++/10/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>, std::tuple<>}; _Key = std::__cxx11::basic_string<char>; _Val = std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >; _Compare = std::less<void>; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >]':
/usr/include/c++/10/bits/stl_tree.h:2458:7: note: parameter passing for argument of type 'std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> >, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >, std::less<void>, std::allocator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > > >::const_iterator' changed in GCC 7.1
 2458 |       _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 51%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/sensor/binary_parsed.cpp.o
/usr/include/c++/10/bits/stl_tree.h: In member function 'std::pair<std::_Rb_tree_node_base*, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_hint_unique_pos(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, const key_type&) [with _Key = std::__cxx11::basic_string<char>; _Val = std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >; _Compare = std::less<void>; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >]':
/usr/include/c++/10/bits/stl_tree.h:2193:5: note: parameter passing for argument of type 'std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> >, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >, std::less<void>, std::allocator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > > >::const_iterator' changed in GCC 7.1
 2193 |     _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 51%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/sensor/humidity_parsed.cpp.o
In file included from /home/pi/supla-device/extras/porting/linux/supla/parser/json.h:27,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.cpp:21:
/home/pi/supla-device/extras/examples/linux/build/_deps/json-src/single_include/nlohmann/json.hpp: In member function 'IteratorType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType>::erase(IteratorType) [with IteratorType = nlohmann::detail::iter_impl<nlohmann::basic_json<> >; typename std::enable_if<(std::is_same<InputIT, nlohmann::detail::iter_impl<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType> > >::value || std::is_same<InputIT, nlohmann::detail::iter_impl<const nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType> > >::value), int>::type <anonymous> = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string<char>; BooleanType = bool; NumberIntegerType = long long int; NumberUnsignedType = long long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer; BinaryType = std::vector<unsigned char>]':
/home/pi/supla-device/extras/examples/linux/build/_deps/json-src/single_include/nlohmann/json.hpp:19467:66: note: parameter passing for argument of type 'std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > >::const_iterator' changed in GCC 7.1
19467 |                 result.m_it.array_iterator = m_value.array->erase(pos.m_it.array_iterator);
      |                                              ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10/vector:67,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.h:26,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.cpp:21:
/usr/include/c++/10/bits/stl_vector.h: In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::const_iterator) [with _Tp = nlohmann::basic_json<>; _Alloc = std::allocator<nlohmann::basic_json<> >]':
/usr/include/c++/10/bits/stl_vector.h:1430:7: note: parameter passing for argument of type 'std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > >::const_iterator' changed in GCC 7.1
 1430 |       erase(const_iterator __position)
      |       ^~~~~
In file included from /usr/include/c++/10/map:60,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.h:24,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.cpp:21:
/usr/include/c++/10/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator) [with _Key = std::__cxx11::basic_string<char>; _Val = std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >; _Compare = std::less<void>; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >]':
/usr/include/c++/10/bits/stl_tree.h:1216:14: note: parameter passing for argument of type 'std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> >, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >, std::less<void>, std::allocator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > > >::const_iterator' changed in GCC 7.1
 1216 |  _M_erase_aux(__position);
      |  ~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/c++/10/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = std::__cxx11::basic_string<char>; _Val = std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >; _Compare = std::less<void>; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >]':
/usr/include/c++/10/bits/stl_tree.h:2510:5: note: parameter passing for argument of type 'std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> >, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > >, std::less<void>, std::allocator<std::pair<const std::__cxx11::basic_string<char>, nlohmann::basic_json<> > > >::const_iterator' changed in GCC 7.1
 2510 |     _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 51%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/sensor/pressure_parsed.cpp.o
In file included from /usr/include/c++/10/vector:67,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.h:26,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.cpp:21:
/usr/include/c++/10/bits/stl_vector.h: In copy constructor 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = nlohmann::basic_json<>; _Alloc = std::allocator<nlohmann::basic_json<> >]':
/usr/include/c++/10/bits/stl_vector.h:558:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >' changed in GCC 7.1
  558 |    std::__uninitialized_copy_a(__x.begin(), __x.end(),
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
  559 |           this->_M_impl._M_start,
      |           ~~~~~~~~~~~~~~~~~~~~~~~
  560 |           _M_get_Tp_allocator());
      |           ~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10/vector:66,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.h:26,
                 from /home/pi/supla-device/extras/porting/linux/supla/parser/json.cpp:21:
/usr/include/c++/10/bits/stl_uninitialized.h: In function '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >; _ForwardIterator = nlohmann::basic_json<>*; _Tp = nlohmann::basic_json<>]':
/usr/include/c++/10/bits/stl_uninitialized.h:323:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >' changed in GCC 7.1
  323 |     __uninitialized_copy_a(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_uninitialized.h:323:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >' changed in GCC 7.1
/usr/include/c++/10/bits/stl_uninitialized.h:325:37: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >' changed in GCC 7.1
  325 |     { return std::uninitialized_copy(__first, __last, __result); }
      |              ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_uninitialized.h: In function '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >; _ForwardIterator = nlohmann::basic_json<>*]':
/usr/include/c++/10/bits/stl_uninitialized.h:125:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >' changed in GCC 7.1
  125 |     uninitialized_copy(_InputIterator __first, _InputIterator __last,
      |     ^~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_uninitialized.h:125:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >' changed in GCC 7.1
/usr/include/c++/10/bits/stl_uninitialized.h:150:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >' changed in GCC 7.1
  147 |       return std::__uninitialized_copy<__is_trivial(_ValueType1)
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  148 |            && __is_trivial(_ValueType2)
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  149 |            && __assignable>::
      |            ~~~~~~~~~~~~~~~~~~
  150 |  __uninit_copy(__first, __last, __result);
      |  ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_uninitialized.h: In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >; _ForwardIterator = nlohmann::basic_json<>*; bool _TrivialValueTypes = false]':
/usr/include/c++/10/bits/stl_uninitialized.h:84:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >' changed in GCC 7.1
   84 |         __uninit_copy(_InputIterator __first, _InputIterator __last,
      |         ^~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_uninitialized.h:84:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>*, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >' changed in GCC 7.1
[ 51%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/sensor/rain_parsed.cpp.o
[ 52%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/sensor/wind_parsed.cpp.o
[ 52%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/sensor/weight_parsed.cpp.o
[ 52%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/sensor/distance_parsed.cpp.o
[ 53%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/sensor/therm_hygro_meter_parsed.cpp.o
[ 53%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/sensor/general_purpose_measurement_parsed.cpp.o
[ 53%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/sensor/general_purpose_meter_parsed.cpp.o
[ 54%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/control/cmd_relay.cpp.o
[ 54%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/control/action_trigger_parsed.cpp.o
[ 54%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/control/hvac_parsed.cpp.o
[ 54%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/control/custom_relay.cpp.o
/home/pi/supla-device/extras/porting/linux/supla/control/hvac_parsed.cpp:35:7: error: 'int Supla::Control::CmdOutput::getOutputValue()' marked 'override', but does not override
   35 |   int getOutputValue() override;
      |       ^~~~~~~~~~~~~~
/home/pi/supla-device/extras/porting/linux/supla/control/hvac_parsed.cpp: In constructor 'Supla::Control::HvacParsed::HvacParsed(std::string, std::string, std::string, std::string)':
/home/pi/supla-device/extras/porting/linux/supla/control/hvac_parsed.cpp:80:42: error: invalid new-expression of abstract class type 'Supla::Control::CmdOutput'
   80 |   cmdOutput = new CmdOutput(cmdOn, cmdOff);
      |                                          ^
/home/pi/supla-device/extras/porting/linux/supla/control/hvac_parsed.cpp:31:7: note:   because the following virtual functions are pure within 'Supla::Control::CmdOutput':
   31 | class CmdOutput : public OutputInterface {
      |       ^~~~~~~~~
In file included from /home/pi/supla-device/extras/porting/linux/supla/control/hvac_parsed.cpp:23:
/home/pi/supla-device/src/supla/control/output_interface.h:29:15: note:     'virtual int Supla::Control::OutputInterface::getOutputValue() const'
   29 |   virtual int getOutputValue() const = 0;
      |               ^~~~~~~~~~~~~~
/home/pi/supla-device/extras/porting/linux/supla/control/hvac_parsed.cpp:84:71: error: invalid new-expression of abstract class type 'Supla::Control::CmdOutput'
   84 |     cmdOutputSecondary = new CmdOutput(cmdOnSecondary, cmdOffSecondary);
      |                                                                       ^
[ 55%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/control/control_payload.cpp.o
[ 55%] Building CXX object CMakeFiles/supladevice.dir/home/pi/supla-device/src/supla/pv/fronius.cpp.o
make[2]: *** [CMakeFiles/supladevice.dir/build.make:2409: CMakeFiles/supladevice.dir/home/pi/supla-device/extras/porting/linux/supla/control/hvac_parsed.cpp.o] Błąd 1
make[2]: *** Oczekiwanie na niezakończone zadania....
make[1]: *** [CMakeFiles/Makefile2:244: CMakeFiles/supladevice.dir/all] Błąd 2
make: *** [Makefile:149: all] Błąd 2
Coś robię żle?
■Rpi4(m.2) Supla Cloud, Scripts ■Rpi3(sd) SD: 6x MI ATC, 1x W.S.
ROLETY_V3 x12 ■SWITCH_DUAL x4 ■GATE_MODULE_V3 x1 ■SOCKET_SSR x1 ■SMOKE_MODULE x1
SONOFF_TOUCH x4 ■YUNSCHAN x1 ■STAITCASE_DIMMER x1 ■MEW-01 x2 ■mROW-02 x1 ■LEW-01 x1
POW_R2 x2 ■SP111 x3
User avatar
klew
Posts: 9158
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław

Post

Chyba zepsulem kompilację tego projektu. Wieczorem poprawię
Widzimy się na Supla Offline Party - 19.10.2024
https://forum.supla.org/viewtopic.php?t=15820
User avatar
klew
Posts: 9158
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław

Post

kris.sg wrote: Fri Jun 21, 2024 5:19 pm Mam problem z kompilacją SD linux po update :
Już jest poprawione. Zrób jeszcze raz pull i make - powinno przejść
Widzimy się na Supla Offline Party - 19.10.2024
https://forum.supla.org/viewtopic.php?t=15820
User avatar
kris.sg
Posts: 421
Joined: Mon Aug 07, 2017 8:08 pm
Location: Przezchlebie

Post

Teraz jest ok, dzięki.
■Rpi4(m.2) Supla Cloud, Scripts ■Rpi3(sd) SD: 6x MI ATC, 1x W.S.
ROLETY_V3 x12 ■SWITCH_DUAL x4 ■GATE_MODULE_V3 x1 ■SOCKET_SSR x1 ■SMOKE_MODULE x1
SONOFF_TOUCH x4 ■YUNSCHAN x1 ■STAITCASE_DIMMER x1 ■MEW-01 x2 ■mROW-02 x1 ■LEW-01 x1
POW_R2 x2 ■SP111 x3
User avatar
kris.sg
Posts: 421
Joined: Mon Aug 07, 2017 8:08 pm
Location: Przezchlebie

Post

Przy próbie połączenia z prywatną instancją, SVD linux ma problem:

Code: Select all

ERR[1719040859.373930] SSL_ERROR_SYSCALL
Wszystkie pozostałe moduły w cloud rozłączają się, jak usunę SVD z supli wtedy pozostałe urządzenia działają normalnie.
Mam najnowszą wersję clouda, na wcześniejszej było to samo, myślałem że po aktualizacji będzie ok, wygląda na jakiś problem z SSL.
@klew co może być przyczyną ?
■Rpi4(m.2) Supla Cloud, Scripts ■Rpi3(sd) SD: 6x MI ATC, 1x W.S.
ROLETY_V3 x12 ■SWITCH_DUAL x4 ■GATE_MODULE_V3 x1 ■SOCKET_SSR x1 ■SMOKE_MODULE x1
SONOFF_TOUCH x4 ■YUNSCHAN x1 ■STAITCASE_DIMMER x1 ■MEW-01 x2 ■mROW-02 x1 ■LEW-01 x1
POW_R2 x2 ■SP111 x3
User avatar
klew
Posts: 9158
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław

Post

kris.sg wrote: Sat Jun 22, 2024 7:29 am Przy próbie połączenia z prywatną instancją, SVD linux ma problem:

Code: Select all

ERR[1719040859.373930] SSL_ERROR_SYSCALL
Wszystkie pozostałe moduły w cloud rozłączają się, jak usunę SVD z supli wtedy pozostałe urządzenia działają normalnie.
Mam najnowszą wersję clouda, na wcześniejszej było to samo, myślałem że po aktualizacji będzie ok, wygląda na jakiś problem z SSL.
@klew co może być przyczyną ?
Wszystko się rozłącza wtedy?
Na jakiej maszynie masz serwer?
Masz logi z serwera?
Widzimy się na Supla Offline Party - 19.10.2024
https://forum.supla.org/viewtopic.php?t=15820
User avatar
kris.sg
Posts: 421
Joined: Mon Aug 07, 2017 8:08 pm
Location: Przezchlebie

Post

klew wrote: Sat Jun 22, 2024 7:36 am
kris.sg wrote: Sat Jun 22, 2024 7:29 am Przy próbie połączenia z prywatną instancją, SVD linux ma problem:

Code: Select all

ERR[1719040859.373930] SSL_ERROR_SYSCALL
Wszystkie pozostałe moduły w cloud rozłączają się, jak usunę SVD z supli wtedy pozostałe urządzenia działają normalnie.
Mam najnowszą wersję clouda, na wcześniejszej było to samo, myślałem że po aktualizacji będzie ok, wygląda na jakiś problem z SSL.
@klew co może być przyczyną ?
Wszystko się rozłącza wtedy?
Na jakiej maszynie masz serwer?
Masz logi z serwera?
na rpi4 - system 32bit
Urządzenia się rozłączają i podłączają
log z serwera:

Code: Select all

INFO[08:34:03.403236] Connection accepted: 192.168.1.1:35782 ClientSD: 58 Secure: 1
INFO[08:34:03.408613] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 48
INFO[08:34:03.540813] Device registration started. ClientSD: 48 Protocol Version: 16 ThreadID: 15495 GUID: 736E402D
INFO[08:34:03.588436] Connection accepted: 192.168.1.1:36193 ClientSD: 12 Secure: 0
INFO[08:34:03.698466] Device registration started. ClientSD: 12 Protocol Version: 16 ThreadID: 15501 GUID: 63843ACF
INFO[08:34:03.727573] Device registered. ID: 15, ClientSD: 45 Protocol Version: 16 ThreadID: 15494 GUID: 05DB3A2E ResultCode: 3
INFO[08:34:03.868599] Device registered. ID: 9, ClientSD: 48 Protocol Version: 16 ThreadID: 15495 GUID: 736E402D ResultCode: 3
INFO[08:34:03.962557] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 58
INFO[08:34:03.972757] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 54
INFO[08:34:03.974496] Connection accepted: 192.168.1.1:45529 ClientSD: 61 Secure: 1
INFO[08:34:03.975962] Connection accepted: 192.168.1.1:27889 ClientSD: 71 Secure: 1
INFO[08:34:03.990366] Connection accepted: 192.168.1.1:4847 ClientSD: 74 Secure: 1
INFO[08:34:03.990992] Connection accepted: 192.168.1.1:26725 ClientSD: 77 Secure: 1
INFO[08:34:04.054480] Device registered. ID: 34, ClientSD: 12 Protocol Version: 16 ThreadID: 15501 GUID: 63843ACF ResultCode: 3
INFO[08:34:04.075227] Device registration started. ClientSD: 58 Protocol Version: 16 ThreadID: 15499 GUID: 418AF853
INFO[08:34:04.087911] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 52
INFO[08:34:04.088204] Device registration started. ClientSD: 54 Protocol Version: 16 ThreadID: 15498 GUID: C8710393
INFO[08:34:04.139101] Connection accepted: 192.168.1.1:4381 ClientSD: 80 Secure: 1
INFO[08:34:04.188250] Connection accepted: 192.168.1.1:36847 ClientSD: 83 Secure: 1
INFO[08:34:04.193994] Connection accepted: 192.168.1.1:49993 ClientSD: 88 Secure: 1
INFO[08:34:04.198943] Device registration started. ClientSD: 52 Protocol Version: 16 ThreadID: 15497 GUID: 46E99A18
INFO[08:34:04.225314] Device registered. ID: 41, ClientSD: 58 Protocol Version: 16 ThreadID: 15499 GUID: 418AF853 ResultCode: 3
INFO[08:34:04.232202] Device registered. ID: 29, ClientSD: 54 Protocol Version: 16 ThreadID: 15498 GUID: C8710393 ResultCode: 3
INFO[08:34:04.311994] Device registered. ID: 12, ClientSD: 52 Protocol Version: 16 ThreadID: 15497 GUID: 46E99A18 ResultCode: 3
INFO[08:34:04.383163] Connection accepted: 192.168.1.1:7561 ClientSD: 91 Secure: 1
INFO[08:34:04.390611] Connection accepted: 192.168.1.1:1808 ClientSD: 84 Secure: 1
INFO[08:34:04.444900] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 71
INFO[08:34:04.455757] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 74
INFO[08:34:04.466299] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 61
INFO[08:34:04.538914] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 77
INFO[08:34:04.559540] Device registration started. ClientSD: 71 Protocol Version: 16 ThreadID: 15504 GUID: 889BBD4F
INFO[08:34:04.567111] Device registration started. ClientSD: 74 Protocol Version: 16 ThreadID: 15505 GUID: C17D8D1A
INFO[08:34:04.577576] Device registration started. ClientSD: 61 Protocol Version: 16 ThreadID: 15503 GUID: CAC9B722
INFO[08:34:04.623707] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 80
INFO[08:34:04.657778] Device registration started. ClientSD: 77 Protocol Version: 16 ThreadID: 15506 GUID: 711ACCD1
INFO[08:34:04.738683] Device registration started. ClientSD: 80 Protocol Version: 16 ThreadID: 15507 GUID: 3216F9BF
INFO[08:34:04.832606] Device registered. ID: 33, ClientSD: 74 Protocol Version: 16 ThreadID: 15505 GUID: C17D8D1A ResultCode: 3
INFO[08:34:04.834280] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 88
INFO[08:34:04.885923] Device registered. ID: 5, ClientSD: 61 Protocol Version: 16 ThreadID: 15503 GUID: CAC9B722 ResultCode: 3
INFO[08:34:04.888700] Device registered. ID: 30, ClientSD: 71 Protocol Version: 16 ThreadID: 15504 GUID: 889BBD4F ResultCode: 3
INFO[08:34:04.922662] Device registered. ID: 25, ClientSD: 77 Protocol Version: 16 ThreadID: 15506 GUID: 711ACCD1 ResultCode: 3
INFO[08:34:04.945310] Device registration started. ClientSD: 88 Protocol Version: 16 ThreadID: 15509 GUID: 6C0AEFD8
INFO[08:34:04.968640] Device registered. ID: 39, ClientSD: 80 Protocol Version: 16 ThreadID: 15507 GUID: 3216F9BF ResultCode: 3
INFO[08:34:04.979157] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 91
INFO[08:34:04.987089] Connection accepted: 192.168.1.1:23699 ClientSD: 93 Secure: 1
INFO[08:34:04.988796] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 83
INFO[08:34:05.009464] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 84
INFO[08:34:05.055877] Device registered. ID: 32, ClientSD: 88 Protocol Version: 16 ThreadID: 15509 GUID: 6C0AEFD8 ResultCode: 3
INFO[08:34:05.096804] Device registration started. ClientSD: 91 Protocol Version: 16 ThreadID: 15510 GUID: D5774719
INFO[08:34:05.103982] Device registration started. ClientSD: 83 Protocol Version: 16 ThreadID: 15508 GUID: CE4B51E7
INFO[08:34:05.122818] Device registration started. ClientSD: 84 Protocol Version: 16 ThreadID: 15511 GUID: D5EB4FE2
INFO[08:34:05.174179] Connection accepted: 192.168.1.1:36134 ClientSD: 103 Secure: 1
INFO[08:34:05.312372] Device registered. ID: 21, ClientSD: 83 Protocol Version: 16 ThreadID: 15508 GUID: CE4B51E7 ResultCode: 3
INFO[08:34:05.334322] Device registered. ID: 28, ClientSD: 91 Protocol Version: 16 ThreadID: 15510 GUID: D5774719 ResultCode: 3
INFO[08:34:05.357956] Connection accepted: 192.168.1.1:23243 ClientSD: 108 Secure: 1
INFO[08:34:05.423708] Device registered. ID: 31, ClientSD: 84 Protocol Version: 16 ThreadID: 15511 GUID: D5EB4FE2 ResultCode: 3
INFO[08:34:05.513563] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 93
INFO[08:34:05.646197] Device registration started. ClientSD: 93 Protocol Version: 16 ThreadID: 15516 GUID: ED15ADB1
INFO[08:34:05.649735] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 103
INFO[08:34:05.768062] Device registration started. ClientSD: 103 Protocol Version: 16 ThreadID: 15517 GUID: 78850DA4
INFO[08:34:05.894768] Device registered. ID: 23, ClientSD: 93 Protocol Version: 16 ThreadID: 15516 GUID: ED15ADB1 ResultCode: 3
INFO[08:34:05.916975] Cipher: AES128-SHA, SSL Version: TLSv1.1, ClientSD: 108
INFO[08:34:05.961448] Device registered. ID: 8, ClientSD: 103 Protocol Version: 16 ThreadID: 15517 GUID: 78850DA4 ResultCode: 3
INFO[08:34:06.025503] Device registration started. ClientSD: 108 Protocol Version: 16 ThreadID: 15518 GUID: 8D68D593
INFO[08:34:06.110385] Device registered. ID: 37, ClientSD: 108 Protocol Version: 16 ThreadID: 15518 GUID: 8D68D593 ResultCode: 3
INFO[08:34:06.373522] Connection accepted: 192.168.1.1:62124 ClientSD: 104 Secure: 1
INFO[08:34:06.374464] Connection accepted: 192.168.1.1:57573 ClientSD: 109 Secure: 1
INFO[08:34:06.382264] Connection accepted: 192.168.1.1:53528 ClientSD: 67 Secure: 0
INFO[08:34:06.389056] Connection accepted: 192.168.1.1:57816 ClientSD: 117 Secure: 0
INFO[08:34:06.389476] Connection accepted: 192.168.1.1:53786 ClientSD: 120 Secure: 0
INFOINFO[08:34:06.396354] Connection accepted: 192.168.1.1:63760 ClientSD: 123 Secure: 0[08:34:06.396348] 
Connection accepted: 192.168.1.1:65457 ClientSD: 114 Secure: 1
INFO[08:34:06.404653] Device registration started. ClientSD: 120 Protocol Version: 16 ThreadID: 15523 GUID: 08C8A3CE
INFO[08:34:06.477599] Connection accepted: 192.168.1.1:61711 ClientSD: 126 Secure: 1
INFO[08:34:06.515709] Device registered. ID: 17, ClientSD: 120 Protocol Version: 16 ThreadID: 15523 GUID: 08C8A3CE ResultCode: 3
INFO[08:34:06.523402] Device registration started. ClientSD: 67 Protocol Version: 16 ThreadID: 15521 GUID: 12CDB7E7
INFO[08:34:06.526598] Device registration started. ClientSD: 117 Protocol Version: 16 ThreadID: 15522 GUID: 10CE9149
INFO[08:34:06.530853] Device registration started. ClientSD: 123 Protocol Version: 16 ThreadID: 15525 GUID: 499275B5
INFO[08:34:06.618280] Device registered. ID: 11, ClientSD: 67 Protocol Version: 16 ThreadID: 15521 GUID: 12CDB7E7 ResultCode: 3
INFO[08:34:06.643521] Device registered. ID: 1, ClientSD: 117 Protocol Version: 16 ThreadID: 15522 GUID: 10CE9149 ResultCode: 3
INFO[08:34:06.652604] Device registered. ID: 7, ClientSD: 123 Protocol Version: 16 ThreadID: 15525 GUID: 499275B5 ResultCode: 3
INFO[08:34:07.062330] Cipher: AES128-SHA256, SSL Version: TLSv1.2, ClientSD: 109
INFO[08:34:07.066399] Cipher: AES128-SHA256, SSL Version: TLSv1.2, ClientSD: 104
INFO[08:34:07.087870] Device registration started. ClientSD: 109 Protocol Version: 16 ThreadID: 15520 GUID: 4F22559C
INFO[08:34:07.104960] Cipher: AES128-SHA256, SSL Version: TLSv1.2, ClientSD: 114
INFO[08:34:07.164299] Device registered. ID: 10, ClientSD: 109 Protocol Version: 16 ThreadID: 15520 GUID: 4F22559C ResultCode: 3
INFO[08:34:07.366734] Connection accepted: 192.168.1.183:56222 ClientSD: 135 Secure: 1
INFO[08:34:07.372504] Connection accepted: 192.168.1.120:50280 ClientSD: 132 Secure: 1
INFO[08:34:07.440840] Connection accepted: 192.168.1.1:45713 ClientSD: 138 Secure: 1
INFO[08:34:07.500299] Cipher: TLS_AES_256_GCM_SHA384, SSL Version: TLSv1.3, ClientSD: 135
INFO[08:34:07.505566] Cipher: TLS_AES_256_GCM_SHA384, SSL Version: TLSv1.3, ClientSD: 132
INFO[08:34:07.547074] Device registration started. ClientSD: 135 Protocol Version: 23 ThreadID: 15527 GUID: 3D46320A
INFO[08:34:07.547142] Device registration started. ClientSD: 132 Protocol Version: 23 ThreadID: 15528 GUID: A7FD22CA
INFO[08:34:07.658698] Device registered. ID: 44, ClientSD: 135 Protocol Version: 23 ThreadID: 15527 GUID: 3D46320A ResultCode: 3
INFO[08:34:07.789091] Device registered. ID: 48, ClientSD: 132 Protocol Version: 23 ThreadID: 15528 GUID: A7FD22CA ResultCode: 3
2024-06-22 08:34:07,827 INFO exited: supla-server (terminated by SIGBUS; not expected)
2024-06-22 08:34:08,831 INFO spawned: 'supla-server' with pid 15530
INFO[08:34:08.874405] Server version 24.05 [Protocol v24]
INFO[08:34:08.874553] Started at Sat Jun 22 08:34:08 2024
■Rpi4(m.2) Supla Cloud, Scripts ■Rpi3(sd) SD: 6x MI ATC, 1x W.S.
ROLETY_V3 x12 ■SWITCH_DUAL x4 ■GATE_MODULE_V3 x1 ■SOCKET_SSR x1 ■SMOKE_MODULE x1
SONOFF_TOUCH x4 ■YUNSCHAN x1 ■STAITCASE_DIMMER x1 ■MEW-01 x2 ■mROW-02 x1 ■LEW-01 x1
POW_R2 x2 ■SP111 x3

Return to “supla-dev”