gnokii-users
[Top][All Lists]
Advanced

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

Re: gnokii/mygnokii cooperation (Was: What image file formats gnokii can


From: Michal Kochanowicz
Subject: Re: gnokii/mygnokii cooperation (Was: What image file formats gnokii can read?)
Date: Tue, 9 Apr 2002 09:57:43 +0200
User-agent: Mutt/1.3.28i

On Mon, Apr 08, 2002 at 05:01:20PM +0200, Pawel Kot wrote:
> Ah. Now I know what you meant. It's not that gnokii can handle logos created
> by itself. Gnokii requires the bitmap in the exact size. For the bitmap size 
> for
> the specific phone look into the phone driver at the info struct. For 6210
> operator logo it is AFAIR 78x21, for other drivers it is 72x14. And I don't 
> want
> to change it. Resizing and cutting is not too good idea.
Resizing and cutting isn't. But it causes a lot of problems. I think
that gnokii, if image is too small, should enlarge it _without_ any
scaling and center it. As most images are 72x14, I have to convert each
with GIMP. This isn't fast neither convinient.

And again. gnokii can't set the logo. This file:
1065_.bmp: PC bitmap data, Windows 3.x format, 78 x 21 x 1
Gnokii says:
------------------------------------------------------------------------
address@hidden bin]$ ./gnokii --setlogo op /tmp/1065_.bmp "260 03"
GNOKII Version 0.4.0pre16
CFG_ReadFile - open /home/misiek/.gnokiirc: No such file or directory
Opened configuration file /etc/gnokiirc
Added new section global
Adding key/value port//dev/ttyS1
Adding key/value model/6210
Adding key/value initlength/default
Adding key/value connection/irda
Adding key/value bindir//tmp/g-i/bin
Connecting
Serial device: opening device /dev/ttyS1
Nokia 6210      4b620000
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 03 01 32                               |      2
Message received: 0x1b / 0x0037
01 1c 00 04 00 56 20 30 35 2e 33 36 0a 31 34 2d |      V 05.36 14-
31 31 2d 30 31 0a 4e 50 45 2d 33 0a 28 63 29 20 | 11-01 NPE-3 (c)
4e 4d 50 2e 00 6c 00 17 2a 4c 00 23 98 00 00 10 | NMP. l  *L #
29 20 00 01 00 08 38                            | )     8
Received message type 1b
Received model NPE-3
Image Size in BMP file: 78x21
Number of colors in BMP file: 2 (supported by gnokii)
Compression in BMP file: no compression (supported by gnokii)
First color in BMP file: 0 0 0 (white)
Second color in BMP file: 255 255 255 (black)
Data size in BMP file: 252
Getting Network Info...
Message sent: 0x0a / 0x0004
00 01 00 70                                     |    p
Message received: 0x0a / 0x00f2
01 17 00 71 02 ff 01 14 01 02 06 eb 01 f4 62 f0 |    q ˙     ë ôbđ
30 04 00 49 00 44 00 45 00 41 04 d8 4e 15 00 cd | 0  I D E A ŘN  Í
00 ff 00 00 00 00 00 00 00 00 00 00 0c 63 e3 33 |  ˙           că3
0c 01 e3 1b 0c 00 39 98 cd 8c 30 0c cc 6c 30 00 |   ă   9 Í 0 Ěl0
e6 63 3c 31 e0 30 31 99 80 03 d9 8c e0 c7 80 c0 | ćc<1ŕ01   Ů ŕÇ Ŕ
c6 3c 00 0f 66 33 83 33 01 e3 18 60 00 37 98 cf | Ć<  f3 3 ă ` 7 Ď
0c cc 00 cc 63 c0 00 ce 63 36 33 f0 03 31 99 80 |  Ě ĚcŔ Îc63đ 1
03 39 8c cc d8 60 cc c6 c3 00 0c 63 e3 1b 61 81 |  9 ĚŘ`ĚĆĂ  că a
e1 f3 0c 00 00 00 00 00 00 00 00 00 00 10 00 03 | áó
00 00 00 1b 00 00 02 80 00 0c 00 00 00 6c 00 00 |              l
06 00 00 30 00 00 01 b0 00 00 19 e7 c7 c0 e6 d9 |    0   °   çÇŔćŮ
e6 cf 36 ce 60 dd b3 06 db 60 db 66 db 6d 9f 66 | ćĎ6Î`Ýł Ű`ŰfŰm f
cc 0c 7f 9f 6d 9b fc c6 cd 9b 30 19 fe cd b6 6f | Ě   m üĆÍ 0 ţÍśo
f1 9b 36 6c c1 b3 33 36 d9 99 9b 67 d9 9f 03 8c | ń 6lÁł36Ů  gŮ
c7 db 3c 66 39 40 00 00 00 00 00 00 00 00 64 ff | ÇŰ<f9@        d˙
ff ff                                           | ˙˙
Received message type 0a
Operator 260 03 Op logo received ok Logo (21x78) Setting Logo.
Setting op logo...
Message sent: 0x0a / 0x00df
00 01 00 a3 01 01 62 f0 30 00 04 d5 4e 15 00 cd |    Ł  bđ0  ŐN  Í
00 00 00 00 00 00 00 00 00 00 00 00 0c 63 e3 33 |              că3
0c 01 e3 1b 0c 00 39 98 cd 8c 30 0c cc 6c 30 00 |   ă   9 Í 0 Ěl0
e6 63 3c 31 e0 30 31 99 80 03 d9 8c e0 c7 80 c0 | ćc<1ŕ01   Ů ŕÇ Ŕ
c6 3c 00 0f 66 33 83 33 01 e3 18 60 00 37 98 cf | Ć<  f3 3 ă ` 7 Ď
0c cc 00 cc 63 c0 00 ce 63 36 33 f0 03 31 99 80 |  Ě ĚcŔ Îc63đ 1
03 39 8c cc d8 60 cc c6 c3 00 0c 63 e3 1b 61 81 |  9 ĚŘ`ĚĆĂ  că a
e1 f3 0c 00 00 00 00 00 00 00 00 00 00 10 00 03 | áó
00 00 00 1b 00 00 02 80 00 0c 00 00 00 6c 00 00 |              l
06 00 00 30 00 00 01 b0 00 00 19 e7 c7 c0 e6 d9 |    0   °   çÇŔćŮ
e6 cf 36 ce 60 dd b3 06 db 60 db 66 db 6d 9f 66 | ćĎ6Î`Ýł Ű`ŰfŰm f
cc 0c 7f 9f 6d 9b fc c6 cd 9b 30 19 fe cd b6 6f | Ě   m üĆÍ 0 ţÍśo
f1 9b 36 6c c1 b3 33 36 d9 99 9b 67 d9 9f 03 8c | ń 6lÁł36Ů  gŮ
c7 db 3c 66 39 40 00 00 00 00 00 00 00 00 64    | ÇŰ<f9@        d
Message received: 0x0a / 0x0004
01 17 00 a4                                     |    ¤
Received message type 0a
Op Logo Set OK
Getting op logo...
Message sent: 0x0a / 0x0004
00 01 00 70                                     |    p
Message received: 0x0a / 0x00f2
01 17 00 71 02 ff 01 14 01 02 06 eb 01 f4 62 f0 |    q ˙     ë ôbđ
30 04 00 49 00 44 00 45 00 41 04 d8 4e 15 00 cd | 0  I D E A ŘN  Í
00 ff 00 00 00 00 00 00 00 00 00 00 0c 63 e3 33 |  ˙           că3
0c 01 e3 1b 0c 00 39 98 cd 8c 30 0c cc 6c 30 00 |   ă   9 Í 0 Ěl0
e6 63 3c 31 e0 30 31 99 80 03 d9 8c e0 c7 80 c0 | ćc<1ŕ01   Ů ŕÇ Ŕ
c6 3c 00 0f 66 33 83 33 01 e3 18 60 00 37 98 cf | Ć<  f3 3 ă ` 7 Ď
0c cc 00 cc 63 c0 00 ce 63 36 33 f0 03 31 99 80 |  Ě ĚcŔ Îc63đ 1
03 39 8c cc d8 60 cc c6 c3 00 0c 63 e3 1b 61 81 |  9 ĚŘ`ĚĆĂ  că a
e1 f3 0c 00 00 00 00 00 00 00 00 00 00 10 00 03 | áó
00 00 00 1b 00 00 02 80 00 0c 00 00 00 6c 00 00 |              l
06 00 00 30 00 00 01 b0 00 00 19 e7 c7 c0 e6 d9 |    0   °   çÇŔćŮ
e6 cf 36 ce 60 dd b3 06 db 60 db 66 db 6d 9f 66 | ćĎ6Î`Ýł Ű`ŰfŰm f
cc 0c 7f 9f 6d 9b fc c6 cd 9b 30 19 fe cd b6 6f | Ě   m üĆÍ 0 ţÍśo
f1 9b 36 6c c1 b3 33 36 d9 99 9b 67 d9 9f 03 8c | ń 6lÁł36Ů  gŮ
c7 db 3c 66 39 40 00 00 00 00 00 00 00 00 64 ff | ÇŰ<f9@        d˙
ff ff                                           | ˙˙
Received message type 0a
Operator 260 03 Op logo received ok Logo (21x78) Done.
address@hidden bin]$
------------------------------------------------------------------------
And nothing changes. Mygnokii has no problems with that BMP. But (again)
it can't set logo backed up with gnokii:
address@hidden bin]$ ./gnokii --setlogo op ~/logo.op.nokia_sux_and_swallows 
"260 03"
File "/home/misiek/logo.op.nokia_sux_and_swallows"
Error: Invalid size of bitmap (in file, sms etc.)
address@hidden bin]$
-- 
--= Michal address@hidden =--
--= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
--==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--
A chodzenie po górach SSIE!!!



reply via email to

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