ElectronicCats / Beelan-LoRaWAN

A LoRaWAN library for compatible arduino board
https://www.beelan.mx
MIT License
189 stars 77 forks source link

Dragino Shield + TTI v3 + Class C Downlink #49

Closed gowthamrajg88 closed 3 years ago

gowthamrajg88 commented 3 years ago

Hi, I am currently working on Dragino LoRa Shield with TTI v3 in Class C in which we need to implement a simple uplink & downlink in our existing project in Indian frequency band (IN865). Since we are using Indian frequency to communicate, we included Indian frequency settings in the library and the below is observed in THE THINGS INDUSTRIES v3 (TTI v3 – Network Server),

1) After included the Indian frequency (IN865), we are able to send the uplink messages for ABP (CLASS A & CLASS C) & OTAA (CLASS A) only 7 frequencies out of 8 frequencies. a. Frequencies mentioned below in terms of Hz, i. 865062500 ii. 865402500 iii. 865602500 iv. 865985000 v. 866185000 vi. 866385000 vii. 866585000 viii. 866785000 2) We are not receiving the downlink messages for ABP (CLASS A & CLASS C) and while giving confirmed downlink for OTAA (CLASS A), we couldn’t see the acknowledgment from the node so it is keep on confirming the downlink for every uplink in the network server. 3) We saw the updated library last week and we tested the same, but we are facing same issues as above. 4) We need to understand the LoRaWAN version used in this library. Because sometimes MAC & PHY version could mismatch & lead these kind of issues. 5) Also we need to know the below queries, a. Have you tested the above scenarios at your end? If so, what network server you people used for your testing? b. While testing, did you people receive the downlinks in both RX1 & RX2 receiver windows? c. Is there any development going for OTAA - CLASS C? & for other functionalities or improvisation is going? d. Did we missed any configurations/settings? We have attached the modified library for your reference. Kindly give us your support/inputs for our further development.

Expecting your support for our development and thanks in advance!

supersunil commented 3 years ago

Hi Gowtham,

Have you worked on Indian band frequencies do you have the any example code to work in IN865 band ? can you guide to implement IN865 band initialization ?

gowthamrajg88 commented 3 years ago

Hi Gowtham,

Have you worked on Indian band frequencies do you have the any example code to work in IN865 band ? can you guide to implement IN865 band initialization ?

Hi Sunil, As of now we are using LMIC Library. That is good for Class A functionality for uplink and downlink. And also trying to work with Beelan Library still it is not fully functional. Have the above mentioned issues. If they solve it then Beelan Library will sure a better solution for all. As of now you can follow this tutorial given in the description of this Youtube link. https://www.youtube.com/watch?v=eZN3WzNbHnk&t=2s. In this video he will guide how to customize the library for Indian Band.

sabas1080 commented 3 years ago

Hi, we have tested the solution to this problem "Dowlink", help us to test

gowthamrajg88 commented 3 years ago

Hi, we have tested the solution to this problem "Dowlink", help us to test

Hi @sabas1080 Yes we can test that.

gowthamrajg88 commented 3 years ago

Hi, we have tested the solution to this problem "Dowlink", help us to test

Hi I have tested the pin mapping as per Dragino Arduino Shield with arduino uno by changing \Beelan-LoRaWAN\examples\class-C-ABP\class_c_ABP\class_c_ABP.ino as below

LoRaWAN Keys as per TTI v3 registered with LoRaWAN version MAC V1.0.3 and

const sRFM_pins RFM_pins = { .CS = 10, .RST = 9, .DIO0 = 2, .DIO1 = 6, .DIO2 = 7, .DIO5 = -1, };

and added Indian frequency in RFM95.cpp

elif defined(IN_865)

static const PROGMEM unsigned char LoRa_Frequency[9][3] = {//[865 - 867] MHz { 0xD8, 0x44, 0x24 }, //Channel [0], 865.0625 MHz / 61.035 Hz = 14173220 = 0xD84424 { 0xD8, 0x59, 0xE7 }, //Channel [1], 865.4025 MHz / 61.035 Hz = 14178791 = 0xD859E7 { 0xD8, 0x66, 0xB4 }, //Channel [2], 865.6025 MHz / 61.035 Hz = 14182068 = 0xD866B4 { 0xD8, 0x7F, 0x2F }, //Channel [3], 865.9850 MHz / 61.035 Hz = 14188335 = 0xD87F2F { 0xD8, 0x8B, 0xFB }, //Channel [4], 866.1850 MHz / 61.035 Hz = 14191611 = 0xD88BFB { 0xD8, 0x98, 0xC8 }, //Channel [5], 866.3850 MHz / 61.035 Hz = 14194888 = 0xD898C8 { 0xD8, 0xA5, 0x95 }, //Channel [6], 866.5850 MHz / 61.035 Hz = 14198165 = 0xD8A595 { 0xD8, 0xB2, 0x62 }, //Channel [7], 866.7850 MHz / 61.035 Hz = 14201442 = 0xD8B262 { 0xD8, 0xA3, 0x57 }, // RX2 Receive channel 866.550 MHz / 61.035 Hz = 14197591 = 0xD8A357 };

But the result getting is as follows in arduino serial monitor

Start.. Sending: Counter-0 Start.. Sending: Counter-0 Start.. Sending: Counter-0 Start.. Sending: Counter-0 Start.. Sending: Counter-0 Start.. Sending: Counter-0 Start.. Sending: Counter-0 Start..

The device not joined in network server and it is found unseen. Could you please check on this?

supersunil commented 3 years ago

Hi, we have tested the solution to this problem "Dowlink", help us to test

@sabas1080 - Hope you're good man. I've configured CLASS A OTAA in IN865 band to uplink and sent upto 200 bytes in a single payload. The problem is I can't able receive any acknowledgement from the server upon successful data sent. Also, I need help on the "Downlink" - which you've mentioned you've do testing.

supersunil commented 3 years ago

@gowthamrajg88 - I'm counting your help on the same man

Hi, we have tested the solution to this problem "Dowlink", help us to test

@sabas1080 - Hope you're good man. I've configured CLASS A OTAA in IN865 band to uplink and sent upto 200 bytes in a single payload. The problem is I can't able receive any acknowledgement from the server upon successful data sent. Also, I need help on the "Downlink" - which you've mentioned you've do testing.

gowthamrajg88 commented 3 years ago

Hi, we have tested the solution to this problem "Dowlink", help us to test

@sabas1080 - Hope you're good man. I've configured CLASS A OTAA in IN865 band to uplink and sent upto 200 bytes in a single payload. The problem is I can't able receive any acknowledgement from the server upon successful data sent. Also, I need help on the "Downlink" - which you've mentioned you've do testing.

@supersunil Have you changed any frequency settings in RFM95.cpp as per my previous comments with @sabas1080 or in default it will accept the IN865 Band? If you have changed the frequency settings could you please share that changes done to match with IN865 band.

RFM95.txt

sabas1080 commented 3 years ago

@gowthamrajg88 @supersunil we continue working, our tests still do not work completely in class C

wero1414 commented 3 years ago

Hi! @gowthamrajg88 and @supersunil i started the PR #58 to fix all the downlink timming problems, any help is welcome

gowthamrajg88 commented 3 years ago

Hi! @gowthamrajg88 and @supersunil i started the PR #58 to fix all the downlink timming problems, any help is welcome

Yes we are also facing this issue. Uplink is working fine but downlink is not proper.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.