In Progress

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

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

- The device: [url removed, login to view]

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:

- [url removed, login to view]

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

Skills: Linux

See more: turn it in com, binary code test, binary code sample, code sys, wine port, Windows Driver, twain, sdk api, linux device, Linux device driver, device driver, c sdk api, ocr application, twain configuration, asp capture data, capture device usb, ssh linux, windows manufacturer, api usb power, linux call, can access call api, connect http, virtualbox com api, ocr function, linux test

About the Employer:
( 1 review ) Kanata, Canada

Project ID: #6946554

Awarded to:

yuriyvsl

Hello! before accepting answer please some questions, please do you realy need a driver or just a line tool is ok for you? Could you give me access to that ssh (prbably before accepting)? Could I install some l More

$670 CAD in 5 days
(4 Reviews)
2.8

4 freelancers are bidding on average $660 for this job

ppmag

Hi, thank you for really interesting project, but I can see real problem to do the project in described way. Reasons: 1) chinese SDK is closed source. Their diver ([url removed, login to view]) is binary only but it impleme More

$750 CAD in 21 days
(13 Reviews)
4.6
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 More

$666 CAD in 10 days
(2 Reviews)
3.0
russh82

Hello, ready to try your project. I am an experienced linux administrator and bash/php/c developer. Could you send me a `lsusb -v` out? Can the manufacturer (syscantech) give me a full documentation for writing devi More

$555 CAD in 30 days
(1 Review)
0.0