Page 1 of 1

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

Posted: Thu Nov 02, 2023 8:02 am
by firmware_guy
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.

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

Posted: Fri Nov 03, 2023 7:10 am
by esp-at
could you please provide the AT+GMR, i would like to provide a debug library for you to see what happened.

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

Posted: Fri Nov 03, 2023 7:12 am
by esp-at
and do you have the AT download port logs, does the log have "xx:xx:xx:xx:xx:xx\r\n" output?

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

Posted: Fri Nov 03, 2023 10:01 am
by firmware_guy
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

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

Posted: Mon Nov 06, 2023 6:52 am
by esp-at
i reproduced your issue, let me try to fix it, thanks for your report.

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

Posted: Mon Nov 06, 2023 1:19 pm
by esp-at
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.

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

Posted: Mon Nov 06, 2023 1:34 pm
by firmware_guy
I tried it and it seems to work fine.
Thank you

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

Posted: Tue Nov 07, 2023 1:57 am
by esp-at
thanks for the feedback. this bugfix will sync to esp-at master branch within two weeks, please know.

~

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

Posted: Fri Nov 17, 2023 3:15 am
by esp-at
this issue should be fixed after: https://github.com/espressif/esp-at/com ... c6738a24b1
please know.

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

Posted: Fri Nov 17, 2023 9:22 am
by firmware_guy
Yes, it is fixed.
Thank you.