FWIW, I have successfully implemented the protocol in Java. Turned out that the "request_ack" mentioned in the documentation is never sent, instead the "response" is sent twice! Presently, the responses are not checked for validity, and no error checking is done, more than checking that *something* is received back.
Checked in at github in
my github repository, switch to branch readlinecommander. Class name org.harctoolbox.harchardware.misc.OppoIp.
It will not help the OP asking for a "script" though.