gnokii-users
[Top][All Lists]
Advanced

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

Re: [PATCH] Fix fix false positive "Misconfiguration in the phone table


From: Ladislav Michl
Subject: Re: [PATCH] Fix fix false positive "Misconfiguration in the phone table detected."
Date: Sun, 22 Nov 2020 20:14:26 +0100

Hi Daniele,

On Sun, Nov 22, 2020 at 06:10:21PM +0100, Daniele Forsi wrote:
> Hello Ladis,
> 
> with the version that you modified to get the list of SMS, what
> happens if you try commands like the following?
> gnokii --getsms SM 1 end
> gnokii --getsms ME 1 end
> gnokii --getsms IN 1 end

All above ends with (for respective memory type):
Getting SMS failed (location 1 from IN memory)! (The given memory location is 
invalid.)
device: closing device

> gnokii --getsms IN 229

[...]
Total number of messages in the folder: 230
Getting SMS from location 1040
Getting SMS message (1040 in folder 14) status...
Message sent: 0x14 / 0x000a
00 01 00 0e 02 02 04 10 55 55                   |         UU      
Message received: 0x14 / 0x0006
01 7f 00 0f 02 00                               |                 
Received message type 14
status not supported?
Subtracting 1024 from memory location number
Getting SMS from location 16
Message sent: 0x14 / 0x000a
00 01 00 02 02 02 00 10 01 00                   |                 
Message received: 0x14 / 0x00c6
01 7f 00 03 00 01 02 02 00 10 00 00 00 01 00 b8 |                 
04 00 11 02 30 61 61 05 64 40 00 00 00 03 82 0c |     0aa d@      
01 07 09 d0 43 ed 70 ac 07 00 82 0c 02 08 07 91 |     C p         
24 70 33 80 06 46 80 90 8c 00 cd 74 fb 2d 0f 93 | $p3  F     t -  
dd 65 50 da 6d 7e 83 d6 a0 b7 58 5d 26 bb c3 f6 |  eP m~    X]&   
71 59 07 b2 e7 c9 65 b5 3b 0d 6a a7 e7 f4 37 48 | qY    e ; j   7H
1f a6 a7 db a0 39 3d cc 2e 83 ec 20 b8 fc 6d 7f |      9= .     m 
eb eb 2e 50 50 0f 12 d7 c9 65 90 5e fc d6 a7 41 |   .PP    e ^   A
70 79 1a 2e 0f db cb ee 37 0b 04 7f cf d9 e5 76 | py .    7      v
19 64 0f b7 41 e4 30 7b 9e 06 c1 df eb bc 3b 0f |  d  A 0{      ; 
42 c1 df eb 3a 19 34 2f 83 d4 69 3d c8 5d 9e d3 | B   : 4/  i= ]  
c3 ec 77 ca 05 82 b2 c3 74 71 1e 04 7f d7 f5 65 |   w     tq     e
d0 3a 2c a7 bf eb                               |  :,             
Received message type 14
Trying to get message #16 in folder #2
Trying to parse message....
Type: 0
Length: 184
Type: Deliver
Location of SMS in current folder: 16
Memory type/folder id: 2
Mobile Terminated message:
        Date: 2020-03-16 16:50:46 +0100
        Remote number (recipient or sender): CZCcz
        SMS center number: +420733086064
        Data Coding Scheme: 0x11
        Class: 1
        Default Alphabet

229. Inbox Message (Unknown)
Date/time: 16/03/2020 16:50:46 +0100
Sender: CZCcz Msg Center: +420733086064
Text:

device: closing device

For Default Alphabet message is not decoded and Unicode message
is partially decoded (gnokii --getsms IN 227)

> >         {"C1-01", "RM-607",     PM_DEFAULT_S40_3RD },  /* Series 40 6th 
> > Edition Lite */
> >         {"C1-02", "RM-643",     PM_DEFAULT_S40_3RD },  /* Series 40 6th 
> > Edition Lite */
> > +       {"C2-00", "RM-704",     PM_DEFAULT_S40_3RD },
> 
> maybe we are doing the wrong thing also with with C1-01 and C1-02
> as you have seen, the #define for PM_DEFAULT_S40_3RD is uses other
> existing flags so we can't tell a Series 40 testing single bits and
> maybe not even testing the whole flags int
> 
> we can add another flag, that would be the 17th (I don't know if other
> parts of gnokii assume that ints have more than 16 bits, maybe use
> AC_CHECK_SIZEOF(int) in configure.ac)

