[gnome-bluetooth] Hi again!!

Russel Winder russel at russel.org.uk
Tue Oct 28 07:28:24 CET 2008


Bastien,

On Tue, 2008-10-28 at 00:57 +0000, Bastien Nocera wrote:
> On Mon, 2008-10-27 at 06:32 +0000, Russel Winder wrote:
[ . . . ]
> > I have noted though that I am yet to be able to send an SMS from my
> > machine via a bonded phone.
> > 
> > I know the phone is bonded fine because the correct passkey interaction
> > happens when starting phone manager, it correctly reports the phone it
> > is bonded to, and looking under "Browse device..." the phone is there.
> > Moreover, I can browse the OBEX accessible filestore on the phone, so
> > Bluetooth is working as is the OBEX connection.
> 
> That just means Bluetooth works, nothing else.

Indeed.  I have been able to use low-level Bluetooth connection for a
while, but it is only recently that Phone Manager has actually been able
to connect.  I can't remember whether it was the Hardy upgrade (it have
been the Gutsy upgrade) but until then I had always got the red "can't
connect" message, which is why I was emphathizing with OP.  It was a
joyous day when I tried Phone Manager again and it connected.
 
> > However whenever I try and send an SMS, I can create a message, get the
> > phone number from the Evolution managed "phone book" but pressing send
> > simply closes the dialogue, no attempt is made to send an SMS.
> 
> How do you know it's not doing anything? You don't mention what type of
> mobile phone you're using, or give us any logs from the run of
> gnome-phone-manager.

I don't know its not doing anything, but it doesn't seem to cause any
change in state of the phone since the phone generally switches the
display on for all state changes -- however as the connection is always
up this may be a bad discriminator.  At the end of the day though it
fails to send an SMS since none has been received by the phone I sent
the SMS to.

The phone is a SonyEricsson P900.

Where are the logs stored?  There appear to be no entries involving the
string phone anywhere in /var/log and the manual page for
gnome-phone-manager says nothing helpful in this regard.

Instead of running things by clicking the entry in the menu, I ran it
from a command line with --debug and it seemed to be in an infinite loop
without pause.  I terminated it with a Ctrl+C.

