On the MangoH red board, have connected sim and able to make a call and use data connection. Also to the same board, connected talon Wifi module and able to get the wlan0 up.
This whole setup is connected to Android based hardware which will be accessing sim and well as wifi. The Android is the master which will initiate all the commands for enabling and disabling cellular nw as well as wifi.
For the Cellular network, Android Ril Integration Guide 4117325 was followed. And able to successfully get cellular connectivity. So all the mangoh usb ports enumerate as USB modem ports.
For the Wifi, wrote a atServer app at the MangoH board side which will receive at cmds from Android and perform Wifi operations. For this used raw port, enabled using USBcomp=9014D. Able to get this port up on PC and run custom at commands.
Used GobiSerial.c on Android platform and able to get this port working
Below are the issues currently facing.
When GobiSerial.c file is used for the raw Port, the USB modem ports for cellular communication is broken. For cellular communication sierra.c file is used. How to enable both serial and usb modem ports on Android like it happens on PC(Ubuntu PC).
Both rmnet and wlan0 are accessed using usb0 interface from Android. Will there be any dhcpc issues ? How to resolve this? If dhcpcd_usb0 is up and running then, the cellular network data is not comming up.
the RIL is hardcoded to use particular /dev/ttyUSB port, if you enable raw port, of course the RIL will not work. You need to shut down NMEA port in this case.
"Both rmnet and wlan0 are accessed using usb0 interface from Android. " -> don’t quite understand this one.
If you use RIL driver, only one interface will be used to be data connection. From \AndroidFS\system\vendor\bin\init.dhcpcd, I believe this interface should be wwan0.
Is the usb0 here meaning ECM interface?
If i disable NMEA port, enable raw Port, without any driver changes, RIL and raw port will work ? Will check, bcoz if i disabled NMEA the ril libs had issues. Will recheck once.
With RIL driver which interface is used for data connection ? in the init.dhcpcd the interface is wwan0.
usb0 on Android is the ecm interface of MangoH red board.
is the value 90109 correct ?
Disabling the NMEA, the Android board is not able to get the radio signals.
I get only interface #0 and #3. Can you let me know what these interfaces are ?
Logs :
4>[ 25.925945] usb 1-1.3: config 1 has no interface number 7
<6>[ 25.938591] usb 1-1.3: New USB device found, idVendor=1199, idProduct=68c0
<6>[ 25.938602] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6>[ 25.938609] usb 1-1.3: Product: Sierra Wireless WP7608
<6>[ 25.938615] usb 1-1.3: Manufacturer: Sierra Wireless, Incorporated
<6>[ 25.938622] usb 1-1.3: SerialNumber: XG81428546071017
<7>[ 25.953582] usb 1-1.3: sierra_probe
<7>[ 25.953592] usb 1-1.3: Ignoring blacklisted interface #16
<7>[ 25.983012] usb 1-1.3: sierra_probe
<7>[ 25.983024] usb 1-1.3: sierra_calc_num_ports
<6>[ 25.983032] sierra 1-1.3:1.0: Sierra USB modem converter detected
<7>[ 25.983047] usb 1-1.3: sierra_startup
<7>[ 25.983056] usb 1-1.3: Memory usage (urbs) interface #0, in=4, out=4
<6>[ 25.983063] usb 1-1.3: APM supported, enabling autosuspend.
<6>[ 25.984037] usb 1-1.3: Sierra USB modem converter now attached to ttyUSB0
<7>[ 25.984618] usb 1-1.3: sierra_probe
<7>[ 25.984627] usb 1-1.3: sierra_calc_num_ports
<6>[ 25.984634] sierra 1-1.3:1.3: Sierra USB modem converter detected
<7>[ 25.984650] usb 1-1.3: sierra_startup
<7>[ 25.984659] usb 1-1.3: Memory usage (urbs) interface #3, in=8, out=64
<6>[ 25.984685] usb 1-1.3: APM supported, enabling autosuspend.
<6>[ 25.985618] usb 1-1.3: Sierra USB modem converter now attached to ttyUSB1
<6>[ 25.998543] GobiNet 1-1.3:1.8 wwan0: register ‘GobiNet’ at usb-msm_hsusb_host-1.3, GobiNet Ethernet Device, a6:95:cb:09:10:1b
<6>[ 25.998860] USB Speed : USB 2.0
<6>[ 26.006245] cdc_ether 1-1.3:1.19 usb0: register
Interface 16 and 5 are ignored. 16 is audio while 5 is raw port. Which are blacklisted in the driver.
the Android board is not able to get the radio signals still.
Logs :
<6>[ 32.247959] usb 1-1.4: New USB device found, idVendor=1199, idProduct=68c0
<6>[ 32.247971] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6>[ 32.247978] usb 1-1.4: Product: Sierra Wireless WP7608
<6>[ 32.247985] usb 1-1.4: Manufacturer: Sierra Wireless, Incorporated
<6>[ 32.247992] usb 1-1.4: SerialNumber: XG81428546071017
<7>[ 32.261608] usb 1-1.4: sierra_probe
<7>[ 32.261619] usb 1-1.4: Ignoring blacklisted interface #16
<7>[ 32.286864] usb 1-1.4: sierra_probe
<7>[ 32.286877] usb 1-1.4: sierra_calc_num_ports
<6>[ 32.286885] sierra 1-1.4:1.0: Sierra USB modem converter detected
<7>[ 32.286904] usb 1-1.4: sierra_startup
<7>[ 32.286914] usb 1-1.4: Memory usage (urbs) interface #0, in=4, out=4
<6>[ 32.286921] usb 1-1.4: APM supported, enabling autosuspend.
<6>[ 32.287318] usb 1-1.4: Sierra USB modem converter now attached to ttyUSB0
<7>[ 32.287704] usb 1-1.4: sierra_probe
<7>[ 32.287712] usb 1-1.4: sierra_calc_num_ports
<6>[ 32.287719] sierra 1-1.4:1.3: Sierra USB modem converter detected
<7>[ 32.287734] usb 1-1.4: sierra_startup
<7>[ 32.287744] usb 1-1.4: Memory usage (urbs) interface #3, in=8, out=64
<6>[ 32.287751] usb 1-1.4: APM supported, enabling autosuspend.
<6>[ 32.288093] usb 1-1.4: Sierra USB modem converter now attached to ttyUSB1
<7>[ 32.288484] usb 1-1.4: sierra_probe
<7>[ 32.288492] usb 1-1.4: Ignoring blacklisted interface #5
<6>[ 32.292616] GobiNet 1-1.4:1.8 wwan0: register ‘GobiNet’ at usb-msm_hsusb_host-1.4, GobiNet Ethernet Device, 2a:9c:00:7c:3a:2a
<6>[ 32.296366] USB Speed : USB 2.0
<6>[ 32.308404] cdc_ether 1-1.4:1.19 usb0: register ‘cdc_ether’ at usb-msm_hsusb_host-1.4, CDC Ethernet Device, 52:2b:f7:f5:1c:91
<6>[ 33.906180] u8Type:0x02, TID:0x00 ,MSGID:0x27
There are 3 ports, /dev/ttyUSB0, 1 and 2. NMEA is disabled.
Alternatively, i also tried to disable rawIP port and use sockets for communicating with atServer app on the MangoH red board side.
Was able to successfuly communicate with sockets from the Android side with usb0(whcih is ecm0 on MangoH Red board) enabled on boot up.
in the init.qcom.rc file,
service dhcpcd_usb0 /system/bin/dhcpcd -ABKLG
class late_start
disabled
oneshot
enables the usb0 at bootup. So the sockets work.
This disables the wwan0 enabling.
Is there some settings on Android for using the wwan0 first and then when enable usb0 when required ?
In the init.dhcpcd the interface is wwan0. Should i do something there ?
Basically, the question, “Is there some setting similar to ril integration on Android with MangoH Red +Wifi”
Yes, as per suggestion, did assign usb0, but the dhcpc is still on the wwan0 and hence, when i try sockets from my Anroid application(apk), the default routing is through wwan0 and not the usb0.
Tried setting the ip tables defualt to usb0, but that also did not work.
So wanted to know if there are settings for usb0 routing ? (I know its a general Android stuff, but that did not work, so wanted to check if this was done)
seems need to use some “ndc” command.
In the past, I have tried not using the RIL but using AT!SCACT command to establish data connection.
I need to type the following in the Android console in order to make the browser in android to connect to network, you might give a try to change the wwan0 to usb0 and see what happens: