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 :

>
> 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.