Search found 12 matches

by YutingLin
Thu Jan 17, 2019 9:14 am
Forum: ESP-IDF 中文讨论版
Topic: 請問 MCPWM capture function 相關使用問題!!
Replies: 2
Views: 7009

Re: 請問 MCPWM capture function 相關使用問題!!

無意間在搜尋 LIB 相關內容的時候
發現了一個 system 1us count 的 function
目前使用 B 方案,create 一個 Task Polling 判斷 GPIO 的 High Low 狀態
來達到我想要的需求
提供給大家參考

#include "esp_clk.h"

uint64_t get_rtc_time_us()
{
const uint64_t ticks = rtc_time_get();
const uint32_t cal = esp_clk_slowclk_cal_get();
/* RTC counter result is up to 2 ...
by YutingLin
Thu Jan 17, 2019 3:10 am
Forum: ESP-IDF 中文讨论版
Topic: 請問 MCPWM capture function 相關使用問題!!
Replies: 2
Views: 7009

請問 MCPWM capture function 相關使用問題!!

請問

使用需求是要抓 GPIO Low 訊號的時間加總,需精準到 us
我使用 mcpwm_basic_config_example.c 範例當中 MCPWM_EN_CAPTURE 功能

經實測後發現
雖然是 Enable 成 Falling edge(negative) 觸發
mcpwm_capture_enable(MCPWM_UNIT_0, MCPWM_SELECT_CAP0, MCPWM_NEG_EDGE, 0)

但不管設成 Falling(negative) 還是 Rising edge(positive)

當有正負緣訊號時 isr_handler 都會觸發
不知為何 LIB ...
by YutingLin
Fri Dec 21, 2018 10:02 am
Forum: ESP-IDF 中文讨论版
Topic: Blufi Sample code Error or Bug??
Replies: 3
Views: 9510

Re: Blufi Sample code Error or Bug??

補充測試說明!!

當設定過一次後 Device 斷電後再上電會自動連線 WiFi
才會出現下列錯誤訊息
W (20353) BT_GATT: gatt_if out of range [ = 0]
E (20363) BT_APPL: Unknown connection ID: 0 fail sending notification
W (20363) BT_GATT: gatt_if out of range [ = 0]
E (20373) BT_APPL: Unknown connection ID: 0 fail sending notification
W (20383) BT ...
by YutingLin
Fri Dec 21, 2018 8:49 am
Forum: ESP-IDF 中文讨论版
Topic: Blufi Sample code Error or Bug??
Replies: 3
Views: 9510

Re: Blufi Sample code Error or Bug??

訊息更正!!

出現上訴底層錯誤時
APP 還是可以看的到 device

但是當我連線設定開始重新設定 WiFi 資料時
會出現下方錯誤

I (25417) wifi: state: run -> init (0)
I (25417) wifi: pm stop, total sleep time: 22019630 us / 23572255 us

I (25417) wifi: new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (25437) wifi: flush txq
I (25437) wifi: stop ...
by YutingLin
Fri Dec 21, 2018 7:16 am
Forum: ESP-IDF 中文讨论版
Topic: Blufi Sample code Error or Bug??
Replies: 3
Views: 9510

Blufi Sample code Error or Bug??

請問!!

在測試 Blufi Sample code 時發現一個問題

就是當我 WiFi 基地台設定好並且也連上線之後
會報 BT 底層錯誤,然後 APP 就無法連上 device

I (485) boot: Loaded app from partition at offset 0x10000
I (485) boot: Disabling RNG early entropy source...
I (486) cpu_start: Pro cpu up.
I (489) cpu_start: Application information:
I (494) cpu_start ...
by YutingLin
Wed Dec 19, 2018 10:31 am
Forum: ESP-IDF 中文讨论版
Topic: 請問一下以 Sample code 為框架的一些開發觀念問題!!
Replies: 10
Views: 24439

Re: 請問一下以 Sample code 為框架的一些開發觀念問題!!



這些引用,應該找一下宣告的檔案再 include 進來就可解決
問題是,這樣的開發方式是正確的嗎???


其实,idf中所有模块的功能都是以 component 的形式提供,需要使用某个功能,必须要include对应的头文件,这个对于c语言开发来说都是这样。对于使用来说,也有的开发者会习惯通过IDE来配置路径。
esp-idf 所有相关的文档都可以在这里查看:
https://docs.espressif.com/projects/esp-idf/en/latest/

不知道您有什么推荐的建议?


不好意思,因為我對這樣的開發平台不是很孰悉,所以如題目上所說 ...
by YutingLin
Wed Dec 19, 2018 6:08 am
Forum: ESP-IDF 中文讨论版
Topic: 請問一下以 Sample code 為框架的一些開發觀念問題!!
Replies: 10
Views: 24439

Re: 請問一下以 Sample code 為框架的一些開發觀念問題!!


Hi YutingLin

Yes, If you want to use esp_http_client you need to include "esp_http_client.h".
Similarly to other libraries, you need to include the header file before use. This is easy to see in the examples.


Hi Tuanpm

So I understand that if I want to do integrated development, I have to ...
by YutingLin
Wed Dec 19, 2018 1:31 am
Forum: ESP-IDF 中文讨论版
Topic: 請問一下以 Sample code 為框架的一些開發觀念問題!!
Replies: 10
Views: 24439

Re: 請問一下以 Sample code 為框架的一些開發觀念問題!!


Hi YutingLing,

Could you please provide the error logs after you #include "esp_http_client.h" and compile success?


Hi Tuanpm :

I am having trouble with the ESP32 development framework.I currently use the Blufi smaple code framework to develop my product.But I also need to develop HTTP data ...
by YutingLin
Tue Dec 18, 2018 9:38 am
Forum: ESP-IDF 中文讨论版
Topic: 請問一下以 Sample code 為框架的一些開發觀念問題!!
Replies: 10
Views: 24439

Re: 請問一下以 Sample code 為框架的一些開發觀念問題!!


Hi YutingLing,

Could you please provide the error logs after you #include "esp_http_client.h" and compile success?


Hi tuanpm :

#include "esp_http_client.h" 之後還有的錯誤
C:/msys32/home/Yuting/esp/blufi/main/blufi_example_main.c:266:33: error: 'howsmyssl_com_root_cert_pem_start' undeclared (first ...
by YutingLin
Tue Dec 18, 2018 5:28 am
Forum: ESP-IDF 中文讨论版
Topic: 請問一下以 Sample code 為框架的一些開發觀念問題!!
Replies: 10
Views: 24439

請問一下以 Sample code 為框架的一些開發觀念問題!!

各位版大好!!

小弟初次接觸這樣的開發系統跟套件
所以還有很多觀念不清楚的地方請多多包涵

我們公司目前想使用 ESP32 開發一個家用偵測系統
會將偵測資料上傳到雲端
以我們公司的產品開發應用
很自然就會選用 blufi (BLE+WiFi) 的 Sample code 框架
開發環境已經建好

在 blufi sample code 的框架當中
只做到可透過手機一個 APP BLE 介面
設定 device 要連線的 WiFi 主機名稱跟密碼
到目前測試都 OK


(另外請問這 Android 的 Test APP 有 source code 可提供參考嗎 ...

Go to advanced search