Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • RPI2 Pimatic MySensors getting started

    5
    0 Votes
    5 Posts
    2k Views
    N
    Thanks a lot!
  • Relay sensors stop communicating with gateway after a few minutes

    27
    0 Votes
    27 Posts
    15k Views
    R
    YES!!! That was it! I got both relays powered from the external power supply now and everything seems to be working fine. Thank you all very much!
  • Ethernet Gateway - Radio Init Fail

    12
    0 Votes
    12 Posts
    5k Views
    SparkmanS
    @stevebus Glad to hear you got it working! Cheers Al
  • pb compilation MEGA2560 + sketch W5100

    6
    0 Votes
    6 Posts
    3k Views
    B
    compilation OK !!! In fact I move in directory /Volumes/Data/Documents/Arduino DigitalIO list itemMySensors (branch development) list itemPinChangeInt ping OK but I have fail msg in serial : 0;0;3;0;9;radio init fail One suggestion please?
  • Error compiling serial gateway. Please help.

    4
    0 Votes
    4 Posts
    2k Views
    T
    Ha! It's solved by deliting Mysensors from Personal Libraries on codebender.cc and Cloning Sketch&Libraries. Thaks Sparkman for Idea!
  • How to update sensor relay from serial gateway

    12
    0 Votes
    12 Posts
    5k Views
    B
    I used a mini pro whith FTDI : [image: 1438867716935-img_0781.jpg] It wasn't working the serial gateway don't send data. I test with a nano and all is ok now ... [image: 1438867816314-1.png] And on my relay sensor : Terminal ready req id send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok: read: 0-0-255 s=255,c=3,t=4,pt=0,l=1,sg=0:1 send: 1-1-0-0 s=255,c=0,t=18,pt=0,l=3,sg=0,st=ok:1.5 send: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0 read: 0-0-1 s=255,c=3,t=6,pt=0,l=1,sg=0:M id=1 send: 1-1-0-0 s=255,c=0,t=18,pt=0,l=3,sg=0,st=ok:1.5 send: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0 read: 0-0-1 s=255,c=3,t=6,pt=0,l=1,sg=0:M repeater started, id=1, parent=0, distance=1 send: 1-1-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=ok:Relay send: 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0 send: 1-1-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok:
  • No protocol version during PRESENTATION

    3
    0 Votes
    3 Posts
    1k Views
    T
    Ok thanks for the precision ;-)
  • Temperature not presented to controller

    7
    0 Votes
    7 Posts
    2k Views
    Sander StolkS
    Boom! Got it! The sketch above does not send the temp because -127.0 / disconnected however with this sketch and implemented in my sketch above and it works... #include <MySensor.h> #include <SPI.h> #include <DallasTemperature.h> #include <OneWire.h> #define ONE_WIRE_BUS 8 // Pin where dallase sensor is connected #define MAX_ATTACHED_DS18B20 16 unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds) 30000 orig OneWire oneWire(ONE_WIRE_BUS); DallasTemperature sensors(&oneWire); MySensor gw; float lastTemperature[MAX_ATTACHED_DS18B20]; int numSensors=0; boolean receivedConfig = false; boolean metric = true; // Initialize temperature message MyMessage msg(0,V_TEMP); void setup() { // Startup OneWire sensors.begin(); // Startup and initialize MySensors library. Set callback for incoming messages. //gw.begin(); gw.begin(); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("test temp"); // Fetch the number of attached temperature sensors numSensors = sensors.getDeviceCount(); // Present all sensors to controller for (int i=0; i<numSensors && i<MAX_ATTACHED_DS18B20; i++) { gw.present(i, V_TEMP); } } void loop() { // Process incoming messages (like config from server) gw.process(); // Fetch temperatures from Dallas sensors sensors.requestTemperatures(); // Read temperatures and send them to controller for (int i=0; i<numSensors && i<MAX_ATTACHED_DS18B20; i++) { // Fetch and round temperature to one decimal float temperature = static_cast<float>(static_cast<int>((gw.getConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.; // Only send data if temperature has changed more then 1 degC and no error if (int(lastTemperature[i]) != int(temperature) && temperature != -127.00) { //added integer // Send in the new temperature gw.send(msg.setSensor(i).set(temperature,1)); lastTemperature[i]=temperature; } } //gw.sleep(SLEEP_TIME); } Same hardware, same libs and different code... You tell me whats wrong because I don't know it anymore...
  • Transmit LED always lit on gateway?

    16
    0 Votes
    16 Posts
    7k Views
    hekH
    Ok, patched the inversed behaviour and fixed the new config option. https://github.com/mysensors/Arduino/commit/cb83bfbdb3ed32ef57040cff9954b390ec9a2528
  • Compile error with relay example

    3
    0 Votes
    3 Posts
    2k Views
    S
    Thank you! That worked. Should have tried that...
  • Sonos and Vera/Mysensors problem

    4
    0 Votes
    4 Posts
    2k Views
    K
    SOLVED I have moved my Vera controller away from my Sonos bridge, and I have had no Sonos problems the last 2 weeks ..... /Kurt
  • MQTT Gateway - Stuck on "Started!"

    29
    1 Votes
    29 Posts
    15k Views
    Z
    Everything works now. I made another Ethernet gateway using an Arduino Uno, a compatible Ethernet Shield and a RF24L01+ module without the antenna. Now the sensors get their reply from the gateway and they report to Domoticz seamlessly. It seems that the problem was with the antenna version RF24L01+ module I was using. Probably it got destroyed when I replaced its pins. Some guidelines for troubleshooting that may help others: check that the power supply is good enough. If you are using one of these cheap breadboard power supplies with the ams1117 regulators, check that you provide enough voltage for the regulators to work properly. Do not expect from a capacitor to save you from a faulty power supply, especial when you use batteries. Have in mind that some of these supplies are shipped with faulty regulators and provide as high voltage as their input. verify that the Ethernet module works properly. Just upload a simple sketch and get an IP. eg. test this. verify that the nrf24 modules work properly. You can try this. Actually a test circuit to check the RF modules before using them may save you a lot of time. Get the latest mySensor sketches from github. Use MYScontroller to monitor the messages the getway and the sensors exchange.
  • 'DEFAULT_CE_PIN' was not declared in this scope

    2
    0 Votes
    2 Posts
    2k Views
    E
    I got this sorted - removed all the 1.4 files from libraries and then copied the 1.5 ones in
  • messages from sensor doesn't seem to appear on gateway, st=ok [solved]

    2
    0 Votes
    2 Posts
    1k Views
    J
    ok, I got where my fundamental mistake was: I was thinking that GW is managing node ID's... this helped me ok, headed to OpenHAB now :)
  • Distance Sensor and NewPing

    1
    0 Votes
    1 Posts
    912 Views
    No one has replied
  • Trying to understand the error codes in Arduino IDE

    11
    0 Votes
    11 Posts
    6k Views
    epierreE
    I guess you've used the v2 library although the v1 is the one commonly provided today https://learn.adafruit.com/bmp085/using-the-bmp085-api-v2 @hek The BMP085 has been discontinued by BOSCH and replaced with the BMP180 which is smaller and less expensive but is identical in terms of wiring and software!
  • Trouble after Jeedom update

    4
    0 Votes
    4 Posts
    2k Views
    P
    Oh, good news, I'll lookt at that. Thanks and enjoy your holidays :-)
  • Request node infos by arduino ide

    6
    0 Votes
    6 Posts
    2k Views
    hekH
    You can send the information whenever you want. In the provided examples it is placed in the setup() method which only runs once at startup. But nothing stops you from sending the information later (for example after a incoming request message of your choice arrives).
  • Need a little help to alter my sketch

    5
    0 Votes
    5 Posts
    2k Views
    BulldogLowellB
    @Dean said: ving the zero bit, it should just be waiting for a change. I suppose the reason for it to be waiting for both is to reduce the chance of it missing a change in value, which I could see happening, but it may not be a big deal, so I'll change the code and try it. The original code is written for a Momentary switch. Press it and it closes the circuit driving a change of state, release it and again it changes back to an open circuit and the pin state changes again. You have a toggle switch which when 'flipped' remains in its new state.
  • Scene Controller problem

    15
    0 Votes
    15 Posts
    4k Views
    V
    Thanks it worked. you are super

11

Online

11.7k

Users

11.2k

Topics

113.1k

Posts