Discussion:
OpenBSD + 3G/4G USB modem
Add Reply
MS
2018-04-15 18:51:14 UTC
Reply
Permalink
Raw Message
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.
Roderick
2018-04-15 20:50:27 UTC
Reply
Permalink
Raw Message
Post by MS
Is there a successful story with OpenBSD and a 3G USB modem?
I use it since years.
Post by MS
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.
MS
2018-04-16 20:24:14 UTC
Reply
Permalink
Raw Message
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
Post by MS
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
Post by MS
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 :).
(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
AT
AT+CPIN="YourPin"
AT+CGCONT=1,"IP","APNofYourProvider" [perhaps only once, modem saves it]
~. [to leave the session]
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.
Roderick
2018-04-16 21:04:43 UTC
Reply
Permalink
Raw Message
Post by MS
I will try it and let you know about the problems/results.
I am curious to see your tutorial at the end. :)
Post by MS
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
Stuart Henderson
2018-04-17 07:29:20 UTC
Reply
Permalink
Raw Message
Post by MS
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).
MS
2018-04-19 21:06:44 UTC
Reply
Permalink
Raw Message
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(0x0000),
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 MF1950TMOD000000
umass0
port 4 powered
port 5 powered
port 6 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
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 500000020C59
umass1
port 5 powered
port 6 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
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(0x0000),
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(0x0000),
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(0x0000),
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(0x0000),
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(0x0000),
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
***@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 0xf0000000, bus 0-63
acpimadt0 at acpi0 addr 0xfee00000: 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 0xfec00000, 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 root hub" rev
2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: msi
azalia0: codecs: Realtek ALC885
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x02: msi
pci3 at ppb2 bus 3
jmb0 at pci3 dev 0 function 0 "JMicron JMB368 IDE" rev 0x00
pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to
native-PCI
pciide0: using apic 2 int 19 for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVD-RAM GSA-H50L, 1.00> ATAPI
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
ppb3 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x02: msi
pci4 at ppb3 bus 4
re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x01: RTL8168 2 (0x3800),
msi, address 00:1a:4d:4d:bb:18
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 2 int 23
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 2 int 19
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 2 int 18
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 2 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92
pci5 at ppb4 bus 5
pcib0 at pci0 dev 31 function 0 "Intel 82801IB LPC" rev 0x02
pciide1 at pci0 dev 31 function 2 "Intel 82801I SATA" rev 0x02: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 2 int 19 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <ST3160815AS>
wd0: 16-sector PIO, LBA48, 152626MB, 312579695 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 2 int
18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
pciide2 at pci0 dev 31 function 5 "Intel 82801I SATA" rev 0x02: DMA,
channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide2: using apic 2 int 19 for native-PCI interrupt
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8718F rev 4, EC port 0x290
vmm0 at mainbus0: VMX
umass0 at uhub0 port 3 configuration 1 interface 0 "ZTE MF195" rev
2.00/0.01 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
cd1 at scsibus2 targ 1 lun 0: <ZTE, USB SCSI CD-ROM, 0001> SCSI0 5/cdrom
removable
sd0 at scsibus2 targ 1 lun 1: <ZTE, Storage, 0001> SCSI0 0/direct removable
umass1 at uhub1 port 4 configuration 1 interface 0 "Sony Silicon Media R/W"
rev 2.00/3.95 addr 2
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd1 at scsibus3 targ 1 lun 0: <Sony, USB HS-CF Card, 3.95> SCSI0 0/direct
removable
sd2 at scsibus3 targ 1 lun 1: <Sony, USB HS-SM Card, 3.95> SCSI0 0/direct
removable
sd3 at scsibus3 targ 1 lun 2: <Sony, USB HS-MS Card, 3.95> SCSI0 0/direct
removable
sd4 at scsibus3 targ 1 lun 3: <Sony, USB HS-SD Card, 3.95> SCSI0 0/direct
removable
uhidev0 at uhub2 port 1 configuration 1 interface 0 "DELL Dell QuietKey
Keyboard" rev 1.10/1.01 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub2 port 2 configuration 1 interface 0 "SIGMACHIP Usb Mouse"
rev 1.10/1.10 addr 3
uhidev1: iclass 3/1
ums0 at uhidev1: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root on wd0a (b62b4179bd7ce1bb.a) swap on wd0b dump on wd0b

soooo....I am screwed, right?
Post by Stuart Henderson
Post by MS
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).
MS
2018-04-19 21:09:40 UTC
Reply
Permalink
Raw Message
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(0x0000),
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 MF1950TMOD000000
umass0
port 4 powered
port 5 powered
port 6 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
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 500000020C59
umass1
port 5 powered
port 6 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
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(0x0000),
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(0x0000),
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(0x0000),
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(0x0000),
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(0x0000),
Intel(0x8086), rev 1.00
uhub7
port 1 powered
port 2 powered


and here's my dmesg:
OpenBSD 6.3 (GENERIC.MP <http://generic.mp/>) #107: Sat Mar 24 14:21:59 MDT
2018
***@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
<http://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 0xf0000000, bus 0-63
acpimadt0 at acpi0 addr 0xfee00000: 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 0xfec00000, 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 root hub" rev
2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: msi
azalia0: codecs: Realtek ALC885
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x02: msi
pci3 at ppb2 bus 3
jmb0 at pci3 dev 0 function 0 "JMicron JMB368 IDE" rev 0x00
pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to
native-PCI
pciide0: using apic 2 int 19 for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVD-RAM GSA-H50L, 1.00> ATAPI
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
ppb3 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x02: msi
pci4 at ppb3 bus 4
re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x01: RTL8168 2 (0x3800),
msi, address 00:1a:4d:4d:bb:18
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 2 int 23
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 2 int 19
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 2 int 18
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 2 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92
pci5 at ppb4 bus 5
pcib0 at pci0 dev 31 function 0 "Intel 82801IB LPC" rev 0x02
pciide1 at pci0 dev 31 function 2 "Intel 82801I SATA" rev 0x02: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 2 int 19 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <ST3160815AS>
wd0: 16-sector PIO, LBA48, 152626MB, 312579695 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 2 int
18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
pciide2 at pci0 dev 31 function 5 "Intel 82801I SATA" rev 0x02: DMA,
channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide2: using apic 2 int 19 for native-PCI interrupt
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8718F rev 4, EC port 0x290
vmm0 at mainbus0: VMX
umass0 at uhub0 port 3 configuration 1 interface 0 "ZTE MF195" rev
2.00/0.01 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
cd1 at scsibus2 targ 1 lun 0: <ZTE, USB SCSI CD-ROM, 0001> SCSI0 5/cdrom
removable
sd0 at scsibus2 targ 1 lun 1: <ZTE, Storage, 0001> SCSI0 0/direct removable
umass1 at uhub1 port 4 configuration 1 interface 0 "Sony Silicon Media R/W"
rev 2.00/3.95 addr 2
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd1 at scsibus3 targ 1 lun 0: <Sony, USB HS-CF Card, 3.95> SCSI0 0/direct
removable
sd2 at scsibus3 targ 1 lun 1: <Sony, USB HS-SM Card, 3.95> SCSI0 0/direct
removable
sd3 at scsibus3 targ 1 lun 2: <Sony, USB HS-MS Card, 3.95> SCSI0 0/direct
removable
sd4 at scsibus3 targ 1 lun 3: <Sony, USB HS-SD Card, 3.95> SCSI0 0/direct
removable
uhidev0 at uhub2 port 1 configuration 1 interface 0 "DELL Dell QuietKey
Keyboard" rev 1.10/1.01 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub2 port 2 configuration 1 interface 0 "SIGMACHIP Usb Mouse"
rev 1.10/1.10 addr 3
uhidev1: iclass 3/1
ums0 at uhidev1: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root on wd0a (b62b4179bd7ce1bb.a) swap on wd0b dump on wd0b

soooo....I am screwed, right?
Post by 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(!))
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
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 MF1950TMOD000000
umass0
port 4 powered
port 5 powered
port 6 powered
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
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 500000020C59
umass1
port 5 powered
port 6 powered
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
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
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
uhub3
port 1 powered
port 2 powered
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
uhub4
port 1 powered
port 2 powered
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
uhub5
port 1 powered
port 2 powered
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
uhub6
port 1 powered
port 2 powered
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
uhub7
port 1 powered
port 2 powered
OpenBSD 6.3 (GENERIC.MP) #107: Sat Mar 24 14:21:59 MDT 2018
real mem = 4277010432 (4078MB)
avail mem = 4140306432 (3948MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
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 0xf0000000, bus 0-63
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
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: 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 0xfec00000, 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)
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 root hub" rev
2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: msi
azalia0: codecs: Realtek ALC885
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x02: msi
pci3 at ppb2 bus 3
jmb0 at pci3 dev 0 function 0 "JMicron JMB368 IDE" rev 0x00
pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to
native-PCI
pciide0: using apic 2 int 19 for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVD-RAM GSA-H50L, 1.00> ATAPI
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
ppb3 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x02: msi
pci4 at ppb3 bus 4
re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x01: RTL8168 2 (0x3800),
msi, address 00:1a:4d:4d:bb:18
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 2 int 23
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 2 int 19
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 2 int 18
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 2 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92
pci5 at ppb4 bus 5
pcib0 at pci0 dev 31 function 0 "Intel 82801IB LPC" rev 0x02
pciide1 at pci0 dev 31 function 2 "Intel 82801I SATA" rev 0x02: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 2 int 19 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <ST3160815AS>
wd0: 16-sector PIO, LBA48, 152626MB, 312579695 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 2
int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
pciide2 at pci0 dev 31 function 5 "Intel 82801I SATA" rev 0x02: DMA,
channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide2: using apic 2 int 19 for native-PCI interrupt
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8718F rev 4, EC port 0x290
vmm0 at mainbus0: VMX
umass0 at uhub0 port 3 configuration 1 interface 0 "ZTE MF195" rev
2.00/0.01 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
cd1 at scsibus2 targ 1 lun 0: <ZTE, USB SCSI CD-ROM, 0001> SCSI0 5/cdrom
removable
sd0 at scsibus2 targ 1 lun 1: <ZTE, Storage, 0001> SCSI0 0/direct removable
umass1 at uhub1 port 4 configuration 1 interface 0 "Sony Silicon Media
R/W" rev 2.00/3.95 addr 2
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd1 at scsibus3 targ 1 lun 0: <Sony, USB HS-CF Card, 3.95> SCSI0 0/direct
removable
sd2 at scsibus3 targ 1 lun 1: <Sony, USB HS-SM Card, 3.95> SCSI0 0/direct
removable
sd3 at scsibus3 targ 1 lun 2: <Sony, USB HS-MS Card, 3.95> SCSI0 0/direct
removable
sd4 at scsibus3 targ 1 lun 3: <Sony, USB HS-SD Card, 3.95> SCSI0 0/direct
removable
uhidev0 at uhub2 port 1 configuration 1 interface 0 "DELL Dell QuietKey
Keyboard" rev 1.10/1.01 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub2 port 2 configuration 1 interface 0 "SIGMACHIP Usb Mouse"
rev 1.10/1.10 addr 3
uhidev1: iclass 3/1
ums0 at uhidev1: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root on wd0a (b62b4179bd7ce1bb.a) swap on wd0b dump on wd0b
soooo....I am screwed, right?
Post by Stuart Henderson
Post by MS
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).
Stuart Henderson
2018-04-19 21:20:06 UTC
Reply
Permalink
Raw Message
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,
Stuart Longland
2018-04-19 21:11:22 UTC
Reply
Permalink
Raw Message
Post by 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(!))
Try ejecting the "CD".
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.
MS
2018-04-20 06:46:59 UTC
Reply
Permalink
Raw Message
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(0x0000),
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(0x0000),
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 500000020C59
umass0
port 5 powered
port 6 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
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(0x0000),
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(0x0000),
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(0x0000),
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(0x0000),
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(0x0000),
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
***@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 0xf0000000, bus 0-63
acpimadt0 at acpi0 addr 0xfee00000: 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 0xfec00000, 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 root hub" rev
2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: msi
azalia0: codecs: Realtek ALC885
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x02: msi
pci3 at ppb2 bus 3
jmb0 at pci3 dev 0 function 0 "JMicron JMB368 IDE" rev 0x00
pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to
native-PCI
pciide0: using apic 2 int 19 for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVD-RAM GSA-H50L, 1.00> ATAPI
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
ppb3 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x02: msi
pci4 at ppb3 bus 4
re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x01: RTL8168 2 (0x3800),
msi, address 00:1a:4d:4d:bb:18
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 2 int 23
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 2 int 19
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 2 int 18
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 2 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92
pci5 at ppb4 bus 5
pcib0 at pci0 dev 31 function 0 "Intel 82801IB LPC" rev 0x02
pciide1 at pci0 dev 31 function 2 "Intel 82801I SATA" rev 0x02: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 2 int 19 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <ST3160815AS>
wd0: 16-sector PIO, LBA48, 152626MB, 312579695 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 2 int
18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
pciide2 at pci0 dev 31 function 5 "Intel 82801I SATA" rev 0x02: DMA,
channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide2: using apic 2 int 19 for native-PCI interrupt
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8718F rev 4, EC port 0x290
vmm0 at mainbus0: VMX
umass0 at uhub1 port 4 configuration 1 interface 0 "Sony Silicon Media R/W"
rev 2.00/3.95 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0: <Sony, USB HS-CF Card, 3.95> SCSI0 0/direct
removable
sd1 at scsibus2 targ 1 lun 1: <Sony, USB HS-SM Card, 3.95> SCSI0 0/direct
removable
sd2 at scsibus2 targ 1 lun 2: <Sony, USB HS-MS Card, 3.95> SCSI0 0/direct
removable
sd3 at scsibus2 targ 1 lun 3: <Sony, USB HS-SD Card, 3.95> SCSI0 0/direct
removable
uhidev0 at uhub2 port 1 configuration 1 interface 0 "DELL Dell QuietKey
Keyboard" rev 1.10/1.01 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub2 port 2 configuration 1 interface 0 "SIGMACHIP Usb Mouse"
rev 1.10/1.10 addr 3
uhidev1: iclass 3/1
ums0 at uhidev1: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on wd0a (b62b4179bd7ce1bb.a) swap on wd0b dump on wd0b
umass1 at uhub0 port 3 configuration 1 interface 0 "ZTE MF195" rev
2.00/0.01 addr 2
umass1: using SCSI over Bulk-Only
scsibus5 at umass1: 2 targets, initiator 0
cd1 at scsibus5 targ 1 lun 0: <ZTE, USB SCSI CD-ROM, 0001> SCSI0 5/cdrom
removable
sd4 at scsibus5 targ 1 lun 1: <ZTE, Storage, 0001> SCSI0 0/direct removable
cd1 detached
sd4 detached
scsibus5 detached
umass1 detached
umodem0 at uhub0 port 3 configuration 1 interface 1 "ZTE MF195" rev
2.00/0.01 addr 2
umodem0: data interface 2, has CM over data, has break
umodem0: could not set data multiplex mode
umodem1 at uhub0 port 3 configuration 1 interface 3 "ZTE MF195" rev
2.00/0.01 addr 2
umodem1: data interface 4, has CM over data, has break
umodem1: could not set data multiplex mode
umass1 at uhub0 port 3 configuration 1 interface 5 "ZTE MF195" rev
2.00/0.01 addr 2
umass1: using SCSI over Bulk-Only
scsibus5 at umass1: 2 targets, initiator 0
umodem2 at uhub0 port 3 configuration 1 interface 6 "ZTE MF195" rev
2.00/0.01 addr 2
umodem2: data interface 7, has CM over data, has break
umodem2: could not set data multiplex mode
ugen0 at uhub0 port 3 configuration 1 "ZTE MF195" rev 2.00/0.01 addr 2
Post by Stuart Longland
Post by 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(!))
Try ejecting the "CD".
--
Stuart Longland (aka Redhatter, VK4MSL)
I haven't lost my mind...
...it's backed up on a tape somewhere.
Roderick
2018-04-20 09:17:55 UTC
Reply
Permalink
Raw Message
Post by 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?
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.
MS
2018-04-20 18:17:57 UTC
Reply
Permalink
Raw Message
I forgot to mention it but the modem doesn't respond on any of the
/dev/cuaUX
Post by MS
ok, so I ejected the cd1 and OBSD started seeing ZTE as a umodem, but
Post by MS
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.
Roderick
2018-04-20 18:39:27 UTC
Reply
Permalink
Raw Message
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.
IL Ka
2018-04-20 19:08:54 UTC
Reply
Permalink
Raw Message
Do you have ucom at umodem in dmesg?
Or ucom at umsm?
Post by MS
I forgot to mention it but the modem doesn't respond on any of the
/dev/cuaUX
Post by MS
ok, so I ejected the cd1 and OBSD started seeing ZTE as a umodem, but
Post by MS
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.
MS
2018-04-21 12:32:32 UTC
Reply
Permalink
Raw Message
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....
Post by IL Ka
Do you have ucom at umodem in dmesg?
Or ucom at umsm?
Post by MS
I forgot to mention it but the modem doesn't respond on any of the
/dev/cuaUX
Post by MS
ok, so I ejected the cd1 and OBSD started seeing ZTE as a umodem, but
Post by MS
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.
Stuart Henderson
2018-04-21 12:55:19 UTC
Reply
Permalink
Raw Message
Post by MS
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?
MS
2018-04-22 00:42:40 UTC
Reply
Permalink
Raw Message
cu -l /dev/cuaUX (iterating 0 through 2)
gave "Device not configured"
Post by Stuart Henderson
Post by MS
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?
Loading...