Comments (8)
Hi,
It's not clear to me.
Is this a question, a proposal for a fix or something else?
from lmic-node.
Hi,
I can not do a analogRead, so it's is a fix that needs to be done.
As soon as you use analogRead, it stops transmitting any date on the LoRaWan side.
Thank you
from lmic-node.
I can not do a analogRead
Sounds like a problem you have.
so it's is a fix that needs to be done.
Still unclear. Is the fix in your above example? If so that is not clear at all.
As soon as you use analogRead, it stops transmitting any date on the LoRaWan side.
Apparently there is some conflict between the use of analogRead, the LMIC library and your board.
Your post lacks essential details (e.g. your board, more detailed code).
This also does not sound like a LMIC-node specific issue so I cannot help you with that.
I suggest to use the TTN forum for more help instead.
In case you have a specific fix, I might be able to add it to LMIC-node.
from lmic-node.
As soon as I add a analogRead to LIMC-Node, the issue occurs where it stops sending uplinks, tried it on 3 different boards (TTGO T-Bean V1.1) and the problem resists.
I then took a Adafruit Feather, this preforms the analogRead.
So it seems the problem might be the ESP32.
from lmic-node.
Your post lacks essential details (e.g. your board
TTGO T-Beam v1.0, v1.1
detailed code
Add a analogRead in the section where
// Collect input data.
// For simplicity LMIC-node uses a counter to simulate a sensor.
// The counter is increased automatically by getCounterValue()
// and can be reset with a 'reset counter' command downlink message.
float Vload = analogRead(loadV);
from lmic-node.
I overlooked the board in the title, read it at first but then couldn't find it in the text. 🤦♂️
Hint: Also clearly specify it in the description.
Showing only a few lines of code without its context is not exactly helpful.
Why are you doing analogRead() on GPIO33?
On TTGO T-Beam V1.1 GPIO33 is used for LoRa DIO1. This is defined and clearly documented in the BSF.
(You will not find that information in the T-Beam V1.1 pinout diagram. Documentation for the TTGO boards unfortunately is often poor, lacking and/or contains errors.)
The analogRead on GPIO33 explains your problem. It seems you are shooting in your own foot. 🙊
from lmic-node.
I were making my references to their, LilyGO, board layout, they don't mention on the board layout the LoRa connections. Although I am full aware of the pin mapping in bsf_ttgo_t_beam_v1.h file.
Using analogRead on pin 2 and it works 100%.
PS. I do own a shotgun, I thing both of us used it ;-)
from lmic-node.
I'm glad I was able to help fix your issue.
As expected LMIC-node was not the culprit for your issue.
A lot of preparation went into making LMIC-node work out of the box with its supported boards.
LMIC-node helps prevent others having to go through a steep learning curve first and step into the many possible pitfalls of which poor product documentation from the manufacturer is only one.
from lmic-node.
Related Issues (20)
- Sub-band selection HOT 1
- Definition: _LMIC_CONFIG_PRECONDITIONS_H_ HOT 3
- Event: Uplink not scheduled because TxRx pending issue HOT 4
- How to change Pico SPI channel? HOT 2
- Failing build: multiple definition of `hal_init' HOT 3
- Sparkfun ESP32 WROOM with RFM95W support HOT 1
- USE_DISPLAY Not working TTGO-Lora32 V1.3 HOT 4
- Spreading Factor can't be set HOT 1
- Bootloop with TTGO LoRa32 V2.1.6 board with platform-espressif32 v4.30 and higher HOT 27
- Add support for heltec LoraWAN Wifi OLED board version 3 HOT 3
- rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) - infinite loop bug HOT 3
- Support for STM32l0xx HOT 1
- Support for Dragino Arduino Uno + Dragino LoRa-shield (BSF?) HOT 1
- Error ESP32s + Lilygo T-Highrow lora shield 20191223 HOT 2
- Lilygo TTGO v2.1 Bootloop issue caused by wrong Reset pin
- What does LMIC stand for? Add it to the README HOT 2
- Doesn't build with target platform set to 'nodemcu2' HOT 2
- axp2101 please
- Wrong Pi Pico pinout
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lmic-node.