Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cafedumonde

Pages: 1 [2] 3 4 5
16
Installation issues / Re: Denon Receiver Control over Ethernet
« on: September 07, 2016, 02:19:14 am »


Lots of progress. Now that I can send commands to the receiver, I am populating the template. The only glitch has to do with the MUTE command. The protocol in the manuals that I have, for the 2310 and 3312, both provide discrete commands for this function, that is, separate commands for on and off. The device template however is built for a toggle command. This is consistent with button on the remote, and I also have a pronto code for this function. I see four solutions:

1: Change the template to accommodate discrete RS-232 commands, though this does not seem possible with the command options in WebAdmin.

2. Find a way to send the pronto code over RS-232.

3. Find an RS232  toggle command for mute that is not in the manuals that I have.

4. Embed an if statement in the ruby code for the command that queries the mute status using <$"MU?\n"$> and then sends the correct discrete command.

If anyone has a Denon receiver working with RS-232 I would be interested to know what you have done for MUTE.

Thanks,

CDM

17
Installation issues / No Audio for .mov files
« on: September 06, 2016, 12:51:26 am »

Hi, I have just restored an archive of movie files that worked previously on my old 810 system. Video is fine for all but some of the .mov files don't have audio. I suspect that some codecs associated with QuickTime are missing. Are there any suggestions?

CDM

