Re: u3g support for Option Icon 031 modem

2010-09-15 Thread Piotr Isajew
Hi Frederik,

just checked. It works out of the box with hso driver, without need of
any patching (googling led me to u3g first).

Thanks for your hint.

Piotr


On Wed, Sep 15, 2010 at 02:40:29PM +0200, Fredrik Lindberg wrote:
> On 09/14/2010 02:53 PM, Piotr Isajew wrote:
> >Hi,
> >
> >I made some tests and it appears to work (AT commands as well as PPP
> >connections), but patching u3g.c (at least on 8.1-STABLE) is required
> >for it to work.
> >
> >Regards,
> >
> >Piotr
> 
> Did you try the uhso driver?  I think 031 is an older device with
> only plain serial ports so I guess it doesn't matter really.
> 
> Fredrik
> 
> 
> 


pgppfzpKd16tF.pgp
Description: PGP signature


Re: u3g support for Option Icon 031 modem

2010-09-15 Thread Fredrik Lindberg

On 09/14/2010 02:53 PM, Piotr Isajew wrote:

Hi,

I made some tests and it appears to work (AT commands as well as PPP
connections), but patching u3g.c (at least on 8.1-STABLE) is required
for it to work.

Regards,

Piotr


Did you try the uhso driver?  I think 031 is an older device with
only plain serial ports so I guess it doesn't matter really.

Fredrik

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: u3g support for Option Icon 031 modem

2010-09-14 Thread Piotr Isajew
On Tue, Sep 14, 2010 at 10:16:56PM +0200, Hans Petter Selasky wrote:
> On Tuesday 14 September 2010 14:53:11 Piotr Isajew wrote:
> > Hi,
> > 
> > I made some tests and it appears to work (AT commands as well as PPP
> > connections), but patching u3g.c (at least on 8.1-STABLE) is required
> > for it to work.
> > 
> > Regards,
> > 
> > Piotr
> 
> Hi,
> 
> Could you dump the device descriptor using usbconfig for your device? I just 
> want to verify your patch before committing it. And also send dmesg.
> 
> --HPS
> 
> 
Sure,

mbp# usbconfig -d ugen6.3 dump_device_desc
ugen6.3:  at usbus6, cfg=0 
md=HOST spd=FULL (12Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0110 
  bDeviceClass = 0x00ff 
  bDeviceSubClass = 0x00ff 
  bDeviceProtocol = 0x00ff 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x0af0 
  idProduct = 0xc031 
  bcdDevice = 0x0100 
  iManufacturer = 0x0001  
  iProduct = 0x0002  
  iSerialNumber = 0x0003  
  bNumConfigurations = 0x0001 

and dmesg output below:

Copyright (c) 1992-2010 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 8.1-STABLE #6: Tue Sep 14 14:27:14 CEST 2010
r...@mbp.home.aster.pl:/usr/obj/usr/src/sys/MBP i386
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 Duo CPU T7500  @ 2.20GHz (2194.52-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6fa  Family = 6  Model = f  Stepping = 10
  
Features=0xbfebfbff
  Features2=0xe3bd
  AMD Features=0x2010
  AMD Features2=0x1
  TSC: P-state invariant
real memory  = 2147483648 (2048 MB)
avail memory = 2073612288 (1977 MB)
ACPI APIC Table: 
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
ioapic0: Changing APIC ID to 1
ioapic0  irqs 0-23 on motherboard
kbd0 at kbdmux0
acpi0:  on motherboard
acpi0: [ITHREAD]
acpi_ec0:  port 0x62,0x66 on acpi0
acpi0: Power Button (fixed)
Timecounter "HPET" frequency 14318180 Hz quality 900
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0:  on acpi0
cpu1:  on acpi0
acpi_acad0:  on acpi0
acpi_lid0:  on acpi0
acpi_lid0: enable wake failed
acpi_button0:  on acpi0
acpi_button1:  on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
vgapci0:  port 0x5000-0x507f mem 
0x9200-0x92ff,0x8000-0x8fff,0x9000-0x91ff irq 16 at 
device 0.0 on pci1
uhci0:  port 0x60c0-0x60df irq 20 at 
device 26.0 on pci0
uhci0: [ITHREAD]
usbus0:  on uhci0
uhci1:  port 0x60a0-0x60bf irq 16 at 
device 26.1 on pci0
uhci1: [ITHREAD]
usbus1:  on uhci1
ehci0:  mem 
0x9b504c00-0x9b504fff irq 21 at device 26.7 on pci0
ehci0: [ITHREAD]
usbus2: EHCI version 1.0
usbus2:  on ehci0
pci0:  at device 27.0 (no driver attached)
pcib2:  at device 28.0 on pci0
pci2:  on pcib2
pcib3:  at device 28.2 on pci0
pci3:  on pcib3
pcib4:  at device 28.4 on pci0
pci11:  on pcib4
ath0:  mem 0x9730-0x9730 irq 16 at device 0.0 on pci11
ath0: [ITHREAD]
ath0: AR5418 mac 12.10 RF5133 phy 8.1
pcib5:  at device 28.5 on pci0
pci12:  on pcib5
mskc0:  port 0x3000-0x30ff mem 
0x9720-0x97203fff irq 17 at device 0.0 on pci12
msk0:  on mskc0
msk0: Ethernet address: 00:1b:63:9f:a6:cd
miibus0:  on msk0
e1000phy0:  PHY 0 on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
mskc0: [ITHREAD]
uhci2:  port 0x6080-0x609f irq 16 at 
device 29.0 on pci0
uhci2: [ITHREAD]
uhci2: LegSup = 0x3000
usbus3:  on uhci2
uhci3:  port 0x6060-0x607f irq 18 at 
device 29.1 on pci0
uhci3: [ITHREAD]
usbus4:  on uhci3
uhci4:  port 0x6040-0x605f irq 21 at 
device 29.2 on pci0
uhci4: [ITHREAD]
uhci4: LegSup = 0x3000
usbus5:  on uhci4
ehci1:  mem 
0x9b504800-0x9b504bff irq 20 at device 29.7 on pci0
ehci1: [ITHREAD]
usbus6: EHCI version 1.0
usbus6:  on ehci1
pcib6:  at device 30.0 on pci0
pci13:  on pcib6
fwohci0:  mem 
0x97104000-0x971047ff,0x9710-0x97103fff at device 3.0 on pci13
fwohci0: [ITHREAD]
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:1c:b3:ff:fe:a8:60:0a
fwohci0: invalid speed 7 (fixed to 3).
fwohci0: Phy 1394a available S800, 3 ports.
fwohci0: Link S800, max_rec 4096 bytes.
firewire0:  on fwohci0
fwe0:  on firewire0
if_fwe0: Fake Ethernet address: 02:1c:b3:a8:60:0a
fwe0: Ethernet address: 02:1c:b3:a8:60:0a
fwip0:  on firewire0
fwip0: Firewire address: 00:1c:b3:ff:fe:a8:60:0a @ 0xfffe, S800, maxrec 
4096
dcons_crom0:  on firewire0
dcons_crom0: bus_addr 0x7ca94000
fwohci0: Initiate bus reset
fwohci0: fwohci_intr_core: BUS reset
fwohci0: fwohci_intr_core: node_id=0x, SelfID Count=1, CYCLEMASTER mode
isab0:  at device 31.0 on pci0
isa0:  on isab0
atapci0:  port 
0x1f0-0x1f7,0x3f6,0x170-0x1

Re: u3g support for Option Icon 031 modem

2010-09-14 Thread Hans Petter Selasky
On Tuesday 14 September 2010 14:53:11 Piotr Isajew wrote:
> Hi,
> 
> I made some tests and it appears to work (AT commands as well as PPP
> connections), but patching u3g.c (at least on 8.1-STABLE) is required
> for it to work.
> 
> Regards,
> 
> Piotr

Hi,

Could you dump the device descriptor using usbconfig for your device? I just 
want to verify your patch before committing it. And also send dmesg.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


u3g support for Option Icon 031 modem

2010-09-14 Thread Piotr Isajew
Hi,

I made some tests and it appears to work (AT commands as well as PPP
connections), but patching u3g.c (at least on 8.1-STABLE) is required
for it to work.

Regards,

Piotr
--- u3g.c.orig  2010-08-07 21:08:39.0 +0200
+++ u3g.c   2010-09-14 14:13:02.0 +0200
@@ -336,6 +336,7 @@
U3G_DEV(OPTION, GTMAXHSUPA, 0),
U3G_DEV(OPTION, GTMAXHSUPAE, 0),
U3G_DEV(OPTION, VODAFONEMC3G, 0),
+   U3G_DEV(OPTION, ICONEDGE, U3GINIT_REZERO),
U3G_DEV(QISDA, H20_1, 0),
U3G_DEV(QISDA, H20_2, 0),
U3G_DEV(QISDA, H21_1, 0),


pgpV6SP7Nr157.pgp
Description: PGP signature