lafrech / oem_gateway

Part of OpenEnergyMonitor project. Gateway from data source to target database.
20 stars 19 forks source link

Multiple node groups #4

Closed kiwinewt closed 11 years ago

kiwinewt commented 11 years ago

Is this possible? Does it need to be set up as 2 RFM2Pi listeners, or can there be more than 30 nodes in a group?

lafrech commented 11 years ago

Hi.

I'm not sure I understand your request.

Anyway, assuming you're using a Raspberry Pi with a RFM2Pi board, you can't setup two listeners for the same board (I never tried that, and I didn't add a specific protection against this misuse, but please don't try this at home. In the best case the second listener would get rejected because the serial port is already in use by the first. Otherwise, the parameters of the second would erase those of the first.).

The node group is a parameter of the RF board itself. It is set by the listener. The RF board can't belong to two node groups. Well, I don't think so. Yet, there may be a way of listening to packets of all groups when setting group as 0. Not sure, you should check that. Anyway, this is not specific to the gateway. You'd rather ask this on the OEM forum.

More than 30 nodes ? I suppose you are referring to the Node ID "standards" described here. I don't know. This is also related to the RF protocol rather than the gateway. I'd ask this on the forum as well.

I'm closing since this is unrelated and I'm afraid I can't help more, but please don't hesitate to reopen if you feel I misunderstood your question.

kiwinewt commented 11 years ago

At the moment the code does not support a base node ID of 0, as per your standards link. I have forked it and I will update and test with my local setup, then send through a pull request if you are happy with it. :smile:

I am at work at the moment, but can test when I get home and let you know how it goes.

Nate