Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
K

Kurtsejr

@Kurtsejr
About
Posts
48
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MySensors GW on rpi3
    K Kurtsejr

    @Kurtsejr Thanks
    Everything seems to be working, used the "dev version" - thanks for helping, I started with a new image.

    Troubleshooting gateway

  • MySensors GW on rpi3
    K Kurtsejr

    @Kurtsejr Thanks a lot!
    I removed the entry in the interrupt.cpp fil, and was then able to do a make , "make" - with some warnings, but make ended up writing this to me:

    /home/pi/MySensors/./hal/architecture/Linux/drivers/core/config.h:39: multiple d efinition of `conf'; build/hal/architecture/Linux/drivers/core/config.o:/home/pi /MySensors/hal/architecture/Linux/drivers/core/config.h:39: first defined here
    collect2: error: ld returned 1 exit status
    make: *** [Makefile:80: bin/mysgw] Error 1
    pi@MySensor-GW:~/MySensors $
    pi@MySensor-GW:~/MySensors $ sudo ./bin/mysgw -c
    sudo: ./bin/mysgw: command not found

    This means that I do not have a mysgw file in "bin" - bin dir is empty

    Troubleshooting gateway

  • MySensors GW on rpi3
    K Kurtsejr

    @Kurtsejr Now I have network connection, made an update and upgrade, and now I can install from github. Changed to rf24 radio, and could see that ethernet was default.

    pi@MySensor-GW:~/MySensors $ sudo ./configure --my-transport=rf24
    [SECTION] Detecting target machine.
    [OK] machine detected: SoC=BCM2837, Type=rpi3, CPU=armv7l.
    [SECTION] Detecting SPI driver.
    [OK] SPI driver detected:BCM.
    [SECTION] Gateway configuration.
    [OK] Type: ethernet.
    [OK] Transport: rf24.
    [OK] Signing: Disabled.
    [OK] Encryption: Disabled.
    [OK] CPPFLAGS: -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloa t-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX _ARCH_RASPBERRYPI
    [OK] CXXFLAGS: -std=c++11
    [SECTION] Detecting init system.
    [OK] Init system detected: systemd.
    [SECTION] Saving configuration.
    [OK] Saved.
    [SECTION] Cleaning previous builds.
    [OK] Finished.

    Next was to do a make, result:

    pi@MySensor-GW:~/MySensors $ sudo make
    g++ -MT build/hal/architecture/Linux/drivers/core/interrupt.o -MMD -MP -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -Ofast -g -Wall -Wextra -std=c++11 -I. -I./core -I./hal/architecture/Linux/drivers/core -I./hal/architecture/Linux/drivers/BCM -c hal/architecture/Linux/drivers/core/interrupt.cpp -o build/hal/architecture/Linux/drivers/core/interrupt.o
    hal/architecture/Linux/drivers/core/interrupt.cpp:33:10: fatal error: stropts.h: No such file or directory
    33 | #include <stropts.h>
    | ^~~~~~~~~~~
    compilation terminated.
    make: *** [Makefile:99: build/hal/architecture/Linux/drivers/core/interrupt.o] Error 1
    pi@MySensor-GW:~/MySensors $

    So it seems that something is missing, something linux basic ....

    Troubleshooting gateway

  • MySensors GW on rpi3
    K Kurtsejr

    @mfalkvidd You are right, no network connection - strange I will investigate, thanks!

    Troubleshooting gateway

  • MySensors GW on rpi3
    K Kurtsejr

    @mfalkvidd I decided to reinstall, start from scratch by installing a new pi image om my SDHC disk, but trying to install the GW software I get this message:

    pi@MySensor-GW:~ $ pwd
    /home/pi
    pi@MySensor-GW:~ $ sudo git clone https://github.com/mysensors/MySensors.git --branch development
    Cloning into 'MySensors'...
    fatal: unable to access 'https://github.com/mysensors/MySensors.git/': Couldn't connect to server
    pi@MySensor-GW:~ $ sudo git clone https://github.com/mysensors/MySensors.git --branch master
    Cloning into 'MySensors'...
    fatal: unable to access 'https://github.com/mysensors/MySensors.git/': Couldn't connect to server
    pi@MySensor-GW:~ $

    Has something changed? or is it github that does not response?

    Troubleshooting gateway

  • MySensors GW on rpi3
    K Kurtsejr

    @mfalkvidd said in MySensors GW on rpi3:

    sudo systemctl enable mysgw.service

    Thanks for your reply

    I have run the command, result:

    pi@MySensor-GW:~ $ sudo systemctl enable mysgw.service
    pi@MySensor-GW:~ $

    How do I remove if more that one instance is started? - I will try to google it. Perhaps it's easier to start from beginning again

    Troubleshooting gateway

  • MySensors GW on rpi3
    K Kurtsejr

    Yes I made a reboot, just made a new reboot - same result :-(

    Troubleshooting gateway

  • MySensors GW on rpi3
    K Kurtsejr

    Sorry one more:

    pi@MySensor-GW:~/MySensors $ sudo make
    pi@MySensor-GW:~/MySensors $ sudo make install
    Installing bin/mysgw to /usr/local/bin
    install -m0644 initscripts/mysgw.systemd /etc/systemd/system/mysgw.service
    systemctl daemon-reload
    MySensors gateway has been installed, to add to the boot run:
    sudo systemctl enable mysgw.service
    To start the gateway run:
    sudo systemctl start mysgw.service
    pi@MySensor-GW:~/MySensors $ sudo systemctl enable mysgw.service
    pi@MySensor-GW:~/MySensors $

    So no warnings or errors on make and make install, seens to be ok.

    Then a "sudo reboot"

    Troubleshooting gateway

  • MySensors GW on rpi3
    K Kurtsejr

    Used --rf24 I get:

    [SECTION] Detecting target machine.
    [OK] machine detected: SoC=BCM2837, Type=rpi3, CPU=armv7l.
    [SECTION] Detecting SPI driver.
    [OK] SPI driver detected:BCM.
    [SECTION] Gateway configuration.
    [OK] Type: ethernet.
    [OK] Transport: rf24.
    [OK] Signing: Disabled.
    [OK] Encryption: Disabled.
    [OK] CPPFLAGS: -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -DMY_RADIO_RF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI
    [OK] CXXFLAGS: -std=c++11
    [SECTION] Detecting init system.
    [OK] Init system detected: systemd.
    [SECTION] Saving configuration.
    [OK] Saved.
    [SECTION] Cleaning previous builds.
    [OK] Finished.

    Seems fine for me

    Troubleshooting gateway

  • MySensors GW on rpi3
    K Kurtsejr

    I used the "Raspberry pi OS (32 bit) from 2022-09-22

    on configure I used
    sudo ./configure --my-gateway=ethernet
    could see that port 5003 and rf24 was default

    My controller is HA, but the error messages was of cause from

    Troubleshooting gateway

  • MySensors GW on rpi3
    K Kurtsejr

    I have installed a new image on a rpi3 and followed the installation guide for getting the GW installed - ethernet selected.
    When I run "sudo ./bin/mysgw" i receive these messages:

    Sep 28 13:14:14 ERROR accept: Bad file descriptor
    Sep 28 13:14:14 ERROR accept: Bad file descriptor
    Sep 28 13:14:14 ERROR accept: Bad file descriptor
    Sep 28 13:14:14 ERROR accept: Bad file descriptor
    Sep 28 13:14:14 ERROR accept: Bad file descriptor

    What does this mean?

    Troubleshooting gateway

  • Ethernet problem
    K Kurtsejr

    SOLVED
    I did not managed to get i working, shifted to a Raspberry PI, that works perfect - It seems that I also get version 1.x data from the gateway, Interesting if the gateway both can receive 1.x and 2.x data from sensors.

    Domoticz

  • Ethernet problem
    K Kurtsejr

    Hi all

    Setup:
    Arduino UNO with 5100 Ethernet Module and NRF24 Radio, wired as described https://www.mysensors.org/build/ethernet_gateway#wiring-things-up

    Using static IP address

    Gateway Output (COM6):

    0 MCO:BGN:INIT GW,CP=RNNGA---,REL=255,VER=2.3.1
    4 TSM:INIT
    5 TSF:WUR:MS=0
    11 TSM:INIT:TSP OK
    13 TSM:INIT:GW MODE
    15 TSM:READY:ID=0,PAR=0,DIS=0
    17 MCO:REG:NOT NEEDED
    580 GWT:TIN:IP=88.24.1.12
    1583 MCO:BGN:STP
    1585 MCO:BGN:INIT OK,TSP=1
    1587 TSM:READY:NWD REQ
    1624 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
    42372 TSF:MSG:READ,11-11-0,s=3,c=1,t=23,pt=2,l=2,sg=0:42
    44372 TSF:MSG:READ,11-11-0,s=1,c=1,t=0,pt=7,l=5,sg=0:27.4
    44381 TSF:MSG:READ,11-11-0,s=0,c=1,t=1,pt=7,l=5,sg=0:16.5
    108341 TSF:MSG:READ,6-6-0,s=1,c=1,t=0,pt=7,l=5,sg=0:26.5
    108400 TSF:MSG:READ,6-6-0,s=2,c=1,t=1,pt=2,l=2,sg=0:38
    180666 TSF:MSG:READ,5-5-0,s=2,c=1,t=16,pt=0,l=1,sg=0:0
    192955 TSF:MSG:READ,5-5-0,s=2,c=1,t=16,pt=0,l=1,sg=0:0
    205265 TSF:MSG:READ,5-5-0,s=2,c=1,t=16,pt=0,l=1,sg=0:0
    212962 GWT:TSA:ETH OK
    212967 GWT:RFC:MSG=0;0;3;0;2;
    212972 GWT:RFC:MSG=0;0;3;0;18;PING
    212978 GWT:RFC:MSG=0;0;3;0;2;Get Version
    213651 !GWT:TSA:ETH FAIL
    And it continue, if I reset a sensor I can see that data are coming in, but also that I regular get a “ETH FAIL” messages from Gateway, it seams to restart.

    On my Domoticz Controller:

    Log file says:
    2019-11-24 14:19:14.397 Status: MySensors: trying to connect to: 172.24.1.12:5003
    2019-11-24 14:19:14.401 Status: MySensors: connected to: 172.24.1.12:5003
    2019-11-24 14:21:17.658 Status: MySensors: disconnected
    2019-11-24 14:21:17.658 Status: MySensors: Connection reset!
    2019-11-24 14:21:47.659 Status: MySensors: connected to: 172.24.1.12:5003
    2019-11-24 14:21:54.415 Status: MySensors: disconnected
    2019-11-24 14:21:54.415 Status: MySensors: Connection reset!
    2019-11-24 14:22:24.416 Status: MySensors: connected to: 172.24.1.12:5003
    2019-11-24 14:22:34.418 Status: MySensors: disconnected
    2019-11-24 14:22:34.418 Status: MySensors: Connection reset!
    2019-11-24 14:23:04.424 MySensors: Gateway Ready...
    2019-11-24 14:23:04.429 MySensors: Gateway Version: 2.3.1
    2019-11-24 14:23:04.420 Status: MySensors: connected to: 172.24.1.12:5003
    2019-11-24 14:23:05.117 Status: MySensors: disconnected
    2019-11-24 14:23:05.117 Status: MySensors: Connection reset!
    2019-11-24 14:23:35.118 Status: MySensors: connected to: 172.24.1.12:5003
    2019-11-24 14:23:44.425 Status: MySensors: disconnected
    2019-11-24 14:23:44.425 Status: MySensors: Connection reset!
    2019-11-24 14:24:14.426 Status: MySensors: connected to: 172.24.1.12:5003
    2019-11-24 14:24:24.428 Status: MySensors: disconnected
    2019-11-24 14:24:24.429 Status: MySensors: Connection reset!
    2019-11-24 14:24:54.430 Status: MySensors: connected to: 172.24.1.12:5003
    2019-11-24 14:25:04.432 Status: MySensors: disconnected
    2019-11-24 14:25:04.432 Status: MySensors: Connection reset!

    So the “ETH Fail” seems to be correct, and related to Domoticz problems in using the Gateway. I have of cause:

    1. Checked the wiring more that one time
    2. Changed to another Erhernet hardware module

    What’s going on?

    Domoticz

  • DHT22 and DHT lib
    K Kurtsejr

    Thanks @mfalkvidd , it works as you described. Great! - I will then move on :-)

    /Kurt

    My Project

  • DHT22 and DHT lib
    K Kurtsejr

    Thanks @badmannen
    Yes I'm using the script you link to, but compiling it tell that it can't find DHT.h, so I was looking for the DHT libray, It seems that this library is not part of MySensors 2.x download when you from the IDE install library's.

    My Project

  • DHT22 and DHT lib
    K Kurtsejr

    Hi
    I'm new to version 2.x, has done sensors/gateways to version 1.x system. So I restarted myself in using version 2.x. Made the IDE installation on WIN10 via Windows store, and downloaded the mysensors 2.3.1 via IDE - works great!.
    For starting I found https://www.mysensors.org/build/humidity just for testing that the enviroment are working, discovered that the DHT lib is not part of mysensors anymore, found it ( https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip) as the old lib and added this.

    But I get a number of compilation error e.g.:
    "undefined reference to `DHT::getHumidity()'"

    So it seems that I'm using a wrong DHT libary version, I was looking at github - but it seems already to be converted to MuSensors version 2.x

    Strange ... hope someone can pinpoint me to the correct libary

    /Kurt

    My Project

  • New installation on WIN10
    K Kurtsejr

    Thanks.
    I have just installed the version from Windows store, version 1.8.9 - this version is working!

    /Kurt

    Troubleshooting

  • New installation on WIN10
    K Kurtsejr

    who can help, what can I have done wrong?

    Troubleshooting

  • New installation on WIN10
    K Kurtsejr

    Hi

    I have been a happy user, and using mysensors over some years. I now decided to restart after a break. Want to start with the latest release. So I delete my old Arduino IDE, installed version - 1.8.10 (WIN10), then want to add mysensors libraries, “Sketch/Include libraries /Manage libraries – found Mysensors 2.3.1 and “Install”, get a strange error in the IDE window

    Invalid library found in C:\Users\Kurt\Documents\Arduino\libraries\arduino_825951: no headers files (.h) found in C:\Users\Kurt\Documents\Arduino\libraries\arduino_825951”

    And I can’t fint any Mysensors examples, and it seems that no mysensors libraries has been installed
    What can I have done wrong?

    /Kurt

    Troubleshooting

  • Backwards compatible
    K Kurtsejr

    Thanks, super and clear answer.

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular