Re: How to achieve O_TTY_INIT when opening a USB modem?

2019-11-25 Thread Jeffrey Walton
On Sun, Nov 24, 2019 at 10:10 PM Philip Guenther  wrote:
>
> On Sun, Nov 24, 2019 at 3:11 AM Jeffrey Walton  wrote:
>>
>> I am struggling to get a USB modem and terminal configured properly
>> under OpenBSD. The same code on Linux is fine. The symptom I am seeing
>> is a hung read() after issuing ATZ\r to the modem.
>>
>> I'm guessing there's an uninitialized field in my struct termios tty.
>
> I'm not sure what you mean by that.  Do you mean you're concerned that you're 
> you making a tcsetattr(3) call on an incompletely initialized structure?  Or 
> do you mean you're concerned that the initial configuration of the tty 
> provided by the kernel is in a "not good" state?

I think cfmakeraw is not initializing the structure properly. It is an
intermittent failure.

Attached is a reproducer. Valgrind lights up like a christmas tree on
the reproducer. The results are so bad I am pretty sure the problem is
with Valgrind, not the reproducer.

Jeff
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

#if defined(__linux__)
# define MODEM "/dev/ttyACM0"
#elif defined(__APPLE__)
# define MODEM "/dev/cu.usbmodem001"
#elif defined(__OpenBSD__)
# define MODEM "/dev/cuaU0"
#endif

static void make_blocking(int fd)
{
const int old = fcntl(fd, F_GETFL, 0);
fcntl(fd, F_SETFL, old & ~(int)O_NONBLOCK);
}

static void make_nonblocking(int fd)
{
const int old = fcntl(fd, F_GETFL, 0);
fcntl(fd, F_SETFL, old | (int)O_NONBLOCK);
}

/* gcc -Wall -g3 -O1 -std=c99 test.c -o test.exe */
int main(int argc, char* argv[])
{
	int fd = open(MODEM, O_RDWR | O_NOCTTY | O_SYNC);
	if (fd == -1) {
		printf("open failed\n");
		goto finish;
	}

if (ioctl(fd, TIOCEXCL, NULL) == -1) {
		printf("ioctl failed\n");
		goto finish;
}

struct termios tty;
	memset(, 0, sizeof(tty));

cfmakeraw();
tty.c_cflag |= (CLOCAL | CRTSCTS);
// tty.c_cflag &= ~CSTOPB;  /* 1 stop bit */
// tty.c_cflag |=  CSTOPB;  /* 2 stop bit */

cfsetospeed(, B57600);
cfsetispeed(, B57600);

if (tcsetattr(fd, TCSANOW, ) != 0) {
		printf("tcsetattr failed\n");
		goto finish;
}

if (tcflush(fd, TCIOFLUSH) != 0) {
		printf("tcflush failed\n");
		goto finish;
}

	/*** Write ***/

	ssize_t res = write(fd, "ATZ\r", 4);
if (res == -1) {
		printf("write failed\n");
		goto finish;
}
	
	res = tcdrain(fd);
if (res == -1) {
		printf("tcdrain failed\n");
		goto finish;
}

	printf("Wrote: ATZ\n");

	/*** Read ***/

	make_blocking(fd);

	for ( ; ; )
	{
		unsigned char buf[512];
		res = read(fd, buf, sizeof(buf));
		if (res == -1 && errno == EWOULDBLOCK) {
			break;
		}
		else if (res == -1) {
			printf("read failed\n");
			goto finish;
		}

		make_nonblocking(fd);

		buf[res] = '\0';
		printf("Read: %s\n", buf);
	}

finish:

	if (fd != -1)
		close(fd);
	
	return 0;
}


Re: How to achieve O_TTY_INIT when opening a USB modem?

2019-11-24 Thread Jeffrey Walton
On Sun, Nov 24, 2019 at 11:01 PM Philip Guenther  wrote:
>
> On Sun, Nov 24, 2019 at 7:53 PM Jeffrey Walton  wrote:
>>
>> On Sun, Nov 24, 2019 at 10:10 PM Philip Guenther  wrote:
>> >
>> > On Sun, Nov 24, 2019 at 3:11 AM Jeffrey Walton  wrote:
>> >>
>> >> I am struggling to get a USB modem and terminal configured properly
>> >> under OpenBSD. The same code on Linux is fine. The symptom I am seeing
>> >> is a hung read() after issuing ATZ\r to the modem.
>> >>
>> >> I'm guessing there's an uninitialized field in my struct termios tty.
>> >
>> > I'm not sure what you mean by that.  Do you mean you're concerned that 
>> > you're you making a tcsetattr(3) call on an incompletely initialized 
>> > structure?  Or do you mean you're concerned that the initial configuration 
>> > of the tty provided by the kernel is in a "not good" state?
>>
>> I think cfmakeraw is not initializing the structure properly. It is an
>> intermittent failure.
>
> This code is misusing cfmakeraw(3): it needs to call tcgetattr(3) on the tty 
> fd and only call cfmakeraw() on the termios structure that tcgetattr() has 
> filled in.

Ack, thanks.

> (There may be other problems; I only reviewed enough to see that it was 
> violating the rule I mentioned in my previous post.  The _only_ portable way 
> to initialize a struct termios is to use tcgetattr()!)

Ack, thanks.

At the risk of sounding argumentative, the OpenBSD man page on
cfmakeraw [0] does not detail the requirement of using cfmakeraw on a
struct termios obtained from tcgetattr. In fact I specifically avoid
it because Valgrind produced so many findings due to the unmapped
ioctl's.

The Linux man page does not detail the limitation either. But things
"just work" on Linux and it was not a problem.

I suggest adding text similar to the following to the man page (the
first sentence is existing):

The cfmakeraw() function sets the flags stored in the termios
structure to a state disabling all input and output processing,
giving a “raw I/O path”. cfmakeraw() must use a termios
structure obtained from tcgetattr().
(remaining text from man page)

Thanks for the help.

Jeff

[0] https://man.openbsd.org/tcsetattr.3



Re: How to achieve O_TTY_INIT when opening a USB modem?

2019-11-24 Thread Philip Guenther
On Sun, Nov 24, 2019 at 7:53 PM Jeffrey Walton  wrote:

> On Sun, Nov 24, 2019 at 10:10 PM Philip Guenther 
> wrote:
> >
> > On Sun, Nov 24, 2019 at 3:11 AM Jeffrey Walton 
> wrote:
> >>
> >> I am struggling to get a USB modem and terminal configured properly
> >> under OpenBSD. The same code on Linux is fine. The symptom I am seeing
> >> is a hung read() after issuing ATZ\r to the modem.
> >>
> >> I'm guessing there's an uninitialized field in my struct termios tty.
> >
> > I'm not sure what you mean by that.  Do you mean you're concerned that
> you're you making a tcsetattr(3) call on an incompletely initialized
> structure?  Or do you mean you're concerned that the initial configuration
> of the tty provided by the kernel is in a "not good" state?
>
> I think cfmakeraw is not initializing the structure properly. It is an
> intermittent failure.
>

This code is misusing cfmakeraw(3): it needs to call tcgetattr(3) on the
tty fd and only call cfmakeraw() on the termios structure that tcgetattr()
has filled in.

(There may be other problems; I only reviewed enough to see that it was
violating the rule I mentioned in my previous post.  The _only_ portable
way to initialize a struct termios is to use tcgetattr()!)


Philip Guenther


Re: How to achieve O_TTY_INIT when opening a USB modem?

2019-11-24 Thread Philip Guenther
On Sun, Nov 24, 2019 at 3:11 AM Jeffrey Walton  wrote:

> I am struggling to get a USB modem and terminal configured properly
> under OpenBSD. The same code on Linux is fine. The symptom I am seeing
> is a hung read() after issuing ATZ\r to the modem.
>
> I'm guessing there's an uninitialized field in my struct termios tty.
>

I'm not sure what you mean by that.  Do you mean you're concerned that
you're you making a tcsetattr(3) call on an incompletely initialized
structure?  Or do you mean you're concerned that the initial configuration
of the tty provided by the kernel is in a "not good" state?


> The latest Posix provides O_TTY_INIT to ensure a terminal is in a good
> configuration, but OpenBSD does not recognize it.
>
What is the equivalent under OpenBSD?


OpenBSD, like all BSDs, does not require anything special to be done to
initialize a tty on first open.  We can (and I guess we should at this
point) define O_TTY_INIT to be zero.


How do I achieve O_TTY_INIT when
> using a struct termios tty?
>

Before calling tcsetattr(3) you should call tcgetattr(3) to get the tty
device's current settings and only alter the setting you care about.


Philip Guenther


How to achieve O_TTY_INIT when opening a USB modem?

2019-11-24 Thread Jeffrey Walton
I am struggling to get a USB modem and terminal configured properly
under OpenBSD. The same code on Linux is fine. The symptom I am seeing
is a hung read() after issuing ATZ\r to the modem.

I'm guessing there's an uninitialized field in my struct termios tty.
The latest Posix provides O_TTY_INIT to ensure a terminal is in a good
configuration, but OpenBSD does not recognize it.

What is the equivalent under OpenBSD? How do I achieve O_TTY_INIT when
using a struct termios tty?

Thanks in advance.



Re: OpenBSD + 3G/4G USB modem

2018-04-21 Thread MS
cu -l /dev/cuaUX (iterating 0 through 2)
gave "Device not configured"

2018-04-21 14:55 GMT+02:00 Stuart Henderson :

> On 2018-04-20, MS  wrote:
> > I forgot to mention it but the modem doesn't respond on any of the
> > /dev/cuaUX
>
> What exactly did you try when you checked this?
>
>
>


Re: OpenBSD + 3G/4G USB modem

2018-04-21 Thread Stuart Henderson
On 2018-04-20, MS  wrote:
> I forgot to mention it but the modem doesn't respond on any of the
> /dev/cuaUX

What exactly did you try when you checked this?




Re: OpenBSD + 3G/4G USB modem

2018-04-21 Thread MS
nope, no com at umodem nor at umm...
So OpenBSD finds my modem, recognizes it, but doesn't treat it like a
modem. My modem has been literally friendzoned by OpenBSD

2018-04-20 21:08 GMT+02:00 IL Ka :

>  Do you have ucom at umodem in dmesg?
> Or ucom at umsm?
>
>
>
>
> On Fri, Apr 20, 2018 at 9:17 PM, MS  wrote:
>
> > I forgot to mention it but the modem doesn't respond on any of the
> > /dev/cuaUX
> >
> > 2018-04-20 11:17 GMT+02:00 Roderick :
> >
> > >
> > >
> > > On Fri, 20 Apr 2018, MS wrote:
> > >
> > > ok, so I ejected the cd1 and OBSD started seeing ZTE as a umodem, but
> > >> umodem0, 1 and 2 at the same time. Is it normal?
> > >>
> > >
> > > That some modems attach to many devs is normal. You must try with any
> > > of them until you find the one that responds to AT commands.
> > >
> > > Is the modem pluged to a USB port?
> > >
> > > You should see in dmesg something like: ucom0 at umodem0
> > >
> > > That would be not normal in your dmesg!
> > >
> > > Rodrigo.
> > >
> > >
> >
>


Re: OpenBSD + 3G/4G USB modem

2018-04-20 Thread IL Ka
 Do you have ucom at umodem in dmesg?
Or ucom at umsm?




On Fri, Apr 20, 2018 at 9:17 PM, MS  wrote:

> I forgot to mention it but the modem doesn't respond on any of the
> /dev/cuaUX
>
> 2018-04-20 11:17 GMT+02:00 Roderick :
>
> >
> >
> > On Fri, 20 Apr 2018, MS wrote:
> >
> > ok, so I ejected the cd1 and OBSD started seeing ZTE as a umodem, but
> >> umodem0, 1 and 2 at the same time. Is it normal?
> >>
> >
> > That some modems attach to many devs is normal. You must try with any
> > of them until you find the one that responds to AT commands.
> >
> > Is the modem pluged to a USB port?
> >
> > You should see in dmesg something like: ucom0 at umodem0
> >
> > That would be not normal in your dmesg!
> >
> > Rodrigo.
> >
> >
>


Re: OpenBSD + 3G/4G USB modem

2018-04-20 Thread Roderick



On Fri, 20 Apr 2018, MS wrote:


I forgot to mention it but the modem doesn't respond on any of the /dev/cuaUX?


Yes, OpenBSD does not attach your modem to ucom.

Can you try with othe modem?

Rodrigo.



Re: OpenBSD + 3G/4G USB modem

2018-04-20 Thread MS
I forgot to mention it but the modem doesn't respond on any of the
/dev/cuaUX

2018-04-20 11:17 GMT+02:00 Roderick :

>
>
> On Fri, 20 Apr 2018, MS wrote:
>
> ok, so I ejected the cd1 and OBSD started seeing ZTE as a umodem, but
>> umodem0, 1 and 2 at the same time. Is it normal?
>>
>
> That some modems attach to many devs is normal. You must try with any
> of them until you find the one that responds to AT commands.
>
> Is the modem pluged to a USB port?
>
> You should see in dmesg something like: ucom0 at umodem0
>
> That would be not normal in your dmesg!
>
> Rodrigo.
>
>


Re: OpenBSD + 3G/4G USB modem

2018-04-20 Thread Roderick



On Fri, 20 Apr 2018, MS wrote:


ok, so I ejected the cd1 and OBSD started seeing ZTE as a umodem, but
umodem0, 1 and 2 at the same time. Is it normal?


That some modems attach to many devs is normal. You must try with any
of them until you find the one that responds to AT commands.

Is the modem pluged to a USB port?

You should see in dmesg something like: ucom0 at umodem0

That would be not normal in your dmesg!

Rodrigo.



Re: OpenBSD + 3G/4G USB modem

2018-04-20 Thread MS
ok, so I ejected the cd1 and OBSD started seeing ZTE as a umodem, but
umodem0, 1 and 2 at the same time. Is it normal?

new usbdevs:

Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub0
 port 1 powered
 port 2 powered
 port 3 addr 2: high speed, power 500 mA, config 1, MF195(0x1516),
ZTE(0x19d2), rev 0.01, iSerialNumber
134815D161E78C0DEE76B2DE548B925B56AB0579
   umodem0
   umodem1
   umass1
   umodem2
 port 4 powered
 port 5 powered
 port 6 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub1
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 addr 2: high speed, power 500 mA, config 1, Silicon Media
R/W(0x01bd), Sony(0x054c), rev 3.95, iSerialNumber 50020C59
   umass0
 port 5 powered
 port 6 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub2
 port 1 addr 2: low speed, power 100 mA, config 1, Dell QuietKey
Keyboard(0x2106), DELL(0x413c), rev 1.01
   uhidev0
 port 2 addr 3: low speed, power 98 mA, config 1, Usb Mouse(0x0034),
SIGMACHIP(0x1c4f), rev 1.10
   uhidev1
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub3
 port 1 powered
 port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub4
 port 1 powered
 port 2 powered
Controller /dev/usb5:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub5
 port 1 powered
 port 2 powered
Controller /dev/usb6:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub6
 port 1 powered
 port 2 powered
Controller /dev/usb7:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub7
 port 1 powered
 port 2 powered


new dmesg:

OpenBSD 6.3 (GENERIC.MP) #107: Sat Mar 24 14:21:59 MDT 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4277010432 (4078MB)
avail mem = 4140318720 (3948MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (39 entries)
bios0: vendor Award Software International, Inc. version "F1" date
06/22/2007
bios0: Gigabyte Technology Co., Ltd. P35C-S3
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET MCFG APIC SSDT SSDT
acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5) PEX5(S5)
HUB0(S5) UAR1(S3) IGBE(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) US31(S3)
USB4(S3) USB5(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz, 2666.98 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 333MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz, 2666.67 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PEX0)
acpiprt2 at acpi0: bus -1 (PEX1)
acpiprt3 at acpi0: bus -1 (PEX2)
acpiprt4 at acpi0: bus 3 (PEX3)
acpiprt5 at acpi0: bus 4 (PEX4)
acpiprt6 at acpi0: bus -1 (PEX5)
acpiprt7 at acpi0: bus 5 (HUB0)
acpicpu0 at acpi0: C1(@1 halt!), FVS, 2667, 2000 MHz
acpicpu1 at acpi0: C1(@1 halt!), FVS, 2667, 2000 MHz
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x02
ppb0 at pci0 dev 1 function 0 "Intel 82G33 PCIE" rev 0x02: msi
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 8800 GTS" rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 2 int 16
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 2 int 21
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x02: apic 2 int 18
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 2 int 18
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 

