HUAWEI K3765 and Fonera 2.0N
June 22nd, 2010
Recently my ISP has been acting up, so I decided to setup a “backup” Internet connection that I can activate by simply plugging a USB stick into my Fonera 2.0N router.

Unfortunately my HUAWEI K3765 3G modem is not compatible with Fonera 2.0N wifi router out of the box, at least not with the current stable version of the firmware (2.3.6.0 aka Gari the Hummingbird).
Here is what I had to do to make the USB modem work with Fonera 2.0N:
- for some crazy reason, my 3G modem refuses to work on Fonera 2.0N if there are some SMS stored on it. Plug the 3G modem into your PC and remove any SMS you may have received. YMMV.
- upgrade your Fonera 2.0N to the latest 2.3.6.0 firmware, choosing the “developer” image. You need the developer version to ssh into your Fonera 2.0N.
- ssh into your Fonera 2.0N router.
- edit /etc/config/umtsd:
config 'umtsd' 'umtsd' option '_country' '_custom' option 'apn' 'replacewithyourapn' config 'umtsdstate' 'umtsdstate' config 'umtsdevice' 'option12D11465' option 'vendor' 'Huawei' option 'device' 'K3765' option 'data' '/dev/ttyUSB0' option 'cmd' '/dev/ttyUSB0'
- plug the HUAWEI K3765 into the Fonera 2.0N router
- wait a few seconds and then run:
echo "0x12d1 0x1465" >/sys/bus/usb-serial/drivers/option1/new_id
Visit http://fonera/luci/fon_devices/fon_umts and check the status of your 3G modem.
If it still doesn’t work, you may have to follow the instructions provided by stex1967:
Create the file /etc/usb-modeswitch.conf with the following content:
DefaultVendor= 0x12d1
DefaultProduct= 0x1520
TargetVendor= 0x12d1
TargetProduct=0x1465
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
Also create the file /etc/rc.d/k3765:
#!/bin/sh /etc/rc.common
START=90
usb_modeswitch
sec=2
sleep $sec
echo "0x12d1 0x1465" >/sys/bus/usb-serial/drivers/option1/new_id
Finally run:
chmod 755 /etc/init.d/k3765
/etc/init.d/k3765 enable
and reboot. Thumbs up!
An updated list of supported 3G USB modems is available at http://wiki.fon.com/wiki/3G_compatibility
14 comments for “HUAWEI K3765 and Fonera 2.0N”
Add a comment
You must be logged in to post a comment.


