Python Forum
Basic TCP to Pioneer VSX-1021 Stereo Receiver
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic TCP to Pioneer VSX-1021 Stereo Receiver
#1
Trying to send a command to my stereo. I can open a standard telnet session from command prompt in windows and simply connect using the IP and port 23 and then type PO which turns the power on and this work perfectly. I would like to have a way to automate this so that I can have a home automation program run the Python script to do this. I have never used Python, but it looks like the following should work: but I must have something wrong? Please help Smile

import telnetlib
import sys

HOST = "192.168.1.140"
VSXCommand = raw_input("PO")

Telnet.open(HOST{[23])
Telnet.write(VSXCommand)
Telnet.close()

I saved this as testpython.py and ran it and a quick window(which looks like a command prompt window) pops up and then disappears, but the receiver does not turn on. Thanks in advance for any help!
Reply


Messages In This Thread
Basic TCP to Pioneer VSX-1021 Stereo Receiver - by Bpet - Oct-22-2017, 12:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Frames above 2000 bytes not acknowledged by client/receiver lukasz139 0 2,190 Aug-24-2018, 06:34 PM
Last Post: lukasz139

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020