Discussion:
MSA110UP 3g modem on OpenBSD 4.8
(too old to reply)
Sergio Charpinel Jr.
2011-03-14 13:26:09 UTC
Permalink
Hi,

i'm trying to get my MSA110UP 3g modem working on OpenBSD 4.8. But I think
it is recognized as a hard disk device, like in Linux. There I had to
install usb-modeswitch to connect, but I've heard it won't compile on
OpenBSD.

Here is my dmesg output when I connect the modem:
umsm0 at uhub1 port 1 configuration 1 interface 0 "ONDA,Incorporated ONDA
WCDMA Technologies MSM" rev 2.00/0.00 addr 2
umsm0 detached
umass0 at uhub1 port 1 configuration 1 interface 3 "ONDA,Incorporated ONDA
WCDMA Technologies MSM" rev 2.00/0.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus3 at umass0: 2 targets, initiator 0
sd1 at scsibus3 targ 1 lun 0: <ONDA, MMC Storage, 2.31> SCSI2 0/direct
removable
sd1: drive offline

# usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 addr 2: low speed, power 98 mA, config 1, KVM(0x5a08), No
brand(0x10d5), rev 0.00
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 addr 2: full speed, power 500 mA, config 1, ONDA WCDMA Technologies
MSM(0x0091), ONDA,Incorporated(0x19d2), rev 0.00, iSerialNumber
P671A2ODTD010000
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered

Does OpenBSD 4.8 support it?

Thanks in advance.
--
Sergio Roberto Charpinel Jr.
David Coppa
2011-03-14 15:03:46 UTC
Permalink
On Mon, Mar 14, 2011 at 2:26 PM, Sergio Charpinel Jr.
Post by Sergio Charpinel Jr.
port 1 addr 2: full speed, power 500 mA, config 1, ONDA WCDMA Technologies
MSM(0x0091), ONDA,Incorporated(0x19d2), rev 0.00, iSerialNumber
P671A2ODTD010000
It should be a DEV_UMASS4 device, just like the ZTE MF633 and the ZTE
MF637...

I'll cook up a patch for you to try out when I'll be back @home.

Ciao,
David
Stuart Henderson
2011-03-14 19:44:20 UTC
Permalink
Post by Sergio Charpinel Jr.
i'm trying to get my MSA110UP 3g modem working on OpenBSD 4.8. But I think
it is recognized as a hard disk device, like in Linux. There I had to
install usb-modeswitch to connect, but I've heard it won't compile on
OpenBSD.
Try: eject sd1

If that works then we can add it as a DEV_UMASS4 device
David Coppa
2011-03-15 08:55:14 UTC
Permalink
Post by Stuart Henderson
Post by Sergio Charpinel Jr.
i'm trying to get my MSA110UP 3g modem working on OpenBSD 4.8. But I think
it is recognized as a hard disk device, like in Linux. There I had to
install usb-modeswitch to connect, but I've heard it won't compile on
OpenBSD.
Try: eject sd1
If that works then we can add it as a DEV_UMASS4 device
Hi again,

This should make your modem work.
I'm dubious about the name: it's certainly a rebadged ZTE, but I
wasn't able to find the original name anywhere on the web...

The patch is for 4.8, since it is what you're using.

Ciao,
David

Index: umsm.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.66
diff -u -p -r1.66 umsm.c
--- umsm.c 26 Jun 2010 00:34:19 -0000 1.66
+++ umsm.c 15 Mar 2011 08:39:16 -0000
@@ -158,6 +158,7 @@ static const struct umsm_type umsm_devs[
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_K3565Z }, 0},
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MF633 }, 0},
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MF637 }, 0},
+ {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MSA110UP }, 0},

