Discussion:
[Bitpim-devel] adding py file to windows build?
Alan Gonzalez
2003-09-16 13:45:42 UTC
Permalink
I was trying to add a file to get built into the bp.exe and I can't seem to get
my new file included.

Also some observations.

When i run makedist.py i get some error about a /B being not understood. I ran
this from command, by c:\python23\python makedist.py

so right now I build it by:

in cygwin:

/cygdrive/c/python23/python p2econfig.y py2exe -w -O2

and i get the bp.exe built. In the log of this command i can tell my new file
isn't being included. I'm assuming it's due to the way i'm building it?



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Roger Binns
2003-09-16 17:03:28 UTC
Permalink
Post by Alan Gonzalez
I was trying to add a file to get built into the bp.exe and I can't seem to get
my new file included.
py2exe follows all imports starting at bp.py. Just make sure something somewhere
imports it and calls it.
Post by Alan Gonzalez
When i run makedist.py i get some error about a /B being not understood. I ran
this from command, by c:\python23\python makedist.py
You need to build on the Windows2K/XP family. Until about 2 weeks before 0.6
was released I used Win98 as my main OS. Unfortunately the scripting
between Win98 and Windows2K/XP is different enough that I can't really make
one file work for both.

You are also going to to find it quite a bit of fun building if you don't
have all the necessary software installed. In particular, you will also need
Resource Hacker installed in c\program files\resource hacker,
helpblocks and the Microsoft Help Compiler, and InnoSetup.
Post by Alan Gonzalez
/cygdrive/c/python23/python p2econfig.y py2exe -w -O2
That same command should work outside of Cygwin as well.
Post by Alan Gonzalez
and i get the bp.exe built.
Why are you trying to build an exe? It is only needed if you are trying to give
the software to someone else.

I am more than happy to integrate your work. Do a cvs update, and then from
the command line:

cvs diff -u

And send me the results. I can also send you an exe if you want one.

Roger
Alan Gonzalez
2003-09-16 17:14:01 UTC
Permalink
Post by Roger Binns
Post by Alan Gonzalez
I was trying to add a file to get built into the bp.exe and I can't seem to
get
Post by Alan Gonzalez
my new file included.
py2exe follows all imports starting at bp.py. Just make sure something
somewhere
imports it and calls it.
it's an import, but it's in an if statement. Is that a problem?

I added a combobox in the settings dialog for phonetype
then it imports the correct com_phonetype.py. My new com_lgvx10.py though
isn't being compiled. This is until your new phone extensions are ready.
Post by Roger Binns
Post by Alan Gonzalez
When i run makedist.py i get some error about a /B being not understood. I
ran
Post by Alan Gonzalez
this from command, by c:\python23\python makedist.py
You need to build on the Windows2K/XP family. Until about 2 weeks before 0.6
was released I used Win98 as my main OS. Unfortunately the scripting
between Win98 and Windows2K/XP is different enough that I can't really make
one file work for both.
You are also going to to find it quite a bit of fun building if you don't
have all the necessary software installed. In particular, you will also need
Resource Hacker installed in c\program files\resource hacker,
helpblocks and the Microsoft Help Compiler, and InnoSetup.
Post by Alan Gonzalez
/cygdrive/c/python23/python p2econfig.y py2exe -w -O2
That same command should work outside of Cygwin as well.
Post by Alan Gonzalez
and i get the bp.exe built.
Why are you trying to build an exe? It is only needed if you are trying to
give
the software to someone else.
dunno, just was seeing how it was done.
Post by Roger Binns
I am more than happy to integrate your work. Do a cvs update, and then from
cvs diff -u
And send me the results. I can also send you an exe if you want one.
Roger
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Roger Binns
2003-09-17 04:17:54 UTC
Permalink
Post by Alan Gonzalez
it's an import, but it's in an if statement. Is that a problem?
It shouldn't be.

I recommend you change around line 973 of gui.py to be like this:

if usingvx10:
import com_lgvx10 as thephone
elif usingvx4400:
import com_lgvx4400 as thephone
else:
raise some sort of error

try:
self.commphone=thephone.Phone(self, comport)
except Exception,_:
comport.close()
Post by Alan Gonzalez
dunno, just was seeing how it was done.
Ok, here is the full description.

