sha2017-badge / bpp Goto Github PK
View Code? Open in Web Editor NEWBpp protocol stuff
Bpp protocol stuff
This helps with latency as well as recovery if less than n packets made it into the badge.
senderSendPkt
mishandles the PAD_LENGTH
define if it is not 0. it will malloc a buffer of size (len + 2 * PAD_LENGTH) and memcpy (len + PAD_LENGTH) bytes from the packet, i.e. PAD_LENGTH bytes from behind the buffer. it will then send (len + 2 * PAD_LENGTH) bytes to the network, i.e. the extra data from behind the packet and PAD_LENGTH uninitialized bytes from the malloced ppacket
.
When I start the esp_recv on the 0.0.1 badge, I get:
E (212) wifi: nvs_flash_init failed
W (212) wifi: wifi nvs_open fail ret=4353
E (212) wifi: wifi_init 1324 ret=4353
ESP_ERROR_CHECK failed: esp_err_t 0x1101 at 0x400df6af
0x400df6af: app_main at /home/aengelen/dev/sha/bpp/esp32-recv/main/./main.c:75 (discriminator 1)
Should we disable nvs flash in the wifi configuration or find out why it cannot be initialized?
I'd be neat to be able to test esp32-recv with only 4MB of flash.
I hacked up partitions.csv based on https://dl.espressif.com/doc/esp-idf/latest/api-guides/partition-tables.html to:
nvs, data, nvs, 0x9000, 0x4000
otadata, data, ota, 0xd000, 0x2000
phy_init, data, phy, 0xf000, 0x1000
factory, app, factory, 0x10000, 0x0F0000
ota_0, 0, ota_0, , 1536K
ota_1, 0, ota_1, , 1536K
This seems to be accepted by the bootloader but then nvs_flash_init still fails:
ESP_ERROR_CHECK failed: esp_err_t 0x110d at 0x400df680
0x400df680: app_main at /home/aengelen/dev/sha/bpp/esp32-recv/main/.
/main.c:71 (discriminator 1)
file: "/home/aengelen/dev/sha/bpp/esp32-recv/main/./main.c" line 71
func: app_main
expression: nvs_flash_init()
from nvs.h:
#define ESP_ERR_NVS_NO_FREE_PAGES (ESP_ERR_NVS_BASE + 0x0d) /*!< NVS partition doesn't contain any empty pages. This may happen if NVS partition was truncated. Erase the whole partition and call nvs_flash_init again. */
Should I erase the partition? How?
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.