cancel
Showing results for 
Search instead for 
Did you mean: 

RF switching on STM32L4XX

Posted on April 02, 2018 at 08:01

Hi 

I want to communicate between two STM32L4 MCU, and interfaced RF on to UARTs.

UART1 -- BLE

UART2 -- XBEE

I want to make a transparent, i mean when there is NO BLE there should be a switch to XBee and the other MCU has to be altered to make a seam less communication. When there is enough RSSI for BLE, XBEE and BLE both has to communicate simultaneously in run time.

My queries : 

a. Does the above scenario can happen in run time?

b. If i make a switch in run time will be there any effect on RFs.

I would like to know a better approach to make a RF switch at run time.

Thanks

Phani 

#rssi #xbee #hal-uart #rf #ble
12 REPLIES 12
Posted on April 02, 2018 at 13:21

Presumably, you are using an external module for BLE, and 

an external module for XBEE?

So you need to study the documentation for those modules to see how to 'activate' and 'de-activate' each one.

a. Does the above scenario can happen in run time?

Yes.

b. If i make a switch in run time will be there any effect on RFs.

You will have to follow the documented procedures for each one regarding connection. disconnection, etc, ...

I would like to know a better approach to make a RF switch at run time.

It's not an RF switch - it's just a choice of which module to use.

Again, you need to 

study the 

documentation

for each module to determine what indication(s) they provide as to whether their link is 'good' or 'usable' or not.
T J
Lead
Posted on April 02, 2018 at 14:36

did you see this chip ? STM32WB

is that similar to your needs ?

https://community.st.com/0D50X00009XkVu3SAF

Posted on April 02, 2018 at 15:05

HI Team,

My idea is to make RF interface on UART 1 and UART 2 on STM32L4. 

And write a on the fly RF switching firmware( Transparent switch so that the other communicating node has the update on the data sending channel).

Is there any sample/ example which gives a basis to start understanding/ write the firmware.

 Thanks

Phanirajkiran

Posted on April 02, 2018 at 15:30

Hi Clive,

Thanks for the quick reply.

Issue is how to make a Radio Scheduler which is the key component of the dynamic multi-protocol switching, which can take the Data into it depending on the Switch between RF which are running on UARTs. 

Thanks,

Phani

Posted on April 02, 2018 at 15:57

Hi Neil,

Thanks for reply. 

To start this assignment the idea behind is same concept '

phones handle switching their network connection between cellular and  WiFi

'.

We want to do this same concept on Firmware STM32, inorder to it we have choosen RF on UART. 

a. external module for the BLE -- YES, HM10.

b. XBEE module - Digi XBEE module which is interfaced on UART.

Thanks

Phani

Posted on April 02, 2018 at 16:20

0690X00000604U6QAI.jpg

Does this above algo suits the RF switch.

Thanks

Phani

Posted on April 02, 2018 at 14:51

Depends what OP meant by 'XBEE'.

XBEE it is a whole product range from Digi - not a single product, and not a single radio protocol:

https://www.digi.com/xbee

 
Posted on April 02, 2018 at 15:21

>>Is there any sample/ example which gives a basis to start understanding/ write the firmware.

What part of the problem?

Programming the UART? Programming the modules? Porting assorted code to the STM32 platform? Merging of the functionality?

These would seem to be basic software development tasks.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on April 02, 2018 at 15:38

As with any project, the key is to start with a high-level understanding, and then break things down into implementable blocks.

You haven't confirmed whether you're using an external module for the BLE, and you haven't answered which particular XBee you're using.

To get a general idea, you could look at how things like phones handle switching their network connection between cellular and  WiFi ...