The help is authored using HelpBlocks. The files it maintains
are in Microsoft HTML Help project format. It invokes the
Microsoft Help Compiler to produce the HTML Help format file
(bitpim.chm). It builds the wxWindows help format itself. This
format is actually just a zip file of the help project and
named bitpim.htb.

On Windows I currently ship both files. The help link in the
start menu points to the CHM file. BitPim when running uses
the wxWindows help file. This is because wxPython doesn't
wrap the CHM help controller. There is a strong chance it will
be in the next wxPython release, at which point the Windows
version of BitPim will ship with only the CHM.

The build process invokes some of my files first. The main one
turns the helpids into generated code (helpids.py). It then
asks HelpBlocks to build the help. HelpBlocks actually has
a builtin macro processor, so it rebuilds all the HTML source
files, and then invokes the Microsoft Help Compiler to make
the CHM and builds the HTB itself.

py2exe is then used to make the Windows executable, grab the
associated DLLs etc.

I use Resource Hacker to add an icon to the executable.

Finally InnoSetup is used to produce the installer.

On Linux, I use the help file committed into CVS, and use
cx_Freeze to produce a binary and associated shared libraries.
Finally my own rpm spec file is used to produce the RPM from
those files.

Roger
Alan Gonzalez
2003-09-17 01:56:02 UTC
Permalink
Interesting read on lg vx10,lg vx4400. Basically ways to make the system
unresponsive

we should put some smarts in for these

http://brewforums.qualcomm.com/showthread.php?s=fb54027fb19ac26a6c5c55a2d215a57f&threadid=1862&highlight=vx10



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Roger Binns
2003-09-17 03:52:51 UTC
Permalink
Post by Alan Gonzalez
Interesting read on lg vx10,lg vx4400. Basically ways to make the system
unresponsive
You will soon find out just how dumb the software in these phones are.
Cell phone manufacturers think they are in the hardware business, but
they really are in the software business.

The hardware is easy to come by. I believe the VX4400 is based on this:
http://www.cdmatech.com/solutions/pdf/msm5100.pdf

The software is the tricky part. Although Qualcomm supply the base,
it still takes a lot of good software engineering to make it have the
reliability and user friendliness consumers expect.

Parts such as the "diagnostics" serial protocols are only expected to
be used by tame developers, not open source programs with 150 downloads
a day :-)

Roger
Alan Gonzalez
2003-09-17 03:53:27 UTC
Permalink
I wanted to get some help on the phonebook entry I get back. I've been trying
to deduce what the packet is, but still can't. I see the ff bytes, but beyond
that nothing makes sense to what i see on my phone

I've put some print statements in extracephonebookentry

i print out len(packet), then

for x in range(0,len(packet)):
item = readlsb(packet[x]);
print str(item)

here's what i get:

length of packet is 102

19
255
19
1
1
0
0
0
0
0
0
231
254
126
0
0
0
0
17
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
199
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
60
106
46
53
76
71
84
77
53
50
48
67
111
110
110
101
99
116
111
114
95
49
57
57
0
0
0
0
0
0
0
0
0
0
0
0





__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Roger Binns
2003-09-17 04:07:05 UTC
Permalink
Post by Alan Gonzalez
I wanted to get some help on the phonebook entry I get back. I've been trying
to deduce what the packet is, but still can't. I see the ff bytes, but beyond
that nothing makes sense to what i see on my phone
I've put some print statements in extracephonebookentry
i print out len(packet), then
item = readlsb(packet[x]);
print str(item)
I recommend you use:

print common.datatohexstring(packet)

The way I figured out what was in an entry was by making an
entry when I entered the maximum number of characters and digits
for all fields. That soon shows you where they are. For some
remaining stuff, I would do something like change only the ringtone
and re-read the entry to see what bytes had changed.

