CH9350

From ElectroDragon
Jump to navigation Jump to search
  • Default baud rate is 115200

Configuration

S1 / S0

  • 11 = mode 1/0 default
  • 10 = mode 2
  • 01 = mode 3
  • 00 = mode 4

baud1 / baud 0

  • 11 = 115200 baudrate default
  • 01 = 57600
  • 10 = 38400
  • 00 = 300 000

SEL

  • 1 = master mode
  • 0 = slave mode

CMD

Status request

57 AB 82 A3 -> this keep sending all the time

  • 57 AB fixed header
  • 82 CMD
  • A3 low four bits are IOs status

Read valid data

Read the "space" pressed on keyboard -> 57 AB 88 0B 10 00 00 2C 00 00 00 00 00 00 2C

  • 57 AB header
  • 88 -> CMD, read valid frames, 0x88 normally keyboard, 0x83 normally keyboard + mouse
  • 0B -> length
  • 10 -> HID flag
  • 00 00 2C 00 00 00 00 00 -> data: keyboard "space"
  • SN -> 00
  • Sum -> 2C