DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th August 2015
GarryR GarryR is offline
Real Name: Garry Ricketson
Port Guard
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 40
Default Network configuration for a USB broadband device

I am having trouble understanding what I read in search results, and also the manual, in
relation to setting up or starting a network connection, using a USB broadband device.
With OpenBsd on a VM, I had no problems, but that mostly because I had a active connection, and via the VM it found the connection.
Now, I have installed OpenBsd to a USB drive,16gb,. it boots fine, all the sets are installed,
but setting up the "network" is a real mystery to me, always had "networkmanager" to help,
so now I am kind of lost on this, every time I get a chance I have been searching for instructions, and info, I did find sort of a example, just this evening, but have not tried it yet.
It is "reading" the broad band device,..I can see that in my dmesg , here it is:
Code:
 OpenBSD 5.7 (GENERIC.MP) #767: Sun Mar  8 11:04:48 MDT 2015
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
RTC BIOS diagnostic error 80<clock_battery>
cpu0: Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz ("GenuineIntel" 686-class) 2.27 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,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,LAHF,PERF,ITSC
real mem  = 2606501888 (2485MB)
avail mem = 2551525376 (2433MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 11/07/11, SMBIOS rev. 2.6 @ 0xe9500 (32 entries)
bios0: vendor Hewlett-Packard version "F.29" date 11/07/2011
bios0: Hewlett-Packard HP Pavilion dv6 Notebook PC
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP ASF! HPET APIC MCFG SLIC BOOT ASPT WDAT SSDT
acpi0: wakeup devices P0P2(S4) PEGP(S4) P0P3(S4) PEGP(S4) P0P1(S4) PS2K(S3) PS2M(S3) EHC1(S0) USB1(S0) USB2(S0) USB3(S0) USB4(S0) EHC2(S0) USB5(S0) USB6(S0) USB7(S0) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 133MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.0, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz ("GenuineIntel" 686-class) 2.27 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,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,LAHF,PERF,ITSC
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz ("GenuineIntel" 686-class) 2.27 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,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,LAHF,PERF,ITSC
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz ("GenuineIntel" 686-class) 2.27 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,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,LAHF,PERF,ITSC
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpimcfg0 at acpi0 addr 0xf0000000, bus 0-127
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P2)
acpiprt2 at acpi0: bus -1 (P0P3)
acpiprt3 at acpi0: bus 4 (P0P1)
acpiprt4 at acpi0: bus 2 (RP01)
acpiprt5 at acpi0: bus 3 (RP02)
acpiprt6 at acpi0: bus -1 (RP03)
acpiec0 at acpi0### AML PARSE ERROR (0xe20e): Undefined name: \\_PR_.CPU0._PPC
error evaluating: \\_SB_.PCI0.LPCB.EC0_._REG
acpiec _REG failed, broken BIOS

acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpitz0 at acpi0acpitz0: TZ01: failed to read _CRT
acpitz0: TZ01: failed to read _CRT
: no critical temperature defined
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID0
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "Primary" serial   type LION oem "Hewlett-Packard"
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
acpivideo1 at acpi0: VGA_
acpivideo2 at acpi0: VGA_
bios0: ROM list: 0xc0000/0xee00 0xcf000/0x2c00!
cpu0: Enhanced SpeedStep 2262 MHz: speeds: 2266, 2133, 1999, 1866, 1733, 1599, 1466, 1333, 1199, 1066, 933 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel Core Host" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x02
intagp0 at vga1
agp0 at intagp0: aperture at 0xa0000000, size 0x10000000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1366x768
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 3400 MEI" rev 0x06 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 2 int 16
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 3400 HD Audio" rev 0x05: msi
azalia0: codecs: IDT 92HD81B1X, Intel/0x2804, using IDT 92HD81B1X
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x05: apic 2 int 17
pci1 at ppb0 bus 2
"Broadcom BCM4313" rev 0x01 at pci1 dev 0 function 0 not configured
ppb1 at pci0 dev 28 function 1 "Intel 3400 PCIE" rev 0x05: apic 2 int 16
pci2 at ppb1 bus 3
3:0:0: mem address conflict 0xffff0000/0x10000
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D (0x2800), msi, address 60:eb:69:0f:9b:26
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x05: apic 2 int 21
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xa5
pci3 at ppb2 bus 4
pcib0 at pci0 dev 31 function 0 "Intel HM55 LPC" rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 3400 AHCI" rev 0x05: msi, AHCI 1.3
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, ST9500325AS, 0005> SCSI3 0/direct fixed naa.5000c50027da2062
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
cd0 at scsibus1 targ 1 lun 0: <hp, CDDVDW TS-L633N, 0300> ATAPI 5/cdrom removable
ichiic0 at pci0 dev 31 function 3 "Intel 3400 SMBus" rev 0x05: apic 2 int 19
iic0 at ichiic0
lisa0 at iic0 addr 0x1c: lis331dl
spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600 SO-DIMM
spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600 SO-DIMM
itherm0 at pci0 dev 31 function 6 "Intel 3400 Thermal" rev 0x05
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pms0: Synaptics clickpad, firmware 7.4
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pci4 at mainbus0 bus 127
pchb1 at pci4 dev 0 function 0 "Intel QuickPath" rev 0x02
pchb2 at pci4 dev 0 function 1 "Intel QuickPath" rev 0x02
pchb3 at pci4 dev 2 function 0 "Intel QPI Link" rev 0x02
pchb4 at pci4 dev 2 function 1 "Intel QPI Physical" rev 0x02
pchb5 at pci4 dev 2 function 2 "Intel Reserved" rev 0x02
pchb6 at pci4 dev 2 function 3 "Intel Reserved" rev 0x02
uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
umass0 at uhub2 port 2 configuration 1 interface 0 "Kingston DataTraveler 2.0" rev 2.00/1.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: <Kingston, DataTraveler 2.0, PMAP> SCSI2 0/direct removable serial.09306545EF11DA139F15
sd1: 14891MB, 512 bytes/sector, 30497664 sectors
umsm0 at uhub2 port 4 configuration 1 interface 0 "HUAWEI Technology HUAWEI Mobile" rev 2.00/0.00 addr 4
ucom0 at umsm0
umsm1 at uhub2 port 4 configuration 1 interface 1 "HUAWEI Technology HUAWEI Mobile" rev 2.00/0.00 addr 4
ucom1 at umsm1
umsm2 at uhub2 port 4 configuration 1 interface 2 "HUAWEI Technology HUAWEI Mobile" rev 2.00/0.00 addr 4
ucom2 at umsm2
umsm3 at uhub2 port 4 configuration 1 interface 3 "HUAWEI Technology HUAWEI Mobile" rev 2.00/0.00 addr 4
uhub3 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
umass1 at uhub3 port 1 configuration 1 interface 0 "ADATA ADATA USB Flash Drive" rev 2.00/1.00 addr 3
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd2 at scsibus3 targ 1 lun 0: <ADATA, USB Flash Drive, 0.00> SCSI4 0/direct removable serial.125fcb20917232150003
sd2: 7316MB, 512 bytes/sector, 14984192 sectors
uvideo0 at uhub3 port 5 configuration 1 interface 0 "Realtek 2SF022" rev 2.00/0.08 addr 4
video0 at uvideo0
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root on sd1a (fa6ea5061088264e.a) swap on sd1b dump on sd1b
That is pretty long, dmesg | tail , did not have the info needed.
but this is the broad band device:
Code:
 umsm0 at uhub2 port 4 configuration 1 interface 0 "HUAWEI Technology HUAWEI Mobile" rev 2.00/0.00 addr 4
ucom0 at umsm0
umsm1 at uhub2 port 4 configuration 1 interface 1 "HUAWEI Technology HUAWEI Mobile" rev 2.00/0.00 addr 4
ucom1 at umsm1
umsm2 at uhub2 port 4 configuration 1 interface 2 "HUAWEI Technology HUAWEI Mobile" rev 2.00/0.00 addr 4
ucom2 at umsm2
umsm3 at uhub2 port 4 configuration 1 interface 3 "HUAWEI Technology HUAWEI Mobile" rev 2.00/0.00 addr 4
------------------------------
These are the example I saw, and sort of some notes I tried to make, but
most of it makes no sense to me,..
Code:
---------------------
# my wifi device
auto wlan0
iface wlan0 inet dhcp
        wireless-essid [ESSID]
        wireless-mode [MODE]