Roger
Alan Gonzalez
2003-09-17 12:45:49 UTC
Permalink
Post by Alan Gonzalez
Post by Alan Gonzalez
I wanted to get some help on the phonebook entry I get back. I've been
trying
Post by Alan Gonzalez
to deduce what the packet is, but still can't. I see the ff bytes, but
beyond
Post by Alan Gonzalez
that nothing makes sense to what i see on my phone
I've put some print statements in extracephonebookentry
i print out len(packet), then
item = readlsb(packet[x]);
print str(item)
print common.datatohexstring(packet)
Ok will try that.
Post by Alan Gonzalez
The way I figured out what was in an entry was by making an
entry when I entered the maximum number of characters and digits
for all fields. That soon shows you where they are. For some
remaining stuff, I would do something like change only the ringtone
and re-read the entry to see what bytes had changed.
That's the way i've been figuring out things too.



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Alan Gonzalez
2003-09-17 12:49:17 UTC
Permalink
Post by Roger Binns
Post by Alan Gonzalez
it's an import, but it's in an if statement. Is that a problem?
It shouldn't be.
import com_lgvx10 as thephone
import com_lgvx4400 as thephone
raise some sort of error
self.commphone=thephone.Phone(self, comport)
comport.close()
well i import both now (not in an if) and my com_lgvx10.py is seen by py2exe
and compiled. then i do the if statement to pick the right commphone.

i'll try it again like you mention though since I didn't know you could import
a module into a generic variable type thingy.
Post by Roger Binns
Post by Alan Gonzalez
dunno, just was seeing how it was done.
Ok, here is the full description.
The help is authored using HelpBlocks. The files it maintains
are in Microsoft HTML Help project format. It invokes the
Microsoft Help Compiler to produce the HTML Help format file
(bitpim.chm). It builds the wxWindows help format itself. This
format is actually just a zip file of the help project and
named bitpim.htb.
On Windows I currently ship both files. The help link in the
start menu points to the CHM file. BitPim when running uses
the wxWindows help file. This is because wxPython doesn't
wrap the CHM help controller. There is a strong chance it will
be in the next wxPython release, at which point the Windows
version of BitPim will ship with only the CHM.
The build process invokes some of my files first. The main one
turns the helpids into generated code (helpids.py). It then
asks HelpBlocks to build the help. HelpBlocks actually has
a builtin macro processor, so it rebuilds all the HTML source
files, and then invokes the Microsoft Help Compiler to make
the CHM and builds the HTB itself.
py2exe is then used to make the Windows executable, grab the
associated DLLs etc.
I use Resource Hacker to add an icon to the executable.
Finally InnoSetup is used to produce the installer.
On Linux, I use the help file committed into CVS, and use
cx_Freeze to produce a binary and associated shared libraries.
Finally my own rpm spec file is used to produce the RPM from
those files.
Roger
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bitpim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Alan Gonzalez
2003-09-17 12:59:09 UTC
Permalink
I found out that on my lg vx10, I have to go into service mode to enable DM
Mode. I looked around for DM Mode information when I saw the phonebook init
message saying it couldn't enter DM.

Can you briefly explain what DM mode is?

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Roger Binns
2003-09-18 04:09:42 UTC
Permalink
Post by Alan Gonzalez
I found out that on my lg vx10, I have to go into service mode to enable DM
Mode. I looked around for DM Mode information when I saw the phonebook init
message saying it couldn't enter DM.
Can you briefly explain what DM mode is?
When I first started, the only way I knew of to start accessing the phonebook
or filesystem was to send AT$LGDMGO. I assumed that stood for data management
mode. Once in DM mode, you could send phonebook (0xff) and filesystem (0x59)
commands without any need to "switch" modes.

I then found out that that you could also send AT$QCDMG and that would set this
mode as well. But it also had the advantage of working on all the CDMA phones
that support this stuff. So I changed the code to send that instead. (That
is why the filesystem view works on phones other than the 4400).

I also found the phone gets very confused if you just intersperse commands
from the phonebook and filesystem. I then made it send the initialisation
command when switching command sets.

Roger
Alan Gonzalez
2003-09-18 00:04:07 UTC
Permalink
Post by Alan Gonzalez
Post by Alan Gonzalez
I wanted to get some help on the phonebook entry I get back. I've been
trying
Post by Alan Gonzalez
to deduce what the packet is, but still can't. I see the ff bytes, but
beyond
Post by Alan Gonzalez
that nothing makes sense to what i see on my phone
I've put some print statements in extracephonebookentry
i print out len(packet), then
item = readlsb(packet[x]);
print str(item)
print common.datatohexstring(packet)
The way I figured out what was in an entry was by making an
entry when I entered the maximum number of characters and digits
for all fields. That soon shows you where they are. For some
remaining stuff, I would do something like change only the ringtone
and re-read the entry to see what bytes had changed.
OK doing that print, I get:

