oK, tanks, but i would never figure out that, since there is no delay sending the command, only Vox freeze for 7 seconds.
I will revise the commands again, before send to you.
The python script its just a test to set Global Variables.
# global variables to use with python scripts
pyGc1Ip = "192.168.0.160" # Global Cache GC-100-12 in the HomeTheater
pyGc1PortIr = 4998
pyGc1PortRs1 = 4999
pyGc1PortRs2 = 5000
#global variable to set IR and RS232 commands
tvLgPowerOn = 'sendir,4:3,1,38000,1,1,343,170,21,22,21,22,22,63,21,22,21,22,21,22,21,22,21,22,22,63,22,63,21,22,22,63,22,63,22,63,22,63,22,63,21,22,21,22,22,63,21,22,21,22,21,22,22,63,22,63,22,63,22,63,21,22,22,63,22,63,22,63,21,22,21,22,22,760"+"\r\n'
tvlgInputHdmi1 = 'sendir,4:3,1,38000,1,1,343,171,21,20,21,20,22,62,21,20,21,20,21,20,21,20,21,20,22,62,22,62,21,20,22,62,22,62,22,62,22,62,22,62,21,20,22,62,22,62,22,62,21,20,21,20,22,62,22,62,22,62,21,20,21,20,21,20,22,62,22,62,21,20,21,20,22,760"+"\r\n'
rcAv7005PowerOn = 'PWON\r'
rcAv7005OutputHdmi2 = 'VSMONI2\r'
rcAv7005InputGame = 'SIGAME\r'