Gateway/node send/receive problem [solved]

Started by ammomammal, November 22, 2015, 02:08:36 AM

ammomammal

Hello, sorry for being a beginner but i cant get two moteinos to talk to each other. they are both RFM69HW (with frequency of 915)and one has a transmitter.  I used the normal code with the frequency tweaks but i cant get it to work. Any suggestions?

TomWS

Quote from: ammomammal on November 22, 2015, 02:08:36 AM
Hello, sorry for being a beginner but i cant get two moteinos to talk to each other. they are both RFM69HW (with frequency of 915)and one has a transmitter.  I used the normal code with the frequency tweaks but i cant get it to work. Any suggestions?
The line I emphasized is a curious statement.  RFM69HW are transceivers, meaning that they have both a receiver and a transmitter so I do not understand what you mean when you say 'one has a transmitter'.

Also, did you run the Node & Gateway examples in the RFM69 library? (Hint: there is only one correct answer to this question)

If you did run the examples and they work, then post the code that doesn't work and we'll look at it.

Tom

ammomammal

i ran the code from the RFM69 library and it didn't work. the code is attached. Thanks for helping!

ammomammal

Quote from: ammomammal on November 22, 2015, 02:08:36 AM
Hello, sorry for being a beginner but i cant get two moteinos to talk to each other. they are both RFM69HW (with frequency of 915)and one has a transmitter.  I used the normal code with the frequency tweaks but i cant get it to work. Any suggestions?
oh and i forgot, i have two boards, one is RFM69HW and the other has no transceiver.

dale.s

The radios are needed on both end (the transceivers).  Think of them like cell phones, if you have one, but the person you are calling dosnt, nothing will happen.  Every node needs the radio, regardless of if you intend to transmit or receive or both.

ammomammal

Quote from: dale.s on November 22, 2015, 02:17:28 PM
The radios are needed on both end (the transceivers).  Think of them like cell phones, if you have one, but the person you are calling dosnt, nothing will happen.  Every node needs the radio, regardless of if you intend to transmit or receive or both.
I tried to do it with both transceivers but it still didn't work. i get the message "SPI Flash Init FAIL". Thank you for the suggestion.

syrinxtech

Are you possibly confusing the radio (RFM69HW) with the optional 4MB flash chip?  It is entirely possible that you only purchased one of the two Moteino's with a flash chip.  That would certainly explain the error message when the code attempts to initialize the flash chip.  Try commenting out the flash chip initialization code on the unit without a flash chip and see how it goes from there.

It is also entirely possible that you purchased two Moteino's, one without a radio.  But, as it has already been pointed out, this won't work for hopefully obvious reasons.


ammomammal

Quote from: syrinxtech on November 22, 2015, 07:00:32 PM
Are you possibly confusing the radio (RFM69HW) with the optional 4MB flash chip?  It is entirely possible that you only purchased one of the two Moteino's with a flash chip.  That would certainly explain the error message when the code attempts to initialize the flash chip.  Try commenting out the flash chip initialization code on the unit without a flash chip and see how it goes from there.

It is also entirely possible that you purchased two Moteino's, one without a radio.  But, as it has already been pointed out, this won't work for hopefully obvious reasons.



where can i find the initialization code?
Also the Transmission works but i just can't receive it. 

Felix

Ok here's what you need:
2 moteinos, each with a transceiver soldered correctly on the bottom.
If you go with RFM69 transceivers you will need to load a sketch on each, for a "gateway" moteino load this Gateway sketch, for a "node" moteino load this Node sketch.
Make sure you adjust the settings in each sketch to match the transceiver specifications (frequency, and whether it's HW or not).
Ignore the FLASH Fail message, it has nothing to do with the radios.
That's it, it has to work, it's almost fool proof.

ammomammal

Quote from: Felix on November 23, 2015, 07:42:28 AM
Ok here's what you need:
2 moteinos, each with a transceiver soldered correctly on the bottom.
If you go with RFM69 transceivers you will need to load a sketch on each, for a "gateway" moteino load this Gateway sketch, for a "node" moteino load this Node sketch.
Make sure you adjust the settings in each sketch to match the transceiver specifications (frequency, and whether it's HW or not).
Ignore the FLASH Fail message, it has nothing to do with the radios.
That's it, it has to work, it's almost fool proof.
Thank you so much! it works now.