I have an LTE modem connected to my mcu. It's a simcom7600 modem.
I am trying to find the IP and MAC address of the modem (I need that, so that I can hook up lwip and start communicating to the outside world).
I achieved a few things already:
- basic stuff like reset, attach, activate, ping, etc
- played around with mqtt using AT commands
- set the modem in ppp mode, and switch from/to command mode and back to data mode (ppp).
However, getting the IP address and MAC address seem a more daunting task.
What I have tried is :
AT+CGPADDR=1
Sending command: AT+CGPADDR=1
[CR][NL]+CGPADDR: 1,xxx.xxx.xxx.xxx[CR][NL][CR][NL]OK[CR][NL]
xxx.xxx.xxx.xxx obviously shows a real IP address, I think it's best not to share that online ;-)
Could anybody confirm this is the IP address which is visible to the outside world? Because when I try to ping or trace it, it seems to be unreachable.
For MAC address I found this:
But when I try that, it always errors out.
AT+CWMACADDR?
Sending command: AT+CWMACADDR?
[CR][NL]ERROR[CR][NL]
For what it's worth: I CAN ping from the modem to e.g. google. So I know I am connected.
AT+CPING="www.google.com",1
Sending command: AT+CPING="www.google.com",1
[CR][NL]OK[CR][NL]
[CR][NL]+CPING: 1,216.58.211.100,64,299,255[CR][NL]
[CR][NL]+CPING: 1,216.58.211.100,64,288,255[CR][NL]
[CR][NL]+CPING: 1,216.58.211.100,64,287,255[CR][NL]
[CR][NL]+CPING: 1,216.58.211.100,64,277,255[CR][NL]
[CR][NL]+CPING: 3,4,4,0,277,299,287[CR][NL]
Who can confirm that the approach to obtain my IP address is correct? Who can give me some guidance how to get the modems MAC address?
Many thx in advance!!
AT+CWMACADDR?