August 3rd, 2010 at 1:02 am
Ciao Luca, ho fatto l’esatta sequenza che hai elencato ma il modem mi rimane in “connessione” senza mai connettersi veramente.
Suggerimenti?
[Translate]
August 6th, 2010 at 9:07 am
Ho da poco acquistato una nuova fonera e nei prossimi giorni dovrò configurarla per l’utilizzo con questa chiavetta quindi verificherò nuovamente i passi della guida e ti farò sapere :)
Nel frattempo: sei sicuro di non avere sms memorizzati sulla SIM/chiavetta?
[Translate]
September 10th, 2010 at 11:29 pm
Ciao! Sembra che tu sia l’unico ad averla fatta funzionare… La fonera mi è arrivata questa mattina, e sono un paio d’ore che tento di far funzionare la chiavetta, ma niente…
Allora, ho svuotato i messaggi. Ho installato il firmware 2.3.6.1-dev. Mi sono connesso con SSH e ho modificato il file come dici tu, ho collegato la chiavetta, aspettato che la luce diventi blu (che rilevi l’UMTS) e dato il comando di scrittura sul /sys/…. Nulla da fare. Il kernel la vede e la riconosce ma la dashboard no…
Come altre guide hanno suggerito, ho anche modificato il file /Apps/umtsd.lua, e qui effettivamente sono riuscito a far riconoscere la chiavetta, ma rimaneva sempre in fase di connessione, ma mai effettivamente connesso…
Hai qualche suggerimento?
[Translate]
September 22nd, 2010 at 11:32 am
Hm, io ho una chiavetta K3765-Z e questo trick non funziona purtroppo.
echo "0x19d2 0x2000" >/sys/bus/usb-serial/drivers/option1/new_id
con questo vendor e model la riconosce, pero’ non si connette anche cambiando i valori
config 'umtsdevice' 'option19D22000'
Hai idea di come risolvere per caso?
[Translate]
October 18th, 2010 at 12:00 am
Ciao, scusate per il ritardo.
Ho appena preso una Fonera 2.0N e ho ripercorso gli stessi passi della mia guida per utilizzarla con una chiavetta Huawei K3765 con una SIM della Tre.
Ha funzionato al primo colpo.
Da notare che inserisco sempre la chiavetta dopo aver fatto le modifiche al file di configurazione e prima di eseguire l’echo.
Altra cosa importante: dopo avere eseguito l’echo devo aspettare almeno una trentina di secondi prima che la chiave venga riconosciuta dall’interfaccia web e ci mette almeno 1 minuto prima di collegarsi.
Infine vi consiglio di controllare l’output di dmesg. Nella mia Fonera appare più o meno così:
scsi4 : SCSI emulation for USB Mass Storage devices
drivers/usb/core/inode.c: creating file ’004′
hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 1-0:1.0: port 1 enable change, status 00000503
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
scsi 3:0:0:0: CD-ROM Vodafone CD ROM (Huawei) 2.31 PQ: 0 ANSI: 2
scsi 4:0:0:0: Direct-Access Vodafone Storage (Huawei) 2.31 PQ: 0 ANSI: 2
usb-storage: device scan complete
sd 4:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete
option 1-1:1.0: usb_probe_interface
option 1-1:1.0: usb_probe_interface – got id
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
ttyusb -> 1 ttyUSB0 option 12D11465
Per completezza, il mio file /etc/config/umtsd è identico a quello che ho riportato nel mio post, con l’unica differenza che ho messo “tre.it” alla voce APN.
[Translate]
October 18th, 2010 at 12:01 am
@Pierluigi: ma se metti la chiavetta direttamente collegata al PC nello stesso punto in cui si trova la Fonera, riesci a connetterti?
In altre parole: sei sicuro che ci sia campo?
[Translate]
October 18th, 2010 at 12:02 am
@delcaran: sei sicuro di stare usando l’APN giusto? A me fa la stessa cosa se sbaglio APN.
[Translate]
October 18th, 2010 at 12:04 am
Potrei sbagliarmi, ma la K3765-Z è una ZTE, non una Huawei. Si tratta di chiavette completamente diversi.
[Translate]
January 12th, 2011 at 3:25 pm
Ciao, ho fonera 2.0n con Firmware Version: 2.3.6.1 (develop) e Huawei K3765 con una SIM Vodafone.
Ho seguito tutto per filo e per segno ma…..sorpresa, manca /sys/bus/usb-serial/drivers/option1/new_id !!!!!!
questo è quello che trovo sotto /sys/bus/
root@Fonera:/sys/bus# find
.
./i2c
./i2c/drivers
[snip]
./platform/devices
./platform/devices/serial8250
./platform/devices/ramips_wdt.0
./platform/devices/ramips_eth.0
./platform/devices/rt3052-led.0
Qualche idea su come risolvere ?
[Translate]
January 12th, 2011 at 3:39 pm
Se fai
# lsmod|grep usbserial
te lo trova nella lista dei moduli caricati?
Se fai
# insmod usbserial
appare /sys/bus/usb-serial/drivers/*/new_id ?
[Translate]
January 17th, 2011 at 11:01 am
Avevo fatto un pò di casino, in effetti /sys/bus/usb-serial/drivers/option1/new_id c’è, ma la cosa non funziona, i moduli caricati sono 2:
sierra, option
Al comando: # insmod usbserial
ho la seguente risposta:
insmod: cannot insert ‘/lib/modules/2.6.21/usbseries.ko’: File exist (-1): File exists
[Translate]
January 17th, 2011 at 1:28 pm
Ho risolto ma ho dovuto fare altro, utilizzando usb_modeswitch.
Ho scritto le info qui:
http://www.ovada.it/rubriche/90-tecnologia/341-configurare-fonera-20n-con-chiavetta-umts-huawei-3765-vodafone.html
[Translate]
January 17th, 2011 at 1:49 pm
ok, vuol dire che il modulo usbserial è già caricato, come dovrebbe.
[Translate]
June 11th, 2012 at 12:40 am
Has anyone managed to put a K3765-z working. I have the firmware 2.3.7.0 beta2, work with this version? what to do?
[Translate]