Open NirViaje opened 4 years ago
In root directory of your Vuese project: 1. Run `yarn run build` 2. Run `yarn link` In project that you want to use the libaries: 1. If `@vuese/cli` is not yet installed, add it: `yarn add @vuese/cli` 2. Run `yarn link vuese-monorepo` 3. Navigate to `node_modules/.bin` and open `vuese.cmd` and `vuese` 4. Change any instance of `@vuese` to `vuese-monorepo\packages` in both files To generate the documentation locally, run the vuese binary from `node_modules/.bin` : 1. Run `node_modules\.bin\vuese gen` (cmd) or 1. Run `node_modules/.bin/vuese gen` (powershell)
#### Component Notation 1. [Samples/Components Folder](/samples/components) 2. [Vuese Explorer](https://vuese.github.io/vuese-explorer/) #### Component Documentation 1. [Samples/Docs Folder](/samples/docs)
admin login
乐鑫云端
阿里云物联网平台
ESP32+Arduino快速连接阿里云物联网应用
天猫精灵AliGenie
php cloud server from instructables
网上有rn的封装
20 GPIO, compare to 32 GPIO of esp32 WROOM
Notice2:M5PORT 说明(不同颜色的GROVE端口分别代表不同的功能)
ADC端口
使用AD读取功能:
有关引脚分配和引脚重映射的更多信息,请查阅ESP32数据手册
工具链
esp32_technical_reference_manual_en
Great Docs on everything about esp8266
Xuhongv notes on ESP
Firmware
ESP-Touch
/**
* @brief Set mode of SmartConfig. default normal mode.
*
* @attention 1. Please call it before API esp_smartconfig_start.
* @attention 2. Fast mode have corresponding APP(phone).
* @attention 3. Two mode is compatible.
*
* @param enable false-disable(default); true-enable;
*
* @return
* - ESP_OK: succeed
* - others: fail
*/
esp_err_t esp_smartconfig_fast_mode(bool enable);
//Init WiFi as Station, start SmartConfig
WiFi.mode(WIFI_AP_STA);
esp_smartconfig_fast_mode(true); //with this line, 26821ms to connect successful
WiFi.beginSmartConfig();
当ESP8266以AP方式连接到路由器且运行于Modem-sleep模式时,它会在两次DTIM Beacon间隔内关闭WIFI电路以达到省电效果,在下次Beacon到来前自动唤醒。睡眠时间由路由器的DTIM Beacon时间决定。睡眠的同时ESP8266可以保持与路由器的WI-FI连接,并通路由器接受来自手机或者服务器的交互信息。
一般路由器的DTIM Beacon间隔为100ms~1,000ms
作者:梁睿坤 链接:https://www.jianshu.com/p/8533e5a52890 来源:简书 简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
ESP.deepSleep(20e6); // 20e6 is 20 microseconds
install the toolchain -
ESP32自带独立的低功耗协处理器ULP,平均消耗电流4.7uA
ULP 协处理器的主频是 8MHz, ULP 协处理器在正常工作时,瞬时电流消耗为 1.4 - 2.2 mA 左右。理想的 ULP 协处理器用法是较长的周期性进入 Deep-Sleep 和短暂的醒来工作来换取功耗平衡。 此例子为了演示效果,我们的设定 ULP 协处理器睡眠周期设置为 3 S,醒来工作的周期不足 1ms, 用电流表测得电流值维持在 4.7uA
作者:espressif 来源:CSDN 原文:https://blog.csdn.net/espressif/article/details/78608569 版权声明:本文为博主原创文章,转载请附上博文链接!
The only parts of the chip which can still be powered on are: RTC controller, RTC peripherals (including ULP coprocessor), and RTC memories (slow and fast).
ulp_io_number = rtc_gpio_desc[gpio_num].rtc_num; /* map from GPIO# to RTC_IO# */
The minimum wakeup time represents clock cycles spend by ULP's FSM on internal tasks:
This makes the total of 20 clock cycles or 20/150KHz = ~133us
ULP coprocessor is started by a timer. The timer is started once ulp_run
is called. The timer counts a number of RTC_SLOW_CLK
ticks (by default, produced by an internal 150kHz RC oscillator).
The application can set ULP timer period values (SENS_ULP_CP_SLEEP_CYCx_REG
, x = 0..4) using ulp_set_wakeup_period
function.
TaskHandle_t TaskA, TaskB;
void Task2code(void * pvParameters) {
while(true) {
;
}
}
void setup() {
xTaskCreatePinnedToCore(
Task2code, /* Task function. */
"Task2", /* name of task. */
10000, /* Stack size of task */
NULL, /* parameter of the task */
1, /* priority of the task */
&TaskA, /* Task handle to keep track of created task */
1); /* pin task to core 0 */
}
\.platformio\penv\Scripts> .\pio upgrade
ESP-IDF
和Arduino
库以避免不必要的编译开销 //testinstall esp msys32 package
COM10
or other port in WindowsCtrl+]
.make flash monitor
to start serial monitor after finish compile and upload
idf.py -p PORT flash monitor
Copy example from ESP-IDF, here /esp
is located in /msys32/home/user-name/esp/
cd ~/esp
cp -r $IDF_PATH/examples/get-started/hello_world .
$
~/esp-idf$ git checkout ebdcbe8c60a3b5a228d9e80335d869cc01c527ab
265 cd arduino/
266 git submodule update --init --recursive
267 git log | grep 7df50a9
268 git checkout 7df50a97d17b0953ea01cad0355410a66bd8b8b4
c for esp-idf, cpp for arduino.
Versions need to take care
Web Server = TCP Server + Request header etc
TCP+Web Server/Client, AJAX, etc
AJAX
//fix with
1. python -m pip install --upgrade pip
2. pacman -S mingw-w64-i686-python2-cryptography
HTTP
RFID sensor for temperature, humidity, pressure, etc.
with RFID as User Interface, both analog and switch on/off etc
RFID传感器作为交互界面以及环境感知