Automatic Activation, Hotplug and UDEV, Configuration
melanoma69
Posts: 4
Joined: 10 Dec 2014, 13:52

Re: Huawei E303 modes

Post by melanoma69 » 11 Dec 2014, 19:35

Thanks for reply mkurent.

I have done all your steps but i´m still with the 1f01 after reboot. My goal is to have 1001?? When I write: ls /dev/ttyUSB* no devices appear.

My raspberry is up to date and the e303h-2 in pluggen onto a USBHUB

Please help!!!!!

mkurent
Posts: 3
Joined: 11 Dec 2014, 00:13

Re: Huawei E303 modes

Post by mkurent » 11 Dec 2014, 19:54

I have played with this for quite some time.

I do not know the exact reason why this works on my setup. What I have found is that usb_modeswitch automatically changes the modem at the moment when dongle is recognized by the system.

By default the usb_switchmode sets modem to HiLink and with this addition it is automatically switched to modem mode.

melanoma69
Posts: 4
Joined: 10 Dec 2014, 13:52

Re: Huawei E303 modes

Post by melanoma69 » 11 Dec 2014, 20:07

Ok thank you so much. Do you think the problem is my model of e303? H-2

Josh
Site Admin
Posts: 6569
Joined: 03 Nov 2007, 00:30

Re: Huawei E303 modes

Post by Josh » 14 Dec 2014, 20:07

melanoma69,

did you change any permanent settings of your modem, like disabling the CD-ROM mode?

mherrmann
Posts: 1
Joined: 16 Jan 2015, 23:04

Re: Huawei E303 modes

Post by mherrmann » 16 Jan 2015, 23:13

I'm also using a Raspberry Pi (B+) and have had the problem that I couldn't get the Huawei E303 to work in modem mode. Mkurent's post (http://www.draisberghof.de/usb_modeswit ... 109#p14109) finally helped me. I specifically registered for this forum so I could say THANK YOU MKURENT.

One thing that's odd is that, when I unplug my Raspberry Pi completely - ie. also the Huawei - then after turning it back on it's still in the "wrong" mode 1f01. However, as soon as I `sudo reboot`, it works (also on future reboots).

So if it doesn't work immediately, try rebooting twice.

boba606
Posts: 1
Joined: 03 Mar 2016, 08:04

Re: Huawei E303 modes

Post by boba606 » 03 Mar 2016, 08:19

Hi folks,

First post; thought I'd register to say thanks for all the help in this thread.

I've successfully configured my E303h-2 as ttyUSB modem.

I tried a lot of configurations mentioned on this thread for other revisions, and nothing seemed to work; eventually I noticed that without usb_modeswitch installed, my E303h-2 is reported:

Code: Select all

Bus 001 Device 005: ID 12d1:1f01 Huawei Technologies Co., Ltd.

Code: Select all

[    2.664996] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
[    2.767116] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1f01
[    2.769308] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.771298] usb 1-1.2: Product: HUAWEI Mobile
[    2.773058] usb 1-1.2: Manufacturer: HUAWEI
[    2.775076] usb 1-1.2: SerialNumber: FFFFFFFFFFFFFFFF
[    2.827237] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    2.829860] scsi host0: usb-storage 1-1.2:1.0
...This was persistent after reboots. Once I'd (re)installed usb_modeswitch however, I found that it was shown as:

Code: Select all

Bus 001 Device 006: ID 12d1:14dc Huawei Technologies Co., Ltd.

Code: Select all

[    8.570541] usb 1-1.2: USB disconnect, device number 4
[    8.845061] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[    8.946530] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=14dc
[    8.948605] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    8.950505] usb 1-1.2: Product: HUAWEI Mobile
[    8.952348] usb 1-1.2: Manufacturer: HUAWEI
[    9.194881] usb-storage 1-1.2:1.2: USB Mass Storage device detected
[    9.208058] scsi host1: usb-storage 1-1.2:1.2
[    9.437678] cdc_ether 1-1.2:1.0 eth1: register 'cdc_ether' at usb-20980000.usb-1.2, CDC Ethernet Device, 00:1e:10:1f:00:00
I started to wonder if there's a predefined usb_modeswitch configuration file at work; in the unpacked files, I found 12d1:1f01, which was described as for Huawei E353, and had TargetDevice= 14db, and MessageContent different to anything suggested in this thread.

I wondered if my attempts at switching were failing because all my default device declarations were invalid, as (with usb_modeswitch installed) the device was no longer connected in its default state.

So, I made a new file: /etc/usb_modeswitch.d/12d1:1f01

