gnokii-users
[Top][All Lists]
Advanced

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

Nokia Premicell


From: Tristan Drinkwater
Subject: Nokia Premicell
Date: Fri, 2 Dec 2011 10:58:18 +0000

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.

reply via email to

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