{{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_EXPRESSCARD }, 0},
{{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_MERLINV620 }, 0},
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.511
diff -u -p -r1.511 usbdevs
--- usbdevs 29 Jul 2010 12:32:04 -0000 1.511
+++ usbdevs 15 Mar 2011 08:39:20 -0000
@@ -3015,6 +3015,7 @@ product ZTE CDMA_MSM 0x0001 CDMA Techno
product ZTE MF633 0x0016 ZTE MF633 USUPA USB modem
product ZTE MF637 0x0031 ZTE MF637 HSUPA USB modem
product ZTE K3565Z 0x0063 ZTE K3565-Z USB MSM modem
+product ZTE MSA110UP 0x0091 Onda MSA110UP USB MSM modem
product ZTE UMASS_INSTALLER2 0x0103 ZTE USB MSM installer
product ZTE UMASS_INSTALLER 0x2000 ZTE USB MSM installer
product ZTE AC8700 0xfffe AC8700 CDMA USB modem
Index: usbdevs.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.521
diff -u -p -r1.521 usbdevs.h
--- usbdevs.h 29 Jul 2010 12:34:09 -0000 1.521
+++ usbdevs.h 15 Mar 2011 08:39:23 -0000
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdevs.h,v 1.521 2010/07/29 12:34:09 maja Exp $ */
+/* $OpenBSD$ */

/*
* THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -3022,6 +3022,7 @@
#define USB_PRODUCT_ZTE_MF633 0x0016 /* ZTE MF633 USUPA USB modem */
#define USB_PRODUCT_ZTE_MF637 0x0031 /* ZTE MF637 HSUPA USB modem */
#define USB_PRODUCT_ZTE_K3565Z 0x0063 /* ZTE K3565-Z USB MSM modem */
+#define USB_PRODUCT_ZTE_MSA110UP 0x0091 /* Onda MSA110UP USB MSM modem */
#define USB_PRODUCT_ZTE_UMASS_INSTALLER2 0x0103 /* ZTE USB MSM installer */
#define USB_PRODUCT_ZTE_UMASS_INSTALLER 0x2000 /* ZTE USB MSM installer */
#define USB_PRODUCT_ZTE_AC8700 0xfffe /* AC8700 CDMA USB modem */
Index: usbdevs_data.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.515
diff -u -p -r1.515 usbdevs_data.h
--- usbdevs_data.h 29 Jul 2010 12:34:09 -0000 1.515
+++ usbdevs_data.h 15 Mar 2011 08:39:28 -0000
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdevs_data.h,v 1.515 2010/07/29 12:34:09 maja Exp $ */
+/* $OpenBSD$ */

/*
* THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -7228,6 +7228,10 @@ const struct usb_known_product usb_known
{
USB_VENDOR_ZTE, USB_PRODUCT_ZTE_K3565Z,
"ZTE K3565-Z USB MSM modem",
+ },
+ {
+ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MSA110UP,
+ "Onda MSA110UP USB MSM modem",
},
{
USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER2,
Sergio Charpinel Jr.
2011-03-15 13:06:05 UTC
Permalink
Hi,

The eject command did not work:
# eject sd1
eject: sd1: Input/output error

I'll try David's patch.

Thanks.
Post by David Coppa
Post by Stuart Henderson
Post by Sergio Charpinel Jr.
i'm trying to get my MSA110UP 3g modem working on OpenBSD 4.8. But I
think
Post by Stuart Henderson
Post by Sergio Charpinel Jr.
it is recognized as a hard disk device, like in Linux. There I had to
install usb-modeswitch to connect, but I've heard it won't compile on
OpenBSD.
Try: eject sd1
If that works then we can add it as a DEV_UMASS4 device
Hi again,
This should make your modem work.
I'm dubious about the name: it's certainly a rebadged ZTE, but I
wasn't able to find the original name anywhere on the web...
The patch is for 4.8, since it is what you're using.
Ciao,
David
Index: umsm.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.66
diff -u -p -r1.66 umsm.c
--- umsm.c 26 Jun 2010 00:34:19 -0000 1.66
+++ umsm.c 15 Mar 2011 08:39:16 -0000
@@ -158,6 +158,7 @@ static const struct umsm_type umsm_devs[
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_K3565Z }, 0},
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MF633 }, 0},
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MF637 }, 0},
+ {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MSA110UP }, 0},
{{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_EXPRESSCARD }, 0},
{{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_MERLINV620 }, 0},
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.511
diff -u -p -r1.511 usbdevs
--- usbdevs 29 Jul 2010 12:32:04 -0000 1.511
+++ usbdevs 15 Mar 2011 08:39:20 -0000
@@ -3015,6 +3015,7 @@ product ZTE CDMA_MSM 0x0001 CDMA Techno
product ZTE MF633 0x0016 ZTE MF633 USUPA USB modem
product ZTE MF637 0x0031 ZTE MF637 HSUPA USB modem
product ZTE K3565Z 0x0063 ZTE K3565-Z USB MSM modem
+product ZTE MSA110UP 0x0091 Onda MSA110UP USB MSM modem
product ZTE UMASS_INSTALLER2 0x0103 ZTE USB MSM installer
product ZTE UMASS_INSTALLER 0x2000 ZTE USB MSM installer
product ZTE AC8700 0xfffe AC8700 CDMA USB modem
Index: usbdevs.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.521
diff -u -p -r1.521 usbdevs.h
--- usbdevs.h 29 Jul 2010 12:34:09 -0000 1.521
+++ usbdevs.h 15 Mar 2011 08:39:23 -0000
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdevs.h,v 1.521 2010/07/29 12:34:09 maja Exp $ */
+/* $OpenBSD$ */
/*
* THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -3022,6 +3022,7 @@
#define USB_PRODUCT_ZTE_MF633 0x0016 /* ZTE MF633 USUPA
USB modem */
#define USB_PRODUCT_ZTE_MF637 0x0031 /* ZTE MF637 HSUPA
USB modem */
#define USB_PRODUCT_ZTE_K3565Z 0x0063 /* ZTE K3565-Z USB
MSM modem */
+#define USB_PRODUCT_ZTE_MSA110UP 0x0091 /* Onda
MSA110UP USB MSM modem */
#define USB_PRODUCT_ZTE_UMASS_INSTALLER2 0x0103 /*
ZTE USB MSM installer */
#define USB_PRODUCT_ZTE_UMASS_INSTALLER 0x2000 /* ZTE USB
MSM installer */
#define USB_PRODUCT_ZTE_AC8700 0xfffe /* AC8700 CDMA USB
modem */
Index: usbdevs_data.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.515
diff -u -p -r1.515 usbdevs_data.h
--- usbdevs_data.h 29 Jul 2010 12:34:09 -0000 1.515
+++ usbdevs_data.h 15 Mar 2011 08:39:28 -0000
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdevs_data.h,v 1.515 2010/07/29 12:34:09 maja Exp $ */
+/* $OpenBSD$ */
/*
* THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -7228,6 +7228,10 @@ const struct usb_known_product usb_known
{
USB_VENDOR_ZTE, USB_PRODUCT_ZTE_K3565Z,
"ZTE K3565-Z USB MSM modem",
+ },
+ {
+ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MSA110UP,
+ "Onda MSA110UP USB MSM modem",
},
{
USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER2,
--
Sergio Roberto Charpinel Jr.
Sergio Charpinel Jr.
2011-03-16 13:40:45 UTC
Permalink
Hi,

I think it worked. Here is my dmesg now;
umsm0 at uhub1 port 1 configuration 1 interface 0 "ONDA,Incorporated ONDA
WCDMA Technologies MSM" rev 2.00/0.00 addr 2
ucom0 at umsm0
umsm1 at uhub1 port 1 configuration 1 interface 1 "ONDA,Incorporated ONDA
WCDMA Technologies MSM" rev 2.00/0.00 addr 2
ucom1 at umsm1
umsm2 at uhub1 port 1 configuration 1 interface 2 "ONDA,Incorporated ONDA
WCDMA Technologies MSM" rev 2.00/0.00 addr 2
ucom2 at umsm2
umass0 at uhub1 port 1 configuration 1 interface 3 "ONDA,Incorporated ONDA
WCDMA Technologies MSM" rev 2.00/0.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus3 at umass0: 2 targets, initiator 0
sd1 at scsibus3 targ 1 lun 0: <ONDA, MMC Storage, 2.31> SCSI2 0/direct
removable
sd1: drive offline
umsm3 at uhub1 port 1 configuration 1 interface 4 "ONDA,Incorporated ONDA
WCDMA Technologies MSM" rev 2.00/0.00 addr 2
ucom3 at umsm3

The problem now is to configure ppp. Just one more quention.
When I run:
# cu -l /dev/ttyU0
Connected

And it freezes until I kill the proccess. Is it normal?

Thanks.
Post by Sergio Charpinel Jr.
Hi,
# eject sd1
eject: sd1: Input/output error
I'll try David's patch.
Thanks.
Post by David Coppa
Post by Stuart Henderson
Post by Sergio Charpinel Jr.
i'm trying to get my MSA110UP 3g modem working on OpenBSD 4.8. But I
think
Post by Stuart Henderson
Post by Sergio Charpinel Jr.
it is recognized as a hard disk device, like in Linux. There I had to
install usb-modeswitch to connect, but I've heard it won't compile on
OpenBSD.
Try: eject sd1
If that works then we can add it as a DEV_UMASS4 device
Hi again,
This should make your modem work.
I'm dubious about the name: it's certainly a rebadged ZTE, but I
wasn't able to find the original name anywhere on the web...
The patch is for 4.8, since it is what you're using.
Ciao,
David
Index: umsm.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.66
diff -u -p -r1.66 umsm.c
--- umsm.c 26 Jun 2010 00:34:19 -0000 1.66
+++ umsm.c 15 Mar 2011 08:39:16 -0000
@@ -158,6 +158,7 @@ static const struct umsm_type umsm_devs[
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_K3565Z }, 0},
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MF633 }, 0},
{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MF637 }, 0},
+ {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MSA110UP }, 0},
{{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_EXPRESSCARD }, 0},
{{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_MERLINV620 }, 0},
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.511
diff -u -p -r1.511 usbdevs
--- usbdevs 29 Jul 2010 12:32:04 -0000 1.511
+++ usbdevs 15 Mar 2011 08:39:20 -0000
@@ -3015,6 +3015,7 @@ product ZTE CDMA_MSM 0x0001 CDMA Techno
product ZTE MF633 0x0016 ZTE MF633 USUPA USB modem
product ZTE MF637 0x0031 ZTE MF637 HSUPA USB modem
product ZTE K3565Z 0x0063 ZTE K3565-Z USB MSM modem
+product ZTE MSA110UP 0x0091 Onda MSA110UP USB MSM modem
product ZTE UMASS_INSTALLER2 0x0103 ZTE USB MSM installer
product ZTE UMASS_INSTALLER 0x2000 ZTE USB MSM installer
product ZTE AC8700 0xfffe AC8700 CDMA USB modem
Index: usbdevs.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.521
diff -u -p -r1.521 usbdevs.h
--- usbdevs.h 29 Jul 2010 12:34:09 -0000 1.521
+++ usbdevs.h 15 Mar 2011 08:39:23 -0000
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdevs.h,v 1.521 2010/07/29 12:34:09 maja Exp $ */
+/* $OpenBSD$ */
/*
* THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -3022,6 +3022,7 @@
#define USB_PRODUCT_ZTE_MF633 0x0016 /* ZTE MF633 USUPA
USB modem */
#define USB_PRODUCT_ZTE_MF637 0x0031 /* ZTE MF637 HSUPA
USB modem */
#define USB_PRODUCT_ZTE_K3565Z 0x0063 /* ZTE K3565-Z USB
MSM modem */
+#define USB_PRODUCT_ZTE_MSA110UP 0x0091 /* Onda
MSA110UP USB MSM modem */
#define USB_PRODUCT_ZTE_UMASS_INSTALLER2 0x0103 /*
ZTE USB MSM installer */
#define USB_PRODUCT_ZTE_UMASS_INSTALLER 0x2000 /* ZTE USB
MSM installer */
#define USB_PRODUCT_ZTE_AC8700 0xfffe /* AC8700 CDMA USB
modem */
Index: usbdevs_data.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.515
diff -u -p -r1.515 usbdevs_data.h
--- usbdevs_data.h 29 Jul 2010 12:34:09 -0000 1.515
+++ usbdevs_data.h 15 Mar 2011 08:39:28 -0000
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdevs_data.h,v 1.515 2010/07/29 12:34:09 maja Exp $ */
+/* $OpenBSD$ */
/*
* THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -7228,6 +7228,10 @@ const struct usb_known_product usb_known
{
USB_VENDOR_ZTE, USB_PRODUCT_ZTE_K3565Z,
"ZTE K3565-Z USB MSM modem",
+ },
+ {
+ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MSA110UP,
+ "Onda MSA110UP USB MSM modem",
},
{
USB_VENDOR_ZTE, USB_PRODUCT_ZTE_UMASS_INSTALLER2,
--
Sergio Roberto Charpinel Jr.
--
Sergio Roberto Charpinel Jr.
David Coppa
2011-03-16 13:53:14 UTC
Permalink
On Wed, Mar 16, 2011 at 2:40 PM, Sergio Charpinel Jr.
Post by Sergio Charpinel Jr.
Hi,
I think it worked. Here is my dmesg now;
Yes, It's working.
Post by Sergio Charpinel Jr.
The problem now is to configure ppp. Just one more quention.
# cu -l /dev/ttyU0
Connected
And it freezes until I kill the proccess. Is it normal?
You need to find the correct port for ppp (the one that accepts AT commands).
Try with ttyU2 or ttyU3 and check if it accepts some simple AT
commands, like "ATZ"

I've already explained this stuff to another user in the past. Please, read:

http://marc.info/?l=openbsd-misc&m=128816834527997

Ciao
david
Stuart Henderson
2011-03-16 15:29:34 UTC
Permalink
/dev/cuaU3
debug
crtscts
460800
defaultroute
noauth
:10.64.64.64
connect '/usr/sbin/chat -v -f /etc/ppp/peers/tim.chat'
you can try turning off various settings by adding things like these:

deflate 0
refuse-pap
refuse-chap
noauth
noccp
novj
novjccomp
nopcomp

some 3g cards don't work well with these. sometimes you also
have to adjust the proposed IP addresses. (note that the PPP session
is with the 3g device and not the mobile network, so if you search
for examples, search for other people using same/similar *devices*
rather than specifically people on the same network).
David Coppa
2011-03-16 16:22:05 UTC
Permalink
Post by Stuart Henderson
deflate 0
refuse-pap
refuse-chap
noauth
noccp
novj
novjccomp
nopcomp
some 3g cards don't work well with these. sometimes you also
have to adjust the proposed IP addresses. (note that the PPP session
is with the 3g device and not the mobile network, so if you search
for examples, search for other people using same/similar *devices*
rather than specifically people on the same network).
Btw, are you sure it's cuaU3 and not cuaU2 ??

cheers
david
Sergio Charpinel Jr.
2011-03-16 22:56:41 UTC
Permalink
Post by David Coppa
Post by Stuart Henderson
deflate 0
refuse-pap
refuse-chap
noauth
noccp
novj
novjccomp
nopcomp
some 3g cards don't work well with these. sometimes you also
have to adjust the proposed IP addresses. (note that the PPP session
is with the 3g device and not the mobile network, so if you search
for examples, search for other people using same/similar *devices*
rather than specifically people on the same network).
Setting this parameters did not work as well.
Post by David Coppa
Btw, are you sure it's cuaU3 and not cuaU2 ??
cheers
david
Yes, just cuaU3 and cuaU1 accept commands via cu.
Also tried with cuaU1, but it did not work.
--
Sergio Roberto Charpinel Jr.
Sergio Charpinel Jr.
2011-03-17 13:16:18 UTC
Permalink
Thanks David and Stuart.

I couldn't make it work using David's method, but It worked using this
ppp.conf:
default:
set log CHAT

tim:
set device /dev/ttyU3
set login "\"!chat -f /etc/ppp/peers/tim.chat\""
set speed 460800
set phone "*99***1#"
set authname "tim"
set authkey "tim"
set timeout 120
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
#add default HISADDR
disable ipv6cp

I think the problem was the authentication. I tried to add user tim, and
configure pap-secrets and chat-secrets, but it continued not to work.
Anyway, the problem is solved now, thank yoy guys.

Cheers.
Post by Sergio Charpinel Jr.
Post by David Coppa
Post by Stuart Henderson
deflate 0
refuse-pap
refuse-chap
noauth
noccp
novj
novjccomp
nopcomp
some 3g cards don't work well with these. sometimes you also
have to adjust the proposed IP addresses. (note that the PPP session
is with the 3g device and not the mobile network, so if you search
for examples, search for other people using same/similar *devices*
rather than specifically people on the same network).
Setting this parameters did not work as well.
Post by David Coppa
Btw, are you sure it's cuaU3 and not cuaU2 ??
cheers
david
Yes, just cuaU3 and cuaU1 accept commands via cu.
Also tried with cuaU1, but it did not work.
--
Sergio Roberto Charpinel Jr.
--
Sergio Roberto Charpinel Jr.
Sergio Charpinel Jr.
2011-03-16 15:16:07 UTC
Permalink
Thanks again David for your help.

As I said, I used to connect it in Linux, so I got your config files and
just adapted to my config. But I'm receving a modem Hangup.
Here is my log:
Mar 16 12:06:03 pppd[24222]: pppd 2.3.5 started by root, uid 0
Mar 16 12:06:06 pppd[24222]: Serial connection established.
Mar 16 12:06:07 pppd[24222]: Using interface ppp0
Mar 16 12:06:07 pppd[24222]: Connect: ppp0 <--> /dev/cuaU3
Mar 16 12:06:07 pppd[24222]: sent [LCP ConfReq id=0x1 <magic 0xc2a72929>
<pcomp> <accomp>]
Mar 16 12:06:07 pppd[24222]: rcvd [LCP ConfReq id=0xc <asyncmap 0x0> <auth
chap 05> <magic 0xb5a3152a> <pcomp> <accomp>]
Mar 16 12:06:07 pppd[24222]: sent [LCP ConfRej id=0xc <auth chap 05>]
Mar 16 12:06:07 pppd[24222]: rcvd [LCP ConfAck id=0x1 <magic 0xc2a72929>
<pcomp> <accomp>]
Mar 16 12:06:07 pppd[24222]: rcvd [LCP ConfReq id=0xd <asyncmap 0x0> <magic
0xb5a3152a> <pcomp> <accomp>]
Mar 16 12:06:07 pppd[24222]: sent [LCP ConfAck id=0xd <asyncmap 0x0> <magic
0xb5a3152a> <pcomp> <accomp>]
Mar 16 12:06:07 pppd[24222]: sent [IPCP ConfReq id=0x1 <addr 200.137.64.23>
<compress VJ 0f 01>]
Mar 16 12:06:07 pppd[24222]: sent [CCP ConfReq id=0x1 <deflate 15>
<deflate(old#) 15> <bsd v1 15>]
Mar 16 12:06:07 pppd[24222]: rcvd [LCP DiscReq id=0xe magic=0xb5a3152a]
Mar 16 12:06:07 pppd[24222]: rcvd [LCP ProtRej id=0xf 80 fd 01 01 00 0f 1a
04 78 00 18 04 78 00 15 03 2f]
Mar 16 12:06:08 pppd[24222]: rcvd [IPCP ConfNak id=0x1 <ms-dns 10.11.12.13>
<ms-dns 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Mar 16 12:06:08 pppd[24222]: sent [IPCP ConfReq id=0x2 <addr 200.137.64.23>
<compress VJ 0f 01>]
Mar 16 12:06:08 pppd[24222]: Modem hangup
Mar 16 12:06:08 pppd[24222]: Connection terminated.
Mar 16 12:06:10 pppd: Exit.

My config file:
/dev/cuaU3
debug
crtscts
460800
defaultroute
noauth
:10.64.64.64
connect '/usr/sbin/chat -v -f /etc/ppp/peers/tim.chat'

And my chat config file:
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
ABORT "Username/Password Incorrect"
TIMEOUT 15
"" "ATZ"
OK "ATZ"
OK 'AT+CGDCONT=1, "ip","tim.br"'
TIMEOUT 15
OK "ATDT*99***1#"
TIMEOUT 30
CONNECT \d\c

I had to add a TIMEOUT before ATDT. Else I get an ERROR. My chat commands
are just like in Linux (wvdial). I think the difference is that there I use
a username and password. I don't know how to set this in ppp.

Here is my wvdial.conf:
[Dialer Defaults]
Init2 = ATZ
Init3 = AT+CGDCONT=1, "ip","tim.br"
Init4 = AT+CSQ
Stupid Mode = 1
ISDN = 0
Phone = *99***1#
Ask Password = 0
Modem = /dev/ttyUSB3
Username = tim
Dial Command = ATDT
Password = tim
Baud = 460800
New PPPD = yes
Auto DNS = 0

Any ideas what could be the problem?

Thanks again.
Post by David Coppa
On Wed, Mar 16, 2011 at 2:40 PM, Sergio Charpinel Jr.
Post by Sergio Charpinel Jr.
Hi,
I think it worked. Here is my dmesg now;
Yes, It's working.
Post by Sergio Charpinel Jr.
The problem now is to configure ppp. Just one more quention.
# cu -l /dev/ttyU0
Connected
And it freezes until I kill the proccess. Is it normal?
You need to find the correct port for ppp (the one that accepts AT commands).
Try with ttyU2 or ttyU3 and check if it accepts some simple AT
commands, like "ATZ"
http://marc.info/?l=openbsd-misc&m=128816834527997
Ciao
david
--
Sergio Roberto Charpinel Jr.
Loading...