Skip to content

Instantly share code, notes, and snippets.

@spuder
Last active May 11, 2023 08:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spuder/628a42e605cd4caa7c4f46dbf7bf47ea to your computer and use it in GitHub Desktop.
Save spuder/628a42e605cd4caa7c4f46dbf7bf47ea to your computer and use it in GitHub Desktop.
Tesmart RS232

Tesmart KVM have a RS232 connection that can be used to switch inputs remotely.

Example compatible hardware

  • HKS0802A1U

Hardware

Option A:

  • USB to RS232 Adapter (Any should work, but I use this one )

Option B:

Wiring

Connect 3 pins from the DB9 connector to the 3 pin connector on the back

image

Software (READ data)

Windows

  1. Install RealTerm
  2. Figure out your com port by going to device manager

image

  1. Connect using baud rate 9600

If you press a button on the KVM, you should see output in the terminal

set ch is 1
set chs is 1
Querry pc LED
Write EEPROM

To write data, consult the hex chart in your manual

mac

TODO: Document screen on mac

Software (Writting Data)

Screen Shot 2022-07-14 at 9 48 50 PM

Windows

Consult the chart above. In realterm add 0x before each letter and send to device

For example, to switch to input 1, the manual says to use command

AA BB 03 01 01 EE

Translate that to

0xAA 0xBB 0x33 0x11 0x11 0xEE

Then type it into the terminal on the 'Send' Screen

image

mac

TODO: Document writing data

@spuder
Copy link
Author

spuder commented Jul 23, 2022

More documentation here: https://github.com/spuder/Tesmart-KVM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment