Skip to content
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

feat(Variants): Add Arduino libraries for Lora 4G Module and Node Wifi o… #10402

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Bharat-Pi
Copy link

…f BharatPi boards variant.

Description of Change

This Pull Request add support to three new hardware on the market using ESP32 modules, Bharat Pi Node Wifi , Bharat Pi A7672s 4G and Bharat Pi LoRa modules. Links to the hardware is provided below

Bharat Pi Node Wifi
https://bharatpi.net/product/bharat-pi-node-wifi/

Bharat Pi A7672s 4G Board
https://bharatpi.net/product/bharat-pi-4g-lte-module-with-esp32-simcom-a7672-with-gps/

Bharat Pi LoRa boards with Indian Frequency
https://bharatpi.net/product/bharat-pi-lora-module-with-esp32-lora868mhz-transreceiver-with-esp32-arduino-compatible/

These boards are used by Students, Tinkerers across 100s of different colleges and universities and we are connected with the Espressif to launch these boards.

Tests scenarios

We have tested these changes on a Bharat Pi boards using the Arduino IDE and the ESP32 core with 4MB, 8MB and 16MB flash versions of ESP32.
We have verified that the defined pins correspond to the correct hardware pins on the board.
We tested the samples codes and libraries of our code and example codes.
You can see our test codes in this page
https://github.com/Bharat-Pi/iot-projects

Related links

This is a support package for new variant
https://github.com/Bharat-Pi/iot-projects
https://bharatpi.net/product/bharat-pi-node-wifi/
https://bharatpi.net/product/bharat-pi-4g-lte-module-with-esp32-simcom-a7672-with-gps/
https://bharatpi.net/product/bharat-pi-lora-module-with-esp32-lora868mhz-transreceiver-with-esp32-arduino-compatible/

Copy link
Contributor

github-actions bot commented Oct 2, 2024

Warnings
⚠️ Please consider squashing your 7 commits (simplifying branch history).

👋 Hello Bharat-Pi, we appreciate your contribution to this project!


Click to see more instructions ...


This automated output is generated by the PR linter DangerJS, which checks if your Pull Request meets the project's requirements and helps you fix potential issues.

DangerJS is triggered with each push event to a Pull Request and modify the contents of this comment.

Please consider the following:
- Danger mainly focuses on the PR structure and formatting and can't understand the meaning behind your code or changes.
- Danger is not a substitute for human code reviews; it's still important to request a code review from your colleagues.
- Resolve all warnings (⚠️ ) before requesting a review from human reviewers - they will appreciate it.
- To manually retry these Danger checks, please navigate to the Actions tab and re-run last Danger workflow.

Review and merge process you can expect ...


We do welcome contributions in the form of bug reports, feature requests and pull requests.

1. An internal issue has been created for the PR, we assign it to the relevant engineer.
2. They review the PR and either approve it or ask you for changes or clarifications.
3. Once the GitHub PR is approved we do the final review, collect approvals from core owners and make sure all the automated tests are passing.
- At this point we may do some adjustments to the proposed change, or extend it by adding tests or documentation.
4. If the change is approved and passes the tests it is merged into the default branch.

Generated by 🚫 dangerJS against 7464749

@Bharat-Pi Bharat-Pi changed the title feat(esp32): Add Arduino libraries for Lora 4G Module and Node Wifi o… feat(Variants): Add Arduino libraries for Lora 4G Module and Node Wifi o… Oct 2, 2024
Copy link
Member

@P-R-O-C-H-Y P-R-O-C-H-Y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Bharat-Pi PTAL on my comments.
As you are using 4MB Flash chip, please remove other options and unusable partitions for all the boards. Thanks, otherwise its looking good.

boards.txt Show resolved Hide resolved
boards.txt Outdated
Comment on lines 2909 to 2913
BharatPi-Node-Wifi.menu.FlashSize.8M=8MB (64Mb)
BharatPi-Node-Wifi.menu.FlashSize.8M.build.flash_size=8MB
BharatPi-Node-Wifi.menu.FlashSize.8M.build.partitions=default_8MB
BharatPi-Node-Wifi.menu.FlashSize.16M=16MB (128Mb)
BharatPi-Node-Wifi.menu.FlashSize.16M.build.flash_size=16MB
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove those as the board is made with 4MB flash chip

Suggested change
BharatPi-Node-Wifi.menu.FlashSize.8M=8MB (64Mb)
BharatPi-Node-Wifi.menu.FlashSize.8M.build.flash_size=8MB
BharatPi-Node-Wifi.menu.FlashSize.8M.build.partitions=default_8MB
BharatPi-Node-Wifi.menu.FlashSize.16M=16MB (128Mb)
BharatPi-Node-Wifi.menu.FlashSize.16M.build.flash_size=16MB

BharatPi-Node-Wifi.build.loop_core=
BharatPi-Node-Wifi.build.event_core=

BharatPi-Node-Wifi.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also go through all partition schemes and remove those that are not for 4MB Flash size.

boards.txt Show resolved Hide resolved
boards.txt Outdated
Comment on lines 3067 to 3071
BharatPi-A7672S-4G.menu.FlashSize.8M=8MB (64Mb)
BharatPi-A7672S-4G.menu.FlashSize.8M.build.flash_size=8MB
BharatPi-A7672S-4G.menu.FlashSize.8M.build.partitions=default_8MB
BharatPi-A7672S-4G.menu.FlashSize.16M=16MB (128Mb)
BharatPi-A7672S-4G.menu.FlashSize.16M.build.flash_size=16MB
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here:

Suggested change
BharatPi-A7672S-4G.menu.FlashSize.8M=8MB (64Mb)
BharatPi-A7672S-4G.menu.FlashSize.8M.build.flash_size=8MB
BharatPi-A7672S-4G.menu.FlashSize.8M.build.partitions=default_8MB
BharatPi-A7672S-4G.menu.FlashSize.16M=16MB (128Mb)
BharatPi-A7672S-4G.menu.FlashSize.16M.build.flash_size=16MB

BharatPi-LoRa.build.mcu=esp32
BharatPi-LoRa.build.core=esp32
BharatPi-LoRa.build.variant=BharatPi-LoRa
BharatPi-LoRa.build.board=ESP32_WROOM_DA
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here:

Suggested change
BharatPi-LoRa.build.board=ESP32_WROOM_DA
BharatPi-LoRa.build.board=BHARATPI_LORA

boards.txt Outdated
Comment on lines 3225 to 3229
BharatPi-LoRa.menu.FlashSize.8M=8MB (64Mb)
BharatPi-LoRa.menu.FlashSize.8M.build.flash_size=8MB
BharatPi-LoRa.menu.FlashSize.8M.build.partitions=default_8MB
BharatPi-LoRa.menu.FlashSize.16M=16MB (128Mb)
BharatPi-LoRa.menu.FlashSize.16M.build.flash_size=16MB
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it also uses 4MB flash please remove those options and remove the unusable partitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants