Wifi / Bluetooth Problems with custom Board

pathob
Posts: 7
Joined: Tue Oct 11, 2016 8:08 am

Wifi / Bluetooth Problems with custom Board

Postby pathob » Thu Mar 01, 2018 12:08 pm

Hi,

we have developed a custom board based on the ESP32 (ESP32D0WDQ5, revision 0) and are facing major problems with Wifi and Bluetooth. We are not able to connect to a station or to create an access point at all. The only thing that is working is scanning for networks. For example, this project (https://github.com/VALERE91/ESP32_WifiScan) is working on our boards and shows better RSSI values than other working development boards like Nano32. Bluetooth does not seem to work at all.

We are using a ceramic antenna that we have already used on many other custom boards. We are quite sure that antenna impedance matching has been done right. We are using 40 MHz crystals that are running slightly slower (39.996 MHz). We measured the noise on the supply voltage and it is comparable to the noise of the Nano32. We are using external memory with 1.8 V and 32 Mbit (MX25U3235FM2I-10G), the external RAM (LY68S3200SLT) is currently disabled. The external RTC crystal was not working and is currently disabled.

Is there anything that we might have forgotten? Have you any ideas what we can test why Wifi / Bluetooth is not working?

Thank you in adavance for your responses!

Edit:

I added verbose logs for working and failing boards. The code can be found here https://github.com/pathob/esp32-connect-example
Attachments
working.txt
(14.16 KiB) Downloaded 1217 times
failing.txt
(16.29 KiB) Downloaded 1331 times

pathob
Posts: 7
Joined: Tue Oct 11, 2016 8:08 am

Re: Wifi / Bluetooth Problems with custom Board

Postby pathob » Tue Mar 13, 2018 5:43 pm

No suggestions?

BrucePerens
Posts: 5
Joined: Mon Mar 05, 2018 4:33 am

Re: Wifi / Bluetooth Problems with custom Board

Postby BrucePerens » Tue Mar 13, 2018 7:50 pm

I'd suggest you start by taking a look with a spectrum analyzer connected to a nearby antenna, just to make sure you have WiFi on the right frequency and at a reasonable amplitude.

Lucas.Hutchinson
Posts: 79
Joined: Tue Apr 26, 2016 5:10 am

Re: Wifi / Bluetooth Problems with custom Board

Postby Lucas.Hutchinson » Tue Mar 13, 2018 8:13 pm

Check that you have a full ground plane underneath the crystal.
We has a similar problem with the debug uart lines going under the crystal.

Also try contacting espressif directly via email. Their hardware support team is great and really helpful.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Wifi / Bluetooth Problems with custom Board

Postby ESP_Angus » Wed Mar 14, 2018 4:20 am

Hi pathob,

Sorry for the slow reply.
pathob wrote:We are using 40 MHz crystals that are running slightly slower (39.996 MHz).
This is most likely the problem. The relevant document is the ESP32 Hardware Design Guidelines (available from the documents page), section 2.1.4 "Crystal Oscillator" which specifies +/-10ppm. It looks like your crystal is out by 4kHz, ie 100ppm, before considering any relevant tolerances.

I would guess that you can scan but not associate because the ESP32 is being a little more liberal in what it accepts as a valid WiFi frame than the router which it is trying to associate with.

pathob
Posts: 7
Joined: Tue Oct 11, 2016 8:08 am

Re: Wifi / Bluetooth Problems with custom Board

Postby pathob » Thu Mar 15, 2018 11:11 am

Thanks for your replies!

Yes, we already checked the frequency on a spectrum analyzer and it looked good.

And yes, we have a full ground plane under the crystal.

And today, I removed the 40 MHz crystal and soldered a 26 MHz crystal taken from an ESP-01 on the board. Now, even scanning did not work at all. Of course, I changed the main crystal frequency in menuconfig. This is really weird...

Any further suggestions what we should check? Is it possible that we received faulty chips?

JimmyPedersen
Posts: 21
Joined: Sun Nov 15, 2015 4:14 am

Re: Wifi / Bluetooth Problems with custom Board

Postby JimmyPedersen » Thu Mar 15, 2018 2:51 pm

Just guessing but can it be a power supply issue?
Takes a lot more power to connect to an AP than to just scan for them.
Are you sure you can supply enough power to the ESP? Do you have sufficient decoupling next to the power pins?
Good luck
Jimmy

Who is online

Users browsing this forum: Bing [Bot] and 301 guests