Discussion:
[Bitpim-devel] Motorola t730 - file content
Ivan Komarov
2004-09-14 16:09:08 UTC
Permalink
Hello forks,

I'm trying to read file context from Motorola t730, but phone returns
error code \x0c (p_brew.py). Could you tell what is reason ? Maybe
packet format is wrong ?
--
Best regards,
Ivan mailto:***@apriorit.com
Roger Binns
2004-09-14 16:14:41 UTC
Permalink
Post by Ivan Komarov
I'm trying to read file context from Motorola t730, but phone returns
error code \x0c (p_brew.py). Could you tell what is reason ? Maybe
packet format is wrong ?
Can you include the protocol log leading up to this?

Roger
Ivan Komarov
2004-09-14 16:19:54 UTC
Permalink
Hello Roger,
Post by Roger Binns
Post by Ivan Komarov
I'm trying to read file context from Motorola t730, but phone returns
error code \x0c (p_brew.py). Could you tell what is reason ? Maybe
packet format is wrong ?
Can you include the protocol log leading up to this?
Roger
ok - your want this ?

19:18:38.342 com4: Opening port com4, 115200 baud, timeout 3.000000, hardwareflow 0, softwareflow 0
19:18:38.421 com4: Open of comm port suceeded
19:18:38.437 Other CDMA Phone: Listing dir ''
19:18:38.437 Other CDMA Phone: brew request Data - 2 bytes
<#! p_brew.memoryconfigrequest !#>
00000000 59 0c Y.

19:18:38.437 Other CDMA Phone: brew response Data - 7 bytes
<#! p_brew.memoryconfigresponse !#>
00000000 59 0c 00 90 b1 18 00 Y......

19:18:38.437 Other CDMA Phone: Now in brew mode
19:18:38.437 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 00 00 00 00 01 00 Y.......

19:18:38.467 Other CDMA Phone: brew response Data - 35 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 00 00 00 00 ff 00 01 03 00 00 00 00 3d Y..............=
00000010 01 00 00 00 02 00 00 00 0a 24 55 53 45 52 5f 44 .........$USER_D
00000020 49 52 53 IRS

19:18:38.483 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 01 00 00 00 01 00 Y.......

19:18:38.529 Other CDMA Phone: brew response Data - 37 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 01 00 00 00 37 00 01 03 00 00 00 00 ce Y......7........
00000010 00 00 00 00 01 00 00 00 0c 24 53 59 53 2e 46 41 .........$SYS.FA
00000020 43 54 4f 52 59 CTORY

19:18:38.529 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 02 00 00 00 01 00 Y.......

19:18:38.562 Other CDMA Phone: brew response Data - 45 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 02 00 00 00 ff 00 01 00 00 00 00 00 a8 Y...............
00000010 2a 00 00 00 2e 00 00 00 14 44 4c 5f 46 53 5f 46 *........DL_FS_F
00000020 49 4c 45 5f 49 4e 46 4f 5f 46 49 4c 45 ILE_INFO_FILE

19:18:38.576 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 03 00 00 00 01 00 Y.......

19:18:38.608 Other CDMA Phone: brew response Data - 37 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 03 00 00 00 ff 00 01 00 00 00 00 00 d2 Y...............
00000010 07 00 00 00 09 00 00 00 0c 62 72 77 5f 73 69 64 .........brw_sid
00000020 5f 66 69 6c 65 _file

19:18:38.608 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 04 00 00 00 01 00 Y.......

19:18:38.640 Other CDMA Phone: brew response Data - 37 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 04 00 00 00 ff 00 00 00 00 00 00 00 00 Y...............
00000010 00 00 00 00 01 00 00 00 0c 52 44 4d 5f 50 4f 52 .........RDM_POR
00000020 54 5f 4d 41 50 T_MAP

19:18:38.640 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 05 00 00 00 01 00 Y.......

19:18:38.687 Other CDMA Phone: brew response Data - 37 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 05 00 00 00 ff 00 01 00 00 00 00 00 7c Y..............|
00000010 15 00 00 00 18 00 00 00 0c 45 4d 53 5f 73 61 76 .........EMS_sav
00000020 65 2e 74 6d 70 e.tmp

19:18:38.687 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 06 00 00 00 01 00 Y.......

19:18:38.717 Other CDMA Phone: brew response Data - 35 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 06 00 00 00 ff 00 01 00 00 00 00 00 b0 Y...............
00000010 13 00 00 00 16 00 00 00 0a 45 4d 53 5f 6e 66 2e .........EMS_nf.
00000020 74 6d 70 tmp

19:18:38.717 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 07 00 00 00 01 00 Y.......

19:18:38.749 Other CDMA Phone: brew response Data - 44 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 07 00 00 00 ff 00 01 00 00 00 00 00 3c Y..............<
00000010 00 00 00 00 01 00 00 00 13 45 4d 53 5f 63 6f 6e .........EMS_con
00000020 63 61 74 5f 69 6e 66 6f 2e 62 69 6e cat_info.bin

