26 (edytowany przez fsddt 2018-01-04 20:00:09)

Odp: TL-WDR4300 + E3372h(bez-hilink) problem z WAN

Zarządza sterownik HUAWEI ew_wwanecm.sys 1.0.10.0.
Podpiety jest pod Mobile Connect - Network Card.
Instalowany przez oem78.inf

; Copyright (c) 2010,2011 Huawei Incorporated
; Manufacturer: Huawei Incorporated
;
; CDC ECM & NCM driver
;

[Version]
Signature="$WINDOWS NT$"
Class=Net
ClassGUID={4d36e972-e325-11ce-bfc1-08002be10318}
Provider=%Mfg%
DriverVer=11/01/2013,1.0.10.0
CatalogFile=ew_wwanecm.cat

[Manufacturer]
%Mfg% = DeviceList,NTx86,NTamd64

[SourceDisksNames]
1 = %ew_wwanecm.DiskName%,,,""

[SourceDisksFiles]
ew_wwanecm.sys  = 1,,

; For Win2K
[DeviceList]
%PNP21_HW_NetworkDesc%     = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_16
%PNP21_VDF_NetworkDesc%    = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_46
%PNP21_NetworkDesc%        = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_76

%PNP21_HW_3G_NetworkDesc%  = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_07
%PNP21_VDF_NetworkDesc%    = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_37
%PNP21_NetworkDesc%        = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_67

%PNP21_HW_NetworkDesc%     = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_11

; for logo test
%HUAWEI_NDISDeviceDesc%    = ew_wwanecm.ndi, USB\VID_12D1&PID_158F&MI_00

; For WinXP and later
[DeviceList.NTx86]
%PNP21_HW_NetworkDesc%     = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_16
%PNP21_VDF_NetworkDesc%    = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_46
%PNP21_NetworkDesc%        = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_76

%PNP21_HW_3G_NetworkDesc%  = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_07
%PNP21_VDF_NetworkDesc%    = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_37
%PNP21_NetworkDesc%        = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_67

%PNP21_HW_NetworkDesc%     = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_11

; for logo test
%HUAWEI_NDISDeviceDesc% = ew_wwanecm.ndi, USB\VID_12D1&PID_158F&MI_00

; For XP and later x64
[DeviceList.NTamd64]
%PNP21_HW_NetworkDesc%     = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_16
%PNP21_VDF_NetworkDesc%    = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_46
%PNP21_NetworkDesc%        = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_76

%PNP21_HW_3G_NetworkDesc%  = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_07
%PNP21_VDF_NetworkDesc%    = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_37
%PNP21_NetworkDesc%        = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_67

%PNP21_HW_NetworkDesc%     = ew_wwanecm.ndi, USB\VID_12D1&Subclass_03&Prot_11

; for logo test
%HUAWEI_NDISDeviceDesc% = ew_wwanecm.ndi, USB\VID_12D1&PID_158F&MI_00

;-------------------------------------------------------------------------------
; Virtual Ethernet Adapter
;
[ew_wwanecm.ndi]
*IfType            = 243 ; IF_TYPE_WWANPP
*MediaType         = 9; NdisMediumWirelessWan
*PhysicalMediaType = 8 ; NdisPhysicalMediumWirelessWan
EnableDhcp         = 0 ; DHCP Disabled
Characteristics    = 0x84 ; NCF_HAS_UI | NCF_PHYSICAL
BusType            = 15 ; if you specify NCF_PHYSICAL, you must specify bustype
AddReg             = ew_wwanecm.Reg, ParamsPromiscuous, ParamsFrameType, ParamsIsNtb32, ParamsNTBInputSize, ParamsPacketsAccumulationTimeout, ParamsMaxNumOfDatagramsInNTB, FlowControlTimeOut, DisableAccumulationUpdate, WwanMbimEnable, NcmReinitializeEnable
CopyFiles          = ew_wwanecm.CopyFiles


[WWAN_AddReg]
HKR,, Platform,0x00010001,0x3 
HKR,, WWAN,0x00010001,0x1
HKR,, "SelectiveSuspendIdleTime", 0x00010001, 0x05
[ew_wwanecm.ndi.Services]
AddService      = %ServiceName%, 2, ew_wwanecm.Service, ew_wwanecm.EventLog

[ew_wwanecm.ndi.HW]
AddReg = WWAN_AddReg

;-----------------------------------------------------------------------------
;
[ew_wwanecm.Reg]
HKR,    ,                         BusNumber,           0, "0"
HKR,    ,                         MPRadioState,        0x00010001, 0x00000001       ;RadioState
HKR, Ndi,                         Service,             0, "hwusb_wwanecm"
HKR, Ndi\Interfaces,              UpperRange,          0, "flpp4" and "flpp6"
HKR, Ndi\Interfaces,              LowerRange,          0, "ppip"

[ParamsPromiscuous]
;
;    Should the physical NIC be set to Promiscuous mode
;
HKR, Ndi\Params\Promiscuous,     ParamDesc, , %Promiscuous%
HKR, Ndi\Params\Promiscuous,     Default,  ,"0"
HKR, Ndi\Params\Promiscuous,     type, ,      enum
HKR, Ndi\Params\Promiscuous\enum,"1",  ,     %Promiscuous_Enable%
HKR, Ndi\Params\Promiscuous\enum,"0",  ,     %Promiscuous_Disable%

[ParamsFrameType]
HKR, Ndi\Params\FrameType,     ParamDesc, 0, %FrameType%
HKR, Ndi\Params\FrameType,     type,      0, enum
HKR, Ndi\Params\FrameType,     Default,   0, "0"
HKR, Ndi\Params\FrameType\enum,"1",       0, %FrameType_IP%
HKR, Ndi\Params\FrameType\enum,"0",       0, %FrameType_Ethernet%

[ParamsIsNtb32]
HKR, Ndi\Params\IsNtb32,      ParamDesc, , %IsNtb32%
HKR, Ndi\Params\IsNtb32,      Default, , "1"
HKR, Ndi\Params\IsNtb32,      type, , enum
HKR, Ndi\Params\IsNtb32\enum, "1", , "Yes"
HKR, Ndi\Params\IsNtb32\enum, "0", , "No"

[ParamsNTBInputSize]
HKR, Ndi\Params\NTBInputSize,     ParamDesc, , %NTBInputSize%
; If the following size is larger than the maximum allowed by the device, the
; maximum value is used. 0 means to use the maximum allowed value of the device.
HKR, Ndi\Params\NTBInputSize,     Default, , "0"
HKR, Ndi\Params\NTBInputSize,     type, , dword

[ParamsPacketsAccumulationTimeout]
HKR, Ndi\Params\PacketsAccumulationTimeout,     ParamDesc, , %PacketsAccumulationTimeout%
; Unit of PacketsAccumulationTimeout is usecs. Default value is 20 us.
HKR, Ndi\Params\PacketsAccumulationTimeout,     Default, , "20"
HKR, Ndi\Params\PacketsAccumulationTimeout,     type, , dword

[ParamsMaxNumOfDatagramsInNTB]
HKR, Ndi\Params\MaxNumOfDatagramsInNTB,     ParamDesc, , %MaxNumOfDatagramsInNTB%
HKR, Ndi\Params\MaxNumOfDatagramsInNTB,     Default, , "64"
HKR, Ndi\Params\MaxNumOfDatagramsInNTB,     type, , dword

[FlowControlTimeOut]
HKR, Ndi\Params\FlowControlTimeOut,     ParamDesc, , %FlowControlTimeout%
HKR, Ndi\Params\FlowControlTimeOut,     Default, , "2800"
HKR, Ndi\Params\FlowControlTimeOut,     type, , dword

[DisableAccumulationUpdate]
HKR, Ndi\Params\disable_accumulation_update,     ParamDesc, , %DisableAccumulationUpdate%
HKR, Ndi\Params\disable_accumulation_update,     Default, , "0"
HKR, Ndi\Params\disable_accumulation_update,     type, , dword

[WwanMbimEnable]
HKR, Ndi\Params\WwanMbimEnable, ParamDesc, , %WwanMbimEnable%
HKR, Ndi\Params\WwanMbimEnable, Default, , "0"
HKR, Ndi\Params\WwanMbimEnable, type, , dword

[NcmReinitializeEnable]
HKR, Ndi\Params\NcmReinitializeEnable, ParamDesc, , %NcmReinitializeEnable%
HKR, Ndi\Params\NcmReinitializeEnable, Default, , "1"
HKR, Ndi\Params\NcmReinitializeEnable, type, , dword

;-----------------------------------------------------------------------------
; DestinationDirs
;
[DestinationDirs]
ew_wwanecm.CopyFiles = 12

[ew_wwanecm.CopyFiles]
ew_wwanecm.sys,,,0x6  ;COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
;-----------------------------------------------------------------------------
; Driver and Service Section
;

[ew_wwanecm.Service]
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\ew_wwanecm.sys
LoadOrderGroup  = NDIS
AddReg          = ew_wwanecm.Service.Reg

[ew_wwanecm.Service.Reg]
HKR, , TextModeFlags,    0x00010001, 0x0001
HKR, Parameters, DebugLevel, 0x00010001, 1
HKR, Parameters, WwanLogoTestOn, 0x00010001, 0

[ew_wwanecm.EventLog]
AddReg = ew_wwanecm.AddEventLog.Reg

[ew_wwanecm.AddEventLog.Reg]
HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll"
HKR, , TypesSupported,   0x00010001, 7

;-----------------------------------------------------------------------------
; Localizable Strings
;
[Strings]
Mfg = "HUAWEI"

HUAWEI_NDISDeviceDesc      = "HUAWEI Mobile Connect - Network Adapter"

;PNP2.1 Device descriptor
PNP21_HW_3G_NetworkDesc = "HUAWEI Mobile Connect - 3G Network Card"
PNP21_HW_NetworkDesc = "HUAWEI Mobile Connect - Network Card"
PNP21_NetworkDesc = "Mobile Connect - Network Card"
PNP21_VDF_NetworkDesc = "Vodafone Mobile Broadband Network Adapter (Huawei)"

ew_wwanecm.DiskName        = "DriverCore Installation Disk"
Promiscuous                = "Set the physical NIC to promiscuous mode"
Promiscuous_Disable        = "Disable"
ServiceName                = "hwusb_wwanecm"
Promiscuous_Enable         = "Enable"
FrameType                  = "Frame Type in driver-device communications"
FrameType_Ethernet         = "Ethernet"
FrameType_IP               = "IP"

IsNtb32                    = "32bit mode"
NTBInputSize               = "NTB input size"
PacketsAccumulationTimeout = "Packets Accumulation Timeout [usec]"
MaxNumOfDatagramsInNTB     = "Maximum number of datagrams in NTB"
FlowControlTimeout         = "Flow Control timeout interval in ms"
DisableAccumulationUpdate  = "Flag to disable NCM accumulation auto updation"
WwanMbimEnable             = "Flag to enable WWAN MBIM function"
NcmReinitializeEnable      = "Flag to enable NCM reinitialize after resume"

Podpowiesz jak ustawić na sztywno HUAWEI w LUCI?

Port COMxx widoczny w DashBoard jest za każdym wpięciem inny.

27

Odp: TL-WDR4300 + E3372h(bez-hilink) problem z WAN

W luci nie.

W /lib/netifd/proto/ncm.sh 

    manufacturer=`gcom -d "$device" -s /etc/gcom/getcardinfo.gcom | awk 'NF && $0 !~ /AT\+CGMI/ { sub(/\+CGMI: /,""); print tolower($1); exit; }'`
    [ $? -ne 0 ] && {
        echo "Failed to get modem information"
        proto_notify_error "$interface" GETINFO_FAILED
        return 1
    }

zamień na

    manufacturer="huawei"
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

28 (edytowany przez fsddt 2018-01-04 20:12:50)

Odp: TL-WDR4300 + E3372h(bez-hilink) problem z WAN

SUPER!
Modem odpalił w 10 sekund.
Dziękuję. :-D

Zmieniłem tylko pierwszy wiersz.

Podsumowanie.

Huawei E3372h-153 z firmware 21.315.01.00.143_M_U_01.01 działa poprawnie w OpenWrt Chaos Calmer 15.05.1 (r49474).

29

Odp: TL-WDR4300 + E3372h(bez-hilink) problem z WAN

Mały OT: na openlinkys podali w jaki sposób przerobić nazwę modemu: https://openlinksys.info/forum/viewthre … ost_166514

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.