length of packet is 102

00000000 13 ff 13 01 01 00 00 00 00 00 00 e7 fe 7e 00 00 .............~..
00000010 00 00 11 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000020 00 00 00 00 00 00 00 00 00 00 c7 00 00 00 00 00 ................
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000040 00 00 3c 6a 2e 35 4c 47 54 4d 35 32 30 43 6f 6e ..<j.5LGTM520Con
00000050 6e 65 63 74 6f 72 5f 31 39 39 00 00 00 00 00 00 nector_199......
00000060 00 00 00 00 00 00 ......


I can now read all 17 entries in my phonebook, but each one gives the same
packet of information.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Roger Binns
2003-09-18 00:32:58 UTC
Permalink
Post by Alan Gonzalez
I can now read all 17 entries in my phonebook, but each one gives the same
packet of information.
That isn't a phonebook entry you are reading! You may actually need to buy
something like DataPilot and sniff what it sends (use portmon from sysinternals.com).

Here is a trace from my LG VX4400.

17:27:20.389 LG-VX4400: Now in brew mode
17:27:20.389 COM4: Writing Data - 13 bytes
00000000 ff 15 4c 00 00 00 00 00 00 00 d1 90 7e ..L.........~

17:27:20.389 COM4: Begin reading until 0x7e
17:27:20.406 COM4: Read completed Data - 110 bytes
00000000 ff 15 4c d0 00 00 00 00 5c 00 01 00 00 00 00 00 ..L.....\.......
00000010 00 00 26 00 00 00 00 00 00 00 00 00 00 00 00 00 ..&.............
00000020 00 00 00 00 00 00 00 00 00 00 c8 00 00 00 00 00 ................
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000040 00 00 a1 9e 72 44 4c 47 2d 56 58 34 34 30 30 43 ....rDLG-VX4400C
00000050 6f 6e 6e 65 63 74 6f 72 00 54 72 6b 00 00 00 14 onnector.Trk....
00000060 00 ff 03 0c 2d 2d 52 65 73 65 72 73 4d 7e ....--ResersM~

17:27:20.406 LG-VX4400: Now in phonebook mode

17:27:20.406 LG-VX4400: Reading number of phonebook entries
17:27:20.406 COM4: Writing Data - 13 bytes
00000000 ff 11 4d 01 00 00 00 00 00 00 5e b1 7e ..M.......^.~

17:27:20.406 COM4: Begin reading until 0x7e
17:27:20.421 COM4: Read completed Data - 22 bytes
00000000 ff 11 4d d0 c1 00 00 00 04 00 6e 0c d1 31 00 00 ..M.......n..1..
00000010 00 00 26 02 e6 7e ..&..~
17:27:20.421 LG-VX4400: There are 38 entries

17:27:20.421 LG-VX4400: Reading entry 0
17:27:20.421 COM4: Writing Data - 13 bytes
00000000 ff 13 4e 01 00 00 00 00 00 00 74 a0 7e ..N.......t.~

An entry is returned at this point. Here is an example where I filled
in some of the fields on the phone with the maximum number of characters.

