lkml.org 
[lkml]   [2009]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectSeeking Guidance For Serial Driver Creation
From
Date
I am working on getting all of the hardware for a Panasonic CF-H1
supported. I am also interested in writing an OSS driver for the
internal barcode scanner device.

What I'm looking for is someone familiar with the serial API to take a
quick look at some data I've snooped from Windows' COM1 device--which I
acquired by running a serial snooping utility on the serial port from
the time that I push the "scan" button to the time it stops--and perhaps
offer a quick bit of advice on how I should proceed. I have a lot of
experience hacking EXISTING specialty drivers (things like pcc-acpi,
ibm-acpi, sony-acpi, sonypi, etc.) and I'm no stranger to low-level C
code, but this will be the first time I've written a serious driver from
scratch.

The information grokked from Windows can be found here:

http://jeremymoles.com/scanner

I've divided it up as best I can; unfortunately, this data is exported
as-is from the Windows tool. The most interesting file is probably:

http://jeremymoles.com/scanner/packet-view.html



Something to note is that unlike normal serial barcode scanners, the
actual "begin scanning" message isn't initiated by hardware. :( On a
traditional device it seems that you simply press a button on the
scanner and the text representation of that barcode is just dumped out
on the tty for you to read. In the case of this machine, a button on the
front (which must be handled in software) is pressed, and the OS takes
over and initializes the device and somehow informs it to "begin
scanning." I believe this is the function of the first few lines of each
of the files I've uploaded, but I could be wrong.

Thanks beforehand...



\
 
 \ /
  Last update: 2009-11-10 18:15    [W:0.019 / U:0.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site