Active3GUSB » Historial » Versió 6
Pau Escrich, 18-07-2013 00:40
1 | 3 | Agustí Moll Garcia | h1. Active Dongle USB 3G |
---|---|---|---|
2 | 1 | Agustí Moll Garcia | |
3 | h2. Compilar amb els moduls corresponents |
||
4 | |||
5 | Seleccionar els següents moduls: |
||
6 | |||
7 | 2 | Agustí Moll Garcia | @ppp |
8 | 1 | Agustí Moll Garcia | chat |
9 | 2 | Agustí Moll Garcia | kmod-usb-core |
10 | 1 | Agustí Moll Garcia | kmod-usb-ohci |
11 | kmod-usb-uhci |
||
12 | kmod-usb-serial |
||
13 | kmod-usb-serial-option |
||
14 | 2 | Agustí Moll Garcia | kmod-usb2 |
15 | 1 | Agustí Moll Garcia | comgt |
16 | usb-modeswitch |
||
17 | 2 | Agustí Moll Garcia | usb-modeswitch-data@ |
18 | 1 | Agustí Moll Garcia | |
19 | Opcional: |
||
20 | |||
21 | 6 | Pau Escrich | @ |
22 | usbutils@ |
||
23 | luci-proto-3g |
||
24 | udev |
||
25 | @ |
||
26 | 1 | Agustí Moll Garcia | |
27 | h2. Comprovar que ha carregat bé el Dongle |
||
28 | |||
29 | 2 | Agustí Moll Garcia | Has de veure en el dmesg, quelcom semblant a això: |
30 | 1 | Agustí Moll Garcia | |
31 | 2 | Agustí Moll Garcia | @USB Serial support registered for generic |
32 | usbserial_generic 1-1:1.0: generic converter detected |
||
33 | USB Serial support registered for generic |
||
34 | usbserial_generic 1-1:1.0: generic converter detected |
||
35 | usb 1-1: generic converter now attached to ttyUSB0 |
||
36 | usbserial_generic 1-1:1.1: generic converter detected |
||
37 | usb 1-1: generic converter now attached to ttyUSB1 |
||
38 | ... |
||
39 | usbcore: registered new interface driver usbserial_generic |
||
40 | usbserial: USB Serial Driver core |
||
41 | USB Serial support registered for GSM modem (1-port) |
||
42 | usbcore: registered new interface driver option |
||
43 | option: v0.7.2:USB Driver for GSM modems@ |
||
44 | |||
45 | Si no ho veus, prova de carregar el driver manualment indicant el VendorID i ProductID. Fent un lsusb pots veure-ho. |
||
46 | |||
47 | @rmmod usbserial #optional |
||
48 | insmod /lib/modules/`uname -r`/usbserial.ko vendor=0x<vid> product=0x<pid>@ |
||
49 | |||
50 | 1 | Agustí Moll Garcia | h2. Declarar Interficie 3g |
51 | |||
52 | @uci set network.wan2=interface |
||
53 | uci set network.wan2.ifname=ppp0 |
||
54 | uci set network.wan2.proto=3g |
||
55 | uci set network.wan2.device=/dev/ttyUSB0 |
||
56 | uci set network.wan2.apn=movistar.es |
||
57 | uci set network.wan2.service=umts |
||
58 | uci set network.wan2.username=movistar |
||
59 | uci set network.wan2.password=movistar |
||
60 | uci commit network@ |
||
61 | |||
62 | @ifup wan2@ |
||
63 | 2 | Agustí Moll Garcia | |
64 | h2. Consideracions |
||
65 | |||
66 | 4 | Agustí Moll Garcia | * Recorda que el sistema _gwck_ va enviant automaticament ping per determinar si hi ha connexió a Internet o no. I això va generant un petit trafic a la xarxa. |
67 | 1 | Agustí Moll Garcia | * En aquesta versió s'ha trectat d'un enllaç amb un operador determinat. El apn, username i password s'han d'adaptar al que usis. |
68 | * En cas de que la targeta tingui pin ho podem posar amb _uci set network.wan2.pincode=1234_ |
||
69 | 6 | Pau Escrich | |
70 | |||
71 | h2. Anex |
||
72 | |||
73 | Diffconfig de node TPlink WDR4300/3600 amb qMp + software necessari per internet 3G. |
||
74 | |||
75 | <pre> |
||
76 | CONFIG_TARGET_ar71xx=y |
||
77 | CONFIG_TARGET_ar71xx_generic=y |
||
78 | CONFIG_TARGET_ar71xx_generic_TLWDR4300=y |
||
79 | CONFIG_ATH_USER_REGD=y |
||
80 | CONFIG_PACKAGE_altermap-agent=y |
||
81 | CONFIG_PACKAGE_b6m=y |
||
82 | CONFIG_PACKAGE_b6m-spread=y |
||
83 | CONFIG_PACKAGE_blkid=y |
||
84 | CONFIG_PACKAGE_block-mount=y |
||
85 | CONFIG_PACKAGE_bmon=y |
||
86 | CONFIG_PACKAGE_bmx6=y |
||
87 | CONFIG_PACKAGE_bmx6-json=y |
||
88 | CONFIG_PACKAGE_bmx6-sms=y |
||
89 | CONFIG_PACKAGE_bmx6-uci-config=y |
||
90 | CONFIG_PACKAGE_bwm=y |
||
91 | CONFIG_PACKAGE_cgi-bin-zero=y |
||
92 | CONFIG_PACKAGE_chat=y |
||
93 | CONFIG_PACKAGE_comgt=y |
||
94 | CONFIG_PACKAGE_curl=y |
||
95 | # CONFIG_PACKAGE_dnsmasq is not set |
||
96 | CONFIG_PACKAGE_dnsmasq-dhcpv6=y |
||
97 | CONFIG_PACKAGE_ebtables=y |
||
98 | CONFIG_PACKAGE_fping=y |
||
99 | CONFIG_PACKAGE_gwck-qmp=y |
||
100 | CONFIG_PACKAGE_ip=y |
||
101 | CONFIG_PACKAGE_iputils-arping=y |
||
102 | CONFIG_PACKAGE_iputils-clockdiff=y |
||
103 | CONFIG_PACKAGE_iputils-ping=y |
||
104 | CONFIG_PACKAGE_iputils-ping6=y |
||
105 | CONFIG_PACKAGE_iputils-tracepath=y |
||
106 | CONFIG_PACKAGE_ipv6calc=y |
||
107 | CONFIG_PACKAGE_iwinfo=y |
||
108 | CONFIG_PACKAGE_kmod-ath9k-htc=y |
||
109 | CONFIG_PACKAGE_kmod-ebtables=y |
||
110 | CONFIG_PACKAGE_kmod-ip6-tunnel=y |
||
111 | CONFIG_PACKAGE_kmod-ipip=y |
||
112 | CONFIG_PACKAGE_kmod-iptunnel4=y |
||
113 | CONFIG_PACKAGE_kmod-iptunnel6=y |
||
114 | CONFIG_PACKAGE_kmod-ipv6=y |
||
115 | CONFIG_PACKAGE_kmod-tun=y |
||
116 | CONFIG_PACKAGE_kmod-usb-ohci=y |
||
117 | CONFIG_PACKAGE_kmod-usb-serial=y |
||
118 | CONFIG_PACKAGE_kmod-usb-serial-option=y |
||
119 | CONFIG_PACKAGE_kmod-usb-serial-wwan=y |
||
120 | CONFIG_PACKAGE_kmod-usb-uhci=y |
||
121 | CONFIG_PACKAGE_libblkid=y |
||
122 | CONFIG_PACKAGE_libcurl=y |
||
123 | CONFIG_PACKAGE_libdaemon=y |
||
124 | CONFIG_PACKAGE_libiwinfo=y |
||
125 | CONFIG_PACKAGE_libiwinfo-lua=y |
||
126 | CONFIG_PACKAGE_liblua=y |
||
127 | CONFIG_PACKAGE_liblzo=y |
||
128 | CONFIG_PACKAGE_libncurses=y |
||
129 | CONFIG_PACKAGE_libopenssl=y |
||
130 | CONFIG_PACKAGE_libpcap=y |
||
131 | CONFIG_PACKAGE_libpthread=y |
||
132 | CONFIG_PACKAGE_librpc=y |
||
133 | CONFIG_PACKAGE_librt=y |
||
134 | CONFIG_PACKAGE_libsysfs=y |
||
135 | CONFIG_PACKAGE_libubus-lua=y |
||
136 | CONFIG_PACKAGE_libuci-lua=y |
||
137 | CONFIG_PACKAGE_libusb=y |
||
138 | CONFIG_PACKAGE_libuuid=y |
||
139 | CONFIG_PACKAGE_lsof=y |
||
140 | CONFIG_PACKAGE_lua=y |
||
141 | CONFIG_PACKAGE_luci=y |
||
142 | CONFIG_PACKAGE_luci-app-bmx6=y |
||
143 | CONFIG_PACKAGE_luci-app-firewall=y |
||
144 | CONFIG_PACKAGE_luci-i18n-english=y |
||
145 | CONFIG_PACKAGE_luci-lib-core=y |
||
146 | CONFIG_PACKAGE_luci-lib-httpclient=y |
||
147 | CONFIG_PACKAGE_luci-lib-ipkg=y |
||
148 | CONFIG_PACKAGE_luci-lib-json=y |
||
149 | CONFIG_PACKAGE_luci-lib-nixio=y |
||
150 | CONFIG_PACKAGE_luci-lib-sys=y |
||
151 | CONFIG_PACKAGE_luci-lib-web=y |
||
152 | CONFIG_PACKAGE_luci-mod-admin-core=y |
||
153 | CONFIG_PACKAGE_luci-mod-admin-full=y |
||
154 | CONFIG_PACKAGE_luci-proto-3g=y |
||
155 | CONFIG_PACKAGE_luci-proto-core=y |
||
156 | CONFIG_PACKAGE_luci-proto-ppp=y |
||
157 | CONFIG_PACKAGE_luci-sgi-cgi=y |
||
158 | CONFIG_PACKAGE_luci-ssl=y |
||
159 | CONFIG_PACKAGE_luci-theme-base=y |
||
160 | CONFIG_PACKAGE_luci-theme-bootstrap=y |
||
161 | CONFIG_PACKAGE_luci-theme-qmp=y |
||
162 | CONFIG_PACKAGE_mtr=y |
||
163 | CONFIG_PACKAGE_ndisc6=y |
||
164 | CONFIG_PACKAGE_netperf=y |
||
165 | CONFIG_PACKAGE_olsrd=y |
||
166 | CONFIG_PACKAGE_olsrd-mod-arprefresh=y |
||
167 | CONFIG_PACKAGE_olsrd-mod-httpinfo=y |
||
168 | CONFIG_PACKAGE_olsrd-mod-txtinfo=y |
||
169 | CONFIG_PACKAGE_olsrd-mod-watchdog=y |
||
170 | CONFIG_PACKAGE_openssl-util=y |
||
171 | CONFIG_PACKAGE_ppp-multilink=y |
||
172 | CONFIG_PACKAGE_pppstats=y |
||
173 | CONFIG_PACKAGE_pv=y |
||
174 | CONFIG_PACKAGE_px5g=y |
||
175 | CONFIG_PACKAGE_qmp-big-node=y |
||
176 | CONFIG_PACKAGE_qmp-small-node=y |
||
177 | CONFIG_PACKAGE_qmp-ssh-keys=y |
||
178 | CONFIG_PACKAGE_qmp-system=y |
||
179 | CONFIG_PACKAGE_qmp-tiny-node=y |
||
180 | CONFIG_PACKAGE_qmp-tinyproxy=y |
||
181 | CONFIG_PACKAGE_radvd=y |
||
182 | CONFIG_PACKAGE_rdisc6=y |
||
183 | CONFIG_PACKAGE_swap-utils=y |
||
184 | CONFIG_PACKAGE_synctincvpn=y |
||
185 | CONFIG_PACKAGE_tcpdump-mini=y |
||
186 | CONFIG_PACKAGE_terminfo=y |
||
187 | CONFIG_PACKAGE_tinc=y |
||
188 | CONFIG_PACKAGE_tinymce=y |
||
189 | CONFIG_PACKAGE_uboot-ar71xx-nbg460n_550n_550nh=y |
||
190 | CONFIG_PACKAGE_udev=y |
||
191 | CONFIG_PACKAGE_uhttpd=y |
||
192 | CONFIG_PACKAGE_uhttpd-mod-ubus=y |
||
193 | CONFIG_PACKAGE_usb-modeswitch=y |
||
194 | CONFIG_PACKAGE_usb-modeswitch-data=y |
||
195 | CONFIG_PACKAGE_wget=y |
||
196 | CONFIG_PACKAGE_wget-nossl=y |
||
197 | CONFIG_PACKAGE_wireless-tools=y |
||
198 | CONFIG_PACKAGE_zlib=y |
||
199 | </pre> |