Skip to main content
mibou23
Associate II
Jun 20, 2019 1:23 PM UTC
Solved

Modify Ping-Pong example

Hi guys,

I program an application with a STM32LO-LRWAN1 module who does the connection with a sensor by I2C and i would like to integer my application in the "Ping Pong" example for proving to my boss that the connection between two modules is possible. I tried to do that manually but my method look hard and i have problem with multiples define.

Do you have any advices for simply put the project who only use the stm32 in the "Ping-Pong" projet on Keil uvision 5. Because i don't think that we have the possibility to modifiy the project with CUBEMx.

Is someone has yet done this kind of think or know an other possibility to do that. I appreciate your help.

Thanks

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Jun 20, 2019 5:27 PM UTC

With Keil it is very easy to clone a project, you can duplicate the project directory into a new directory at the same level using cut-n-paste in windows explorer/file manager.

My approach was to make two copies, and made one device the SENDER, and the other the LISTENER. You could cut code to make one a PINGER.

I did this first with a GPS receiver to determine range capabilities, but I have both UART and I2C functionality working.

CubeMX in this context is a waste of time, in my opinion, as the Semtech model being used by ST has a completely different paradigm.

I2C stuff might be present in some of the other examples, or can be pulled from the HAL examples.

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

4 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Jun 20, 2019 5:27 PM UTC

With Keil it is very easy to clone a project, you can duplicate the project directory into a new directory at the same level using cut-n-paste in windows explorer/file manager.

My approach was to make two copies, and made one device the SENDER, and the other the LISTENER. You could cut code to make one a PINGER.

I did this first with a GPS receiver to determine range capabilities, but I have both UART and I2C functionality working.

CubeMX in this context is a waste of time, in my opinion, as the Semtech model being used by ST has a completely different paradigm.

I2C stuff might be present in some of the other examples, or can be pulled from the HAL examples.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
mibou23
mibou23Author
Associate II
Jun 20, 2019 7:23 PM UTC

Thanks for your answer. My program who communicate with my sensor by I2C is done yet so for using ".h" that i previously created with CubeMX, it is a good idea to replace the ".h" files present in the example or it's is better to modify the existing ".h" ? :face_without_mouth:

I don't know the procedure with LoRa to "Send" or "Listen" and the example of "Ping-Pong" is not very good for that. Does it exists examples of how to use the board like a Sender or a Listener ?

Tesla DeLorean
Guru
Jun 20, 2019 8:20 PM UTC

A working understanding of the Ping-Pong application would seem to be a prerequisite here.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
mibou23
mibou23Author
Associate II
Jun 21, 2019 7:59 AM UTC

Ok thank you.

And for putting a project in a other what is the correct method to do that ? I tried many brutal things but i have many multiplied include.

I just want to initialise I2C in the project "Ping-Pong" like i do with my project created with CubeMx.