Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
I have modified the Denon RS232 Plugin to work with my Onkyo TX-SR804E Reciver. Its not finished yet and I cant get any communication from the reciver to be turned into events yet.
Can anyone who understands Python take a look at the code and tell me if I'm doing anything wrong.
If I don't get it to work Ill probably just leave it as is and live with it.
Hopefully it will be helpful as is for all you Onkyo owners out there
Edit.
I use XP SP3 and have tried several versions of EG including the most recent build. I have also tried from both my laptop and desktop and with different cables.
No there shouldn't be any big difference.
There might be some of the commands that don't work but probably not any key ones.
All the differences should be documented in the protocol I attached in my first post.
I ordered the 805 today.
Do you mind if I add the plugin to the SVN-repository so it appears in the next beta?
You can also have SVN-Access of your own.
Bartman wrote:
Do you mind if I add the plugin to the SVN-repository so it appears in the next beta?
You can also have SVN-Access of your own.
No I don't mind at all rather the opposite.
But as I said I haven't been able to get the event generation to work with my reciver so ether the code is wrong or my reciver don't work properly. I will be happy to update the plugin if you can give me feedback on if event generation works with your 805.
It seems like that the set master volume action doesn't work. Not sure why because the set sleep time command works alright and it works in the same way.
I got my receiver yesterday and still confused by all the possible settings
Anyway I commited your plugin to the svn and I'm still testing it.
Mastervalue does not work for me too. I also get an error when disabling the plugin.
Edit:
The master value had a typo. I also added some toggle actions and commited the version to the repository. Maybe I can add event triggering. Does the original plugin have such a feature?
Most of these serial plugins are based on the Denon plugin code and it is a bit faulty. Actually all serial plugins should be rewritten to use the new eg.SerialThread code. It has a very convenient handling of asynchronous receive. But sadly we don't have a suitable demo of its use. The Barco plugin for example uses it, but it is also a very complicated plugin because it uses a rather odd protocol. And I personally have no other device that uses the serial port.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
They aren't so similar in details like checksum handling and the control flow, so it wouldn't be possible to write something as easy as all the SendMessage plugins for example, that only differ in some constants.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Yes, this is basically it. It has some more features if you want to temporarily switch to synchronous handling. For example the callback might wait for some event from the device, but if you have to do some action, a kind of challenge/response pattern might be needed in the action. Then you can use SuspendReadEvents() before you synchronously want to read the port and ResumeReadEvents() afterwards to re-enable the callback.
And the Read() method can (and should) then also be used with a timeout value.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Bartman wrote:I got my receiver yesterday and still confused by all the possible settings
Anyway I commited your plugin to the svn and I'm still testing it.
Mastervalue does not work for me too. I also get an error when disabling the plugin.
The pure audio setting is pretty good. You can test it by comparing it to stereo mode with max volume but without any media playing. Just listen to the noise levels.
Bartman wrote:Edit:
The master value had a typo. I also added some toggle actions and commited the version to the repository. Maybe I can add event triggering. Does the original plugin have such a feature?
I really do hate being dyslectic it makes programing a living hell
I did try to get triggering to work but since couldn't get it right so I abandoned the plugin for a while since I'm busy with other projects. So I posted my half finished plugin in hope of someone helping me out with the triggering
I will revisit the code this weekend if I have any spare time and to get it to work unless you guys bet me to it
Two other notes:
1. In your actions you actually should always use SuspendReadEvents() and ResumeReadEvents() to inform the thread you want to do something on the port. Even if you only want to write something.
2. Inside the callback registered with SetReadEventCallback you don't need to do it, as the port is then exclusively in use of the callback. So you can use .Write() and .Read() there without problems, but should leave the callback as soon as possible to give actions the ability to execute.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!