I'm aware only of Linux, *BSD, Win32 and OSX support. All those systems
are running on at least 32bit machines. Also gnokii depends on glib...

> > Message: SMS Folder status received
> > Message: Number of Entries: 229
> > Message: IDs of Entries : 2576, 2528, 2448, 2432, 2433, 2128, 3200, 3168, 
> > 3136, 3120, 3104, 3088, 3072, 3056, 3040, 3024, 3008, 2992, 2976, 2944, 
> > 2912, 2896, 2880, 2832, 2816, 2784, 2785, 2768, 2752, 2753, 2624, 2720, 
> > 2688, 2689, 2690, 2672, 2384, 2640, 2544, 2545, 2512, 2464, 2368, 2369, 
> > 2336, 2320, 2304, 2256, 2257, 2258, 2240, 2241, 2242, 2224, 2208, 2192, 
> > 2176, 2177, 2160, 2096, 2080, 2064, 2048, 2049, 2050, 2032, 2033, 2016, 
> > 1968, 1952, 1936, 1920, 1904, 1888, 1889, 1890, 1891, 1872, 1856, 1840, 
> > 1792, 1776, 1777, 1760, 1761, 1744, 1728, 1712, 1696, 1664, 1665, 1648, 
> > 1649, 1650, 1651, 1632, 1633, 1616, 1617, 1600, 1568, 1569, 1552, 1536, 
> > 1537, 1538, 1539, 1520, 1504, 1488, 1489, 1490, 1472, 1473, 1456, 1457, 
> > 1458, 1459, 1440, 1424, 1408, 1392, 1376, 1360, 1344, 1345, 1346, 1347, 
> > 1348, 1328, 1296, 1280, 1281, 1282, 1283, 1264, 1265, 1266, 1232, 1216, 
> > 1200, 1184, 1168, 1152, 1120, 1104, 1105, 1106, 1107, 1088, 1089, 1072, 
> > 1073, 1074, 1075, 1056, 1040, 1024, 1025, 1008, 992, 976, 960, 944, 945, 
> > 928, 912, 896, 880, 864, 848, 832, 833, 816, 817, 800, 784, 768, 752, 736, 
> > 737, 720, 704, 688, 656, 640, 624, 625, 608, 592, 576, 560, 544, 512, 496, 
> > 480, 464, 448, 432, 416, 400, 384, 368, 352, 336, 320, 304, 288, 272, 273, 
> > 256, 240, 241, 224, 208, 192, 193, 176, 160, 144, 145, 112, 96, 80, 81, 64, 
> > 32, 16, 17,
> > Get message list from SM
> > Message sent: 0x14 / 0x000a
> > 00 01 00 0c 01 02 0f 55 55 55                   |        UUU
> > Message received: 0x14 / 0x000a
> > 01 7f 00 0d 00 00 00 00 00 00                   |
> > Received message type 14
> > Message: SMS Folder status received
> > Message: Number of Entries: 0
> > Total number of messages in the folder: 229
> > Getting SMS from location 3600
> > Getting SMS message (3600 in folder 14) status...
> > Message sent: 0x14 / 0x000a
> > 00 01 00 0e 02 02 0e 10 55 55                   |         UU
> > Message received: 0x14 / 0x0006
> > 01 7f 00 0f 02 00                               |
> > Received message type 14
> > status not supported?
> > Subtracting 1024 from memory location number
> 
> I don't know if subtracting 1024 makes sense for your phone, but
> --getsms 1 end could find a valid location anyway because it ignores
> some errors

Hmm, it actually terminates after first error. Anyway, tried to avoid
subtraction without effect.

> > Getting SMS from location 2576
> > Message sent: 0x14 / 0x000a
> > 00 01 00 02 02 02 0a 10 01 00                   |
> > Message received: 0x14 / 0x000e
> > 01 7f 00 03 02 00 02 02 0a 10 00 00 00 00       |
> > Received message type 14
> > Trying to get message #2576 in folder #2
> > Getting SMS failed (location 1 from IN memory)! (The given memory location 
> > is invalid.)
> > device: closing device
> 
> it should be safe also to try all 256 values for req[3] req[4] req[5]
> to see if some combinations give a valid location

Here it seems to be easier to setup USB sniffing on Windows machine
and see what is Nokia Ovi Suite trying to do :)

Best regards,
        ladis



reply via email to

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