17:28:06.125 COM5: Begin reading until 0x7e
17:28:06.264 COM5: Read completed Data - 532 bytes
00000000 ff 13 c7 d0 ea 00 00 00 02 02 ea 00 00 00 25 00 ..............%.
00000010 4e 6e 61 64 61 64 61 64 61 64 61 64 61 64 61 64 Nnadadadadadadad
00000020 61 64 61 64 61 64 00 00 00 65 6d 61 69 6c 31 20 adadad...email1
00000030 61 64 61 64 61 64 61 64 61 64 61 64 62 64 61 64 adadadadadadbdad
00000040 61 64 61 64 61 65 62 64 61 64 61 64 61 64 61 64 adadaebdadadadad
00000050 62 64 61 64 61 64 61 64 61 00 00 00 00 00 00 00 bdadadada.......
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000000b0 00 00 00 00 00 00 00 00 00 00 00 00 77 77 77 2e ............www.
000000c0 6a 6d 6a 6d 6a 6d 6a 6d 6a 6d 6a 6d 6a 6d 6a 6d jmjmjmjmjmjmjmjm
000000d0 6a 6d 6a 6d 6a 6d 6a 6d 6a 6d 6b 6d 6a 6d 6a 6e jmjmjmjmjmkmjmjn
000000e0 6a 6d 6a 6d 6a 6d 6a 6d 6a 6d 6a 6d 00 00 00 00 jmjmjmjmjmjm....
000000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000110 00 00 00 02 00 00 00 31 31 31 31 31 31 31 31 31 .......111111111
00000120 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 1111111111111111
00000130 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 1111111111111111
00000140 31 31 31 31 31 31 31 00 32 32 32 32 32 32 32 32 1111111.22222222
00000150 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 2222222222222222
00000160 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 2222222222222222
00000170 32 32 32 32 32 32 32 32 00 00 00 00 00 00 00 00 22222222........
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000210 00 d1 25 7e ..%~

After each entry is read using the FF 13 command, the next entry is advanced
to using this command:

17:27:20.437 COM4: Writing Data - 13 bytes
00000000 ff 12 4f 01 00 00 00 00 00 00 36 6c 7e ..O.......6l~

17:27:20.437 COM4: Begin reading until 0x7e
17:27:20.483 COM4: Read completed Data - 22 bytes
00000000 ff 12 4f d0 c2 00 00 00 04 00 8d bc 45 0f 00 00 ..O.........E...
00000010 53 74 65 d6 13 7e Ste..~

Roger
Scott Craig
2003-09-18 06:38:11 UTC
Permalink
Post by Roger Binns
Post by Alan Gonzalez
I can now read all 17 entries in my phonebook, but each one gives the same
packet of information.
That isn't a phonebook entry you are reading! You may actually need to buy
something like DataPilot and sniff what it sends (use portmon from sysinternals.com).
I broke down and bought Datapilot for my tm520, which is supposed to be a
VX1, which is the non-brew version of the VX10.

Here is a trace of datapilot receiving the phonebook, with a lot of formatting added:

SEND: AT\r
RECV: AT\r\r\nOK\r\n

SEND: AT+GMI\r\n
RECV: AT+GMI\r\r\n+GMI:\sLG\sEle

SEND: AT+GMM\r\n
RECV: AT+GMM\r\r\n+GMM:\sLGE-TM

SEND: AT+GMQ\r\n
RECV: AT+GMQ\r\r\n+GMQ:\sR/W\sVE

SEND: AT$LGDMGO\r\n
RECV: AT$LGDMGO\r\r\nOK\r\n\n

SEND: FF 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RECV: FF 00 00 01 00 00 00 00 00 00 1B DC 7E

SEND: FF 15 01 01 00 00 00 00 00 00 28 D0 7E
RECV: FF 15 01 01 00 00 00 00 5C 00 01 00 00 00 00 00 00 00 02 00 00

SEND: 26 52 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RECV: 26 52 00 37 38 30 39 00 00 00 00 00 00 00 00 00 00 00 00 00 00

SEND: FF 11 02 01 00 00 00 00 00 00 1D 65 7E
RECV: FF 11 02 01 03 00 00 00 04 00 05 44 78 3F F5 10 7E

SEND: FF 13 03 01 00 00 00 00 00 00 58 7F 7E
RECV: FF 13 03 01 03 00 00 00 F5 00
03 00 00 00 01
56 69 65 6E 6E 61 00 65 6C 6C 00 00 00 00 00 00
00 00 00
34 37 32 33 38 35 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 1D
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 FF
00 38 30 39 37 31 36 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 FF
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 FF
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 FF 11 01
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 21 C0 7E

SEND: FF 12 04 01 00 00 00 00 00 00 AB AE 7E
RECV: FF 12 04 01 02 00 00 00 04 00 2B 28 DD 30 A7 9D 7E

