ConnectPort X4- how to get cellular WAN IP via RCI?
Looking at the XML responses from mobile related RCI calls, I’ve not been able to find where the WAN IP in use is reported.
Here’s the need: Tests indicate that the mobile_stats RCI response reports call status of “connected…” before IP packets can be sent. It may be that “connected” is a link layer concept, but the modem has to get an IP address from the cellular system, be it dynamic or public/static (the latter is my case). If Python and RCI cannot do it, I’d resort to doing a digicli command and screen-scraping the response (kludge).
The HTML web page displays the WAN IP for cellular… From where does the web server get that?
The alternative might be to send pings until a response is received (under timeout)… but I’ve not found a python 2.4 library supporting ICMP ping.
(edit: I found a Python ping utility- changed getprotocolbyname. Ping works. Still hoping for answer to above). Also… discovered that digicli has a ping command.
Thanks in advance.