-----------------------------
 /etc/network/interfaces
-----------------------------
wpa_supplicant
-----------------
/etc/ppp/cingular-chat:
TIMEOUT 10 
  REPORT CONNECT 
ABORT BUSY 
ABORT 'NO CARRIER' 
ABORT ERROR 
'' ATZ OK AT&F OK 
AT+CGDCONT=1,"IP","isp.cingular" OK 
ATD*99***1# CONNECT
/etc/ppp/peers/ac875:
cuaU0 
115200 
debug 
noauth 
nocrtscts 
:10.254.254.1 
ipcp-accept-remote 
defaultroute 
user isp@cingulargprs.com 
demand 
active-filter 'not udp port 123' 
persist 
idle 600 
connect "/usr/sbin/chat -v -f /etc/ppp/cingular-chat"
Since my ISP is not "cingular", it is "telcel" they do not show a "user" but it says
Number :*99# (that is similar to the cingular, I wonder if I need the
"username" (webgprs)
APN: internet.telcel.com
-------------------------------
I am under the impression I go to:
/etc/network/interfaces and look for, wpa_supplicant, and put the "data" there ? Something
like that, Not sure and confused,..so if anyone has set up their network to use a USB broadband device, any help will be appreciated. The wifi info is not of much use to me, there is no wifi available in this area,..
Ok well for now that is about it, if any other info is needed, let me know what info is needed, and if I don't know how to get that info, I will try asking the "startpage.com" search or just ask here,..I really do hate to be a bother, and have to ask about this,
usually I can figure things out on my own,eventually, but it is nice if and when there is some
one that knows, and can explain,
so anyway, thank you in advance.
Reply With Quote
  #2   (View Single Post)  
Old 14th August 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,432
Default

First: it looks like some of the bits and pieces of "example" you found are apparently for Linux. OpenBSD doesn't have wlan0, /etc/network/devices, or use wpa_supplicant. Don't try to apply Linux management widgets to OpenBSD; the OSes may look similar but they have more differences than similarities.

Second, there's a man page for umsm(4). It contains some of the other bits and pieces from your example, and points you to other man pages, in particular, pppd(8) and ppp(4).

The example configuration in the man page is also for the Cingular wireless ISP; your ISP, telcel, may have its own requirements and you should contact them regarding Point-to-Point provisioning.

OpenBSD's FAQ 6 gives general network configuration guidance. However, it no longer covers Point-to-Point configurations specifically.
Reply With Quote
  #3   (View Single Post)  
Old 14th August 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,432
Default

Here is a thread from the misc@ mailing list archives on provisioning a umsm device which may help.

http://marc.info/?t=142438133000007&r=1&w=2
Reply With Quote
  #4   (View Single Post)  
Old 14th August 2015
GarryR GarryR is offline
Real Name: Garry Ricketson
Port Guard
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 40
Default

Ok, well thanks for the replies, I looked at the manual, and also here,:

http://www.openbsd.org/cgi-bin/man.c...th=OpenBSD-5.7
So I guess, but I am still completely confused,
I need to either write or find scripts,
Quote:
SCRIPTS
pppd invokes scripts at various stages in its processing which can be used to perform site-specific ancillary processing. These scripts are usually shell scripts, but could be executable code files instead. pppd does not wait for the scripts to finish. pppd runs the scripts with standard input, output and error redirected to /dev/null, and with an environment that is empty except for some environment variables that give information about the link. The environment variables that pppd sets are:
Then there are the examples, so that gives me some examples as to what I need to
put in the scripts, once I have that I need to modify, all these files, ?
So that all these scripts are in those files, ?

Code:
FILES
/var/run/pppn.pid
Process-ID for pppd process on PPP interface unit n.
/etc/ppp/pap-secrets
Usernames, passwords and IP addresses for PAP authentication. This file should be owned by root and not readable or writable by any other user. pppd will log a warning if this is not the case.
/etc/ppp/chap-secrets
Names, secrets and IP addresses for CHAP authentication. As for /etc/ppp/pap-secrets, this file should be owned by root and not readable or writable by any other user. pppd will log a warning if this is not the case.
/etc/ppp/options
System default options for pppd, read before user default options or command-line options.
~/.ppprc
User default options, read before /etc/ppp/options.ttyname.
/etc/ppp/options.ttyname
System default options for the serial port being used, read after ~/.ppprc. In forming the ttyname part of this filename, an initial /dev/ is stripped from the port name (if present), and any slashes in the remaining part are converted to dots.
/etc/ppp/peers
A directory containing options files which may contain privileged options, even if pppd was invoked by a user other than root. The system administrator can create options files in this directory to permit non-privileged users to dial out without requiring the peer to authenticate, but only to certain trusted peers.
I don't think I will ever figure out how to do all of that, maybe eventually one day I will learn how to write the scripts needed. Oh well, anyway, thanks for the replies.

Last edited by GarryR; 14th August 2015 at 02:51 PM.
Reply With Quote
  #5   (View Single Post)  
Old 14th August 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,432
Default

Garry,

I know, it's confusing. I'll try to net out how the pieces of the puzzle all fit together. As I don't have a PPP connection myself, some of the puzzle pieces may not be completely clear when I'm done. Please forgive me, also, if any of this is dull, useless review.

---

The umsm(4) driver that appears in your dmesg is for serial modems that have a Qualcomm MSM chipset. These are found found in a variety of cellular devices, including yours. The umsm(4) man page warns that multiple devices may appear in your dmesg, and it is not always clear if it is device number 0 that is an active modem, or if it is one of the other device numbers. Your dmesg shows 4 different umsm devices, so some experimentation might be needed.

PPP (Point-to-Point Protocol) is a way to exchange authentication (userid/pw) and IP address assignments over a serial connection, such as the umsm modem.

The pppd(8) daemon is the tool that uses PPP to authenticate a connection, negotiate IP addressing and routing information, and maintain and manage the connection.

The chat(8) command is used to script commands for serial modems.

The ppp(4) driver is the network interface for PPP.

The ifconfig(8) command is the provisioning and management tool for network interfaces. For example, a ppp(4) device can be created or destroyed by ifconfig. For other devices, such as Ethernet NICs, ifconfig may be used to set IP addresses, but for ppp(4) devices this is done with pppd(8).

The hostname.if(5) files are used to configure network interfaces, used by netstart(8) at boot time. The example from the misc@ mailing list used "up" to create a ppp(4) device during boot.

---

In the example scripts in the umsm(4) man page, we see a chat(8) script containing modem commands, a pppd(8) provisioning file, and a pppd(8) authentication file using CHAP -- Challenge Handshake Authentication Protocol -- the protocol required by Cingular Wireless when the example was written. (Cingular Wireless is now AT&T Mobility -- the example was written prior to 2007.)

The first record in the example pppd file uses /dev/cuaU0, which would correspond with the first umsm device, umsm0. The second record is 115200 -- the speed of the modem being used. The third record enables debug, and from the fourth option downward ... are all settings needed for connection with Cingular, and for behavior of the connection: The ISP does not need to authenticate itself with the client. Hardware flow control is disabled. A recommended remote IP address was defined, which can be altered by the ISP, Cingular. The connection will be the default route to the Internet. The userid for this user at the ISP is defined. The connection will ignore NTP packets as a measure of demand or idle activity. Break the link after 10 minutes of idle activity. Remain running and re-establish the link if demand returns. Connect with the chat(8) script.

The chat(8) script includes a blend of chat commands and modem commands. The chat commands are documented in the man page. The modem commands are not -- but they are the "AT" commands (or extensions) written for the Hayes modems in 1981, used by all modem manufacturers since the mid-1980s.

---

As you can see, the specifics for PPP connections are partially under your control, and partially under the control of the ISP. This is why I recommended contacting your vendor. Only they can tell you what their requirements are.
Reply With Quote
  #6   (View Single Post)  
Old 14th August 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,432
Default

While you are waiting for your ISP to answer your question, you can test your 4 umsm(4) devices with cu(1), and at least, find out which is the modem.

If your userid is in the dialer group you can issue these commands as a normal user. Otherwise, you'll need to be the superuser (sudo, su, etc.).

$ cu -l /dev/cuaU0 -s 115200 can be used to initiate a conversation with a modem. If it is listening, and doing so at that baud rate. The ATZ command will issue a "reset" request, and if successful, the modem will reply with an OK message.

To disconnect and return to the shell, in order to test /dev/cuaU1 through /dev/cuaU3, or to test with different baud rate, use a tilde and a period, "~." on a line by itself. If cu(1) fails to recognize it, you can use pkill(1) from another terminal window.
Reply With Quote
  #7   (View Single Post)  
Old 14th August 2015
GarryR GarryR is offline
Real Name: Garry Ricketson
Port Guard
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 40
Default

Thanks ,
Quote:
Please forgive me, also, if any of this is dull, useless review.
Well, it can't be helped, that it is "dull", but far from useless, I will need to go over it more carefully, probably a few times,...

Quote:
As you can see, the specifics for PPP connections are partially under your control, and partially under the control of the ISP. This is why I recommended contacting your vendor. Only they can tell you what their requirements are.
On waiting for the ISP to answer me, that is not going to happen, they are next to impossible to communicate with, unfortunately , for me there are not really any options in this area at this time, for a different one either.
A little off topic,but several years ago, when I first started useing this "telcel" and bought the modem, I had a lot of trouble getting it to work on linux, I tried contacting them, as soon as they realized I was using "linux", they said, "What is that ?", "It only works on windows" ,..end of story. However they were wrong, it works fine on linux, and I am sure
it will on OpenBsd also,

However, since it does work on my Debian system, and I am a little more familiar with where the various files are, I am pretty sure if I do some "digging", there, I can find the information I need. Since on Debian I use "network manager", I am pretty sure I can find
the information I need in the files that network manger is using.

Realizing, OpenBsd, is considerably different, but still the requirements of the ISP (vender)
are the same, so all I need to do there is see what debian/network manager is using to meet those requirements.

I have noticed, when I boot, it (openbsd) tries to establish a connection, it may be all it is missing is the "secrets" or password, if I can figure out where to put those.
Thanks, for taking time on this, and no, don't feel it is useless, every little bit helps me get a better understanding of the entire process.
------------------------
A little off topic, but one reason I am having trouble using the manual, that is included in the OS, is my eyes are really bad, and even with glasses, it is very difficult to read,..
I have also been looking for a way, to increase the font size, in either the xterm, or just the shell, ideally both, on my debian, I am using a 24 pt, font in the bash shell, that is what it takes for me to be able to read it with glasses, with out the glasses, I still can't read it !
Similar, here, for the forum, I have the browser set to use very large fonts,..I did try a couple of things, but they didn't work, maybe this should be a priority, and I should have started a topic on that first,..these 2 things, the network, and the font size are really the only 2 problems I am having,..
--------------------------------------------------------------------------------------------------------------
Thanks
Reply With Quote
  #8   (View Single Post)  
Old 14th August 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,432
Default

Quote:
Originally Posted by GarryR View Post
...I will need to go over it more carefully, probably a few times,...
PPP used to be explained with examples in FAQ 6, but that was at a time when there were two implementations: userland PPP, and kernel mode PPP. The userland version had a "how to" in the FAQ. Userland PPP was removed from the OS, and no one has stepped up to write a replacement "how to" for the FAQ using the kernel mode PPP.
Quote:
On waiting for the ISP to answer me, that is not going to happen, they are next to impossible to communicate with...
This is common. If a retail customer isn't using MacOS, IOS, Windows, or Android, they don't have a script to read from, and so they can't help. However, if you can be put in contact with an actual network technician, then all things become easier. Establishing that connection is what is most difficult and time consuming.
Quote:
...even with glasses, it is very difficult to read...
You might investigate xman(1) for man page reading. Even with the default fonts, this may be easier than reading in a terminal window. But as this is a separate issue -- and there are many ways to solve the problem -- please feel free to start a second thread. The admins here prefer to have one-issue-per-thread, if that's possible, to make searching a little easier for people.

Last edited by jggimi; 14th August 2015 at 06:31 PM. Reason: typos
Reply With Quote
  #9   (View Single Post)  
Old 14th August 2015
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 720
Default

A couple of years ago I considered switching over to one of these kind of Internet connections. At the end of the day, I didn't do it, but nevertheless spent some time investigating how/if it would work with Linux and BSD. That's possibly a bad combination to try to give help from, but there's an idea I wanted to add.

Quote:
Originally Posted by GarryR View Post
On waiting for the ISP to answer me, that is not going to happen, they are next to impossible to communicate with, unfortunately , for me there are not really any options in this area at this time, for a different one either.
A little off topic,but several years ago, when I first started useing this "telcel" and bought the modem, I had a lot of trouble getting it to work on linux, I tried contacting them, as soon as they realized I was using "linux", they said, "What is that ?", "It only works on windows" ,..end of story. However they were wrong, it works fine on linux, and I am sure it will on OpenBsd also,
I think the above describes perfectly the typical situation. But all is not lost. The key is, it works with Windows. How does it do that? Well, my understanding is the following. As you noticed, your physical USB device has several logical devices; one of which is the actual modem. What seems to be done is that one of the other devices actually identifies and acts like a cd-rom, or a cd-rom image. Stored in this image are a bunch of files that Windows will read and use as drivers and/or configuration information. So there may be some kind of text file (*.ini ??) there that contains the necessary Hayes-type commands to send to the modem to connect to your ISP.

If it's possible to access the cd-rom image, it might provide some clues. I don't know how to do that under OpenBSD. With Linux there is something called "usb_modeswitch" that is used. In order to get at these configuration files, it really doesn't matter what OS you use to do that, as long as you can find the files and extract some info from them.

Since I didn't actually get such a modem, of course I never had a chance to experiment further. Possibly this idea might be helpful with a small part of the problem you're facing.

Last edited by IdOp; 14th August 2015 at 11:37 PM. Reason: add an underscore
Reply With Quote
Old 14th August 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,432
Default

Good point. When I looked through misc@ archives, I did see some MSM devices presented logical CDs. And my Android phone will do that on command, if I tell it to "install PC software."

It's not obvious from the dmesg if "sd2" is a real USB storage device, or something presented by the cellular device.
Reply With Quote
Old 14th August 2015
GarryR GarryR is offline
Real Name: Garry Ricketson
Port Guard
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 40
Default

Quote:
If it's possible to access the cd-rom image, it might provide some clues. I don't know how to do that under OpenBSD. With Linux there is something called "usbmodeswitch" that is used. In order to get at these configuration files, it really doesn't matter what OS you use to do that, as long as you can find the files and extract some info from them.
That is a interesting approach, I am going to look into that, I have noticed on the debian, the device shows, in the media, a long with the Cdrom1 Cdrom0 (if I have 2 connected)
Something else I thought of , but just as I was leaving the house to do some errands, and I just now got back, I almost feel silly, I had not thought of it before, but since it does make
a connection "automaticly" on the OpenBSD that I have on the VM, it seems like I should be able to find the files that have all the information, and maybe those will work as good examples or "templates"
for me. Thanks , if anyone else does think of something more, it is welcome, and I will get back later, to let you all know what I find when I look at the settings,configurations that are on the OpenBsd,on the VM,..that seems like now, should have been the first thing to do, but I did not think of it until now.
Reply With Quote
Old 14th August 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,432
Default

We don't know what your VM sees, but it is likely to be a virtual Ethernet NIC. If so, it won't have any PPP settings at all.
Reply With Quote
Old 15th August 2015
GarryR GarryR is offline
Real Name: Garry Ricketson
Port Guard
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 40
Default

Code:
 but it is likely to be a virtual Ethernet NIC. If so, it won't have any PPP settings at all.
That is what it looks like, there was a ppp directory, but nothing in it, ...

