Write driver to connect to image device (Twain) in Linux

Σε Εξέλιξη Αναρτήθηκε Jan 6, 2015 Πληρώθηκε κατά την παράδοση
Σε Εξέλιξη Πληρώθηκε κατά την παράδοση

We have an imaging device that currently has a Windows driver, and we need to communicate with it in Linux:

- The device: [login to view URL]

The windows driver/sample application has a lot of functionality. We need NONE of this. All we need is:

1. Connect to the device

2. Turn on the lights

3. Capture an image

To do this, the documentation states that you will simply need to simulate a dll function call to:

-Call IO_CaptureImage,

- get image data (Binary), and put it into a buffer, which is 1024*1280*3 in length

The source code of the windows sample application is here:

- [login to view URL]

You do not need to worry about any of the OCR functions, etc. All we need is to capture an image. It appears that the device is a TWAIN device.

You may NOT:

- Just run virtualbox (wine can be permitted if it is the only option)

- Use X (This will be running on a server)

To test:

- You will be given SSH access to a dedicated server 24/7 where the device will be connected, and you can do all the testing as you please

Currently, the device is connected through USB on linux and properly appears on the USB Bus:

Ex. cat /sys/bus/usb/devices/3-1/

3-1:1.0/ bDeviceSubClass configuration idProduct product urbnum

authorized bmAttributes descriptors idVendor quirks version

avoid_reset_quirk bMaxPacketSize0 dev ltm_capable removable

bcdDevice bMaxPower devnum manufacturer remove

bConfigurationValue bNumConfigurations devpath maxchild speed

bDeviceClass bNumInterfaces driver/ port/ subsystem/

bDeviceProtocol busnum ep_00/ power/ uevent

Output of lsusb-v:

Bus 003 Device 006: ID 0a82:0612 Syscan
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0a82 Syscan
idProduct 0x0612
bcdDevice 2.00
iManufacturer 1
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0

Linux

Ταυτότητα Εργασίας: #6946554

Σχετικά με την εργασία

2 προτάσεις Απομακρυσμένη εργασία Ενεργό Apr 13, 2015

2 freelancers κάνουν προσφορές κατά μέσο όρο $708 για αυτή τη δουλειά

webrevolution

Hello, I have huge experience in Linux server Also about LAMP architecture, I have atleast 10 years experience in LAMP. I can help you transfer hosting , help you backup your data reliably or restore your Περισσότερα

$666 CAD σε 10 μέρες
(5 Αξιολογήσεις)
3.8