Search found 285 matches

by PeterR
Thu Feb 20, 2020 6:47 pm
Forum: General Discussion
Topic: trying to get ethernet to serve as DHCP server
Replies: 2
Views: 1505

Re: trying to get ethernet to serve as DHCP server

I needed to upgrade to IDF 4.1 to get DHCP on ethernet EDIT with ESP api. Only just given an address to my PC and have been diverted to another job. Not bedded/tested fully yet. See my post. I will tidy some code & post but basically when you create the netif with DHCP capability (& auto up) it star...
by PeterR
Thu Feb 20, 2020 12:53 am
Forum: General Discussion
Topic: Unable to receive data through Uart above 120 bytes
Replies: 1
Views: 114

Re: Unable to receive data through Uart above 120 bytes

How did you initialise the UART? How often do you get data from the UART?

I send 1000's of bytes up/down the UART so this issue seems related to how you setup your UART.
Post a MVE. Using PC and serial port its a few lines with a putty script/instruction.
by PeterR
Thu Feb 20, 2020 12:38 am
Forum: General Discussion
Topic: How to transmit NULL character through uart in esp-idf 3.3
Replies: 2
Views: 161

Re: How to transmit NULL character through uart in esp-idf 3.3

fwrite(). You cannot printf() a string with NULLs. A printf() string is null terminated! First null & boom! I am 99% sure stdio (EDIT: must be stdout) is attached to the idf/monitor UART so fwrite() will be cool. EDIT: PS I assume that you are attempting UART access using printf(). The basic UART ro...
by PeterR
Thu Feb 20, 2020 12:27 am
Forum: General Discussion
Topic: Myriad of compilation problems arising when switching from .c to .cpp
Replies: 2
Views: 130

Re: Myriad of compilation problems arising when switching from .c to .cpp

I think the main new errors will be structure initialisation? A lot of the esp device initialisation code is rooted in 'C' and in C++ structure out of order initialisation etc changes will not be tolerated! Try wraping that sort of code in 'extern "C" {' Wrapping target stuff into simple files (whic...
by PeterR
Wed Feb 19, 2020 11:58 pm
Forum: General Discussion
Topic: ESP32 Reliaibility
Replies: 3
Views: 892

Re: ESP32 Reliaibility

Do you mean transient failures or permanent? AFAIK the ESP does not have ECC memory. It very much depends on what defines a MTBF failure. Each culture will have their stereotype of a man who might pave their driveway only to find that the driveway subsides and the man is no where to be seen. I don't...
by PeterR
Wed Feb 19, 2020 6:37 pm
Forum: ESP32 IDF
Topic: "unexpected spi flash error code:101"
Replies: 17
Views: 830

Re: "unexpected spi flash error code:101"

Yes, 50K is about right for the initialisation call. You can reduce the number of 'static' buffers in menuconfig. I would be interested in ESP's answers though. If you read menuconfig Wifi buffer's help then there are both static & dynamic buffers. As I read it your init has allocated some static bu...
by PeterR
Wed Feb 19, 2020 2:40 pm
Forum: General Discussion
Topic: DHCP server on ethernet and netif
Replies: 1
Views: 120

Re: DHCP server on ethernet and netif

Think I have got it! Complicated though as its layer on layer with quite similar names.

The trick is that you must stop the DHCP server before assigning an IP address.
The server is automatically started.

I will try and factor and post something simple.
by PeterR
Wed Feb 19, 2020 1:14 pm
Forum: General Discussion
Topic: esp-idf httpd ethernet webserver performance is slow
Replies: 10
Views: 1571

Re: esp-idf httpd ethernet webserver performance is slow

I used the old school 'fs_data' FLASH based file system (there is a copy in the lwip httpd apps directory). Create a virtual ESP32 file system. As this is a read only file system you only need fopen(), fread(), fclose() (unless your file server adds more which it shouldn't). AFAIK the problem is wit...
by PeterR
Tue Feb 18, 2020 4:51 pm
Forum: General Discussion
Topic: DHCP server on ethernet and netif
Replies: 1
Views: 120

DHCP server on ethernet and netif

How do I enable DHCP server on ethernet and in general step past netif default settings? I have successfully initialise Ethernet using netif with ESP_NETIF_DEFAULT_ETH(). Everything works fine, I receieve an IP address etc. I then created my own ESP_NETIF_DHCPS_ETH structure which is as ESP_NETIF_DE...
by PeterR
Mon Feb 17, 2020 7:59 pm
Forum: General Discussion
Topic: ESP32 RAM Allocation breakdown
Replies: 2
Views: 333

Re: ESP32 RAM Allocation breakdown

It is complicated & no, I have not found a reliable guide. The 520K headline is; IRAM, DRAM (some of which may also be stolen as IRAM), Cache, RTC Fast & RTC slow memory. I believe that we have 320K (ish) of DRAM and some of that may be allocated as IRAM (but practically does not seem to be). For da...

Go to advanced search