[Logo] Anarduino and HopeRF Community Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics     [Groups] Back to home page 
[Register] Register / 
[Login] Login 
LoRa on RF95W or RF96 chip ?  XML
Forum Index » Anarduino
Author Message
d00m



Joined: 19/10/2015 17:21:10
Messages: 32
Offline

Hello,

I've ordered two of MW with LoRa - LoRa RF95W 915Mhz
but I got two MW with chip RF96 - so I supposed there was some mistake while my order was shipped.
anyway - I want to check this modules and lookif for some examples how to send some data and receive it.
also I need to know which antennas should I use.

Any help will be very helpful for me.
Thank you all!

This message was edited 1 time. Last update was at 27/10/2015 10:33:07

d00m



Joined: 19/10/2015 17:21:10
Messages: 32
Offline

UPD:

I thought if I have RF96 chip then I have 433Mhz freq.
But I was wrong, here is explanation. I've found it in this topic: http://forum.anarduino.com/posts/list/37.page


in RH_RF95 Class Reference of RadioHead library
http://www.airspayce.com/mikem/arduino/RadioHead/classRH__RF95.html
we have member function - printRegisters ()
http://www.airspayce.com/mikem/arduino/RadioHead/classRH__RF95.html#af82a441a5946b538f60f31e727009750
so we can read all MW chip registers.
Then we have header file - RH_RF95.h
http://www.airspayce.com/mikem/arduino/RadioHead/RH__RF95_8h_source.html
where we can see which regiters we need to check - 6, 7 and 8:

53 #define RH_RF95_REG_06_FRF_MSB 0x06
54 #define RH_RF95_REG_07_FRF_MID 0x07
55 #define RH_RF95_REG_08_FRF_LSB 0x08

I've read registers from my chip, just add something like this in example code from RadioHead for LoRa - rf95_client:



so my registers is:

6: E4
7: C0
8: 0

then we need to do do some calculation:

E4C000 in decimal is 14991360
then we need 14991360 multiply on 61.035 (freq resolution) == 914997657.6 Hz or 914.9976576 ~915MHz

So my chip works on 915MHz


d00m



Joined: 19/10/2015 17:21:10
Messages: 32
Offline

It is really strange.

Today I try to use next example code from RadioHead Library - rf96_reliable_datagram_client (*server)
and I see that on one MW registers 6, 7 and 8 are CHANGED to values - 6C, 80 and 0 which means that this MW now works on 433MHz!

What the ... ?
Why these values has changed ???
d00m



Joined: 19/10/2015 17:21:10
Messages: 32
Offline

ok, got it - I realized that I use different version of libs for client and for server.

for Client I use libs from Moteino site - ver.1.6, for server - last version from RadioHead site, ver 1.8

and what we see in RH_RF95.cpp files?

setFrequency(915.0); moteino 1.6
and
setFrequency(434.0); radiohead 1.8

great..

the big question now - which frequency is native for my MW ?
d00m



Joined: 19/10/2015 17:21:10
Messages: 32
Offline

http://forum.anarduino.com/posts/list/37.page#2837
 
Forum Index » Anarduino
Go to:   
Powered by JForum 2.1.9 © JForum Team