Libelium is offering new technical support channels, to contact with de Technical Support team to solve any issue our doubt please contact with your sales agent or visit our contact site



Post a new topicPost a reply Page 1 of 1   [ 8 posts ]
Author Message
 Post subject: RN2483 downlink data from Gateway never received
PostPosted: Thu Mar 16, 2017 4:02 pm 

Joined: Thu Mar 16, 2017 3:50 pm
Posts: 4
Hi there.
I am using a RN2483 module with a Raspberry PI.
RN module is set in P2P mode (so LoraWAN layer is not used) and I use the sample program to receive packets with no modification 'LoRaWAN_P2P_03_receive_packets.cpp'
Then I use an Adeunis LoraWan demonstrator as test device.
The RN module always receives and displays JOIN REQUEST sent from the Adeunis (as far as it uses the defined frequency 868100000) but never receives the JOIN ACCEPT from the gateway (sent with same frequency and same SF). I am sure that this one is emitted as I can see it in the NS logs and in fact the demonstrator DEL lights from red to green and the session goes on.
Is there a reason to that behavior ??
Thank you
Regards,
PLB


Top
 Profile  
 
 Post subject: Re: RN2483 downlink data from Gateway never received
PostPosted: Fri Mar 17, 2017 2:44 pm 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Hello pololebreton1,
The device in P2P is to communicative with other LoRaWAN device in P2P mode running "LoRaWAN_P2P_02_send_packets".
We never have used an Adeunis device and we do not know how it works. Ensure that the link is correctly configured (see "LoRaWAN_P2P_01_configure_module" example).
Regards.


Top
 Profile  
 
 Post subject: Re: RN2483 downlink data from Gateway never received
PostPosted: Fri Mar 17, 2017 4:10 pm 

Joined: Thu Mar 16, 2017 3:50 pm
Posts: 4
Hello
Thank you for your answer.
I think we misunderstood. It's not the fact of using a Adeunis device. It's the fact that using any LoRaWAN device, I am never able to receive down link frames coming from gateway. I am only able to receive frames coming from other devices. I was wondering why.

Example
1) My device (Adeunis or whatever) sends JOIN REQUEST using 868100000 and SF12
--> the RN2483 in P2P mode receives it and displays the frame
Listening to packets...
--> Packet received packet: 0031465XXXXXXXXXXXXXXXXXXXXXXXXX8F5E125
length: 46

2) The network server reply JOIN ACCEPT using 868100000 and SF12
Mac (hex) : 20cc53ad98XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXd3c7463
--> the RN2483 in P2P mode does not even receive it. Why ??

In the LoRaWAN mode when I try to join the network in OTAA with the RN2483 (after having filled the relevant fields with the expected keys) it works well.

So I know that the radio module is able to receive and deal with the JOIN ACCEPT but
WHY cannot be outputted in P2P mode ???
Thank you


Top
 Profile  
 
 Post subject: Re: RN2483 downlink data from Gateway never received
PostPosted: Mon Mar 20, 2017 9:04 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Hello pololebreton1,

Take a view to our library, there you can see the code of the .joinOTAA() and .joinABP() methods:

Code:
uint8_t arduinoLoRaWAN::joinABP()
{
[..]
    // create "mac join abp" command
    sprintf_P(_command,(char*)pgm_read_word(&(table_LoRaWAN_COMMANDS[7])));
[..]
    //send command and wait for ans
    status = sendCommand(_command, ans1, ans2, ans3, (uint32_t)500);
[..]
}


then you can compare our method with the module command in the AT guide ("mac join" command) page 20:
http://ww1.microchip.com/downloads/en/D ... 01784B.pdf

as you can see we only manage the first response in our method (the accepted join to network response), if you can not see the second response you can freely modify our function, or see the internal _buffer content.

take a view to this post:
viewtopic.php?f=20&t=8947

Regards.


Top
 Profile  
 
 Post subject: Re: RN2483 downlink data from Gateway never received
PostPosted: Tue Mar 21, 2017 11:35 am 

