homegear / homegear-gateway Goto Github PK
View Code? Open in Web Editor NEWGateway service for Homegear's communication clients
License: Other
Gateway service for Homegear's communication clients
License: Other
Something incorrect is going on here: At line 219 we check if serial_ is null
homegear-gateway/src/Families/EnOcean.cpp
Line 219 in 1131758
but if it is null we dereference it here anyways. That seems odd and incorrect, so either that check is obsolete or the dereference needs an additional check.
homegear-gateway/src/Families/EnOcean.cpp
Line 222 in 1131758
In
homegear-gateway/src/Families/MaxCc1101.cpp
Line 670 in 286d38d
homegear-gateway/src/Families/MaxCulfw.cpp
Line 184 in 286d38d
I'm running Homegear Gateway version 0.9.23032402-3651 and it isn't starting due to an invalid memory access:
==113645== Process terminating with default action of signal 11 (SIGSEGV)
==113645== Access not within mapped region at address 0x4
==113645== at 0x144414: load (atomic_base.h:426)
==113645== by 0x144414: operator std::__atomic_base<int>::__int_type (atomic_base.h:289)
==113645== by 0x144414: HomeMaticCc1101::mainThread() (HomeMaticCc1101.cpp:145)
==113645== by 0x50A1CAB: ??? (in /usr/lib/aarch64-linux-gnu/libstdc++.so.6.0.28)
==113645== by 0x486D647: start_thread (pthread_create.c:477)
==113645== by 0x52A6C1B: thread_start (clone.S:78)
Looks like it could be _fileDescriptor that is NULL here.
packetBytes[0] = firstByte;
this is not there in/after
homegear-gateway/src/Families/MaxCc1101.cpp
Line 195 in 39e18c4
I understand that the first byte is indicating the length? Could this be the reason I am constantly getting
Module MAX: Warning: Packet with wrong length byte received.
?
I do not understand why we overwrite packetBytes[0]
at all there though.
Hi everyone,
on my Raspberry PI3 I found out about behavior in Homegear-Gateway:
07/15/18 14:40:05.547 Error in file LowLevel/Gpio.cpp line 534 in function virtual void BaseLib::LowLevel::Gpio::setDirection(uint32_t, BaseLib::LowLevel::Gpio::GpioDirection::Enum): Failed to open direction file for GPIO with index 25: Unable to retrieve path.
07/15/18 14:40:05.548 Error in file LowLevel/Gpio.cpp line 569 in function virtual void BaseLib::LowLevel::Gpio::setEdge(uint32_t, BaseLib::LowLevel::Gpio::GpioEdge::Enum): Failed to open edge file for GPIO with index 25: Unable to retrieve path.
07/15/18 14:40:05.548 Error in file LowLevel/Gpio.cpp line 85 in function virtual void BaseLib::LowLevel::Gpio::openDevice(uint32_t, bool): Failed to open value file for GPIO with index 25: Unable to retrieve path.
07/15/18 14:40:05.548 Error: Couldn't listen to rf device, because the GPIO descriptor is not valid: /dev/spidev0.0
07/15/18 14:40:05.548 Connection to TI CC1101 closed unexpectedly... Trying to reconnect...
CC1101 was working before in HomeGear as local device, GPI1 = 25, Interrupt = 0. So I ran it again. It took place. I stopped Homegear 0.8.2270, restarted the HomeGear-Gateway service and ....
tada, it started working.
But after a reboot, I have to do the same again. Might there be some missing initialization?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.