18
Installation issues / Re: Denon Receiver Control over Ethernet (& RS-232)
« on: September 05, 2016, 05:26:01 am »
Progress. The command data needs to be in Ruby format. The off command, for example is:<$"PWSTANDBY\r"$>. I added this to the device template (#71) by opening the template and then "Edit Ruby Codes". After entering the command, the "send command to device" option works for the commands that I have populated. I also added the serial port of my instance, /dev/ttyS5,  to the Default Value fiels for the COM Port. So, two changes to the device template. Should this be necessary?

This means that the messages are getting to the serial port through the router. Phew.

It seems that the codes are missing from the device template in the latest distribution.

CDM

19
Installation issues / Re: Denon Receiver Control over Ethernet
« on: September 05, 2016, 01:19:06 am »

I tried to manually install my Denon receiver this weekend, so far without success. I added the device to my core manually and configured it using the setup wizard. All of the parameters that I selected appear in the device instance in WebAdmin.

Trying to troubleshoot, I can send commands from WebAdmin by going to Devices -> AV Equipment and selecting AV Properties for the device instance. All of the commands shown in the device template appear, with the content fields blank. Clicking on "Test Code" for any command yields the error: "ERROR: Specified command had empty content." Putting in the ASCII commands from the Denon manual, a pop up appears that says: The command was sent to device #1" but nothing happens.

I have two theories:

1. No codes are inherited from the device template.
2. The SendMessage command sent to the router is not finding the serial port for some reason.

Again, the following works every time, power cycling the device:

Code: [Select]

/usr/pluto/bin/TestSerialPort -p /dev/ttyS5 -P N81 -b 9600 -t "PWSTANDBY\r\s500mPWON\r" -i 1 -s "MON\r"


Poking around in DCRRouter.log, there are messages related to my receiver instance. I think that these are in response to my attempts to send commands from WebAdmin but I don't really know what they mean. Here are a few lines:

Code: [Select]
08      09/04/16 18:10:23.561           Received Message from 20 (^[[36;1mOnScreen Orbiter / Living Room/Family Room^[[0m) to 66 (^[[36;1mAVC-A1SRA (RS232) / Living Room/Family Room^[[0m), type 1 id 193 \
Command:^[[35;1mOff^[[0m, retry none, parameters: <0xb60d4b40>
08      09/04/16 18:10:23.561           Received Message from 20 (^[[36;1mOnScreen Orbiter / Living Room/Family Room^[[0m) to 66 (^[[36;1mAVC-A1SRA (RS232) / Living Room/Family Room^[[0m), type 1 id 193 \
Command:^[[35;1mOff^[[0m, retry none, parameters: <0xb60d4b40>
05      09/04/16 18:10:23.561           ^[[33;1mThe target device 19 (routed to 19) has not registered.^[[0m <0xb60d4b40>


Clues would be welcome. If I need to reinstall the device, or my entire installation, in order to start clean I would be happy to do so.

Thanks,

CDM


20
Installation issues / Re: Denon Receiver Control over Ethernet
« on: September 01, 2016, 02:05:15 am »

Got it. I will report back this weekend. Thanks Posde.

21
Installation issues / Re: Denon Receiver Control over Ethernet
« on: August 30, 2016, 02:15:10 am »

Phenigma,

Thanks very much for looking into this. I will compare my carefully compare my test script to the original in order to appreciate what you have highlighted. My skills are very rusty butI will play with the script some more, and try to adjust the timing of the commands. I would really like to add the device automatically in order to ensure that it is done without error.

Looking at the device templates in WebAdmin, Developers > Device Templates, two are listed: AVC-A1SRA (RS-232) and AVR/AVC series (ethernet). Which should I use? I want to use an AVR device with RS-232.  Is there a device template number?

Sorry to be dense. Obviously if all of the RS-232 commands are the same then it won't matter.

Thanks again.

CDM








22
Installation issues / Re: 14.04 Installation - More Minor Issues
« on: August 28, 2016, 05:16:48 am »

Yes, I looked. It seems that here is one out there but I haven't tried one. I plugged the QuickCam into my laptop, which is running Ubuntu 1604 and it works fine with VLC. It is a project for another day.

CDM

23
Installation issues / Re: 14.04 Installation - More Minor Issues
« on: August 27, 2016, 11:46:48 pm »

Updates...

1. I found the checkbox for the MythTV plugin under Advanced > Configuration > Devices in WebAdmin. I think this has done the trick.

2. Webcam issue solved with new camera. It would be great to know if there is another driver for the Logitech  QuickCam Pro 3000. I have a few of these.

3. Just created issue #2700 in GitHub.

Thanks to all.

CDM

24
Installation issues / Re: 14.04 Installation - More Minor Issues
« on: August 26, 2016, 02:37:19 am »

Phenigma,

Thanks for the reply. Follow ups are as follows:

1. How do I turn off auto configure for mythfrontend? Is there a wiki reference?

2. I found another webcam, which is a Cisco branded camera, though it exactly looks like one of the later  Logitech models. It is working.

3. I am happy to create an issue in gitlab. How do I do it?

CDM

25
Installation issues / Re: 14.04 Installation - More Minor Issues
« on: August 26, 2016, 01:08:53 am »

Looking up the camera model number on the Logitech support site, it is a QuickCam Pro 3000. Again, I had this working under 810.

Thanks,

CDM

26
Installation issues / 14.04 Installation - More Minor Issues
« on: August 26, 2016, 12:58:01 am »

My 14.04 Installation has proven to be very usable in spite of some persistent minor issues. In each case I have reviewed the wiki as well as explored the installation in order to troubleshoot. I hope that I am not posting too much; my intention is to ask the community only were I am unable to flush out solutions on my own. I completely accept that LMCE is a project rather than a product, and that figuring things out is part of the fun. Solutions and clues equally welcome in response to my questions.

My current issues are as follows:

1. Mythfrontend does not save settings. I have changed a few things in the front end, in particular the scaling of the video image as negative percents. These parameters are not saved, even when I exit the frontend setup gracefully.

2. Cannot install a Logitech Quickcam. There is a wiki page for this here:

http://wiki.linuxmce.org/index.php/Logitech_QuickCam_Sphere

I followed the instructions, substituting "**PWC Camera Drivers" for "PWC Camera Drivers" in the instructions. Only the ** version appeared in the dropdown when building the device template. The motion wrapper seems to work fine: I get a grey square with some text overlayed when I choose the camera in the Security scenario. The LED on the camera does not illuminate, as it did when I have this same camera connected to my old 810 installation. I think this means that the camera driver is not working.

3. The system has still not discovered my Denon 2307 receiver over RS-232. The discovery script does not seem to be running. How can I initiate it? As indicated by Phenigma in an earlier post, there is a question about the syntax in the discovery script, assuming that I can get the script to run again.

Thanks,

CDM


27
Installation issues / Re: Does the WebDT 366 work with 1404?
« on: August 17, 2016, 03:29:15 am »

That did it. I just daisy-chained another access point to a port on my 802.11n router which is configured as an access point on the internal network. Its great to have all of my old gear back in action. Thanks.

CDM

28
Installation issues / Re: Denon Receiver Control over Ethernet
« on: August 17, 2016, 01:35:22 am »

Phenegma,

Please follow up on your comment regarding $?. Please check the file for this script in your installation. I did not change this.

After many days, the detection script has not run. Is there a way to trigger?

CDM

29
Installation issues / Does the WebDT 366 work with 1404?
« on: August 14, 2016, 03:55:11 pm »

I have a WebDT 366 loaded with the webpad orbiter image, previously associated with my old 810 system. It has not been used in years. I have revived it but it is not seen by my new 1404 installation. Following the instructions on the wiki, I have updated the wireless settings but still no luck. Questions are:

1. Should this work?
2. Is there an updated version of the image that should work?
3. Following the link on the wiki, the image is no longer posted. Is it still available?
4. What are suggested next steps?

Currently, the pad is charged, boots the old image without errors and stops with the LMCE splash screen and an X Windows cursor that responds to the touch pad.

Thanks,

CDM

30
Installation issues / Re: Denon Receiver Control over Ethernet
« on: August 13, 2016, 09:32:22 pm »

More progress but still no prize...

I modified the Denon detection script /usr/pluto/pnp/20_DenonReceiver.sh to create a tool for testing the detection. I found that it only works intermittently on my machine. The detection depends on the contents of "$?" in the script after sending a command over the serial port to the Denon.

The test script, DenonPNPTest.sh

Code: [Select]

#!/bin/bash                                                                                                                             

echo "Denon Detection script queue $2"
echo "Arg1=$1 Arg2=$2 Arg3=$3 Arg4=$4"
/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 9600 -t "PWSTANDBY\r\s500mPWON\r" -i 1 -s "MON\r"
if [[ "$?" -ne 0 ]]; then
echo "It's not a Denon Receiver Resp=$?"
# /usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 "$4" 44 0                                                               
else
echo "It is a Denon Receiver Resp=$?"
# /usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 "$4" 44 71                                                               
fi


 And the output of several runs, with lines added in between for readability....

Code: [Select]

root@dcerouter:/usr/pluto/pnp# ./DenonPNPTest.sh foo foo /dev/ttyS5 foo
Denon Detection script queue foo
Arg1=foo Arg2=foo Arg3=/dev/ttyS5 Arg4=foo
It's not a Denon Receiver Resp=!!0

root@dcerouter:/usr/pluto/pnp# !!
./DenonPNPTest.sh foo foo /dev/ttyS5 foo
Denon Detection script queue foo
Arg1=foo Arg2=foo Arg3=/dev/ttyS5 Arg4=foo
PWSTANDBY\rZMOFF\rZ2OFF\rPWON\rZMON\rZ2ON\r
It is a Denon Receiver Resp=1

root@dcerouter:/usr/pluto/pnp# !!
./DenonPNPTest.sh foo foo /dev/ttyS5 foo
Denon Detection script queue foo
Arg1=foo Arg2=foo Arg3=/dev/ttyS5 Arg4=foo
It's not a Denon Receiver Resp=0

root@dcerouter:/usr/pluto/pnp# !!
./DenonPNPTest.sh foo foo /dev/ttyS5 foo
Denon Detection script queue foo
Arg1=foo Arg2=foo Arg3=/dev/ttyS5 Arg4=foo
It's not a Denon Receiver Resp=0

root@dcerouter:/usr/pluto/pnp# !!
./DenonPNPTest.sh foo foo /dev/ttyS5 foo
Denon Detection script queue foo
Arg1=foo Arg2=foo Arg3=/dev/ttyS5 Arg4=foo
It's not a Denon Receiver Resp=0

root@dcerouter:/usr/pluto/pnp#


Could it be that the command is somehow taking too long to populate "$?"  ???

I am not a bash scripter but could I just capture the string returned directly from the serial port test and decide the detection on that? It is frustrating that "$?" does not work reliably given that it is a standard bash scripting feature.

Feedback from developers would be appreciated. Thanks.

CDM

Pages: 1 [2] 3 4 5