Board/USB/USB1006-DAT/USB1006-DAT.md
... ...
@@ -1,15 +1,44 @@
1 1
2 2
# USB1006
3 3
4
-- baudrate 9600
4
+- output interface serial. default baudrate 9600 - [[USB-TTL-dat]]
5 5
6 6
![](2023-10-13-13-55-58.png)
7 7
8
-First can you double check the output signal is RS232 or TTL? The correct  input signal should be TTL, which differs from RS232.
9 8
10
-You have to find a USB-TTL testing bridge cable or PCB Board to test, for example, CH340, FT232, CP210x.
11 9
12
-- [[USB-TTL-dat]]
10
+## USB-HID Device
11
+
12
+![](2023-10-13-14-05-39.png)
13
+
14
+* The Board is driver free in WIN 10, and recgnized as "USB input device", see attached image.
15
+
16
+
17
+## Mode Setup
18
+* All Jumper off: Mode 0
19
+* #1 Jumper on: Mode 1
20
+* #2 Jumper on: Mode 2
21
+* #3 Jumper on: Mode 3
22
+* #4 Jumper on: High speed mode
23
+
24
+
25
+### Mode 0
26
+* This mode only supports the conversion of characters corresponding to visible ASCII codes (such as a-z, 0-9, @, #, $, etc.) into standard USB key values.
27
+* Special function: If the received serial data packet encounters 0x1B, the data after 0x1B in the current packet will be discarded, and 0x1B will be converted into the enter key.
28
+### Mode 1
29
+* This mode only supports the conversion of characters corresponding to visible ASCII codes (such as a-z, 0-9, @, #, $, etc.) into standard USB key values.
30
+### Mode 2
31
+* This mode only supports the conversion of characters corresponding to visible ASCII codes (such as a-z, 0-9, @, #, $, etc.) into standard USB key values.
32
+* Special function: If the received serial data packet encounters 0x28, it will convert 0x28 into the enter key.
33
+###Mode 3
34
+* This mode is a transparent transmission mode, which is not only used to transmit visible ASCII characters. Standard USB full keyboard function can be realized in this mode.
35
+* Every 8 bytes of serial data form a packet, and after every 8 bytes received by the chip, it is directly packaged and uploaded through the USB port. That is, the chip is in the transparent transmission mode, and the serial port data is not analyzed and converted, and directly uploaded in a packet of 8 bytes. Therefore, the serial port data must be sent according to the standard USB keyboard data packet.
36
+* For example, if "A" is pressed, the serial port will send data packets: 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00;
37
+* For example, if the analog "A" is released, the serial port sends data packets as: 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00;
38
+* For example, if you press "A+SHIFT" simultaneously, the serial port will send data packets: 0x02, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00;
39
+
40
+
41
+Please refer to datasheet of modes
13 42
14 43
## Wriing
15 44
... ...
@@ -20,13 +49,20 @@ The wiring please try:
20 49
- GND - GND
21 50
22 51
23
-## Result
24
-And last, you need to send by hexadecimal from your device, and receive a text string on the USB HID side.
25
-e.g.
52
+## Example demonstration
53
+
54
+- First can you double check the output signal is RS232 or TTL? The correct  input signal should be TTL, which differs from RS232.
55
+- You have to find a USB-TTL testing bridge cable or PCB Board to test, for example, CH340, FT232, CP210x.
56
+
57
+For example,
58
+
59
+- if you want to send the string "Hello" to the computer through the serial port, select 0 for the module mode
60
+- Enter the hexadecimal number in the serial port: 0x48 0x65 0x6c 0x6c 0x6f.
61
+- Open a txt text file at random on the computer, and when the serial port is sent, "Hello" will be displayed on the text.
62
+- And last, you need to send by hexadecimal from your device, and receive a text string on the USB HID side.
26 63
27 64
0x48 0x65 0x6c 0x6c 0x6f -> Hello (open a text editor to see)
28 65
29
-Best regards,
30 66
31 67
32 68