Skip to content

Troubleshooting

Help! Everything just falls apart
2.7k Topics 21.5k Posts
  • Nodes only seen once with using I/O pin as power

    7
    0 Votes
    7 Posts
    2k Views
    B
    @ericvdb Hi, yeah sorry for that. I only realised that when I took a closer look at your sketch because it gave me the check wires message.. Thanks a lot, I've now put the radio on a seperate pin too powering it down and let the radio reinitialize by using gw.begin(); in the void loop section. This is the final code now and it is working well! #include <SPI.h> #include <MySensor.h> #define CHILD_ID_LIGHT 0 #define LIGHT_SENSOR_ANALOG_PIN 1 #define MIN 300 // Liquid #define MAX 700 // Air int sensorPin = A0; // select the input pin for the potentiometer int sensorValue = 0; // variable to store the value coming from the sensor int power =4; int radio =5; MySensor gw; MyMessage msg(CHILD_ID_LIGHT, V_HUM); int lastLightLevel; void setup(){ pinMode(power, OUTPUT); digitalWrite(power, HIGH); pinMode(radio, OUTPUT); digitalWrite(radio, HIGH); delay (5000); Serial.begin(9600); gw.begin(); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Mobile Sensor 1", "Kruiden"); // Register all sensors to gateway (they will be created as child devices) gw.present(CHILD_ID_LIGHT, S_HUM); digitalWrite(power, LOW); } void loop(){ // Turn sensor On digitalWrite(power, HIGH); // Turn Radio on digitalWrite(radio, HIGH); // read the value from the sensor: delay (5000); gw.begin(); sensorValue = analogRead(sensorPin); int lastsensorValue = sensorValue; Serial.println(sensorValue); int sendValue = map(sensorValue, 0, 842, 0, 100); gw.send( msg.set( sendValue ) ); // Turn sensor Off digitalWrite(power, LOW); // Turn radio off digitalWrite(radio, LOW); gw.sleep(3600000); }```
  • Controller not recognizing message rerouting?

    8
    0 Votes
    8 Posts
    2k Views
    DwaltD
    1.5 appears to have fixed my repeater problem. I have monitored the serial output continuously from a single sensor node for the past 5 days after upgrading the sensor node and repeater node to 1.5...and finally, the node experienced the random 'st=fail' and searched for a 'new parent' (it seems to take 6 'st=fail' in a row to trigger rerouting). The node redirected traffic through the repeater node and the gateway successfully received and passed on the data. All is well. No clue what causes the 'st=fail'. I live in an inner-city so RF interference is expected and unavoidable. Reviewing 120+ hours of serial data, it seems the node would experience an average of 3-4 'st=fail' per day at random intervals. The 6 sequential 'st=fail' occurred in the middle of the night. I have no idea what triggered the problem but the mesh networking worked and quickly eliminated the problem. @hek Thank you for resolving this.
  • Actuator on 1.5

    4
    0 Votes
    4 Posts
    2k Views
    T
    I thought i was using the latest 1.5 version but it seems not. Uploading all my sketches with fresh downloaded version fixed my pb. Thx sundberg84 ;)
  • Making Code for Weather Station

    8
    0 Votes
    8 Posts
    4k Views
    HeinzH
    @Brutus Yes, memory on the nano is limited. I already ran out of memory when merging ketches, but fortunately the compiler tells you that at compile time.
  • relay actuator fails to presenting itself

    12
    0 Votes
    12 Posts
    3k Views
    hekH
    There was a bug fix a couple of days ago fixing problem when routing from repeater to a node. Please make sure that you run the latest library code.
  • Release 1.5 and Ethernet Gateway

    7
    0 Votes
    7 Posts
    4k Views
    netsigiN
    Uh, that was a mean one.... updated today from 1.4.1 to 1.5 and MYSController did not work anymore. After change client.write(serialBuffer); to server.write(serialBuffer); old behavior was back.
  • Controlling mysensors actuators via MQTT - need help

    2
    0 Votes
    2 Posts
    1k Views
    R
    Problem solved. The right command would be topic: MyMQTT/1/1/V_LIGHT message: 1
  • Connection Problems

    13
    0 Votes
    13 Posts
    4k Views
    SparkmanS
    @Stephan-Noller If there's nothing in the repeater or gateway, then that indicates that the sensor is not transmitting or transmitting to the wrong parent, so hooking up a serial monitor to it should provide some clues. Of course the serial monitor has to be connected ahead of time otherwise as it will reset the Arduino once you connect. You could also try the NRF24 Sniffer. Try putting a small delay between the sends as that may resolve the issue where only one value is being transmitted. Cheers Al
  • Nodes don't automatically reconnect after gateway powercycle?

    5
    1 Votes
    5 Posts
    2k Views
    T
    Same problem too. Sometimes sensors doesn't reconnect to network. I experimented it mostly of the time with sensors connected to repeater. I also added a status LED to check if repeater is still running (heartbeat) and it does. It seems all my sensors are still running (i can check it with my actuator button, if sensor is not connected and i press the button sensor does nothing while if it is connected to repeater it switches relay properly) so i guess my sensors are still connected to repeater but repeater seems not to be connected to gateway.
  • Beginner question about Ethernet gateway

    3
    0 Votes
    3 Posts
    1k Views
    Clark CaseC
    Thanks for the reply. So, since the pin is labeled "V+5", you don't think it is looking for 5V? Would these breadboards do the trick? http://www.amazon.com/Points-Breadboard-Arduino-Proto-Shield/dp/B009VJ361G/ref=sr_1_1?ie=UTF8&qid=1439895753&sr=8-1&keywords=mini+breadboard
  • How low can arduino can go?

    power arduino pro min low consumption
    29
    0 Votes
    29 Posts
    21k Views
    B
    This is an old thread but Tibus, the problem I had was exactly yours with 26uA. I had to downgrade my Arduino software to 1.0.6 . Then I got normal numbers 3uA.
  • Ethernet Gateway - unreliable (sort-of)

    26
    0 Votes
    26 Posts
    12k Views
    stevebusS
    @BulldogLowell - Neither the Uno or the Ethernet shield gets hot. I seem to have the same experience no matter how I power it... @Dan-S - I'm using a ENC28J60 based shield, not Wiznet. I had both. I actually tried to use the Wiznet board first, but it seems to be completely bad (I can't even get any of the built-in Ethernet examples to work with it). I don't have another ENC28J60 board to test with.. However - by way of a small update. I've had the GW running for several days in a row now and have a few updates/observations: communication from sensor to GW to Vera continues to work flawlessly. I finally got around to adding a sensor that requires commands to be sent FROM the Vera (a variation on the relay actuator sample). Communication from the Vera through the GW to the sensor also works very reliably... So, it seems the problem is not the Ethernet stack or listener. So, the problem seems to be isolated to the inclusion mode and Metric/Imperial buttons. inclusion mode now works 'sometimes'. It doesn't work every time, but sometimes setting inclusion mode from the Vera UI works, as opposed to never working previously after the first 30 seconds after a reboot. It seems like it works right as I'm about to get irritated that I have to walk down two flights of stairs to my basement to push the inclusion mode button manually, so maybe the Vera/GW have a 'mood' sensor :-) I don't know (yet) why it works sometimes and not others. Still troubleshooting. But I'm encouraged that the Vera/Mysensors combination is trending towards more reliability.
  • Codebender

    3
    0 Votes
    3 Posts
    1k Views
    D
    @hek Well that works better. I still get "There was an error compiling" from codebender on the Mysensors webpage, but now not as many sketches as before. It took going back to your video on loading the IDE and the gateway sketch. It is different than the way I learned Arduino, so that may have been part of the problem. I also found multiple copies of several of the files all associated with previous API versions some with the same file name which I am sure Arduino got confused. So with all the house keeping and reloading the IDE, the bottomline I can now get V1.5 gateway to compile.
  • Error setting up Ethernet gateway. Radio won't initialize

    4
    0 Votes
    4 Posts
    2k Views
    D
    Well, some more good news. I have the Ethernet gateway connected to OpenHab2, and it's reading my temperature sensor perfectly and registering it in OpenHab after auto discovery! It also registered the humidity sensor, but it's not updating that for some reason. WooHoo! getting there slowly (but surely).
  • LEDs Blinking does not work

    2
    0 Votes
    2 Posts
    1k Views
    Stephan NollerS
    I have to correct myself. LEDs are indeed lighting, it's just hard to recognize, guess because i am working with 3.3 volt instead of the 5v as recommended. Nevertheless, i get a green LED even though measurement values are not reaching the controller...
  • radio init fail on sensor, RF24 init OK

    5
    0 Votes
    5 Posts
    6k Views
    SparkmanS
    @jeti I guess I should have clicked on those links :D Maybe try the low power mode. Perhaps the power supply is no longer supplying enough power to allow the radio to function. Also try supplying the radio with a separate power supply. Cheers Al
  • Gateway is sending command=1, type =1 (c=1,t=1) message to sensor

    14
    0 Votes
    14 Posts
    4k Views
    T
    Btw, I pushed the changes into my fork. The MQTTClientGateway will now listen to the topic MyMQTT/+/+/+/+ defined in the header file (MQTT_TOPIC_MASK) If it receives a message on that topic it will parse it and map the command get to a C_REQ message and set to a C_SET message and set it along with the payload to the sensor/actuator.
  • NodeID = SensorID?

    2
    0 Votes
    2 Posts
    963 Views
    hekH
    Yes, it is the same. ChildId == SensorId. Trying to use SensorId nowadays.
  • Strange Node, only Present message

    3
    0 Votes
    3 Posts
    1k Views
    Frank HerrmannF
    I'ts a normal Lux sensor from my video lessions about Arduino save Power topic: https://www.youtube.com/playlist?list=PLYPTUTcLMTK4X3rSrr3FChxNeVwrH1Kmh I guess the problem are not enough power, the node send some data and the power go down, then fall in reset and after some seconds the battery go up and the node try to send again and so forth. At the weekend i'll test this with a new battery :)
  • Serial Gateway to Node (gas sensor) communication

    1
    0 Votes
    1 Posts
    747 Views
    No one has replied

13

Online

11.7k

Users

11.2k

Topics

113.1k

Posts