Re: OpenBSD + 3G/4G USB modem

2018-04-19 Thread Stuart Longland
On 20/04/18 07:06, MS wrote:
> ok, I think I figured out what the problem is...OpenBSD recognizes my ZTE
> MF195 but doesn't see it as a ucom device but as a storage (sd and cd(!))

Try ejecting the "CD".

-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.



Re: OpenBSD + 3G/4G USB modem

2018-04-19 Thread Stuart Henderson
On 2018/04/19 23:06, MS wrote:
> ok, I think I figured out what the problem is...OpenBSD recognizes my ZTE 
> MF195 but doesn't see
> it as a ucom device but as a storage (sd and cd(!))

Try "eject cd0". That may be enough, if that works then you have an
interim solution and we can add a DEV_UMASS4 quirk for the device.
Please send new dmesg and usbdevs -vd after the eject command has run.

If it doesn't seem to do anything useful, there are some other more
vendor-specific quirks we can try, but those will need rebuilding
a kernel to test, so give "eject" a go first.

>  port 3 addr 2: high speed, power 500 mA, config 1, MF195(0x1514), 
> ZTE(0x19d2), rev 0.01,



Re: OpenBSD + 3G/4G USB modem

2018-04-19 Thread MS
ok, I think I figured out what the problem is...OpenBSD recognizes my ZTE
MF195 but doesn't see it as a ucom device but as a storage (sd and cd(!))

here's my usbdevs:

Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub0
 port 1 powered
 port 2 powered
 port 3 addr 2: high speed, power 500 mA, config 1, MF195(0x1514),
ZTE(0x19d2), rev 0.01, iSerialNumber MF1950TMOD00
   umass0
 port 4 powered
 port 5 powered
 port 6 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub1
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 addr 2: high speed, power 500 mA, config 1, Silicon Media
R/W(0x01bd), Sony(0x054c), rev 3.95, iSerialNumber 50020C59
   umass1
 port 5 powered
 port 6 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub2
 port 1 addr 2: low speed, power 100 mA, config 1, Dell QuietKey
Keyboard(0x2106), DELL(0x413c), rev 1.01
   uhidev0
 port 2 addr 3: low speed, power 98 mA, config 1, Usb Mouse(0x0034),
SIGMACHIP(0x1c4f), rev 1.10
   uhidev1
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub3
 port 1 powered
 port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub4
 port 1 powered
 port 2 powered
Controller /dev/usb5:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub5
 port 1 powered
 port 2 powered
Controller /dev/usb6:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub6
 port 1 powered
 port 2 powered
Controller /dev/usb7:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub7
 port 1 powered
 port 2 powered


and here's my dmesg:
OpenBSD 6.3 (GENERIC.MP ) #107: Sat Mar 24 14:21:59 MDT
2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

real mem = 4277010432 (4078MB)
avail mem = 4140306432 (3948MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (39 entries)
bios0: vendor Award Software International, Inc. version "F1" date
06/22/2007
bios0: Gigabyte Technology Co., Ltd. P35C-S3
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET MCFG APIC SSDT SSDT
acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5) PEX5(S5)
HUB0(S5) UAR1(S3) IGBE(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) US31(S3)
USB4(S3) USB5(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz, 2667.05 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,
PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,
xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 333MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz, 2666.66 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,
CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,
PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,
xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PEX0)
acpiprt2 at acpi0: bus -1 (PEX1)
acpiprt3 at acpi0: bus -1 (PEX2)
acpiprt4 at acpi0: bus 3 (PEX3)
acpiprt5 at acpi0: bus 4 (PEX4)
acpiprt6 at acpi0: bus -1 (PEX5)
acpiprt7 at acpi0: bus 5 (HUB0)
acpicpu0 at acpi0: C1(@1 halt!), FVS, 2667, 2000 MHz
acpicpu1 at acpi0: C1(@1 halt!), FVS, 2667, 2000 MHz
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x02
ppb0 at pci0 dev 1 function 0 "Intel 82G33 PCIE" rev 0x02: msi
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 8800 GTS" rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 2 int 16
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 2 int 21
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x02: apic 2 int 18
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 2 int 18
usb0 at ehci0: USB revision 2.0
uhub0 

Re: OpenBSD + 3G/4G USB modem

2018-04-19 Thread MS
ok, I think I figured out what the problem is...OpenBSD recognizes my ZTE
MF195 but doesn't see it as a ucom device but as a storage (sd and cd(!))

here's my usbdevs:

Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub0
 port 1 powered
 port 2 powered
 port 3 addr 2: high speed, power 500 mA, config 1, MF195(0x1514),
ZTE(0x19d2), rev 0.01, iSerialNumber MF1950TMOD00
   umass0
 port 4 powered
 port 5 powered
 port 6 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub1
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 addr 2: high speed, power 500 mA, config 1, Silicon Media
R/W(0x01bd), Sony(0x054c), rev 3.95, iSerialNumber 50020C59
   umass1
 port 5 powered
 port 6 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub2
 port 1 addr 2: low speed, power 100 mA, config 1, Dell QuietKey
Keyboard(0x2106), DELL(0x413c), rev 1.01
   uhidev0
 port 2 addr 3: low speed, power 98 mA, config 1, Usb Mouse(0x0034),
SIGMACHIP(0x1c4f), rev 1.10
   uhidev1
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub3
 port 1 powered
 port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub4
 port 1 powered
 port 2 powered
Controller /dev/usb5:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub5
 port 1 powered
 port 2 powered
Controller /dev/usb6:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub6
 port 1 powered
 port 2 powered
Controller /dev/usb7:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub7
 port 1 powered
 port 2 powered


and here's my dmesg:
OpenBSD 6.3 (GENERIC.MP) #107: Sat Mar 24 14:21:59 MDT 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4277010432 (4078MB)
avail mem = 4140306432 (3948MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (39 entries)
bios0: vendor Award Software International, Inc. version "F1" date
06/22/2007
bios0: Gigabyte Technology Co., Ltd. P35C-S3
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET MCFG APIC SSDT SSDT
acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5) PEX5(S5)
HUB0(S5) UAR1(S3) IGBE(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) US31(S3)
USB4(S3) USB5(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz, 2667.05 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 333MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz, 2666.66 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PEX0)
acpiprt2 at acpi0: bus -1 (PEX1)
acpiprt3 at acpi0: bus -1 (PEX2)
acpiprt4 at acpi0: bus 3 (PEX3)
acpiprt5 at acpi0: bus 4 (PEX4)
acpiprt6 at acpi0: bus -1 (PEX5)
acpiprt7 at acpi0: bus 5 (HUB0)
acpicpu0 at acpi0: C1(@1 halt!), FVS, 2667, 2000 MHz
acpicpu1 at acpi0: C1(@1 halt!), FVS, 2667, 2000 MHz
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x02
ppb0 at pci0 dev 1 function 0 "Intel 82G33 PCIE" rev 0x02: msi
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 8800 GTS" rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 2 int 16
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 2 int 21
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x02: apic 2 int 18
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 2 int 18
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI 

Re: OpenBSD + 3G/4G USB modem

2018-04-17 Thread Stuart Henderson
On 2018-04-16, MS  wrote:
> One more thing though, how do I know which USB port is which cuaXX? If I
> connect to cua00 it seems to start conversation but the whole thing
> freezes. cuaU0 gives not configured info.

It would be a cuaU* device, the exact number depends on whether you have
other USB UARTs and on how the device itself works (there are often
additional "control-only" devices).

"not configured" suggests there might be a problem though. Showing a
dmesg and usbdevs -dv with the device plugged in would be a good start.
(complete dmesg, don't trim it).




Re: OpenBSD + 3G/4G USB modem

2018-04-16 Thread Roderick



On Mon, 16 Apr 2018, MS wrote:


I will try it and let you know about the problems/results.


I am curious to see your tutorial at the end. :)



One more thing though, how do I know which USB port is which cuaXX?


Just plug the modem in a USB Port and see dmesg. You can also see
"man ucom".

It may happen that there appear many cuaUX. Try "cu -l" to each
and give the command "AT", the modem should answer with "OK".
If not, go out with "~." and try other.

By the way, you need from Provider:

(1) APN. You give it to the modem with AT+CGDCONT=1,"IP","APNofProvider"
(2) User and Pass. May be there are no auth, then there is nothing to
do. Otherwise user in the options file, user and pass in the chap
or pap secret files.
(3) Telefone Number. You give it to the modem with ATDT. At best in chat
script.

The connect script may look like:

REPORT CONNECT
ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
ABORT 'NO DIALTONE'
ABORT 'NO ANSWER'
'' at
OK atz
OK 'atdt*99#'
CONNECT

And the disconnect script:

ABORT 'NO CARRIER'
ABORT ERROR
ABORT 'NO DIALTONE'
ABORT 'NO ANSWER'
'' '\K'
'' '+++ATH'

In any case read chat to see how they are constructed, perhaps
you should better add some "SAY" statements to the above scripts to
better follow what happens.

And of course, you can also see "/var/log/messages" when testing.

Rodrigo



Re: OpenBSD + 3G/4G USB modem

2018-04-16 Thread MS
Thanks a lot! You Sir are a hero! :)
I will try it and let you know about the problems/results.

One more thing though, how do I know which USB port is which cuaXX? If I
connect to cua00 it seems to start conversation but the whole thing
freezes. cuaU0 gives not configured info.

Thanks,
MS

2018-04-15 22:50 GMT+02:00 Roderick <hru...@gmail.com>:

>
> On Sun, 15 Apr 2018, MS wrote:
>
> Is there a successful story with OpenBSD and a 3G USB modem?
>>
>
> I use it since years.
>
> I've read the manuals, but can't really glue the whole thing together
>> to make it work.
>>
>
> Yes, the manuals and the files/examples in /etc/ppp should be enough.
> It should be like configuring an old analog modem (That I never needed :).
>
> Some ideas to get the whole picture:
>
> (1) You need to create a ppp interface, let us say do
>  "ifconfig ppp0 create". See "man 4 ppp" for it.
>
> (2) You need need the modem to be ready for the connection,
>  first connect to it with "cu -l /dev/cuaU0" (if it is
>  pluged in cuaU0) and give commands like:
>
>  AT
>  AT+CPIN="YourPin"
>  AT+CGCONT=1,"IP","APNofYourProvider" [perhaps only once, modem saves
> it]
>  ~. [to leave the session]
>
> You can see more commands here:
>
> http://www.etsi.org/deliver/etsi_ts/127000_127099/127007/13.
> 03.00_60/ts_127007v130300p.pdf
> http://smssolutions.net/tutorials/gsm/
>
> (3) With "man pppd" you learn how to write a file with "options" that
>  goes to the directory "/etc/ppp/peers/". It depends on your
>  modem, on your provider. Let us call it "/etc/ppp/peers/xyz".
>  Then you start the connection with "pppd call xyz". See with
>  "ifconfig" what happens.
>
> (4) You need to set manually a DNS in "/etc/resolv.conf", unfortunately
>  OpenBSDs pppd does not do it.
>
> Back to "/etc/ppp/peers/xyz". There are lines ("options") of the form
>
> connect "/usr/sbin/chat -v -f /etc/ppp/con.chat"
> disconnect "/usr/sbin/chat -v -f /etc/ppp/dis.chat"
>
> They call the program "chat" applied to the "chat scripts" con.chat and
> dis.chat when connecting and disconnecting, chat communicate
> with the modem. See "man 8 chat" to see how the chat scripts are
> written. The above commands (after cu) could be for example included
> in con.chat. You could also use other programs different from chat.
>
> You also can see in in "/etc/ppp/peers/xyz" a line of the form
>
> user username
>
> For this username there should be a password in the file
> "/etc/ppp/chap-secrets" or "/etc/ppp/pap-secrets". The
> provider gives you this username and password. Authentication is
> also described in "man 8 pppd".
>
> I hope, you get now the whole picture and can concentrate on the details.
>
> Any corrections or commentaries there?
>
> Rodrigo.
>
>


Re: OpenBSD + 3G/4G USB modem

2018-04-15 Thread Roderick


On Sun, 15 Apr 2018, MS wrote:


Is there a successful story with OpenBSD and a 3G USB modem?


I use it since years.


I've read the manuals, but can't really glue the whole thing together
to make it work.


Yes, the manuals and the files/examples in /etc/ppp should be enough.
It should be like configuring an old analog modem (That I never needed :).

Some ideas to get the whole picture:

(1) You need to create a ppp interface, let us say do
 "ifconfig ppp0 create". See "man 4 ppp" for it.

(2) You need need the modem to be ready for the connection,
 first connect to it with "cu -l /dev/cuaU0" (if it is
 pluged in cuaU0) and give commands like:

 AT
 AT+CPIN="YourPin"
 AT+CGCONT=1,"IP","APNofYourProvider" [perhaps only once, modem saves it]
 ~. [to leave the session]

You can see more commands here:

http://www.etsi.org/deliver/etsi_ts/127000_127099/127007/13.03.00_60/ts_127007v130300p.pdf
http://smssolutions.net/tutorials/gsm/

(3) With "man pppd" you learn how to write a file with "options" that
 goes to the directory "/etc/ppp/peers/". It depends on your
 modem, on your provider. Let us call it "/etc/ppp/peers/xyz".
 Then you start the connection with "pppd call xyz". See with
 "ifconfig" what happens.

(4) You need to set manually a DNS in "/etc/resolv.conf", unfortunately
 OpenBSDs pppd does not do it.

Back to "/etc/ppp/peers/xyz". There are lines ("options") of the form

connect "/usr/sbin/chat -v -f /etc/ppp/con.chat"
disconnect "/usr/sbin/chat -v -f /etc/ppp/dis.chat"

They call the program "chat" applied to the "chat scripts" con.chat 
and dis.chat when connecting and disconnecting, chat communicate

with the modem. See "man 8 chat" to see how the chat scripts are
written. The above commands (after cu) could be for example included
in con.chat. You could also use other programs different from chat.

You also can see in in "/etc/ppp/peers/xyz" a line of the form

user username

For this username there should be a password in the file
"/etc/ppp/chap-secrets" or "/etc/ppp/pap-secrets". The
provider gives you this username and password. Authentication is
also described in "man 8 pppd".

I hope, you get now the whole picture and can concentrate on the details.

Any corrections or commentaries there?

Rodrigo.



OpenBSD + 3G/4G USB modem

2018-04-15 Thread MS
Hello everyone,
Is there a successful story with OpenBSD and a 3G USB modem? I have read a
lot of configs available online (mostly old ver.: 4.8 to 5.8 usually) and
each one is very different. I've read the manuals, but can't really glue
the whole thing together to make it work. I am pretty desperate right now
because I can't get the overall idea of how 3g USB modem + pppd + chat +
pap should work. Do you guys have any docs/tutorial/how-tos etc. on how to
setup a ppp connection with 3g USB modem?

I have ZTE MF195 (supported) + Orange 3G/LTE card, but my idea is to get a
better, overall understanding of this topic. Having eventually done this I
plan to write a how-to or tutorial so that other mortals can have an easier
life.

I would appreciate your help very much. Thanks in advance.


Re: ZTE USB modem MF110

2015-01-11 Thread jinhitmanBarracuda
Hi
I would like to ask, did it work with OpenBSD?
On 8 Sep 2013 00:51, Beavis pfu...@gmail.com wrote:

 Hello All!

 thanks if there are any people who would reply back. but I was able to get
 it to talk

 # cu -l cuaU1


 Connected
 T
 OK
 AT
 OK

 thanks again.

 -B


 On Sat, Sep 7, 2013 at 3:33 PM, Beavis pfu...@gmail.com wrote:

  Hello all,
 
  would like to ask if there is anyone on the list that has tried using ZTE
  3g Modem on OpenBSD. the kernel (5.1) was able to detect the device:
 
  umsm0 at uhub0 port 1 configuration 1 interface 0 ZTE,Incorporated ZTE
  CDMA Technologies MSM rev 2.00/0.00 addr 2
  umsm0 at uhub0 port 1 configuration 1 interface 0 ZTE,Incorporated ZTE
  CDMA Technologies MSM rev 2.00/0.00 addr 2
  umsm1 at uhub0 port 1 configuration 1 interface 1 ZTE,Incorporated ZTE
  CDMA Technologies MSM rev 2.00/0.00 addr 2
  umass0 at uhub0 port 1 configuration 1 interface 2 ZTE,Incorporated ZTE
  CDMA Technologies MSM rev 2.00/0.00 addr 2
  sd0 at scsibus2 targ 1 lun 0: ZTE, MMC Storage, 2.31 SCSI2 0/direct
  removable serial.19d20031567890ABCDEF
  umsm2 at uhub0 port 1 configuration 1 interface 3 ZTE,Incorporated ZTE
  CDMA Technologies MSM rev 2.00/0.00 addr 2
 
  there are some ZTE's on the umsm(4) man pages but not specifically MF110.
  i can't seem to make it to talk.
 
  ZTE AC2746   USB
 ZTE MF112USB
 ZTE MF190USB
 ZTE MF633USB
 ZTE MF637USB
 
  any suggestions or advice is awesomely appreciated.
 
 
  regards,
  -B
  --
  ()  ascii ribbon campaign - against html e-mail
  /\  www.asciiribbon.org   - against proprietary attachments
 
  Disclaimer:
  http://goldmark.org/jeff/stupid-disclaimers/
 



 --
 ()  ascii ribbon campaign - against html e-mail
 /\  www.asciiribbon.org   - against proprietary attachments

 Disclaimer:
 http://goldmark.org/jeff/stupid-disclaimers/



OpenBSD don't recoginize Android Phone (Alcatel OneTouch 993D with Android 4.0.4) as USB Modem

2014-10-08 Thread Dmitry Orlov
Synopsis:OpenBSD don't recoginize Android Phone (Alcatel OneTouch 
993D with Android 4.0.4) as USB Modem

Category:Kernel, URNDIS (probably)
Environment:
System  : OpenBSD 5.6
Details : OpenBSD 5.6-current (GENERIC.MP) #403: Tue Oct  7 
18:24:37 MDT 2014

dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Architecture: OpenBSD.amd64
Machine : amd64
Description:
OpenBSD don't recoginize Android Phone (Alcatel OneTouch 993D) as 
USB Modem.

How-To-Repeat:
Boot OpenBSD 5.6. Plug USB into machine and to the phone. In Access 
Point set USB Modem mode as ON. In short time USB Modem mode is off by self

Fix:
NONE

SENDBUG: dmesg, pcidump, acpidump and usbdevs are attached.
SENDBUG: Feel free to delete or use the -D flag if they contain 
sensitive information.


dmesg:
OpenBSD 5.6-current (GENERIC.MP) #403: Tue Oct  7 18:24:37 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1047068672 (998MB)
avail mem = 1010540544 (963MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf0760 (31 entries)
bios0: vendor American Megatrends Inc. version 1201 date 02/18/2011
bios0: ASUSTeK Computer INC. 1001PX
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG ECDT OEMB HPET GSCI SSDT SLIC
acpi0: wakeup devices P0P1(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Atom(TM) CPU N450 @ 1.66GHz, 1666.69 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF

cpu0: 512KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.0.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N450 @ 1.66GHz, 1666.48 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF

cpu1: 512KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 1, remapped to apid 2
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpiec0 at acpi0
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (P0P4)
acpiprt2 at acpi0: bus 2 (P0P5)
acpiprt3 at acpi0: bus -1 (P0P6)
acpiprt4 at acpi0: bus 1 (P0P7)
acpicpu0 at acpi0: C2, C1, PSS
acpicpu1 at acpi0: C2, C1, PSS
acpitz0 at acpi0: critical temperature is 98 degC
acpibat0 at acpi0: BAT0 model 1001PX serial   type LION oem ASUS
acpiac0 at acpi0: AC unit online
acpiasus0 at acpi0
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: PWRB
cpu0: Enhanced SpeedStep 1666 MHz: speeds: 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Pineview DMI rev 0x00
vga1 at pci0 dev 2 function 0 Intel Pineview Video rev 0x00
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1024x600
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
Intel Pineview Video rev 0x00 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: msi
azalia0: codecs: Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: msi
pci1 at ppb0 bus 4
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: msi
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 Atheros AR9285 rev 0x01: apic 2 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 13, address 48:5d:60:b1:9b:7d
ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: msi
pci3 at ppb2 bus 1
alc0 at pci3 dev 0 function 0 Attansic Technology L2C rev 0xc0: msi, 
address bc:ae:c5:17:57:af

atphy0 at alc0 phy 0: F1 10/100/1000 PHY, rev. 11
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 2 int 23
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 2 int 19
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 2 int 18
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 2 int 16
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 2 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci4 at ppb3 bus 5
pcib0 at pci0 dev 31 function 0 Intel NM10 LPC rev 0x02
ahci0 at pci0 dev 31 function 2 Intel 82801GR AHCI rev 0x02: msi, AHCI 1.1
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0

usb modem support fax in OpenBSD?

2013-11-26 Thread Fung
want to setup  hylafax in OpenBSD

please suggest some usb modem support fax in OpenBSD, thanks.



ZTE USB modem MF110

2013-09-07 Thread Beavis
Hello all,

would like to ask if there is anyone on the list that has tried using ZTE
3g Modem on OpenBSD. the kernel (5.1) was able to detect the device:

umsm0 at uhub0 port 1 configuration 1 interface 0 ZTE,Incorporated ZTE
CDMA Technologies MSM rev 2.00/0.00 addr 2
umsm0 at uhub0 port 1 configuration 1 interface 0 ZTE,Incorporated ZTE
CDMA Technologies MSM rev 2.00/0.00 addr 2
umsm1 at uhub0 port 1 configuration 1 interface 1 ZTE,Incorporated ZTE
CDMA Technologies MSM rev 2.00/0.00 addr 2
umass0 at uhub0 port 1 configuration 1 interface 2 ZTE,Incorporated ZTE
CDMA Technologies MSM rev 2.00/0.00 addr 2
sd0 at scsibus2 targ 1 lun 0: ZTE, MMC Storage, 2.31 SCSI2 0/direct
removable serial.19d20031567890ABCDEF
umsm2 at uhub0 port 1 configuration 1 interface 3 ZTE,Incorporated ZTE
CDMA Technologies MSM rev 2.00/0.00 addr 2

there are some ZTE's on the umsm(4) man pages but not specifically MF110. i
can't seem to make it to talk.

ZTE AC2746   USB
   ZTE MF112USB
   ZTE MF190USB
   ZTE MF633USB
   ZTE MF637USB

any suggestions or advice is awesomely appreciated.


regards,
-B
-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Disclaimer:
http://goldmark.org/jeff/stupid-disclaimers/



Re: ZTE USB modem MF110

2013-09-07 Thread Beavis
Hello All!

thanks if there are any people who would reply back. but I was able to get
it to talk

# cu -l cuaU1


Connected
T
OK
AT
OK

thanks again.

-B


On Sat, Sep 7, 2013 at 3:33 PM, Beavis pfu...@gmail.com wrote:

 Hello all,

 would like to ask if there is anyone on the list that has tried using ZTE
 3g Modem on OpenBSD. the kernel (5.1) was able to detect the device:

 umsm0 at uhub0 port 1 configuration 1 interface 0 ZTE,Incorporated ZTE
 CDMA Technologies MSM rev 2.00/0.00 addr 2
 umsm0 at uhub0 port 1 configuration 1 interface 0 ZTE,Incorporated ZTE
 CDMA Technologies MSM rev 2.00/0.00 addr 2
 umsm1 at uhub0 port 1 configuration 1 interface 1 ZTE,Incorporated ZTE
 CDMA Technologies MSM rev 2.00/0.00 addr 2
 umass0 at uhub0 port 1 configuration 1 interface 2 ZTE,Incorporated ZTE
 CDMA Technologies MSM rev 2.00/0.00 addr 2
 sd0 at scsibus2 targ 1 lun 0: ZTE, MMC Storage, 2.31 SCSI2 0/direct
 removable serial.19d20031567890ABCDEF
 umsm2 at uhub0 port 1 configuration 1 interface 3 ZTE,Incorporated ZTE
 CDMA Technologies MSM rev 2.00/0.00 addr 2

 there are some ZTE's on the umsm(4) man pages but not specifically MF110.
 i can't seem to make it to talk.

 ZTE AC2746   USB
ZTE MF112USB
ZTE MF190USB
ZTE MF633USB
ZTE MF637USB

 any suggestions or advice is awesomely appreciated.


 regards,
 -B
 --
 ()  ascii ribbon campaign - against html e-mail
 /\  www.asciiribbon.org   - against proprietary attachments

 Disclaimer:
 http://goldmark.org/jeff/stupid-disclaimers/




-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Disclaimer:
http://goldmark.org/jeff/stupid-disclaimers/



Re: ZTE mf626 USB modem support

2013-03-07 Thread Maximo Pech
Here is my output of lsusb -v, hope it helps

Bus 000 Device 001: ID 8086: Intel Corp.
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 1 Single TT
  bMaxPacketSize064
  idVendor   0x8086 Intel Corp.
  idProduct  0x
  bcdDevice1.00
  iManufacturer   1 Intel
  iProduct2 EHCI root hub
  iSerial 0
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   25
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0
bmAttributes 0x40
  (Missing must-be-set bit!)
  Self Powered
MaxPower0mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   1
  bInterfaceClass 9 Hub
  bInterfaceSubClass  0 Unused
  bInterfaceProtocol  0 Full speed (or root) hub
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0008  1x 8 bytes
bInterval 255

Hub Descriptor:
  bLength  11
  bDescriptorType  41
  nNbrPorts 8
  wHubCharacteristic 0x0002
No power switching (usb 1.0)
Ganged overcurrent protection
TT think time 8 FS bits
  bPwrOn2PwrGood  200 * 2 milli seconds
  bHubContrCurrent  0 milli Ampere
  DeviceRemovable0x00 0x00
  PortPwrCtrlMask0x00 0x00
 Hub Port Status:
   Port 1: .0500 highspeed power
   Port 2: .0500 highspeed power
   Port 3: .0503 highspeed power enable connect
   Port 4: .0500 highspeed power
   Port 5: .0500 highspeed power
   Port 6: .0500 highspeed power
   Port 7: .0500 highspeed power
   Port 8: .0500 highspeed power
Device Status: 0x0001
  Self Powered

Bus 000 Device 002: ID 19d2:0117 ZTE WCDMA Technologies MSM
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize064
  idVendor   0x19d2 ZTE WCDMA Technologies MSM
  idProduct  0x0117
  bcdDevice0.00
  iManufacturer   3 ZTE,Incorporated
  iProduct2 ZTE HSPA Technologies MSM
  iSerial 4 P680A1ZTED01
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength  108
bNumInterfaces  4
bConfigurationValue 1
iConfiguration  1 ZTE Configuration
bmAttributes 0xc0
  Self Powered
 MaxPower  500mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass255 Vendor Specific Subclass
  bInterfaceProtocol255 Vendor Specific Protocol
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  32
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01  EP 1 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  32
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber1
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass255 Vendor Specific Subclass
  bInterfaceProtocol255 Vendor Specific Protocol
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82  EP 2 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
 

Re: ZTE mf626 USB modem support

2013-02-28 Thread Stuart Henderson
On 2013-02-28, Maximo Pech mak...@gmail.com wrote:
 The patch that Stuart provided worked for my ZTE MF668 device.
 
 I got this on dmesg:

 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
 ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
 umsm0 detached
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
 ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
 ucom0 at umsm0
 umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE,Incorporated
 ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
 ucom1 at umsm1
 umsm2 at uhub0 port 3 configuration 1 interface 2 ZTE,Incorporated
 ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
 ucom2 at umsm2
 umsm3 at uhub0 port 3 configuration 1 interface 3 ZTE,Incorporated
 ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2

 I think when it says umsm0 detached is when it does the mode
 switching because it didn't appear before and also the device takes a
 few seconds more to be ready.

 Thanks for all the help.



Problem with this patch is that it breaks another device with the
same vendor/product ID, ZTE K3565-Z.



Re: ZTE mf626 USB modem support

2013-02-27 Thread Maximo Pech
The patch that Stuart provided worked for my ZTE MF668 device.

I got this on dmesg:

umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
umsm0 detached
umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
ucom0 at umsm0
umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE,Incorporated
ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
ucom1 at umsm1
umsm2 at uhub0 port 3 configuration 1 interface 2 ZTE,Incorporated
ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2
ucom2 at umsm2
umsm3 at uhub0 port 3 configuration 1 interface 3 ZTE,Incorporated
ZTE HSPA Technologies MSM rev 2.00/0.00 addr 2

I think when it says umsm0 detached is when it does the mode
switching because it didn't appear before and also the device takes a
few seconds more to be ready.

Thanks for all the help.



Re: ZTE mf626 USB modem support

2013-02-17 Thread Maximo Pech
Finally I got it to work, but strangely my device comes up on /dev/cuaU1
not on /dev/cuaU0. Still have not tested the diff though.

2013/2/14 Maximo Pech mak...@gmail.com

 The AT command thing did the trick, now I have some trouble setting up
 ppp.conf, but I hope to get that sorted out.

 At this time I can't test the patch, but I promise to do it later.

 El miércoles, 13 de febrero de 2013, Kirill Bychkov escribió:

 On Thu, February 14, 2013 06:24, Maximo Pech wrote:
  Hi list, I see this was asked before but never got solved, so I ask
 again.
 
  Has someone got this device working on openbsd? Is it supported?
 
  Thanks and regards.
 
 
 Hi. I plugged this modem on my Win7 notebook, installed software and
 drivers
 from it's internal cd and then connected with putty to it's second
 serial
 port (ZTE NMEA Device), whick answers on AT comand with OK.
 After that I send AT+ZCDRUN=8 to it to disable storage. Modem answered
 Close
 autorun state result (0:FAIL 1^:SUCCESS):1 and modem's storage
 disappeared
 from my computer.
 Now I have in dmesg:
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umsm0: missing endpoint
 umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umsm1: missing endpoint
 umass0 at uhub0 port 3 configuration 1 interface 2 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umass0: using SCSI over Bulk-Only
 scsibus5 at umass0: 2 targets, initiator 0
 sd3 at scsibus5 targ 1 lun 0: ZTE, MMC Storage, 322 SCSI2 0/direct
 removable
 serial.19d20031567890ABCDEF
 umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 ucom0 at umsm2

 At least 'cu -l /dev/cuaU0 -s 9600' answers OK on AT.
 I have no usable SIM for this provider-locked modem, so I can't fully
 test it.

 To backout modem to default windoze-compatible mode send AT+ZCDRUN=9 to
 modem with cu.
 I hope this will help.



Re: ZTE mf626 USB modem support

2013-02-17 Thread Maximo Pech
It turns out that my modem is not the ZTE MF626, it is in reality the ZTE
MF668 and it works on /dev/cuaU1

2013/2/14 Kirill Bychkov ya...@linklevel.net

 On Thu, February 14, 2013 07:49, Kirill Bychkov wrote:
  On Thu, February 14, 2013 06:24, Maximo Pech wrote:
  Hi list, I see this was asked before but never got solved, so I ask
 again.
 
  Has someone got this device working on openbsd? Is it supported?
 
  Thanks and regards.
 
 
  Hi. I plugged this modem on my Win7 notebook, installed software and
 drivers
  from it's internal cd and then connected with putty to it's second
 serial
  port (ZTE NMEA Device), whick answers on AT comand with OK.
  After that I send AT+ZCDRUN=8 to it to disable storage. Modem answered
 Close
  autorun state result (0:FAIL 1^:SUCCESS):1 and modem's storage
 disappeared
  from my computer.
  Now I have in dmesg:
  umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE, Incorporated ZTE
 CDMA
  Technologies MSM rev 2.00/0.00 addr 2
  umsm0: missing endpoint
  umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE, Incorporated ZTE
 CDMA
  Technologies MSM rev 2.00/0.00 addr 2
  umsm1: missing endpoint
  umass0 at uhub0 port 3 configuration 1 interface 2 ZTE, Incorporated
 ZTE CDMA
  Technologies MSM rev 2.00/0.00 addr 2
  umass0: using SCSI over Bulk-Only
  scsibus5 at umass0: 2 targets, initiator 0
  sd3 at scsibus5 targ 1 lun 0: ZTE, MMC Storage, 322 SCSI2 0/direct
 removable
  serial.19d20031567890ABCDEF
  umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE, Incorporated ZTE
 CDMA
  Technologies MSM rev 2.00/0.00 addr 2
  ucom0 at umsm2
 
  At least 'cu -l /dev/cuaU0 -s 9600' answers OK on AT.
  I have no usable SIM for this provider-locked modem, so I can't fully
 test it.
 
  To backout modem to default windoze-compatible mode send AT+ZCDRUN=9 to
  modem with cu.
  I hope this will help.
 

 My modem isn't provider-locked as I thought. Inserting another SIM helped
 to
 connect to ISP.
 I just copied /etc/ppp/ppp.conf.sample to /etc/ppp/ppp.conf, changed set
 device and allow user to reflect reality and just run 'ppp -ddial
 mobile'
 to connect.

 Patch adds mentioning MF626 support and gives clues how to handle such
 modems.
 OK? Comments?

 Index: umsm.4
 ===
 RCS file: /cvs/src/share/man/man4/umsm.4,v
 retrieving revision 1.87
 diff -u -r1.87 umsm.4
 --- umsm.4  4 Jan 2013 02:53:54 -   1.87
 +++ umsm.4  14 Feb 2013 06:00:08 -
 @@ -111,6 +111,7 @@
  .It Li ZTE AC2746 Ta USB
  .It Li ZTE MF112 Ta USB
  .It Li ZTE MF190 Ta USB
 +.It Li ZTE MF626 Ta USB
  .It Li ZTE MF633 Ta USB
  .It Li ZTE MF637 Ta USB
  .El
 @@ -167,6 +168,10 @@
  on the third port, and after that the actual PPP connection comes
  up on the first port.
  The function of the second and fourth ports is unknown.
 +.Pp
 +Some modems require enabling modem mode with AT commands.
 +This can be configured on other OS after installation of
 +software shipped with modem.
  .Sh EXAMPLES
  An example
  .Pa /etc/ppp/ppp.conf



Re: ZTE mf626 USB modem support

2013-02-14 Thread Stuart Henderson
On 2013-02-14, Maximo Pech mak...@gmail.com wrote:
 Hi list, I see this was asked before but never got solved, so I ask again.

 Has someone got this device working on openbsd? Is it supported?

 Thanks and regards.



It is likely to work with this diff:

Index: umsm.c
===
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.89
diff -u -p -r1.89 umsm.c
--- umsm.c  4 Jan 2013 02:49:44 -   1.89
+++ umsm.c  14 Feb 2013 16:34:01 -
@@ -169,7 +169,7 @@ static const struct umsm_type umsm_devs[
{{ USB_VENDOR_QUANTA2, USB_PRODUCT_QUANTA2_Q101 }, 0},
 
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_AC2746 }, 0},
-   {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER }, DEV_UMASS4},
+   {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER }, DEV_UMASS6},
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER2 }, DEV_UMASS6},
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER3 }, DEV_UMASS7},
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER4 }, DEV_UMASS4},


