The wife has an HTC HD2. It can be run as an Android, but it currently is run as a Windows Mobile Device. I'd like set it up as a supported device.
I've followed the basic development instructions and have calibredb spitting out "Hello World"
I've run calibre-debug -d and compared connected and not output. The following two lines are from the diff and seem to be the only ones that are relevant:
Code:
USB devices on system:
u'usb\\vid_0bb4&pid_0ffd&rev_0000',
Drives detected:
('USBSTOR\\DISK&VEN_&PROD_&REV_\\3FBF5000-7351-0801-3541-200313755930&
', 2, u'D:\\')
D: is the drive letter for the device.
I've looked at the driver.py for Android and some other simple driver.py files. I can see that the first line above includes the HTC Vendor ID (0x0bb4) and the Product ID (0x0ffd) I can't figure out the BCD used in the simplest driver.py files for mass storage files.
I'd like to either modify another driver.py to match the HTC HD2 under Windows Mobile or add a new one for HD2. As far as possible, I'd like to roll up my sleeves and do this myself, but guidance would be appreciated.
The Android driver assumes the user will run a WordPlayer. I have several readers that I use under Windows Mobile, with a wide variety of supported formats, so I'd like to play around with the ordered preference lists, directory names, etc.
(BTW, I've tried to talk to the device as an Android, without success.)
So my question is: What is the BCD and what other info might I need to convert/add a simple driver.py for the HD2.
If this isn't the right spot to ask this, let me know. I've read the
Customizing calibre section.
Thanks!
For completeness, in case the two lines above are not enough, here are the full outputs from calibre-debug -d:
Connected:
Code:
HD2:
C:\Util\Calibre2>calibre-debug -d
Version: 0.6.31
USB devices on system:
[u'usb\\root_hub&vid8086&pid3a39&rev0000',
u'usb\\root_hub&vid8086&pid3a36&rev0000',
u'usb\\root_hub&vid8086&pid3a35&rev0000',
u'usb\\root_hub&vid8086&pid3a34&rev0000',
u'usb\\root_hub&vid8086&pid3a38&rev0000',
u'usb\\root_hub&vid8086&pid3a37&rev0000',
u'usb\\root_hub20&vid8086&pid3a3c&rev0000',
u'usb\\root_hub20&vid8086&pid3a3a&rev0000',
u'usb\\vid_0409&pid_005a&rev_0100',
u'usb\\vid_0409&pid_005a&rev_0100',
u'usb\\vid_045e&pid_00d1&rev_0120',
u'usb\\vid_046d&pid_c049&rev_5200',
u'usb\\vid_046d&pid_c049&rev_5200&mi_00',
u'usb\\vid_046d&pid_c049&rev_5200&mi_01',
u'usb\\vid_0a5c&pid_2120&rev_0100',
u'usb\\vid_0a5c&pid_4500&rev_0100',
u'usb\\vid_0a5c&pid_4502&rev_0100',
u'usb\\vid_0a5c&pid_4503&rev_0100',
u'usb\\vid_0bb4&pid_0ffd&rev_0000',
u'usb\\vid_1a40&pid_0101&rev_0100']
Drives detected:
(ID, Partitions, Drive letter)
('IDE\\DISKMAXTOR_STM31000340AS____________________MX15____\\5&55CD8EB
0&0.0.0', 0, u'C:\\')
('SCSI\\DISK&VEN_HPT&PROD_DISK_1_0&REV_4.00\\6&31D8ED21&0&000000', 1,
'E:\\')
('USBSTOR\\DISK&VEN_&PROD_&REV_\\3FBF5000-7351-0801-3541-200313755930&
', 2, u'D:\\')
Looking for HANLINV3
Looking for HANLINV5
Looking for BLACKBERRY
Looking for CYBOOKG3
Looking for ILIAD
Looking for IREXDR1000
Looking for JETBOOK
Looking for KINDLE
Looking for KINDLE2
Looking for KINDLE_DX
Looking for NOOK
Looking for PRS505
Looking for PRS700
Looking for PRS500
Looking for ANDROID
Looking for N770
Looking for N810
Looking for CYBOOK_OPUS
Looking for COOL_ER
Looking for ESLICK
Looking for NUUT2
Looking for IRIVER_STORY
Looking for POCKETBOOK360
Looking for GER2
Looking for ITALICA
Looking for SHINEBOOK
Looking for ECLICTO
Looking for BOOX
Looking for EB600
Win32 exception occurred releasing IUnknown at 0x008dacc0
Win32 exception occurred releasing IUnknown at 0x008dd680
Win32 exception occurred releasing IUnknown at 0x008dc340
Press Enter to continue...
Win32 exception occurred releasing IUnknown at 0x008da8c0
Win32 exception occurred releasing IUnknown at 0x05beebe8
Win32 exception occurred releasing IUnknown at 0x008da6d8
Disconnected:
Code:
Disconnected:
C:\Util\Calibre2>calibre-debug -d
Version: 0.6.31
USB devices on system:
[u'usb\\root_hub&vid8086&pid3a39&rev0000',
u'usb\\root_hub&vid8086&pid3a36&rev0000',
u'usb\\root_hub&vid8086&pid3a35&rev0000',
u'usb\\root_hub&vid8086&pid3a34&rev0000',
u'usb\\root_hub&vid8086&pid3a38&rev0000',
u'usb\\root_hub&vid8086&pid3a37&rev0000',
u'usb\\root_hub20&vid8086&pid3a3c&rev0000',
u'usb\\root_hub20&vid8086&pid3a3a&rev0000',
u'usb\\vid_0409&pid_005a&rev_0100',
u'usb\\vid_0409&pid_005a&rev_0100',
u'usb\\vid_045e&pid_00d1&rev_0120',
u'usb\\vid_046d&pid_c049&rev_5200',
u'usb\\vid_046d&pid_c049&rev_5200&mi_00',
u'usb\\vid_046d&pid_c049&rev_5200&mi_01',
u'usb\\vid_0a5c&pid_2120&rev_0100',
u'usb\\vid_0a5c&pid_4500&rev_0100',
u'usb\\vid_0a5c&pid_4502&rev_0100',
u'usb\\vid_0a5c&pid_4503&rev_0100',
u'usb\\vid_1a40&pid_0101&rev_0100']
Drives detected:
(ID, Partitions, Drive letter)
('IDE\\DISKMAXTOR_STM31000340AS____________________MX15____\\5&55CD8EB&
0&0.0.0', 0, u'C:\\')
('SCSI\\DISK&VEN_HPT&PROD_DISK_1_0&REV_4.00\\6&31D8ED21&0&000000', 1, u
'E:\\')
Looking for HANLINV3
Looking for HANLINV5
Looking for BLACKBERRY
Looking for CYBOOKG3
Looking for ILIAD
Looking for IREXDR1000
Looking for JETBOOK
Looking for KINDLE
Looking for KINDLE2
Looking for KINDLE_DX
Looking for NOOK
Looking for PRS505
Looking for PRS700
Looking for PRS500
Looking for ANDROID
Looking for N770
Looking for N810
Looking for CYBOOK_OPUS
Looking for COOL_ER
Looking for ESLICK
Looking for NUUT2
Looking for IRIVER_STORY
Looking for POCKETBOOK360
Looking for GER2
Looking for ITALICA
Looking for SHINEBOOK
Looking for ECLICTO
Looking for BOOX
Looking for EB600
Win32 exception occurred releasing IUnknown at 0x0027d5c8
Win32 exception occurred releasing IUnknown at 0x0027abf8
Win32 exception occurred releasing IUnknown at 0x0027c208
Press Enter to continue...
Win32 exception occurred releasing IUnknown at 0x0027a8c0
Win32 exception occurred releasing IUnknown at 0x05bdebe8
Win32 exception occurred releasing IUnknown at 0x0027a6d8