Skip to main content
AAbdo
Associate II
Apr 2, 2019 5:11 PM UTC
Solved

Is there a patch for the ST Irwan1.2.1 ? Because I didn't find an old version of the STM32CubeExpansion_LRWAN project to apply the available patches

..

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Apr 2, 2019 6:56 PM UTC

https://drive.google.com/open?id=1s6FfDQi7rhOwWhw1iOlF76DH0ag9gM3v

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

10 replies

Tesla DeLorean
Guru
Apr 2, 2019 6:26 PM UTC

What version specifically do you want, I've got a bunch of versions mirrored, and ST doesn't look to provide a "version" option on the download button for the I-CUBE_LRWAN.ZIP

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
AAbdo
AAbdoAuthor
Associate II
Apr 2, 2019 6:41 PM UTC

I want version 1.1.4 of I-CUBE_LRWAN.ZIP. 

Thank you for your help

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Apr 2, 2019 6:56 PM UTC
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
AAbdo
AAbdoAuthor
Associate II
Apr 2, 2019 7:03 PM UTC

Thank you very much.

AAbdo
AAbdoAuthor
Associate II
Apr 2, 2019 10:54 PM UTC

@Community member​ I think i'm missing somthing. I'm using a Nucleo-L073RZ and an I-NUCLEO-LRWAN1 .

I downloaded the End_Node and the At_Master projects after applying the patch of this link https://github.com/USIWP1Module/USI_I-NUCLEO-LRWAN1/tree/master/I-CUBE-LRWAN_patchs/I-CUBE-LRWAN%201.1.4 on the Nucleo-L073RZ board using Keil. But i have nothing on my Raspberry Pi gateway.

Normaly i need to send data at 868.1 MHz with SF7 to the gateway.

I dont know what to do.

Tesla DeLorean
Guru
Apr 3, 2019 12:11 AM UTC

You're going to have to add some debug headers, and instrument the code to understand the situation. You are going to want to start by confirming the radio settings and frequencies.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
AAbdo
AAbdoAuthor
Associate II
Apr 3, 2019 2:07 PM UTC

To apply the patch ( for example the End_Node project) :

1- I add this in sx1272Regs-Lora.h and sx1272Regs-Fsk.h

#define RFLR_PACONFIG_PASELECT_RFO         0x80 // Default

2- Then

#define LORAWAN_DUTYCYCLE_ON            false

#define USE_SEMTECH_DEFAULT_CHANNEL_LINEUP     1

3-After that i modify void SX1272IoDeInit( void ) and void SX1272SetAntSw( uint8_t opMode )

void SX1272IoInit( void )

{

 GPIO_InitTypeDef initStruct={0};

  

 SX1272BoardInit( &BoardCallbacks );

  

 initStruct.Mode = GPIO_MODE_IT_RISING;

 initStruct.Pull = GPIO_PULLDOWN;

 initStruct.Speed = GPIO_SPEED_HIGH;

 HW_GPIO_Init( RADIO_DIO_0_PORT, RADIO_DIO_0_PIN, &initStruct );

 HW_GPIO_Init( RADIO_DIO_1_PORT, RADIO_DIO_1_PIN, &initStruct );

 HW_GPIO_Init( RADIO_DIO_2_PORT, RADIO_DIO_2_PIN, &initStruct );

 HW_GPIO_Init( RADIO_DIO_3_PORT, RADIO_DIO_3_PIN, &initStruct );

/* Initialize I-NUCLEO-LRWAN1 Antenna IO */

initStruct.Mode =GPIO_MODE_OUTPUT_PP;

initStruct.Pull = GPIO_NOPULL;

initStruct.Speed = GPIO_SPEED_HIGH;

HW_GPIO_Init( RADIO_ANT_SWITCH_PORT, RADIO_ANT_SWITCH_PIN, &initStruct );

HW_GPIO_Init( RADIO_ANT2_SWITCH_PORT, RADIO_ANT2_SWITCH_PIN, &initStruct );

}

------------------

void SX1272SetAntSw( uint8_t opMode )

{

  switch( opMode )

  {

  case RFLR_OPMODE_TRANSMITTER:

    SX1272.RxTx = 1;

HW_GPIO_Write( RADIO_ANT_SWITCH_PORT, RADIO_ANT_SWITCH_PIN, 1);

HW_GPIO_Write( RADIO_ANT2_SWITCH_PORT, RADIO_ANT2_SWITCH_PIN, 0);

    break;

  case RFLR_OPMODE_RECEIVER:

  case RFLR_OPMODE_RECEIVER_SINGLE:

  case RFLR_OPMODE_CAD:

  default:

    SX1272.RxTx = 0;

HW_GPIO_Write( RADIO_ANT_SWITCH_PORT, RADIO_ANT_SWITCH_PIN, 0);

HW_GPIO_Write( RADIO_ANT2_SWITCH_PORT, RADIO_ANT2_SWITCH_PIN, 1);

    break;

  }

}

4- And finaly i modify stm32l0xx_hw_conf.h

But when i make #define USARTX_TX_PIN         GPIO_PIN_2; I have this in the Terminal

OTAA

DevEui= 39-30-30-30-6E-36-93-18

AppEui= 01-01-01-01-01-01-01-01

AppKey= 2B 7E 15 16 28 AE D2 A6 AB F7 15 88 09 CF 4F 3C

VERSION: 44041140

txDone

rxDone

txDone

rxDone

txDone

And when i make #define USARTX_TX_PIN         GPIO_PIN_14; I have nothing on the Terminal

In both case my gateway receive nothing.

5-And I want to ask where in the project for example End_Node or AT_Master, i can change the frequency to exactly 868.1 instead of 868

AnTrii
Visitor II
Sep 27, 2019 8:54 AM UTC
SRavn.1
Associate II
Jul 18, 2020 9:28 PM UTC

@Community member​ ,

Could you please share  I-CUBE-LRWAN 1.2.2?

The newest patch from USI is for 1.2.2.

BR,

Sindre

Tesla DeLorean
Guru
Jul 19, 2020 2:13 AM UTC
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..