Hi all,
Trying to control my AV Receiver (Onkyo) using RS232. Using a straight through cable.
I have added a device AV Equipment (AVC-A1SRA RS232) (Device #37, Device Template #71, controlled by: CORE)
Automatically I get a Generic Serial Device with the same settings.
I also adjusted Com Port Paritybit/stop to reflect N81
I also adjusted Plug & Play detection script to use 20_OnkyoReceiver.sh but this does not seem to work...
When I send a command to #37 like this: /usr/pluto/bin/MessageSend dcerouter 0 37 1 192
the receiver responds correctly. So we know RS232 communication is working.
When I try to send a command using the test buttons next to the codes from the AV Equipment, A/V Properties screen, a popup says the command has been sent to #1 but nothing happens.
In DCErouter.log I find this:
08 01/15/10 13:24:14.549 Received Message from 0 (unknown / ) to 1 (CORE / Bureau), type 1 id 191 Command:Send Code, retry none, parameters: <0x735cbb90>
08 01/15/10 13:24:14.549 Parameter 9(Text): <$"!1PWR00\r"$> <0x735cbb90>
05 01/15/10 13:24:14.599 Socket::ReceiveData 0x86c9818 failed, bytes left 0 start: 8460000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 73 Incoming_Conn Socket 73 127.0.0.1 <0x735cbb90>
05 01/15/10 13:24:14.599 Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Incoming_Conn Socket 73 127.0.0.1 <0x735cbb90>
05 01/15/10 13:24:14.599 TCPIP: Closing connection to -1003 (Router Dev #0) 0x86c9818 m_Socket: -1 <0x735cbb90>
05 01/15/10 13:24:14.599 Router::RemoveAndDeleteSocket 0x86c9818 -1003 <0x735cbb90>
01 01/15/10 13:24:30.182 DCEConfig::WriteSettings modified LastSearchTokenUpdate=LastSearchTokenUpdate=1263558174 <0xa1ffeb90>
07 01/15/10 13:25:43.040 Event #75 has no handlers <0xb1bf6b90>
07 01/15/10 13:25:43.040 Received Message from 18 (Asterisk / Bureau) to -1001 (unknown / ), type 2 id 75 Event:Extensions Status, retry none, parameters: <0xb1bf6b90>
07 01/15/10 13:25:43.040 Parameter 13(Text): SIP/200:Registered <0xb1bf6b90>
My conclusion is that the link to the GSD device is not set up properly.
I see the Core receives the MessageSend, but from 0 Unknown, and it is not rerouted to #37 GSD.
Where did I go wrong here?
What also puzzles me is that in Plutoadmin, switching from the AV Equipment view to
the Generic Serial Devices view, the fields with information about Paritybit/stop and discrete volume seem to be empty, whereas they are not empty, and reappear at other times.
Is it okay for the "This device is controlled via" to show no objects? (see attached screenshot)
I feel I'm very close, but not quite there yet!
Thanks for helping out,
Erwin