^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) =============================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) USB 7-Segment Numeric Display
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) =============================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Manufactured by Delcom Engineering
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) Device Information
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) ------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) USB VENDOR_ID 0x0fc5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) USB PRODUCT_ID 0x1227
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Both the 6 character and 8 character displays have PRODUCT_ID,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) and according to Delcom Engineering no queryable information
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) can be obtained from the device to tell them apart.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Device Modes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) ------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) By default, the driver assumes the display is only 6 characters
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) The mode for 6 characters is:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) MSB 0x06; LSB 0x3f
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) For the 8 character display:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) MSB 0x08; LSB 0xff
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) The device can accept "text" either in raw, hex, or ascii textmode.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) raw controls each segment manually,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) hex expects a value between 0-15 per character,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) ascii expects a value between '0'-'9' and 'A'-'F'.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) The default is ascii.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Device Operation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) ----------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 1. Turn on the device:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) echo 1 > /sys/bus/usb/.../powered
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 2. Set the device's mode:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) echo $mode_msb > /sys/bus/usb/.../mode_msb
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) echo $mode_lsb > /sys/bus/usb/.../mode_lsb
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 3. Set the textmode:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) echo $textmode > /sys/bus/usb/.../textmode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 4. set the text (for example):
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) echo "123ABC" > /sys/bus/usb/.../text (ascii)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) echo "A1B2" > /sys/bus/usb/.../text (ascii)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) echo -ne "\x01\x02\x03" > /sys/bus/usb/.../text (hex)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 5. Set the decimal places.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) The device has either 6 or 8 decimal points.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) to set the nth decimal place calculate 10 ** n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) and echo it in to /sys/bus/usb/.../decimals
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) To set multiple decimals points sum up each power.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) For example, to set the 0th and 3rd decimal place
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) echo 1001 > /sys/bus/usb/.../decimals