19:18:38.765 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 08 00 00 00 01 00 Y.......

19:18:38.779 Other CDMA Phone: brew response Data - 42 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 08 00 00 00 ff 00 01 00 00 00 00 00 51 Y..............Q
00000010 12 00 00 00 14 00 00 00 11 45 4d 53 5f 6d 65 73 .........EMS_mes
00000020 73 61 67 65 5f 30 2e 62 69 6e sage_0.bin

19:18:38.796 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 09 00 00 00 01 00 Y.......

19:18:38.826 Other CDMA Phone: brew response Data - 42 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 09 00 00 00 ff 00 01 00 00 00 00 00 51 Y..............Q
00000010 12 00 00 00 14 00 00 00 11 45 4d 53 5f 6d 65 73 .........EMS_mes
00000020 73 61 67 65 5f 31 2e 62 69 6e sage_1.bin

19:18:38.826 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 0a 00 00 00 01 00 Y.......

19:18:38.874 Other CDMA Phone: brew response Data - 40 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 0a 00 00 00 ff 00 01 00 00 00 00 00 b0 Y...............
00000010 13 00 00 00 16 00 00 00 0f 45 4d 53 5f 73 63 72 .........EMS_scr
00000020 61 74 63 68 2e 74 6d 70 atch.tmp

19:18:38.890 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 0b 00 00 00 01 00 Y.......

19:18:38.921 Other CDMA Phone: brew response Data - 36 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 0b 00 00 00 ff 00 01 00 00 00 00 00 7c Y..............|
00000010 0f 01 00 00 22 01 00 00 0b 44 4c 5f 44 4d 48 5f ...."....DL_DMH_
00000020 46 69 6c 65 File

19:18:38.937 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 0c 00 00 00 01 00 Y.......

19:18:38.967 Other CDMA Phone: brew response Data - 43 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 0c 00 00 00 ff 00 01 00 00 00 00 00 10 Y...............
00000010 27 00 00 00 2a 00 00 00 12 4d 53 47 44 42 5f 6d '...*....MSGDB_m
00000020 73 67 5f 64 61 74 61 2e 62 69 6e sg_data.bin

19:18:38.983 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 0d 00 00 00 01 00 Y.......

19:18:39.046 Other CDMA Phone: brew response Data - 36 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 0d 00 00 00 ff 00 01 00 55 ea d1 2c 50 Y..........U..,P
00000010 00 00 00 00 01 00 00 00 0b 4d 79 54 6f 6e 65 44 .........MyToneD
00000020 42 2e 64 62 B.db

19:18:39.046 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 0e 00 00 00 01 00 Y.......

19:18:39.046 Other CDMA Phone: brew response Data - 36 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 0e 00 00 00 ff 00 01 00 55 ea d1 2c 50 Y..........U..,P
00000010 00 00 00 00 01 00 00 00 0b 54 6d 70 54 6e 65 44 .........TmpTneD
00000020 42 2e 64 62 B.db

19:18:39.062 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 0f 00 00 00 01 00 Y.......

19:18:39.076 Other CDMA Phone: brew response Data - 37 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 0f 00 00 00 ff 00 01 00 00 00 00 00 7c Y..............|
00000010 15 00 00 00 18 00 00 00 0c 45 4d 53 5f 76 69 65 .........EMS_vie
00000020 77 2e 74 6d 70 w.tmp

19:18:39.092 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 10 00 00 00 01 00 Y.......

19:18:39.124 Other CDMA Phone: brew response Data - 39 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 10 00 00 00 ff 00 01 00 00 00 00 00 10 Y...............
00000010 a4 00 00 00 b0 00 00 00 0e 62 72 77 5f 63 61 63 .........brw_cac
00000020 68 65 5f 66 69 6c 65 he_file

19:18:39.124 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 11 00 00 00 01 00 Y.......

19:18:39.154 Other CDMA Phone: brew response Data - 33 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 00 11 00 00 00 ff 00 01 00 00 00 00 00 86 Y...............
00000010 00 00 00 00 01 00 00 00 08 24 53 59 53 5f 52 4d .........$SYS_RM
00000020 54 T

19:18:39.154 Other CDMA Phone: brew request Data - 8 bytes
<#! p_brew.listfilerequest !#>
00000000 59 0b 12 00 00 00 01 00 Y.......

19:18:39.187 Other CDMA Phone: brew response Data - 3 bytes
<#! p_brew.listfileresponse !#>
00000000 59 0b 1c Y..

19:18:39.187 Other CDMA Phone: brew request Data - 4 bytes
<#! p_brew.listdirectoriesrequest !#>
00000000 59 02 01 00 Y...

