PJLINK – COME INVIARE COMANDI AI VIDEOPROIETTORI VIA TELNET – HWT SEND COMMANDS TO PJLINK VIDEOPROJECTORS VIA TELNET

pjlink

>>>English speaking users, please read the second part of this post please<<<

ATTENZIONE! IL TUO PC DEVE ESSERE ABILITATO ALL’ESECUZIONE DI TELNET. SE NON LO FOSSE, SEGUI IL TUTORIAL SEGUENTE:

 

Al volo, come si conviene per i più esperti, riporto qualche dato utile per pilotare via telnet i videoproiettori che si basano su questo protocollo (tra i più conosciuti, Panasonic e Sony).

E’ importante sapere che è NECESSARIO DISABILITARE la password dell’utente amministratore.

La porta di comunicazione standard è la 4352.

Dal momento che la comunicazione col proiettore è interattiva, converrà utilizzare uno script per comunicare con il videoproiettore.

All’uopo recuperate il file TST10.exe (Scarica dalla sezione LAB-Downloads, 10) e usa come password “openme” senza doppi apici

Si tratta di un piccolo eseguibile che può essere programmato in modo molto semplice. Se lo avviate senza parametri (un doppio click, ad esempio) vi mostrerà qualche riga di Help, più che sufficiente a capire come farlo funzionare.

Per l’elenco completo dei comandi PJlink, potrete ricorrere ad un qualunque manuale di videoproiettore. Se cercate ad esempio il manuale del Panasonic PT-VW435NE nell’appendice troverete i comandi sia per effettuare richieste sullo stato del proiettore, sia per inviare vere e proprie istruzioni.

Se avete bisogno di maggiori informazioni anche su come utilizzare Telnet per pilotare videoproiettori NON-PJlink date un’occhiata a questo mio videotutorial, molto esaustivo:

[mx_youtuber type="video" id="9PB_bL7ksf8"]

Lo script:

192.168.0.105 4352
wait “PJLINK 0”
send “%1POWR 1\m”

Accenderà il videoproiettore con indirizzo IP 192.168.0.105

Lo script:

192.168.0.105 4352
wait “PJLINK 0”
send “%1INPT 31\m”

Collegherà l’input HDMI (31)

Per quanto riguarda le interrogazioni:

192.168.0.105 4352
wait “PJLINK 0”
send “%1POWR ?\m”

risponderà con un numero…0=standby; 1=on; 2=raffreddamento 3=riscaldamento

Nelle interrogazioni ATTENZIONE a lasciare uno spazio tra il comando e il punto interrogativo!

e poi…così via. L’essenziale ora vi è noto.

La sequenza \m significa, all’interno di TST10, “invio”, comando necessario per l’esecuzione della stringa di codice. Finché siete su Telnet è facile dare un “invio” ma non è così semplice se dovete farlo da script.

Se l’invio dei comandi dovrà essere effettuata tramite un programma di videomapping, ad esempio, (WatchOut…) l’invio potrà essere rappresentato (ma NON ne ho contezza!!!) dalle stringhe $0D oppure $0A$0D. E’ da provare, in questo momento non saprei essere più preciso di così.

Come si usa lo script?

E’ semplice: Crea una cartella c:\mytest, per esempio. Scrivi il tuo script in un file di testo e lo chiami “test.txt” e salvalo in c:\mytest. Nella stessa cartella metti anche l’eseguibile TST10.xe

Da MS-DOS (prompt dei comandi) lancia il seguente comando:

C:\mytest\TST10.exe /r:C:\mytest\test.txt

tutto qui!

——–FOR ENGLISH SPEAKING USERS—–

WARNING! YOUR PC MUST BE ENABLED TO TELNET. IF NOT, PLEASE FOLLOW THE HOWTO EXAMPLE AT THE END OF THIS ARTICLE

 

This is a brief explanation for whom have a good knowledge of this specific activity. Most of projectors are actually based on this protocol (Panasonic and Sony are the most known).

You MUST disable via devices’s web server (normally http://IPOfTheAppliance>) in order to make the following scripts work.

Standard communication port for PJlink is 4352

While the communication with the projector is interactive, it’s a good idea to use a SCRIPT in order to send Commands and/or queries to Videoprojector.

The easiest way is to use a little program called TST10.exe  (Download it from LAB-Downloads, item #10) and use  “openme” as password. You should find it on a number of sites, take a try!

TST10.exe is a little executable file that you can program very easily. If you run it without arguments after the name itself (or doubleclick it) the program will show a brief explanation (help) on how to use it.

For a compleate list of PJlink commands and Pjlink queries you can look for and download any videoprojector user maual, i.e.Panasonic PT-VW435NE. Near the very end of the manual you should find the PJlink chapter. Look there.

If you need some informations oh how to use Telnet for non-PJlink videoprojector, please watch the video at the end of the article.

Here the script:

192.168.0.105 4352
wait “PJLINK 0”
send “%1POWR 1\m”

Will turn on the Videoprojector IP# 192.168.0.105

The script:

192.168.0.105 4352
wait “PJLINK 0”
send “%1INPT 31\m”

Will link Videoprojection with HDMI (31) input

About queries:

192.168.0.105 4352
wait “PJLINK 0”
send “%1POWR ?\m”

will reply with a number…0=standby; 1=on; 2=cooling 3=warming

Please pay attention, when you ask for a query, to leave a space between the command keyword and the question point!

How to use the script?

It’s quite simple: Put your script into a .txt file. Let’s call it “test.txt” and save it in c:\mytest. Put there the executable, too, I mean TST10.xe

From MS-DOS prompt run the command:

C:\mytest\TST10.exe /r:C:\mytest\test.txt

That’s all!

…and so on. You DO CAN command a Videoprojector now!

The sequance \m means, used into TST10.exe program, “enter”. You have to use it mandatory to make the command code row be executed.

When you use Telnet from command line it’s easy to send the command but it more difficult when you have to use “enter” from the inside of a script.

/m will solve this problem.

If you have to send commands from the inside of a program, a videomapping one for instance (WatchOut…) the “enter” command should be send (but I haven’t tried it!!!) with code $0D or $0A$0D. You have make some trials, I cannot be more precise now.

 

 

[mx_youtuber type="video" id="9PB_bL7ksf8"]

No thoughts on “PJLINK – COME INVIARE COMANDI AI VIDEOPROIETTORI VIA TELNET – HWT SEND COMMANDS TO PJLINK VIDEOPROJECTORS VIA TELNET”