Search found 34 matches

by teckhaokoh
Fri May 01, 2020 9:31 am
Forum: ESP-IDF
Topic: APSTA Mode - STA connected but not accessible after random period of time
Replies: 5
Views: 6394

APSTA Mode - STA connected but not accessible after random period of time

Hi, I'm running a webserver in esp32 using APSTA mode. As stated in the subject, after it's running for certain period of time, i found that it's not accessible through the STA, but I've checked the connection, it's still connected to my router, and my router still able to see the IP address. I coul...
by teckhaokoh
Wed Apr 22, 2020 3:33 am
Forum: ESP-IDF
Topic: WIFI Task Stack Size
Replies: 1
Views: 3713

WIFI Task Stack Size

As I found that the task can only be allocated using internal memory, thus I would like to know the total task created and the stack size allocated, to know how many task/stack size available if I'm going to add in more tasks. And at the end I found most of them, except that the wifi task implementa...
by teckhaokoh
Wed Nov 27, 2019 6:05 am
Forum: ESP-IDF
Topic: Get UDP destination IP address
Replies: 0
Views: 1741

Get UDP destination IP address

I'm working on an application that running on UDP protocol. I will need to differentiate the type of message whether it's broadcast or unicast. I found that recvmsg() able to get me the IP headers message, which contained the destination IP address, so that I can identify from there. But, I couldn't...
by teckhaokoh
Mon Sep 23, 2019 3:56 am
Forum: ESP-IDF
Topic: esp_http_server session
Replies: 0
Views: 2006

esp_http_server session

Hi, I'm trying to get the http server works with the session control. I'm trying to save a time ticks when I received new connection, using httpd_sess_set_ctx. Then I found that the session data I set will be expired after 5 mins. Is there any guide/hints on how to control the session timeout? I cou...
by teckhaokoh
Fri Aug 16, 2019 6:01 am
Forum: ESP-MDF
Topic: mwifi_write keep getting MDF_ERR_MWIFI_TIMEOUT
Replies: 1
Views: 4366

mwifi_write keep getting MDF_ERR_MWIFI_TIMEOUT

W (2665878) [mwifi, 778]: <MDF_ERR_TIMEOUT> Node failed to send packets, data_flag: 0x32, dest_mac: 30:ae:a4:5a:6d:bd Keep getting the timeout message as above when sending data to parent node. It's able to send at the beginning, then get into this timeout after some time, and will never get back t...
by teckhaokoh
Fri Aug 02, 2019 9:19 am
Forum: ESP-MDF
Topic: Network Tree of Mesh
Replies: 2
Views: 5088

Re: Network Tree of Mesh

Hi teckhaokoh, Every node will have the mac address info of its parent node, so we can finally build the topo tree with this. For example in the ESP-Mesh App, in the page "user" you can find "topology" which will shows the network tree. The ESP-Mesh App can only use bluetooth to scan? I couldn't fi...
by teckhaokoh
Fri Aug 02, 2019 7:42 am
Forum: ESP-MDF
Topic: Network Tree of Mesh
Replies: 2
Views: 5088

Network Tree of Mesh

I know there are API to get the node list of child node and also the routing table.
But do we have something to get the network tree?
If don't have one, does anyone able to build the network tree (like in json format) ?
by teckhaokoh
Wed Oct 11, 2017 2:15 am
Forum: General Discussion
Topic: Set MAC Address
Replies: 5
Views: 16708

Re: Set MAC Address

I'm setting the mac address in the app_main(), and it's the first code to run before I do any other initialization. I started my code as below: void app_main() { printf("set mac : 01:02:03:04:05:06\n"); uint8_t new_mac[8] = {0x01,0x02,0x03,0x04,0x05,0x06}; esp_base_mac_addr_set(new_mac); ... }
by teckhaokoh
Tue Oct 10, 2017 9:00 am
Forum: General Discussion
Topic: Set MAC Address
Replies: 5
Views: 16708

Re: Set MAC Address

Hi, I've tried to set the mac address using esp_base_mac_addr_set(). It seems to be success to write, but my wifi STA keep showing: D (2809) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:EasyIO_RnD@wifi, ssid_len:15 , bssid:10:c3:7b:e1:c7:e8, reason:2 And the AP seems to be down as well, because I don'...
by teckhaokoh
Thu Sep 21, 2017 4:08 am
Forum: General Discussion
Topic: region `dram0_0_seg' overflowed
Replies: 4
Views: 14976

Re: region `dram0_0_seg' overflowed

You can look at build/[your-project-name].map to see what the memory use is. The file is kind-of dense, but it gives your all the info you should need. In your case, dram0.bss is too big, so search for the line that starts with '.dram0.bss'. Here, you'll find all variables that are stashed in this ...