This is what usb_modeswitch on linux does for all devices with this
vendor/product ID so it may be appropriate for us to do the same.

However it would really need testing on other *working* devices to
make sure it doesn't cause a problem there. (identifying which
devices need testing is made harder because you can't just check
usbdevs -v / lsusb after they have connected because the device
stops using the installer product id at that point).



Re: ZTE mf626 USB modem support

2013-02-14 Thread Maximo Pech
The AT command thing did the trick, now I have some trouble setting up
ppp.conf, but I hope to get that sorted out.

At this time I can't test the patch, but I promise to do it later.

El miércoles, 13 de febrero de 2013, Kirill Bychkov escribió:

 On Thu, February 14, 2013 06:24, Maximo Pech wrote:
  Hi list, I see this was asked before but never got solved, so I ask
 again.
 
  Has someone got this device working on openbsd? Is it supported?
 
  Thanks and regards.
 
 
 Hi. I plugged this modem on my Win7 notebook, installed software and
 drivers
 from it's internal cd and then connected with putty to it's second serial
 port (ZTE NMEA Device), whick answers on AT comand with OK.
 After that I send AT+ZCDRUN=8 to it to disable storage. Modem answered
 Close
 autorun state result (0:FAIL 1^:SUCCESS):1 and modem's storage disappeared
 from my computer.
 Now I have in dmesg:
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umsm0: missing endpoint
 umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umsm1: missing endpoint
 umass0 at uhub0 port 3 configuration 1 interface 2 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umass0: using SCSI over Bulk-Only
 scsibus5 at umass0: 2 targets, initiator 0
 sd3 at scsibus5 targ 1 lun 0: ZTE, MMC Storage, 322 SCSI2 0/direct
 removable
 serial.19d20031567890ABCDEF
 umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE, Incorporated ZTE
 CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 ucom0 at umsm2

 At least 'cu -l /dev/cuaU0 -s 9600' answers OK on AT.
 I have no usable SIM for this provider-locked modem, so I can't fully test
 it.

 To backout modem to default windoze-compatible mode send AT+ZCDRUN=9 to
 modem with cu.
 I hope this will help.



ZTE mf626 USB modem support

2013-02-13 Thread Maximo Pech
Hi list, I see this was asked before but never got solved, so I ask again.

Has someone got this device working on openbsd? Is it supported?

Thanks and regards.



Re: ZTE mf626 USB modem support

2013-02-13 Thread Kirill Bychkov
On Thu, February 14, 2013 06:24, Maximo Pech wrote:
 Hi list, I see this was asked before but never got solved, so I ask again.

 Has someone got this device working on openbsd? Is it supported?

 Thanks and regards.


Hi. I plugged this modem on my Win7 notebook, installed software and drivers
from it's internal cd and then connected with putty to it's second serial
port (ZTE NMEA Device), whick answers on AT comand with OK.
After that I send AT+ZCDRUN=8 to it to disable storage. Modem answered Close
autorun state result (0:FAIL 1^:SUCCESS):1 and modem's storage disappeared
from my computer.
Now I have in dmesg:
umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE, Incorporated ZTE CDMA
Technologies MSM rev 2.00/0.00 addr 2
umsm0: missing endpoint
umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE, Incorporated ZTE CDMA
Technologies MSM rev 2.00/0.00 addr 2
umsm1: missing endpoint
umass0 at uhub0 port 3 configuration 1 interface 2 ZTE, Incorporated ZTE CDMA
Technologies MSM rev 2.00/0.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus5 at umass0: 2 targets, initiator 0
sd3 at scsibus5 targ 1 lun 0: ZTE, MMC Storage, 322 SCSI2 0/direct removable
serial.19d20031567890ABCDEF
umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE, Incorporated ZTE CDMA
Technologies MSM rev 2.00/0.00 addr 2
ucom0 at umsm2

At least 'cu -l /dev/cuaU0 -s 9600' answers OK on AT.
I have no usable SIM for this provider-locked modem, so I can't fully test it.

To backout modem to default windoze-compatible mode send AT+ZCDRUN=9 to
modem with cu.
I hope this will help.



Re: ZTE mf626 USB modem support

2013-02-13 Thread Kirill Bychkov
On Thu, February 14, 2013 07:49, Kirill Bychkov wrote:
 On Thu, February 14, 2013 06:24, Maximo Pech wrote:
 Hi list, I see this was asked before but never got solved, so I ask again.

 Has someone got this device working on openbsd? Is it supported?

 Thanks and regards.


 Hi. I plugged this modem on my Win7 notebook, installed software and drivers
 from it's internal cd and then connected with putty to it's second serial
 port (ZTE NMEA Device), whick answers on AT comand with OK.
 After that I send AT+ZCDRUN=8 to it to disable storage. Modem answered Close
 autorun state result (0:FAIL 1^:SUCCESS):1 and modem's storage disappeared
 from my computer.
 Now I have in dmesg:
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE, Incorporated ZTE CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umsm0: missing endpoint
 umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE, Incorporated ZTE CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umsm1: missing endpoint
 umass0 at uhub0 port 3 configuration 1 interface 2 ZTE, Incorporated ZTE CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 umass0: using SCSI over Bulk-Only
 scsibus5 at umass0: 2 targets, initiator 0
 sd3 at scsibus5 targ 1 lun 0: ZTE, MMC Storage, 322 SCSI2 0/direct removable
 serial.19d20031567890ABCDEF
 umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE, Incorporated ZTE CDMA
 Technologies MSM rev 2.00/0.00 addr 2
 ucom0 at umsm2

 At least 'cu -l /dev/cuaU0 -s 9600' answers OK on AT.
 I have no usable SIM for this provider-locked modem, so I can't fully test it.

 To backout modem to default windoze-compatible mode send AT+ZCDRUN=9 to
 modem with cu.
 I hope this will help.


My modem isn't provider-locked as I thought. Inserting another SIM helped to
connect to ISP.
I just copied /etc/ppp/ppp.conf.sample to /etc/ppp/ppp.conf, changed set
device and allow user to reflect reality and just run 'ppp -ddial mobile'
to connect.

Patch adds mentioning MF626 support and gives clues how to handle such modems.
OK? Comments?

Index: umsm.4
===
RCS file: /cvs/src/share/man/man4/umsm.4,v
retrieving revision 1.87
diff -u -r1.87 umsm.4
--- umsm.4  4 Jan 2013 02:53:54 -   1.87
+++ umsm.4  14 Feb 2013 06:00:08 -
@@ -111,6 +111,7 @@
 .It Li ZTE AC2746 Ta USB
 .It Li ZTE MF112 Ta USB
 .It Li ZTE MF190 Ta USB
+.It Li ZTE MF626 Ta USB
 .It Li ZTE MF633 Ta USB
 .It Li ZTE MF637 Ta USB
 .El
@@ -167,6 +168,10 @@
 on the third port, and after that the actual PPP connection comes
 up on the first port.
 The function of the second and fourth ports is unknown.
+.Pp
+Some modems require enabling modem mode with AT commands.
+This can be configured on other OS after installation of
+software shipped with modem.
 .Sh EXAMPLES
 An example
 .Pa /etc/ppp/ppp.conf



Re: ZTE MF 180 USB modem

2011-07-01 Thread David Coppa
On Thu, Jun 30, 2011 at 10:42 PM, Jeff Ross jr...@openvistas.net wrote:
 On 06/28/11 08:31, David Coppa wrote:

 On Tue, Jun 28, 2011 at 4:18 PM, Jeff Rossjr...@openvistas.net  wrote:

 Thanks for the reply, David.

 I'll try to figure out a way to do that, but the modem is in Morocco in
 use
 on a Windows computer and I'm in the middle of the US.

 From Windows, you can use this tool:

 http://www.uwe-sieber.de/files/listusbdrives.zip

 With the modem inserted into the usb port, run
 ListUsbDrives_To_Notepad.cmd and send the resulting txt file to me
 or to this list...

 Ciao,
 David

 Hi David,

 We tried the above but it didn't show the modem so I found

 USBdeview:  http://www.nirsoft.net/utils/usb_devices_view.html

 which does.

 Here's the output--I hope that's enough!

Hey Jeff,

Guess what? It should already be working (with 4.9 and -current) ;-)

cheers!
david



Re: ZTE MF 180 USB modem

2011-07-01 Thread Jeff Ross

On 07/01/11 01:14, David Coppa wrote:

On Thu, Jun 30, 2011 at 10:42 PM, Jeff Rossjr...@openvistas.net  wrote:

On 06/28/11 08:31, David Coppa wrote:


On Tue, Jun 28, 2011 at 4:18 PM, Jeff Rossjr...@openvistas.net   wrote:


Thanks for the reply, David.

I'll try to figure out a way to do that, but the modem is in Morocco in
use
on a Windows computer and I'm in the middle of the US.



 From Windows, you can use this tool:


http://www.uwe-sieber.de/files/listusbdrives.zip

With the modem inserted into the usb port, run
ListUsbDrives_To_Notepad.cmd and send the resulting txt file to me
or to this list...

Ciao,
David


Hi David,

We tried the above but it didn't show the modem so I found

USBdeview:  http://www.nirsoft.net/utils/usb_devices_view.html

which does.

Here's the output--I hope that's enough!


Hey Jeff,

Guess what? It should already be working (with 4.9 and -current) ;-)

cheers!
david


Great!  Now all I need to do is figure out what I need in a chat script.

Jeff



Re: ZTE MF 180 USB modem

2011-06-28 Thread David Coppa
On Tue, Jun 28, 2011 at 1:00 AM, Jeff Ross jr...@openvistas.net wrote:
 Hi,

 I have a friend in the Peace Corp in Morocco.  He's using a ZTE MF 180 USB
 modem connecting with Maroc Telecom on his windows based Acer Netbook.  I'm
 already sick of walking him through removing the latest windows 'sploit of
 the week, especially given that we do it through e-mail and across a lot of
 time zones :-)

 I'm thinking about making him a USB bootable OpenBSD installation with KDE
 to get him onto a secure platform but the modem has to work.

 Has anyone had any experience with the MF 180?  Mr Google didn't turn up
 anything for OpenBSD.

I would appreciate if you could provide me the output of 'usbdevs -dv'
for this modem: very probably it's just a matter of adding the right
strings to src/sys/dev/usb/umsm.c

ciao,
david



Re: ZTE MF 180 USB modem

2011-06-28 Thread Jeff Ross

On 06/28/11 01:45, David Coppa wrote:

On Tue, Jun 28, 2011 at 1:00 AM, Jeff Rossjr...@openvistas.net  wrote:

Hi,

I have a friend in the Peace Corp in Morocco.  He's using a ZTE MF 180 USB
modem connecting with Maroc Telecom on his windows based Acer Netbook.  I'm
already sick of walking him through removing the latest windows 'sploit of
the week, especially given that we do it through e-mail and across a lot of
time zones :-)

I'm thinking about making him a USB bootable OpenBSD installation with KDE
to get him onto a secure platform but the modem has to work.

Has anyone had any experience with the MF 180?  Mr Google didn't turn up
anything for OpenBSD.


I would appreciate if you could provide me the output of 'usbdevs -dv'
for this modem: very probably it's just a matter of adding the right
strings to src/sys/dev/usb/umsm.c

ciao,
david


Thanks for the reply, David.

I'll try to figure out a way to do that, but the modem is in Morocco in 
use on a Windows computer and I'm in the middle of the US.


Jeff



Re: ZTE MF 180 USB modem

2011-06-28 Thread David Coppa
On Tue, Jun 28, 2011 at 4:18 PM, Jeff Ross jr...@openvistas.net wrote:

 Thanks for the reply, David.

 I'll try to figure out a way to do that, but the modem is in Morocco in use
 on a Windows computer and I'm in the middle of the US.

From Windows, you can use this tool:

http://www.uwe-sieber.de/files/listusbdrives.zip

With the modem inserted into the usb port, run
ListUsbDrives_To_Notepad.cmd and send the resulting txt file to me
or to this list...

Ciao,
David



ZTE MF 180 USB modem

2011-06-27 Thread Jeff Ross

Hi,

I have a friend in the Peace Corp in Morocco.  He's using a ZTE MF 180 
USB modem connecting with Maroc Telecom on his windows based Acer 
Netbook.  I'm already sick of walking him through removing the latest 
windows 'sploit of the week, especially given that we do it through 
e-mail and across a lot of time zones :-)


I'm thinking about making him a USB bootable OpenBSD installation with 
KDE to get him onto a secure platform but the modem has to work.


Has anyone had any experience with the MF 180?  Mr Google didn't turn up 
anything for OpenBSD.


Thanks,

Jeff



ZTE MF190 HSUPA USB Modem with OpenBSD 4.8

2011-03-29 Thread Ahmad Zulkarnain
Hi,

I just bought a new ZTE MF190 HSUPA USB modem for my 4.8 machine. I
saw a few supported ZTE USB modem and I tried using this modem without
success. Using cu -l cuaU(0-2) just display connected and hangs
there. I would be glad if there's a pointer on how to get the modem
working in 4.8. Here's the dmesg:

umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
umsm0 detached
umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
ucom0 at umsm0
umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE,Incorporated
ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
ucom1 at umsm1
umass1 at uhub0 port 3 configuration 1 interface 2 ZTE,Incorporated
ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, initiator 0
cd1 at scsibus1 targ 1 lun 0: ZTE, USB SCSI CD-ROM, 2.31 SCSI2
5/cdrom removable
umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE,Incorporated
ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
ucom2 at umsm2


And here's the usbdevs -v output:

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
 port 3 addr 5: high speed, power 500 mA, config 1, ZTE WCDMA
Technologies MSM(0x0031), ZTE,Incorporated(0x19d2), rev 0.00,
iSerialNumber P671A1CELD01
 port 4 powered
 port 5 addr 2: high speed, self powered, config 1, USB2 Hub(0x6560),
Cypress Semiconductor(0x04b4), rev 0.0b
  port 1 addr 3: high speed, self powered, config 1, USB Multibay IDE
2.466(0x031d), Hewlett Packard(0x03f0), rev 2.46, iSerialNumber
HH63MC0BLTC1
  port 2 powered
  port 3 powered
  port 4 addr 4: low speed, power 98 mA, config 1, USB-PS/2 Optical
Mouse(0xc03d), Logitech(0x046d), rev 20.00
 port 6 powered
 port 7 powered
 port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 poweredController /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered

In XP, the USB modem will have some sort of virtual CDRom which act as
the provider's (Celcom) software installer. Here's a bit of info about
the modem on ZTE's web:

*  UMTS/HSDPA/WCDMA 2100MHz
* GSM/GPRS/EDGE 850/900/1800/1900MHz
* Support HSDPA up to 7.2Mbps, HSUPA up to 2Mbps
* Dimensions: 76mm * 26mm * 11mm(without cap)
  90mm * 26mm * 11mm(with cap)
* Weight :21g
* Operating Temperature:-10 to 60B0 C
* Storage Temperature:-40 to 80B0 C
* Approvals Certification:CE,GCF,FC,ROHS,WHQL.
* Storage Capacity: Up to 4G Micro-SD card
* Solution:Chipset supplier:Qualcomm
  Chipset:MSM6290
* USB VersionUSB 2.0 HIGH SPEED
* Maximum power consumption 2.5W
* Power supply:5v

Thanks in advance.

--
Ahmad Zulkarnain



Re: ZTE MF190 HSUPA USB Modem with OpenBSD 4.8

2011-03-29 Thread MERIGHI Marcus
sounds similar to 

http://marc.info/?l=openbsd-miscm=129104388909427
http://marc.info/?l=openbsd-techm=129104820617203

see follow-ups, too.

als...@gmail.com (Ahmad Zulkarnain), 2011.03.29 (Tue) 07:17 (CEST):
 Hi,
 
 I just bought a new ZTE MF190 HSUPA USB modem for my 4.8 machine. I
 saw a few supported ZTE USB modem and I tried using this modem without
 success. Using cu -l cuaU(0-2) just display connected and hangs
 there. I would be glad if there's a pointer on how to get the modem
 working in 4.8. Here's the dmesg:
 
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 umsm0 detached
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 ucom0 at umsm0
 umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 ucom1 at umsm1
 umass1 at uhub0 port 3 configuration 1 interface 2 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 umass1: using SCSI over Bulk-Only
 scsibus1 at umass1: 2 targets, initiator 0
 cd1 at scsibus1 targ 1 lun 0: ZTE, USB SCSI CD-ROM, 2.31 SCSI2
 5/cdrom removable
 umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 ucom2 at umsm2
 
 
 And here's the usbdevs -v output:
 
 $ usbdevs -v
 Controller /dev/usb0:
 addr 1: high speed, self powered, config 1, EHCI root hub(0x),
 Intel(0x8086), rev 1.00
  port 1 powered
  port 2 powered
  port 3 addr 5: high speed, power 500 mA, config 1, ZTE WCDMA
 Technologies MSM(0x0031), ZTE,Incorporated(0x19d2), rev 0.00,
 iSerialNumber P671A1CELD01
  port 4 powered
  port 5 addr 2: high speed, self powered, config 1, USB2 Hub(0x6560),
 Cypress Semiconductor(0x04b4), rev 0.0b
   port 1 addr 3: high speed, self powered, config 1, USB Multibay IDE
 2.466(0x031d), Hewlett Packard(0x03f0), rev 2.46, iSerialNumber
 HH63MC0BLTC1
   port 2 powered
   port 3 powered
   port 4 addr 4: low speed, power 98 mA, config 1, USB-PS/2 Optical
 Mouse(0xc03d), Logitech(0x046d), rev 20.00
  port 6 powered
  port 7 powered
  port 8 powered
 Controller /dev/usb1:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
  port 1 powered
  port 2 poweredController /dev/usb2:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
  port 1 powered
  port 2 powered
 Controller /dev/usb3:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
  port 1 powered
  port 2 powered
 
 In XP, the USB modem will have some sort of virtual CDRom which act as
 the provider's (Celcom) software installer. Here's a bit of info about
 the modem on ZTE's web:
 
 *  UMTS/HSDPA/WCDMA 2100MHz
 * GSM/GPRS/EDGE 850/900/1800/1900MHz
 * Support HSDPA up to 7.2Mbps, HSUPA up to 2Mbps
 * Dimensions: 76mm * 26mm * 11mm(without cap)
   90mm * 26mm * 11mm(with cap)
 * Weight :21g
 * Operating Temperature:-10 to 60B0 C
 * Storage Temperature:-40 to 80B0 C
 * Approvals Certification:CE,GCF,FC,ROHS,WHQL.
 * Storage Capacity: Up to 4G Micro-SD card
 * Solution:Chipset supplier:Qualcomm
   Chipset:MSM6290
 * USB VersionUSB 2.0 HIGH SPEED
 * Maximum power consumption 2.5W
 * Power supply:5v
 
 Thanks in advance.
 
 --
 Ahmad Zulkarnain



Re: ZTE MF190 HSUPA USB Modem with OpenBSD 4.8

2011-03-29 Thread Daniel Gracia
Yep, that sounds totally right. The same over here with a ZTE MF110UP; 
just updated the pertinent usb files and got it working.


ZTE seems to have a very broad range of product (numbers) over there.

El 29/03/2011 9:27, MERIGHI Marcus escribis:

sounds similar to

http://marc.info/?l=openbsd-miscm=129104388909427
http://marc.info/?l=openbsd-techm=129104820617203

see follow-ups, too.

als...@gmail.com (Ahmad Zulkarnain), 2011.03.29 (Tue) 07:17 (CEST):

Hi,

I just bought a new ZTE MF190 HSUPA USB modem for my 4.8 machine. I
saw a few supported ZTE USB modem and I tried using this modem without
success. Using cu -l cuaU(0-2) just display connected and hangs
there. I would be glad if there's a pointer on how to get the modem
working in 4.8. Here's the dmesg:

umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
umsm0 detached
umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
ucom0 at umsm0
umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE,Incorporated
ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
ucom1 at umsm1
umass1 at uhub0 port 3 configuration 1 interface 2 ZTE,Incorporated
ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, initiator 0
cd1 at scsibus1 targ 1 lun 0:ZTE, USB SCSI CD-ROM, 2.31  SCSI2
5/cdrom removable
umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE,Incorporated
ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
ucom2 at umsm2


And here's the usbdevs -v output:

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
  port 1 powered
  port 2 powered
  port 3 addr 5: high speed, power 500 mA, config 1, ZTE WCDMA
Technologies MSM(0x0031), ZTE,Incorporated(0x19d2), rev 0.00,
iSerialNumber P671A1CELD01
  port 4 powered
  port 5 addr 2: high speed, self powered, config 1, USB2 Hub(0x6560),
Cypress Semiconductor(0x04b4), rev 0.0b
   port 1 addr 3: high speed, self powered, config 1, USB Multibay IDE
2.466(0x031d), Hewlett Packard(0x03f0), rev 2.46, iSerialNumber
HH63MC0BLTC1
   port 2 powered
   port 3 powered
   port 4 addr 4: low speed, power 98 mA, config 1, USB-PS/2 Optical
Mouse(0xc03d), Logitech(0x046d), rev 20.00
  port 6 powered
  port 7 powered
  port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  port 1 powered
  port 2 poweredController /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  port 1 powered
  port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x8086), rev 1.00
  port 1 powered
  port 2 powered

In XP, the USB modem will have some sort of virtual CDRom which act as
the provider's (Celcom) software installer. Here's a bit of info about
the modem on ZTE's web:

 *  UMTS/HSDPA/WCDMA 2100MHz
 * GSM/GPRS/EDGE 850/900/1800/1900MHz
 * Support HSDPA up to 7.2Mbps, HSUPA up to 2Mbps
 * Dimensions: 76mm * 26mm * 11mm(without cap)
   90mm * 26mm * 11mm(with cap)
 * Weight :21g
 * Operating Temperature:-10 to 60B0 C
 * Storage Temperature:-40 to 80B0 C
 * ApprovalsCertification:CE,GCF,FC,ROHS,WHQL.
 * Storage Capacity: Up to 4G Micro-SD card
 * Solution:Chipset supplier:Qualcomm
   Chipset:MSM6290
 * USB VersionUSB 2.0 HIGH SPEED
 * Maximum power consumption 2.5W
 * Power supply:5v

Thanks in advance.

--
Ahmad Zulkarnain




Re: ZTE MF190 HSUPA USB Modem with OpenBSD 4.8

2011-03-29 Thread MERIGHI Marcus
lists.d...@electronicagracia.com (Daniel Gracia), 2011.03.29 (Tue) 09:42 (CEST):
 Yep, that sounds totally right. The same over here with a ZTE
 MF110UP; just updated the pertinent usb files and got it working.

let us all have it, diff -u to tech@, prego.
 
 ZTE seems to have a very broad range of product (numbers) over there.
 
which partly do not even exist on their website[1], just as yours.

[1] http://www.zte.com.cn/

 El 29/03/2011 9:27, MERIGHI Marcus escribis:
 sounds similar to
 
 http://marc.info/?l=openbsd-miscm=129104388909427
 http://marc.info/?l=openbsd-techm=129104820617203
 
 see follow-ups, too.
 
 als...@gmail.com (Ahmad Zulkarnain), 2011.03.29 (Tue) 07:17 (CEST):
 Hi,
 
 I just bought a new ZTE MF190 HSUPA USB modem for my 4.8 machine. I
 saw a few supported ZTE USB modem and I tried using this modem without
 success. Using cu -l cuaU(0-2) just display connected and hangs
 there. I would be glad if there's a pointer on how to get the modem
 working in 4.8. Here's the dmesg:
 
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 umsm0 detached
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 ucom0 at umsm0
 umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 ucom1 at umsm1
 umass1 at uhub0 port 3 configuration 1 interface 2 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 umass1: using SCSI over Bulk-Only
 scsibus1 at umass1: 2 targets, initiator 0
 cd1 at scsibus1 targ 1 lun 0:ZTE, USB SCSI CD-ROM, 2.31  SCSI2
 5/cdrom removable
 umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 ucom2 at umsm2
 
 
 And here's the usbdevs -v output:
 
 $ usbdevs -v
 Controller /dev/usb0:
 addr 1: high speed, self powered, config 1, EHCI root hub(0x),
 Intel(0x8086), rev 1.00
   port 1 powered
   port 2 powered
   port 3 addr 5: high speed, power 500 mA, config 1, ZTE WCDMA
 Technologies MSM(0x0031), ZTE,Incorporated(0x19d2), rev 0.00,
 iSerialNumber P671A1CELD01
   port 4 powered
   port 5 addr 2: high speed, self powered, config 1, USB2 Hub(0x6560),
 Cypress Semiconductor(0x04b4), rev 0.0b
port 1 addr 3: high speed, self powered, config 1, USB Multibay IDE
 2.466(0x031d), Hewlett Packard(0x03f0), rev 2.46, iSerialNumber
 HH63MC0BLTC1
port 2 powered
port 3 powered
port 4 addr 4: low speed, power 98 mA, config 1, USB-PS/2 Optical
 Mouse(0xc03d), Logitech(0x046d), rev 20.00
   port 6 powered
   port 7 powered
   port 8 powered
 Controller /dev/usb1:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
   port 1 powered
   port 2 poweredController /dev/usb2:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
   port 1 powered
   port 2 powered
 Controller /dev/usb3:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
   port 1 powered
   port 2 powered
 
 In XP, the USB modem will have some sort of virtual CDRom which act as
 the provider's (Celcom) software installer. Here's a bit of info about
 the modem on ZTE's web:
 
  *  UMTS/HSDPA/WCDMA 2100MHz
  * GSM/GPRS/EDGE 850/900/1800/1900MHz
  * Support HSDPA up to 7.2Mbps, HSUPA up to 2Mbps
  * Dimensions: 76mm * 26mm * 11mm(without cap)
90mm * 26mm * 11mm(with cap)
  * Weight :21g
  * Operating Temperature:-10 to 60B0 C
  * Storage Temperature:-40 to 80B0 C
  * ApprovalsCertification:CE,GCF,FC,ROHS,WHQL.
  * Storage Capacity: Up to 4G Micro-SD card
  * Solution:Chipset supplier:Qualcomm
Chipset:MSM6290
  * USB VersionUSB 2.0 HIGH SPEED
  * Maximum power consumption 2.5W
  * Power supply:5v
 
 Thanks in advance.
 
 --
 Ahmad Zulkarnain
 

-- 
https://www.Tor.AT/~McMer/.signature

Ich untersage hiermit a) die Verwendung meiner personenbezogenen Daten
zu anderen Zwecken als den in diesem Vorgang gegenstaendlichen sowie b)
die Weitergabe meiner personenbezogenen Daten.  Die Nichtbefolgung
dieser Anweisung ist in Oesterreich gesetzeswidrig. Siehe hiezu das 
Datenschutzgesetz (DSG) 2000 idgF., zu finden u.a. unter:
http://ris.bka.gv.at/GeltendeFassung.wxe?Abfrage=BundesnormenGesetzesnummer=10001597



Re: ZTE MF190 HSUPA USB Modem with OpenBSD 4.8

2011-03-29 Thread David Coppa
On Tue, Mar 29, 2011 at 12:35 PM, MERIGHI Marcus mcmer-open...@tor.at wrote:
 lists.d...@electronicagracia.com (Daniel Gracia), 2011.03.29 (Tue) 09:42 
 (CEST):
 Yep, that sounds totally right. The same over here with a ZTE
 MF110UP; just updated the pertinent usb files and got it working.

 let us all have it, diff -u to tech@, prego.

Boys, this particular device (ZTE MF190 HSUPA USB modem) should
already work: read src/sys/dev/usbdevs and src/sys/dev/usb/umsm.c
carefully. If it doesn't, the problem is not missing entries in the
usb files...

ciao,
david



Re: ZTE MF190 HSUPA USB Modem with OpenBSD 4.8

2011-03-29 Thread Daniel Gracia
My Device (ZTE MG110 HSUPA USB modem, and it's not a typo) works after 
adding the single-liner definitions at .c and .h files -sorry, don't 
have access to the machine now-.


I can remember it's a little funky toy; first attachs with a ID PRDCT of 
0x0083 and then, when ejecting the first virtual cd device, it comes as 
0x0124 (?), where the massive umsm's comms appear.


El 29/03/2011 13:04, David Coppa escribis:

On Tue, Mar 29, 2011 at 12:35 PM, MERIGHI Marcusmcmer-open...@tor.at  wrote:

lists.d...@electronicagracia.com (Daniel Gracia), 2011.03.29 (Tue) 09:42 (CEST):

Yep, that sounds totally right. The same over here with a ZTE
MF110UP; just updated the pertinent usb files and got it working.


let us all have it, diff -u to tech@, prego.


Boys, this particular device (ZTE MF190 HSUPA USB modem) should
already work: read src/sys/dev/usbdevs and src/sys/dev/usb/umsm.c
carefully. If it doesn't, the problem is not missing entries in the
usb files...

ciao,
david




Re: ZTE MF190 HSUPA USB Modem with OpenBSD 4.8

2011-03-29 Thread Daniel Gracia

Oh my, now _that's_ a typo: it's a MF110 :)

El 29/03/2011 18:44, Daniel Gracia escribis:

My Device (ZTE MG110 HSUPA USB modem, and it's not a typo) works after
adding the single-liner definitions at .c and .h files -sorry, don't
have access to the machine now-.

I can remember it's a little funky toy; first attachs with a ID PRDCT of
0x0083 and then, when ejecting the first virtual cd device, it comes as
0x0124 (?), where the massive umsm's comms appear.

El 29/03/2011 13:04, David Coppa escribis:

On Tue, Mar 29, 2011 at 12:35 PM, MERIGHI Marcusmcmer-open...@tor.at
wrote:

lists.d...@electronicagracia.com (Daniel Gracia), 2011.03.29 (Tue)
09:42 (CEST):

Yep, that sounds totally right. The same over here with a ZTE
MF110UP; just updated the pertinent usb files and got it working.


let us all have it, diff -u to tech@, prego.


Boys, this particular device (ZTE MF190 HSUPA USB modem) should
already work: read src/sys/dev/usbdevs and src/sys/dev/usb/umsm.c
carefully. If it doesn't, the problem is not missing entries in the
usb files...

ciao,
david




Re: ZTE MF190 HSUPA USB Modem with OpenBSD 4.8

2011-03-29 Thread Ahmad Zulkarnain
Thanks for the info! Now to get rid of the chat script error. Thanks again!

On Tue, Mar 29, 2011 at 3:27 PM, MERIGHI Marcus mcmer-open...@tor.at wrote:
 sounds similar to

 http://marc.info/?l=openbsd-miscm=129104388909427
 http://marc.info/?l=openbsd-techm=129104820617203

 see follow-ups, too.

 als...@gmail.com (Ahmad Zulkarnain), 2011.03.29 (Tue) 07:17 (CEST):
 Hi,

 I just bought a new ZTE MF190 HSUPA USB modem for my 4.8 machine. I
 saw a few supported ZTE USB modem and I tried using this modem without
 success. Using cu -l cuaU(0-2) just display connected and hangs
 there. I would be glad if there's a pointer on how to get the modem
 working in 4.8. Here's the dmesg:

 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 umsm0 detached
 umsm0 at uhub0 port 3 configuration 1 interface 0 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 ucom0 at umsm0
 umsm1 at uhub0 port 3 configuration 1 interface 1 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 ucom1 at umsm1
 umass1 at uhub0 port 3 configuration 1 interface 2 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 umass1: using SCSI over Bulk-Only
 scsibus1 at umass1: 2 targets, initiator 0
 cd1 at scsibus1 targ 1 lun 0: ZTE, USB SCSI CD-ROM, 2.31 SCSI2
 5/cdrom removable
 umsm2 at uhub0 port 3 configuration 1 interface 3 ZTE,Incorporated
 ZTE WCDMA Technologies MSM rev 2.00/0.00 addr 5
 ucom2 at umsm2


 And here's the usbdevs -v output:

 $ usbdevs -v
 Controller /dev/usb0:
 addr 1: high speed, self powered, config 1, EHCI root hub(0x),
 Intel(0x8086), rev 1.00
 B port 1 powered
 B port 2 powered
 B port 3 addr 5: high speed, power 500 mA, config 1, ZTE WCDMA
 Technologies MSM(0x0031), ZTE,Incorporated(0x19d2), rev 0.00,
 iSerialNumber P671A1CELD01
 B port 4 powered
 B port 5 addr 2: high speed, self powered, config 1, USB2 Hub(0x6560),
 Cypress Semiconductor(0x04b4), rev 0.0b
 B  port 1 addr 3: high speed, self powered, config 1, USB Multibay IDE
 2.466(0x031d), Hewlett Packard(0x03f0), rev 2.46, iSerialNumber
 HH63MC0BLTC1
 B  port 2 powered
 B  port 3 powered
 B  port 4 addr 4: low speed, power 98 mA, config 1, USB-PS/2 Optical
 Mouse(0xc03d), Logitech(0x046d), rev 20.00
 B port 6 powered
 B port 7 powered
 B port 8 powered
 Controller /dev/usb1:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
 B port 1 powered
 B port 2 poweredController /dev/usb2:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
 B port 1 powered
 B port 2 powered
 Controller /dev/usb3:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x8086), rev 1.00
 B port 1 powered
 B port 2 powered

 In XP, the USB modem will have some sort of virtual CDRom which act as
 the provider's (Celcom) software installer. Here's a bit of info about
 the modem on ZTE's web:

 B  B  * B UMTS/HSDPA/WCDMA 2100MHz
 B  B  * GSM/GPRS/EDGE 850/900/1800/1900MHz
 B  B  * Support HSDPA up to 7.2Mbps, HSUPA up to 2Mbps
 B  B  * Dimensions: 76mm * 26mm * 11mm(without cap)
 B  B  B  90mm * 26mm * 11mm(with cap)
 B  B  * Weight :21g
 B  B  * Operating Temperature:-10 to 60B0 C
 B  B  * Storage Temperature:-40 to 80B0 C
 B  B  * Approvals Certification:CE,GCF,FC,ROHS,WHQL.
 B  B  * Storage Capacity: Up to 4G Micro-SD card
 B  B  * Solution:Chipset supplier:Qualcomm
 B  B  B  Chipset:MSM6290
 B  B  * USB VersionUSB 2.0 HIGH SPEED
 B  B  * Maximum power consumption 2.5W
 B  B  * Power supply:5v

 Thanks in advance.

 --
 Ahmad Zulkarnain





--
Karl



Re: Options iCON401 USB 'modem' needs umass-umsm tickle ?

2011-01-28 Thread Stuart Henderson
On 2011-01-27, Pete Vickers p...@systemnet.no wrote:
 Hi,

 My Option iCON401 (aka GI401) [1], appears to require tickling to re-appear as
 a umsm instead of the initial umass. Can someone point me at the file/list to
 add the IDs to, too invoke this ?

*If* it is indeed compatible with umsm(4), add the device IDs to
sys/dev/usb/usbdevs, make, and add the IDs in the table in
sys/dev/usb/umsm.c.

Before you build kernels, first try to eject the umass device
(e.g. eject cd1). If that does the trick then DEV_UMASS4 is the one
to use.

Otherwise you can try the various DEV_UMASS# (currently 1 through 6).



 thanks

 /Pete


 $ usbdevs -dv -f /dev/usb0

 Controller /dev/usb0:
 addr 1: high speed, self powered, config 1, EHCI root hub(0x),
 Intel(0x8086), rev 1.00
   uhub0
  port 1 addr 2: high speed, power 500 mA, config 1, Globetrotter HSUPA
 Modem(0x7401), Option N.V.(0x0af0), rev 0.00, iSerialNumber Serial Number
umass0



 Under Mac OS.X it creates 4 serial lines:

 mbp:~ pete$ ls- l /dev/tty.GI*
 crw-rw-rw-  1 root  wheel   11,   8 Jan 26 22:35 /dev/tty.GI401 App
 crw-rw-rw-  1 root  wheel   11,  10 Jan 26 22:35 /dev/tty.GI401 Control
 crw-rw-rw-  1 root  wheel   11,   6 Jan 26 22:35 /dev/tty.GI401 Diag
 crw-rw-rw-  1 root  wheel   11,  12 Jan 26 22:35 /dev/tty.GI401 Modem


 [1] http://www.option.com/en/products/products/usb-modems/icon401



Options iCON401 USB 'modem' needs umass-umsm tickle ?

2011-01-27 Thread Pete Vickers
Hi,

My Option iCON401 (aka GI401) [1], appears to require tickling to re-appear as
a umsm instead of the initial umass. Can someone point me at the file/list to
add the IDs to, too invoke this ?

thanks

/Pete


$ usbdevs -dv -f /dev/usb0

Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub0
 port 1 addr 2: high speed, power 500 mA, config 1, Globetrotter HSUPA
Modem(0x7401), Option N.V.(0x0af0), rev 0.00, iSerialNumber Serial Number
   umass0



Under Mac OS.X it creates 4 serial lines:

mbp:~ pete$ ls- l /dev/tty.GI*
crw-rw-rw-  1 root  wheel   11,   8 Jan 26 22:35 /dev/tty.GI401 App
crw-rw-rw-  1 root  wheel   11,  10 Jan 26 22:35 /dev/tty.GI401 Control
crw-rw-rw-  1 root  wheel   11,   6 Jan 26 22:35 /dev/tty.GI401 Diag
crw-rw-rw-  1 root  wheel   11,  12 Jan 26 22:35 /dev/tty.GI401 Modem


[1] http://www.option.com/en/products/products/usb-modems/icon401



Re: Options iCON401 USB 'modem' needs umass-umsm tickle ?

2011-01-27 Thread David Coppa
On Thu, Jan 27, 2011 at 10:23 AM, Pete Vickers p...@systemnet.no wrote:
 Hi,

 My Option iCON401 (aka GI401) [1], appears to require tickling to re-appear as
 a umsm instead of the initial umass. Can someone point me at the file/list to
 add the IDs to, too invoke this ?

This USB dongle from Option comes with a special packet interface and
requires a dedicated driver, called HSO.

It's not supported by OpenBSD atm... Use another card!



Re: usb modem ADU-500A

2010-04-22 Thread Duncan Patton a Campbell
On Wed, 21 Apr 2010 10:54:07 + (UTC)
Stuart Henderson s...@spacehopper.org wrote:

 On 2010-04-21, Duncan Patton a Campbell campb...@neotext.ca wrote:
 
  I looked at the support site and found that there's a 
  substantial driver to download that only supports recent
  MS products.  
 
 same for many other devices that OpenBSD supports...
 
  I have an older cdma modem from AnyDATA and found it useless
  for most OS including OBSD.  I was only able to get 
  limited tty connections and any crypto bombed it.
 
 that sounds more like a problem with MTU or handshaking.
 

The behaviour seemed to me to resemble that of packed data
on a compressed channel.  More like MTU than handshake stuff.

Dhu



Re: usb modem ADU-500A

2010-04-21 Thread Duncan Patton a Campbell
On Tue, 20 Apr 2010 11:05:11 +0200
David Coppa dco...@gmail.com wrote:

 2010/4/20 zAJKOW dMITRIJ aLEKSANDROWI^ dmitri...@narod.ru:
  Hi. I'm not speek english.
 
  OpenBSD 4.6 i386.
  Not working modem ADU-500A (driver umsm).
 
 Send us the output of:
 
 usbdevs -dv
 
 cheers,
 david
 

Just at a guess this might be a winmodem type of problem.  
I looked at the support site and found that there's a 
substantial driver to download that only supports recent
MS products.  

I have an older cdma modem from AnyDATA and found it useless
for most OS including OBSD.  I was only able to get 
limited tty connections and any crypto bombed it.

Dhu



Re: usb modem ADU-500A

2010-04-21 Thread Stuart Henderson
On 2010-04-21, Duncan Patton a Campbell campb...@neotext.ca wrote:

 I looked at the support site and found that there's a 
 substantial driver to download that only supports recent
 MS products.  

same for many other devices that OpenBSD supports...

 I have an older cdma modem from AnyDATA and found it useless
 for most OS including OBSD.  I was only able to get 
 limited tty connections and any crypto bombed it.

that sounds more like a problem with MTU or handshaking.



Re: usb modem ADU-500A

2010-04-20 Thread David Coppa
2010/4/20 zAJKOW dMITRIJ aLEKSANDROWI^ dmitri...@narod.ru:
 Hi. I'm not speek english.

 OpenBSD 4.6 i386.
 Not working modem ADU-500A (driver umsm).

Send us the output of:

usbdevs -dv

cheers,
david



usb modem ADU-500A

2010-04-19 Thread Зайков Дмитрий Александрович
Hi. I'm not speek english.

OpenBSD 4.6 i386.
Not working modem ADU-500A (driver umsm).

Attach device.
# dmesg
OpenBSD 4.6 (GENERIC.MP) #89: Thu Jul 9 21:32:39 MDT 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: IntelB. Core(TM)2 Quad CPU Q8400 @ 2.66GHz (B+GenuineIntelB; 686-class) 
2.67 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
real mem = 2146529280 (2047MB)
avail mem = 2066780160 (1971MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/03/09, BIOS32 rev. 0 @ 0xf0010, SMBIOS 
rev. 2.5 @ 0xf0710 (63 entries)
bios0: vendor American Megatrends Inc. version B+0402B; date 09/03/2009
bios0: ASUSTeK Computer INC. P5P43TD
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC MCFG OEMB HPET OSFR SSDT
acpi0: wakeup devices P0P2(S4) P0P3(S4) P0P1(S4) UAR1(S4) PS2K(S4) PS2M(S4) 
EUSB(S4) USBE(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) GBEC(S4) 
USB0(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) USB5(S4) USB6(S4) P0P4(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 333MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: IntelB. Core(TM)2 Quad CPU Q8400 @ 2.66GHz (B+GenuineIntelB; 686-class) 
2.67 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
cpu2 at mainbus0: apid 2 (application processor)
cpu2: IntelB. Core(TM)2 Quad CPU Q8400 @ 2.66GHz (B+GenuineIntelB; 686-class) 
2.67 GHz
cpu2: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
cpu3 at mainbus0: apid 3 (application processor)
cpu3: IntelB. Core(TM)2 Quad CPU Q8400 @ 2.66GHz (B+GenuineIntelB; 686-class) 
2.67 GHz
cpu3: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P2)
acpiprt2 at acpi0: bus -1 (P0P3)
acpiprt3 at acpi0: bus 5 (P0P1)
acpiprt4 at acpi0: bus -1 (P0P6)
acpiprt5 at acpi0: bus -1 (P0P7)
acpiprt6 at acpi0: bus 3 (P0P8)
acpiprt7 at acpi0: bus 2 (P0P9)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpicpu2 at acpi0: PSS
acpicpu3 at acpi0: PSS
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0xe200 0xce800/0x2000!
cpu0: Enhanced SpeedStep 2667 MHz: speeds: 2670, 2336, 2003 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 B+Intel G45 HostB; rev 0x03
ppb0 at pci0 dev 1 function 0 B+Intel G45 PCIEB; rev 0x03: apic 4 int 16 (irq 
10)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor B+NVIDIAB;, unknown product 0x06e4 rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 B+Intel 82801JI USBB; rev 0x00: apic 4 int 16 
(irq 10)
uhci1 at pci0 dev 26 function 1 B+Intel 82801JI USBB; rev 0x00: apic 4 int 21 
(irq 14)
uhci2 at pci0 dev 26 function 2 B+Intel 82801JI USBB; rev 0x00: apic 4 int 18 
(irq 15)
ehci0 at pci0 dev 26 function 7 B+Intel 82801JI USBB; rev 0x00: apic 4 int 18 
(irq 15)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 B+Intel EHCI root hubB; rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 B+Intel 82801JI HD AudioB; rev 0x00: apic 4 
int 22 (irq 3)
azalia0: codecs: Realtek/0x0887
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 B+Intel 82801JI PCIEB; rev 0x00: apic 4 int 17 
(irq 11)
pci2 at ppb1 bus 4
ppb2 at pci0 dev 28 function 4 B+Intel 82801JI PCIEB; rev 0x00: apic 4 int 17 
(irq 11)
pci3 at ppb2 bus 3
jmb0 at pci3 dev 0 function 0 B+JMicron JMB368 IDEB; rev 0x00
pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to 
native-PCI
pciide0: using apic 4 int 16 (irq 10) for native-PCI interrupt
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
ppb3 at pci0 dev 28 function 5 B+Intel 82801JI PCIEB; rev 0x00: apic 4 int 16 
(irq 10)
pci4 at ppb3 bus 2
ale0 at pci4 dev 0 function 0 B+Attansic Technology L1EB; rev 0xb0: apic 4 int 
17 (irq 11), address 90:e6:ba:57:6b:bb
atphy0 at ale0 phy 0: F1 10/100/1000 PHY, rev. 9
uhci3 at pci0 dev 29 function 0 B+Intel 82801JI USBB; rev 0x00: apic 4 int 23 
(irq 6)
uhci4 at pci0 dev 29 function 1 B+Intel 82801JI USBB; rev 0x00: apic 4 int 19 
(irq 5)
uhci5 at pci0 dev 29 function 2 B+Intel 82801JI USBB; rev 0x00: apic 4 int 18 
(irq 15)
ehci1 at pci0 dev 29 function 7 B+Intel 82801JI USBB; rev 0x00: apic 4 int 23 
(irq 6)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 B+Intel EHCI root hubB; rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 

Re: ZTE-MF626 USB Modem

2009-10-17 Thread Sergio Andrés Gómez del Real
I don't know if it is the way, but kind of works:

./umsm.c:   {{ USB_VENDOR_QUALCOMM3, USB_PRODUCT_QUALCOMM3_ZTE_626 }, 0},
./usbdevs.h:#define USB_PRODUCT_QUALCOMM3_ZTE_626   0x0031  /* 
ZTE-626 MSM */
./usbdevs_data.h:   USB_VENDOR_QUALCOMM3, USB_PRODUCT_QUALCOMM3_ZTE_626,
./usbdevs_data.h:   ZTE 626 CDMA USB modem,

The product ID for my modem, the ZTE MF626 is 0x0031. So added to
those structures, #defined and recompiled.

Now I get the following:

OpenBSD 4.5 (GENERIC.MP) #7: Sat Oct 17 14:36:59 COT 2009
r...@uix:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2143023104 (2043MB)
avail mem = 2069692416 (1973MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf7250 (44 entries)
bios0: vendor Dell Inc. version A10 date 07/17/2009
bios0: Dell Inc. Inspiron 1545
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET APIC MCFG SLIC SSDT
acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0)
USB4(S0) USB5(S0) USB6(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3)
RP02(S3) RP03(S3) RP04(S3) RP05(S3) RP06(S3) LID_(S3) PBTN(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.36 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 265MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus 9 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 13 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3
acpicpu1 at acpi0: C3
acpitz0 at acpi0: critical temperature 105 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model DELL Y823G9 serial 591 type LION oem SMP
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0617092006000920
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2400 MHz (1212 mV): speeds: 2400, 1600 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
ppb0 at pci0 dev 1 function 0 Intel GM45 PCIE rev 0x07: apic 2 int 16 (irq 0)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x9552 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2
int 21 (irq 10)
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 7)
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 7)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x03:
apic 2 int 21 (irq 10)
azalia0: codecs: IDT 92HD71B7
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: apic 2
int 16 (irq 0)
pci2 at ppb1 bus 11
ppb2 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: apic 2
int 17 (irq 0)
pci3 at ppb2 bus 12
iwn0 at pci3 dev 0 function 0 Intel WiFi Link 5100AGN rev 0x00: apic
2 int 17 (irq 5), MIMO 1T2R, MoW, address 00:22:fb:9b:6f:62
ppb3 at pci0 dev 28 function 2 Intel 82801I PCIE rev 0x03: apic 2
int 18 (irq 0)
pci4 at ppb3 bus 9
mskc0 at pci4 dev 0 function 0 Marvell Yukon 88E8040 rev 0x13,
Yukon-2 FE+ (0x0): apic 2 int 18 (irq 10)
msk0 at mskc0 port A: address 00:25:64:52:74:2d
eephy0 at msk0 phy 0: 88E3016 10/100 PHY, rev. 0
ppb4 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: apic 2
int 16 (irq 0)
pci5 at ppb4 bus 13
uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x03: apic 2
int 21 (irq 10)
uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 7)
ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x93
pci6

