LowPowerLab Forum

Hardware support => Moteino => Topic started by: Steven57 on March 04, 2015, 10:37:03 AM

Title: wireless connections
Post by: Steven57 on March 04, 2015, 10:37:03 AM
Is it possible to put 2 or more RFM69HW on a Moteino?
example: Moteino ONE with 69HW and Moteino TWO with 69HW communicating with Moteino MASTER with two(2) 69HW?
Title: Re: wireless connections
Post by: Felix on March 04, 2015, 10:40:14 AM
Yes but I would not recommend it.
Please search the forum, there are some topics on this subject.
But I cannot support anything but 1 radio on 1 Moteino.
Title: Re: wireless connections
Post by: Steven57 on March 04, 2015, 10:45:18 AM
On that note, I want several locations to be able to communicate back to my laptop ultimately. Several locations will have motion detectors and battery monitoring and want alarms sent to me about 150m away. I have wifi capability via paddle antenna and have Raspi, PCDuino, and lots of Arduino at my disposal.

Would like to try Moteino for it better power consumption as some of the locations are battery only.

I know just enough coding to be a hazard.
Title: Re: wireless connections
Post by: Felix on March 04, 2015, 11:27:49 AM
I would really have to ask why would you want to put multiple radios on a single Moteino?
Title: Re: wireless connections
Post by: Steven57 on March 04, 2015, 12:06:21 PM
Start at driveway entrance and proceed towards house

motion detector on battery here in woods>>>>100' away>>>>motion detector on ac in building>>>>30' away>>>>motion detector on ac in same building (have ability at this building for wifi via paddle antenna to house ~350' away)>>>>150' away>>>>motion detector on battery>>>>~200' more to house>>>>motion detector on house ac>>>>Raspi and/or Linux Laptop to communication with all and receive inputs. 

I want the battery detectors to also monitor battery life and send signal when due for change. As the detectors trigger in sequence or out of sequence(animals) I would want different alerts to my home computor with text alerts if not home.

I have gotten SSH and VNC to work with my Pi2 and B+ and just finished reading your post on secure communications which I plan to attempt to implement.

All the above is step one.
Then I have a workshop and chicken coop in the opposite direction to do similar and with usb webcams. Want to add webcams at the first building as well.


So,,, that is why I think I need multiple communicating with one?
Title: Re: wireless connections
Post by: Felix on March 04, 2015, 12:10:16 PM
I'm sorry but I don't see the reason. Any more details why "dual communication" is imperative?
Title: Re: wireless connections
Post by: Steven57 on March 04, 2015, 12:17:01 PM
maybe I'm not saying it correctly. I want 5 motion detectors (some with battery monitoring) to send an alert to a base station based on movement and/or time to change batteries.
Title: Re: wireless connections
Post by: Felix on March 04, 2015, 12:33:33 PM
Ok, maybe i'm totally missing the point but where is the requirement to have 2 radios on 1 motion detector or on your master?
In my mind each would have its own radio, and the master/gateway can then receive from all. Even the nodes can talk between them if needed.
Having 2 radios on 1 Moteino makes no sense if 99% of cases, and complicates matters a whole lot.
Title: Re: wireless connections
Post by: Steven57 on March 04, 2015, 02:33:08 PM
THAT answers my question! I did not know that one transceiver can talk to many transceivers.

So, I would address them as nodes and the master talks to each as needed?
Title: Re: wireless connections
Post by: TomWS on March 04, 2015, 03:23:54 PM
Quote from: Felix on March 04, 2015, 12:33:33 PM
<snip..>
Having 2 radios on 1 Moteino makes no sense if 99% of cases, and complicates matters a whole lot.
To my mind it's 99.999999% of the cases  :D 
And that one fringe case should contact me and, for a very large fee, I'll design it for them...  (probably using two moteinos)

Tom
Title: Re: wireless connections
Post by: Felix on March 04, 2015, 03:28:25 PM
Tom, funny :) (using 2 Moteinos)
When we say they "talk" to each other we really mean they speak the same radio language. To be more specific we should use terms like transmit and receive.
Generally things like motion motes will only transmit (being battery powered, and receive only when waiting for an ACK).
The gateway mote will both receive (all packets addressed to it) and transmit (commands to specific motes and ACKs to requesting motes).
They are all addressed with different IDs (you do that in the code - see example Node and Gateway sketches (https://github.com/LowPowerLab/RFM69/tree/master/Examples) to get started), that's how the gateway can tell the difference where a packet came from.
Title: Re: wireless connections
Post by: Steven57 on March 04, 2015, 03:32:10 PM
Thank you Felix. I said I knew enough to be a hazard.

I haven't found it yet, but can a usb moteino connect direct to Raspi and the Raspi handle the internet connection?

Scratch that. It in your blog that I already read. Duh.
Title: Re: wireless connections
Post by: Felix on March 04, 2015, 03:39:06 PM
Sure. Your MoteinoUSB will generate a new serial port on the Pi which you will have to identify it with the list /dev/tty command. That will generate a list of tty devices on the Pi, your GPIO serial is usually /dev/ttyAMA0 and any other USB generated serial ports will have USB in their name (ie smth like ttyUSB0).
See this thread (http://www.raspberrypi.org/forums/viewtopic.php?f=50&t=31141) for more on that.
Title: Re: wireless connections
Post by: Steven57 on March 04, 2015, 03:41:03 PM
If using the 69w in 915mHz do you think it will have sufficient range/power to go 350' and through one concrete block wall? Or should I mount the receiving end outside the building?
Title: Re: wireless connections
Post by: Felix on March 04, 2015, 06:37:36 PM
Use a HW instead. It should be able to do it.