Post by Roger BinnsHave you tried putting in delays between commands? The puny
real time operating systems in these phones are under various
timing constraints.
Tried it again after wiping the phone and doing a reset and the problem has
gone away. I should have tried this before sending this e-mail.
I probably messed it up with all the other things I was trying to make it
do. It freezes when you try to recover call history and sending media files
at any speed makes the display do things it wasn't programmed to. The one
good thing is that removing the battery has always fixed it.
I'll do some more testing with the features that I have gotten working and
check it in if it behaves. I'll put a note in the help about what to do if
it does lock up.
Post by Roger BinnsI'd also suggest following Stephen's answer and name the
directory something like experimental_support. That is a
more general purpose name and applies to both phones that are
defective as well as incomplete code.
I'll name it so.
One other item about this phone. I have managed to read partial jpeg images
from the phone. The command is AT+DDLU=0,"filename.jpg". The phone responds
with a base64 encoded byte stream which is the beginning of the file, it
contains the top of the picture. The stream is terminated with and '@' and
an OK. I cannot make it send the rest of the file, repeating the command
and/or changing the number just caues the start of the file to be resent,
waiting for the event does nothing, so I'm looking for suggestions. I tried
AT+CLAC (doesn't list the +DDLU command) AT+DDLU=? does not give anything
useful either. I also tried replacing the U in the DDLU with all other
letters with no luck, most of them do not form valid commands. (code snippet
below)
Joe, this phone is identical to the G4015 in the areas that do work, did you
experiment with copying files from the phone?
Given that no-one else supports this there is nothing to reverse engineer,
and none of the LG GSM tools work with this phone for imaage/ringtone
manipulation, so I'd welcome any ideas :)
Simon
def _get_media_file(self, file_name):
""" Add one media ringtone
"""
if not file_name:
return False
self.log('Writing media %s'%file_name)
_cmd='AT+DDLU=0,"%s"\r' % file_name
self.comm.write(str(_cmd))
# strip for the start of the response
self.comm.readuntil('>')
self.comm.read(1) # skip space
# read the raw file data
_data64=self.comm.readuntil('@')
# convert to binary
data=base64.decodestring(_data64[:-1])
if self.comm.read(10)!='\n\r\r\n\r\nOK\r\n':
return False
# need to figure out how to make phone send rest of file
return data