• AVR Freaks

Hot!LoRaWAN configuration for custom LORA Node with MPLAB setting

Author
GTV31
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2016/04/20 07:51:35
  • Location: 0
  • Status: offline
2017/04/26 14:02:57 (permalink)
0

LoRaWAN configuration for custom LORA Node with MPLAB setting

Hello Everyone,
 
So I have the following situation. I want to design my own LoRaWAN node and to achieve this I use this document from Microchip: LoRaWAN™ Library Plug-in for MPLAB® Code Configurator User’s Guide (http://ww1.microchip.com/downloads/en/DeviceDoc/40001864A.pdf).
However, after all the settings in MPLAB, now I want to upload the example code (provided at the end of the previous document) for simple a LoRaWAN node so I can test my hardware.
When I build the code, it displays that the function LORAWAN_MainLoop(); -> Unable to resolve identifier and of course the the result of the build would be FAIL. Although, if I comment this line, the code build and I can even upload it into the chip, but not the problem would be that there is no data transmission or communication between uController and LoRa Radio, since this function is (according to the document) running the LoRaWAN stack.
 
Therefore, my question would be: Someone came through the same issue and managed to resolve it?
 
Kind regards,
#1
GTV31
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2016/04/20 07:51:35
  • Location: 0
  • Status: offline
Re: LoRaWAN configuration for custom LORA Node with MPLAB setting 2017/04/26 14:51:07 (permalink)
4 (1)
Just found the solution.
 
The problem is in the given example code. 
This one says:
while (1)
{
// Add your application code
LORAWAN_MainLoop();
// All other function calls of the user-defined
// application must be made here
LORAWAN_Send(UNCNF, 2, "LoRa", 4);
}
 
and it should be:
while (1)
{
// Add your application code
LORAWAN_Mainloop();
// All other function calls of the user-defined
// application must be made here
LORAWAN_Send(UNCNF, 2, "LoRa", 4);
}
 
A spelling mistake in the LORAWAN_Mainloop(); , its written with small (l) not capital (L).
 
Thank you for the attention guys. Hope this can help you.
 
#2
usmanasghar
New Member
  • Total Posts : 16
  • Reward points : 0
  • Joined: 2017/03/05 06:32:07
  • Location: 0
  • Status: offline
Re: LoRaWAN configuration for custom LORA Node with MPLAB setting 2017/05/01 05:15:48 (permalink)
0
Hello, I just saw your post and glad that someone else is also looking to use this LORAWAN library. I have LORA mote EU version (http://ww1.microchip.com/downloads/en/DeviceDoc/LoRa%20Mote%20Users%20Guide.pdf).
While going through schematics in the link i provided you is that my PIC controller (PIC 18LF45K50) and LORA module RN2483 dont communicate through SPI interface while in here (http://ww1.microchip.com/downloads/en/DeviceDoc/40001864A.pdf) they are using SPI interface. Could you share which version of LORA mote you have are using. It would be really helpful to me because right now i think this LORAWAN library wont work with current LORA motes. 
 
Thanks in advance 
#3
GTV31
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2016/04/20 07:51:35
  • Location: 0
  • Status: offline
Re: LoRaWAN configuration for custom LORA Node with MPLAB setting 2017/05/02 01:19:34 (permalink)
4 (2)
Dear usmanasghar,
Happy to see that my post is helping you.
However, I am not using any LoRa Mote. I am making my own LoRa module, something like the RN2483. 
The SPI connection that is specified in the document: LoRaWAN™ Library Plug-in for MPLAB® Code Configurator User’s Guide is between a PIC controller and a SX1276 LoRa Chip (https://cdn.instructables.com/F32/S2YS/IEGXQV21/F32S2YSIEGXQV21.LARGE.jpg).  
You can use a SX1276 chip (http://www.hoperf.com/upload/rf/RFM95_96_97_98W.pdf) stand alone to make just a LoRa communication, although you will need the PIC controller in which you will upload the code to manage the LoRaWAN stack, which is the one responsible for achieving a LoRaWAN network.
 
Hope this was helpful.
 
Kind regards.
#4
jayarams
New Member
  • Total Posts : 15
  • Reward points : 0
  • Joined: 2017/08/21 23:21:52
  • Location: 0
  • Status: offline
Re: LoRaWAN configuration for custom LORA Node with MPLAB setting 2017/09/14 03:19:51 (permalink)
0
Hi,
I have following questions,
 
1)if I want to send the sensor data at specific interval to server, where can I modify (Is this after LORAWAN_Mainloop();)
 
2) After modify and compile the code using MPLAB X, how can upload the image or compiled file to RN2483 MOTE board (chip).
I am using DV164140-1 - Evaluation Kit, RN2483 MOTE.
 
I am using MPLAB X v3.15 and problem in loading lorawan stack as described.... Is this right version for the app. development.
 
Thanks,
S.Jayaram
#5
gnm
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2018/01/22 10:56:45
  • Location: 0
  • Status: offline
Re: LoRaWAN configuration for custom LORA Node with MPLAB setting 2018/01/25 12:09:13 (permalink)
0
Hi guys,
I coud program, upload and run the example code in LoRaWAN™ Library Plug-in for MPLAB® Code Configurator User’s Guide. However, I could not find any relation between the pins of the RN2xx3 and the pins of the internal PIC. Then, I am not able to read sensors data nor driving LEDs already present in my mote.
 
Does anyone knows how to acces the peripherics of the RN2xx3 ??
 
 
P/D: Of course, once this example code is loaded into the RN, the pre-loaded demo application of the mote (based on a communication between the MCU PIC18LF45K50 and the RN) does not work any more, and I do not know how to restore the original program to the RN2xx3. So, at this point I have a simple application runing in my RN, but I can't use the sensors and leds (neither other peripherics I could connect in the future), and I can't go back to the original state :(.
#6
Lucas Amarante
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2020/01/28 12:37:06
  • Location: 0
  • Status: offline
Re: LoRaWAN configuration for custom LORA Node with MPLAB setting 2020/01/31 18:15:33 (permalink)
0
Hi gnm!
Have you ever solved your problems?
I have some doubts about the LoRaWAN Stack Library and need help, if possible.


Best regards! 
#7
raphaeldc
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2021/01/05 06:34:06
  • Location: 0
  • Status: offline
Re: LoRaWAN configuration for custom LORA Node with MPLAB setting 2021/01/07 06:27:45 (permalink)
0
Hi. I'm triyng compiler the exemple from LoRaWAN™ LIBRARY PLUG-IN FOR MPLAB® CODE CONFIGURATOR USER’S GUIDE.
I follow all the steps and i got error in this three directives:
void interrupt INTERRUPT_InterruptManager(void);
reentrant void LORAWAN_ReceiveWindow2Callback (uint8_t param);
reentrant void LORAWAN_ReceiveWindow2Callback(uint8_t param)
void interrupt INTERRUPT_InterruptManager (void)
 
I solved this issue like this:
void interrupt INTERRUPT_InterruptManager(void);
Sol.: void INTERRUPT_InterruptManager(void);

reentrant void LORAWAN_ReceiveWindow2Callback (uint8_t param);
Sol.: void LORAWAN_ReceiveWindow2Callback (uint8_t param);
 
reentrant void LORAWAN_ReceiveWindow2Callback(uint8_t param)
Sol.: void LORAWAN_ReceiveWindow2Callback(uint8_t param)

void interrupt INTERRUPT_InterruptManager (void)
Sol.: void INTERRUPT_InterruptManager (void)

After that, the lorawan files were created. So, i copy the exemple MAIN.C FILE DEMO CODE and i get an error. The same problem from first post. I changed the charcacter L to l and get another error. I was commenting until find the function that stopped the error. When i comment this call RADIO_WriteFrequency(RadioConfiguration.fhssNextFrequency()), the code is compiled.

Is someone faced this problem or could give me some help?
I used MPLABX v5.45, MPLAB Code Configurator v3.25, LoRaWAN Library v01.10.00_beta with PIC18F46k22.
#8
raphaeldc
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2021/01/05 06:34:06
  • Location: 0
  • Status: offline
Re: LoRaWAN configuration for custom LORA Node with MPLAB setting 2021/02/25 12:19:39 (permalink)
0
Is someone have faced this issue?
#9
Jump to:
© 2021 APG vNext Commercial Version 4.5