Re: ZTE-MF626 USB Modem

2009-10-15 Thread Jonathan Gray
On Wed, Oct 14, 2009 at 10:11:20AM -0300, Giancarlo Razzolini wrote:
   
 I do have this modem working on linux. The problem with it is that, when  
 you plug it in, it is detected as a cdrom device. On linux I use a  
 program called usb_modeswitch. It changes the mode of operation of the  
 device by issuing some usb commands. I guess you would have to implement  
 the same thing for OpenBSD. There is really no way around this.

 My regards,

Sure there is.  Try a diff like the following, and keep decrementing
the value of DEV_UMASS till it works, DEV_UMASS3 DEV_UMASS2 etc.

You'll need to run make in sys/dev/usb after applying to patch
before building a kernel.

Index: umsm.c
===
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.49
diff -N -u -p umsm.c
--- umsm.c  7 Sep 2009 20:26:13 -   1.49
+++ umsm.c  15 Oct 2009 08:51:27 -
@@ -141,6 +141,8 @@ static const struct umsm_type umsm_devs[] = {
{{ USB_VENDOR_QUALCOMM, USB_PRODUCT_QUALCOMM_MSM_HSDPA }, 0},
{{ USB_VENDOR_QUALCOMM, USB_PRODUCT_QUALCOMM_MSM_HSDPA2 }, 0},
 
+   {{ USB_VENDOR_QUALCOMM3, USB_PRODUCT_QUALCOMM3_ZTE_MSM }, DEV_UMASS4},
+
{{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_EXPRESSCARD }, 0},
{{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_MERLINV620 }, 0},
{{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_MERLINV740 }, 0},
Index: usbdevs
===
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.451
diff -N -u -p usbdevs
--- usbdevs 20 Sep 2009 12:53:36 -  1.451
+++ usbdevs 15 Oct 2009 08:51:27 -
@@ -2502,6 +2504,7 @@ product QUALCOMM2 MSM_PHONE   0x6000  CDMA MSM phone
 
 /* Qualcomm(3) products */
 product QUALCOMM3 CDMA_MSM 0x0001  CDMA Technologies MSM modem
+product QUALCOMM3 ZTE_MSM  0x2000  ZTE CDMA USB modem
 product QUALCOMM3 AC8700   0xfffe  AC8700 CDMA USB modem
 
 /* Quanta products */



Re: ZTE-MF626 USB Modem

2009-10-14 Thread Giancarlo Razzolini

Sergio Andris Gsmez del Real escreveu:

Hi again.

Sometimes I get the following:

OpenBSD 4.5 (GENERIC.MP) #2133: Sat Feb 28 15:02:16 MST 2009
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2143023104 (2043MB)
avail mem = 2069721088 (1973MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf7250 (44 entries)
bios0: vendor Dell Inc. version A10 date 07/17/2009
bios0: Dell Inc. Inspiron 1545
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET APIC MCFG SLIC SSDT
acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0)
USB4(S0) USB5(S0) USB6(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3)
RP02(S3) RP03(S3) RP04(S3) RP05(S3) RP06(S3) LID_(S3) PBTN(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.34 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 265MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus 9 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 13 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3
acpicpu1 at acpi0: C3
acpitz0 at acpi0: critical temperature 105 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model DELL Y823G9 serial 591 type LION oem SMP
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0617092006000920
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2400 MHz (1212 mV): speeds: 2400, 1600 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
ppb0 at pci0 dev 1 function 0 Intel GM45 PCIE rev 0x07: apic 2 int 16 (irq 0)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x9552 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2
int 21 (irq 10)
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 7)
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 7)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x03:
apic 2 int 21 (irq 10)
azalia0: codecs: IDT 92HD71B7
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: apic 2
int 16 (irq 0)
pci2 at ppb1 bus 11
ppb2 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: apic 2
int 17 (irq 0)
pci3 at ppb2 bus 12
iwn0 at pci3 dev 0 function 0 Intel WiFi Link 5100AGN rev 0x00: apic
2 int 17 (irq 5), MIMO 1T2R, MoW, address 00:22:fb:9b:6f:62
ppb3 at pci0 dev 28 function 2 Intel 82801I PCIE rev 0x03: apic 2
int 18 (irq 0)
pci4 at ppb3 bus 9
mskc0 at pci4 dev 0 function 0 Marvell Yukon 88E8040 rev 0x13,
Yukon-2 FE+ (0x0): apic 2 int 18 (irq 10)
msk0 at mskc0 port A: address 00:25:64:52:74:2d
eephy0 at msk0 phy 0: 88E3016 10/100 PHY, rev. 0
ppb4 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: apic 2
int 16 (irq 0)
pci5 at ppb4 bus 13
uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x03: apic 2
int 21 (irq 10)
uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 7)
ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x93
pci6 at ppb5 bus 3
pcib0 at pci0 dev 31 function 0 vendor Intel, unknown product 0x2919 rev 0x03
ahci0 at pci0 dev 31 function 2 Intel 82801I AHCI rev 0x03: apic 2
int 18 (irq 10), AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, ST9160314AS, 0003 SCSI3 0/direct fixed
sd0: 152627MB, 512 bytes/sec, 312581808 sec total
cd0 at scsibus0 targ 1 lun 0: Optiarc, DVD+-RW 

Re: ZTE-MF626 USB Modem

2009-10-14 Thread Sergio Andrés Gómez del Real
Thanks for the reply.

Indeed, I use usb_modeswitch under Linux, it is, however, quite just
for Linux, cause it reloads a certain kernel module. With GENERIC
kernel, usb_modeswitch does not even recognize the device. However,
compiling it (the kernel) without umass support, that is, the device
being ugen, it does.

Now, when I boot GENERIC with the modem plugged-in, then I get the
microSD that is 'inside my modem' (not the cd-rom device) recognized,
but no modem...

If any idea would be wonderful, and sorry for my horrible english.



Re: ZTE-MF626 USB Modem

2009-10-14 Thread Jussi Peltola
On Wed, Oct 14, 2009 at 01:14:00PM -0500, Sergio Andris Gsmez del Real wrote:
 Thanks for the reply.
 
 Indeed, I use usb_modeswitch under Linux, it is, however, quite just
 for Linux, cause it reloads a certain kernel module. With GENERIC
 kernel, usb_modeswitch does not even recognize the device. However,
 compiling it (the kernel) without umass support, that is, the device
 being ugen, it does.
 
 Now, when I boot GENERIC with the modem plugged-in, then I get the
 microSD that is 'inside my modem' (not the cd-rom device) recognized,
 but no modem...
 
 If any idea would be wonderful, and sorry for my horrible english.
 

OpenBSD already does this modeswitch dance automatically for loads of
different USB modems without the user having to play with all kinds of
programs like in linux. If only the developers had hardware like yours
it would probably already be supported...



Re: ZTE-MF626 USB Modem

2009-10-12 Thread Stuart Henderson
On 2009-10-12, Sergio Andr?s G?mez del Real sergio.g.delr...@gmail.com wrote:
 Well, I guess this is the relevant output from startup:

Don't try and guess what is relevant, just send the COMPLETE dmesg.
Also send usbdevs -v.



Re: ZTE-MF626 USB Modem

2009-10-12 Thread Sergio Andrés Gómez del Real
Sorry about the duplicate, I'm not used to a mail list :(

Isn't that really the relevant info? It is the generic kernel of OpenBSD 4.5
-release...
I don't know what extra relevant info could dmesg, or usbdevs offer FOR THIS
CASE, please, if I'm wrong, or if there is an official protocol for
reporting this things, let me know, I don't want to waste your time. Anyway,
I'm switching to OpenBSD to output the full dmesg and usbdevs... this issue
makes me have to stick with Linux.



Re: ZTE-MF626 USB Modem

2009-10-12 Thread Ted Unangst
2009/10/12 Sergio Andris Gsmez del Real sergio.g.delr...@gmail.com:
 Isn't that really the relevant info? It is the generic kernel of OpenBSD
4.5
 -release...

As a general point, if you are having a problem and you can't fix it
yourself, then by definition, you are not qualified to determine
what's relevant.

Specifically, your snippet doesn't even tell us whether it attached at
ehci, ohci, or uhci.  Or what kind of PCI bridge your USB controller
may be behind.  If you can prove that your PCI bridge is irrelevant to
the problem, you should include that proof in your mail.



Re: ZTE-MF626 USB Modem

2009-10-12 Thread Tomáš Bodžár
Read the FAQ first before switching. In your case especially part 9
And dmesg or usbdevs give every info needed.

2009/10/12 Sergio AndrC)s GC3mez del Real sergio.g.delr...@gmail.com:
 Sorry about the duplicate, I'm not used to a mail list :(

 Isn't that really the relevant info? It is the generic kernel of OpenBSD
4.5
 -release...
 I don't know what extra relevant info could dmesg, or usbdevs offer FOR
THIS
 CASE, please, if I'm wrong, or if there is an official protocol for
 reporting this things, let me know, I don't want to waste your time.
Anyway,
 I'm switching to OpenBSD to output the full dmesg and usbdevs... this issue
 makes me have to stick with Linux.



Re: ZTE-MF626 USB Modem

2009-10-12 Thread Sergio Andrés Gómez del Real
Ok, here is full output of dmesg and usbdevs -v

