www.kriyayoga.com - Cyberspace Ashram - Solutions of Love June 14 - 2008 ************************************************************************ Below scripts, configuration or connection dialogs are results of successful working G3 connection between my Acer Ferrari 5000 via bluetooth to my Nokia N95 8G into the Smart cellphone GPRS / Internet network using openSuSE 10.2 Linux. Howto setup and configure your BT / Internet connection and error solving may be found in my Blog: http://www.kriyayoga.com/love_blog/index.php/ category Linux admin: http://www.kriyayoga.com/love_blog/topic.php/4 Use at your own risk. God bless hans Wvdial.conf used for successful connection: =================================== [Dialer gprs] Modem = /dev/rfcomm0 Baud = 460800 Dial Command = ATDT Init1 = ATE1 Init2 = AT+CGDCONT=1,"IP","internet","",0,0 FlowControl = CRTSCTS Init3 = ATM0 Phone = *99***1# Username = (empty) Password = (empty) Stupid Mode = 1 RFCOMM configuration file rfcomm.conf =============================== rfcomm0 { bind yes; device 00:1E:3A:7A:AE:66; channel 2; comment "Hansn95"; } HCI daemon configuration file /etc/bluetooth/hcid.conf ========================================== # HCId options options { # Automatically initialize new devices autoinit yes; # Security Manager mode # none - Security manager disabled # auto - Use local PIN for incoming connections # user - Always ask user for a PIN # security user; # Pairing mode # none - Pairing disabled # multi - Allow pairing with already paired devices # once - Pair once and deny successive attempts pairing multi; passkey "0000"; # Default PIN code for incoming connections } # Default settings for HCI devices device { # Local device name # %d - device id # %h - host name name "BlueZ %h (%d)"; # Local device class # e.g. # 0xsss100 = Computer # 0xsss104 = Computer Desktop # 0xsss108 = Computer Server # 0xsss10c = Computer Laptop # The 'sss' above defines the service-class (not quite, only the # first 11 bits, the next 11 define the device-class, than 2 format bits.) # See https://www.bluetooth.org/foundry/assignnumb/document/baseband # for more information. # 0x100bbb stands for "Object Transfer (v-Inbox, v-Folder, ...)" # 0x020bbb stands for "Networking (LAN, Ad hoc, ...)" class 0x7e010c; # Default packet type #pkt_type DH1,DM1,HV1; # Inquiry and Page scan # valid parameters: enable | disable iscan enable; pscan enable; # Default link mode # none - no specific policy # accept - always accept incoming connections # master - become master on incoming connections, # deny role switch on outgoing connections lm accept; # Default link policy # none - no specific policy # rswitch - allow role switch # hold - allow hold mode # sniff - allow sniff mode # park - allow park mode lp rswitch,hold,sniff,park; } Dial up modem dialog during successful connection ======================================== > wvdial gprs --> WvDial: Internet dialer version 1.54.0 --> Cannot get information for serial port. --> Initializing modem. --> Sending: ATE1 ATE1 OK --> Sending: AT+CGDCONT=1,"IP","internet","",0,0 AT+CGDCONT=1,"IP","internet","",0,0 OK --> Sending: ATM0 ATM0 OK --> Modem initialized. --> Idle Seconds = 300, disabling automatic reconnect. --> Sending: ATDT*99***1# --> Waiting for carrier. ATDT*99***1# CONNECT ~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~ --> Carrier detected. Starting PPP immediately. --> Starting pppd at Thu Jun 12 07:03:45 2008 --> pid of pppd: 17289 --> Using interface ppp0 --> pppd: �+ --> pppd: �+ --> pppd: �+ --> pppd: �+ --> local IP address 10.157.197.153 --> pppd: �+ --> remote IP address 10.6.6.6 --> pppd: �+ --> primary DNS address 203.84.191.216 --> pppd: �+ --> secondary DNS address 121.1.3.250 --> pppd: �+ --> Script /etc/ppp/ip-up run successful --> Default route Ok. --> warning, can't find address for `www.suse.de` --> warning, address lookup does not work --> Nameserver (DNS) failure, the connection may not work. --> Connected... Press Ctrl-C to disconnect --> pppd: �+ sdptool browse output - for my HW addr ================================ >sdptool browse 00:1E:3A:7A:AE:66 Browsing 00:1E:3A:7A:AE:66 ... Service Name: AVRCP Target Service Description: Audio Video Remote Control Service Provider: Symbian Software Ltd. Service RecHandle: 0x10000 Service Class ID List: "AV Remote Target" (0x110c) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 23 "AVCTP" (0x0017) uint16: 0x100 Profile Descriptor List: "AV Remote" (0x110e) Version: 0x0100 Service Name: Audio Source Service RecHandle: 0x10013 Service Class ID List: "Audio Source" (0x110a) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 25 "AVDTP" (0x0019) uint16: 0x100 Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Advanced Audio" (0x110d) Version: 0x0100 Service Name: Hands-Free Audio Gateway Service RecHandle: 0x10014 Service Class ID List: "Handfree Audio Gateway" (0x111f) "Generic Audio" (0x1203) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 1 Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Handsfree" (0x111e) Version: 0x0105 Service Name: Headset Audio Gateway Wed Jun 11 08:09:20 - root@gott:~ > rfcomm connect /dev/rfcomm0 00:1E:3A:7A:AE:66 Can't connect RFCOMM socket: Host is down Wed Jun 11 08:10:42 - root@gott:~ Service RecHandle: 0x10015 Service Class ID List: "Headset Audio Gateway" (0x1112) "Generic Audio" (0x1203) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 2 Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Headset" (0x1108) Version: 0x0100 Service Name: SyncMLClient Service RecHandle: 0x10017 Service Class ID List: UUID 128: 00000002-0000-1000-8000-0002ee000002 Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 10 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "" (0x00000002-0000-1000-8000-0002ee000002) Version: 0x0100 Service Name: OBEX File Transfer Service RecHandle: 0x10018 Service Class ID List: "OBEX File Transfer" (0x1106) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 11 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "OBEX File Transfer" (0x1106) Version: 0x0100 Service Name: Nokia OBEX PC Suite Services Service RecHandle: 0x10019 Service Class ID List: UUID 128: 00005005-0000-1000-8000-0002ee000001 Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 12 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "" (0x00005005-0000-1000-8000-0002ee000001) Version: 0x0100 Service Name: SyncML DM Client Service RecHandle: 0x1001a Service Class ID List: UUID 128: 00000004-0000-1000-8000-0002ee000002 Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 13 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "" (0x00000004-0000-1000-8000-0002ee000002) Version: 0x0100 Service Name: Nokia SyncML Server Service RecHandle: 0x1001c Service Class ID List: UUID 128: 00005601-0000-1000-8000-0002ee000001 Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 14 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "" (0x00005601-0000-1000-8000-0002ee000001) Version: 0x0100 Service Name: OBEX Object Push Service RecHandle: 0x1001d Service Class ID List: "OBEX Object Push" (0x1105) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 9 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "OBEX Object Push" (0x1105) Version: 0x0100 Service RecHandle: 0x1001e Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 3 ================ >>> here below is what we need !! Service Name: Dial-Up Networking Service RecHandle: 0x1001f Service Class ID List: "Dialup Networking" (0x1103) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 4 Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Dialup Networking" (0x1103) Version: 0x0100 ================ Service Name: Imaging Service RecHandle: 0x10020 Service Class ID List: "Imaging Responder" (0x111b) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 15 "OBEX" (0x0008) Language Base Attr List: code_ISO639: 0x454e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Imaging" (0x111a) Version: 0x0100