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
pepsonP

pepson

@pepson
About
Posts
258
Topics
16
Shares
0
Groups
0
Followers
1
Following
0

Posts

Recent Best Controversial

  • Sensor to detect marijuana vape/smoke
    pepsonP pepson

    There are air quality monitors that can detect VOCs (volatile organic compounds), and some that claim to pick up marijuana smoke specifically. Devices like the Airthings Wave Plus, uHoo Air Sensor, or Plume Labs Flow could help identify changes in air quality. Another option is checking with industrial-grade smoke detection companies that provide sensors for businesses and schools, and some of them may also have solutions suited for home use.
    If you want more information on vape-related products, including how they work and their components, check out Geek Bar Pulse X Platinum Edition. Understanding vape devices can help recognize patterns of use or detect scents earlier.

    Hardware

  • How use mysensors to show in Home Assistant as LIGHT
    pepsonP pepson

    HI. I use this sketch to my lisght but in Home Assistant it show me it as SWITCH. Is any chance to change it in mysensors sketch to show in Home Assisnatnt as LIGHT ?

    https://github.com/lkankowski/arduino-multi-relay2

    Home Assistant

  • 💬 Building an Ethernet Gateway
    pepsonP pepson

    Hi
    I try building gateway on my Arduino Mega and i defined this:
    // Controller ip address. Enables client mode (default is "server" mode).
    // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere.
    #define MY_CONTROLLER_IP_ADDRESS 192, 168, 13, 252

    This is ip my Controller on RPI4 with installed Hassos(Home Assistant). But when it is defined i can not controll my relay on gateway. When delete this define all works ok and i can controll relay from home assistant. Please help me... I want define it to block controll only from one device in my network(controller automation Home Assistant).

    Announcements

  • 💬 Sensebender Gateway
    pepsonP pepson

    @tekka
    No.... thanks i fixed it....:)

    OpenHardware.io mysensors gateway samd

  • 💬 Sensebender Gateway
    pepsonP pepson

    Hi
    Can anybody help me how compile sketch to this gateway to work as Ethernet Gateway...
    When i try compile i get the error:
    https://pastebin.com/BSQGsCgi

    and my sketch looks like:
    https://pastebin.com/R3vG076i

    OpenHardware.io mysensors gateway samd

  • 💬 Sensebender Gateway
    pepsonP pepson

    please help me....

    OpenHardware.io mysensors gateway samd

  • 💬 Sensebender Gateway
    pepsonP pepson

    When try compilation with this W5100 i get error:

    Opcje projektu zmienione, przeładuj całość
    In file included from C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/MySensors.h:208:0,

                 from C:\Users\Piotrek\Desktop\SensebenderGatewayETHERNET\SensebenderGatewayETHERNET.ino:111:
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:74:1: error: 'EthernetServer' does not name a type

    EthernetServer _ethernetServer(_ethernetGatewayPort);

    ^~~~~~~~~~~~~~

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:89:8: error: 'EthernetClient' does not name a type

    static EthernetClient client = EthernetClient();

        ^~~~~~~~~~~~~~
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool gatewayTransportInit()':

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:149:7: error: 'Ethernet' was not declared in this scope

    if (!Ethernet.begin(_ethernetGatewayMAC)) {

       ^~~~~~~~
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:149:7: note: suggested alternative: '_ethernetMsg'

    if (!Ethernet.begin(_ethernetGatewayMAC)) {

       ^~~~~~~~
    
       _ethernetMsg
    

    In file included from C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/MySensors.h:49:0,

                 from C:\Users\Piotrek\Desktop\SensebenderGatewayETHERNET\SensebenderGatewayETHERNET.ino:111:
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:156:16: error: 'Ethernet' was not declared in this scope

                Ethernet.localIP()[0],
    
                ^
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/MyConfig.h:1815:48: note: in definition of macro 'DEBUG_OUTPUT'

    #define DEBUG_OUTPUT(x,...) hwDebugPrint(x, ##VA_ARGS) //!< debug

                                                ^~~~~~~~~~~
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:155:2: note: in expansion of macro 'GATEWAY_DEBUG'

    GATEWAY_DEBUG(PSTR("GWT:TIN:IP=%" PRIu8 ".%" PRIu8 ".%" PRIu8 ".%" PRIu8 "\n"),

    ^~~~~~~~~~~~~

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:156:16: note: suggested alternative: '_ethernetMsg'

                Ethernet.localIP()[0],
    
                ^
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/MyConfig.h:1815:48: note: in definition of macro 'DEBUG_OUTPUT'

    #define DEBUG_OUTPUT(x,...) hwDebugPrint(x, ##VA_ARGS) //!< debug

                                                ^~~~~~~~~~~
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:155:2: note: in expansion of macro 'GATEWAY_DEBUG'

    GATEWAY_DEBUG(PSTR("GWT:TIN:IP=%" PRIu8 ".%" PRIu8 ".%" PRIu8 ".%" PRIu8 "\n"),

    ^~~~~~~~~~~~~

    In file included from C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/MySensors.h:208:0,

                 from C:\Users\Piotrek\Desktop\SensebenderGatewayETHERNET\SensebenderGatewayETHERNET.ino:111:
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:189:2: error: '_ethernetServer' was not declared in this scope

    _ethernetServer.begin();

    ^~~~~~~~~~~~~~~

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:189:2: note: suggested alternative: '_ethernetMsg'

    _ethernetServer.begin();

    ^~~~~~~~~~~~~~~

    _ethernetMsg

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool gatewayTransportSend(MyMessage&)':

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:246:11: error: '_ethernetServer' was not declared in this scope

    nbytes = _ethernetServer.write(_ethernetMsg);

           ^~~~~~~~~~~~~~~
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:246:11: note: suggested alternative: '_ethernetMsg'

    nbytes = _ethernetServer.write(_ethernetMsg);

           ^~~~~~~~~~~~~~~
    
           _ethernetMsg
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool _readFromClient()':

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:289:9: error: 'client' was not declared in this scope

    while (client.connected() && client.available()) {

         ^~~~~~
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:289:9: note: suggested alternative: 'Print'

    while (client.connected() && client.available()) {

         ^~~~~~
    
         Print
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool gatewayTransportAvailable()':

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:409:2: error: 'EthernetClient' was not declared in this scope

    EthernetClient newclient = _ethernetServer.available();

    ^~~~~~~~~~~~~~

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:411:6: error: 'newclient' was not declared in this scope

    if (newclient) {

      ^~~~~~~~~
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:412:7: error: 'client' was not declared in this scope

    if (client != newclient) {

       ^~~~~~
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:412:7: note: suggested alternative: 'Print'

    if (client != newclient) {

       ^~~~~~
    
       Print
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:422:6: error: 'client' was not declared in this scope

    if (client) {

      ^~~~~~
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:422:6: note: suggested alternative: 'Print'

    if (client) {

      ^~~~~~
    
      Print
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'void gatewayTransportRenewIP()':

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:463:6: error: 'Ethernet' was not declared in this scope

    if (Ethernet.maintain() & ~(0x06)) {

      ^~~~~~~~
    

    C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:463:6: note: suggested alternative: '_ethernetMsg'

    if (Ethernet.maintain() & ~(0x06)) {

      ^~~~~~~~
    
      _ethernetMsg
    

    exit status 1
    Błąd kompilacji dla płytki Sensebender Gateway.

    What is a problem ?

    OpenHardware.io mysensors gateway samd

  • 💬 Sensebender Gateway
    pepsonP pepson

    And please help me how i can compile it as gateway Ethernet with module W5100.

    Only add to sketch:
    // Enable gateway ethernet module type
    #define MY_GATEWAY_W5100

    // Enable to UDP
    //#define MY_USE_UDP

    //#define MY_IP_ADDRESS 192,168,3,160 // wpisz adres ip bramki
    // Renewal period if using DHCP
    //#define MY_IP_RENEWAL_INTERVAL 60000
    // The port to keep open on node server mode / or port to contact in client mode
    #define MY_PORT 5003 //wpisz numer portu bramki

    // Controller ip address. Enables client mode (default is "server" mode).
    // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere.
    //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 254

    // The MAC address can be anything you want but should be unique on your network.
    // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use.
    // Note that most of the Ardunio examples use "DEAD BEEF FEED" for the MAC address.
    #define MY_MAC_ADDRESS 0xDC, 0xAE, 0xB2, 0x3F, 0xFF, 0xDC

    ???

    OpenHardware.io mysensors gateway samd

  • 💬 Sensebender Gateway
    pepsonP pepson

    Hi
    I compiled and write to gateway this programmm. Then i connected it to my RPI with Hassio (Home Assistant). In logs on home assistant still show me info: Gateway /dev/serial/by-id/usb-MySensors.org_Sensebender_GW_6A153443514D355934202020FF10182D-if00 not ready after 15.0 secs so continuing with setup

    but after run Home Assistant gateway works ok. I send info mto developer Home Assistant ans she not see any bugs....
    How i can resolved this problem ?

    OpenHardware.io mysensors gateway samd

  • 💬 Door, Window and Push-button Sensor
    pepsonP pepson

    @skywatch
    Yes but i dont know how do it.... :-(
    I dont know programing.

    Announcements

  • 💬 Door, Window and Push-button Sensor
    pepsonP pepson

    I need connect two contact sensor. And i want to know from two sensor his status...
    I need use one to door but second to door garage.

    Announcements

  • 💬 Door, Window and Push-button Sensor
    pepsonP pepson

    Hi
    Can i connect two sensor contact to this arduino ? First to pin 3 second to pin 4 ? But how modified this sketch to support two sensor contact ?

    Announcements

  • MySensors shield and RGBW Controller
    pepsonP pepson

    But I need code in sketch to upload by Arduino IDE...

    Hardware

  • MySensors shield and RGBW Controller
    pepsonP pepson

    Hi
    Is anybody who can help me how add phisical button to enable from the wall leds only in color white ?
    Button will be connect to pin in arduino but how implement it to code sketch ? I want to on/off white color without gateway... example gateway not working....

    Hardware

  • [SOLVED] Sensbender Gateway gives a lot of "hu"
    pepsonP pepson

    @magpern
    But mysensors newer than 2.2.0 has problems with radio Rfm69hw.

    Troubleshooting

  • 💬 Sensebender Gateway
    pepsonP pepson

    @magpern
    But get this board to Arduino IDE?

    OpenHardware.io mysensors gateway samd

  • 💬 Sensebender Gateway
    pepsonP pepson

    please help
    https://forum.mysensors.org/topic/10548/solved-sensbender-gateway-gives-a-lot-of-hu/2

    OpenHardware.io mysensors gateway samd

  • [SOLVED] Sensbender Gateway gives a lot of "hu"
    pepsonP pepson

    @tekka said in [SOLVED] Sensbender Gateway gives a lot of "hu":

    This originates from the updated Arduino SAMD board definitions (>1.8.1) and is fixed in the dev branch. You can add

    Hi
    I have a problem. I buy Sensbender Gateway and compile it with radio RFM69HW and write.... This is my sketch:

    /**
    * The MySensors Arduino library handles the wireless radio link and protocol
    * between your home built sensors/actuators and HA controller of choice.
    * The sensors forms a self healing radio network with optional repeaters. Each
    * repeater and gateway builds a routing tables in EEPROM which keeps track of the
    * network topology allowing messages to be routed to nodes.
    *
    * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
    * Copyright (C) 2013-2019 Sensnology AB
    * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
    *
    * Documentation: http://www.mysensors.org
    * Support Forum: http://forum.mysensors.org
    *
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * version 2 as published by the Free Software Foundation.
    *
    *******************************
    *
    * DESCRIPTION
    * The ArduinoGateway prints data received from sensors on the serial link.
    * The gateway accepts input on serial which will be sent out on radio network.
    *
    * This GW code is designed for Sensebender GateWay / (Arduino Zero variant)
    *
    * Wire connections (OPTIONAL):
    * - Inclusion button should be connected to SW2
    *
    * LEDs on board (default assignments):
    * - Orange: USB RX/TX - Blink when receiving / transmitting on USB CDC device
    * - Yellow: RX  - Blink fast on radio message received. In inclusion mode will blink fast only on presentation received
    * - Green : TX  - Blink fast on radio message transmitted. In inclusion mode will blink slowly
    * - Red   : ERR - Fast blink on error during transmission error or receive crc error
    * - Blue  : free - (use with LED_BLUE macro)
    *
    */
    
    #define SKETCH_VERSION "0.2"
    // Enable debug prints to serial monitor
    #define MY_DEBUG
    
    // Enable and select radio type attached
    //#define MY_RADIO_RF24
    //#define MY_RADIO_NRF5_ESB
    //#define MY_RADIO_RFM69
    //#define MY_RADIO_RFM95
    #define MY_RADIO_RFM69
    #define MY_IS_RFM69HW
    #define RFM69_868MH
    #define MY_RFM69_NEW_DRIVER
    
    // Set LOW transmit power level as default, if you have an amplified NRF-module and
    // power your radio separately with a good regulator you can turn up PA level.
    //#define MY_RF24_PA_LEVEL RF24_PA_HIGH
    
    // Enable serial gateway
    #define MY_GATEWAY_SERIAL
    
    // Define a lower baud rate for Arduinos running on 8 MHz (Arduino Pro Mini 3.3V & Sensebender)
    #if F_CPU == 8000000L
    #define MY_BAUD_RATE 38400
    #endif
    
    // Enable inclusion mode
    #define MY_INCLUSION_MODE_FEATURE
    // Enable Inclusion mode button on gateway
    #define MY_INCLUSION_BUTTON_FEATURE
    
    // Inverses behavior of inclusion button (if using external pullup)
    //#define MY_INCLUSION_BUTTON_EXTERNAL_PULLUP
    
    // Set inclusion mode duration (in seconds)
    #define MY_INCLUSION_MODE_DURATION 60
    // Digital pin used for inclusion mode button
    //#define MY_INCLUSION_MODE_BUTTON_PIN  3
    
    // Set blinking period
    #define MY_DEFAULT_LED_BLINK_PERIOD 300
    
    // Inverses the behavior of leds
    //#define MY_WITH_LEDS_BLINKING_INVERSE
    
    // Flash leds on rx/tx/err
    // Uncomment to override default HW configurations
    //#define MY_DEFAULT_ERR_LED_PIN 4  // Error led pin
    //#define MY_DEFAULT_RX_LED_PIN  6  // Receive led pin
    //#define MY_DEFAULT_TX_LED_PIN  5  // the PCB, on board LED
    
    #include <MySensors.h>
    #include <SD.h>
    #include <drivers/ATSHA204/ATSHA204.cpp>
    
    Sd2Card card;
    
    #define EEPROM_VERIFICATION_ADDRESS 0x01
    
    static uint8_t num_of_leds = 5;
    static uint8_t leds[] = {LED_BLUE, LED_RED, LED_GREEN, LED_YELLOW, LED_ORANGE};
    
    void setup()
    {
    	// Setup locally attached sensors
    }
    
    void presentation()
    {
    	// Present locally attached sensors
    }
    
    void loop()
    {
    	// Send locally attached sensor data here
    }
    
    
    void preHwInit()
    {
    
    	pinMode(MY_SWC1, INPUT_PULLUP);
    	pinMode(MY_SWC2, INPUT_PULLUP);
    	if (digitalRead(MY_SWC1) && digitalRead(MY_SWC2)) {
    		return;
    	}
    
    	uint8_t tests = 0;
    
    	for (int i=0; i< num_of_leds; i++) {
    		pinMode(leds[i], OUTPUT);
    	}
    	if (digitalRead(MY_SWC1)) {
    		uint8_t led_state = 0;
    		while (!Serial) {
    			digitalWrite(LED_BLUE, led_state);
    			led_state ^= 0x01;
    			delay(500);
    		} // Wait for USB to be connected, before spewing out data.
    	}
    	if (Serial) {
    		Serial.println("Sensebender GateWay test routine");
    		Serial.print("MySensors core version : ");
    		Serial.println(MYSENSORS_LIBRARY_VERSION);
    		Serial.print("GateWay sketch version : ");
    		Serial.println(SKETCH_VERSION);
    		Serial.println("----------------------------------");
    		Serial.println();
    	}
    	if (testSha204()) {
    		digitalWrite(LED_GREEN, HIGH);
    		tests++;
    	}
    	if (testSDCard()) {
    		digitalWrite(LED_YELLOW, HIGH);
    		tests++;
    	}
    
    	if (testEEProm()) {
    		digitalWrite(LED_ORANGE, HIGH);
    		tests++;
    	}
    	if (tests == 4) {
    		while(1) {
    			for (int i=0; i<num_of_leds; i++) {
    				digitalWrite(leds[i], HIGH);
    				delay(200);
    				digitalWrite(leds[i], LOW);
    			}
    		}
    	} else {
    		while (1) {
    			digitalWrite(LED_RED, HIGH);
    			delay(200);
    			digitalWrite(LED_RED, LOW);
    			delay(200);
    		}
    	}
    
    }
    
    bool testSha204()
    {
    	uint8_t rx_buffer[SHA204_RSP_SIZE_MAX];
    	uint8_t ret_code;
    	if (Serial) {
    		Serial.print("- > SHA204 ");
    	}
    	atsha204_init(MY_SIGNING_ATSHA204_PIN);
    	ret_code = atsha204_wakeup(rx_buffer);
    
    	if (ret_code == SHA204_SUCCESS) {
    		ret_code = atsha204_getSerialNumber(rx_buffer);
    		if (ret_code != SHA204_SUCCESS) {
    			if (Serial) {
    				Serial.println(F("Failed to obtain device serial number. Response: "));
    			}
    			Serial.println(ret_code, HEX);
    		} else {
    			if (Serial) {
    				Serial.print(F("Ok (serial : "));
    				for (int i=0; i<9; i++) {
    					if (rx_buffer[i] < 0x10) {
    						Serial.print('0'); // Because Serial.print does not 0-pad HEX
    					}
    					Serial.print(rx_buffer[i], HEX);
    				}
    				Serial.println(")");
    			}
    			return true;
    		}
    	} else {
    		if (Serial) {
    			Serial.println(F("Failed to wakeup SHA204"));
    		}
    	}
    	return false;
    }
    
    bool testSDCard()
    {
    	if (Serial) {
    		Serial.print("- > SD CARD ");
    	}
    	if (!card.init(SPI_HALF_SPEED, MY_SDCARD_CS)) {
    		if (Serial) {
    			Serial.println("SD CARD did not initialize!");
    		}
    	} else {
    		if (Serial) {
    			Serial.print("SD Card initialized correct! - ");
    			Serial.print("type detected : ");
    			switch(card.type()) {
    			case SD_CARD_TYPE_SD1:
    				Serial.println("SD1");
    				break;
    			case SD_CARD_TYPE_SD2:
    				Serial.println("SD2");
    				break;
    			case SD_CARD_TYPE_SDHC:
    				Serial.println("SDHC");
    				break;
    			default:
    				Serial.println("Unknown");
    			}
    		}
    		return true;
    	}
    	return false;
    }
    
    bool testEEProm()
    {
    	uint8_t eeprom_d1, eeprom_d2;
    	SerialUSB.print(" -> EEPROM ");
    	eeprom_d1 = hwReadConfig(EEPROM_VERIFICATION_ADDRESS);
    	delay(500);
    	eeprom_d1 = ~eeprom_d1; // invert the bits
    	hwWriteConfig(EEPROM_VERIFICATION_ADDRESS, eeprom_d1);
    	delay(500);
    	eeprom_d2 = hwReadConfig(EEPROM_VERIFICATION_ADDRESS);
    	if (eeprom_d1 == eeprom_d2) {
    		SerialUSB.println("PASSED");
    		hwWriteConfig(EEPROM_VERIFICATION_ADDRESS, ~eeprom_d1);
    		return true;
    	}
    	SerialUSB.println("FAILED!");
    	return false;
    }
    
    bool testAnalog()
    {
    	int bat_detect = analogRead(MY_BAT_DETECT);
    	Serial.print("-> analog : ");
    	Serial.print(bat_detect);
    	if (bat_detect < 400 || bat_detect > 650) {
    		Serial.println(" Failed");
    		return false;
    	}
    	Serial.println(" Passed");
    	return true;
    }```
    

    On serial port monitor show me this:

    0;255;hu;0;hu;3 MCO:BGN:INIT GW,CP=RPNGS---,VER=2.2.0
    0;255;hu;0;hu;3 TSF:LRT:OK
    0;255;hu;0;hu;3 TSM:INIT
    0;255;hu;0;hu;3 TSF:WUR:MS=0
    0;255;hu;0;hu;3 TSM:INIT:TSP OK
    0;255;hu;0;hu;3 TSM:INIT:GW MODE
    0;255;hu;0;hu;3 TSM:READY:ID=hu,PAR=hu,DIS=hu
    0;255;hu;0;hu;3 MCO:REG:NOT NEEDED
    hu;hu;hu;hu;hu;⸮
    hu;hu;hu;hu;hu;⸮
    0;255;hu;0;hu;3 MCO:BGN:STP
    0;255;hu;0;hu;3 MCO:BGN:INIT OK,TSP=hu
    

    I connect it to my raspberry pi 4 with Hass.io image 3.3. Then in configuration add it:

    mysensors:
    gateways:
    - device: '/dev/ttyACM0'
    persistence_file: '/config/mysensors.json'
    baud_rate: 38400
    optimistic: false
    persistence: true
    version: '2.2'
    

    and still in log has info:

    Gateway /dev/ttyACM0 not ready after 15.0 secs so continuing with setup
    20:56 components/mysensors/gateway.py (WARNING)
    

    In hardware on hassio show this:
    /dev/ttyACM0
    /dev/serial/by-id/usb-MySensors.org_Sensebender_GW_6A153443514D355934202020FF10182D-if00
    /dev/ttyAMA0

    Please help me what i do wrong...and how resolved this problem.

    Troubleshooting

  • 💬 Sensebender Gateway
    pepsonP pepson

    I also can not install board in Arduino IDE 1.8.9

    OpenHardware.io mysensors gateway samd

  • 💬 Sensebender Gateway
    pepsonP pepson

    hi
    when i try compile sketch only with change radio to rfm69hw i have this:
    Arduino:1.8.9 (Windows 10), Płytka:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

    SensebenderGatewaySerial:95:26: error: 'LED_BLUE' was not declared in this scope

    static uint8_t leds[] = {LED_BLUE, LED_RED, LED_GREEN, LED_YELLOW, LED_ORANGE};

                          ^
    

    SensebenderGatewaySerial:95:36: error: 'LED_RED' was not declared in this scope

    static uint8_t leds[] = {LED_BLUE, LED_RED, LED_GREEN, LED_YELLOW, LED_ORANGE};

                                    ^
    

    SensebenderGatewaySerial:95:45: error: 'LED_GREEN' was not declared in this scope

    static uint8_t leds[] = {LED_BLUE, LED_RED, LED_GREEN, LED_YELLOW, LED_ORANGE};

                                             ^
    

    SensebenderGatewaySerial:95:56: error: 'LED_YELLOW' was not declared in this scope

    static uint8_t leds[] = {LED_BLUE, LED_RED, LED_GREEN, LED_YELLOW, LED_ORANGE};

                                                        ^
    

    SensebenderGatewaySerial:95:68: error: 'LED_ORANGE' was not declared in this scope

    static uint8_t leds[] = {LED_BLUE, LED_RED, LED_GREEN, LED_YELLOW, LED_ORANGE};

                                                                    ^
    

    C:\Users\Piotrek\Desktop\SensebenderGatewaySerial-sketch\SensebenderGatewaySerial\SensebenderGatewaySerial.ino: In function 'void preHwInit()':

    SensebenderGatewaySerial:116:10: error: 'MY_SWC1' was not declared in this scope

    pinMode(MY_SWC1, INPUT_PULLUP);

          ^
    

    SensebenderGatewaySerial:117:10: error: 'MY_SWC2' was not declared in this scope

    pinMode(MY_SWC2, INPUT_PULLUP);

          ^
    

    SensebenderGatewaySerial:130:17: error: 'LED_BLUE' was not declared in this scope

    digitalWrite(LED_BLUE, led_state);
    
                 ^
    

    SensebenderGatewaySerial:145:16: error: 'LED_GREEN' was not declared in this scope

    digitalWrite(LED_GREEN, HIGH);

                ^
    

    SensebenderGatewaySerial:149:16: error: 'LED_YELLOW' was not declared in this scope

    digitalWrite(LED_YELLOW, HIGH);

                ^
    

    SensebenderGatewaySerial:154:16: error: 'LED_ORANGE' was not declared in this scope

    digitalWrite(LED_ORANGE, HIGH);

                ^
    

    SensebenderGatewaySerial:167:17: error: 'LED_RED' was not declared in this scope

    digitalWrite(LED_RED, HIGH);
    
                 ^
    

    C:\Users\Piotrek\Desktop\SensebenderGatewaySerial-sketch\SensebenderGatewaySerial\SensebenderGatewaySerial.ino: In function 'bool testSDCard()':

    SensebenderGatewaySerial:219:33: error: 'MY_SDCARD_CS' was not declared in this scope

    if (!card.init(SPI_HALF_SPEED, MY_SDCARD_CS)) {

                                 ^
    

    C:\Users\Piotrek\Desktop\SensebenderGatewaySerial-sketch\SensebenderGatewaySerial\SensebenderGatewaySerial.ino: In function 'bool testEEProm()':

    SensebenderGatewaySerial:249:2: error: 'SerialUSB' was not declared in this scope

    SerialUSB.print(" -> EEPROM ");

    ^

    C:\Users\Piotrek\Desktop\SensebenderGatewaySerial-sketch\SensebenderGatewaySerial\SensebenderGatewaySerial.ino: In function 'bool testAnalog()':

    SensebenderGatewaySerial:267:30: error: 'MY_BAT_DETECT' was not declared in this scope

    int bat_detect = analogRead(MY_BAT_DETECT);

                              ^
    

    exit status 1
    'LED_BLUE' was not declared in this scope

    What is error ? please help me

    OpenHardware.io mysensors gateway samd
  • Login

  • Don't have an account? Register

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