dektronics / printalyzer-timer

F-Stop enlarging timer and print exposure meter
24 stars 6 forks source link

Interface for communicating with various densitometers via the USB port #6

Closed dkonigsberg closed 3 years ago

dkonigsberg commented 3 years ago

This feature is an internal interface layer that is primarily needed to support #5 .

Various densitometers have mechanisms for interfacing with a computer to ease data input for processing measurements. They primarily do this via a serial-like interface. To make step-wedge-based paper profiles a lot less tedious to create, we should support this whenever possible.

For starters, using the USB port on the Printalyzer, it should be possible to directly capture readings from the following two densitometers:

dkonigsberg commented 3 years ago

The actual serial interfaces for both of these densitometers are almost trivial to handle. The real challenge appears to be that USB serial interfaces are not USB CDC class devices with existing support, and tend to use a vendor-specific device class. So, a prerequisite to adding this feature is implementing drivers for relevant popular USB serial chips.

As both the TRD-2 and my spare USB-to-Serial adapters use the FTDI FT232R chip, it probably makes sense to focus on support for that as a first step.

dkonigsberg commented 3 years ago

USB<->Serial adapter support added by: 8f39fe3e4f696fdabf6a5ff56dc742bcab0c58be c6ba9401a1326361b2ecbd35e770a2da240a4940 c92295699a10020d62b87e4733b849f8173a264a 894a3f0dc69531b906cc4c6330b4b1fb60d6c766 59690e0fd5dfe73d8c142b0391324d747fe70d15 1a5529376789b01d827b437e531bbedd0742e59b cf627fea2c7d3e3f12102f26b0492aa7e92eeea4 a864b34d06475cab1e2a191ce63983a1a6d96d49