Date: Fri, 28 Oct 2005 04:06:56 +0300 From: Niki Denev <nike_d@cytexbg.com> To: Maksim Yevmenkin <maksim.yevmenkin@savvis.net> Cc: freebsd-bluetooth@freebsd.org, freebsd-current@freebsd.org Subject: Re: rfcomm problems Message-ID: <436179B0.5080206@cytexbg.com> In-Reply-To: <43614C53.7020207@savvis.net> References: <200510271844.52361.nike_d@cytexbg.com> <43610BBE.4070406@savvis.net> <200510272032.26480.nike_d@cytexbg.com> <43614C53.7020207@savvis.net>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Maksim, > please find attached patch. the patch will put stdin/stdout into 'raw' > mode when no tty was specified. it should fix the problem you were having. > > keep in mind that there is no escape sequence, so you have to kill > rfcomm_sppd(1) by hand to terminate the session. > > could you please try to use rfcomm_sppd(1) in both stdin/stdout mode and > in 'set device ...' ppp(8) mode. > I was also thinking about trying to put stdin/stdout in raw mode to see if it will work before i saw your email :) (because this was the only difference i found between using tty and stdin/stdout) With this patch i can issue properly commands to the gsm modem and get response with rfcomm_sppd in stdin/stdout mode. (it seems to not reset the terminal properly on exit, but i think you know that :) ) I have also properly connected to internet via gprs and with 'set device "!/usr/bin/rfcomm_sppd -a gsm -c1"' in ppp.conf > could you please post /etc/ppp/ppp.conf entry you where using with > rfcomm_pppd? > default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" set timeout 0 resolv readonly enable dns bt-gprs: set speed 115200 set phone *99\# set ifaddr 0 0 255.255.255.255 add default HISADDR bt-gprs2: set speed 115200 set device "!/usr/bin/rfcomm_sppd -a gsm -c1" set phone *99\# set ifaddr 0 0 255.255.255.255 add default HISADDR This is the whole ppp.conf I try to use the first label 'bt-gprs' for rfcomm_pppd. (i think i can use only one label, because as far as i remember ppp(8) ignores 'set device' in -direct mode, but i made two just to be sure) So maybe ppp in -direct mode is not setting properly the line in raw mode? > thanks, > max > Thanks, - --niki -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDYXmvHNAJ/fLbfrkRAhJdAJ4kOGNd7qT11B0Gpe3I9KvyNs4f0gCfWGKq NnH1PuHtQQZAqwrTe1gqc9Q= =tT0i -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?436179B0.5080206>