Search found 1658 matches

by kolban
Wed Dec 07, 2016 5:01 pm
Forum: ESP32 IDF
Topic: [Solved] Using select system call on a server socket.
Replies: 1
Views: 1339

[Solved] Using select system call on a server socket.

I seem to be having a mystery on the use of the select system call and am wondering if we know of any issues or if anyone has used it without incident? At the high level, I have created a socket, bound it to a port and flagged it to listen for incoming requests. If I then execute an "accept()&q...
by kolban
Wed Dec 07, 2016 3:21 pm
Forum: General Discussion
Topic: where to find esp32 i2c&spi example
Replies: 1
Views: 764

Re: where to find esp32 i2c&spi example

The formal I2C and SPI drivers for ESP32 (ESP-IDF) are not yet available. The ESP32 is a new device to the market and there is some lag between release and finalization of the drivers. In the meantime, you might want to look at the ESP32-Arduino project which does have SPI/I2C support. We should ant...
by kolban
Tue Dec 06, 2016 4:11 pm
Forum: ESP32 IDF
Topic: Housekeeping for rmt channels
Replies: 2
Views: 972

Re: Housekeeping for rmt channels

I think one must assume that the RMT channels are a "shared" resource and any third party libraries that you link with should document what channels they use and how many adjacent channels might be needed. Ideally those could then be configured. There doesn't appear to be a higher level &q...
by kolban
Tue Dec 06, 2016 4:09 pm
Forum: Sample Code
Topic: [Info] WS2812 (NeoPixels) C++ class for ESP32
Replies: 5
Views: 3044

Re: WS2812 (NeoPixels) C++ class for ESP32

My understanding is that the for each RMT channel, there is a buffer that stores the data that will be pushed out by RMT interpretation. Each "item" contains the signal level and how many clock ticks that signal level is to be maintained for. There appear to be 8 buffers available to the R...
by kolban
Tue Dec 06, 2016 4:02 pm
Forum: General Discussion
Topic: where to get AT CMD example?
Replies: 13
Views: 3565

Re: where to get AT CMD example?

The ESP-IDF has an architected console logging mechanism built into it. See the macros and definitions in the supplied <esp_log.h> found with documentation here ... https://github.com/espressif/esp-idf/tree/master/components/log By using these macros, you can log diagnostics to the serial port or ot...
by kolban
Tue Dec 06, 2016 4:00 pm
Forum: General Discussion
Topic: partation table questions
Replies: 9
Views: 3106

Re: partation table questions

The address space of the SPI flash is architected by Espressif. I'm imagining that all addresses south of 0x1 0000 are architected for exclusive use by ESP32 internals ... and you must not use them. I believe address 0x1 0000 onwards is available for your application and data usage. When we run make...
by kolban
Tue Dec 06, 2016 5:26 am
Forum: ESP32 IDF
Topic: Provide sample to update firmware into ESP32
Replies: 19
Views: 5693

Re: Provide sample to update firmware into ESP32

@ESP_igrr With those mechanics understood, now let us think of the nature of "file" to transfer to write into the OTA partition. Imagine I am using the ESP-IDF make system. This produces a binary which I flash to 0x10000 (if memory serves me). Now in the OTA world, if I produce Version1 of...
by kolban
Mon Dec 05, 2016 9:19 pm
Forum: ESP32 Arduino
Topic: Unable to read from BME280
Replies: 24
Views: 10201

Re: Unable to read from BME280

Interestingly, I too am having problems with a similar device ... the BMP180. I tracked it down with a logic analyzer and found that when the code attempts to send two bytes using a: Wire.beginTransaction(); Wire.sendBytes(2, [data]); Wire.endTransaction(); I see 1 byte sent on the wire and sendByte...
by kolban
Mon Dec 05, 2016 7:58 pm
Forum: ESP32 IDF
Topic: Provide sample to update firmware into ESP32
Replies: 19
Views: 5693

Re: Provide sample to update firmware into ESP32

By reading the header file, it seems to me: 1. We call esp_ota_begin() to start the beginning of an OTA image write 2. We receive data that is part of the image 3. We call esp_ota_write() to write the data we just read 4. Go back to 2 while there is more of the image to receive over the network 5. W...
by kolban
Mon Dec 05, 2016 7:44 pm
Forum: ESP32 IDF
Topic: SPI Flash Functions + unaligned access
Replies: 9
Views: 2451

Re: SPI Flash Functions + unaligned access

If I examine the docs for that API call here: http://esp-idf.readthedocs.io/en/latest/api/spi_flash.html#_CPPv221spi_flash_erase_range6size_t6size_t I seem to see that a sector is 4K bytes and that the size of an erase must be multiples of this value. Are you seeing elsewhere a mention of data units...