Hi
I have been searching if this cable can be used like the cn105 for Mitsubishi devices, but so far I only found libraries for daikin that use IR. Is there really no other way than IR?
@bjacobse I was surprised too as like you I had seen that they would not work with mysensors and definitely not with debug output - with 2 switches I was able to use debug output, but not after adding the htu21d (which I expected to fail, but after a little code change worked well). We live, We learn!
@abelson no. You need to have softdevice binary on your PC to flash it to NRF board. Please, read my answer above and try to do, what I suggested.
You need to choose softdevice option if it has been flashed to the board.
@pillarama I don't know about FOTA, but I see no reason why it would not work. I guess it depends what you do with it!
I like being able to burn bootloader from within arduino ide and not having to swap to avrdudess et al - now I can boot load and program in the same window. I was amazed at how easy it is to install and use. No need for fuse calculators, just choose clock speed, internal or external and brownout and click burn.
I do hope to try FOTA in April (real life allowing) and so will comment more then....
Only snag is it dosn;t work with the ardudriod on android, I have contacted the dev of that app and sent the error message but as yet no solution. Maybe it will be possible in the future to do all this from phone and needing PC..... It is very close.
Hi @Necromant, thank you for your comments regarding the RPD feature of the nRF24+.
I have done some experiments with it. The result is a new tool TrafficDetectorRF24, which is available in my MySensors.Tools repository. The tool scans a single channel and outputs the current status via a debug pin. This can be used to connect a LED or better an input of a logic analyser.
At first I tried to use the RPD feature based on the MySensors example PassiveNode.
Unfortunately, that didn't work at all for me. I then adapted the code from Rolf Henkel Poor Man's Wireless 2.4GHz Scanner for my purposes.
The detector works quite accurately (resolution approx. 140us) so that you can usually detect the transmitted telegram and the ACK response of the receiver individually:
I hope you have more success in your attempts with the RPD feature.
Practically I receive the MQTT topics from the MySensors Gateway.
Then in Node-Red I have make a function that translate the MySensors MQTT topics in a personalized MQTT topics,
in order to have clear names of the sensors value.
In Node-Red you make a flow like this:
Then in the function node you make something like this... but personalized:
// add timestamp to every sensor reads
var dt = new Date();
var hh = dt.getHours();
var mm = dt.getMinutes();
var ss = dt.getSeconds();
var yy = dt.getFullYear();
var mo = dt.getMonth() + 1; // want 1 more
var dd = dt.getDate();
//var daynum = date.getDay();
timeST = (dd < 10 ? "0" : "") + dd + "-" + (mo < 10 ? "0" : "") + mo + "-" + yy +
" " + (hh < 10 ? "0" : "") + hh + ":" + (mm < 10 ? "0" : "") + mm + ":" + (ss < 10 ? "0" : "") + ss;
/* sensors ID
id SensGaraj: 11
id SensCame1:
id SensCame2:
id SensCame3:
id SensCucin:
id SensSerra: 12
id SensFuori:
id SensSalon:
type Temp : 51
type Hum : 52
type Press : 53
type BatVol: 54
type BatLev: 255
*/
ret = 0; // send the return or not
// sensor id (topic:MySensors-out/xx/)
var parts = msg.topic.split("/");
id = parts[1];
type = parts[2];
val = msg.payload;
if (id == 11 ){sname = "SensGaraj";ret = 1;}
if (id == 12 ){sname = "SensSerra";ret = 1;}
// if etc...
if (ret == 1){
if (type == 51 ){stype = "Temp"; }
if (type == 52 ){stype = "Hum";}
if (type == 53 ){stype = "Press";}
if (type == 54 ){stype = "BattVol";}
if (type == 255){stype = "BattLev";}
msg = {}; //initialize msg object
msg.measurement = "sensors"; // tabella/file > influxdb
msg.topic = "MySensors/" + sname + "/" + stype;
msg.payload = {value: val, timeST: timeST}
node.status({fill:"green",shape:"ring",text:sname});
return msg;
}
//////////////////////////////////////////////////////////////
If you need more help just let me know
Denis
@Snyfir what is the return value of the sleep call? What does the debug output say? Those pieces of information will help a lot when trying to understand what is happening and why.
What type of Arduino you are using would also be useful.
@skywatch my 50 cents is that you might want to achieve to much. Having 2 different networks is not a problem. But one device in 2 networks, not sure if it will solve your problem.