OpenBSD 4.5 (GENERIC.MP) #2133: Sat Feb 28 15:02:16 MST 2009
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2143023104 (2043MB)
avail mem = 2069721088 (1973MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf7250 (44 entries)
bios0: vendor Dell Inc. version A10 date 07/17/2009
bios0: Dell Inc. Inspiron 1545
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET APIC MCFG SLIC SSDT
acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0) USB4(S0)
USB5(S0) USB6(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3) RP02(S3) RP03(S3)
RP04(S3) RP05(S3) RP06(S3) LID_(S3) PBTN(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.37 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 265MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus 9 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 13 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3
acpicpu1 at acpi0: C3
acpitz0 at acpi0: critical temperature 105 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT0 model DELL Y823G9 serial 591 type LION oem SMP
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0617092006000920
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2400 MHz (1212 mV): speeds: 2400, 1600 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
ppb0 at pci0 dev 1 function 0 Intel GM45 PCIE rev 0x07: apic 2 int 16 (irq
0)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x9552 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2 int 20
(irq 11)
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2 int 21
(irq 10)
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 2 int 22
(irq 7)
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 2 int 22
(irq 7)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x03: apic 2
int 21 (irq 10)
azalia0: codecs: IDT 92HD71B7
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: apic 2 int 16
(irq 0)
pci2 at ppb1 bus 11
ppb2 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: apic 2 int 17
(irq 0)
pci3 at ppb2 bus 12
iwn0 at pci3 dev 0 function 0 Intel WiFi Link 5100AGN rev 0x00: apic 2 int
17 (irq 5), MIMO 1T2R, MoW, address 00:22:fb:9b:6f:62
ppb3 at pci0 dev 28 function 2 Intel 82801I PCIE rev 0x03: apic 2 int 18
(irq 0)
pci4 at ppb3 bus 9
mskc0 at pci4 dev 0 function 0 Marvell Yukon 88E8040 rev 0x13, Yukon-2 FE+
(0x0): apic 2 int 18 (irq 10)
msk0 at mskc0 port A: address 00:25:64:52:74:2d
eephy0 at msk0 phy 0: 88E3016 10/100 PHY, rev. 0
ppb4 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: apic 2 int 16
(irq 0)
pci5 at ppb4 bus 13
uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x03: apic 2 int 20
(irq 11)
uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x03: apic 2 int 21
(irq 10)
uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x03: apic 2 int 22
(irq 7)
ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x03: apic 2 int 20
(irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x93
pci6 at ppb5 bus 3
pcib0 at pci0 dev 31 function 0 vendor Intel, unknown product 0x2919 rev
0x03
ahci0 at pci0 dev 31 function 2 Intel 82801I AHCI rev 0x03: apic 2 int 18
(irq 10), AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, ST9160314AS, 0003 SCSI3 0/direct fixed
sd0: 152627MB, 512 bytes/sec, 312581808 sec total
cd0 at scsibus0 targ 1 lun 0: Optiarc, DVD+-RW AD-7560S, SD05 ATAPI
5/cdrom 

Re: ZTE-MF626 USB Modem

2009-10-12 Thread Sergio Andrés Gómez del Real
Hi again.

Sometimes I get the following:

OpenBSD 4.5 (GENERIC.MP) #2133: Sat Feb 28 15:02:16 MST 2009
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2143023104 (2043MB)
avail mem = 2069721088 (1973MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf7250 (44 entries)
bios0: vendor Dell Inc. version A10 date 07/17/2009
bios0: Dell Inc. Inspiron 1545
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET APIC MCFG SLIC SSDT
acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0)
USB4(S0) USB5(S0) USB6(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3)
RP02(S3) RP03(S3) RP04(S3) RP05(S3) RP06(S3) LID_(S3) PBTN(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.34 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 265MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus 9 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 13 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3
acpicpu1 at acpi0: C3
acpitz0 at acpi0: critical temperature 105 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model DELL Y823G9 serial 591 type LION oem SMP
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0617092006000920
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2400 MHz (1212 mV): speeds: 2400, 1600 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
ppb0 at pci0 dev 1 function 0 Intel GM45 PCIE rev 0x07: apic 2 int 16 (irq 0)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x9552 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2
int 21 (irq 10)
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 7)
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 7)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801I HD Audio rev 0x03:
apic 2 int 21 (irq 10)
azalia0: codecs: IDT 92HD71B7
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: apic 2
int 16 (irq 0)
pci2 at ppb1 bus 11
ppb2 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: apic 2
int 17 (irq 0)
pci3 at ppb2 bus 12
iwn0 at pci3 dev 0 function 0 Intel WiFi Link 5100AGN rev 0x00: apic
2 int 17 (irq 5), MIMO 1T2R, MoW, address 00:22:fb:9b:6f:62
ppb3 at pci0 dev 28 function 2 Intel 82801I PCIE rev 0x03: apic 2
int 18 (irq 0)
pci4 at ppb3 bus 9
mskc0 at pci4 dev 0 function 0 Marvell Yukon 88E8040 rev 0x13,
Yukon-2 FE+ (0x0): apic 2 int 18 (irq 10)
msk0 at mskc0 port A: address 00:25:64:52:74:2d
eephy0 at msk0 phy 0: 88E3016 10/100 PHY, rev. 0
ppb4 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: apic 2
int 16 (irq 0)
pci5 at ppb4 bus 13
uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x03: apic 2
int 21 (irq 10)
uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x03: apic 2
int 22 (irq 7)
ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x93
pci6 at ppb5 bus 3
pcib0 at pci0 dev 31 function 0 vendor Intel, unknown product 0x2919 rev 0x03
ahci0 at pci0 dev 31 function 2 Intel 82801I AHCI rev 0x03: apic 2
int 18 (irq 10), AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, ST9160314AS, 0003 SCSI3 0/direct fixed
sd0: 152627MB, 512 bytes/sec, 312581808 sec total
cd0 at scsibus0 targ 1 lun 0: Optiarc, DVD+-RW AD-7560S, SD05 ATAPI
5/cdrom removable

ZTE-MF626 USB Modem

2009-10-11 Thread Sergio Andrés Gómez del Real
Well, I guess this is the relevant output from startup:

umass0 at uhub1 port 1 configuration 1 interface 0 ZTE, Incorporated ZTE
CDMA Technologies MSM rev 2.00/0.00 addr 2
umass0: using ATAPI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0 detached
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
umass1 at uhub1 port 1 configuration 1 interface 0 ZTE, Incorporated ZTE
CDMA Technologies MSM rev 2.00/0.00 addr 2
umass1: using ATAPI over Bulk-Only
scsibus2 at umass1: 2 targets, initiator 0
cd1 at scsibus1 targ 1 lun 0: ZTE, USB SCSI CD-ROM, 2.31 ATAPI 5/cdrom
removable

So I'm finally geting cd1 :S I need the device to act as Modem.
Any help would be really appreciated.
Thanks.



Re: ZTE-MF626 USB Modem

2009-10-11 Thread Bryan
Didn't you send something like this about a month ago?

http://www.nabble.com/HSDPA-USB-Modem-td25308434.html

If the devs don't have one, maybe you'd donate your modem temporarily
to get the support.  Just asking is going to be nearly useless.  If
you donate/loan the hardware, you increase your chances of getting it.

It worked for me, YMMV...

Bryan

2009/10/12 Sergio AndrC)s GC3mez del Real sergio.g.delr...@gmail.com:
 Well, I guess this is the relevant output from startup:

 umass0 at uhub1 port 1 configuration 1 interface 0 ZTE, Incorporated ZTE
 CDMA Technologies MSM rev 2.00/0.00 addr 2
 umass0: using ATAPI over Bulk-Only
 scsibus1 at umass0: 2 targets, initiator 0
 umass0: BBB reset failed, IOERROR
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 umass0: BBB reset failed, IOERROR
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 umass0: BBB reset failed, IOERROR
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 umass0: BBB reset failed, IOERROR
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 umass0: BBB reset failed, IOERROR
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 umass0: BBB reset failed, IOERROR
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 umass0: BBB reset failed, IOERROR
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 umass0: BBB reset failed, IOERROR
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 umass0: BBB reset failed, IOERROR
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 umass0 detached
 umass0: using SCSI over Bulk-Only
 scsibus1 at umass0: 2 targets, initiator 0
 umass1 at uhub1 port 1 configuration 1 interface 0 ZTE, Incorporated ZTE
 CDMA Technologies MSM rev 2.00/0.00 addr 2
 umass1: using ATAPI over Bulk-Only
 scsibus2 at umass1: 2 targets, initiator 0
 cd1 at scsibus1 targ 1 lun 0: ZTE, USB SCSI CD-ROM, 2.31 ATAPI 5/cdrom
 removable

 So I'm finally geting cd1 :S I need the device to act as Modem.
 Any help would be really appreciated.
 Thanks.



Re: HSDPA USB Modem

2009-09-05 Thread Peter N. M. Hansteen
w39071_0-sergio w39071_0-ser...@mb8-2.1blu.de writes:

 I have a ZTE MF626 Modem, when I plug it in my USB interface, OpenBSD
 detects it as a iso9660 filesystem, so I need a software like
 usb_modeswitch. 

Are you sure that the CD device is the only one that shows up when you plug it 
in?

Here's what happens when I plug my Huawei E220 into my laptop:

Sep  5 15:33:33 thingy /bsd: umsm0 at uhub3 port 1 configuration 1 interface 0 
HUAWEI Technologies HUAWEI Mobile Modem rev 1.10/0.00 addr 2
Sep  5 15:33:34 thingy /bsd: umsm0: umass only mode. need to reattach
Sep  5 15:33:34 thingy /bsd: umsm0 detached
Sep  5 15:33:35 thingy /bsd: umsm0 at uhub3 port 1 configuration 1 interface 0 
HUAWEI Technologies HUAWEI Mobile Modem rev 1.10/0.00 addr 2
Sep  5 15:33:35 thingy /bsd: ucom0 at umsm0
Sep  5 15:33:35 thingy /bsd: umsm1 at uhub3 port 1 configuration 1 interface 1 
HUAWEI Technologies HUAWEI Mobile Modem rev 1.10/0.00 addr 2
Sep  5 15:33:35 thingy /bsd: ucom1 at umsm1
Sep  5 15:33:35 thingy /bsd: umass0 at uhub3 port 1 configuration 1 interface 2 
HUAWEI Technologies HUAWEI Mobile Modem rev 1.10/0.00 addr 2
Sep  5 15:33:35 thingy /bsd: umass0: using SCSI over Bulk-Only
Sep  5 15:33:35 thingy /bsd: scsibus3 at umass0: 2 targets, initiator 0
Sep  5 15:33:36 thingy /bsd: cd1 at scsibus3 targ 1 lun 0: HUAWEI, Mass 
Storage, 2.31 SCSI2 5/cdrom removable

notice the umsm and ucom devices, once they're usefully configured
they're accessible as cuaU0 or thereabouts.  useful, if not the
fastest connectivity you'll find.

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



HSDPA USB Modem

2009-09-05 Thread w39071_0-sergio
Hi, this is my first post.

I have a ZTE MF626 Modem, when I plug it in my USB interface, OpenBSD
detects it as a iso9660 filesystem, so I need a software like
usb_modeswitch. ThatB4s ok, I supose can compile it to interface with usb
through libusb, although havent tried. My doubt is afterwards, after
having, lets say, /dev/ttyUSB0 device file (this was the case under linux),
I couldnt get it to work cause don't know how to manually configure the
connection. Apparently, through Network Manager can get that automatically,
but Im not willing to run even X, so need an alternative.

Thanks for reading :)



Re: HSDPA USB Modem

2009-09-05 Thread Jonathan Gray
On Sat, Sep 05, 2009 at 03:20:42PM +0200, w39071_0-sergio wrote:
 Hi, this is my first post.
 
 I have a ZTE MF626 Modem, when I plug it in my USB interface, OpenBSD
 detects it as a iso9660 filesystem, so I need a software like
 usb_modeswitch. ThatB4s ok, I supose can compile it to interface with usb
 through libusb, although havent tried. My doubt is afterwards, after
 having, lets say, /dev/ttyUSB0 device file (this was the case under linux),
 I couldnt get it to work cause don't know how to manually configure the
 connection. Apparently, through Network Manager can get that automatically,
 but Im not willing to run even X, so need an alternative.
 
 Thanks for reading :)

Include the output of usbdevs -v with the device plugged in.
We do all mode switching like this in the kernel so people don't have
to screw around with weird userspace things to get a working device.

In this case of this device the kernel is not aware of it yet, so can
not issue the relevant commands to it.



Re: HSDPA USB Modem

2009-09-05 Thread Jonathan Gray
On Sat, Sep 05, 2009 at 08:06:04PM +0200, w39071_0-sergio wrote:
  Include the output of usbdevs -v with the device plugged in.
  We do all mode switching like this in the kernel so people don't have
  to screw around with weird userspace things to get a working device.
  
  In this case of this device the kernel is not aware of it yet, so can
  not issue the relevant commands to it.
 
 Sorry about not posting dmesg, console output or usbdev, I just couldnt :)

usbdevs -v is needed that is why it was asked for.
Your mail server does not accept incoming connections, sending to misc.

 
 Here is dmesg:
 ZTE CDMA Technologies MSM rev 2.00/0.00 addr 3
 umass2: using ATAPI over Bulk-Only
 scsibus3 at umass2: 2 targets, initiator 0
 cd1 at scsibus3 targ 1 lun 0: ZTE, USB SCSI CD-ROM, 2.31 ATAPI 5/cdrom
 removable
 cd1 detached
 scsibus3 detached
 umass2 detached
 
 usbdevs:
 addr 1: EHCI root hub, Intel
  addr 2: USB2.0-CRW, Generic
  addr 3: Integrated_Webcam_1.3M, Sonix Technology Co., Ltd.
 addr 1: EHCI root hub, Intel
  addr 3: ZTE CDMA Technologies MSM, ZTE, Incorporated
  addr 2: DataTraveler G2, Kingston
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 addr 1: UHCI root hub, Intel
 
 
 Just cdrom... :S



USB modem

2008-04-09 Thread syl
Hi guys,

I'm developping a firmware for an usb device for my enterprise
and I try to be compatible with OpenBSD.

So I test my device (which just do serial communication following
the USB cdc Abstract Control Modem).

The plug seems to works fine. The attach works and attach ucom0
at umodem and umodem at uhub.

But when I'm trying to do this :
echo aaab  /dev/ttyU0

The echo still freeze. So I get the sys.tar.gz and add some  trace
on ucom.c and umodem.c to find where does my device sucks.
My problem seems to be a TIMEOUT on the set_line_coding.

Do you know what packet should I send on set_line_coding ? for the
moment my device just got the packet and read 7bits for gets the data
concerning the baudrate etc.. I try to add some ack packet after or / and
before the recv but that don't change my problem.

this is the line added by the plug of my device on dmesg:

umodem0 at uhub3 port 2 configuration 1, interface 0
umodem0: Atmel AT91USBSerial, rev 1.01/0.01, addr2, iclass 2/2
umodem0: data interface 1, has no CM over data, has break
umodem0: status change notification available
ucom0 at umodem0

Thanks in advance for your help.

-- 
Gallon sylvestre
Rathaxes Core Developper / LSE researcher
kernel developer for adeneo and OpenBSD fan
http://devsyl.blogspot.com/ | www.rathaxes.eu



Re: USB modem

2008-04-09 Thread Stuart Henderson
On 2008-04-09, syl [EMAIL PROTECTED] wrote:
 I'm developping a firmware for an usb device for my enterprise
 and I try to be compatible with OpenBSD.

great (:

 The plug seems to works fine. The attach works and attach ucom0
 at umodem and umodem at uhub.

 But when I'm trying to do this :
 echo aaab  /dev/ttyU0

This is normal, try cuaU0. Also you might find cu -l /dev/cuaU0
is useful for testing..



Re: USB modem

2008-04-09 Thread syl
On Wed, Apr 9, 2008 at 12:12 PM, Stuart Henderson [EMAIL PROTECTED] wrote:
 On 2008-04-09, syl [EMAIL PROTECTED] wrote:
   I'm developping a firmware for an usb device for my enterprise
   and I try to be compatible with OpenBSD.

  great (:
:)


   The plug seems to works fine. The attach works and attach ucom0
   at umodem and umodem at uhub.
  
   But when I'm trying to do this :
   echo aaab  /dev/ttyU0

  This is normal, try cuaU0. Also you might find cu -l /dev/cuaU0
  is useful for testing..



I've just try cuaU0 and the trace is nice and more understandable.

But I think I've always got a problem with the setlinecoding

When I add trace into the kernel I saw that the function
umodem_set_line_coding failed and return the value 0x0f.
In the usbdi.h the 0x0f value equals to the USBD_TIMEOUT
define.

So I think I made a bad response to the SET_LINE_CODING.

What I am doing exactly on device side:

DEVICE RECV 8 BITS (ENDPOINT0) : 0x21 0x20 0x00 0x00 0x00 0x00 0x07 0x00
DEVICE RECV 7 BITS (ENDPOINT0) : 0x80 0x25 0x00 0x00 0x00 0x00 0x08

The first receive is do because I intercept an interrupt that there
are 8 bits available
on the endpoint0 after i read directly 7 bits for getting the end of
this request.
Does I forget something ? Does I send some ack to the host, or data on the
interrupt endpoint ?

thanks in advance.

-- 
Gallon sylvestre
Rathaxes Core Developper / LSE researcher
kernel developer for adeneo and OpenBSD fan
http://devsyl.blogspot.com/ | www.rathaxes.eu



USB modem

2006-07-01 Thread Alexey Vatchenko
Hi!

I need inexpensive USB modem for Dial-Up (not ADSL, not GPRS).
Any advices?

-- 
Alexey V. Vatchenko
http://psytech.h10.ru
JID: [EMAIL PROTECTED]
ICQ: 162799204



Re: apple usb modem

2006-06-03 Thread Jeffrey Lim

On 6/2/06, akonsu [EMAIL PROTECTED] wrote:

here is the relevant portion of dmesg that is output when i plug in the
modem:

uaudio0 at uhub1 port 2 configuration 1 interface 2: Motorola, Inc. Apple
USB Modem, rev 2.00/2.02, addr 3
uaudio0: ignored output endpoint of type async
uaudio0: audio rev 1.00, 0 mixer controls
audio0 at uaudio0


i guess no luck huh? i have no idea where audio gets in to the story...


is urs a pstn modem? then it has to convert from digital, to analog
(voice,/audio) waves for transmission over the pstn, and then
back. That's probably where the audio comes from.

-jf



Re: apple usb modem

2006-06-02 Thread akonsu
here is the relevant portion of dmesg that is output when i plug in the
modem:

uaudio0 at uhub1 port 2 configuration 1 interface 2: Motorola, Inc. Apple
USB Modem, rev 2.00/2.02, addr 3
uaudio0: ignored output endpoint of type async
uaudio0: audio rev 1.00, 0 mixer controls
audio0 at uaudio0


i guess no luck huh? i have no idea where audio gets in to the story... i
wonder whether apple's darwin project has the sources for the driver and how
difficult it is to port them if the source is available.

konstantin


2006/5/29, Shawn K. Quinn [EMAIL PROTECTED]:

 On Mon, 2006-05-29 at 00:18 -0700, akonsu wrote:
  hello,
 
  i have apple usb modem left over from my imac g5 that i got rid of. is
 there
  any chance of getting this modem to work with openbsd in stead of the
  unsupported winmodem that i have on my laptop?

 Plug it in and see if you get a ucom device. If you do, then it'll
 probably work. If not, then you're probably SOL.

 --
 Shawn K. Quinn



apple usb modem

2006-05-29 Thread akonsu
hello,

i have apple usb modem left over from my imac g5 that i got rid of. is there
any chance of getting this modem to work with openbsd in stead of the
unsupported winmodem that i have on my laptop?

thanks for any help!
konstantin



Re: apple usb modem

2006-05-29 Thread Shawn K. Quinn
On Mon, 2006-05-29 at 00:18 -0700, akonsu wrote:
 hello,
 
 i have apple usb modem left over from my imac g5 that i got rid of. is there
 any chance of getting this modem to work with openbsd in stead of the
 unsupported winmodem that i have on my laptop?

Plug it in and see if you get a ucom device. If you do, then it'll
probably work. If not, then you're probably SOL.

-- 
Shawn K. Quinn