Hi
I’m looking to control a Pioneer PDP-507 TV (using a Raspberry Pi running Ser2net and a USB to RS232 cable)
The ASCII codes I need to use look to be here (http://www.service.pioneer-eur.com/peeservice/ESW003.nsf/53c7375af493fbaec1257104004bcee9/02b34acc8785cdb8c125728200558be9/$FILE/RS-232_COM_GEN7.pdf)
Please could someone familiar with the Pioneer Receiver codes let me know if they look similar in structure to the ones used in this plugin? I looked at the Implementation file and some do look similar.?
Hi Parkerc,
I took a quick glance at the document and I believe you’ll have to make extensive modifications to the plugin. First, the format appears to start with STX and end with ETX and not the usual CR or CRLF. Therefore, you can’t use the “normal” way of sending commands. An alternative is to use the RPi to convert from the Pioneer VSX codes to the PDP codes.
Good luck,
Aram
There is direct support for [tt]stxetx[/tt] in the [tt][/tt] tag. It was added back in 2009/10, so folks don’t have to do anything special:
http://wiki.micasaverde.com/index.php/Luup_Plugins_ByHand#.3Cprotocol.3E
Thanks guys for responding.
OK that’s sounds promising, is it as simple as changing the opening lines on the device file (D_PioneerReceiver1.xml - stxetx) and then on the implementation file from this…
<implementation>
<settings>
<protocol>cr</protocol>
</settings>
To this…
<implementation>
<settings>
<protocol>stxetx</protocol>
</settings>
And then this.
},
["DiscretePower1"] = {
["Off"] = "PF", -- POWER OFF
["On"] = "PO", -- POWER ON
},
becoming this…
},
["DiscretePower1"] = {
["Off"] = "02h**POF03h", -- POWER OFF
["On"] = "02h**PON03h", -- POWER ON
},
If so, i’ll look to spin off this off into another thread so not to dilute the receiver focus…
More like this:
["DiscretePower1"] = {
["Off"] = "**POF", -- POWER OFF
["On"] = "**PON", -- POWER ON
},
The STX and ETX characters will be added by the STX-ETX Protocol driver in Vera. It’ll effectively “wrap” what you’re sending in these characters, so you don’t do it yourself.
Note: I split this topic out from the Pioneer receiver, since that started to become a thread-hijack.
[quote=“guessed, post:5, topic:176114”]More like this:
["DiscretePower1"] = {
["Off"] = "**POF", -- POWER OFF
["On"] = "**PON", -- POWER ON
},
The STX and ETX characters will be added by the STX-ETX Protocol driver in Vera. It’ll effectively “wrap” what you’re sending in these characters, so you don’t do it yourself.[/quote]
Thank @guessed, it seems to suggest the SRX is “02h” and the ETX is “03h” does that need to be specified somewhere in the implementation file, or does it just know? (See attached)
No prob, and thanks for setting this thread up, the plan was only to get an idea if the reciever’s plugin was compatible and then spin off onto a new thread. I’ll update the first post a make it seem more focused on this new plugin.
Thank @guessed, it seems to suggest the SRX is "02h" and the ETX is "03h" does that need to be specified somewhere in the implementation file, or does it just know? (See attached)
That’s what the XML file declaration does:
[tt]stxetx[/tt]
Internally, when Vera handles the [tt]luup.io.write()[/tt] calls, it will “add” the necessary wrapping characters to handle whatever [tt]protocol[/tt] element has been specified.