QCQMI - Getting the linux iface

Hey,

I’m using the Linux QMI sdk with the GobiNet and GobiSerial. I’m able to create a data session and if I run:
~ip addr add [THE IP I GET FROM THE API] dev [THE IFACE I SEE IN THE IFCONFIG]

I can send ping and everything seems fine.
Is there a way to programmatically find the Linux iface that related to the qcqmi I’m using?

I can’t find anything documented about it or any example.

(Im using mc7455 with raw-ip)

do you see anything useful with the following command?

ls /sys/bus/usb/devices/*.8/net/

I can see the interfaces, however, how can I know the which qcqmi they represents ?

Is there any API function for that?

You mean you have many qcqmi port in your system?
Do you see any useful information in dmesg?

I have multiple modems connected to my system.

I need somehow to create a Linux interface using the SDK

I want to ping google without any terminal commands or human intervention.

Do you have any code example that does this with Sierra sdk?

How about using udhcpc tool (or dhclient tool)with -i option?
Btw, you can use ping command with -i option to specify which network interface you want to use?