Search found 12 matches

by Aeronautic
Thu Jul 09, 2020 1:11 pm
Forum: General Discussion
Topic: Switch between Wi-Fi AP and STA
Replies: 0
Views: 30

Switch between Wi-Fi AP and STA

Lastest api has added esp_netif_create_default_wifi_sta() and esp_netif_create_default_wifi_ap() functions.
I am wandering which should I call if I change STA to AP on run time (eg start with STA but when its un available, switch to AP, or start with AP and switch to STA if user set credentials)
by Aeronautic
Wed Feb 12, 2020 9:55 pm
Forum: General Discussion
Topic: Broken SDCard and watchdog triggering
Replies: 2
Views: 750

Re: Broken SDCard and watchdog triggering

Exactly it was the thing that happened, nevertheless I create application that saves lots of data shouldn't trigger watchdog and block everything for broken sector. I am looking for a way to protect such exception
by Aeronautic
Tue Feb 11, 2020 2:33 pm
Forum: General Discussion
Topic: Broken SDCard and watchdog triggering
Replies: 2
Views: 750

Broken SDCard and watchdog triggering

I got one sd card that seems to be broken: cant write anything using computer. Using esp32, card is correctly detected, I am able to read every sector but when writing with sdmmc_write_sectors to some sectors eg. 0x23d, 0x23e, 0x2bd, 0x2be watchdog is triggered: [0;31mE (22102) task_wdt: Task watchd...
by Aeronautic
Sun Feb 09, 2020 1:37 am
Forum: ESP32 IDF
Topic: how to change host name from "espressif" in wifi station mode for esp32
Replies: 2
Views: 1143

Re: how to change host name from "espressif" in wifi station mode for esp32

Code: Select all

tcpip_adapter_set_hostname(TCPIP_ADAPTER_IF_AP, WIFI_MDNS_HOSTNAME);
by Aeronautic
Fri Jan 17, 2020 9:42 pm
Forum: General Discussion
Topic: Need Review of custom PCB design
Replies: 8
Views: 1736

Re: Need Review of custom PCB design

Nope. Think about it more. Take a look how feeder and pi filter is usually placed: attachment. As close as possible, impedance controlled. For hobbiest's board feeder and antenna impedance (so the whole filter) makes NO difference, it WILL WORK THE SAME. However, if your feeder trace will be long (1...
by Aeronautic
Thu Jan 16, 2020 12:10 am
Forum: General Discussion
Topic: Need Review of custom PCB design
Replies: 8
Views: 1736

Re: Need Review of custom PCB design

This board looks ok in generał, but as mentioned before, you could have some catastrophic bugs (no essential caps close to uc, no antenna matching and its feeder impedance control, inaccurate width of power traces) in a general schematic and should post it too. The most essential are small (0603 or ...
by Aeronautic
Tue Jan 14, 2020 12:15 pm
Forum: ESP32 IDF
Topic: SPI DMA assign [CUSTOM SPI DRIVER]
Replies: 1
Views: 355

Re: SPI DMA assign [CUSTOM SPI DRIVER]

The problem was setting DMA channel wrong. Value was 2, not 4, so channel was set for HSPI not VSPI.

Code: Select all

	// Select DMA channel
	DPORT_SET_PERI_REG_BITS(DPORT_SPI_DMA_CHAN_SEL_REG, 3, 1, 4);
by Aeronautic
Tue Jan 14, 2020 12:12 pm
Forum: ESP32 IDF
Topic: SPI Transmit with command phase only affects next rx transmission
Replies: 2
Views: 402

Re: SPI Transmit with command phase only affects next rx transmission

Thanks for your reply. In fact I have found couple of strange errors (eating last bytes, corrupting when multiple devices some full, some half duplex). I decided writing own spi driver that fixed all issues.
by Aeronautic
Wed Jan 08, 2020 3:13 am
Forum: ESP32 IDF
Topic: SPI DMA assign [CUSTOM SPI DRIVER]
Replies: 1
Views: 355

SPI DMA assign [CUSTOM SPI DRIVER]

As I am struggling with enormous amount of problems with esp-idf SPI driver (see my other posts), I am working on custom SPI driver. I cant assign DMA to SPI. Interresting code spippet looks like below: // Configure command phase SPIDEVICE.user.usr_command = (trans->command_bits) ? 1 : 0; SPIDEVICE....
by Aeronautic
Tue Jan 07, 2020 2:35 pm
Forum: ESP32 IDF
Topic: SPI Transmit with command phase only affects next rx transmission
Replies: 2
Views: 402

SPI Transmit with command phase only affects next rx transmission

I've noticed that using SPI transactions with CMD phase only eg: void fram_writeWREN() { spi_transaction_ext_t transaction; memset(&transaction, 0, sizeof(transaction)); transaction.base.cmd = WREN; assert(spi_device_polling_transmit(fram_spi, (spi_transaction_t*) &transaction) == ESP_OK); } affects...

Go to advanced search