New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Declaring different parameters for multiple nodes #13
Comments
#8 (comment) i am using an ESP32, please let me know about the above using your code since its similar to mine only the pinouts differ. |
I don't have LoRa devices at my sides so you can modify lora.py slightly for yourself so that the SX1276 class can accept new parameters. Lines 5, 104, 106 and 109 are interesting to you. This modification would only take you minutes. |
Sure. I was unsure whether two SX1276 class can function simultaneously. i mean to use two LoRa modules with different parameters on the same MCU. will get it done and post. |
Actually, there will be two instances of the same SX1276 class, which takes different modulation parameters during the initialization. Each instance has unique Pin specification and radio wave modulation parameters. |
lora1 = SX1276(RST_Pin1, CS_Pin1, SPI_CH, SCK_Pin1, MOSI_Pin1, MISO_Pin1, DIO0_Pin1, DIO1_Pin1, LoRa_id, channelsHopping, Bandwidth, SF, CR ) should i be calling the function like this after this i'll remove the register mapped dictionary so in is this right? |
Let's say we want to set Coding Rate to 4/5 and 4/8, so we need made the following changes to lora.py
following changes to receiver/receiver_1.py
and following changes to receiver/receiver_2.py
|
Thanks a lot! I'll try it on my setup asap. |
Out of curiosity, may I know what is your grade, university student? high schooler? |
I am university undergrad student in ECE. I wanted to explore a new technology hoping to use it for my university projects and i found your repo. |
Since you are not a high schooler anymore, I would assume supportive information is better than actual code. ^_^ It is really cool to study engineering. |
True. I sorted out the code class SX1276: |
is it possible to store the received data. it usually gets printed in the console. should i be altering the brd_packet_handler? |
#8 (comment)
is there a way i could set two different spreading factor and bandwidth for two LoRa modules operating on same MCU? I mean when SF 8 500khz for one LoRa and SF 10 and BW 125khz for another. is it possible?
The text was updated successfully, but these errors were encountered: