gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Nokia Premicell


From: Tristan Drinkwater
Subject: RE: Nokia Premicell
Date: Mon, 5 Dec 2011 09:16:00 +0000

Morning Pawel

I've done as suggested and replaced the entire function at the bottom of 
atnok.c with the code you supplied. Sadly, I still can't get it to work. Below 
is the command I'm running and it's debug output.

If there is anything else I can do to provide more information please ask.

Thanks you for your assistance and time.

Tristan


echo "GNOKII" | gnokii --sendsms 07920459xxx --smsc 07786855xxx


GNOKII Version 0.6.30
Couldn't read /root/.config/gnokii/config config file.
Couldn't read /etc/xdg/gnokii/config config file.
Couldn't read /root/.gnokiirc config file.
LOG: debug mask is 0x1
Config read from file /etc/gnokiirc.
Cannot open logfile /root/.cache/gnokii/gnokii-errors
WARNING: cannot open logfile, logs will be directed to stderr
phone instance config:
model = AT
port = /dev/ttyS0
connection = serial
initlength = default
serial_baudrate = 9600
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyS0
Serial device: setting RTS to high and DTR to high
Message sent: 0x00 / 0x0004
41 54 5a 0d                                     | ATZ
write: [ATZ<cr>]
read : [^ZATZ<cr><cr><lf>> ]
Message received: 0x00 / 0x0009
01 1a 41 54 5a 0d 0d 0a 3e                      |   ATZ   >
Received message type 00
Message sent: 0x00 / 0x0005
41 54 45 31 0d                                  | ATE1
write: [ATE1<cr>]
read : [ERROR<cr><lf>]
Message received: 0x00 / 0x0007
03 45 52 52 4f 52 0d                            |  ERROR
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 : [ATE1<cr>AT+CMEE=1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0015
02 41 54 45 31 0d 41 54 2b 43 4d 45 45 3d 31 0d |  ATE1 AT+CMEE=1
0d 0a 4f 4b 0d                                  |   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>: Nokia Cellular Data Adapter for GSM and PCN/DCS 
1800 <cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0048
02 41 54 2b 47 4d 4d 0d 0d 0a 3a 20 4e 6f 6b 69 |  AT+GMM   : Noki
61 20 43 65 6c 6c 75 6c 61 72 20 44 61 74 61 20 | a Cellular Data
41 64 61 70 74 65 72 20 66 6f 72 20 47 53 4d 20 | Adapter for GSM
61 6e 64 20 50 43 4e 2f 44 43 53 20 31 38 30 30 | and PCN/DCS 1800
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>Nokia Mobile Phones<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0025
02 41 54 2b 43 47 4d 49 0d 0d 0a 4e 6f 6b 69 61 |  AT+CGMI   Nokia
20 4d 6f 62 69 6c 65 20 50 68 6f 6e 65 73 0d 0a |  Mobile Phones
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: "PCCP437"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x63 / 0x0023
02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCS?   +CSC
53 3a 20 22 50 43 43 50 34 33 37 22 0d 0a 0d 0a | S: "PCCP437"
4f 4b 0d                                        | OK
Received message type 63
Initialisation completed
=====> ENTER gn_sms_send()
General Data Coding
Default Alphabet
        encoded size: 6
        rawsms length: 6
        rawsms user data length: 6
dcs: 0x00
Length: 0x06
user_data_length: 0x06
ValidityIndicator: 2
user_data: 47E773994C02
Input is 6 characters long
SMS is 6 octets long
Number of extended alphabet chars: 0
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
Sending initial sequence
Message sent: 0x66 / 0x000b
41 54 2b 43 4d 47 53 3d 32 30 0d                | AT+CMGS=20
write: [AT+CMGS=20<cr>]
read : [AT+CMGS=20<cr><cr><lf>> ]
Message received: 0x66 / 0x000f
01 41 54 2b 43 4d 47 53 3d 32 30 0d 0d 0a 3e    |  AT+CMGS=20   >
Received message type 66
Got response: No error.
Sending frame: 07817087865540F411000B817029409555F20000AA0647E773994C02
Message sent: 0x21 / 0x0039
30 37 38 31 37 30 38 37 38 36 35 35 34 30 46 34 | 07817087865540F4
31 31 30 30 30 42 38 31 37 30 32 39 34 30 39 35 | 11000B8170294095
35 35 46 32 30 30 30 30 41 41 30 36 34 37 45 37 | 55F20000AA0647E7
37 33 39 39 34 43 30 32 1a                      | 73994C02
write: [07817087865540F411000B817029409555F20000AA0647E773994C02^Z]
read : 
[07817087865540F411000B817029409555F20000AA0647E773994C02^Z<cr><lf>ERROR<cr><lf>]
Message received: 0x21 / 0x0042
03 30 37 38 31 37 30 38 37 38 36 35 35 34 30 46 |  07817087865540F
34 31 31 30 30 30 42 38 31 37 30 32 39 34 30 39 | 411000B817029409
35 35 35 46 32 30 30 30 30 41 41 30 36 34 37 45 | 555F20000AA0647E
37 37 33 39 39 34 43 30 32 1a 0d 0a 45 52 52 4f | 773994C02   ERRO
52 0d                                           | R
Received message type 21
SMS Send failed (Unknown error - well better than nothing!!)
Serial device: closing device

________________________________

Micro Peripherals Limited.
Registered Office: Shorten Brook Way, Altham Business Park, Altham,
Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790
Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 
4387 91

DISCLAIMER:
This e-mail and attachments are confidential and are intended solely for the 
use of the individual to
whom it is addressed. Any views or opinions presented are solely those of the 
author and do not
necessarily represent those of Micro Peripherals Limited.
If you are not the intended recipient, be advised that you have received this 
Email in error and that
any use, dissemination, forwarding, printing, or copying of this Email is 
strictly prohibited. If this
transmission is received in error please notify the sender immediately and 
delete this message from
your E-mail system.
All electronic transmissions to and from Micro Peripherals Ltd are recorded and 
may be monitored.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]