cancel
Showing results for 
Search instead for 
Did you mean: 

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

AAbdo
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions

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

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

View solution in original post

10 REPLIES 10

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

I want version 1.1.4 of I-CUBE_LRWAN.ZIP. 

Thank you for your help

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
AAbdo
Associate II

Thank you very much.

AAbdo
Associate II

@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.

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
Up vote any posts that you find helpful, it shows what's working..

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
Associate II
SRavn.1
Associate II

@Community member​ ,

Could you please share  I-CUBE-LRWAN 1.2.2?

The newest patch from USI is for 1.2.2.

BR,

Sindre