SEND: FF 13 05 01 00 00 00 00 00 00 E9 62 7E
RECV: FF 13 05 01 02 00 00 00 F5 00
02 00 00 00 C7
31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36
00 01 00
31 32 33 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31
00 88
31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32
00 0B
31 32 33 34 31 32 33 34 48 48 48 48 31 32 33 34 54 54 54 54 31 32 33 34 31 32 33
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 FF
31 32 33 34 35 36 37 38 31 32 33 34 35 36 37 38 31 32 33 34 35 36 37 38 31 32 33 34 35 36 37 38
00 23 13 01
32 40 67 61 67 61 67 61 67 61 67 62 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61
00 30 38 7E

SEND: FF 12 06 01 00 00 00 00 00 00 C4 A5 7E
RECV: FF 12 06 01 00 00 00 00 00 00 C4 A5 7E

SEND: FF 07 07 01 00 00 00 00 00 00 F7 A9 7E
RECV: FF 07 07 01 00 00 00 00 00 00 F7 A9 7E
Roger Binns
2003-09-18 08:26:35 UTC
Permalink
Post by Scott Craig
SEND: 26 52 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RECV: 26 52 00 37 38 30 39 00 00 00 00 00 00 00 00 00 00 00 00 00 00
That is one I haven't seen before. However I did find that DataPilot
did send a lot of stuff that wasn't necessary.

Roger
Scott Craig
2003-09-19 04:15:11 UTC
Permalink
Post by Roger Binns
Post by Scott Craig
SEND: 26 52 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RECV: 26 52 00 37 38 30 39 00 00 00 00 00 00 00 00 00 00 00 00 00 00
That is one I haven't seen before. However I did find that DataPilot
did send a lot of stuff that wasn't necessary.
It's the lock code for the phone.

I've also started to write a class for the tm520, which will probably
work for the vx10. The phonebook messages are different from the
vx4400. I will send it to Roger when I get it working a little more.

Scott
Alan Gonzalez
2003-09-19 11:34:05 UTC
Permalink
Thanks, I'll try to use this info.
Post by Roger Binns
Post by Roger Binns
Post by Alan Gonzalez
I can now read all 17 entries in my phonebook, but each one gives the same
packet of information.
That isn't a phonebook entry you are reading! You may actually need to buy
something like DataPilot and sniff what it sends (use portmon from
sysinternals.com).
I broke down and bought Datapilot for my tm520, which is supposed to be a
VX1, which is the non-brew version of the VX10.
Here is a trace of datapilot receiving the phonebook, with a lot of
SEND: AT\r
RECV: AT\r\r\nOK\r\n
SEND: AT+GMI\r\n
RECV: AT+GMI\r\r\n+GMI:\sLG\sEle
SEND: AT+GMM\r\n
RECV: AT+GMM\r\r\n+GMM:\sLGE-TM
SEND: AT+GMQ\r\n
RECV: AT+GMQ\r\r\n+GMQ:\sR/W\sVE
SEND: AT$LGDMGO\r\n
RECV: AT$LGDMGO\r\r\nOK\r\n\n
SEND: FF 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RECV: FF 00 00 01 00 00 00 00 00 00 1B DC 7E
SEND: FF 15 01 01 00 00 00 00 00 00 28 D0 7E
RECV: FF 15 01 01 00 00 00 00 5C 00 01 00 00 00 00 00 00 00 02 00 00
SEND: 26 52 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RECV: 26 52 00 37 38 30 39 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SEND: FF 11 02 01 00 00 00 00 00 00 1D 65 7E
RECV: FF 11 02 01 03 00 00 00 04 00 05 44 78 3F F5 10 7E
SEND: FF 13 03 01 00 00 00 00 00 00 58 7F 7E
RECV: FF 13 03 01 03 00 00 00 F5 00
03 00 00 00 01
56 69 65 6E 6E 61 00 65 6C 6C 00 00 00 00 00 00
00 00 00
34 37 32 33 38 35 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00
00 1D
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00
00 FF
00 38 30 39 37 31 36 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00
00 FF
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00
00 FF
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00
00 FF 11 01
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 21 C0 7E
SEND: FF 12 04 01 00 00 00 00 00 00 AB AE 7E
RECV: FF 12 04 01 02 00 00 00 04 00 2B 28 DD 30 A7 9D 7E
SEND: FF 13 05 01 00 00 00 00 00 00 E9 62 7E
RECV: FF 13 05 01 02 00 00 00 F5 00
02 00 00 00 C7
31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36
00 01 00
31 32 33 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35
36 37 38 39 30 31
00 88
31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32 31 32
31 32 31 32 31 32
00 0B
31 32 33 34 31 32 33 34 48 48 48 48 31 32 33 34 54 54 54 54 31 32 33 34 31 32
33
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 FF
31 32 33 34 35 36 37 38 31 32 33 34 35 36 37 38 31 32 33 34 35 36 37 38 31 32
33 34 35 36 37 38
00 23 13 01
32 40 67 61 67 61 67 61 67 61 67 62 67 61 67 61 67 61 67 61 67 61 67 61 67 61
67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61 67 61
00 30 38 7E
SEND: FF 12 06 01 00 00 00 00 00 00 C4 A5 7E
RECV: FF 12 06 01 00 00 00 00 00 00 C4 A5 7E
SEND: FF 07 07 01 00 00 00 00 00 00 F7 A9 7E
RECV: FF 07 07 01 00 00 00 00 00 00 F7 A9 7E
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bitpim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Alan Gonzalez
2003-09-19 20:34:41 UTC
Permalink
Ok, I skipped to the calendar for now.

