From: Adit P. <apa...@ba...> - 2004-01-12 06:42:34
|
Hi all, I have been monitoring this project for a little while and thought I might share some input. I am not sure if this is the right place to do so, since I am not a member of the development team. I know how to code, but I have not dabbled in Python before. I downloaded the appropriate libraries, and have fiddled around with the code a little. Anyways, I have a Sanyo SCP-5500 (Readylink/video phone) and the USB device ID shows up the same as the SCP-4900 listed in com_sanyo.py. I am using the FutureDial drivers and the phone works in other programs. I have been successful in getting the filesystem view to work, but I get an error when trying to import any kind of data. Here is the output of what USB View says for my phone: Device Descriptor: bcdUSB: 0x0101 bDeviceClass: 0x02 bDeviceSubClass: 0x00 bDeviceProtocol: 0x00 bMaxPacketSize0: 0x08 (8) idVendor: 0x0474 (Sanyo Electric Co. Ltd.) idProduct: 0x0701 bcdDevice: 0x0000 iManufacturer: 0x01 iProduct: 0x02 iSerialNumber: 0x03 bNumConfigurations: 0x01 Here is the error for example when trying to import the phonebook (latest CVS checkout around 1AM 01/12/04): Traceback (most recent call last): File "C:\projects\bitpim\bitpim\gui.py", line 148, in run res=call() File "C:\projects\bitpim\bitpim\gui.py", line 89, in __call__ return apply(self.method, self.args+args, d) File "C:\projects\bitpim\bitpim\gui.py", line 1037, in getdata i[1](results) File "C:\projects\bitpim\bitpim\com_sanyo.py", line 218, in getphonebook buf=prototypes.buffer(self.getsanyobuffer(sortstuff.startcommand, sortstuff.bufsize, "sort buffer")) File "C:\projects\bitpim\bitpim\com_sanyo.py", line 98, in getsanyobuffer res=self.sendpbcommand(req, p_sanyo.bufferpartresponse); File "C:\projects\bitpim\bitpim\com_sanyo.py", line 133, in sendpbcommand self.setmode(self.MODEPHONEBOOK) File "C:\projects\bitpim\bitpim\com_phone.py", line 96, in setmode res=getattr(self, func)() File "C:\projects\bitpim\bitpim\com_sanyo.py", line 70, in _setmodephonebook self.sendpbcommand(req, respc, callsetmode=False) File "C:\projects\bitpim\bitpim\com_sanyo.py", line 163, in sendpbcommand res.readfrombuffer(buffer) File "C:\projects\bitpim\bitpim\p_sanyo.py", line 213, in readfrombuffer self.__field_date3.readfrombuffer(buf) File "C:\projects\bitpim\bitpim\prototypes.py", line 320, in readfrombuffer self._value=buf.getnextbytes(self._sizeinbytes) File "C:\projects\bitpim\bitpim\prototypes.py", line 766, in getnextbytes raise IndexError("Trying to read "+`howmany`+" bytes starting at "+`self._offset`+" which will go beyond end of "+`len(self._data)`+" byte buffer") IndexError: Trying to read 11 bytes starting at 48 which will go beyond end of 55 byte buffer Variables by last 6 frames, innermost last Frame setmode in C:\projects\bitpim\bitpim\com_phone.py at line 98 desiredmode = 'modephonebook' self = <com_sanyo8100.Phone instance at 0x019E0E68> strmode = 'brew' strdesiredmode = 'phonebook' func = '_setmodephonebook' v = 'writefile' Frame _setmodephonebook in C:\projects\bitpim\bitpim\com_sanyo.py at line 73 self = <com_sanyo8100.Phone instance at 0x019E0E68> req = <p_sanyo.firmwarerequest object at 0x019CE9B0> respc = <class 'p_sanyo.firmwareresponse'> Frame sendpbcommand in C:\projects\bitpim\bitpim\com_sanyo.py at line 163 writemode = False d = -1 responseclass = <class 'p_sanyo.firmwareresponse'> buffer = <prototypes.buffer instance at 0x019EADA0> res = <p_sanyo.firmwareresponse object at 0x019CE1F0> callsetmode = False firsttwo = '\x00x' request = <p_sanyo.firmwarerequest object at 0x019CE9B0> data = '\x00Oct 30 200316:13:13Feb 17 200309:00:00SCP5500 j\x06\x16 self = <com_sanyo8100.Phone instance at 0x019E0E68> numretry = 0 Frame readfrombuffer in C:\projects\bitpim\bitpim\p_sanyo.py at line 213 buf = <prototypes.buffer instance at 0x019EADA0> self = <p_sanyo.firmwareresponse object at 0x019CE1F0> dict = {'sizeinbytes': 11, 'terminator': None} Frame readfrombuffer in C:\projects\bitpim\bitpim\prototypes.py at line 320 self = <prototypes.STRING object at 0x019CE390> buf = <prototypes.buffer instance at 0x019EADA0> Frame getnextbytes in C:\projects\bitpim\bitpim\prototypes.py at line 766 self = <prototypes.buffer instance at 0x019EADA0> howmany = 11 I hope this helps for the project. Adit |