Page 10 of 16

Re: MySensors - Gateway to Domoticz

Posted: Saturday 05 September 2015 13:30
by gizmocuz
And do we need an nRF024, cant we use the onboard wifi chip ?
Else i do not see the benefit ? prices of the nano are not expensive

if we could use the onboard wifi, now thats another story ;)

Re: MySensors - Gateway to Domoticz

Posted: Saturday 05 September 2015 19:42
by ThinkPad
nRF != wifi.... it is also 2,4Ghz like Wifi, but not the same protocol

Re: MySensors - Gateway to Domoticz

Posted: Sunday 06 September 2015 9:10
by gizmocuz
Okey, thats a shame.

So the ESP is then used as an alternative for an arduino ?

That could be interesting as some of them have 4mbyte of memory

would have been great if both could talk to each other ;)

reading a nice free book now:

http://neilkolban.com/tech/wp-content/u ... r-2015.pdf

Re: MySensors - Gateway to Domoticz

Posted: Sunday 06 September 2015 11:22
by MikeF
Wow, that's some book!

Re: MySensors - Gateway to Domoticz

Posted: Monday 07 September 2015 19:57
by remb0
esp can used as gateway.. http://www.mysensors.org/build/esp8266_gateway

but don't understand the pros really.

but now I'm confused with the options.
I want to build a relay for my garagedoor. but that must be "safe"
so esp had an advantage (because you need on my lan) but mysensors has repeater functions (and my wifi in the garden isn't always strong enough.



I have created an distance meter and a 3-1 (temp hum and motion) but sometimes if I update my domoticz he can't find my mysensor sensors. is there an way to reset them by script. x st fails is reboot or something? because when I go to the attic and push the reset on my nano everything is fine.

Re: MySensors - Gateway to Domoticz

Posted: Monday 07 September 2015 20:09
by gizmocuz
the pros could be, that there are ESP's with 4 megabyte of memory

domoticz does not need to 'find' your mysensors nodes, the nodes will transmit, and domoticz will receive it via the gateway

next to the more memory, you need to connect an nRF to the esp... same like to an arduino nano/micro, prices are almost the same

if you already have an arduino nano mysensor network, i dont think there will be any benefits,
if you only have esp's, then you can make a mysensors network with esp's

also, the 3.3 voltage, you need a regulator, the nano/micro, you can run from batteries

... i dont see any benefits at the moment... if this esp could work directly with it's wifi chip with the nRF, yes, then i see ;)

(i am no ESP expert... so anything i say can be wrong...)

Re: MySensors - Gateway to Domoticz

Posted: Saturday 12 September 2015 13:44
by pendragon
Is there a good way to port all sensor nodes from one gateway (serial) to another (ethernet) without loosing the logs?
Is the replace command, which is aviable for the temperature sensors, the right option?

Re: MySensors - Gateway to Domoticz

Posted: Wednesday 16 September 2015 9:31
by hek
Hi guys,

A couple of benefits of using the WiFi gateway is:

1. You can place your gateway anywhere with WiFi coverage without the need for hard-wired ethernet connection.
2. Hooking up and configuring an ethernet gateway is more complicated (especially if you need to enable SOFT-SPI for radio).

Otherwise it should work just as your Serial/ethernet variant (but with more memory).

I'm currently doing a big refactoring of the library and the new version allows sensors to be attached to gateway as well. This would allow you to deploy ESP-gateways/sensors without any NRF24/RF69 radios attached. Could be a good option if you don't care about battery operation and already have good WiFi coverage in your house.

Re: MySensors - Gateway to Domoticz

Posted: Thursday 17 September 2015 8:32
by remb0
hek wrote:Hi guys,

A couple of benefits of using the WiFi gateway is:

1. You can place your gateway anywhere with WiFi coverage without the need for hard-wired ethernet connection.
2. Hooking up and configuring an ethernet gateway is more complicated (especially if you need to enable SOFT-SPI for radio).

Otherwise it should work just as your Serial/ethernet variant (but with more memory).

I'm currently doing a big refactoring of the library and the new version allows sensors to be attached to gateway as well. This would allow you to deploy ESP-gateways/sensors without any NRF24/RF69 radios attached. Could be a good option if you don't care about battery operation and already have good WiFi coverage in your house.
Wow great. when my gateway if wifi (it would be easy because it's under my router) and if the sensor of my watermeter and 3 relais can be attached I can dump my: pi1 with piface.

Re: MySensors - Gateway to Domoticz

Posted: Sunday 20 September 2015 21:17
by franzelare
hek wrote:I'm currently doing a big refactoring of the library and the new version allows sensors to be attached to gateway as well. This would allow you to deploy ESP-gateways/sensors without any NRF24/RF69 radios attached. Could be a good option if you don't care about battery operation and already have good WiFi coverage in your house.
That would be great!
Since I like to wire systems that are close together instead of transmitting the signal over a few inch...

Re: MySensors - Gateway to Domoticz

Posted: Friday 02 October 2015 7:12
by joshimosh
Sorry to interrupt this thread with another problem related to the gateway.
Since 3213 I notice a loss of log messages from MySensor nodes. When I restart a sensor node, in previous versions (up to V2.3207) I had messages created by sendSketchInfo in the logfile of Domoticz. Now they are gone. In additon, I see that quite a few data packet sent from a MySensor node are dropped. It it easy to notice, since the nodes are sending their data packets in regular intervals and it becomes obvious if there are missing updates.

Any ideas how to track that down ?

Thank you
Josh

Re: MySensors - Gateway to Domoticz

Posted: Friday 02 October 2015 8:17
by gizmocuz
checked the coded (MySensorsBase.cpp), the Sketch Name/Version should be displayed.
if you compile under debug mode, you will see every message

Re: MySensors - Gateway to Domoticz

Posted: Sunday 18 October 2015 14:40
by asm7100
Justintime wrote:
BluesBro wrote:Is there a way to skip ardunio via serial and connect the nrf24 directly to the Pi?
No, you have to have a serial gateway which communicates with the nodes. The serial gateway talks with Domoticz.
Yes there is.
Bout you need a driver.

The NRF24 is used on this site.
http://iot-playground.com/3-easyiot-server-installation
He is going cloud based and properly want money for the service in 2016.

Re: MySensors - Gateway to Domoticz

Posted: Sunday 18 October 2015 14:42
by gizmocuz
I think mysensors 1.6 will let you do this...

Re: MySensors - Gateway to Domoticz

Posted: Sunday 18 October 2015 17:58
by asm7100
Domoticz needs a driver for it :-)

Re: MySensors - Gateway to Domoticz

Posted: Sunday 18 October 2015 18:07
by gizmocuz
is it ? From what i hear is that 1.6 lets you connect directly to your sketch.
(you cant use serial debug prints, unless you specify this)

If i'm wrong let me know... at the moment i can not compile any sketch in 1.6 (radio/hw not found in mysensors.cpp)

But there are positive responses from users

Re: MySensors - Gateway to Domoticz

Posted: Tuesday 27 October 2015 14:09
by nellemar
jopa wrote:Thanks. :) Yeah, I get the point. If two gateways with their sensors are in the same room they need to operate on different Radio Frequency Channels. I did take care of that to make sure they won't interfere one with another.
It seems to me to be something else. Something between Domoticz over the TCP/IP protocol and the Gateways. Activating one at the time in Domoticz everything is working fine.
It looks as if Domoticz isn't prepared to handle two MysSensors Gateways at the same time.

One gateway has the IP Address 192.168.0.91 and the other works with 192.168.0.93. Each Gateway activated separately gets correct registers in the Domoticz Log showing to be connected and sensors are being recognized automatically and shows up in the Log. But when I activate in the Hardware Menu both Gateways at the same time it stops working correctly and stops to register any new Logs. Even when I unplug or reset the MySensors Gateways Domoticz doesn't register any-longer the loss of connection.

Could I activate some recommended Debugging to capture more Data? And if someone please from the development team could confirm if Domoticz is prepared to handle various MySensors Gateways simultaneously. I can't find an answer in the documentation or at the Forum.
I have two gate ways up and running. One serial and one Ethernet.

i've changed de RADIO_ID part AND the channel in myconfig.h.

/**********************************
* NRF24L01 Driver Defaults
***********************************/
// RF channel for the sensor net, 0-127
define RF24_CHANNEL 76
// This is also act as base value for sensor nodeId addresses. Change this (or channel) if you have more than one sensor network.
define RF24_BASE_RADIO_ID ((uint64_t)0xA8A8E1FC00LL)

This seems to work.

Before uploading you have te change the values to the corresponding Gateway.

EDIT:
it's also nessesary that you change the mac adres of the gateway. 2 devices with the same mac adres is not allowed and gives routing problems on your network.

// Note that most of the Ardunio examples use "DEAD BEEF FEED" for the MAC address.
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // DEAD BEEF FEED

Re: MySensors - Gateway to Domoticz

Posted: Tuesday 10 November 2015 0:16
by alexsh1
gizmocuz wrote:that might work
i can confirm it works.
However, i experience strange issues with the GW - viewtopic.php?f=42&t=8829

Re: MySensors - Gateway to Domoticz

Posted: Thursday 12 November 2015 11:57
by alexsh1
I have the ethernet GW connected to Domoticz and have the following issue (please see the photo attached).
Any ideas why I have nodes /childs duplicated? I am running MySensors 1.5 lib.

Re: MySensors - Gateway to Domoticz

Posted: Thursday 12 November 2015 18:34
by gizmocuz
No... not really

You can remove both nodes... does it come back twice?