Search found 427 matches

by PeterR
Fri Jul 10, 2020 4:55 pm
Forum: General Discussion
Topic: Collect sensor data from different task
Replies: 5
Views: 229

Re: Collect sensor data from different task

Hopefully the producer/consumer (queue) comments are clear. The OS will produce a tick signal at the tick interval, say 10 mS. If your tasks runs a simple loop, sample and delay then it is quite possible that two or more of your sampling tasks will be ready to run at the same time, certainly unless ...
by PeterR
Fri Jul 10, 2020 4:09 pm
Forum: General Discussion
Topic: PHY/LAN8710 fault identification
Replies: 2
Views: 102

Re: PHY/LAN8710 fault identification

Thanks. 4.1-beta1 lacks your change but adding does not improve unfortunately.
I did not find your 10mS in the datasheet anywhere.
by PeterR
Thu Jul 09, 2020 6:55 pm
Forum: General Discussion
Topic: Collect sensor data from different task
Replies: 5
Views: 229

Re: Collect sensor data from different task

It seems factually incorrect to say: have 8 task to read 8 sensor i2c run at same time You do not have 8 I2C channels & so you cannot receive 8 sensors at the same time! ;) I would guess that you have one I2C bus and you want to talk to 8 devices. What then is wrong with one task (the sample runner)...
by PeterR
Thu Jul 09, 2020 6:31 pm
Forum: ESP32 IDF
Topic: ESP-IDF SPI Slave Receiver Example - Not receiving whole message.
Replies: 7
Views: 227

Re: ESP-IDF SPI Slave Receiver Example - Not receiving whole message.

Without a detailed review: I would not use the ESP as SPI slave. If you do then you must think clearly about latency. The 7a7a seems to indicate that you only received part of the message which then suggests that you only started the SPI slave transaction after the master had already started transmi...
by PeterR
Thu Jul 09, 2020 5:34 pm
Forum: General Discussion
Topic: Ethernet PHY best practices for low cost design
Replies: 10
Views: 255

Re: Ethernet PHY best practices for low cost design

It is interesting that the EVB uses GPIO0 for all the problems this can cause.
I use GPIO0 so I cannot tell you!
by PeterR
Thu Jul 09, 2020 4:27 pm
Forum: General Discussion
Topic: PHY/LAN8710 fault identification
Replies: 2
Views: 102

PHY/LAN8710 fault identification

I have an issue when occasionally on power up the board will not connect to the Ethernet. esp_restart() does not recover. esp_eth_stop()/esp_eth_start() do not recover. I have not tried recreating the MAC/PHY yet. Board/ESP_EN (which also acts as LAN reset) resolves as does PSU off/on (unless unluck...
by PeterR
Thu Jul 09, 2020 4:03 pm
Forum: General Discussion
Topic: Ethernet PHY best practices for low cost design
Replies: 10
Views: 255

Re: Ethernet PHY best practices for low cost design

You might gain inspiration by looking at the ESP-EVB https://raw.githubusercontent.com/OLIMEX/ESP32-EVB/master/HARDWARE/REV-F/ESP32-EVB_Rev_F.pdf which uses an 8710 Many have used this board. There used to be a few posts about difficulties with the LAN PHY but I have not seen any for a while. You ne...
by PeterR
Thu Jul 09, 2020 11:23 am
Forum: General Discussion
Topic: ESP32 DHCP server lan8720 ethernet interface using arduino SDK
Replies: 5
Views: 206

Re: ESP32 DHCP server lan8720 ethernet interface using arduino SDK

The ESP Ethernet is all open source. Some parts of BT and Wifi might be closed. I don't know about Arduino. If Arduino is based on 3.1 then you will have a lot of work to do - unless you can find an Arduino DHCP server, there tend to be more 3rd party libraries for the Arduino so you might be lucky....
by PeterR
Wed Jul 08, 2020 1:39 pm
Forum: General Discussion
Topic: Reading PHY register
Replies: 1
Views: 144

Reading PHY register

I need to dump the Ethernet's PHY registers (LAN8710) for diagnostics & debug. esp_eth_driver_t contains the element esp_eth_mediator_t mediator which has member phy_reg_read Unfortunately the esp_eth_driver_t type is private. We get the void * cast esp_eth_handle_t. How do I gain access to the PHY ...
by PeterR
Wed Jul 08, 2020 10:46 am
Forum: General Discussion
Topic: ESP32 DHCP server lan8720 ethernet interface using arduino SDK
Replies: 5
Views: 206

Re: ESP32 DHCP server lan8720 ethernet interface using arduino SDK

Depends which version of the IDF you use. DHCP server on wired is available in v4.1-beta1-317 but not earlier versions (well maybe 4.0 but not 3.x). The tcp-ip initialisation interface has changed but other than that it all works. One of my earlier posts has the initialisation code in it. PS The key...

Go to advanced search