содержимое ril.xml относительно настроек E303
- Код: Выделить всё
app_62@android:/ $ su -
app_62@android:/ # cat /system/etc/ril/ril.xml |grep -A10 E303
<product name="E303" id="0x1c05">
<data_channel>ttyUSB0</data_channel>
<dial_channel>ttyUSB1</dial_channel>
<at_channel>ttyUSB2</at_channel>
<pattern>GSM,WCDMA</pattern>
<libpath>/system/lib/libtcc-wcdma-ril.so</libpath>
<libargs>struct</libargs>
<functions>
<data>enable</data>
<dial voice_path="pcm">disable</dial>
<sms>disable</sms>
app_62@android:/ #
подключаем и отключаем E173 и смотрим вывод dmesg
- Код: Выделить всё
app_62@android:/ # dmesg
......
подключили
<6>[13691.851632] usb 1-1.4: new high speed USB device number 6 using tcc-ehci
<6>[13692.489918] option 1-1.4:1.0: GSM modem (1-port) converter detected
<6>[13692.493011] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
<6>[13692.494804] option 1-1.4:1.1: GSM modem (1-port) converter detected
<6>[13692.497449] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
<6>[13692.499162] option 1-1.4:1.2: GSM modem (1-port) converter detected
<6>[13692.501850] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
.....
отключили
<6>[13753.827107] usb 1-1.4: USB disconnect, device number 6
<3>[13753.827658] option: option_instat_callback: error -108
<6>[13753.834992] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
<6>[13753.843665] option 1-1.4:1.0: device disconnected
<6>[13753.848978] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
<6>[13753.853413] option 1-1.4:1.1: device disconnected
<6>[13753.863054] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
<6>[13753.864209] option 1-1.4:1.2: device disconnected
подключаем и отключаем E303 и смотрим вывод dmesg
- Код: Выделить всё
.....
подключили
<6>[13877.197438] usb 1-1.4: new high speed USB device number 7 using tcc-ehci
<3>[13887.189089] init: untracked pid 17538 exited
.....
отключили
<6>[13921.000330] usb 1-1.4: USB disconnect, device number 7
<3>[13931.930118] init: untracked pid 17836 exited
система не видит порты. еще раз повторюсь на всякий случай, модем переведен в режим "только модем" и под десктопным линухом отлично работает, отвечает на АТ-команды на портах ttyUSB0 и ttyUSB2 и поднимает ppp-соединение.
подключаем E173 и смотрим вывод logcat
- Код: Выделить всё
app_62@android:/ # logcat -b radio |grep GSM
.....
D/GSM ( 1352): Baseband version: E173
D/GSM ( 1352): IMSI: xxxxxxx
D/GSM ( 1352): [IccCard] Broadcasting intent ACTION_SIM_STATE_CHANGED IMSI reason null
.....
D/GSM ( 1352): [GsmSST] RAT switched Unknown:0 -> HSPA:11 at cell 1366
D/GSM ( 1352): [GsmSST] updateSpnDisplay: changed sending intent rule=2 showPlmn='true' plmn='MTS.BY' showSpn='false' spn='null'
.....
D/GSM ( 1352): [GsmDCT] buildWaitingApns: Preferred APN:25702:25702:[ApnSettingV2] mts, 6, 25702, internet.mts.by, , , , , , -1, *, IP, IP, true, 0
D/GSM ( 1352): [GsmDCT] buildWaitingApns: X added preferred apnList=[[ApnSettingV2] mts, 6, 25702, internet.mts.by, , , , , , -1, *, IP, IP, true, 0]
D/GSM ( 1352): [GsmDCT] trySetupData: Create from mAllApns : [[ApnSettingV2] mts, 6, 25702, internet.mts.by, , , , , , -1, *, IP, IP, true, 0]
D/GSM ( 1352): [GsmDCT] Setup watingApns : [[ApnSettingV2] mts, 6, 25702, internet.mts.by, , , , , , -1, *, IP, IP, true, 0]
D/GSM ( 1352): [GsmDCT] setupData: apnContext=state=IDLE apnType=default
D/GSM ( 1352): [GsmDCT] checkForConnectionForApnContext: apnContext=state=IDLE apnType=default NO conn
D/GSM ( 1352): [GsmDCT] findReadyDataConnection: apn string <[ApnSettingV2] mts, 6, 25702, internet.mts.by, , , , , , -1, *, IP, IP, true, 0>
.....
D/GSM ( 1352): [GsmDC-1] Connecting to carrier: 'mts' APN: 'internet.mts.by' proxy: '' port: '
.....
D/GSM ( 1352): [GsmDC-1] DcActivatingState msg.what=EVENT_SETUP_DATA_CONNECTION_DONE
D/GSM ( 1352): [GsmDC-1] onSetupConnectionCompleted received DataCallState: DataCallState: {version=6 status=0 retry=-1 cid=1 active=1 type=IP' ifname='ppp0' addresses=[100.65.177.43] dnses=[87.252.243.193] gateways=[10.64.64.64]}
D/GSM ( 1352): addr/pl=100.65.177.43/32
D/GSM ( 1352): [GsmDC-1] updateLinkProperty old != new
D/GSM ( 1352): [GsmDC-1] DcActivatingState onSetupConnectionCompleted result=SUCCESS SetupResult.mFailCause=NONE
D/GSM ( 1352): [GsmDC-1] notifyConnectionCompleted at 1451394644216 cause=NONE
D/GSM ( 1352): [GsmDCT] handleMessage msg={ what=270336 when=-1ms arg1=1 obj=android.os.AsyncResult@4115e220 }
D/GSM ( 1352): [GsmDCT] isDataSetupCompleteOk return true
D/GSM ( 1352): [GsmDCT] onDataSetupComplete: success apn=internet.mts.by
D/GSM ( 1352): [GsmDCT] notifyDefaultData: type=default, reason:simLoaded
D/GSM ( 1352): [ApnContext] setState: CONNECTED for type default, previous state:INITING
D/GSM ( 1352): [GsmDCT] return link properites for default
D/GSM ( 1352): [GsmDCT] get active pdp is not null, return link Capabilities for default
D/GSM ( 1352): [GsmDCT] isDataPossible(default): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=true apnContextState()=CONNECTED
D/GSM ( 1352): [GsmDCT] get active apn string for type:default
D/GSM ( 1352): [GsmDCT] overall state is CONNECTED
D/GSM ( 1352): [GsmDCT] startNetStatPoll
D/GSM ( 1352): [GsmDCT] handleMessage msg={ what=270368 when=0 arg1=1 }
D/GSM ( 1352): [GsmDCT] handleMessage msg={ what=270368 when=-1ms arg1=1 }
подключаем E303 и смотрим вывод logcat
- Код: Выделить всё