A long time ago, I had something happen, and I had no desktop on the Debian system, so
I didn't have the "network manager", GUI, icon, etc,...any way , I needed to establish a connection, in order to try to repair the system, so I used "nmcli", for the command line
interface, for network manager, but I also needed to create a file on the ppp, I had found a example, somewhere, now I don't remember, but I did find the file I made, and when I used "nmcli"
Code:
this worked:
for usb broadband.
nmcli nm wwan on
nmcli con up uuid aed86e75-cb57-41b1-93a0-a493176d23af
Obviously, since OpenBsd does not have/use network manager, or "nmcli", the above
is not of much use, and at first it did not work, until I added this (below) to the PPP settings, or file I made,
if I remember correctly, it is the "mobile_ppp", so anyway, it seems like if I can figure
out where to put and how to "word" script or file, with the same, settings, and what to name the file, for OpenBsd to be able to use it,..

Code:
 broadband-ppp.txt
Description='Example PPP mobile connection'
Interface=ttyUSB0
Connection=mobile_ppp

# Use default route provided by the peer (default: true)
DefaultRoute=true
# Use DNS provided by the peer (default: true)
UsePeerDNS=true

# The user and password are not always required
User='webgprs'
Password='webgprs2002'

# The access point name you are connecting to
AccessPointName=internet.itelcel.com

# If your device has a PIN code, set it here. Defaults to 'None'
Pin=None

# Mode can be one of 3Gpref, 3Gonly, GPRSpref, GPRSonly, None
# These only work for Huawei USB modems; all other devices should use None
Mode=3Gpref
I also have this other info, :
Code:
number (to dial) *99#
user:webgprs
APN: internet.itcel.com
MCC:334
MNC:02
authentication protocal: PAP
iterface: GSM (ttyUSB0)
If I remember, it rejected the "script" with the GSM, so that is why the broadband-ppp.txt,
does not have that, also I am not positive of it is USB0 (zero) or USBO (the letter) they both look the same to me, my eyes are not helping me at all, ):
Ok well for now that is about it,
thanks from Garry
Reply With Quote
Old 15th August 2015
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 129
Default

Quote:
also I am not positive of it is USB0 (zero) or USBO (the letter) they both look the same to me
I can help with that, , they are numerical zero.
__________________
Linux since 1999, & now an OpenBSD user.
Reply With Quote
Old 15th August 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,432
Default

Each linux provisioning instruction will need to be adapted to OpenBSD. One at a time. Manually.

As an example, your question on whether it was "USB0" or "USBO" is moot. Neither would be used with this OS. Instead, the pppd(8) daemon will use one of four cua(4) calling units: /dev/cuaU0 through /dev/cuaU3, as I mentioned in post #5 and then further discussed in post #6, above.
Reply With Quote
Old 15th August 2015
GarryR GarryR is offline
Real Name: Garry Ricketson
Port Guard
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 40
Default

Thanks,

Quote:
the pppd(8) daemon will use one of four cua(4) calling units: /dev/cuaU0 through /dev/cuaU3,
Ok, yea, I was looking at those last night, and got them written down, so I have some
"notes" to follow, but was to tired to actually try much, things are making a little more sense to me though.
Thanks
Reply With Quote
Old 15th August 2015
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 720
Default

I use pppd and a USB modem to connect to the Internet. The main difference is that it's a conventional (POTS) one, rather than cellular like yours. A minor difference is that it's not on OpenBSD. As you work on this there may be places where I can help. pppd can seem daunting at first, but I think the things related to it should be doable in a fairly straightforward way, it just takes time and patience. I suspect the hardest part will be to find appropriate strings, for your ISP and modem, to place into your chat script. But you already seem to have some of this info, like the number to dial.

My advice at this point is to use the pppd(8) option call, which invokes a configuration file for a specific ISP that you've set up. See the man page, in particular the EXAMPLE section. Using call is probably the simplest way to get off the ground without having to write your own shell script to re-create this wheel.
Reply With Quote
Old 15th August 2015
GarryR GarryR is offline
Real Name: Garry Ricketson
Port Guard
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 40
Default

Thanks,
I was able to access,
Code:
cua(4) calling units: /dev/cuaU0
Quote:
cu -l /dev/cuaU0 -s 115200 can be used to initiate a conversation with a modem. If it is listening, and doing so at that baud rate. The ATZ command will issue a "reset" request, and if successful, the modem will reply with an OK message.
]
when I ran the ATZ command, it did reply with OK, I have not looked at the other 3 yet, got interupted,

Also have copied some things from the link to the pppd(8) manual, ( I don't have a printer), so, ...but any way, added some more things to my "notes"
Quote:
See the man page, in particular the EXAMPLE section.
this includes some examples, ...thanks again, everybody
Reply With Quote
Old 15th August 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,432
Default

Ho-kay. I have attempted to build some possible configuration files. Possible, because I don't use PPP, and can't test them. I used information you provided, adapting the examples found in the umsm(4) man page.

Here is a peers file. You create the /etc/ppp/peers directory, then place a file like this one within it using any name you like, such as telcel, that you would use with the pppd daemon, with the call option shown in the umsm(4) man page, and Idop mentioned above. Example:

# pppd call telcel

I used your 'webgprs' userid and password. I set 5 minutes of idle time to disconnect with the ISP, rather than the 10 shown in the umsm(4) example, but you can change this as you need for your requirements. I've eliminated disabling of asynchronous flow control, which was in the example, because the modem default may work, whether that's enabled or disabled. The provisioning information you found on Debian didn't set it, so this might work without setting the option.
Code:
# the calling unit in /dev:
cuaU0
# baud rate
115200
# send debug information to /var/log/daemon
debug
# do not require the ISP to authenticate itself
noauth
#  use this connection for the default route
defaultroute
# make this PPP connection when packets are outgoing, disconnect 
# when idle 5 minutes.  If ntpd(8) is running, ignore its clock synchronization
# packets for idle calculations. 
demand
idle 600 
active-filter 'not udp port 123' 
# don't shutdown if the connection goes idle
persist
# userid for PAP authentication
user webgprs
# modem commands to be sent when connecting
connect "/usr/sbin/chat -v -f /etc/ppp/telcel-chat"
With PAP or CHAP authentication, the request to authenticate comes from the peer -- in this case, the ISP. Here's what might go into /etc/ppp/pap-secrets:
Code:
# Secrets for authentication using PAP
# client    server    secret            IP addresses
webgprs        *    webgprs2002
Lastly, here is a possible chat script for the file /etc/ppp/telcel-chat, adapted from the example and your notes.
Code:
# time out if no responses after 10 seconds
TIMEOUT 10
# report if connected
REPORT CONNECT
# terminate the script if the modem is busy, has no data link, or has an error
ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
# reset the modem, load factory defaults
'' ATZ OK AT&F OK
# define GPRS core network as the context, 
# see https://en.wikipedia.org/wiki/Hayes_command_set
AT+CGDCONT=1,"IP","internet.itelcel.com" OK
# dial 
ATD*99# CONNECT

Last edited by jggimi; 15th August 2015 at 10:02 PM. Reason: typo. formatting.
Reply With Quote
Old 15th August 2015
GarryR GarryR is offline
Real Name: Garry Ricketson
Port Guard
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 40
Default

Wow!, Thanks a bunch, I will try these, they look good, even if they do not work, (just now see this, so have not yet tried) but even if they don't work, it gives me something that now makes some sense, actually I have a feeling this will work, or at least I will be able to make any "adjustments" or changes if need be,..I will let you know how it goes later,...
This could be really useful to others as well in the future,..
thanks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plan 9 network configuration gpatrick Other OS 1 27th January 2015 02:06 AM
KVM Virtual Machine network configuration J65nko Other BSD and UNIX/UNIX-like 3 2nd December 2014 06:00 AM
Fedora 15 Changing The Network Device Naming Scheme J65nko News 4 27th January 2011 12:30 PM
Network Card Configuration Freeco FreeBSD Installation and Upgrading 6 8th May 2010 11:11 AM
Device-agnostic network interface sean OpenBSD General 2 28th January 2010 06:24 PM


All times are GMT. The time now is 08:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick