Error when try to set the MAC address of the ESP32 Ethernet

firmware_guy
Posts: 12
Joined: Fri Oct 13, 2023 1:09 pm

Error when try to set the MAC address of the ESP32 Ethernet

Postby firmware_guy » Thu Nov 02, 2023 8:02 am

I have a board configured to work with ethernet, wifi and bluetooth. So far so good, but I can't change the Ethernet MAC address. On command AT+CIPETHMAC=<"mac"> I get ERROR.
The read command (AT+CIPETHMAC) works without a problem.
I would like to be able to change the MAC address at any time with a command, if anyone knows a reason why it can't be changed, or maybe has an idea how to make a new "custom" command for the change, I'd be grateful if you could share your opinion.
Thank you.

esp-at
Posts: 200
Joined: Mon May 09, 2022 3:00 am

Re: Error when try to set the MAC address of the ESP32 Ethernet

Postby esp-at » Fri Nov 03, 2023 7:10 am

could you please provide the AT+GMR, i would like to provide a debug library for you to see what happened.

esp-at
Posts: 200
Joined: Mon May 09, 2022 3:00 am

Re: Error when try to set the MAC address of the ESP32 Ethernet

Postby esp-at » Fri Nov 03, 2023 7:12 am

and do you have the AT download port logs, does the log have "xx:xx:xx:xx:xx:xx\r\n" output?

firmware_guy
Posts: 12
Joined: Fri Oct 13, 2023 1:09 pm

Re: Error when try to set the MAC address of the ESP32 Ethernet

Postby firmware_guy » Fri Nov 03, 2023 10:01 am

Hello, thank for your answer.
Here is a AT+GMR answer:

Code: Select all

AT+GMR
AT version:3.3.0.0-dev(s-d5269eb - ESP32 - Sep 19 2023 03:00:47)
SDK version:v5.0.2-376-g24b9d38a24-dirty
compile time(34be80ff):Nov  2 2023 11:29:47
Bin version:v3.2.0.0(MY-PICO)
OK
I have config logs like this:
Menuconfig -> Component config -> Log output -> Default log verbosity (Debug)
Menuconfig -> Component config -> Log output -> Maximum log verbosity (Same as default)
... and receive a lot of debug messages when start the module.
But when i send AT+CIPETHMAC="1a:f:35:98:d4:7b" didn't receive any. There is only AT response like this

Code: Select all

AT+CIPETHMAC="1a:fe:35:98:d4:7b"\r\n\r\nERROR

esp-at
Posts: 200
Joined: Mon May 09, 2022 3:00 am

Re: Error when try to set the MAC address of the ESP32 Ethernet

Postby esp-at » Mon Nov 06, 2023 6:52 am

i reproduced your issue, let me try to fix it, thanks for your report.

esp-at
Posts: 200
Joined: Mon May 09, 2022 3:00 am

Re: Error when try to set the MAC address of the ESP32 Ethernet

Postby esp-at » Mon Nov 06, 2023 1:19 pm

i did a bugfix for it, could you please have a try.
> use latest master branch and replace components/at/lib/ library with the attachment.
Attachments
libespat.zip
(2.42 MiB) Downloaded 1252 times

firmware_guy
Posts: 12
Joined: Fri Oct 13, 2023 1:09 pm

Re: Error when try to set the MAC address of the ESP32 Ethernet

Postby firmware_guy » Mon Nov 06, 2023 1:34 pm

I tried it and it seems to work fine.
Thank you

esp-at
Posts: 200
Joined: Mon May 09, 2022 3:00 am

Re: Error when try to set the MAC address of the ESP32 Ethernet

Postby esp-at » Tue Nov 07, 2023 1:57 am

thanks for the feedback. this bugfix will sync to esp-at master branch within two weeks, please know.

~

esp-at
Posts: 200
Joined: Mon May 09, 2022 3:00 am

Re: Error when try to set the MAC address of the ESP32 Ethernet

Postby esp-at » Fri Nov 17, 2023 3:15 am

this issue should be fixed after: https://github.com/espressif/esp-at/com ... c6738a24b1
please know.

firmware_guy
Posts: 12
Joined: Fri Oct 13, 2023 1:09 pm

Re: Error when try to set the MAC address of the ESP32 Ethernet

Postby firmware_guy » Fri Nov 17, 2023 9:22 am

Yes, it is fixed.
Thank you.

Who is online

Users browsing this forum: No registered users and 48 guests