Code: Select all

# Huawei E303h-2

TargetVendor= 0x12d1
TargetProduct= 0x1001
MessageContent= "55534243123456780000000000000011063000000100010000000000000000"
NoDriverLoading= 1
After rebooting, joy of joys(!), my E303h-2 is reported...

Code: Select all

Bus 001 Device 006: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem

Code: Select all

[    2.915079] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
[    3.016870] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1f01
[    3.018872] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.020762] usb 1-1.2: Product: HUAWEI Mobile
[    3.022642] usb 1-1.2: Manufacturer: HUAWEI
[    3.024504] usb 1-1.2: SerialNumber: FFFFFFFFFFFFFFFF
[    3.107209] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    3.123142] scsi host0: usb-storage 1-1.2:1.0
[    5.880884] usbcore: registered new interface driver cdc_acm
[    6.010030] usb 1-1.2: USB disconnect, device number 5
[   11.105000] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[   11.210355] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1001
[   11.212352] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   11.214178] usb 1-1.2: Product: HUAWEI Mobile
[   11.222560] usb 1-1.2: Manufacturer: HUAWEI
[   11.658701] usbcore: registered new interface driver usbserial
[   11.681460] usbcore: registered new interface driver usbserial_generic
[   11.690569] usbserial: USB Serial support registered for generic
[   11.796792] usbcore: registered new interface driver option
[   11.817387] usbserial: USB Serial support registered for GSM modem (1-port)
[   11.866041] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[   11.905800] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[   11.956578] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
:D :D :D

Now to figure out Gammu and its SMS daemon!...

Hope the above is helpful to someone else.

Thanks again,

Rob.

UPDATE:

I'm running this on a Raspberry Pi, with Raspbian Wheezy; I tried to install the current (1.37.0) Gammu but I had issues with dependencies, so figured I'd give it a try with the version available from apt (1.31.9). I was pleasantly surprised to find that after configuring it as ttyUSB0, at115200 I could send (and read, delete etc.) SMS simply from the command line - which will do me just fine. And for those interested in Raspberry Pi stuff, my E303h-2 is now working with Gammu on an early Model B unit [with very limited USB power available], directly connected [no powered hub], standard 5V 1A PSU(!). :D

Josh
Site Admin
Posts: 6569
Joined: 03 Nov 2007, 00:30

Re: Huawei E303 modes

Post by Josh » 03 Mar 2016, 19:35

With this mode-switch 'message', you are using the fall-back PPP mode of Huawei modems. It's not very well suited for high throughput, but obviously better than nothing.

You could also try to make the ethernet mode work ("CDC Ethernet Device" as indicated in your first dmesg log) but this is somewhat outside the scope of this forum.

libasnw
Posts: 1
Joined: 29 Mar 2016, 09:21

Re: Huawei E303 modes

Post by libasnw » 29 Mar 2016, 11:22

i want to connect my huawei E303f 3g dongle with raspberry pi and gain internet access through it. i tried the following way of connecting the dongle to the pi, installed the usb-modeswitch and other packages like sakis3g etc. i found that the main problem is that , am not getting my dongle switch from "CDROM" mode to "MODEM" mode. wat might be the issue sir. if possible do provide me some suggestions. am a complete Newbie to this.

LOM
Posts: 1350
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawei E303 modes

Post by LOM » 01 Apr 2016, 05:52

libasnw wrote:i want to connect my huawei E303f 3g dongle with raspberry pi and gain internet access through it. i tried the following way of connecting the dongle to the pi, installed the usb-modeswitch and other packages like sakis3g etc. i found that the main problem is that , am not getting my dongle switch from "CDROM" mode to "MODEM" mode. wat might be the issue sir. if possible do provide me some suggestions. am a complete Newbie to this.
You could start with telling what usb id your E303f has, the cmd lsusb will show that.

Alsaban
Posts: 1
Joined: 19 May 2016, 13:09

Re: Huawei E303 modes

Post by Alsaban » 19 May 2016, 13:16

The Huawei E303 emulates a regular ethernet interface, which makes it very easy to use. It takes about two minutes to set up and will even support hot plugging.

k3411
Posts: 1
Joined: 25 May 2016, 10:38

Re: Huawei E303 modes

Post by k3411 » 25 May 2016, 23:06

Alsaban wrote:The Huawei E303 emulates a regular ethernet interface, which makes it very easy to use. It takes about two minutes to set up and will even support hot plugging.
Thats correct

Configure RaspberryPi with E303 as Wifi Hotspot (AccessPoint)

