wdomski / SX1278-example

Example for STM32 HAL driver for LoRa SX1278 module
MIT License
97 stars 46 forks source link

Mode pin? #3

Closed panosss closed 10 months ago

panosss commented 4 years ago

Hi wdomski. I 'm trying to convert your library for use with an STM32F030F4P6. But I don 't understand what is achieved with setting or reseting the MODE_Pin.

You 're switching from master to slave the Lora module? With which pin of the Lora module should the MODE_Pin be connected? (pin PB2 in your code).

wdomski commented 4 years ago

Hi

The MODE_Pin is only used in the example to choose work mode: master or slave. When you flash a board with the same firmware you can chose the work mode. It can work as a transmitter (master) or as receiver (slave).

Best regards,

Wojciech Domski

domski.pl | blog.domski.pl

W dniu 02.12.2019 o 21:33, panosss pisze:

Hi wdomski. I 'm trying to convert your library for use with an STM32F030F4P6. But I don 't understand what is achieved with setting or reseting the MODE_Pin.

You 're switching from master to slave the Lora module? With which pin of the Lora module should the MODE_Pin be connected? (pin PB2 in your code).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wdomski/SX1278-example/issues/3?email_source=notifications&email_token=ABJ6HDGET2AZMGAKWUNRITLQWVWJPA5CNFSM4JUGVRS2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H5OMGFA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJ6HDAMGM7MG5KBF6WVOGTQWVWJPANCNFSM4JUGVRSQ.

panosss commented 4 years ago

Why didn't you use a variable for this?

wdomski commented 3 years ago

New version of software allows to change the Master/Slave operation. Please give it a try. Also the dev platform has changed to STM32 Nucleo L476RG board, so the switching is easier.

Arnon-jra commented 3 years ago

Hello! how and why to write the output mode pin if mode_pin is an input? that part I didnt understand.. HAL_GPIO_WritePin(MODE_GPIO_Port, MODE_Pin, GPIO_PIN_RESET);

I put 3v3 or gnd to select master or salve mode in mode pin, but the write pin I didint understand thank you!

wdomski commented 3 years ago

You are right! It should be LED pin.

Wojciech Domski

www.domski.pl | www.blog.domski.pl

Dnia 24 września 2021 19:31:41 CEST, Arnon-jra @.***> napisał/a:

Hello! how and why to write the output mode pin if mode_pin is an input? that part I didnt understand.. HAL_GPIO_WritePin(MODE_GPIO_Port, MODE_Pin, GPIO_PIN_RESET);

I put 3v3 or gnd to select master or salve mode in mode pin, but the write pin I didint understand thank you!

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/wdomski/SX1278-example/issues/3#issuecomment-926803195