LowPowerLab Forum

Hardware support => Moteino => Topic started by: gert on May 15, 2017, 10:37:08 PM

Title: 2 Gateway moteinos behaving differently [solved by proper IS_RFM69HW setting]
Post by: gert on May 15, 2017, 10:37:08 PM
Hi All,

I've interchanged 2 moteinos as gateway. (node stayed the same).
One is a plain moteino, the other one a moteino-USB (has 'LoRa' inscribed on the board)
The screen printout from both is different in the 'ACK' statement. The plain moteino says 'ok', the other 'nothing'.
What is the significance of that? And does it need fixing?


Gateway (moteino):
------------------
#[9][2] FLASH_MEM_ID:0x0   [RX_RSSI:-62] - ACK sent.
#[10][2] 1   [RX_RSSI:-62] - ACK sent. Pinging node 2 - ACK...ok!
#[11][2] 12   [RX_RSSI:-62] - ACK sent.
#[12][2] 123   [RX_RSSI:-63] - ACK sent.
#[13][2] 123    [RX_RSSI:-62] - ACK sent. Pinging node 2 - ACK...ok!
#[14][2] 123 A   [RX_RSSI:-62] - ACK sent.
#[15][2] 123 AB   [RX_RSSI:-61] - ACK sent.
#[16][2] 123 ABC   [RX_RSSI:-62] - ACK sent. Pinging node 2 - ACK...ok!
#[17][2] 123 ABCD   [RX_RSSI:-62] - ACK sent.
#[18][2] 123 ABCDE   [RX_RSSI:-62] - ACK sent.
#[19][2] 123 ABCDE   [RX_RSSI:-62] - ACK sent. Pinging node 2 - ACK...ok!


Gateway (moteino-USB 'LoRa')
-----------------------------
#[43][2] FLASH_MEM_ID:0x0   [RX_RSSI:-53] - ACK sent. Pinging node 2 - ACK...nothing
#[44][2] 1   [RX_RSSI:-53] - ACK sent.
#[45][2] 1   [RX_RSSI:-54] - ACK sent.
#[46][2] 12   [RX_RSSI:-53] - ACK sent. Pinging node 2 - ACK...nothing
#[47][2] 123   [RX_RSSI:-53] - ACK sent.
#[48][2] 123    [RX_RSSI:-53] - ACK sent.
#[49][2] 123 A   [RX_RSSI:-53] - ACK sent. Pinging node 2 - ACK...nothing
#[50][2] 123 ABC   [RX_RSSI:-53] - ACK sent.
#[51][2] 123 ABCD   [RX_RSSI:-54] - ACK sent.
#[52][2] 123 ABCDE   [RX_RSSI:-54] - ACK sent. Pinging node 2 - ACK...nothing


Thanks,
Gert
Title: Re: 2 Gateway moteinos behaving differently ?
Post by: Felix on May 16, 2017, 09:41:53 AM
There was a batch of MoteinoUSB with "LoRa" written on them, meaning they take LoRa radios, but also they take RFM69HCW.
So in the end the radios dictates what that Moteino will do. What radios do you have on them? RFM69?
As long as your code settings match the hardware they should behave the same. I believe that was fixed in your other thread.
Title: Re: 2 Gateway moteinos behaving differently ?
Post by: gert on May 21, 2017, 12:18:19 AM
@Felix

Thanks. The other thread was sucessfully closed.

Since then the same code is used for all moteinos. Thus I'm surprised that using the 'plain' moteino and the USB-moteino behave differently when used as gateway.

The missing 'OK' in the case of the 'USB moteino' seems to indicate a problem. Could any of the experts please comment?

This is the both circuit boards in question.

(http://drgert.dyndns.ws:8000/download/Node_Gateway_02.jpg)

I don't recall the exact radio spec from the order. I tried finding the order email, but it does not show the radio spec. Order number is 10150. Can someone identify the radio from the picture? Or is there a way from the code to provide identification?

Thanks,
Gert
Title: Re: 2 Gateway moteinos behaving differently ?
Post by: WhiteHare on May 21, 2017, 08:56:49 AM
The one on the left looks like an RFM69W, whereas the one on the right looks like an RFM69HCW.  So, that may explain the difference regarding the OK's.
Title: Re: 2 Gateway moteinos behaving differently ?
Post by: gert on May 21, 2017, 02:44:32 PM
@WhiteHare

Thanks!

So how do I have to modify the code settings in the  'gateway' ?
see only a line to enable/disable 'HW'.

//#define IS_RFM69HW    //uncomment only for RFM69HW! Leave out if you have RFM69W!

What would I have to set to accommodate RFM69HCW ? Or do I have to buy a different moteino-USB  to match the node?

Thanks,
Gert
Title: Re: 2 Gateway moteinos behaving differently ?
Post by: Felix on May 22, 2017, 06:59:40 AM
Gert,
The HCW is equivalent to HW. The W is equivalent to CW. They are just different in physical layout. Only the xHW will need the IS_RFM69HCW setting.
See the transceiver page for more: https://lowpowerlab.com/guide/moteino/transceivers/
Title: Re: 2 Gateway moteinos behaving differently ?
Post by: gert on May 22, 2017, 11:25:06 AM
@Felix,

Ah yes, I see. Thanks for pointing me to the radios page. It explains the proper settings (IS_RFM69HW) in the code for the RFM69HCW. I will update the code and report the results.

Thanks,
Gert
Title: Re: 2 Gateway moteinos behaving differently ? [SOLVED]
Post by: gert on May 25, 2017, 12:35:31 AM
@Felix & All,

The IS_RFM69HW setting fixed the issue.

Thanks!
Gert