Using :
a ) Edimax EW-7811 UN
b ) Huawai E303
c ) Debian Jessie light image


Steps
1 ) sudo apt-get update
2 ) sudo apt-get upgrade
3 ) sudo apt-get install ppp usb-modeswitch
4 ) reboot
5 ) lsusb
Now the E303 has still the entry
Bus 001 Device 006: ID 12d1:1f01 Huawei Technologies Co., Ltd.
6 ) sudo nano /etc/udev/rules.d/40-modemswitch.rules
insert the line
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000a11062000000000000100000000000000'"
and save
7 ) reboot
8 ) lsusb
The E303 changed its modus
Bus 001 Device 006: ID 12d1:14dc Huawei Technologies Co., Ltd.
Note : The E303 do not must have the Modem HDSPA entry !!!
9 ) sudo ifconfig
The E303 is now eth1 adapter

e.g
eth1 Link encap:Ethernet HWaddr 00:1e:10:1f:00:00
inet addr:192.168.8.100 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::b0b4:a7ba:fee8:b03/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9595 (9.3 KiB) TX bytes:6892 (6.7 KiB)

7 ) Finished with implementation of E303



8 ) WLAN ACCESPOINT
please follow instructions on https://jankarres.de/2015/06/raspberry- ... inrichten/
(sorry its in german , but this guy is a RaspGuru) - Thx Jan

9 ) My Changes of JanKarres (i want an other DHCP-IP Range)

a) in Step 6
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.1
netmask 255.255.255.0

b) in step 9

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option routers 192.168.1.1;
}

c) in step 10

i added/replaced ONLY these lines to make sure the adress-range 192.168.1.x is working

iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
iptables -A FORWARD -i wlan0 -j ACCEPT

After reboot , you have a mobile WLAN Hotspot with DHCP Server and Huawei E303
(Do not forget, to remove the LAN kabel (RJ45))

Have fun

Stefan


ADDED 31.05.2016

i had some trouble switching between the different modes , but i figured out how to do it

1a) Take a laptop deinstall all previous installations of the E303
2a) Plug in the E303 and wait until E303 is opening the browser (Autostart)
3a) Do a E303 factory Reset on its web-interface and remove the stick


Back into the Raspberry :

lsusb
The E303 is in 0x12d1:01f01 mode


To switch to Modem mode
sudo usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000011062000000100000000000000000000'
reboot
After that we have set the E303 into modem-Mode - 0x12d1:01001 and shown as HUAWEI UMTS Modem



To set the E303 to ETH1 mode
1) repeat step 2a-3a
sudo usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000a11062000000000000100000000000000'
reboot


-------------------------------------------------------------------------------------
Additional information for german Telekom MultiSim users.

Sometimes when you insert a MultiSim into the E303, it will block ALL incomming phonecalls on ALL devices.
Solution : You have to set the E303 in PS (Packed Switch Mode) with AT Command first

AT^SYSCFG=2,2,3FFFFFFF,1,1

Gerjan1995
Posts: 1
Joined: 22 Jun 2016, 16:56

Re: Huawei E303 modes

Post by Gerjan1995 » 22 Jun 2016, 17:11

Hi everybody,

I'm really new to this subject and have a TP-link MR3020 router with OpenWRT.
For the setup that i'm making i want to connect the router to WAN via 3G with the E303.

I spend two days of trying this, but i still don't have connection. Is there someone who can help me out?

First i used the usb-modeswitch in default and gave me 12d1:14dc. As i've seen in the other comments in this thread it should be 12d1:1001 right, for the application i have in mind. So i tried al the previous given solution, but they dont seem to work for me. The package i have is using the .json file. In this file i put the message and changed the vendor and product to 1001, but it still gives me 14dc.

[ 1966.130000] usb 1-1: new high-speed USB device number 8 using ehci-platform
[ 1966.490000] usbserial_generic 1-1:1.0: Generic device with no bulk out, not allowed.
[ 1966.490000] usbserial_generic: probe of 1-1:1.0 failed with error -5
[ 1966.500000] usbserial_generic 1-1:1.1: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 1966.510000] usbserial_generic 1-1:1.1: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 1966.520000] usbserial_generic 1-1:1.1: generic converter detected
[ 1966.530000] usb 1-1: generic converter now attached to ttyUSB0
[ 1966.530000] usbserial_generic 1-1:1.2: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 1966.540000] usbserial_generic 1-1:1.2: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 1966.550000] usbserial_generic 1-1:1.2: generic converter detected
[ 1966.560000] usb 1-1: generic converter now attached to ttyUSB1

