Posts made by Stephan Noller
-
RE: Connection Problems
As i said @Sparkman i see nothing in the serial logs of repeater/gw in these cases. The only thing i did not yet check is the serial output of the sensors that fail to connect (it's currently raining all the time here...). But the good news is: i kinda solved the problem by simply exchanging hardware from gw and repeater. Now the repeater is using the amplified RF and the gw the standard module. Now all sensors are measuring from their intended location on the ground with just a few exceptions (btw also interesting: in many cases only one of the two sensor-values is being transmitted).
-
Copying Reading value into 'state' field
I have my mysensors connected to FHEM and everything works fine so far - just the 'state' flag of my sensors is not getting populated and always shows questionsmarks. How can i change that? I would prefer to always see the latest value from this sensor here - can it be done via a mapping?
-
RE: Connection Problems
@TechIsCool thanks for your suggestion, unfortunately i already have caps on all my sensors (because it is also suggested on the mysensors page)
-
RE: Connection Problems
@Sparkman sure, the code is attached below, but it's pretty much the standard example (derived from light sensor). Your suggestion regarding distance to the ground is a good point, will try my best (as i am measuring humidity of the soil it's not trivial...).
Regarding stateless communication: is that really the case? I thought there is some routing including routing tables somewhere which would indicate a kind of state or am i wrong?#include <SPI.h> #include <MySensor.h> #define CHILD_ID_LIGHT 0 #define CHILD_ID_BAT 1 #define LIGHT_SENSOR_ANALOG_PIN 0 #define trigger 6 #define led A2 int BATTERY_SENSE_PIN = A1; unsigned long SLEEP_TIME = 1*60000; // Sleep time between reads (in milliseconds) MySensor gw; MyMessage msg(CHILD_ID_LIGHT, V_LIGHT_LEVEL); MyMessage msgBatt(CHILD_ID_BAT, V_VOLTAGE); int lastLightLevel; void setup() { gw.begin(NULL,3,false,0); //gw.begin(); pinMode(trigger, INPUT); pinMode(led, OUTPUT); pinMode(11, OUTPUT); // Send the sketch version information to the gateway and Controller gw.sendSketchInfo("Moisture Sensor", "1.0"); // Register all sensors to gateway (they will be created as child devices) gw.present(CHILD_ID_LIGHT, S_LIGHT_LEVEL); gw.present(CHILD_ID_BAT, S_POWER); Serial.println("Setup ok"); } void loop() { pinMode(trigger, INPUT); digitalWrite(led, HIGH); delay(1000); int lightLevel = analogRead(LIGHT_SENSOR_ANALOG_PIN); int batLevel = analogRead(BATTERY_SENSE_PIN); float batteryV = batLevel * 0.003363075; int batteryPcnt = batLevel / 10; Serial.println(lightLevel); delay(100); gw.send(msg.set(lightLevel)); gw.sendBatteryLevel(batteryPcnt); lastLightLevel = lightLevel; delay(1000); pinMode(trigger, OUTPUT); digitalWrite(led, LOW); gw.sleep(SLEEP_TIME); }
-
RE: Connection Problems
Well - in cases when my sensor are disappearing there is also nothing to see in the log of the Repeater...
-
Connection Problems
I have an installation up and running (1.4 serial gw, fhem as controller) and am trying to install a soil/humidity sensor in my garden. But it always loses connection to the gateway or repeater once i put it on the ground (it can send if i put it on a chair or so in roughly the same spot). Other nodes in the house are working fine. I am using the extended range + antenna tranceiver on the gateway already, but also tried to work with an additional repeater (and forced sensors to use it). Tried different dBm Levels on both gw and sensors, tried different sensors (all on battery), added caps, changed the power-source of repeater (gw is powered through serial cable on the Raspberry). The strange thing is - none of these options had an influence on the behavior of that node on the ground. Any idea what is going wrong here? The other observation is: once a sensor loses connection it will never reconnect, even if put very close to the gw/repeater. Always have to reset - is that a normal behavior? Thanks in advance.
-
RE: Nodes don't automatically reconnect after gateway powercycle?
I experience a similar behavior - when sensors are out of reach for a moment they are not reconnecting if i am putting them back into place. Is this a known issue?
-
RE: LEDs Blinking does not work
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...
-
LEDs Blinking does not work
I did connect the three LEDs as suggested in advanced build options, included
#define WITH_LEDS_BLINKING
in my MyConfig.h but the LEDs don't seem to work properly (no light at all).Also tried to include this in the code directly:
#define RADIO_ERROR_LED_PIN 6 // Error led pin
#define RADIO_RX_LED_PIN 5 // Receive led pin
#define RADIO_TX_LED_PIN 4 // the PCB, on board LEDBut same behavior.
I am trying to get this running on a sensor node, not the gateway, but as i understand the comment under advanced build options this should not be a problem (tried gw sketch but LEDs still don't light up). Tested LEDs with a blink-sketch and they do work.
Am i getting something wrong? Anything missing in settings or so?
-
RE: Sensebender Micro
Hi guys,
amazing board! But i have a question: The Arduino IDE offerst two options as destination - 8MHz and 1MHz. Which one should i chose? My board seems to work in general, but not very realiable... -
RE: id request fails
How can i see this? At the moment the gateway is only 1m away from the sensor and i even exchanged the RF module with the enhanced one from Sparkfun (http://www.exp-tech.de/shields-module/wireless/funk/transceiver-nrf24l01-module-with-rp-sma-wrl-00705). But indeed i soldered the Cap onto the sensor, not the gateway...
Do you think i should put it on the gateway anyway, even with the new tranceiver? -
id request fails
I have a strange problem with the id requests. My sensor (analog humidity sensor) is able to send data to the gateway (i can see data coming in on that side), but says the request for a node id failed. Tried adding a capacitor, worked on the power-supply, tried a different RF-module, erased EPROM, behavior remains the same.
Any idea what might be going wrong here? What else can i try/check?My serial output on the sensor side looks like this:
x00x00send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail: req node id send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail: sensor started, id 255 req node id send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail: req node id send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail: req node id send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail: 0 req node id send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail:```