|> gnome-phone-manager --debug
** Message: bdaddr 00:0A:D9:E8:EA:CD
** Message: New connection device is 00:0A:D9:E8:EA:CD (changed)
** Message: New connection device is 00:0A:D9:E8:EA:CD (not changed)
** Message: Connecting...
** Message: Status 1
** Message: Making serial port connection
conn_complete:	status 0x00
LOG: debug mask is 0x1
phone instance config:
model = AT
port = 00:0A:D9:E8:EA:CD
connection = bluetooth
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 2
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device 00:0A:D9:E8:EA:CD
Message sent: 0x00 / 0x0004
41 54 5a 0d                                     | ATZ             
write: [ATZ<cr>]
read : [ATZ<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000a
02 41 54 5a 0d 0d 0a 4f 4b 0d                   |  ATZ   OK       
Received message type 00
Message sent: 0x00 / 0x0005
41 54 45 31 0d                                  | ATE1            
write: [ATE1<cr>]
read : [ATE1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000b
02 41 54 45 31 0d 0d 0a 4f 4b 0d                |  ATE1   OK      
Received message type 00
Message sent: 0x00 / 0x000a
41 54 2b 43 4d 45 45 3d 31 0d                   | AT+CMEE=1       
write: [AT+CMEE=1<cr>]
read : [AT+CMEE=1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0010
02 41 54 2b 43 4d 45 45 3d 31 0d 0d 0a 4f 4b 0d |  AT+CMEE=1   OK 
Received message type 00
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 4d 0d                         | AT+CGMM         
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf>1021011-BVP900           <cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x002b
02 41 54 2b 43 47 4d 4d 0d 0d 0a 31 30 32 31 30 |  AT+CGMM   10210
31 31 2d 42 56 50 39 30 30 20 20 20 20 20 20 20 | 11-BVP900       
20 20 20 20 0d 0a 0d 0a 4f 4b 0d                |         OK      
Received message type 06
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 49 0d                         | AT+CGMI         
write: [AT+CGMI<cr>]
read : [AT+CGMI<cr><cr><lf>SONY ERICSSON<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x001f
02 41 54 2b 43 47 4d 49 0d 0d 0a 53 4f 4e 59 20 |  AT+CGMI   SONY 
45 52 49 43 53 53 4f 4e 0d 0a 0d 0a 4f 4b 0d    | ERICSSON    OK  
Received message type 06
Message sent: 0x61 / 0x0009
41 54 2b 43 53 43 53 3f 0d                      | AT+CSCS?        
write: [AT+CSCS?<cr>]
read : [AT+CSCS?<cr><cr><lf>+CSCS: "GSM"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x001f
02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCS?   +CSC
53 3a 20 22 47 53 4d 22 0d 0a 0d 0a 4f 4b 0d    | S: "GSM"    OK  
Received message type 61
Initialisation completed
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 4d 0d                         | AT+CGMM         
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf>1021011-BVP900           <cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x002b
02 41 54 2b 43 47 4d 4d 0d 0d 0a 31 30 32 31 30 |  AT+CGMM   10210
31 31 2d 42 56 50 39 30 30 20 20 20 20 20 20 20 | 11-BVP900       
20 20 20 20 0d 0a 0d 0a 4f 4b 0d                |         OK      
Received message type 06
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 49 0d                         | AT+CGMI         
write: [AT+CGMI<cr>]
read : [AT+CGMI<cr><cr><lf>SONY ERICSSON<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x001f
02 41 54 2b 43 47 4d 49 0d 0d 0a 53 4f 4e 59 20 |  AT+CGMI   SONY 
45 52 49 43 53 53 4f 4e 0d 0a 0d 0a 4f 4b 0d    | ERICSSON    OK  
Received message type 06
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 52 0d                         | AT+CGMR         
write: [AT+CGMR<cr>]
read : [AT+CGMR<cr><cr><lf>R3C006      CXC162022<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0027
02 41 54 2b 43 47 4d 52 0d 0d 0a 52 33 43 30 30 |  AT+CGMR   R3C00
36 20 20 20 20 20 20 43 58 43 31 36 32 30 32 32 | 6      CXC162022
0d 0a 0d 0a 4f 4b 0d                            |     OK          
Received message type 06
Message sent: 0x06 / 0x0008
41 54 2b 43 47 53 4e 0d                         | AT+CGSN         
write: [AT+CGSN<cr>]
read : [AT+CGSN<cr><cr><lf>351965003635413<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0021
02 41 54 2b 43 47 53 4e 0d 0d 0a 33 35 31 39 36 |  AT+CGSN   35196
35 30 30 33 36 33 35 34 31 33 0d 0a 0d 0a 4f 4b | 5003635413    OK
0d                                              |                 
Received message type 06
** Message: Model 1021011-BVP900            not supported natively
** Message: Using driver 'AT'
** Message: Status 2
** Message: Serial port connected
Message sent: 0x00 / 0x000d
41 54 2b 43 50 42 53 3d 22 4f 4e 22 0d          | AT+CPBS="ON"    
** Message: Connected to device on 00:0A:D9:E8:EA:CD
** Message: Exiting connect thread
write: [AT+CPBS="ON"<cr>]
read : [^@^Y+CPBS="ON"<cr><cr><lf>+CME ERROR: 25<cr><lf>]
Message received: 0x00 / 0x001f
05 00 19 2b 43 50 42 53 3d 22 4f 4e 22 0d 0d 0a |    +CPBS="ON"   
2b 43 4d 45 20 45 52 52 4f 52 3a 20 32 35 0d    | +CME ERROR: 25  
Received message type 00
Message sent: 0x61 / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?       
write: [AT+CSCS=?<cr>]
read : [AT+CSCS=?<cr><cr><lf>+CSCS: ("GSM","IRA","8859-1","ERICSSON","UTF-8","UCS2")<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x004b
02 41 54 2b 43 53 43 53 3d 3f 0d 0d 0a 2b 43 53 |  AT+CSCS=?   +CS
43 53 3a 20 28 22 47 53 4d 22 2c 22 49 52 41 22 | CS: ("GSM","IRA"
2c 22 38 38 35 39 2d 31 22 2c 22 45 52 49 43 53 | ,"8859-1","ERICS
53 4f 4e 22 2c 22 55 54 46 2d 38 22 2c 22 55 43 | SON","UTF-8","UC
53 32 22 29 0d 0a 0d 0a 4f 4b 0d                | S2")    OK      
Received message type 61
Message sent: 0x00 / 0x000f
41 54 2b 43 53 43 53 3d 22 55 43 53 32 22 0d    | AT+CSCS="UCS2"  
write: [AT+CSCS="UCS2"<cr>]
read : [AT+CSCS="UCS2"<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0015
02 41 54 2b 43 53 43 53 3d 22 55 43 53 32 22 0d |  AT+CSCS="UCS2" 
0d 0a 4f 4b 0d                                  |   OK            
Received message type 00
Message sent: 0x00 / 0x0013
41 54 2b 43 50 42 53 3d 22 30 30 34 66 30 30 34 | AT+CPBS="004f004
65 22 0d                                        | e"              
write: [AT+CPBS="004f004e"<cr>]
read : [^@^Y+CPBS="004f004e"<cr><cr><lf>+CME ERROR: 25<cr><lf>]
Message received: 0x00 / 0x0025
05 00 19 2b 43 50 42 53 3d 22 30 30 34 66 30 30 |    +CPBS="004f00
34 65 22 0d 0d 0a 2b 43 4d 45 20 45 52 52 4f 52 | 4e"   +CME ERROR
3a 20 32 35 0d                                  | : 25            
Received message type 00
** Message: Couldn't get our own phone number
Message sent: 0x29 / 0x000c
41 54 2b 43 4e 4d 49 3d 32 2c 31 0d             | AT+CNMI=2,1     
write: [AT+CNMI=2,1<cr>]
read : [AT+CNMI=2,1<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x29 / 0x0015
03 41 54 2b 43 4e 4d 49 3d 32 2c 31 0d 0d 0a 45 |  AT+CNMI=2,1   E
52 52 4f 52 0d                                  | RROR            
Received message type 29
Message sent: 0x29 / 0x000c
41 54 2b 43 4e 4d 49 3d 31 2c 31 0d             | AT+CNMI=1,1     
write: [AT+CNMI=1,1<cr>]
read : [AT+CNMI=1,1<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x29 / 0x0015
03 41 54 2b 43 4e 4d 49 3d 31 2c 31 0d 0d 0a 45 |  AT+CNMI=1,1   E
52 52 4f 52 0d                                  | RROR            
Received message type 29
Message sent: 0x29 / 0x000c
41 54 2b 43 4e 4d 49 3d 30 2c 31 0d             | AT+CNMI=0,1     
write: [AT+CNMI=0,1<cr>]
read : [AT+CNMI=0,1<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x29 / 0x0015
03 41 54 2b 43 4e 4d 49 3d 30 2c 31 0d 0d 0a 45 |  AT+CNMI=0,1   E
52 52 4f 52 0d                                  | RROR            
Received message type 29
** Message: driver or phone doesn't support sms notifications
Message sent: 0x3c / 0x0009
41 54 2b 43 52 43 3d 31 0d                      | AT+CRC=1        
write: [AT+CRC=1<cr>]
read : [AT+CRC=1<cr><cr><lf>OK<cr><lf>]
Message received: 0x3c / 0x000f
02 41 54 2b 43 52 43 3d 31 0d 0d 0a 4f 4b 0d    |  AT+CRC=1   OK  
Received message type 3c
Message sent: 0x3c / 0x000a
41 54 2b 43 4c 49 50 3d 31 0d                   | AT+CLIP=1       
write: [AT+CLIP=1<cr>]
read : [AT+CLIP=1<cr><cr><lf>OK<cr><lf>]
Message received: 0x3c / 0x0010
02 41 54 2b 43 4c 49 50 3d 31 0d 0d 0a 4f 4b 0d |  AT+CLIP=1   OK 
Received message type 3c
Message sent: 0x3c / 0x000a
41 54 2b 43 4c 43 43 3d 31 0d                   | AT+CLCC=1       
write: [AT+CLCC=1<cr>]
read : [AT+CLCC=1<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x3c / 0x0013
03 41 54 2b 43 4c 43 43 3d 31 0d 0d 0a 45 52 52 |  AT+CLCC=1   ERR
4f 52 0d                                        | OR              
Received message type 3c
Message sent: 0x58 / 0x0008
41 54 2b 43 50 41 53 0d                         | AT+CPAS         
write: [AT+CPAS<cr>]
read : [AT+CPAS<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x58 / 0x0011
03 41 54 2b 43 50 41 53 0d 0d 0a 45 52 52 4f 52 |  AT+CPAS   ERROR
0d                                              |                 
Received message type 58
Message sent: 0x09 / 0x0007
41 54 2b 43 42 43 0d                            | AT+CBC          
write: [AT+CBC<cr>]
read : [AT+CBC<cr><cr><lf>+CBC: 1,81<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x09 / 0x001b
02 41 54 2b 43 42 43 0d 0d 0a 2b 43 42 43 3a 20 |  AT+CBC   +CBC: 
31 2c 38 31 0d 0a 0d 0a 4f 4b 0d                | 1,81    OK      
Received message type 09
** Message: emitting battery
Message sent: 0x58 / 0x0008
41 54 2b 43 50 41 53 0d                         | AT+CPAS         
write: [AT+CPAS<cr>]
read : [AT+CPAS<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x58 / 0x0011
03 41 54 2b 43 50 41 53 0d 0d 0a 45 52 52 4f 52 |  AT+CPAS   ERROR
0d                                              |                 
Received message type 58
Message sent: 0x09 / 0x0007
41 54 2b 43 42 43 0d                            | AT+CBC          
write: [AT+CBC<cr>]
read : [AT+CBC<cr><cr><lf>+CBC: 1,81<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x09 / 0x001b
02 41 54 2b 43 42 43 0d 0d 0a 2b 43 42 43 3a 20 |  AT+CBC   +CBC: 
31 2c 38 31 0d 0a 0d 0a 4f 4b 0d                | 1,81    OK      
Received message type 09
Message sent: 0x58 / 0x0008
41 54 2b 43 50 41 53 0d                         | AT+CPAS         
write: [AT+CPAS<cr>]
read : [AT+CPAS<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x58 / 0x0011
03 41 54 2b 43 50 41 53 0d 0d 0a 45 52 52 4f 52 |  AT+CPAS   ERROR
0d                                              |                 
Received message type 58
Message sent: 0x09 / 0x0007
41 54 2b 43 42 43 0d                            | AT+CBC          
write: [AT+CBC<cr>]
read : [AT+CBC<cr><cr><lf>+CBC: 1,81<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x09 / 0x001b
02 41 54 2b 43 42 43 0d 0d 0a 2b 43 42 43 3a 20 |  AT+CBC   +CBC: 
31 2c 38 31 0d 0a 0d 0a 4f 4b 0d                | 1,81    OK      
Received message type 09
Message sent: 0x58 / 0x0008
41 54 2b 43 50 41 53 0d                         | AT+CPAS         
write: [AT+CPAS<cr>]
read : [AT+CPAS<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x58 / 0x0011
03 41 54 2b 43 50 41 53 0d 0d 0a 45 52 52 4f 52 |  AT+CPAS   ERROR
0d                                              |                 
Received message type 58
Message sent: 0x09 / 0x0007
41 54 2b 43 42 43 0d                            | AT+CBC          
write: [AT+CBC<cr>]
read : [AT+CBC<cr><cr><lf>+CBC: 1,81<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x09 / 0x001b
02 41 54 2b 43 42 43 0d 0d 0a 2b 43 42 43 3a 20 |  AT+CBC   +CBC: 
31 2c 38 31 0d 0a 0d 0a 4f 4b 0d                | 1,81    OK      
Received message type 09
Message sent: 0x58 / 0x0008
41 54 2b 43 50 41 53 0d                         | AT+CPAS         
write: [AT+CPAS<cr>]
read : [AT+CPAS<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x58 / 0x0011
03 41 54 2b 43 50 41 53 0d 0d 0a 45 52 52 4f 52 |  AT+CPAS   ERROR
0d                                              |                 
Received message type 58
Message sent: 0x09 / 0x0007
41 54 2b 43 42 43 0d                            | AT+CBC          
write: [AT+CBC<cr>]

and so on ad infinitum -- I guess, I haven't actually waited that long.
Of course, this might be correct behaviour even though the work ERROR
appears.  However, given that SMS sending doesn't work, I'd place a
small wager that the ERROR is significant.

> > (Is it correct that the Bluetooth connection is kept up all the time?
> > My phone flashes  as thoughn it is -- not a problem except that it means
> > I have to plug the phone into the mains !)
> 
> Yes. Otherwise we wouldn't be able to know when you receive an SMS.

I just tried the experiment and even though Phone Manager is running and
connection to the phone made and the phone recognizes the Bluetooth
connection is running, and Phone Manager has "pop-up window on new
message" selected, the arrival of the message on the phone doesn't
prompt any action from Phone Manager.

-- 
Russel.
====================================================
Dr Russel Winder                       t: +44 20 7585 2200
41 Buckmaster Road               m: +44 7770 465 077
London SW11 1EN, UK              w: http://www.russel.org.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.usefulinc.com/pipermail/gnome-bluetooth/attachments/20081028/81244e7c/attachment.pgp 


More information about the gnome-bluetooth mailing list