Re: FreeBSD 9 and 3G Modems
On Wed, Jan 25, 2012 at 18:54, Mike Tancsa m...@sentex.net wrote: On 1/25/2012 5:43 AM, Odhiambo Washington wrote: I have a Huawei E1820 I will also try RTFM. Hi, kldload u3g kldload umodem Done, although kldload u3g tells me that file already exists! Perhaps because I booted up with my Huawei dongle plugged in. kldstat | grep u3g shows me nothing though. plug in the modem Show the output of usbconfig [wash@pcbsd9] /home/wash# usbconfig ugen0.1: UHCI root HUB Intel at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen1.1: UHCI root HUB Intel at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen2.1: EHCI root HUB Intel at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen3.1: UHCI root HUB Intel at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen4.1: UHCI root HUB Intel at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen5.1: UHCI root HUB Intel at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen6.1: EHCI root HUB Intel at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen6.2: HUAWEI Mobile Huawei Technologies at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: BCM2045B Broadcom Corp at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.3: Biometric Coprocessor STMicroelectronics at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen3.2: Microsoft Nano Transceiver v1.0 Microsoft at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON then sysctl -a dev.u3g [wash@pcbsd9] /home/wash# sysctl -a dev.u3g dev.u3g.0.%desc: Huawei Technologies HUAWEI Mobile, class 0/0, rev 2.00/0.00, addr 2 dev.u3g.0.%driver: u3g dev.u3g.0.%location: bus=1 hubaddr=1 port=6 devaddr=2 interface=0 dev.u3g.0.%pnpinfo: vendor=0x12d1 product=0x1001 devclass=0x00 devsubclass=0x00 sernum= release=0x mode=host intclass=0xff intsubclass=0xff intprotocol=0xff ttyname=U0 ttyports=3 dev.u3g.0.%parent: uhub and ls -l /dev/cuaU* [wash@pcbsd9] /home/wash# ls -l /dev/cuaU* crw-rw 1 uucp dialer0, 117 Jan 26 18:23 /dev/cuaU0.0 crw-rw 1 uucp dialer0, 118 Jan 26 18:23 /dev/cuaU0.0.init crw-rw 1 uucp dialer0, 119 Jan 26 18:23 /dev/cuaU0.0.lock crw-rw 1 uucp dialer0, 123 Jan 26 18:23 /dev/cuaU0.1 crw-rw 1 uucp dialer0, 124 Jan 26 18:23 /dev/cuaU0.1.init crw-rw 1 uucp dialer0, 125 Jan 26 18:23 /dev/cuaU0.1.lock crw-rw 1 uucp dialer0, 129 Jan 26 18:23 /dev/cuaU0.2 crw-rw 1 uucp dialer0, 130 Jan 26 18:23 /dev/cuaU0.2.init crw-rw 1 uucp dialer0, 131 Jan 26 18:23 /dev/cuaU0.2.lock and dmesg [wash@pcbsd9] /home/wash# dmesg Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-RELEASE #3: Tue Dec 27 14:14:29 PST 2011 r...@build9x64.pcbsd.org:/usr/obj/builds/amd64/pcbsd-build90/fbsd-source/9.0/sys/GENERIC amd64 CPU: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz (1995.05-MHz K8-class CPU) Origin = GenuineIntel Id = 0x6fa Family = 6 Model = f Stepping = 10 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM AMD Features=0x20100800SYSCALL,NX,LM AMD Features2=0x1LAHF TSC: P-state invariant, performance statistics real memory = 4294967296 (4096 MB) avail memory = 4000251904 (3814 MB) Event timer LAPIC quality 400 ACPI APIC Table: LENOVO TP-7L FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ACPI Warning: 32/64X length mismatch in Gpe1Block: 0/32 (20110527/tbfadt-556) ACPI Warning: Optional field Gpe1Block has zero address or length: 0x102C/0x0 (20110527/tbfadt-586) ioapic0: Changing APIC ID to 1 ioapic0 Version 2.0 irqs 0-23 on motherboard kbd1 at kbdmux0 cryptosoft0: software crypto on motherboard acpi0: LENOVO TP-7L on motherboard CPU0: local APIC error 0x40 acpi_ec0: Embedded Controller: GPE 0x12, ECDT port 0x62,0x66 on acpi0 acpi0: Power Button (fixed) acpi0: reservation of 0, a (3) failed acpi0: reservation of 10, bff0 (3) failed Timecounter ACPI-fast frequency 3579545 Hz quality 900 acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0 cpu0: ACPI CPU on acpi0 cpu1: ACPI CPU on acpi0 acpi_lid0: Control Method Lid Switch on acpi0 acpi_button0: Sleep Button on acpi0 pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0 pci0: ACPI PCI bus on pcib0 pcib1: ACPI PCI-PCI bridge irq 16 at device 1.0 on pci0 pci1: ACPI PCI bus on pcib1 vgapci0: VGA-compatible display port 0x2000-0x207f mem 0xd600-0xd6ff,0xe000-0xefff,0xd400-0xd5ff irq 16 at device 0.0 o n pci1 nvidia0: Quadro NVS 140M on vgapci0 vgapci0: child nvidia0 requested pci_enable_io
Re: FreeBSD 9 and 3G Modems
On 1/26/2012 10:58 AM, Odhiambo Washington wrote: Hi, kldload u3g kldload umodem Done, although kldload u3g tells me that file already exists! Perhaps because I booted up with my Huawei dongle plugged in. kldstat | grep u3g shows me nothing though. Looks like its already defined in the kernel! ugen6.2: HUAWEI Mobile Huawei Technologies at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON It sees it. then sysctl -a dev.u3g [wash@pcbsd9] /home/wash# sysctl -a dev.u3g dev.u3g.0.%desc: Huawei Technologies HUAWEI Mobile, class 0/0, rev 2.00/0.00, addr 2 dev.u3g.0.%driver: u3g dev.u3g.0.%location: bus=1 hubaddr=1 port=6 devaddr=2 interface=0 dev.u3g.0.%pnpinfo: vendor=0x12d1 product=0x1001 devclass=0x00 devsubclass=0x00 sernum= release=0x mode=host intclass=0xff intsubclass=0xff intprotocol=0xff ttyname=U0 ttyports=3 dev.u3g.0.%parent: uhub More importantly, the driver sees it and has used cuaU0.* and ls -l /dev/cuaU* [wash@pcbsd9] /home/wash# ls -l /dev/cuaU* crw-rw 1 uucp dialer0, 117 Jan 26 18:23 /dev/cuaU0.0 crw-rw 1 uucp dialer0, 118 Jan 26 18:23 /dev/cuaU0.0.init crw-rw 1 uucp dialer0, 119 Jan 26 18:23 /dev/cuaU0.0.lock crw-rw 1 uucp dialer0, 123 Jan 26 18:23 /dev/cuaU0.1 crw-rw 1 uucp dialer0, 124 Jan 26 18:23 /dev/cuaU0.1.init crw-rw 1 uucp dialer0, 125 Jan 26 18:23 /dev/cuaU0.1.lock crw-rw 1 uucp dialer0, 129 Jan 26 18:23 /dev/cuaU0.2 crw-rw 1 uucp dialer0, 130 Jan 26 18:23 /dev/cuaU0.2.init crw-rw 1 uucp dialer0, 131 Jan 26 18:23 /dev/cuaU0.2.lock This is where you need to do a bit of experimenting. Some modems register these sub ports and others do not. Some are for out of band control and one will be the device you actually use in your ppp config. The init string sort of depends on your carrier. But a basic one to try in ppp.conf is below. For the set device line, you might need to change it to /dev/cuaU0.1 or /dev/cuaU0.2 invoke with ppp -ddial u3g You might need the authname and auth key, you might not. For the context you might need to change it from internet.com to something else. Again, ask your carrier for that info. Try first without the CGDCONT line as the default in the modem might do the trick. u3g: set device /dev/cuaU0.0 set server /var/run/gprs-internet 0177 set speed 921600 set timeout 0 set authname wapuser1 set authkey wap set dial ABORT BUSY TIMEOUT 2 \ \\ \ AT OK-AT-OK \ AT+CFUN=1 OK-AT-OK \ AT+CMEE=2 OK-AT-OK \ AT+CSQ OK \ AT+CGDCONT=1,\\\IP\\\,\\\internet.com\\\ OK \ ATv OK \ ATD*99# CONNECT set crtscts on disable vjcomp disable acfcomp disable deflate disable deflate24 disable pred1 disable protocomp disable mppe disable ipv6cp disable lqr disable echo #nat enable yes enable dns resolv writable set dns 8.8.8.8 set ifaddr 10.1.0.2/0 10.1.0.1/0 255.255.255.255 0.0.0.0 add default HISADDR # See ppp.link* -- --- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, m...@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 9 and 3G Modems
On Thu, Jan 26, 2012 at 19:12, Mike Tancsa m...@sentex.net wrote: On 1/26/2012 10:58 AM, Odhiambo Washington wrote: Hi, kldload u3g kldload umodem Done, although kldload u3g tells me that file already exists! Perhaps because I booted up with my Huawei dongle plugged in. kldstat | grep u3g shows me nothing though. Looks like its already defined in the kernel! ugen6.2: HUAWEI Mobile Huawei Technologies at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON It sees it. then sysctl -a dev.u3g [wash@pcbsd9] /home/wash# sysctl -a dev.u3g dev.u3g.0.%desc: Huawei Technologies HUAWEI Mobile, class 0/0, rev 2.00/0.00, addr 2 dev.u3g.0.%driver: u3g dev.u3g.0.%location: bus=1 hubaddr=1 port=6 devaddr=2 interface=0 dev.u3g.0.%pnpinfo: vendor=0x12d1 product=0x1001 devclass=0x00 devsubclass=0x00 sernum= release=0x mode=host intclass=0xff intsubclass=0xff intprotocol=0xff ttyname=U0 ttyports=3 dev.u3g.0.%parent: uhub More importantly, the driver sees it and has used cuaU0.* and ls -l /dev/cuaU* [wash@pcbsd9] /home/wash# ls -l /dev/cuaU* crw-rw 1 uucp dialer0, 117 Jan 26 18:23 /dev/cuaU0.0 crw-rw 1 uucp dialer0, 118 Jan 26 18:23 /dev/cuaU0.0.init crw-rw 1 uucp dialer0, 119 Jan 26 18:23 /dev/cuaU0.0.lock crw-rw 1 uucp dialer0, 123 Jan 26 18:23 /dev/cuaU0.1 crw-rw 1 uucp dialer0, 124 Jan 26 18:23 /dev/cuaU0.1.init crw-rw 1 uucp dialer0, 125 Jan 26 18:23 /dev/cuaU0.1.lock crw-rw 1 uucp dialer0, 129 Jan 26 18:23 /dev/cuaU0.2 crw-rw 1 uucp dialer0, 130 Jan 26 18:23 /dev/cuaU0.2.init crw-rw 1 uucp dialer0, 131 Jan 26 18:23 /dev/cuaU0.2.lock This is where you need to do a bit of experimenting. Some modems register these sub ports and others do not. Some are for out of band control and one will be the device you actually use in your ppp config. The init string sort of depends on your carrier. But a basic one to try in ppp.conf is below. For the set device line, you might need to change it to /dev/cuaU0.1 or /dev/cuaU0.2 invoke with ppp -ddial u3g You might need the authname and auth key, you might not. For the context you might need to change it from internet.com to something else. Again, ask your carrier for that info. Try first without the CGDCONT line as the default in the modem might do the trick. u3g: set device /dev/cuaU0.0 set server /var/run/gprs-internet 0177 set speed 921600 set timeout 0 set authname wapuser1 set authkey wap set dial ABORT BUSY TIMEOUT 2 \ \\ \ AT OK-AT-OK \ AT+CFUN=1 OK-AT-OK \ AT+CMEE=2 OK-AT-OK \ AT+CSQ OK \ AT+CGDCONT=1,\\\IP\\\,\\\internet.com\\\ OK \ ATv OK \ ATD*99# CONNECT set crtscts on disable vjcomp disable acfcomp disable deflate disable deflate24 disable pred1 disable protocomp disable mppe disable ipv6cp disable lqr disable echo #nat enable yes enable dns resolv writable set dns 8.8.8.8 set ifaddr 10.1.0.2/0 10.1.0.1/0 255.255.255.255 0.0.0.0 add default HISADDR # See ppp.link* Hi Mike, I guess the internet.com in AT+CGDCONT=1,\\\IP\\\,\\\internet.com\\\ OK \ refer to the APN? I know I need to read ppp.conf again soon :) ppp.log: Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: default: set timeout 180 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: default: enable dns Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set device /dev/cuaU0.0 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set server /var/run/gprs-internet 0177 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Warning: Local: bind: Address already in use Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Warning: set server: Failed 2 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set speed 921600 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set timeout 0 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set authname saf Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set authkey Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set dial ABORT BUSY TIMEOUT 2AT OK-AT-OKAT+CFUN=1 OK-AT-OK AT+CMEE=2 OK-AT-OKAT+CSQ OK AT+CGDCONT=1,\IP\,\safaricom\ OKATv OKATD*99# CONNECT Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set crtscts on Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable vjcomp Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable acfcomp Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable deflate Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable deflate24 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable pred1 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable protocomp Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable mppe Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command:
Re: FreeBSD 9 and 3G Modems
Odhiambo Washington odhia...@gmail.com writes: On Wed, Jan 25, 2012 at 18:54, Mike Tancsa m...@sentex.net wrote: On 1/25/2012 5:43 AM, Odhiambo Washington wrote: I have a Huawei E1820 I will also try RTFM. Hi, kldload u3g kldload umodem Done, although kldload u3g tells me that file already exists! Perhaps because I booted up with my Huawei dongle plugged in. kldstat | grep u3g shows me nothing though. The command 'kldstat -v' shows that u3g is already compiled in for the 9.0-RELEASE kernel. -- Carl Johnsonca...@peak.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 9 and 3G Modems
On 1/26/2012 12:00 PM, Odhiambo Washington wrote: Hi Mike, I guess the internet.com http://internet.com in AT+CGDCONT=1,\\\IP\\\,\\\internet.com http://internet.com/\\\ OK \ refer to the APN? I know I need to read ppp.conf again soon :) Hi, Yes, thats the APN. Your APN seems to be safaricom. Also, get rid of the line that has atv. Thats confusing your modem. ---Mike -- --- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, m...@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 9 and 3G Modems
On Tue, Jan 24, 2012 at 19:37, Mike Tancsa m...@sentex.net wrote: On 1/24/2012 10:56 AM, Odhiambo Washington wrote: I am Google-ing for a recent definitive HOWTO use my 3G modem with FreeBSD/PC-BSD and what I get seem rather old. Someone can point me to a recent document detailing the steps. I have PC-BSD 9 on my laptop. Most of them just come up as cuaU* devices, but not all. The method to use them has not really changed, so chances are what you have found via google will still work. Take a look at the relevant man pages. man u3g What type of modem do you have ? Hi Mike, I have a Huawei E1820 I will also try RTFM. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 9 and 3G Modems
On Tue, Jan 24, 2012 at 21:48, Alejandro Imass a...@p2ee.org wrote: On Tue, Jan 24, 2012 at 10:56 AM, Odhiambo Washington odhia...@gmail.com wrote: I am Google-ing for a recent definitive HOWTO use my 3G modem with FreeBSD/PC-BSD and what I get seem rather old. Which one? You need to specifiy modem brand/model and network provider to see if other have got that particular one working. Also check the Linux crowd (Ubuntu in particular) and then extrapolate to FBSD. I have a Huawei E1820 and I am in KE, using Safaricom. Someone can point me to a recent document detailing the steps. I have PC-BSD 9 on my laptop. Usually it's just a question of making the kernel mount the tty and the dial using something like wvdial. If it's popular and supported it's pretty easy, if not is still possible. Supporting the modem is usually a two layer problem first solving the multi-device problem on the USB bus, that is, selecting the correct device available (i.e. selecting the modem instead of the flash that contains the windows software), and then the actual kernel or userspace driver for that specific device (ZTE, Enfora, etc.). Luckily, I already disabled the flash/virtual CD-ROM that the modem contains. I got the AT string combo to do this. I also have one ZTE dongle that I don't want to talk about because I haven't managed to find a way to disable the virtual CD-ROM it contains. Ultimately, you get a serial modem and you just have to use AT command to dial, etc. and wvdial does a great job and it's quite easy to set-up and run. You know, sometimes all this process is what makes people shy off of *BSD. I am a diehard lover of FreeBSD, but the few times I have installed Linux on my laptop, this whole process was a breeze... well, not quite, but not as difficult as it is in FreeBSD. Luckily, I use WiFi more than I use 3G, so it's never quite bothered me. Even now, I just want to see how easy it can be on PC-BSD/FreeBSD, with a GUI to boot, if there is, but I do not feel it is such a big necessity for me, because I have D-Link DIR-825 which can use this modem on it's USB port and allow me to use 3G. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 9 and 3G Modems
On Wed, Jan 25, 2012 at 09:23, Ivan Frosty ivanfro...@gmail.com wrote: The FreeBSD u3g driver ¶¶ Introduction ¶¶ This driver supports 3G (UMTS, HSDPA, HSUPA, HSPA) cards that provide access to one or more serial ports through a USB interface, providing PPP and AT command channels simultaneously. Some devices provide access to multiple pairs of channels for integrated GPS', or other access methods (Option HSO driver). Transfer speeds should be above 30k on a good UMTS connection and a fast server: % curl -o /dev/null ftp://ftp.nl.freebsd.org/pub/FreeBSD/ls-lR.gz % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload TotalSpent Left Speed 12 19.9M 12 2486k0 0 40203 0 0:08:39 0:01:03 0:07:36 43921 Some (older) devices (from Sierra for example) provide 1 serial port through a normal serial port or the normal serial USB drivers. They usually support the ETSI / 3GPP 27.010 3GPPMultiplexProtocol, making it possible to open a AT command channel and a PPP connection channel simultaneously. A basic implementation which works on an Option Globetrotter GPRS card is available. Contact me for details. Verified to work ¶¶ See the man page. Installation instructions ¶¶ The driver is available in both FreeBSD 7 and FreeBSD 8. The one in FreeBSD 8 and up was written by Hans Petter Selasky. Consult freebsd-usb@… for more information and bug reports. The driver from FreeBSD 7 should be usable on FreeBSD 6, without too many changes. You will need to patch ucom.c though with the attached patch (see below). Tricks ¶¶ To start your connection automatically use something like the following snippet in your devd.conf: attach 100 { device-name ucom[0-9]+; match vendor 0x12d1; match product 0x1003; action /usr/sbin/ppp -ddial kpn; }; Some people have been able to get their device to successfully switch from driver mode to modem mode using usb_modeswitch. You can compile it on !FreeBSD with cc -L /usr/local/lib -I/usr/local/include -lusb -o usb_modeswitch usb_modeswitch.c if you have libusb installed. The mass storage devices the devices present should be available through ugen. Note that umass must not be present in your kernel nor as a module (or it should be made to ignore these devices). To see signal strength for example while online: Start ppp (See also PPPFor3GModems). prolly that could help. I read this, but one thing I am sure about is that those details need to be changed to reflect what I have on my system. But I'm trying to see if there is an easier way out. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 9 and 3G Modems
El día Tuesday, January 24, 2012 a las 10:23:18PM -0800, Ivan Frosty escribió: The FreeBSD u3g driver ¶¶ Introduction ¶¶ This driver supports 3G (UMTS, HSDPA, HSUPA, HSPA) cards that provide access to one or more serial ports through a USB interface, providing PPP and AT command channels simultaneously. Some devices provide access to multiple pairs of channels for integrated GPS', or other access methods (Option HSO driver). Transfer speeds should be above 30k on a good UMTS connection and a fast server: ... I'm using for years now the u3g(4) driver in 8-CURRENT, 9- and 10-CURRENT; it just works fine with ppp(8) and gives, if the provider has no bottle-nack in channels, up to 2 Mbps down- and 1 Mbps upstream; I'm using USB Huawei dongles or USB sticks. There is nearly nothing magic, it just works: you plug in the key, some devd(8) hook sends down the PIN to the created serial device, and I start ppp(8) by hand (could be done as well from a devd(8) hook); HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 9 and 3G Modems
On 1/25/2012 5:43 AM, Odhiambo Washington wrote: I have a Huawei E1820 I will also try RTFM. Hi, kldload u3g kldload umodem plug in the modem Show the output of usbconfig then sysctl -a dev.u3g and ls -l /dev/cuaU* and dmesg On some 3g sticks, you have to send a command to put them in modem mode. Typically this is done by 'ejecting the cd' camcontrol eject pass0 But the driver knows of most of the variants out there and does that automatically for you. ---Mike -- --- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, m...@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 9 and 3G Modems
On Wed, Jan 25, 2012 at 5:50 AM, Odhiambo Washington odhia...@gmail.com wrote: [...] You know, sometimes all this process is what makes people shy off of *BSD. I am a diehard lover of FreeBSD, but the few times I have installed Linux on my laptop, this whole process was a breeze... well, not quite, but not as difficult as it is in FreeBSD. Luckily, I use WiFi more than I use 3G, so it's never quite bothered me. Even now, I just want to see how easy it can be on PC-BSD/FreeBSD, with a GUI to boot, if there is, but I do not feel it is such a big necessity for me, because I have D-Link DIR-825 which can use this modem on it's USB port and allow me to use 3G. It used to be like that in Linux as well. It's only until recently that the netowrk manager app supports 3g modems. The problem is when these graphical apps fail you have virtually no way to see what's going on, just plug and pray. If you get the tty, using Wvdial is actuall much easier than any other dialing/ppp tool I've ever used. So even on Linuxes with NM applet and 3g modem support I would use Wvdial, and on FBSD especially! wvdial is much more robust than the nm apps, IMHO. -- Alejandro Imass ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 9 and 3G Modems
On 1/24/2012 10:56 AM, Odhiambo Washington wrote: I am Google-ing for a recent definitive HOWTO use my 3G modem with FreeBSD/PC-BSD and what I get seem rather old. Someone can point me to a recent document detailing the steps. I have PC-BSD 9 on my laptop. Most of them just come up as cuaU* devices, but not all. The method to use them has not really changed, so chances are what you have found via google will still work. Take a look at the relevant man pages. man u3g What type of modem do you have ? ---Mike -- --- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, m...@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org