Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-30-2009, 01:38 PM   #1
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Development: HTC-HD2 and Android phone - sort of

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
Starson17 is offline   Reply With Quote
Old 12-30-2009, 04:03 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The BCD for that device is 0 but there are some problems with it. The drive identification string has no VEN_ and PROD_ information, which is what is used to identify the drives in windows (compare it with the strings for your hard drive for instance).
kovidgoyal is offline   Reply With Quote
Advert
Old 12-30-2009, 08:10 PM   #3
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by kovidgoyal View Post
The BCD for that device is 0 but there are some problems with it. The drive identification string has no VEN_ and PROD_ information, which is what is used to identify the drives in windows (compare it with the strings for your hard drive for instance).
I see. I take it that there's no way for Calibre to treat the device as a supported reader? I guess I'll just use have to keep using it as a save-to-disk device using the drive letter. Thanks for the reply.
Starson17 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTC EVO Android phone wodin Android Devices 5 06-29-2011 06:20 PM
htc hd2 android hd2 caveking66 Android 1 09-08-2010 12:21 PM
Sprint's new Android HTC phone EVO has 4.3" Screen =X= News 1 03-26-2010 03:31 PM


All times are GMT -4. The time now is 12:19 AM.


MobileRead.com is a privately owned, operated and funded community.