I do get this when using dmesg. So it somehow is assigned to the usb. I tried setting up the connection, but this is whats happens:

Wed Jun 22 15:04:59 2016 local2.info chat[5208]: abort on (BUSY)
Wed Jun 22 15:04:59 2016 local2.info chat[5208]: abort on (NO CARRIER)
Wed Jun 22 15:04:59 2016 local2.info chat[5208]: abort on (ERROR)
Wed Jun 22 15:04:59 2016 local2.info chat[5208]: report (CONNECT)
Wed Jun 22 15:04:59 2016 local2.info chat[5208]: timeout set to 12 seconds
Wed Jun 22 15:04:59 2016 local2.info chat[5208]: send (AT&F^M)
Wed Jun 22 15:04:59 2016 local2.info chat[5208]: expect (OK)
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: ^A^@^^?^?z^@^M^G^NK,^H^@E^@^A5^@^@@^@^A^Q?^T@(^H^Ao^?^?z^B4^Gl^A!,uNOTIFY * HTTP/1.1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: HOST: 239.255.255.250:1900^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CACHE-CONTROL: max-age=1800^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: lOCATION: http://192.168.8.1:35265/rootDesc.xml^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: SERVER: E588 UPnP/1.0 MiniUPnPd/1.6^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NT: upnp:rootdevice^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: USN: uuid:000D878E-000D-878E-4BAC-000D878E4BA0::upnp:rootdevice^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NTS: ssdp:alive^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: 01-NLS: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: BOOTID.UPNP.ORG: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: ^A^@^^?^?z^@^M^G^NK,^H^@E^@^A}^@^@@^@^A^Q?L@(^H^Ao^?^?z^B4^Gl^Ai=wNOTIFY * HTTP/1.1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: HOST: 239.255.255.250:1900^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CACHE-CONTROL: max-age=1800^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: lOCATION: http://192.168.8.1:35265/rootDesc.xml^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: SERVER: E588 UPnP/1.0 MiniUPnPd/1.6^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NT: urn:schemas-upnp-org:device:InternetGatewayDevice:1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: USN: uuid:000D878E-000D-878E-4BAC-000D878E4BA0::urn:schemas-upnp-org:device:Inte
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: rnetGatewayDevice:1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NTS: ssdp:alive^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: 01-NLS: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: BOOTID.UPNP.ORG: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CONFIGID.UPNP.ORG: 1337^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: DATE: Wed, 22 Jun 2016 16:07:00 GMT^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: ^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: ^A^@^^?^?z^@^M^G^NK,^H^@E^@^Ay^@^@@^@^A^Q?P@(^H^Ao^?^?z^B4^Gl^Aea%NOTIFY *
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: HTTP/1.1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: HOST: 239.255.255.250:1900^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CACHE-CONTROL: max-age=1800^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: lOCATION: http://192.168.8.1:35265/rootDesc.xml^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: SERVER: E588 UPnP/1.0 MiniUPnPd/1.6^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NT: urn:schemas-upnp-org:device:WANConnectionDevice:1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: USN: uuid:000D878E-000D-878E-4BAC-000D878E4BA2::urn:schemas-upnp-org:device:WANC
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: onnectionDevice:1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NTS: ssdp:alive^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: 01-NLS: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: BOOTID.UPNP.ORG: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CONFIGID.UPNP.ORG: 1337^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: DATE: Wed, 22 Jun 2016 16:07:00 GMT^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: ^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: ^A^@^^?^?z^@^M^G^NK,^H^@E^@^Ae^@^@@^@^A^Q?d@(^H^Ao^?^?z^B4^Gl^AQvaNOTIFY * HTTP/1.1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: HOST: 239.255.255.250:1900^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CACHE-CONTROL: max-age=1800^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: lOCATION: http://192.168.8.1:35265/rootDesc.xml^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NT: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: USN: uuid:000D878E-000D-878E-4BAC-000D878E4BA1::urn:schemas-upnp-org:service:WAN
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CommonInterfaceConfig:1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NTS: ssdp:alive^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: 01-NLS: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: BOOTID.UPNP.ORG: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CONFIGID.UPNP.ORG: 1337^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: DATE: Wed, 22 Jun 2016 16:07:00 GMT^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: ^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: ^A^@^^?^?z^@^M^G^NK,^H^@E^@^As^@^@@^@^A^Q?V@(^H^Ao^?^?z^B4^Gl^A_^"NOTIFY * HTTP/1.1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: HOST: 239.255.255.250:1900^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CACHE-CONTROL: max-age=1800^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: lOCATION: http://192.168.8.1:35265/rootDesc.xml^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: SERVER: E588 UPnP/1.0 MiniUPnPd/1.6^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NT: urn:schemas-upnp-org:service:WANIPConnection:1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: USN: uuid:000D878E-000D-878E-4BAC-000D878E4BA2::urn:schemas-upnp-org:service:WAN
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: IPConnection:1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NTS: ssdp:alive^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: 01-NLS: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: BOOTID.UPNP.ORG: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CONFIGID.UPNP.ORG: 1337^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: DATE: Wed, 22 Jun 2016 16:07:00 GMT^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: ^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: ^A^@^^?^?z^@^M^G^NK,^H^@E^@^Au^@^@@^@^A^Q?T@(^H^Ao^?^?z^B4^Gl^Aaf/NOTIFY * HTTP/1.1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: HOST: 239.255.255.250:1900^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CACHE-CONTROL: max-age=1800^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: lOCATION: http://192.168.8.1:35265/rootDesc.xml^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: SERVER: E588 UPnP/1.0 MiniUPnPd/1.6^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NT: urn:schemas-upnp-org:service:Layer3Forwarding:1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: USN: uuid:000D878E-000D-878E-4BAC-000D878E4BA0::urn:schemas-upnp-org:service:Lay
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: er3Forwarding:1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NTS: ssdp:alive^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: 01-NLS: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: BOOTID.UPNP.ORG: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CONFIGID.UPNP.ORG: 1337^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: DATE: Wed, 22 Jun 2016 16:07:00 GMT^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: ^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: ^A^@^^?^?z^@^M^G^NK,^H^@E^@^A>^@^@@^@^A^Q?^K@(^H^Ao^?^?z^B4^Gl^A*PRNOTIFY * HTTP/1.1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: HOST: 239.255.255.250:1900^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: CACHE-CONTROL: max-age=1800^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: lOCATION: http://192.168.8.1:35265/rootDesc.xml^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: SERVER: E588 UPnP/1.0 MiniUPnPd/1.6^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NT: uuid:000D878E-000D-878E-4BAC-000D878E4BA0^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: USN: uuid:000D878E-000D-878E-4BAC-000D878E4BA0^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: NTS: ssdp:alive^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: 01-NLS: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: BOOTID.UPNP.ORG: 1^M
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: alarm
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: alarm
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: warning: alarm synchronization problem
Wed Jun 22 15:05:11 2016 local2.info chat[5208]: Failed
Wed Jun 22 15:05:11 2016 daemon.err pppd[5206]: Connect script failed
Wed Jun 22 15:05:12 2016 daemon.info pppd[5206]: Exit.
Wed Jun 22 15:05:12 2016 daemon.notice netifd: Interface 'wan' is now down
Wed Jun 22 15:05:12 2016 daemon.notice netifd: Interface 'wan' is setting up now
Wed Jun 22 15:05:14 2016 daemon.notice pppd[5234]: pppd 2.4.7 started by root, uid 0
Wed Jun 22 15:05:15 2016 local2.info chat[5236]: abort on (BUSY)
Wed Jun 22 15:05:15 2016 local2.info chat[5236]: abort on (NO CARRIER)
Wed Jun 22 15:05:15 2016 local2.info chat[5236]: abort on (ERROR)
Wed Jun 22 15:05:15 2016 local2.info chat[5236]: report (CONNECT)
Wed Jun 22 15:05:15 2016 local2.info chat[5236]: timeout set to 12 seconds
Wed Jun 22 15:05:15 2016 local2.info chat[5236]: send (AT&F^M)
Wed Jun 22 15:05:15 2016 local2.info chat[5236]: expect (OK)

As i have said, i'm really new to this, so i don't know if i'm only getting close to making it work. Can someone help me out?

this is what i got when i ask for the device:
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 8 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=14dc Rev= 1.02
S: Manufacturer=HUAWEI
S: Product=HUAWEI Mobile
C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=(none)
E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=32ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=usbserial_generic
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usbserial_generic
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

Thanks in advance! :)

LOM
Posts: 1350
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawei E303 modes

Post by LOM » 23 Jun 2016, 06:02

Gerjan1995 wrote: Can someone help me out?
OpenWRT uses the usbmode switching tool which is their rewrite of usb_modeswitch and it works together with a .json file containing the individual devices switch configs.

Sorry but we only take support questions for the original usb_modeswitch here, you are better off asking for help in the OpenWRT user forum.

Post Reply