Tristan Drinkwater | 2 Dec 11:58
Favicon

Nokia Premicell

Hey all,

 

I have a nokia premicell (tfk-2) that I have connected via serial.

 

I have gnokii 6.3 installed and working and although I can get a connection to the device I’m unable to send or get sms.

 

--identify displays the below;

 

 

IMEI         : 449xxxxxxxxxxxxx

Manufacturer : Nokia Mobile Phones

No flags section in the config file.

Model        : : Nokia Cellular Data Adapter f

Product name : : Nokia Cellular Data Adapter f

Revision     : 0630216

 

If I try to send a sms I get this…

 

echo "gnokii test" | gnokii --sendsms +44792045xxxx --smsc +447920xxxxx

 

 

 

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 = 20

rfcomm_channel = 0

sm_retry = 1

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 : [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>^S^Q^C^C: Nokia Cellular Data Adapter for GSM and PCN/DCS 1800 <cr><lf><cr><lf>OK<cr><lf>]

Message received: 0x06 / 0x004c

02 41 54 2b 47 4d 4d 0d 0d 0a 13 11 03 03 3a 20 |  AT+GMM       :

4e 6f 6b 69 61 20 43 65 6c 6c 75 6c 61 72 20 44 | Nokia Cellular D

61 74 61 20 41 64 61 70 74 65 72 20 66 6f 72 20 | ata Adapter for

47 53 4d 20 61 6e 64 20 50 43 4e 2f 44 43 53 20 | GSM and PCN/DCS

31 38 30 30 20 0d 0a 0d 0a 4f 4b 0d             | 1800     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: "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

=====> ENTER gn_sms_send()

General Data Coding

Default Alphabet

        encoded size: 10

        rawsms length: 11

        rawsms user data length: 10

dcs: 0x00

Length: 0x0b

user_data_length: 0x0a

ValidityIndicator: 2

user_data: 67F77B9D4E83E8E5391D

Input is 11 characters long

SMS is 10 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 34 0d                | AT+CMGS=24

write: [AT+CMGS=24<cr>]

read : [AT+CMGS=24<cr><cr><lf>> ]

Message received: 0x66 / 0x000f

01 41 54 2b 43 4d 47 53 3d 32 34 0d 0d 0a 3e    |  AT+CMGS=24   >

Received message type 66

Got response: No error.

Sending frame: 079144970254592511000C914497025459250000AA0B67F77B9D4E83E8E5391D

Message sent: 0x21 / 0x0041

30 37 39 31 34 34 39 37 30 32 35 34 35 39 32 35 | 0791449702545925

31 31 30 30 30 43 39 31 34 34 39 37 30 32 35 34 | 11000C9144970254

35 39 32 35 30 30 30 30 41 41 30 42 36 37 46 37 | 59250000AA0B67F7

37 42 39 44 34 45 38 33 45 38 45 35 33 39 31 44 | 7B9D4E83E8E5391D

1a                                              |

write: [079144970254592511000C914497025459250000AA0B67F77B9D4E83E8E5391D^Z]

read : [079144970254592511000C914497025459250000AA0B67F77B9D4E83E8E5391D^Z<cr><lf>ERROR<cr><lf>]

Message received: 0x21 / 0x004a

03 30 37 39 31 34 34 39 37 30 32 35 34 35 39 32 |  079144970254592

35 31 31 30 30 30 43 39 31 34 34 39 37 30 32 35 | 511000C914497025

34 35 39 32 35 30 30 30 30 41 41 30 42 36 37 46 | 459250000AA0B67F

37 37 42 39 44 34 45 38 33 45 38 45 35 33 39 31 | 77B9D4E83E8E5391

44 1a 0d 0a 45 52 52 4f 52 0d                   | D   ERROR

Received message type 21

SMS Send failed (Unknown error - well better than nothing!!)

Serial device: closing device

 

 

As you can see it has failed with an unknown error.

 

Trying to get an sms is displayed as below;

 

 

gnokii --getsms SM 1 2

 

 

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 = 20

rfcomm_channel = 0

sm_retry = 1

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 : [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>: 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: "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

Getting message #1 from SM

Message sent: 0x00 / 0x000d

41 54 2b 43 50 4d 53 3d 22 53 4d 22 0d          | AT+CPMS="SM"

write: [AT+CPMS="SM"<cr>]

read : [AT+CPMS="SM"<cr><cr><lf>+CPMS: 4,15,4,15,4,15<cr><lf><cr><lf>OK<cr><lf>]

Message received: 0x00 / 0x002c

02 41 54 2b 43 50 4d 53 3d 22 53 4d 22 0d 0d 0a |  AT+CPMS="SM"

2b 43 50 4d 53 3a 20 34 2c 31 35 2c 34 2c 31 35 | +CPMS: 4,15,4,15

2c 34 2c 31 35 0d 0a 0d 0a 4f 4b 0d             | ,4,15    OK

Received message type 00

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

Message sent: 0x18 / 0x000a

41 54 2b 43 4d 47 52 3d 31 0d                   | AT+CMGR=1

write: [AT+CMGR=1<cr>]

read : [AT+CMGR=1<cr><cr><lf>+CMGR: 1,23<cr><lf>040C9144970254592500001121100265450004D4F29C0E<cr><lf><cr><lf>OK<cr><lf>]

Message received: 0x18 / 0x004f

02 41 54 2b 43 4d 47 52 3d 31 0d 0d 0a 2b 43 4d |  AT+CMGR=1   +CM

47 52 3a 20 31 2c 32 33 0d 0a 30 34 30 43 39 31 | GR: 1,23  040C91

34 34 39 37 30 32 35 34 35 39 32 35 30 30 30 30 | 4497025459250000

31 31 32 31 31 30 30 32 36 35 34 35 30 30 30 34 | 1121100265450004

44 34 46 32 39 43 30 45 0d 0a 0d 0a 4f 4b 0d    | D4F29C0E    OK

Received message type 18

040C9144970254592500001121100265450004D4F29C0E

SMS-STATUS-REPORT found

Invalid remote number length (47)

Getting SMS failed (location 1 from SM memory)! (Problem occurred internal to model specific code.)

Getting message #2 from SM

PDU mode set

Message sent: 0x18 / 0x000a

41 54 2b 43 4d 47 52 3d 32 0d                   | AT+CMGR=2

write: [AT+CMGR=2<cr>]

read : [AT+CMGR=2<cr><cr><lf>+CMGR: 1,25<cr><lf>040C9144970254592500001121101210120006D4F29C0E9201<cr><lf><cr><lf>OK<cr><lf>]

Message received: 0x18 / 0x0053

02 41 54 2b 43 4d 47 52 3d 32 0d 0d 0a 2b 43 4d |  AT+CMGR=2   +CM

47 52 3a 20 31 2c 32 35 0d 0a 30 34 30 43 39 31 | GR: 1,25  040C91

34 34 39 37 30 32 35 34 35 39 32 35 30 30 30 30 | 4497025459250000

31 31 32 31 31 30 31 32 31 30 31 32 30 30 30 36 | 1121101210120006

44 34 46 32 39 43 30 45 39 32 30 31 0d 0a 0d 0a | D4F29C0E9201

4f 4b 0d                                        | OK

Received message type 18

040C9144970254592500001121101210120006D4F29C0E9201

SMS-STATUS-REPORT found

Invalid remote number length (47)

Getting SMS failed (location 2 from SM memory)! (Problem occurred internal to model specific code.)

Serial device: closing device

 

 

 

 

Part of me thinks that this is driver related as it seems to work but have limited functionality, however I’m no expert so thought I’d throw this out there.

 

Any ideas on how I can get both sendsms and getsms to work on this device?

 

Thanks in advance

 

Tristan



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.
_______________________________________________
gnokii-users mailing list
gnokii-users <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Daniele Forsi | 2 Dec 14:25
Picon

Re: Nokia Premicell

2011/12/2 Tristan Drinkwater:

> echo "gnokii test" | gnokii --sendsms +44792045xxxx --smsc +447920xxxxx

the debug output doesn't seem to come from that command line because
it shows the same number for destination and for smsc, can you try
again?

I checked using the sms_inbox feature of the fake driver, to test
yourself see "Advanced usage" in
http://wiki.gnokii.org/index.php/Fake_driver

> Invalid remote number length (47)

there is code in atnok.c to avoid that but it's checking for a more
sane "0301" rather than "Nokia Cellular Data Adapter for GSM and
PCN/DCS 1800 " (with a trailing space!), can you try the attached
patch? If it doesn't work check if I copied the right string.

-- 
Daniele Forsi
diff --git a/common/phones/atnok.c b/common/phones/atnok.c
index 48e98a3..5fd5f37 100644
--- a/common/phones/atnok.c
+++ b/common/phones/atnok.c
@@ -143,7 +143,7 @@ void at_nokia_init(char* foundmodel, char* setupmodel, struct gn_statemachine *s

 	/* premicell does not want sms centers in PDU packets (send & */
 	/* receive) */
-	if (!strncasecmp("0301", foundmodel, 4))
+	if (!strncasecmp("0301", foundmodel, 4) || !strncasecmp("Nokia Cellular Data Adapter for GSM and
PCN/DCS 1800 ", foundmodel, 53))
 		AT_DRVINST(state)->no_smsc = 1;

 	/* Nokias support just mode 1 */
_______________________________________________
gnokii-users mailing list
gnokii-users <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Tristan Drinkwater | 2 Dec 15:11
Favicon

RE: Nokia Premicell

Thanks for the reply,

My mistake in typing the command I sent, it was the correct output.

I'm happy to try the update, how do I install it?

Thanks.

Tristan

-----Original Message-----
From: gnokii-users-bounces+tristand=micro-p.com <at> nongnu.org
[mailto:gnokii-users-bounces+tristand=micro-p.com <at> nongnu.org] On Behalf Of Daniele Forsi
Sent: 02 December 2011 13:25
To: Discussion forum for gnokii users.
Subject: Re: Nokia Premicell

2011/12/2 Tristan Drinkwater:

> echo "gnokii test" | gnokii --sendsms +44792045xxxx --smsc +447920xxxxx

the debug output doesn't seem to come from that command line because
it shows the same number for destination and for smsc, can you try
again?

I checked using the sms_inbox feature of the fake driver, to test
yourself see "Advanced usage" in
http://wiki.gnokii.org/index.php/Fake_driver

> Invalid remote number length (47)

there is code in atnok.c to avoid that but it's checking for a more
sane "0301" rather than "Nokia Cellular Data Adapter for GSM and
PCN/DCS 1800 " (with a trailing space!), can you try the attached
patch? If it doesn't work check if I copied the right string.

--
Daniele Forsi

________________________________

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.
Tristan Drinkwater | 2 Dec 16:07
Favicon

RE: Nokia Premicell

Hi,

 

Not sure if I've done it right, but I've edited atnoki.c so it looks like this... (note the extra blank space before Nokia string)

 

 

void at_nokia_init(char* foundmodel, char* setupmodel, struct gn_statemachine *state)

{

        /* block writing of phone memory on nokia phones other than */

        /* 8210. if you write to the phonebook of a eg 7110 all extended */

        /* information will be lost. */

        if (strncasecmp("8210", foundmodel, 4))

                writephonebook = at_insert_send_function(GN_OP_WritePhonebook, WritePhonebook, state);

 

        /* premicell does not want sms centers in PDU packets (send & */

        /* receive) */

        if (!strncasecmp("0301", foundmodel, 4))

        if (!strncasecmp("0301", foundmodel, 4) || !strncasecmp(" Nokia Cellular Data Adapter for GSM and PCN/DCS 1800 ", foundmodel, 53))

                AT_DRVINST(state)->no_smsc = 1;

 

        /* Nokias support just mode 1 */

        AT_DRVINST(state)->cnmi_mode = 1;

 

        at_insert_recv_function(GN_OP_AT_IncomingSMS, ReplyIncomingSMS, state);

}

 

I've then saved the file, and rerun ./configure --prefix=/usr and the gmake and gmake install

 

I'm still getting the same error however.

 

echo "text" | 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 = 20

rfcomm_channel = 0

sm_retry = 1

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 : [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>^S^Q^C^C: Nokia Cellular Data Adapter for GSM and PCN/DCS 1800 <cr><lf><cr><lf>OK<cr><lf>]

Message received: 0x06 / 0x004c

02 41 54 2b 47 4d 4d 0d 0d 0a 13 11 03 03 3a 20 |  AT+GMM       :

4e 6f 6b 69 61 20 43 65 6c 6c 75 6c 61 72 20 44 | Nokia Cellular D

61 74 61 20 41 64 61 70 74 65 72 20 66 6f 72 20 | ata Adapter for

47 53 4d 20 61 6e 64 20 50 43 4e 2f 44 43 53 20 | GSM and PCN/DCS

31 38 30 30 20 0d 0a 0d 0a 4f 4b 0d             | 1800     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: 4

      rawsms length: 4

      rawsms user data length: 4

dcs: 0x00

Length: 0x04

user_data_length: 0x04

ValidityIndicator: 2

user_data: F4329E0E

Input is 4 characters long

SMS is 4 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 31 38 0d                | AT+CMGS=18

write: [AT+CMGS=18<cr>]

read : [AT+CMGS=18<cr><cr><lf>> ]

Message received: 0x66 / 0x000f

01 41 54 2b 43 4d 47 53 3d 31 38 0d 0d 0a 3e    |  AT+CMGS=18   >

Received message type 66

Got response: No error.

Sending frame: 07817087865540F411000B817029409555F20000AA04F4329E0E

Message sent: 0x21 / 0x0035

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 34 46 34 33 32 | 55F20000AA04F432

39 45 30 45 1a                                  | 9E0E

write: [07817087865540F411000B817029409555F20000AA04F4329E0E^Z]

read : [07817087865540F411000B817029409555F20000AA04F4329E0E^Z<cr><lf>ERROR<cr><lf>]

Message received: 0x21 / 0x003e

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 34 46 34 33 | 555F20000AA04F43

32 39 45 30 45 1a 0d 0a 45 52 52 4f 52 0d       | 29E0E   ERROR

Received message type 21

SMS Send failed (Unknown error - well better than nothing!!)

Serial device: closing device

 

 

Any other ideas?

 

Thanks for your help so far :)

 

 

 

 

 

-----Original Message-----
From: gnokii-users-bounces+tristand=micro-p.com <at> nongnu.org [mailto:gnokii-users-bounces+tristand=micro-p.com <at> nongnu.org] On Behalf Of Tristan Drinkwater
Sent: 02 December 2011 14:11
To: Discussion forum for gnokii users.
Subject: RE: Nokia Premicell

 

Thanks for the reply,

 

My mistake in typing the command I sent, it was the correct output.

 

I'm happy to try the update, how do I install it?

 

Thanks.

 

Tristan

 

 

 

-----Original Message-----

From: gnokii-users-bounces+tristand=micro-p.com <at> nongnu.org [mailto:gnokii-users-bounces+tristand=micro-p.com <at> nongnu.org] On Behalf Of Daniele Forsi

Sent: 02 December 2011 13:25

To: Discussion forum for gnokii users.

Subject: Re: Nokia Premicell

 

2011/12/2 Tristan Drinkwater:

 

> echo "gnokii test" | gnokii --sendsms +44792045xxxx --smsc +447920xxxxx

 

the debug output doesn't seem to come from that command line because

it shows the same number for destination and for smsc, can you try

again?

 

I checked using the sms_inbox feature of the fake driver, to test

yourself see "Advanced usage" in

http://wiki.gnokii.org/index.php/Fake_driver

 

> Invalid remote number length (47)

 

there is code in atnok.c to avoid that but it's checking for a more

sane "0301" rather than "Nokia Cellular Data Adapter for GSM and

PCN/DCS 1800 " (with a trailing space!), can you try the attached

patch? If it doesn't work check if I copied the right string.

 

--

Daniele Forsi

 

________________________________

 

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.

 

_______________________________________________

gnokii-users mailing list

gnokii-users <at> nongnu.org

https://lists.nongnu.org/mailman/listinfo/gnokii-users

_______________________________________________
gnokii-users mailing list
gnokii-users <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Pawel Kot | 2 Dec 16:26
Picon
Gravatar

gnokii 0.6.31

Dear all gnokii users,

New gnokii version - 0.6.31 - is released and available for download.
This time it took us over 10 months to prepare new version. But we're
not dead yet :)

There are no last minute changes, so git users won't be surprised.The
highlights of this release include:
 - possibility to change the phone driver in runtime
 - fixes to make it possible to resend the message without
modifications to gn_sms structure
 - improvements to vcard handling
 - improved handling of calendar, notes and todo for Series40 3rd Ed and later
 - improved Samsung support
 - avoid multiple overruns and segfaults

Direct download links:
http://www.gnokii.org/download/gnokii/gnokii-0.6.31.tar.bz2
http://www.gnokii.org/download/gnokii/gnokii-0.6.31.tar.gz

There should come soon Windows binaries and Ubuntu PPA update.

take care,
--

-- 
Pawel Kot
Pawel Kot | 2 Dec 16:47
Picon
Gravatar

Re: gnokii 0.6.31

Hi,

On Fri, Dec 2, 2011 at 16:26, Pawel Kot <gnokii <at> gmail.com> wrote:
> New gnokii version - 0.6.31 - is released and available for download.
[...]
> Direct download links:
> http://www.gnokii.org/download/gnokii/gnokii-0.6.31.tar.bz2
> http://www.gnokii.org/download/gnokii/gnokii-0.6.31.tar.gz
>
> There should come soon Windows binaries and Ubuntu PPA update.

Windows binaries (no installer version yet):
http://www.gnokii.org/download/gnokii/binaries/win32/gnokii-0.6.31-debug.zip
http://www.gnokii.org/download/gnokii/binaries/win32/gnokii-0.6.31-release.zip

And reminder. You can follow us on twitter (@gnokii) and I've set up a
google plus page (which might be updated more often than our website
news): https://plus.google.com/b/115782811407964250499/

take care,
--

-- 
Pawel Kot
Daniele Forsi | 2 Dec 16:55
Picon

Re: Nokia Premicell

2011/12/2 Tristan Drinkwater <tristand <at> micro-p.com>:

> Not sure if I've done it right, but I've edited atnoki.c so it looks like
> this... (note the extra blank space before Nokia string)

you did it right, except the extra space was only at the end of the
string not at the beginning, please retry without it

we're also thinking how to recover from this error at runtime so that
you don't need to modify the sources
--

-- 
Daniele Forsi
Pawel Kot | 2 Dec 16:59
Picon
Gravatar

Re: Nokia Premicell

Hi,

On Fri, Dec 2, 2011 at 16:07, Tristan Drinkwater <tristand <at> micro-p.com> wrote:
>         if (!strncasecmp("0301", foundmodel, 4))

Remove this line.

take care,
--

-- 
Pawel Kot
Tristan Drinkwater | 2 Dec 17:06
Favicon

RE: Nokia Premicell

Hi Daniele,

I've tried with both space at the end and beginning without success. I've also commented out the coming line
above the new line you asked me to add.

Sadly I'm still getting the same error.

Any further thoughts?

Thanks again.

-----Original Message-----
From: gnokii-users-bounces+tristand=micro-p.com <at> nongnu.org
[mailto:gnokii-users-bounces+tristand=micro-p.com <at> nongnu.org] On Behalf Of Daniele Forsi
Sent: 02 December 2011 15:55
To: Discussion forum for gnokii users.
Subject: Re: Nokia Premicell

2011/12/2 Tristan Drinkwater <tristand <at> micro-p.com>:

> Not sure if I've done it right, but I've edited atnoki.c so it looks like
> this... (note the extra blank space before Nokia string)

you did it right, except the extra space was only at the end of the
string not at the beginning, please retry without it

we're also thinking how to recover from this error at runtime so that
you don't need to modify the sources
--
Daniele Forsi

_______________________________________________
gnokii-users mailing list
gnokii-users <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/gnokii-users

________________________________

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.
Tristan Drinkwater | 2 Dec 17:41
Favicon

RE: Nokia Premicell

Just to add some more information....

 

This is the output when I try to --sendsms now;

 

echo "GNOKII" | gnokii --sendsms 07920459xxx --smsc 12345678xxx -r

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 = 20

rfcomm_channel = 0

sm_retry = 1

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 : [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>^S^Q^C^C: Nokia Cellular Data Adapter for GSM and PCN/DCS 1800 <cr><lf><cr><lf>OK<cr><lf>]

Message received: 0x06 / 0x004c

02 41 54 2b 47 4d 4d 0d 0d 0a 13 11 03 03 3a 20 |  AT+GMM       :

4e 6f 6b 69 61 20 43 65 6c 6c 75 6c 61 72 20 44 | Nokia Cellular D

61 74 61 20 41 64 61 70 74 65 72 20 66 6f 72 20 | ata Adapter for

47 53 4d 20 61 6e 64 20 50 43 4e 2f 44 43 53 20 | GSM and PCN/DCS

31 38 30 30 20 0d 0a 0d 0a 4f 4b 0d             | 1800     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: 07812143658719F231000B817029409555F20000AA0647E773994C02

Message sent: 0x21 / 0x0039

30 37 38 31 32 31 34 33 36 35 38 37 31 39 46 32 | 07812143658719F2

33 31 30 30 30 42 38 31 37 30 32 39 34 30 39 35 | 31000B8170294095

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: [07812143658719F231000B817029409555F20000AA0647E773994C02^Z]

read : [07812143658719F231000B817029409555F20000AA0647E773994C02^Z<cr><lf>ERROR<cr><lf>]

Message received: 0x21 / 0x0042

03 30 37 38 31 32 31 34 33 36 35 38 37 31 39 46 |  07812143658719F

32 33 31 30 30 30 42 38 31 37 30 32 39 34 30 39 | 231000B817029409

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

 

 

 

-----Original Message-----
From: gnokii-users-bounces+tristand=micro-p.com <at> nongnu.org [mailto:gnokii-users-bounces+tristand=micro-p.com <at> nongnu.org] On Behalf Of Daniele Forsi
Sent: 02 December 2011 15:55
To: Discussion forum for gnokii users.
Subject: Re: Nokia Premicell

 

2011/12/2 Tristan Drinkwater <tristand <at> micro-p.com>:

 

> Not sure if I've done it right, but I've edited atnoki.c so it looks like

> this... (note the extra blank space before Nokia string)

 

you did it right, except the extra space was only at the end of the

string not at the beginning, please retry without it

 

we're also thinking how to recover from this error at runtime so that

you don't need to modify the sources

--

Daniele Forsi

 

_______________________________________________

gnokii-users mailing list

gnokii-users <at> nongnu.org

https://lists.nongnu.org/mailman/listinfo/gnokii-users



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.
_______________________________________________
gnokii-users mailing list
gnokii-users <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/gnokii-users

Gmane