though i'll have a question on that a little later.
Post by Scott Craig
Post by Roger Binns
Post by Scott Craig
SEND: 26 52 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RECV: 26 52 00 37 38 30 39 00 00 00 00 00 00 00 00 00 00 00 00 00 00
That is one I haven't seen before. However I did find that DataPilot
did send a lot of stuff that wasn't necessary.
It's the lock code for the phone.
I've also started to write a class for the tm520, which will probably
work for the vx10. The phonebook messages are different from the
vx4400. I will send it to Roger when I get it working a little more.
Scott
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bitpim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Alan Gonzalez
2003-09-19 22:23:21 UTC
Permalink
Ok, I've switched briefly to the calendar. the vx10 only holds date time and
description.


I've decoded the date/time but since it's based off the Jan 1, 1980, I am not
getting the dates displayed. The numbers i have for y,m,d,h,m seem right.
yet they are small since they are based off the epoch. how do i convert them
to display correctly in the calendar?


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Alan Gonzalez
2003-09-19 22:57:28 UTC
Permalink
Post by Alan Gonzalez
Ok, I've switched briefly to the calendar. the vx10 only holds date time and
description.
I've decoded the date/time but since it's based off the Jan 1, 1980, I am not
getting the dates displayed. The numbers i have for y,m,d,h,m seem right.
yet they are small since they are based off the epoch. how do i convert them
to display correctly in the calendar?
Well I did this:
date = readlsb(data[pos+3:pos+7])
date+=self._brewepochtounix
entry['start']=brewdecodedate(date)

then changed brewdecodedate to do this:
newdate = time.localtime(val)
year=newdate[0]
month=newdate[1]
day=newdate[2]
hour=newdate[3]
min=newdate[4]
return (year, month, day, hour, min)

my epoch conversion is different too, only 16hrs

# plus a fudge factor of 4 days, 16 hours for no reason I can find
_brewepochtounix=315532800+403200

So now i have entries showing up in the calendar :)

i'll update to cvs now.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Alan Gonzalez
2003-09-23 03:47:22 UTC
Permalink
-
Post by Scott Craig
I broke down and bought Datapilot for my tm520, which is supposed to be a
VX1, which is the non-brew version of the VX10.
You know I was just looking over last weeks emails and you are right, my lgvx10
is probably the same as your tm520. Did you see my phonebook trace, I didn't
really look at it too closely till now, in that message I posted:

length of packet is 102

00000000 13 ff 13 01 01 00 00 00 00 00 00 e7 fe 7e 00 00
.............~..
00000010 00 00 11 00 00 00 00 00 00 00 00 00 00 00 00 00
................
00000020 00 00 00 00 00 00 00 00 00 00 c7 00 00 00 00 00
................
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
................
00000040 00 00 3c 6a 2e 35 4c 47 54 4d 35 32 30 43 6f 6e
..<j.5LGTM520Con
00000050 6e 65 63 74 6f 72 5f 31 39 39 00 00 00 00 00 00
nector_199......
00000060 00 00 00 00 00 00 ...

You can see in the trace it says LGTM520Connector_199!

Anyways, how is your phonebook debugging going?

Alan

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Loading...