Skip to main content
AAbdo
Associate II
April 2, 2019
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

  • April 2, 2019
  • 6 replies
  • 2718 views

..

This topic has been closed for replies.

6 replies

Tesla DeLorean
Guru
April 2, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..
AAbdo
AAbdoAuthor
Associate II
April 2, 2019

I want version 1.1.4 of I-CUBE_LRWAN.ZIP. 

Thank you for your help

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
April 2, 2019
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
AAbdo
AAbdoAuthor
Associate II
April 2, 2019

Thank you very much.

AAbdo
AAbdoAuthor
Associate II
April 2, 2019

@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
April 3, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..
AAbdo
AAbdoAuthor
Associate II
April 3, 2019

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
September 27, 2019
SRavn.1
Associate II
July 18, 2020

@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
July 19, 2020
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..