Problems with first sensors

A few days ago I build a serial gateway using an arduino nano clone and a NRF24L01 with antenna. My raspberry pi 3 is running domoticz as controller.

Domoticz seems to recognize the serial mysensors gateway (USB) and shows version 2.0.

For testing I build a motion sensor (HC-SR501, arduino nano, NRF24L01) and uploaded a an unmodified mysensors example-sketch. Under setup->hardware->gateway->setup (german translation) I was able to see a child no. 255 (doesn´t the example used child ID 1?), which was named S_ARDUINO_REPEATER_NODE version 1 instead of motion sensor. I was never able to see this in devices.

Tried to upload the sketch once again with a clean installation of the arduino IDE from arduino.cc. Installed the newest IDE version and mysensors 2.0.

yes sketch are ready, the sketch from example folder is ok.
perhaps you didn't paid attention, but imho you have changed something...Look at the top of your sketch, mysensors is two times included and not right. And if you look at the sketch I've linked (which is from example folder), you will see it's done once like this

ah ok. I don't know for these sketch. But those from the arduino example folder should be ok.
If not, clean your arduino install, and install it again. with the help from the links above, this should be ok.
I hope it helps.

Nano seems to be damaged. Trying a new one tomorrow.
One more question, please: I downloadee mysensors library 20.
As I am using a serial hateway, I notices the gateway sketch uses the old gw.xxx structure. Do I have to modfiy the sketch on my own for preparing it for library 2.0? (My programming skills are under development). On githib the sketch is very basic, there is missing a lot?!

where do you see that gateway use old structure?
the serial gw sketch you have in arduino ide should be the same as github. if not, you have not well updated your lib..
don't worry, the sketch is very basic but it works. it's because lot of stuff is hidden for easing the lib use.

Uploaded the serial gateway sketch from examples ro my serial gateway (not serialgateway485). I just modified the baud rate to 115200. domoticz recognizes the gateway as version 2.0.

I also uploaded the motion sketch from examples to a new arduino nano and modified nothing.

Domoticz now is able to see the node, but it is named unknown. The child ID 255 (that must be wrong) is named S_ARDUINO_REPEATER_NODE - that is wrong. It has to be S_MOTION. Despite I was using the newest sketch, domoticz calls it version 1.0.

@blebbens connect the gateway to your computer usb port and look at the serial to see the debug log.

In addition where does domoticz show the "unknown" sensor? In the hardware log there is always one with id 255 for the node.

From you log I read a lot of "failed" messages. This indicates transmission errors which could result from your amplified radio's. These a more error prone than the non amplified ones. For testing you better use the non amplified.

I don't know about domoticz but perhaps you can get the logs. Or use MYSController.

Otherwise, when you need it, you can debug gw and node on your computer. Just connect both devices to your computer. Then of course this is not connected to domoticz but for debugging i often do this, it's useful.

So:

connect gw+node to your computer

then use Serial monitor from arduino if you want, to monitor one device. choose right baudrate and comport of course

and for other device, use another serial monitor like putty etc..
or a sniffer if you really want to keep it connected to your controller. But for noobs, i would advice to simply use two serial monitor when you need to debug, easier..

@blebbens your domoticz screen looks fine. No errors but also no sensors reported. Only the node is known.
As @scalz mentioned, just connect the node and gateway to your computer watch what happens on the serial monitor (arduino idea or whatever you are using) the node does not have to be connected to domoticz for initial debugging.

I never had both, gateway and sensor, connected to the monitor at the same time. I am afraid, I didn´t understand to use MYScontroller. Did not find the com-port settings etc. It always tries to connect to gateway 192.168.0.x, my network is not set up to this IP.

connect your devices to usb, and disconnect one by one. So now you know which one use which port.

About MYSController: you will need to setup the serial port for GW.

With GW connected to usb, click Settings button and then click Gateway tab.

Check Serial GW and choose port&bauds.

Now, still in MYSController, you can click Connect button. There are tabs in MYSController for different debug levels. Look a bit at features.

It should connect, if it does not, un/replug your gw, and reclick Connect.

Then you'll have the logs for your GW if it is enabled in sketch of course.
As said above, if you would like, you could use another software (serial monitor) in place of MYSController. but not required here.

Now, for the other device (node), you can monitor it in Arduino software by setting well port&bauds. you know it now

@blebbens
could you show a link where you bought radio modules you're using please. I think @tekka may have found the problem

For people who are getting same messages "FPAR FAIL", I think you may fall into the old case "st:fail", hardware related like using capa for radio, tekka advices above etc... where radio does not work properly and there is no ACK back so the comm is not validated. Then, after multiple retries, it fails.

I can confirm this at least for static nodes. On my side, the latest v2.0 from dev branch works ok for me. as expected Config tested for the moment is serial gw with exotic mcu atsam (I mean compared to classic gw). And the node is a multisensors. Radio is RFM69.

Have you tried to use another sketch?
Just a random mysensors sketch to see if it that one also get presented as repeater node.
Maybe just take one with a button and make your own (if you dont have any) and see if the buttonpress gets transmitted.

@blebbens I totally understand your frustration but I'm afraid, your issue seems HW/radio-related. The logs look normal, also the repeater node message (which is actually emitted from the GW, see your domoticz screenshot and GW log). If you can get a different pair of nRF24L01+ (the P-version), I'd retry with those.

@nielsokker Yea you are probably right, no problem now though since as soon as i hooked it up to my controller everything works fine dodgy wires on the gateway was the issue all along.... using the very basic node sketch i can now see it in Domoticz and watch it turn on/off every 10 secs

@blebbens I just replaced my RPi Gateway (the direct connection to GPIO) with the Serial Gateway, and the Repeater node you are seeing must be your gateway. Before i connected any nodes i got the same repeater node listed as hardware as you did, so it is probably your node that is the problem.

I have exactly same error after loading new sketch (sensebender with BMP085). It was working fine for few days and suddenly it doesn't work. After verting my modification it doesn't work. Clear EEPROM doesn't solve the problem. RFM69W and static ID.
Gateway work fine with other sensors (sensebender without mods).

Arduino IDE works fine, but all things combined with mysensors are not working.

Tried to upload the ClearEepromConfig sketch to the serial gateway (nano, NRF24L01+). After compiling the sketch, the IDE is not able to upload the sketch to the nano (error on uploading the sketch). The same with other example mysensors sketches.

However, this may give further information:
For comparison, please post the same Arduino IDE log when uploading the blink example (not an empty sketch) and - if successful - confirm that you see a blinking led in a 1sec interval.

blink example:

// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

Now I want to connect the gw to my test VeraEdge. I followed the instructions, uploaded the .xml-files and created a device. But, in APPS/DEVELOP PPS/SERIAL PORT CONFIG" I can not find the via USB connected serial gateway. And, I do not know where to restart vera itself or the luup engine.