Hi There all,
I’m running
SWI0 SDK Process: SU:Process Started, version: SLQS04.00.11
on an EM7565 module in a custom linux environment.
Everything seems to run OK, I can start and stop data sessions using the Connection_Manger sample app or my own code based off the SDK developers guide.
But I can’t get an IP address from either the function SLQSGetRuntimeSettings or SLQSWdsSwiPDPRuntimeSettings ( I don’t know if the latter should work anyway; the api just comes back with an error unknown api function, and I don’t know where to get the context ID from other than by inspecting the logs).
But SLQSGetRuntimeSettings should work: I can see the QMI getting the settings (well, calling the function psrwds_getsettings):
Feb 1 13:30:55 user.info controlconnmgrarm: StartUMTSDataSession: umts data session 1059157984 started
Feb 1 13:31:01 user.info controlconnmgrarm: getIPFromNetwork getting settings for 1059157984
Feb 1 13:31:01 user.debug SWI0 SDK Process: QM:qmqmireq/1523: Request: QMI Instance 0
Feb 1 13:31:01 user.debug SWI0 SDK Process: QM:SDK->Mdm: request received : ipcch/svctype/xactionlen/clientnum: 0/0001/11/0
Feb 1 13:31:01 user.debug SWI0 SDK Process: QM:SDK->Mdm: request validated : ipcch/svctype/xactionlen/clientnum: 0/0001/11/0
Feb 1 13:31:01 user.debug SWI0 SDK Process: ~~~~qm_wds_get_instance_id~~~
Feb 1 13:31:01 user.debug SWI0 SDK Process: PID: 0, SIDv4: 1059157984, SIDv6: 0
Feb 1 13:31:01 user.debug SWI0 SDK Process: PID: 1, SIDv4: 0, SIDv6: 0
Feb 1 13:31:01 user.debug SWI0 SDK Process: PID: 2, SIDv4: 0, SIDv6: 0
Feb 1 13:31:01 user.debug SWI0 SDK Process: PID: 3, SIDv4: 0, SIDv6: 0
Feb 1 13:31:01 user.debug SWI0 SDK Process: PID: 4, SIDv4: 0, SIDv6: 0
Feb 1 13:31:01 user.debug SWI0 SDK Process: PID: 5, SIDv4: 0, SIDv6: 0
Feb 1 13:31:01 user.debug SWI0 SDK Process: PID: 6, SIDv4: 0, SIDv6: 0
Feb 1 13:31:01 user.debug SWI0 SDK Process: PID: 7, SIDv4: 0, SIDv6: 0
Feb 1 13:31:01 user.debug SWI0 SDK Process: QM-DCS:SDK<-DCS Resp: ch/Msgid/Msglen/Svctype: 0/0001/0/1
Feb 1 13:31:01 user.debug SWI0 SDK Process: QM:qmqmireq/1523: Request: QMI Instance 0
Feb 1 13:31:01 user.debug SWI0 SDK Process: QM:SDK->Mdm: request received : ipcch/svctype/xactionlen/clientnum: 0/0001/11/0
Feb 1 13:31:01 user.debug SWI0 SDK Process: QM:SDK->Mdm: request validated : ipcch/svctype/xactionlen/clientnum: 0/0001/11/0
Feb 1 13:31:01 user.debug SWI0 SDK Process: psrwds_getsettings:
Feb 1 13:31:01 user.debug SWI0 SDK Process: QM:qmqmireq/1637: WDS Request: Active Client 0, WDS Client 0
Feb 1 13:31:01 user.debug SWI0 SDK Process: USB read: bytes2read = 118, read 118 bytes
Feb 1 13:31:01 user.debug SWI0 SDK Process: QM:SDK<-Mdm Resp: ch/Msgid/Msglen/client: 0/002d/115/0
Feb 1 13:31:01 getIPFromNetwork pProfileName info is null
Feb 1 13:31:01 : getIPFromNetwork pUsername info is null
Feb 1 13:31:01 : getIPFromNetwork pIPFamilyPreference info is null
Feb 1 13:31:01 getIPFromNetwork pTechnology info is null
Feb 1 13:31:01 getIPFromNetwork ip, dns, gateway null
The thing is, I can happily get the IP address using AT commands all day long, but I’m trying to do it through the API.
I’ve tried with different profiles, setting the default profile, and other variations but all without success. I have also tried using an MC7304 module, but with the same results. So this is something to do with the SDK itself or my Linux environment, or something I’ve missed, but I can’t think what it is.
Any help would be appreciated ! Thanks