-
Notifications
You must be signed in to change notification settings - Fork 306
Add variant support: Arduino Nesso N1 #1117
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
base: dev
Are you sure you want to change the base?
Conversation
added pyMC_core to meshcore projects mentioned Cisien's meshcoretomqtt fork from Andrew-a-g updated Coding Rate explanation and recommendation updated radio presets and added how to update presets listed in the app
Update faq.md
…t c->push_failures
Fix debug log: use c->extra.room.push_failures instead of c->push_failures
Change source of truth to this repo, remove whitespace
# Conflicts: # docs/payloads.md
|
Thanks for the contribution. Can you please change the base branch from main to dev please. |
The base branch or the branch I'm PRing into? or both? |
The branch you are wanting to merge into. |
Done - but I'll change the main .cpp file to be target.cpp per your review before any merge. Although I notice that because I forked off |
|
Any advice for debugging random reboots on this esp32 platform? the serial logger manages to print "E" as if its about to print "ERROR:" but the board seems to reboot before the full transmission is received so I'm not sure what its erroring on. EDIT: Turns out that output does come through sometimes and its is |
I've been seeing Looking at the datasheet it might be the watchdog timer of the battery charger (i2c address 0x49), register 0x05, bits 5:6, need setting to 0's. I think "ESP-ROM:esp32c6-20220919" is just the boot message (compiled rom bootloader date), so after/as the reboot happened rather than the cause/error. |
|
@tyeth hrmm ok! I'm pretty new to all this - boot reason wasn't something I was aware of: but I'll give it a go - I remember seeing something about that in the code. I've just seen a few of your other commits in other projects - its pretty hard building against a very recently released device, eh? I'm also trying to get a base config for the Nesso N1 in esphome...apparently I am a sucker for punishment. |
|
@webash definitely a sucker for punishment 😁 or more like living on the bleeding edge 🔪 🩸 , but the C6 is well supported. The onboard battery charger doing a watchdog power reset (at 160s) had me for a bit, but it's disabled straight away if you use the m5unified library instead of manually use it. That previous message I updated to mention the register and datasheet. |
|
For anyone interested, here's my example esphome configuration file with most things rigged up: https://github.com/webash/esphome-devices-examples/blob/main/arduino-nesso-n1.example.yaml |
| MESH_DEBUG_PRINTLN("ArduinoNessoN1.begin(): Now high..."); | ||
| digitalWrite(LCD_BACKLIGHT, HIGH); | ||
| digitalWrite(BEEP_PIN, HIGH); | ||
| delay(2000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this delay need to be this long?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely not; this was just for testing to ensure that the device was waking - as without the screen on it wasn't clear that it was. It'll be gone before I intend for anything to be merged.
|
|
||
| ## Road-Map / To-Do | ||
|
|
||
| There are a number of fairly major features in the pipeline, with no particular time-frames attached yet. In very rough chronological order: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please reset the changes to these .md files. Looks like these diffs were inherited from the main branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah; yeah I forked from the main branch; so will see if I can rebase to dev
|
@tyeth thanks for sharing what you did - clearing those appropriate bits seems to have done the trick and no more random reboots! Will test a bit longer before I celebrate too much, but seems good so far. I'll take a look at the review next. |
The Arduino Nesso N1 is a tiny wee device absolutely feature packed, based on ESP32-C6 and SX1262.
ℹ️ Disclaimer: I'm more an infrastructure guy that likes to code, so most of this is a bit hacky and me trying my best from scraps I've found in this repo. I haven't worked in C/C++ for more than a decade (other than random patches to OSS code), and I've only spent a few hours over the last few days. So all feedback completely welcome. Also feel free to do whatever is required to bring this up to scratch, as I'm not precious.
The below was not generated with an LLM, I just like emojis.
✅ Things I've tested and work:
getBattMilliVolts(), I haven't dived deeper to be sure that the percentage is valid❎ Not yet tested:
I haven't been able to reproduce it reliably while in debug mode to see what comes across the serial logger before it dies; more time needed.ToDo: