Low Hateria Count

Hardware and software engineer, who wants to keep it simple. Fan of three eyed Tuaturas/Haterias.
Hardware and software engineer, who wants to keep it simple. Fan of three eyed Tuaturas/Haterias.
1x DP to 2x HDMI

1x DP to 2x HDMI



HW description in web-shops often lacks important information. I haven’t been able to find this device outside of Czech Republic, so I won’t translate details of the description. Translation of the title in one of the shops is: “PremiumCord adapter mini DisplayPort – 2x HDMI, extension + mirroring of image, 4K*2K@30Hz kportadm18” and there isn’t much extra information in the description. Google didn’t find any datasheet or manual.

You may think this device would merge two screens to one wider virtual screen like Matrix Dualhead2Go did, but it didn’t. It just tunnels both screens via one DP directly to the graphic card. Therefore it will not allow to connect the 4th screen to my integrated Intel graphics card in Lenovo T540p, which is limited to three screens. So the Linux utility xrandr reports:

xrandr: cannot find crtc for output eDP-1

when I try to add a 4th screen.

Have I been deceived to buy useless junk? Not exactly. I’m trying to add more screens for some time now, so I have expected it will not work and I can use it for another computer. But this text may help you to decide if this piece of HW will solve your problem or not.


Z popisu v obchode je obcas tezke poznat, co vlastne dany kus hardware dela. Posudte sami:

PremiumCord adaptér mini DisplayPort – 2x HDMI, rozšíření + zrcadlení obrazu, 4K*2K@30Hz kportadm18
Popis produktu
Značkový adaptér, který slouží k propojení zařízení s DisplayPort výstupem se dvěma HDMI protějšky (například počítačovými monitory nebo s televizní obrazovkou).
Obraz na výstupních zařízeních lze například rozšířit nebo zrcadlit. Systém podporuje technologii MST pro snadný přenos páru obrazů přes jediný DisplayPort výstup. Délka kabelu činí 20 cm.

Ve vypisu vlastnosti naleznete navic

 EAN: 8592220015510

a podle nej lze nalezt nekolik dalsich informaci, z nihz nektere se nezdaji byt pravdive: “Napájení z DisplayPort sběrnice”, protoze zarizeni je napajeno microUSB konektorem (nemohu ale vyloucit, ze na nekterych pocitacich zvlada oboji).

Spoji dva monitory do jednoho virtualniho (jako to umel napriklad Matrix Dualhead2Go)? Nebo jen pripoji dva monitory za pomoci jednoho DP portu? To se nikde nepise.

Google nabizi jen dalsi ceske eshopy, kde lze zarizeni koupit at uz se hleda podle nazvu (kportadm18) a vyrobce, nebo podle EAN.

Takze jsem zarizeni koupil a otestoval.

Co to umi?

Pripojit dva monitory k pocitaci s mini-DP vystupem pujde, pokud graficka karta zvladne dva monitory (to snad zvladnou vsechny).

Pripojit tri monitory (dva za pomoci tohoto zarizeni) pujde i k integrovanym grafickym kartam intel. Overeno na Lenovo T540p.

Pripojit ctyri monitory nejde, pokud graficka karta neumi ctyri monitory. Proc? Protoze toto zarizeni pouze pripoji dva monitory za pomoci jednoho DP portu. Ve vypisu z xrandr-u se objevi dva nove monitory a v okamziku, kdy se pokusite pripojit ctvrty, dostanete tuto chybu:

xrandr: cannot find crtc for output eDP-1

Zaver

Takze jsem se nechal napalit? Ani ne, napul jsem to ocekaval a dokazi to vyuzit i k jinemu ucelu, nez jsem puvodne planoval. Ale pokud hledate neco, co spoji dva monitory tak, aby je graficka karta videla jako jeden, toto zarizeni to neni.

Posted by Low Hateria Count in Linux, 1 comment
Simple serial sniffer

Simple serial sniffer


I needed to see what’s going on my serial port to test some new hardware. Screen isn’t very usable when these values aren’t printable ASCII characters and using hexdump isn’t very practical due to buffering and printing it when whole line accumulates. So I have created this simple piece of code in python: serial_hexsniffer.py.

How it works

It uses python library serial to read byte by byte from selected serial port. All these bytes are printed to stdout in hexadecinal and decadic representation. If the value is between 0x20 (space) and 0x7E it’s printed as ascii character too.

What it needs to run

Linux and python (developed on 2.7)

Example

serial_hexsniffer.py /dev/ttyUSB0 115200



Pri debuggovani ruzneho hardware obcas potrebuji videt, co se deje na seriovem portu. Screen funguje pekne, dokud jsou vsechny znaky tisknutelne ASCII. Hexdump bufferuje a ceka, dokud nemuze vypsat cely radek, takze mi nezbylo, nez si napsat svoje reseni:
serial_hexsniffer.py.

Jak to funguje

Cte to ve smycce byte po bytu ze seriaku za pomovi pythonovske knihovny serial. Vsechny vypise na standardni vystup v hexa a dekadicky, pokud je znak navic tisknutelny (0x20-0xFE), vypise i ASCII znak.

Co to potrebuje k behu

Linux a python (vyvinuto na verzi 2.7)

Priklad

serial_hexsniffer.py /dev/ttyUSB0 115200

Posted by Low Hateria Count in Linux, 0 comments