|
2009-12-19
, 15:42
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#2
|
rfcomm2 { bind no; device 00:1E:A4:4F:0E:34; channel 2; }
/dev/rfcomm2 connect "/usr/sbin/chat -s -v -f /etc/ppp/chat/gprs" nocrtscts defaultroute usepeerdns
ABORT 'BUSY' ABORT 'NO CARRIER' ABORT 'ERROR' '' AT OK AT+CGDCONT=1,"IP","uinternet" OK ATDT*99***1# CONNECT
echo nameserver $DNS1 > /tmp/resolv.conf.ppp0 echo nameserver $DNS2 >> /tmp/resolv.conf.ppp0
gconftool-2 -s -t string /system/osso/connectivity/IAP/orange/type DUMMY gconftool-2 -s -t string /system/osso/connectivity/IAP/orange/name 'orange'
rfcomm bind 2 dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:orange uint32:0 pppd call gprs
dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true killall pppd
The Following 12 Users Say Thank You to Matan For This Useful Post: | ||
|
2009-12-19
, 19:54
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#3
|
Only ppp_async is different from the modules by fanoush: http://talk.maemo.org/showpost.php?p=414731&postcount=5
|
2009-12-19
, 20:48
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#4
|
--- ppp_async.c.org 2009-12-19 17:45:28.000000000 +0200 +++ ppp_async.c 2009-12-19 14:32:23.000000000 +0200 @@ -346,22 +346,30 @@ * This can now be called from hard interrupt level as well * as soft interrupt level or mainline. */ -static void +static int ppp_asynctty_receive(struct tty_struct *tty, const unsigned char *buf, char *cflags, int count) { struct asyncppp *ap = ap_get(tty); unsigned long flags; - if (!ap) - return; + if (!ap) { + return 0; + } spin_lock_irqsave(&ap->recv_lock, flags); ppp_async_input(ap, buf, cflags, count); spin_unlock_irqrestore(&ap->recv_lock, flags); if (!skb_queue_empty(&ap->rqueue)) tasklet_schedule(&ap->tsk); ap_put(ap); tty_unthrottle(tty); + return count; } static void
|
2010-01-14
, 17:56
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#5
|
|
2010-01-16
, 13:35
|
Posts: 10 |
Thanked: 3 times |
Joined on Apr 2008
|
#6
|
|
2010-01-16
, 21:33
|
Posts: 38 |
Thanked: 5 times |
Joined on Feb 2008
|
#7
|
|
2010-01-19
, 12:50
|
Posts: 38 |
Thanked: 5 times |
Joined on Feb 2008
|
#8
|
Hi Matan,
Thanks for your tutorial. I followed the instructions but still can't connect. I added the section for /etc/bluetooth/rfcomm but the command "rfcomm bind 2" wouldn't work until I renamed the file /etc/bluetooth/rfcomm.conf.
Also, on my N900, /etc/ppp/ip-up.d is an existing directory. I renamed the directory and created a text file with the commands and chmod. Is that the correct thing to do?
Finally, when I try to connect I get the following error:
Nokia-N900-42-11:/etc/bluetooth# pppd call gprs
pppd: The remote system is required to authenticate itself
pppd: but I couldn't find any suitable secret (password) for it to use to do so.
Searching on the web I found hints to add "noauth" to the script, so I added it to /etc/ppp/peers/gprs. Doing this got rid of the error message but I'm still unable to connect. Can you help me? Thanks.
-Pete
|
2010-01-19
, 12:59
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#9
|
The Following User Says Thank You to Matan For This Useful Post: | ||
|
2010-01-20
, 04:16
|
Posts: 38 |
Thanked: 5 times |
Joined on Feb 2008
|
#10
|
#
# RFCOMM configuration file.
#
#rfcomm0 {
# # Automatically bind the device at startup
# bind no;
#
# # Bluetooth address of the device
# device 11:22:33:44:55:66;
#
# # RFCOMM channel for the connection
# channel 1;
#
# # Description of the connection
# comment "Example Bluetooth device";
#}
rfcomm2 {
bind no;
device 00:21:06:28:91:33;
channel 2;
}
(Note to moderators: please don't merge this thread with irrelevant threads).
Last edited by Matan; 2009-12-19 at 15:49.