19:18:39.233 Other CDMA Phone: brew response Data - 30 bytes
<#! p_brew.listdirectoriesresponse !#>
00000000 59 02 00 04 00 17 00 6e 76 6d 00 56 6f 69 63 65 Y......nvm.Voice
00000010 44 42 00 62 72 65 77 00 75 73 65 72 00 00 DB.brew.user..

19:18:41.404 Other CDMA Phone: Getting file contents '$SYS.FACTORY'
19:18:41.404 Other CDMA Phone: brew request Data - 17 bytes
<#! p_brew.readfilerequest !#>
00000000 59 04 00 0d 24 53 59 53 2e 46 41 43 54 4f 52 59 Y...$SYS.FACTORY
00000010 00 .

19:18:41.421 Other CDMA Phone: brew response Data - 17 bytes
<#! p_brew.readfileresponse !#>
00000000 59 04 0d 24 53 59 53 2e 46 41 43 54 4f 52 59 00 Y..$SYS.FACTORY.
00000010 7e ~

19:18:41.437 Exception: An unexpected exception has occurred.
Please see the help for details on what to do.

Traceback (most recent call last):
File "gui.pyo", line 150, in run
File "gui.pyo", line 90, in __call__
File "gui.pyo", line 1200, in getfile
File "com_brew.pyo", line 220, in getfilecontents
File "com_brew.pyo", line 365, in sendbrewcommand
BrewNameTooLongException: Name is too long

Variables by last 8 frames, innermost last

Frame __bootstrap in threading.pyo at line 436
self = <WorkerThread(BitPim helper, started daemon)>

Frame run in gui.pyo at line 143
e = <com_brew.BrewNameTooLongException instance at 0x01D59800>
res = None
self = <WorkerThread(BitPim helper, started daemon)>
item = (<gui.Request instance at 0x01D59698>, <gui.Callback instance at 0x01D59B48>)
call = <gui.Request instance at 0x01D59698>
ex = <com_brew.BrewNameTooLongException instance at 0x01D59800>
resultcb = <gui.Callback instance at 0x01D59B48>
first = 0

Frame __call__ in gui.pyo at line 90
self = <gui.Request instance at 0x01D59698>
args = ()
d = {}
kwargs = {}

Frame getfile in gui.pyo at line 1200
path = u'$SYS.FACTORY'
self = <WorkerThread(BitPim helper, started daemon)>

Frame getfilecontents in com_brew.pyo at line 220
self = <com_othercdma.Phone instance at 0x01D59440>
req = <p_brew.readfilerequest object at 0x008FBA50>
start = 1095178721.405
file = u'$SYS.FACTORY'
data = <cStringIO.StringO object at 0x01D417C0>
desc = u'Reading $SYS.FACTORY'

Frame sendbrewcommand in com_brew.pyo at line 365
responseclass = <class 'p_brew.readfileresponse'>
origdata = 'Y\x04\r$SYS.FACTORY\x00}^l\xf2~'
d = 0
err = 13
buffer = <prototypes.buffer instance at 0x01D59FA8>
request = <p_brew.readfilerequest object at 0x008FBA50>
callsetmode = True
firsttwo = 'Y\x04'
crc = 'l\xf2'
data = 'Y\x04\r$SYS.FACTORY\x00~'
self = <com_othercdma.Phone instance at 0x01D59440>
--
Best regards,
Ivan mailto:***@apriorit.com
Roger Binns
2004-09-15 04:40:16 UTC
Permalink
Post by Ivan Komarov
Post by Ivan Komarov
I'm trying to read file context from Motorola t730, but phone
returns error code \x0c (p_brew.py). Could you tell what is reason
? Maybe packet format is wrong ?
The only other time I have seen 0c is when the filename is too
Post by Ivan Komarov
BrewNameTooLongException: Name is too long
Ivan Komarov
2004-09-15 08:33:25 UTC
Permalink
Hello Roger,
Post by Ivan Komarov
BrewNameTooLongException: Name is too long
Here is trying to read another file.
Ivan Komarov
2004-09-15 10:12:44 UTC
Permalink
Hello Roger,
Post by Ivan Komarov
BrewNameTooLongException: Name is too long
Roger Binns
2004-09-17 05:49:17 UTC
Permalink
Here are some more about this bug
Yes, I can run the analyser myself and see exactly what your screen
shot shows.

The only thing I can think of is that maybe your phone requires a
'/' at the begining of paths.

In com_brew.getfilecontents, change this line:

req.filename=file

to this:

req.filename="/"+file

Roger
Roger Binns
2004-09-19 05:39:10 UTC
Permalink
:( It's still don't work. The error code is \x1c -
BrewNoMoreEntriesException
I don't have any other ideas. If you have any other
program that does work then you can use portmon from
sysinternals.com to see what they do that is different.
(The BitPim source includes a command that will convert
from portmon format to BitPim analyser format.)

Roger

Loading...