Hi,
I have the following setup:
1 FD232R USB UART serial port
1 Serial cable DB9 Female to 3,5mm Jack (TRS)
1 Niles Zr4 receiver.
I configured the factory defaults on ZR4.
I tested the serial port using Cool Term (https://learn.sparkfun.com/tutorials/te ... our-device) and can get the echo test to work, so the USB to serial should be ok.
The 3,5mm jack is pinned this way: Tip to pin 3 (TD), Ring to pin 2 (RD), Sleeve to pin 5 (GROUND) of RS232 DB9 Female. I checked each pin for signal.
I tested with Cool Term the following command: znc,5 and there is no response from the receiver (It should as suggested from your post "Initial feedback").
In Indigo, I defined and ran an action to set zone source to 1, power on, set volume to 60. and in the debug log I see the commands being sent, but nothing happens on the ZR4 side, no reply and no results.
Edited the RPFrameworkConfig.xml, and defined the baud rate key from 38400 to 9600, restarted indigo, retried actions, no luck..
When I restart Indigo, the log is:
Started plugin "Niles Audio Receiver Plugin 1.0.14"
Niles Audio Receiver Plugin Debug Returning default GUIConfigValue for plugin:databaseConnectionEnabled
Niles Audio Receiver Plugin Debug Database access enabled:
Niles Audio Receiver Plugin Debug Database access has been disabled, skipping connection
Niles Audio Receiver Plugin Debug Entering deviceStartComm for Casa banho; ID=160619197
Niles Audio Receiver Plugin Debug Device is child object, attempting to find parent
Niles Audio Receiver Plugin Debug Found parent ID of device 160619197: 1635696262
Niles Audio Receiver Plugin Debug Exiting deviceStartComm for Casa banho
Niles Audio Receiver Plugin Debug Entering deviceStartComm for Cozinha; ID=1440826517
Niles Audio Receiver Plugin Debug Device is child object, attempting to find parent
Niles Audio Receiver Plugin Debug Found parent ID of device 1440826517: 1635696262
Niles Audio Receiver Plugin Debug Exiting deviceStartComm for Cozinha
Niles Audio Receiver Plugin Debug Entering deviceStartComm for Niles Multizone Receiver ZR-4; ID=1635696262
Niles Audio Receiver Plugin Debug Read device state config... isConnected: 'isConnected'; connectionState: 'connectionState'
Niles Audio Receiver Plugin Debug Establishing connection to /dev/cu.usbserial-AJ03LJZ6
Niles Audio Receiver Plugin Debug Found previously-created child object for parent; child ID: 160619197
Niles Audio Receiver Plugin Debug Adding child device 160619197 to 1635696262
Niles Audio Receiver Plugin Debug Created device key:2
Niles Audio Receiver Plugin Debug Found previously-created child object for parent; child ID: 1440826517
Niles Audio Receiver Plugin Debug Adding child device 1440826517 to 1635696262
Niles Audio Receiver Plugin Debug Created device key:1
Niles Audio Receiver Plugin Debug Exiting deviceStartComm for Niles Multizone Receiver ZR-4
Niles Audio Receiver Plugin Debug Entering deviceStartComm for Quarto; ID=963440613
Niles Audio Receiver Plugin Debug Device is child object, attempting to find parent
Niles Audio Receiver Plugin Debug Found parent ID of device 963440613: 1635696262
Niles Audio Receiver Plugin Debug Parent object found, adding this child device now
Niles Audio Receiver Plugin Debug Adding child device 963440613 to 1635696262
Niles Audio Receiver Plugin Debug Created device key:3
Niles Audio Receiver Plugin Debug Exiting deviceStartComm for Quarto
Niles Audio Receiver Plugin Debug Entering deviceStartComm for Zona 4; ID=1119145891
Niles Audio Receiver Plugin Debug Device is child object, attempting to find parent
Niles Audio Receiver Plugin Debug Found parent ID of device 1119145891: 1635696262
Niles Audio Receiver Plugin Debug Parent object found, adding this child device now
Niles Audio Receiver Plugin Debug Adding child device 1119145891 to 1635696262
Niles Audio Receiver Plugin Debug Created device key:4
Niles Audio Receiver Plugin Debug Exiting deviceStartComm for Zona 4
Niles Audio Receiver Plugin Debug Entering deviceStartComm for Zona 5; ID=1048879912
Niles Audio Receiver Plugin Debug Device is child object, attempting to find parent
Niles Audio Receiver Plugin Debug Found parent ID of device 1048879912: 1635696262
Niles Audio Receiver Plugin Debug Parent object found, adding this child device now
Niles Audio Receiver Plugin Debug Adding child device 1048879912 to 1635696262
Niles Audio Receiver Plugin Debug Created device key:5
Niles Audio Receiver Plugin Debug Exiting deviceStartComm for Zona 5
Niles Audio Receiver Plugin Debug Entering deviceStartComm for Zona 6; ID=1745708665
Niles Audio Receiver Plugin Debug Device is child object, attempting to find parent
Niles Audio Receiver Plugin Debug Found parent ID of device 1745708665: 1635696262
Niles Audio Receiver Plugin Debug Parent object found, adding this child device now
Niles Audio Receiver Plugin Debug Adding child device 1745708665 to 1635696262
Niles Audio Receiver Plugin Debug Created device key:6
Niles Audio Receiver Plugin Debug Exiting deviceStartComm for Zona 6
Niles Audio Receiver Plugin Debug Returning default GUIConfigValue for plugin:pluginCommandQueueIdleSleep
Niles Audio Receiver Plugin Debug Version check initiated
Niles Audio Receiver Plugin Debug Version File Url:http://www.duncanware.com/Downloads/Ind ... nInfo.html
Niles Audio Receiver Plugin Debug Connection established
Niles Audio Receiver Plugin Debug Returning default GUIConfigValue for nilesAudioReceiver:telnetConnectionEOLString
Niles Audio Receiver Plugin Debug Returning default GUIConfigValue for nilesAudioReceiver:telnetConnectionStringEncoding
Niles Audio Receiver Plugin Debug Returning default GUIConfigValue for nilesAudioReceiver:commandReadTimeout
Niles Audio Receiver Plugin Debug Returning default GUIConfigValue for nilesAudioReceiver:telnetConnectionRequiresLoginProperty
Niles Audio Receiver Plugin Debug Returning default GUIConfigValue for nilesAudioReceiver:emptyQueueReducedWaitCycles
Niles Audio Receiver Plugin Debug Command queue has 1 command(s) waiting
Niles Audio Receiver Plugin Debug Create connection command de-queued
Started interface "Z-Wave 1.0.355"
(...)
Niles Audio Receiver Plugin Your plugin version, v1.0.14, is current.
Niles Audio Receiver Plugin Debug Command queue has 1 command(s) waiting
Niles Audio Receiver Plugin Debug Executing full status update request...
Niles Audio Receiver Plugin Debug Command queue has 1 command(s) waiting
Niles Audio Receiver Plugin Debug Command queue has 12 command(s) waiting
Niles Audio Receiver Plugin Debug Writing activate zone request for zone 1
Niles Audio Receiver Plugin Debug Post Command Pause: 0.1
Niles Audio Receiver Plugin Debug Command queue has 11 command(s) waiting
Niles Audio Receiver Plugin Debug Sending command: znc,5
Niles Audio Receiver Plugin Debug Write command completed.
Niles Audio Receiver Plugin Debug Post Command Pause: 0.1
Niles Audio Receiver Plugin Debug Command queue has 10 command(s) waiting
Niles Audio Receiver Plugin Debug Writing activate zone request for zone 3
Niles Audio Receiver Plugin Debug Post Command Pause: 0.1
Niles Audio Receiver Plugin Debug Command queue has 9 command(s) waiting
Niles Audio Receiver Plugin Debug Sending command: znc,5
Niles Audio Receiver Plugin Debug Write command completed.
Niles Audio Receiver Plugin Debug Post Command Pause: 0.1
Niles Audio Receiver Plugin Debug Command queue has 8 command(s) waiting
Niles Audio Receiver Plugin Debug Writing activate zone request for zone 2
Niles Audio Receiver Plugin Debug Post Command Pause: 0.1
Niles Audio Receiver Plugin Debug Command queue has 7 command(s) waiting
Niles Audio Receiver Plugin Debug Sending command: znc,5
Niles Audio Receiver Plugin Debug Write command completed.
Niles Audio Receiver Plugin Debug Post Command Pause: 0.1
Niles Audio Receiver Plugin Debug Command queue has 6 command(s) waiting
Niles Audio Receiver Plugin Debug Writing activate zone request for zone 5
Niles Audio Receiver Plugin Debug Post Command Pause: 0.1
Niles Audio Receiver Plugin Debug Command queue has 5 command(s) waiting
Niles Audio Receiver Plugin Debug Sending command: znc,5
Niles Audio Receiver Plugin Debug Write command completed.
Niles Audio Receiver Plugin Debug Post Command Pause: 0.1
Niles Audio Receiver Plugin Debug Command queue has 4 command(s) waiting
Niles Audio Receiver Plugin Debug Writing activate zone request for zone 4
Niles Audio Receiver Plugin Debug Post Command Pause: 0.1
Niles Audio Receiver Plugin Debug Command queue has 3 command(s) waiting
Niles Audio Receiver Plugin Debug Sending command: znc,5
Niles Audio Receiver Plugin Debug Write command completed.
Niles Audio Receiver Plugin Debug Post Command Pause: 0.1
Niles Audio Receiver Plugin Debug Command queue has 2 command(s) waiting
Niles Audio Receiver Plugin Debug Writing activate zone request for zone 6
Niles Audio Receiver Plugin Debug Post Command Pause: 0.1
Niles Audio Receiver Plugin Debug Command queue has 1 command(s) waiting
Niles Audio Receiver Plugin Debug Sending command: znc,5
Niles Audio Receiver Plugin Debug Write command completed.
Niles Audio Receiver Plugin Debug Post Command Pause: 0.1
What is wrong ?
Thanks for your help
Can't get my ZR4 to receive commands
- RogueProeliator
- Posts: 2520
- Joined: Tue Nov 13, 2012 3:54 pm
- Location: Baton Rouge, LA
Re: Can't get my ZR4 to receive commands
If the ZR4 does not return anything in CoolTerm, then don't expect it to work in the plugin... so I would focus on that. I have a ZR6, so I imagine that the port settings are the same for the ZR4, but that would be the first thing to double check in CoolTerm. Obvious, but definitely the first double-check.I tested with Cool Term the following command: znc,5 and there is no response from the receiver (It should as suggested from your post "Initial feedback").
In Indigo, I defined and ran an action to set zone source to 1, power on, set volume to 60. and in the debug log I see the commands being sent, but nothing happens on the ZR4 side, no reply and no results.
I'm not really sure on the pin configuration - I had an extra 3.5mm-to-DB9 adapter laying around and so didn't need to do anything on that end. I do go to a USB-to-serial adapter after that, like you, and it is working fine. So overall, assuming that pin mapping you sent is correct, your setup sound correct.
Anyone else have a ZR-4 that can ensure the plugin is working correctly (so we can ensure the port settings and commands match the ZR-6)? There are not too many Niles Audio users on here, so not really sure if anyone has tried the ZR-4, though I can't imagine it would be different given the similarities with the ZR-6.
Oh, you should have received a response of some kind with just "znc,5"... but try "znc,4,1" which should set the active zone to the first zone, THEN try "znc,5". You may also have to toggle your line endings in CoolTerm to get the receiver to know a line has completed.
-
- Posts: 5
- Joined: Sun Mar 03, 2013 12:59 pm
Re: Can't get my ZR4 to receive commands
Hi,
I received a new cable yesterday to replace the one I tried before. It didn't work at first but when I changed the baud rate to 9600Bps, it finally did.
Thank you very much for you support.
I received a new cable yesterday to replace the one I tried before. It didn't work at first but when I changed the baud rate to 9600Bps, it finally did.
Thank you very much for you support.