Bluetooth no serial connection with cell modem
I've:
A fresh installed slackware-14.0 system. A nokia cell phone with bluetooth activated. A usb bluetooth dongle. I use to setup a serial connection between internal cell modem and linux by bluetooth. But now with slackware-14.0 it's not work. I'm using xfce DE and blueman-manager. I can pair my cell with usb dongle... I can create a serial comunication and the system make a dev file /dev/rfcomm0. But if i try to comunicate with it, for example via minicom... something goes wrong. I'm not able to send any AT command, minicom terminal rest all black.... And also pppd scripts failed when I try to connect to internet. Where could be the matter... And how to looking for the problem? Hope you can help. Thanks in advance, sorry for my poor english... Bye! ;) |
Hello joenew,
did it work with an earlier version of Slackware? which one? Could you please post the errormessages when ppp fails? And could you please post your pppd scripts? Markus |
Hi Markush and thanks for your reply! :)
My default old notebook running Slackware-13.1 works fine, I can use my cell as modem (/dev/rfcomm0) connected via bluetooth. I've used same config in older slackware versions too: 12.2 12.1 and 11.0. Pppd and chat scripts are the same I've ever used in past times. Bluetooth usb dongle is the same as well as the phone used. Now I'm trying to make working bluetooth communication with my phone on Slackware-14.0, on a Acer Aspire One netbook... I think the first step is to create a well working serial connection with my cell through bluetooth. But It seems somethig goes wrong at this point yet... I've used to verify communication via bluetooth serial connection to the phone with minicom. And this try fails... As I said I obtain a black minicom screen. No initializing AT commands are shown as usual. So problems don't seem to be at pppd session time, I think comes first. Anyway, I'll post to you my pppd script and connection session log so you can verify. |
Hi,
did you change anything compared with earlier Slackwaresystems (for example at the firewall)? Coulden't you connect the cellphone via USB to the computer and try out if it then works? I mean, it isn't actually clear if the bluetooth or the pppd connection fails. As far as I understand. I don't have experience with Bluetooth on Linux, how can one check a bluetooth connection? Markus |
Aspire One Slackware-14.0 is fresh, I didn't set up any firewall or something similar that could interfer in connection...
Here we have my two ppp scripts: Code:
root@darkstar:~# cat /etc/ppp/peers/btwap Code:
root@darkstar:~# cat /etc/ppp/wap.chat I've activated bluetooth on AspireOne (slack-14.0) running bluetoothd. I've paired phone using blueman in Xfce. I've create a serial connection (COM1 port) between netbook and phone. It has created a new device calles as usual /dev/rfcomm0, as you can see above, my pppd script uses it. Ok... taht's all. Now let's go and look at pppd session: Code:
Nov 11 15:36:03 darkstar kernel: [ 389.582478] PPP generic driver version 2.4.2 But at the end PPP session failed. Anyway if I try to communicate throgh minicom, it failed... So there is somethig not working... Very strange.... I don't have a usb cable for that phone, I ever used it via bluetooth. But I can try with a mobile connection usb dongle... I have to modify some ppp script for that try... Thanks for your help by now. |
Ahhrrrg!!!
My wap script is wrong... That's the cause of failed connection! I've missed right APN "wap.tim.it" and not "ibox.tim.it".... Now I've tried... and it seems work fine... Sorry for my boring question! Also minicom seems now work good! There isn't any AT initializing automatic command, but if i try to type some AT command it reply with OK... So... problem seem solved.... PS. I'm using Xfce, I've not KDE intalled cause netbook HD is too small. I can use network manager or something similar to create a new PPP connection via bluetooth serial rfcomm0? |
Will you please issue the following commands to see what groups you are a member of:
Code:
cat /etc/group Code:
usermod -a –G dialout username To locate the possible COMM PORTS in Linux, copy and paste the following commands with the USB Modem plugged in: Code:
ls -l /dev/ttyS* Code:
crw-rw---- 1 root dialout 4, 64 2009-11-27 15:26 /dev/ttyS0 Code:
stty –F /dev/ttyS0 –a Code:
chmod a+rw /dev/ttyS0 Code:
gphoto2 --list-ports Code:
cat ABCDEFGHIJKLMNOPQRSTUVWXYZ >/dev/ttyS0 LINKING the COMM PORT: SYMBOLIC vs HARD To locate the possible COMM PORTS in Linux, copy and paste the following commands with the USB to RS-232C Adapter plugged in: Code:
ls -l /dev/ttyS* Mine was NOT, because it was a Sabrent SBT-USC1M USB to Serial Converter, and it was /dev/ACM0. I used wvdial and wvdial didn't detect /dev/ACM0 so I created a link from /dev/ttyS3 to /dev/ACM0 Code:
crw-rw---- 1 root dialout 4, 64 2009-11-27 15:26 /dev/ttyS0 First remove /dev/ttyS3. I'd suggest you try a Symbolic link first, then a Hard link if the Symbolic doesn't work. Code:
su - REMEMBER to REMOVE the Symbolic Link first. Running the command again: Code:
ls -l /dev/ttyS* Code:
crw-rw---- 1 root dialout 4, 64 2010-11-10 11:59 /dev/ttyS0 You can determine the Baud rate of the Port. Code:
man stty Code:
stty -F /dev/ttyS3 -a Code:
stty -F /dev/ttyS3 9600 Code:
echo ATZ > /dev/ttyS3 SETUP PAP or CHAP: You will need to set up the pap-secrets and/or chap-secrets file by running the following in a Terminal Window: ( /etc/ppp/pap-secrets OR /etc/ppp/chap-secrets ) Code:
su - (You can set up pap and then chap, if pap doesn't work.) Basically you just answer the questions that are presented. You can delete a configurations, and start over if you need to from the menu selections. For more information try: Code:
man pppd Minicom: While I haven't used minicom, I did find some documentation on how to set it up. http://openmaniak.com/minicom.php http://www.linux-tutorial.info/modul...m-minicom.html To configure minicom for modem use, the following command is used: Code:
minicom -o console Code:
AT ie, ATZ will RESET the MODEM Larry |
Thank you for your answer Larry!
Hope this topic is usefull for other users too. PS. I'm now looking for a way to setup connection by Blueman and Network-manager... Seems that NM isn't able to see bluetooth device connected via Blueman as DUN (dial up network). If I'll not solve, I'll open a new topic... |
All times are GMT -5. The time now is 06:24 AM. |