Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms'

helpFractal <[email protected]>
Newsgroups gmane.linux.drivers.gnokii
Message-ID <[email protected]>
Thanks for your response, I think that we are getting there.


Daniele Forsi-2 wrote:
> 
> text mode is different because the SMSC number and other parameters
> are set before using AT+CMGS and in some cases the SMSC number set in
> phone menus is not used by the AT interpreter, use AT+CSCA? to see it
> 

when I use AT+CSCA? (via screen) I get '+CSCA: "+44795887890"' which, after
a google search, is the correct smsc for my sim card. Gnokii also gets this
number after the AT+CSCA?


Daniele Forsi-2 wrote:
> 
> 
> some phones have troubles with the SMSC number; you can check if it's
> your case by changing 0 to 1 in common/phones/atgen.c at line 3242
> 	drvinst->no_smsc = 0;
> when set to 1 the phone should use the same number returned by AT+CSCA?
> 
> 

I used mac ports to install gnokii, after modifying the Portfile to
--enable-smsd, so I had to create a patchfile to change this from a 0 to 1,
uninstall and re-install. I think that I did it right, well it is doing
something different....

imac:~ fractal$ echo "This is a test message" | sudo gnokii --sendsms
+447721234567
GNOKII Version 0.6.31
LOG: debug mask is 0x1
LOG: xdebug mask is 0x1
Config read from file /Users/fractal/.gnokiirc.
Lockfile /var/lock/LCK..cu.usbmodem431 is stale. Overriding it...
phone instance config:
model = AT
port = /dev/cu.usbmodem431
connection = serial
initlength = default
serial_baudrate = 9600
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 120
Initializing AT capable mobile phone ...
Serial device: opening device /dev/cu.usbmodem431
Serial device: setting RTS to high and DTR to high
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 / 0x0007
41 54 2b 47 4d 4d 0d                            | AT+GMM          
write: [AT+GMM<cr>]
read : [AT+GMM<cr><cr><lf>NEXPERIA SY.SOL 5209<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0025
02 41 54 2b 47 4d 4d 0d 0d 0a 4e 45 58 50 45 52 |  AT+GMM   NEXPER
49 41 20 53 59 2e 53 4f 4c 20 35 32 30 39 0d 0a | IA SY.SOL 5209  
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>NXP<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0015
02 41 54 2b 43 47 4d 49 0d 0d 0a 4e 58 50 0d 0a |  AT+CGMI   NXP  
0d 0a 4f 4b 0d                                  |   OK            
Received message type 06
Message sent: 0x63 / 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: 0x63 / 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 63
Initialisation completed
Message sent: 0x23 / 0x0009
41 54 2b 43 53 43 41 3f 0d                      | AT+CSCA?        
write: [AT+CSCA?<cr>]
read : [AT+CSCA?<cr><cr><lf>+CSCA:
"+447958879890",145<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x23 / 0x002d
02 41 54 2b 43 53 43 41 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCA?   +CSC
41 3a 20 22 2b 34 34 37 39 35 38 38 37 39 38 39 | A: "+44795887989
30 22 2c 31 34 35 0d 0a 0d 0a 4f 4b 0d          | 0",145    OK    
Received message type 23
=====> ENTER gn_sms_send()
enc_chars: 22
ext_chars: 0
total: 20
size of the input string: 22 bytes
number of characters in the input string: 22 chars
=====> ENTER sms_send_single()
General Data Coding
Default Alphabet
	size: 20
	offset: 0
	encoded size: 20
	rawsms length: 22
	rawsms user data length: 20
dcs: 0x00
Length: 0x16
user_data_length: 0x14
ValidityIndicator: 2
user_data: 54747A0E4ACF416110BD3CA783DAE5F93C7C2E03
Input is 22 bytes long
SMS is 20 octets long
Sending
Message sent: 0x65 / 0x000a
41 54 2b 43 4d 47 46 3d 30 0d                   | AT+CMGF=0       
write: [AT+CMGF=0<cr>]
read : [AT+CMGF=0<cr><cr><lf>OK<cr><lf>]
Message received: 0x65 / 0x0010
02 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a 4f 4b 0d |  AT+CMGF=0   OK 
Received message type 65
PDU mode set
imac:~ fractal$ 

... but now gnokii quits after setting PDU mode and doesn't even attempt to
send the sms?

Any ideas?

-- 
View this message in context: http://old.nabble.com/gnokii-smsd-not-giving-me-a-clue-as-to-why-it-is-not-sending-and-receiving-sms%27-tp34856997p34864564.html
Sent from the gnokii-users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.