Joined: Thu Mar 16, 2017 3:50 pm
Posts: 4
Hi
Again thank you for the answer
Well I cannot see a second answer in the joinOtaa command in the documentation
The response after the join is only "denied" or "Accepted"
In MAC mode, you cannot spy received packet from the gateway, can you ?

Again here is my issue

This is what I get when using LoRaWAN_09_join_otaa_send_confirmed.cpp (and UART Debug ON)
In this example, device is used in MAC mode.
---------------------------------------------------
[debug] cmd:mac get deveui
[debug] ans:
Device EUI: 00XXXXXXXXXXXXXXXXX
[debug] cmd:mac get devaddr
[debug] ans:
Device Address: 00XXXXX
[debug] cmd:sys get ver
[debug] ans:RN2483
1. Switch ON OK
[debug] cmd:mac join otaa
[debug] ans:ok
[debug] found: accepted
2. Join network OK
[debug] cmd:mac tx cnf 3 0102030405060708090A0B0C0D0E0F
[debug] ans:ok
[debug] found: mac_rx
[debug] found:
[debug] cmd:mac save
[debug] ans:ok
3. Send Confirmed packet OK
----------------------------------------------
Conclusion RN2483 is able to join my network using my keys. This is what I was expecting
But at this point there is no possibility to display the JOIN_ACCEPT packet sent by the gateway.
*** And this is what I want to do ***

So Now I build a JOIN REQUEST packet using my keys and relevant MIC computation and want to send it in P2P Mode.
----------------------------------------------
[debug] cmd:radio tx 0031465XXXXXXXXXXXXXXXXXXXXXXXXXD8
[debug] ans:ok
[debug] found: radio_tx_ok
[debug] cmd:radio set wdt 20000
[debug] ans:ok
[debug] cmd:radio rx 0
[debug] ans:ok
[debug] found: radio_err
Error waiting for packets. error = 2
-----------------------------------------------
Conclusion no packet received.

Looking into gateway logs, I can see clearly that the gateway received my JOIN REQUEST packet and sent me back a JOIN ACCEPT
BUT I am never able to receive it in P2P Mode. WHY ?

To sum up my issue :
Is there a way to display the JOIN ACCEPT sent by the gateway (in any mode I don't care but is there a way ??)

Thank you
Best regards,
Zbb


Top
 Profile  
 
 Post subject: Re: RN2483 downlink data from Gateway never received
PostPosted: Wed Mar 22, 2017 8:58 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Hello pololebreton1,
Quote:
To sum up my issue :
Is there a way to display the JOIN ACCEPT sent by the gateway (in any mode I don't care but is there a way ??)


You only can receive the JOIN ACCEPT in LoRaWAN mode no in P2P mode.

Regards


Top
 Profile  
 
 Post subject: Re: RN2483 downlink data from Gateway never received
PostPosted: Thu Mar 23, 2017 9:16 am 

Joined: Thu Mar 16, 2017 3:50 pm
Posts: 4
Hello
Thank you for the answer but the next question is WHY ?
I cannot be satisfied with that !
The radio is the same so it may be possible to receive it and display it !
Help me to understand please !
Zbb


Top
 Profile  
 
 Post subject: Re: RN2483 downlink data from Gateway never received
PostPosted: Fri Mar 24, 2017 8:53 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Hello pololebreton1,
LoRaWAN in P2P (the same concept that LoRa) and LoRaWAN are two different things/concepts.

LoRaWAN in P2P only uses the Physical Radio Layer to communicate with each other module directly. In this mode you can only communicate directly two modules.

LoRaWAN uses a extra Network/Application Layer that provide the capability to LoRaWAN modules to transmit the information to the could through a LoRaWAN concentrator or gateway. You must register your LoRaWAN module (and LoRaWAN concentrator if you have got your own concentrator) in the worldwide LoRaWAN network through a LoRaWAN provider, then you can access to the backend (Loriot, Actility...) were you can handle your network data.

All the information about LoRa and LoRaWAN specification is provided by LoRa Alliance:
https://www.lora-alliance.org/

Please, take a view to our LoRa/LoRaWAN documentation:
http://www.libelium.com/development/plu ... networking

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 8 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use.