No WiFi connection possible with complex passphrase

Hi there,

I am a glad owner of a brand new Uno R4 WiFi.

Sadly I am not able to connect to my own WiFi network with the exemplary sketch SimpleWebServerWiFi.ino .

What I am Receiving is an BUS error after the connection attempt:
20:51:51.821 -> Bus fault is caused by precise data access violation 20:51:51.954 -> The bus fault occurred address is 724c7856

I think it has to do with my WiFi Passphrase, which contains special chars. I already tried toi escape those with \. This has no effect.

I am also using a WPA 3 Network, but with WPA 2 compat mode. Both should be okay for the ESP32-S3:

Any similar experiences with this ?

What happens when you try a much simpler pass phrase?

I tries to connect then, of course with no effect as it is the wrong passphrase for my Wi-Fi.

But no errors, that's the thing why I am thinking the password string in arduino_secrets.h is causing it. Any suggestions, e.G. special sanitizing ?

Have you considered changing it temporarily ?

Honestly not, as it will crash my Smarthome then.
But there should be a possibility to use ,special characters like ^~*#& and so on in the password, shouldn't it ?
I mean it is in the WPA standard.

I can try a hotspot with my mobile phone though :slight_smile:

UPDATE:
Phone Hotspot works, seems to be passphrase related!

Question is how do I get this now to accept my real passphrase :(be

@facchinm @arduino_team any ideas by chance ?

Change the password on the Smarthome, as well. Use your imagination.

I mean that’s no solution, more a workaround.

The Arduino should accept a valid passphrase with all its chars.

Tested a plain ESP 32 Board in the meantime, works nice there. In the end an Arduino Issue.
Upgraded the WiFi firmware already.

1 Like

Hi, I did test with network settings below with special characters added and with each of the following security settings: WPA2-Personal, WPA2/WPA3-Personal and WPA3-Personal. There was no issue connecting to the IoT cloud.

Hi there I checked this out today again with Firmware Version 0.3.0.
Still seeing a similar issue here.

Bus fault is caused by precise data access violation

23:58:37.150 -> The bus fault occurred address is 724c7856

When I am shortening my passphrase I see now errors. Is there a size limit which is not part of the WPA Standard? e.G. <50 Chars ?

@arduino_team

Or are there some constraints on char combinations like ** *$ $$ !! and so on ?

This is a test setup where you can reproduce the error:

#define SECRET_SSID "TestWifi"
#define SECRET_PASS "!uhZge4v8wFgYP9-s_-DNY3KqNdU.Nmy_DdTjDo-FqtDf3mMhyk"

I have just tried it and NO bus error. Which sketch do you use ?

The Arduino developers are tracking this issue here:

If you have a GitHub account, you can subscribe to that thread to get notifications of any new developments related to this subject:

image

I expect length has an impact, but there is more to it than passphrase only.

The TX buffer from the Renesas to the ESP32 / UNOR4 bridge is defined for 128 bytes.
If the CMD + SSID + passphrase + OTHER?? goes beyond that, it could be the root cause of the issue.

I made a special debug version of the UNOR4bridge on the ESP32. Used the WiFiWebClient-example-sketch and saw the SSID and the complete passphrase mentioned in this topic when trying to perform a connect....and NO bus error or other problems.. but of course not connecting as my network has a different SSID and passphrase. Hence my question about the sketch used.

P.s. The ESP32 WiFi can handle SSID up to 32 characters and passphrase 63 characters. (as by standard) So I don't assume that to be the issue..

1 Like

I'm going with ConnectWithWPA.ino from Examples.

This is what I looked up as well.

Could it be a compiler issue ? I am currently on an Apple Silicon (ARM) device. Maybe the arm compiler messes around here ?

I'm going to ask you to post the full verbose output from a compilation.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Open the "ConnectWithWPA" example, just as you did before.
  2. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  3. Check the box next to "Show verbose output during: ☐ compilation" in the "Preferences" dialog.
  4. Click the "OK" button.
  5. Select Sketch > Verify/Compile from the Arduino IDE menus.
  6. Wait for the compilation to finish.
  7. Right click on the black "Output" panel at the bottom of the Arduino IDE window.
  8. From the context menu, click Copy All.
  9. Open a forum reply here by clicking the "Reply" button.
  10. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  11. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the compilation output into the code block.
  12. Move the cursor outside of the code block markup before you add any additional text to your reply.
  13. Click the "Reply" button to post the output.

In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here:

  1. Open any text editor program.
  2. Paste the copied output into the text editor.
  3. Save the file in .txt format.
  4. Open a forum reply here by clicking the "Reply" button.
  5. Click the "Upload" icon (image) on the post composer toolbar:
    Upload icon on toolbar
    The "Open" dialog will open.
  6. Select the .txt file you saved from the "Open" dialog.
  7. Click the "Open" button.
    The dialog will close.
  8. Click the "Reply" button to publish the post.

Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.

thank you i have the same problem :slight_smile:

I have now used the same sketch, same SSID and Passphrase, and standard UNOR4 bridge 030 (not a debug version) and nothing different. I even changed my network settings for test..... it just works as it should..

19:56:54.860 -> Attempting to connect to WPA SSID: TestWifi
19:57:14.105 -> You're connected to the networkSSID: TestWifi
19:57:14.138 -> BSSID: 41:8F:FB:43:D3:6A
19:57:14.138 -> signal strength (RSSI):-51
19:57:20.610 -> Encryption Type:2
19:57:20.610 ->
19:57:20.742 -> IP Address: 192.168.101.3
19:57:20.742 -> MAC address: DC:54:75:D1:4E:0C
19:57:31.196 -> SSID: TestWifi
19:57:31.229 -> BSSID: 41:8F:FB:43:D3:6A
19:57:31.229 -> signal strength (RSSI):-48
19:57:37.698 -> Encryption Type:2
....

1 Like

Which version of the UNOR4 / Renesas boards library do you use?

The TXbuff in version 1.0.2 used to be 64 bytes, starting 1.0.4 it became 128.

Exactly this was the issue. Updated to 1.0.4. This worked out !

Good to hear !.. but too bad a lot of time was lost. Always try to use the latest version.
The latest version is currently 1.0.5. A lot of other bugs have been solved : Release Release 1.0.5 · arduino/ArduinoCore-renesas · GitHub

2 Likes