morransmith / sx127x Goto Github PK
View Code? Open in Web Editor NEWsx1276/7/8/9 library (mirror)
Home Page: https://git.morran.xyz/morran/sx127x
sx1276/7/8/9 library (mirror)
Home Page: https://git.morran.xyz/morran/sx127x
Привет! Я только недавно начал разбираться с LoRa, и твоя либа оказалась самой понятной. Сейчас я пытаюсь "активировать" мой девайс на LoRaWan-сервере методом OTAA, в логах сервера и шлюза я вижу как мой join-reqest, так и join-accept от сервера, однако на девайсе я ответный пакет получить не могу. Подскажи пожалуйста, что нужно делать, чтобы получить ответ от сервера?
В упрощенном виде мой код сейчас работает так:
1 - инициализируем структуры spi, common и т.д. (как в README проекта)
2 - инициализируем трансивер с использованием этих структур (как в README проекта)
3 - формируем join-request пакет
4 - отправляем его посредством sx127x_transmit
5 - включаем прерывания по приему с помощью sx127x_receive_continuous_it
Прерывания от DIO0, 1 и 3 работают, иногда я даже "ловлю" какие-то пакеты в сети, но ответа на join-request получить не могу. Буду очень благодарен за любую помощь. Для удобства можно пообщаться реалтаймно в телеграме, вк или еще где-нибудь.
Hi morransmith. Thank you for publishing your library.
I want to make it work without using interrupts.
My MCU is a STM32F030F4P6. I 'm using Atollic TrueSTUDIO 9.3.0 and STM32CubeMX.
So I want to have some code in the while loop, like in Arduino 's Lora library example:
void loop() {
Serial.print("Sending packet: ");
Serial.println(counter);
// send packet
LoRa.beginPacket();
LoRa.print("hello ");
LoRa.print(counter);
LoRa.endPacket();
counter++;
delay(5000);
}
How can I do this with your library?
Thank you in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.