Search found 311 matches

by PeterR
Fri Mar 27, 2020 1:59 am
Forum: General Discussion
Topic: C++ programmi ESP-IDF
Replies: 6
Views: 671

Re: C++ programmi ESP-IDF

ESP is right.
The main problems are probably structure intialisation.
Throw an

Code: Select all

#ifdef __cplusplus
extern "C" {
#endif
(Google it) around the sensitive bits.
StackOverflow is probably a better place to get coding support.
by PeterR
Tue Mar 24, 2020 3:36 am
Forum: General Discussion
Topic: netif can block on sendto()
Replies: 3
Views: 877

Re: netif can block on sendto()

Sure, yes. I am looking for some comfort here (have schedules) can you confirm? Its easy to replicate and seems to be strongly linked to AUTOUP and possibly PHY/MAC initialisation. I don't want to dig that deep on a stack & especially as also DHCPS seems broke on assumption of one DHCP per product, ...
by PeterR
Tue Mar 24, 2020 2:59 am
Forum: General Discussion
Topic: C++ programmi ESP-IDF
Replies: 6
Views: 671

Re: C++ programmi ESP-IDF

I am sure that ESP is right. Few other things to keep in mind. ESP driver are 'C' (rightly so). One practical upshot is that structure initilaisation is different in C++ and C. Drivers are heavy on structures so you will have to marshell that interface. You either explicitly initialise structure whi...
by PeterR
Sat Mar 21, 2020 11:33 pm
Forum: General Discussion
Topic: esp32cam
Replies: 7
Views: 958

Re: esp32cam

Seems that you have a code example which saves a CAM image to sdcard? If so then you could convert the example as follows. On interrupt trigger the capture process. You should wake a task which captures rather than capture from ISR. ESP drivers do not generally work well from an ISR. Next use VFS to...
by PeterR
Sat Mar 21, 2020 12:25 am
Forum: General Discussion
Topic: How can i send a .bin file to esp32 through bluetooth?
Replies: 4
Views: 732

Re: How can i send a .bin file to esp32 through bluetooth?

Serial profile may be easiest. Makes it so much easier to test IMHO. How easy would it be to script a file read/bt send vrs some custom protocol? Serial profiles will be well documented. Also it would be a natural hook into the ESP ROM programming routines. Little bit of driver middle & then you wou...
by PeterR
Fri Mar 20, 2020 12:43 pm
Forum: General Discussion
Topic: netif can block on sendto()
Replies: 3
Views: 877

netif can block on sendto()

Using wired Ethernet with DHCPS capabilities: .flags = ESP_NETIF_DHCP_SERVER | ESP_NETIF_FLAG_AUTOUP, Connect to PC via a switch. Switch the switch off. Boot the ESP and start the netif stack in the usual way. Next use sendto() to send some messages (I have attached to the ESP_LOG vprintf() and broa...
by PeterR
Thu Mar 19, 2020 2:39 pm
Forum: General Discussion
Topic: DHCP on ethernet & stability
Replies: 3
Views: 929

Re: DHCP on ethernet & stability

Looking closer at the small worked example. The example was often not working. I had assumed that the example was working because the PC had a leased address. It seems that the PC will remember its last lease rather than use an auto local. Understanding that the DHCP server was not actually working ...
by PeterR
Thu Mar 19, 2020 10:41 am
Forum: General Discussion
Topic: DHCP on ethernet & stability
Replies: 3
Views: 929

Re: DHCP on ethernet & stability

Swapped cable and now works. EDIT: 5 minutes latter no longer works. There do seem to be issue(s) with netif, around AUTOUP, for example sendto() can block. I am guessing that if you have a bad cable then AUTOUP may not work well. If you wait for driver detect then maybe the hardware is in the corre...
by PeterR
Wed Mar 18, 2020 11:10 am
Forum: General Discussion
Topic: DHCP on ethernet & stability
Replies: 3
Views: 929

Re: DHCP on ethernet & stability

.flags = (esp_netif_flags_t)(ESP_NETIF_DHCP_SERVER | ESP_NETIF_FLAG_GARP | ESP_NETIF_FLAG_EVENT_IP_MODIFIED), \ will allow the application to continue. Adding the AUTOUP flag causes the application to hang around 50mS after esp_eth_start() call: .flags = (esp_netif_flags_t)(ESP_NETIF_DHCP_SERVER | ...
by PeterR
Tue Mar 17, 2020 5:46 pm
Forum: General Discussion
Topic: DHCP on ethernet & stability
Replies: 3
Views: 929

DHCP on ethernet & stability

I need a DHCP server on the Ethernet interface. I have used the netif interface to add DHCP in a small worked example but I keep hitting stability issues when upgrading IDF on my application. I am currently running with legacy GNU using toolchain 3.3.1 and IDF v4.0-dev-562-g2b301f53e. This seems qui...

Go to advanced search