Re: getfiles truncating certain files (n6230)
Cellular manager for mobile phones/modems
Brought to you by:
marcinello,
nijel
From: Troy E. <te...@fl...> - 2005-08-13 19:19:50
|
More info: Using some basic debugging in gammu/gammu.c, I see that the call to Phone->GetFilePart() is returning ERR_EMPTY after exactly 2000 bytes (using the JAD file of 2285 as test case). Some sample output where I bypass the safety checks and add some messages: $ gammu/gammu --getfiles c:/55 GSM_Error: 1 Used: 1000 Size: 2285 Getting "wvim3_en-US_es-US_fr-CA_pt-BR.jad" 43 percenttes left) GSM_Error: 1 Used: 2000 Size: 2285 87 percent GSM_Error: 22 Used: 2000 Size: 2285 87 percentEntry is empty So, the next question if anyone can help, how do I know which of the various GetFilePart functions are called (ie, what's my Phone* to)? My .gammurc looks like: port = 00:E0:03:50:BD:07 connection = bluephonet The output of gammu --identify is: Manufacturer : Nokia Model : 6230 (RH-28) Firmware : 05.40 I (18-04-05) Hardware : 0752 Which of the ones am I after to start debugging, OBEXGEN_GetFilePart? N6510_GetFilePart? I'm not sure which callback is in use here to start digging in... thanks, -te Troy Engel wrote: > On my N6230, there are two files on the phone system: > > c:/55;File;"wvim3_I_6230_Generic";"wvim3_en-US_es-US_fr-CA_pt-BR.jad";"Mon > 18 Apr 2005 02:16:48 PM ";2285; > c:/56;File;"wvim3_I_6230_Generic";"wvim3_en-US_es-US_fr-CA_pt-BR.jar";"Mon > 18 Apr 2005 02:16:49 PM ";69297;P > > Grabbing the files over bluetooth, the first one is getting truncated to > exactly 2000 and the second one to 69000, instead of the expected 2285 > and 69297. Using textall doesn't show any errors, and it thinks it's > computing the CRC correctly, but yet the jarfile is still corrupt when I > try to unzip it. > > Any ideas? > -te > > -- > Troy Engel | Systems Engineer > Fluid Inc. | http://www.fluid.com > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Gammu-users mailing list - > https://lists.sourceforge.net/lists/listinfo/gammu-users > -- Troy Engel | Systems Engineer Fluid, Inc | http://www.fluid.com |