Help files and small fix to sk6100
Yosef Meller <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
Attached are the help files for sk6100. I hope I got it right. Also attached is a diff to fix an ommition of a phone type category that caused an exception when that category was used for an entry. I thought about checking if the phone type id is out of range and falling back to some default, which would be useful for supporting more advanced models with the same code, and it would also be harder to make it fail for a user. On the other hand, maybe it *should* crash on data I didn't prepare for, so it wouldn't leave the factory gates damaged. Also, I think that the spirit here is that new models get new implementations or nothing, leaving the guesswork and the 'maybe it just works' out of the project. Looks to me like my first thoughts are the 'perl way' vs the 'python way'. So, which one? What do you think? -- "Necessity may be the mother of invention but coffee is the fuel." - seen on web.archive.org
sk_fix_categories.diff
(text/plain, 1.2 KB)
Index: com_sk6100.py
===================================================================
RCS file: /cvsroot/bitpim/bitpim/com_sk6100.py,v
retrieving revision 1.1
diff -u -r1.1 com_sk6100.py
--- com_sk6100.py 20 Feb 2005 22:09:12 -0000 1.1
+++ com_sk6100.py 26 Feb 2005 07:33:41 -0000
@@ -20,7 +20,7 @@
serialsname='sk6100'
# This is ordered by the type id nums the phone uses:
- phonetypes = [ 'cell', 'home', 'office', 'fax' ]
+ phonetypes = [ 'cell', 'home', 'office', 'fax' ,'pager']
def __init__(self, logtarget, commport):
com_phone.Phone.__init__(self, logtarget, commport)
Index: guiwidgets.py
===================================================================
RCS file: /cvsroot/bitpim/bitpim/guiwidgets.py,v
retrieving revision 1.228
diff -u -r1.228 guiwidgets.py
--- guiwidgets.py 20 Feb 2005 22:58:27 -0000 1.228
+++ guiwidgets.py 26 Feb 2005 07:33:47 -0000
@@ -339,7 +339,7 @@
'SPH-A620 (VGA1000)': 'com_samsungspha620',
'SCH-A650': 'com_samsungscha650',
'SCH-A670': 'com_samsungscha670',
- #'SK6100' : 'com_sk6100',
+ 'SK6100' : 'com_sk6100',
'Other CDMA phone': 'com_othercdma',
}
phones-sk6100-cables.htm
(text/html, 639 B)
#define _HELP_NAVTREE_ID 79 #include "pagestart.h" <h2>Drivers</h2> <h3>Windows</h3> <p>Drivers for Windows XP are supplied by Pelephone. If you are using an older version of Windows, you might be out of luck.</p> <h3>Linux</h3> <p>For Linux, you need the cdc-acm kernel module. If you are using a distribution with udev, this should probably work out of the box, but if you don't, see that cdc-acm is compiled:</p> <pre> $ modprobe cdc-acm $ ls /dev/ttyACM* </pre> <p>If the first failed, you need to compile and install the module. If the second one failed, you need to create the device with mknod(1).</p> #include "pageend.h"
phones-sk6100.htd
(image/x-xbitmap, 587 B) - not displayed