Dayton Audio Controller Plugin

Plugins to extend Indigo integration to additional hardware and apps to extend Indigo onto other platforms.
User avatar
RogueProeliator
Posts: 2520
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: Dayton Audio Controller Plugin

Post by RogueProeliator »

I have 8 zones and am thinking of getting the Dayton 8/8 switch. Will your Plug-in control eight zones?
I can't say for certainty that it will support any particular model to be honest -- but there is nothing inherently in the plugin that limits it to 6 zones of output. There is an arbitrary limit of 6 zones of input but that could be increased relatively easy if needed. Theoretically this already supports zones 9-18 via chaining. SO I would expect it would outside of not out-of-the-box support for input 7 and 8. If you get it and it works aside from that we can add it in quickly.

Adam
hamw
Posts: 1249
Joined: Mon Mar 31, 2008 7:45 pm

Re: Dayton Audio Controller Plugin

Post by hamw »

Excellent, will let you know.
hamw
Posts: 1249
Joined: Mon Mar 31, 2008 7:45 pm

Re: Dayton Audio Controller Plugin

Post by hamw »

Hi Adam,

Got my DAX 88. Indigo appears to be hooked up to the unit but it will not respond to any commands, even when rebooting to get status, trying to turn a zone on and off from a created zone device, change volume via dimmer control, etc.

Code: Select all

   Stopped plugin "Dayton Audio Controller 2024.6.1"
   Enabling plugin "Dayton Audio Controller 2024.6.1" using API v3.0.0
   Starting plugin "Dayton Audio Controller 2024.6.1" (pid 65988)
   Dayton Audio Controller Debug   Initializing RPFrameworkPlugin
   Dayton Audio Controller Debug   Beginning processing of RPFrameworkConfig.xml file
   Dayton Audio Controller Debug   Found plugin setting: pluginUpdateURL = http://forums.indigodomo.com/viewforum.php?f=59
   Dayton Audio Controller Debug   Found device mapping; id: daytonAudioReceiver to class: DaytonAudioReceiverDevice
   Dayton Audio Controller Debug   Found device mapping; id: daytonAudioZone to class: DaytonAudioZone
   Dayton Audio Controller Debug   Created device parameter for managed device 'daytonAudioReceiver': serialPort
   Dayton Audio Controller Debug   Created device parameter for managed device 'daytonAudioReceiver': zonePollInterval
   Dayton Audio Controller Debug   Created device parameter for managed device 'daytonAudioReceiver': connectedSlaveUnits
   Dayton Audio Controller Debug   Found device setting: deviceAddressFormat=%ap:serialPort%
   Dayton Audio Controller Debug   Found device setting: telnetConnectionDeviceStateName=connectionState
   Dayton Audio Controller Debug   Found device setting: telnetConnectionDeviceStateBoolean=isConnected
   Dayton Audio Controller Debug   Found device setting: updateStatusPollerIntervalProperty=zonePollInterval
   Dayton Audio Controller Debug   Found device setting: updateStatusPollerActionId=updateDeviceStatesFromReceiver
   Dayton Audio Controller Debug   Found device setting: serialPortName=%dp:serialPort%
   Dayton Audio Controller Debug   Found device setting: serialPortBaud=9600
   Dayton Audio Controller Debug   Found device setting: serialPortParity=PARITY_NONE
   Dayton Audio Controller Debug   Found device setting: serialPortByteSize=EIGHTBITS
   Dayton Audio Controller Debug   Found device setting: serialPortStopBits=STOPBITS_ONE
   Dayton Audio Controller Debug   Found device setting: telnetDeviceReadTimeout=0.5
   Dayton Audio Controller Debug   Found device setting: telnetDeviceWriteTimeout=1.0
   Dayton Audio Controller Debug   Found device setting: deviceIsChildDevice=False
   Dayton Audio Controller Debug   Found device setting: childDeviceDictionaryKeyFormat=%dp:zoneNumber%
   Dayton Audio Controller Debug   Found device response: zoneStatusResponse
   Dayton Audio Controller Debug   Found response effect: Type=eventCallback; Param: zone_status_response_received; ValueFormat=; ValueFormatEx=; Eval=False; Condition=
   Dayton Audio Controller Debug   Created device parameter for managed device 'daytonAudioZone': sourceReceiver
   Dayton Audio Controller Debug   Created device parameter for managed device 'daytonAudioZone': zoneNumber
   Dayton Audio Controller Debug   Found device setting: deviceAddressFormat=Zone %ap:zoneNumber%
   Dayton Audio Controller Debug   Found device setting: deviceIsChildDevice=True
   Dayton Audio Controller Debug   Found device setting: deviceParentIdProperty=sourceReceiver
   Dayton Audio Controller Debug   Found managed action: updateDeviceStatesFromReceiver
   Dayton Audio Controller Debug   Found managed action: changePower
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'changePower': powerState
   Dayton Audio Controller Debug   Found managed action: changeSource
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'changeSource': zoneSource
   Dayton Audio Controller Debug   Found managed action: changeMute
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'changeMute': muteState
   Dayton Audio Controller Debug   Found managed action: changeZoneSource
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'changeZoneSource': zoneSource
   Dayton Audio Controller Debug   Found managed action: setZoneVolume
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'setZoneVolume': volumeTarget
   Dayton Audio Controller Debug   Found managed action: adjustZoneVolume
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'adjustZoneVolume': volumeAdjustment
   Dayton Audio Controller Debug   Found managed action: setZoneMute
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'setZoneMute': muteState
   Dayton Audio Controller Debug   Found managed action: toggleZoneMuteStatus
   Dayton Audio Controller Debug   Processing 0 params for action
   Dayton Audio Controller Debug   Found managed action: setZoneTreble
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'setZoneTreble': trebleValue
   Dayton Audio Controller Debug   Found managed action: setZoneBass
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'setZoneBass': bassValue
   Dayton Audio Controller Debug   Found managed action: setZoneBalance
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'setZoneBalance': balanceValue
   Dayton Audio Controller Debug   Found managed action: TurnOn
   Dayton Audio Controller Debug   Found managed action: TurnOff
   Dayton Audio Controller Debug   Found managed action: Toggle
   Dayton Audio Controller Debug   Found managed action: SetBrightness
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'SetBrightness': actionValue
   Dayton Audio Controller Debug   Found managed action: SendArbitraryCommand
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'SendArbitraryCommand': commandCode
   Dayton Audio Controller Debug   Successfully completed processing of RPFrameworkConfig.xml file
   Started plugin "Dayton Audio Controller 2024.6.1"
   Dayton Audio Controller Debug   Entering deviceStartComm for 0 Dayton Audio Matrix Switch; ID=676825913
   Dayton Audio Controller Debug   Read device state config... isConnected: isConnected; connectionState: connectionState
   Dayton Audio Controller Debug   Returning default GUIConfigValue for daytonAudioReceiver: telnetConnectionEOLString
   Dayton Audio Controller Debug   Exiting deviceStartComm for 0 Dayton Audio Matrix Switch
   Dayton Audio Controller Debug   Returning default GUIConfigValue for daytonAudioReceiver: telnetConnectionStringEncoding
   Dayton Audio Controller Debug   Returning default GUIConfigValue for daytonAudioReceiver: commandReadTimeout
   Dayton Audio Controller Debug   Entering deviceStartComm for 1 Kitchen; ID=1737882882
   Dayton Audio Controller Debug   Returning default GUIConfigValue for daytonAudioReceiver: telnetConnectionRequiresLoginProperty
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Returning default GUIConfigValue for daytonAudioReceiver: updateStatusPollInitialDelay
   Dayton Audio Controller Debug   Found parent ID of device 1737882882: 676825913
   Dayton Audio Controller Debug   Returning default GUIConfigValue for daytonAudioReceiver: emptyQueueReducedWaitCycles
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 1737882882 to 676825913
   Dayton Audio Controller Debug   Created device key: 1
   Dayton Audio Controller Debug   Create connection command de-queued
   Dayton Audio Controller Debug   Establishing connection to /dev/cu.usbserial-FT7ER4MN1
   Dayton Audio Controller Debug   Exiting deviceStartComm for 1 Kitchen
   Dayton Audio Controller Debug   Entering deviceStartComm for 2 Family Room; ID=641672610
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 641672610: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 641672610 to 676825913
   Dayton Audio Controller Debug   Created device key: 2
   Dayton Audio Controller Debug   Exiting deviceStartComm for 2 Family Room
   Dayton Audio Controller Debug   Entering deviceStartComm for 3 Study Halway; ID=1541557677
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 1541557677: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 1541557677 to 676825913
   Dayton Audio Controller Debug   Created device key: 3
   Dayton Audio Controller Debug   Exiting deviceStartComm for 3 Study Halway
   Dayton Audio Controller Debug   Entering deviceStartComm for 4 Dining Rm Living Rm; ID=1493860653
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 1493860653: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 1493860653 to 676825913
   Dayton Audio Controller Debug   Created device key: 4
   Dayton Audio Controller Debug   Exiting deviceStartComm for 4 Dining Rm Living Rm
   Dayton Audio Controller Debug   Entering deviceStartComm for 5 Game Rm; ID=1644872590
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 1644872590: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 1644872590 to 676825913
   Dayton Audio Controller Debug   Created device key: 5
   Dayton Audio Controller Debug   Exiting deviceStartComm for 5 Game Rm
   Dayton Audio Controller Debug   Entering deviceStartComm for 6 Patio; ID=962094459
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 962094459: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 962094459 to 676825913
   Dayton Audio Controller Debug   Created device key: 6
   Dayton Audio Controller Debug   Connection established
   Dayton Audio Controller Debug   Exiting deviceStartComm for 6 Patio
   Dayton Audio Controller Debug   No login required, scheduling status update
   Dayton Audio Controller Debug   Entering deviceStartComm for 7 Pool House; ID=1969759190
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 1969759190: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 1969759190 to 676825913
   Dayton Audio Controller Debug   Created device key: 7
   Dayton Audio Controller Debug   Exiting deviceStartComm for 7 Pool House
   Dayton Audio Controller Debug   Entering deviceStartComm for 8 MBR; ID=536358103
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 536358103: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 536358103 to 676825913
   Dayton Audio Controller Debug   Created device key: 8
   Dayton Audio Controller Debug   Exiting deviceStartComm for 8 MBR
   Dayton Audio Controller Debug   Returning default GUIConfigValue for plugin: pluginCommandQueueIdleSleep
   Dayton Audio Controller Debug   Post Command Pause: 0.5
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Executing full status update request...
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Creating update request for unit 1
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Sending command: ?10
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Post Command Pause: 0.1
No status output is returned... trying to send some commands to the unit...

Code: Select all

 Dayton Audio Controller         Debug enabled (on Low) by user
   Dayton Audio Controller Debug   Dimmer Command: ActionId=TurnOn; Device=641672610; actionValue=0
   Dayton Audio Controller Debug   Sending command: <12PR01
   Dayton Audio Controller Debug   Sending command: ?12
   Dayton Audio Controller Debug   Sending command: <12CH01
   Dayton Audio Controller Debug   Sending command: ?12
   Dayton Audio Controller Debug   Sending command: <13VO00
   Dayton Audio Controller Debug   Sending command: ?13
   Dayton Audio Controller Debug   Sending command: <13VO01
   Dayton Audio Controller Debug   Sending command: ?13
   Dayton Audio Controller Debug   Sending command: <13VO01
   Dayton Audio Controller Debug   Sending command: ?13
   Dayton Audio Controller Debug   Sending command: <12VO20
   Dayton Audio Controller Debug   Sending command: ?12
   Dayton Audio Controller Debug   Dimmer Command: ActionId=Toggle; Device=641672610; actionValue=0
   Dayton Audio Controller Debug   Sending command: <12PR01
   Dayton Audio Controller Debug   Sending command: ?12
Executing from the status pane of the device itself, on/off, volume up etc, the status pane does not update and the commands don't execute.

Code: Select all

   Dayton Audio Controller Debug   Sending command: <12VO20
   Dayton Audio Controller Debug   Sending command: ?12
   Dayton Audio Controller Debug   Sending command: <12VO20
   Dayton Audio Controller Debug   Sending command: ?12
   Dayton Audio Controller Debug   Executing full status update request...
   Dayton Audio Controller Debug   Sending command: ?10
   Dayton Audio Controller Debug   Dimmer Command: ActionId=RequestStatus; Device=641672610; actionValue=0
   Dayton Audio Controller Error   Execute action called for non-managed action id: RequestStatus
   Dayton Audio Controller Debug   Dimmer Command: ActionId=TurnOn; Device=641672610; actionValue=0
   Dayton Audio Controller Debug   Sending command: <12PR01
   Dayton Audio Controller Debug   Sending command: ?12

Jul 21, 2024 at 9:17:17 AM
   Dayton Audio Controller Debug   Dimmer Command: ActionId=TurnOn; Device=641672610; actionValue=0
   Dayton Audio Controller Debug   Sending command: <12PR01
   Dayton Audio Controller Debug   Sending command: ?12
   Dayton Audio Controller Debug   Dimmer Command: ActionId=TurnOff; Device=641672610; actionValue=0
   Dayton Audio Controller Debug   Sending command: <12PR00
   Dayton Audio Controller Debug   Sending command: ?12
   Dayton Audio Controller Debug   Dimmer Command: ActionId=SetBrightness; Device=641672610; actionValue=66
   Dayton Audio Controller Debug   Sending command: <12VO25
   Dayton Audio Controller Debug   Sending command: ?12
here's the debug dump:

Code: Select all

  Dayton Audio Controller         Dumping details for DeviceID: 676825913
   Dayton Audio Controller         address : /dev/cu.usbserial-FT7ER4MN0
batteryLevel : None
buttonGroupCount : 0
configured : True
description : 
deviceTypeId : daytonAudioReceiver
displayStateId : connectionState
displayStateImageSel : SensorOn
displayStateValRaw : Connected
displayStateValUi : Connected
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState : 
folderId : 55617734
globalProps : MetaProps : (dict)
     com.duncanware.daytonAudioController : (dict)
          address : /dev/cu.usbserial-FT7ER4MN0 (string)
          connectedSlaveUnits : 0 (string)
          serialPort : /dev/cu.usbserial-FT7ER4MN0 (string)
          source1Label : Sonos (string)
          source2Label : AirPlay (string)
          source3Label : Computer Audio (string)
          source4Label : Fam Rm TV (string)
          source5Label : Source 5 (string)
          source6Label : Source 6 (string)
          zonePollInterval : 50 (string)
id : 676825913
lastChanged : 2024-07-21 09:11:52
lastSuccessfulComm : 2024-07-21 09:11:52
model : Dayton Audio Zone Receiver
name : 0 Dayton Audio Matrix Switch
ownerProps : com.duncanware.daytonAudioController : (dict)
     address : /dev/cu.usbserial-FT7ER4MN0 (string)
     connectedSlaveUnits : 0 (string)
     serialPort : /dev/cu.usbserial-FT7ER4MN0 (string)
     source1Label : Sonos (string)
     source2Label : AirPlay (string)
     source3Label : Computer Audio (string)
     source4Label : Fam Rm TV (string)
     source5Label : Source 5 (string)
     source6Label : Source 6 (string)
     zonePollInterval : 50 (string)
pluginId : com.duncanware.daytonAudioController
pluginProps : com.duncanware.daytonAudioController : (dict)
     address : /dev/cu.usbserial-FT7ER4MN0 (string)
     connectedSlaveUnits : 0 (string)
     serialPort : /dev/cu.usbserial-FT7ER4MN0 (string)
     source1Label : Sonos (string)
     source2Label : AirPlay (string)
     source3Label : Computer Audio (string)
     source4Label : Fam Rm TV (string)
     source5Label : Source 5 (string)
     source6Label : Source 6 (string)
     zonePollInterval : 50 (string)
protocol : Plugin
remoteDisplay : True
sharedProps : com.indigodomo.indigoserver : (dict)
states : States : (dict)
     connectionState : Connected (string)
     isConnected : true (string)
subModel : 
subType : 
supportsAllLightsOnOff : False
supportsAllOff : False
supportsOnState : False
supportsStatusRequest : False
version : None
Looking forward to getting this working. Am I doing anything obviously wrong?
Last edited by hamw on Sun Aug 04, 2024 3:34 pm, edited 1 time in total.
hamw
Posts: 1249
Joined: Mon Mar 31, 2008 7:45 pm

Re: Dayton Audio Controller Plugin

Post by hamw »

for what it's worth I also subbed in a different serial converter, and that made no difference.
User avatar
RogueProeliator
Posts: 2520
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: Dayton Audio Controller Plugin

Post by RogueProeliator »

Can you turn the debug up to High and try executing a command? The commands that it is sending look correct for all the Dayton Audio and I just double checked myself in the manual for DAX 88. SO, my guess is the connection isn't quite correct for some reason and that is the issue. High Debug may or may not show anything, but is a good place to start.
hamw
Posts: 1249
Joined: Mon Mar 31, 2008 7:45 pm

Re: Dayton Audio Controller Plugin

Post by hamw »

Appreciate your looking at this. Here is the debug, connecting to the unit and then source selection, volume, off, etc.

Code: Select all

roller Debug   Entering deviceStopComm for 0 Dayton Audio Matrix Switch; ID=676825913
   Dayton Audio Controller Debug   Initiating shutdown of communications with 0 Dayton Audio Matrix Switch
   Dayton Audio Controller Debug   Shutdown of communications with 0 Dayton Audio Matrix Switch complete
   Dayton Audio Controller Debug   Exiting deviceStopComm for 0 Dayton Audio Matrix Switch
   Dayton Audio Controller Debug   Entering deviceStopComm for 1 Kitchen; ID=1737882882
   Dayton Audio Controller Debug   Device is child object, attempting to remove from parent...
   Dayton Audio Controller Debug   Exiting deviceStopComm for 1 Kitchen
   Dayton Audio Controller Debug   Entering deviceStopComm for 2 Family Room; ID=641672610
   Dayton Audio Controller Debug   Device is child object, attempting to remove from parent...
   Dayton Audio Controller Debug   Exiting deviceStopComm for 2 Family Room
   Dayton Audio Controller Debug   Entering deviceStopComm for 3 Study Halway; ID=1541557677
   Dayton Audio Controller Debug   Device is child object, attempting to remove from parent...
   Dayton Audio Controller Debug   Exiting deviceStopComm for 3 Study Halway
   Dayton Audio Controller Debug   Entering deviceStopComm for 4 Dining Rm Living Rm; ID=1493860653
   Dayton Audio Controller Debug   Device is child object, attempting to remove from parent...
   Dayton Audio Controller Debug   Exiting deviceStopComm for 4 Dining Rm Living Rm
   Dayton Audio Controller Debug   Entering deviceStopComm for 5 Game Rm; ID=1644872590
   Dayton Audio Controller Debug   Device is child object, attempting to remove from parent...
   Dayton Audio Controller Debug   Exiting deviceStopComm for 5 Game Rm
   Dayton Audio Controller Debug   Entering deviceStopComm for 6 Patio; ID=962094459
   Dayton Audio Controller Debug   Device is child object, attempting to remove from parent...
   Dayton Audio Controller Debug   Exiting deviceStopComm for 6 Patio
   Dayton Audio Controller Debug   Entering deviceStopComm for 7 Pool House; ID=1969759190
   Dayton Audio Controller Debug   Device is child object, attempting to remove from parent...
   Dayton Audio Controller Debug   Exiting deviceStopComm for 7 Pool House
   Dayton Audio Controller Debug   Entering deviceStopComm for 8 MBR; ID=536358103
   Dayton Audio Controller Debug   Device is child object, attempting to remove from parent...
   Dayton Audio Controller Debug   Exiting deviceStopComm for 8 MBR
   Stopped plugin "Dayton Audio Controller 2024.6.1"
   Starting plugin "Dayton Audio Controller 2024.6.1" (pid 52911)
   Dayton Audio Controller Debug   Initializing RPFrameworkPlugin
   Dayton Audio Controller Debug   Beginning processing of RPFrameworkConfig.xml file
   Dayton Audio Controller Debug   Found plugin setting: pluginUpdateURL = http://forums.indigodomo.com/viewforum.php?f=59
   Dayton Audio Controller Debug   Found device mapping; id: daytonAudioReceiver to class: DaytonAudioReceiverDevice
   Dayton Audio Controller Debug   Found device mapping; id: daytonAudioZone to class: DaytonAudioZone
   Dayton Audio Controller Debug   Created device parameter for managed device 'daytonAudioReceiver': serialPort
   Dayton Audio Controller Debug   Created device parameter for managed device 'daytonAudioReceiver': zonePollInterval
   Dayton Audio Controller Debug   Created device parameter for managed device 'daytonAudioReceiver': connectedSlaveUnits
   Dayton Audio Controller Debug   Found device setting: deviceAddressFormat=%ap:serialPort%
   Dayton Audio Controller Debug   Found device setting: telnetConnectionDeviceStateName=connectionState
   Dayton Audio Controller Debug   Found device setting: telnetConnectionDeviceStateBoolean=isConnected
   Dayton Audio Controller Debug   Found device setting: updateStatusPollerIntervalProperty=zonePollInterval
   Dayton Audio Controller Debug   Found device setting: updateStatusPollerActionId=updateDeviceStatesFromReceiver
   Dayton Audio Controller Debug   Found device setting: serialPortName=%dp:serialPort%
   Dayton Audio Controller Debug   Found device setting: serialPortBaud=9600
   Dayton Audio Controller Debug   Found device setting: serialPortParity=PARITY_NONE
   Dayton Audio Controller Debug   Found device setting: serialPortByteSize=EIGHTBITS
   Dayton Audio Controller Debug   Found device setting: serialPortStopBits=STOPBITS_ONE
   Dayton Audio Controller Debug   Found device setting: telnetDeviceReadTimeout=0.5
   Dayton Audio Controller Debug   Found device setting: telnetDeviceWriteTimeout=1.0
   Dayton Audio Controller Debug   Found device setting: deviceIsChildDevice=False
   Dayton Audio Controller Debug   Found device setting: childDeviceDictionaryKeyFormat=%dp:zoneNumber%
   Dayton Audio Controller Debug   Found device response: zoneStatusResponse
   Dayton Audio Controller Debug   Found response effect: Type=eventCallback; Param: zone_status_response_received; ValueFormat=; ValueFormatEx=; Eval=False; Condition=
   Dayton Audio Controller Debug   Created device parameter for managed device 'daytonAudioZone': sourceReceiver
   Dayton Audio Controller Debug   Created device parameter for managed device 'daytonAudioZone': zoneNumber
   Dayton Audio Controller Debug   Found device setting: deviceAddressFormat=Zone %ap:zoneNumber%
   Dayton Audio Controller Debug   Found device setting: deviceIsChildDevice=True
   Dayton Audio Controller Debug   Found device setting: deviceParentIdProperty=sourceReceiver
   Dayton Audio Controller Debug   Found managed action: updateDeviceStatesFromReceiver
   Dayton Audio Controller Debug   Found managed action: changePower
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'changePower': powerState
   Dayton Audio Controller Debug   Found managed action: changeSource
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'changeSource': zoneSource
   Dayton Audio Controller Debug   Found managed action: changeMute
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'changeMute': muteState
   Dayton Audio Controller Debug   Found managed action: changeZoneSource
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'changeZoneSource': zoneSource
   Dayton Audio Controller Debug   Found managed action: setZoneVolume
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'setZoneVolume': volumeTarget
   Dayton Audio Controller Debug   Found managed action: adjustZoneVolume
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'adjustZoneVolume': volumeAdjustment
   Dayton Audio Controller Debug   Found managed action: setZoneMute
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'setZoneMute': muteState
   Dayton Audio Controller Debug   Found managed action: toggleZoneMuteStatus
   Dayton Audio Controller Debug   Processing 0 params for action
   Dayton Audio Controller Debug   Found managed action: setZoneTreble
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'setZoneTreble': trebleValue
   Dayton Audio Controller Debug   Found managed action: setZoneBass
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'setZoneBass': bassValue
   Dayton Audio Controller Debug   Found managed action: setZoneBalance
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'setZoneBalance': balanceValue
   Dayton Audio Controller Debug   Found managed action: TurnOn
   Dayton Audio Controller Debug   Found managed action: TurnOff
   Dayton Audio Controller Debug   Found managed action: Toggle
   Dayton Audio Controller Debug   Found managed action: SetBrightness
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'SetBrightness': actionValue
   Dayton Audio Controller Debug   Found managed action: SendArbitraryCommand
   Dayton Audio Controller Debug   Processing 1 params for action
   Dayton Audio Controller Debug   Created parameter for managed action 'SendArbitraryCommand': commandCode
   Dayton Audio Controller Debug   Successfully completed processing of RPFrameworkConfig.xml file
   Started plugin "Dayton Audio Controller 2024.6.1"
   Dayton Audio Controller Debug   Entering deviceStartComm for 0 Dayton Audio Matrix Switch; ID=676825913
   Dayton Audio Controller Debug   Read device state config... isConnected: isConnected; connectionState: connectionState
   Dayton Audio Controller Debug   Returning default GUIConfigValue for daytonAudioReceiver: telnetConnectionEOLString
   Dayton Audio Controller Debug   Returning default GUIConfigValue for daytonAudioReceiver: telnetConnectionStringEncoding
   Dayton Audio Controller Debug   Returning default GUIConfigValue for daytonAudioReceiver: commandReadTimeout
   Dayton Audio Controller Debug   Returning default GUIConfigValue for daytonAudioReceiver: telnetConnectionRequiresLoginProperty
   Dayton Audio Controller Debug   Returning default GUIConfigValue for daytonAudioReceiver: updateStatusPollInitialDelay
   Dayton Audio Controller Debug   Returning default GUIConfigValue for daytonAudioReceiver: emptyQueueReducedWaitCycles
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Create connection command de-queued
   Dayton Audio Controller Debug   Exiting deviceStartComm for 0 Dayton Audio Matrix Switch
   Dayton Audio Controller Debug   Establishing connection to /dev/cu.usbserial-FT7ER4MN1
   Dayton Audio Controller Debug   Entering deviceStartComm for 1 Kitchen; ID=1737882882
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 1737882882: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 1737882882 to 676825913
   Dayton Audio Controller Debug   Created device key: 1
   Dayton Audio Controller Debug   Exiting deviceStartComm for 1 Kitchen
   Dayton Audio Controller Debug   Entering deviceStartComm for 2 Family Room; ID=641672610
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 641672610: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 641672610 to 676825913
   Dayton Audio Controller Debug   Created device key: 2
   Dayton Audio Controller Debug   Exiting deviceStartComm for 2 Family Room
   Dayton Audio Controller Debug   Entering deviceStartComm for 3 Study Halway; ID=1541557677
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 1541557677: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 1541557677 to 676825913
   Dayton Audio Controller Debug   Created device key: 3
   Dayton Audio Controller Debug   Exiting deviceStartComm for 3 Study Halway
   Dayton Audio Controller Debug   Entering deviceStartComm for 4 Dining Rm Living Rm; ID=1493860653
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 1493860653: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 1493860653 to 676825913
   Dayton Audio Controller Debug   Created device key: 4
   Dayton Audio Controller Debug   Exiting deviceStartComm for 4 Dining Rm Living Rm
   Dayton Audio Controller Debug   Entering deviceStartComm for 5 Game Rm; ID=1644872590
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 1644872590: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 1644872590 to 676825913
   Dayton Audio Controller Debug   Created device key: 5
   Dayton Audio Controller Debug   Exiting deviceStartComm for 5 Game Rm
   Dayton Audio Controller Debug   Entering deviceStartComm for 6 Patio; ID=962094459
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 962094459: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 962094459 to 676825913
   Dayton Audio Controller Debug   Created device key: 6
   Dayton Audio Controller Debug   Exiting deviceStartComm for 6 Patio
   Dayton Audio Controller Debug   Entering deviceStartComm for 7 Pool House; ID=1969759190
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 1969759190: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 1969759190 to 676825913
   Dayton Audio Controller Debug   Created device key: 7
   Dayton Audio Controller Debug   Exiting deviceStartComm for 7 Pool House
   Dayton Audio Controller Debug   Entering deviceStartComm for 8 MBR; ID=536358103
   Dayton Audio Controller Debug   Device is child object, attempting to find parent
   Dayton Audio Controller Debug   Found parent ID of device 536358103: 676825913
   Dayton Audio Controller Debug   Parent object found, adding this child device now
   Dayton Audio Controller Debug   Adding child device 536358103 to 676825913
   Dayton Audio Controller Debug   Created device key: 8
   Dayton Audio Controller Debug   Exiting deviceStartComm for 8 MBR
   Dayton Audio Controller Debug   Connection established
   Dayton Audio Controller Debug   No login required, scheduling status update
   Dayton Audio Controller Debug   Returning default GUIConfigValue for plugin: pluginCommandQueueIdleSleep
   Dayton Audio Controller Debug   Post Command Pause: 0.5
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Executing full status update request...
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Creating update request for unit 1
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Sending command: ?10
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Post Command Pause: 0.1

Aug 4, 2024 at 9:44:58 AM
   Dayton Audio Controller Debug   Dimmer Command: ActionId=TurnOn; Device=641672610; actionValue=0
   Dayton Audio Controller Debug   Command queue has 4 command(s) waiting
   Dayton Audio Controller Debug   Sending command: <12PR01
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Command queue has 3 command(s) waiting
   Dayton Audio Controller Debug   Sending command: ?12
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Command queue has 2 command(s) waiting
   Dayton Audio Controller Debug   Sending command: <12CH01
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Sending command: ?12
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Command queue has 2 command(s) waiting
   Dayton Audio Controller Debug   Sending command: <13VO01
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Sending command: ?13
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Executing full status update request...
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Creating update request for unit 1
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Sending command: ?10
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Post Command Pause: 0.1
   Dayton Audio Controller Debug   Command queue has 2 command(s) waiting
   Dayton Audio Controller Debug   Sending command: <12VO20
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Sending command: ?12
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Dimmer Command: ActionId=Toggle; Device=641672610; actionValue=0
   Dayton Audio Controller Debug   Execute condition failed, skipping execution for command: writeToTelnetConn
   Dayton Audio Controller Debug   Command queue has 2 command(s) waiting
   Dayton Audio Controller Debug   Sending command: <12PR01
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Sending command: ?12
   Dayton Audio Controller Debug   Write command completed.

Aug 4, 2024 at 9:45:57 AM
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Executing full status update request...
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Creating update request for unit 1
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Sending command: ?10
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Post Command Pause: 0.1
here are some status update requests:

Code: Select all

Aug 4, 2024 at 9:46:47 AM
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Executing full status update request...
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Creating update request for unit 1
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Sending command: ?10
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Post Command Pause: 0.1

Aug 4, 2024 at 9:47:37 AM
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Executing full status update request...
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Creating update request for unit 1
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Sending command: ?10
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Post Command Pause: 0.1

Aug 4, 2024 at 9:48:28 AM
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Executing full status update request...
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Creating update request for unit 1
   Dayton Audio Controller Debug   Command queue has 1 command(s) waiting
   Dayton Audio Controller Debug   Sending command: ?10
   Dayton Audio Controller Debug   Write command completed.
   Dayton Audio Controller Debug   Post Command Pause: 0.1
I don't see that it is getting any feedback from the unit?
hamw
Posts: 1249
Joined: Mon Mar 31, 2008 7:45 pm

Re: Dayton Audio Controller Plugin

Post by hamw »

the included USB to serial connector supplied by Dayton seemed like was a dumb plug that would not communicate at all. So I am using a Gearmo Data Communications Interface Converter, with two RS-232 plugs. I swapped the plugs, and the plugin generated an error, so it seems like it is doing some kind of handshake but not getting any response back. Could I http into the unit via a web interface?

Code: Select all

   Dayton Audio Controller Error   Error during background processing
Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Dayton Audio Controller.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkTelnetDevice.py", line 216, in concurrent_command_processing_thread
    response_text = self.read_line(ip_connection, line_ending_token, command_response_timeout)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Dayton Audio Controller.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkTelnetDevice.py", line 356, in read_line
    return connection.read_until(line_ending_token).decode(self.line_encoding)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 8: ordinal not in range(128)
   Dayton Audio Controller Debug   Closing connection to device
hamw
Posts: 1249
Joined: Mon Mar 31, 2008 7:45 pm

Re: Dayton Audio Controller Plugin

Post by hamw »

Any thoughts?
User avatar
RogueProeliator
Posts: 2520
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: Dayton Audio Controller Plugin

Post by RogueProeliator »

I've finally been able to spend some time, and just to be sure something wasn't amiss in general, I just tried putting my Dayton through the paces and all seems to be working. Except when I turn off the device and back on, the plugin doesn't seem to catch the dropped connection and doesn't successfully reconnect... but that obviously is not your issue here.

You are correct that in your assertion that it is not getting feedback from the device via the serial connection despite seemingly successfully connecting. My guess is we are not getting a good connection for some reason. That debug log should look something similar to this:

Code: Select all

Dayton Audio Controller Debug   Executing full status update request...
   Dayton Audio Controller Debug   Sending command: ?10
   Dayton Audio Controller Debug   Effect execution: Calling function zone_status_response_received
   Dayton Audio Controller Debug   Received status update for Zone 1: ?10
#>1100000000250707100100
#>1200000000070707100300
#>1300000000250707100100
#>1400000000250707100100
#>1500000000140707100300
#>1600000000130707100300
#
I would suggest we go back to the basics... can you disable the plugin and attempt to connect to the controller via some terminal? If you can connect, try typing in "?10" (obviously without the quotes) and enter. It may be easier outside of the plugin to ensure we have good communications before we debug within the plugin.

When you attempt a connection, the parameters should be:
9600 Baud
8 Bits
1 Stop Bit
No Parity

Adam
hamw
Posts: 1249
Joined: Mon Mar 31, 2008 7:45 pm

Re: Dayton Audio Controller Plugin

Post by hamw »

Well, I just don't seem to be able to establish communication with the device. I tried the GearMo adapter as well as the Keyspan USA19HS with new drivers. Checked the FTDI etc. No luck using the plugin or the Serial app direct command. I'll contact Dayton and see if they have any ideas; maybe it's a dead serial port. Any further thoughts would be appreciated.
hamw
Posts: 1249
Joined: Mon Mar 31, 2008 7:45 pm

Re: Dayton Audio Controller Plugin

Post by hamw »

just wondering if this is helpful.... I tried loading the FTDI driver, but not sure if it worked.

Code: Select all

Dayton Audio Controller Error   Error during background processing
Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Dayton Audio Controller.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkTelnetDevice.py", line 216, in concurrent_command_processing_thread
    response_text = self.read_line(ip_connection, line_ending_token, command_response_timeout)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Dayton Audio Controller.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkTelnetDevice.py", line 356, in read_line
    return connection.read_until(line_ending_token).decode(self.line_encoding)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 8: ordinal not in range(128)
hamw
Posts: 1249
Joined: Mon Mar 31, 2008 7:45 pm

Re: Dayton Audio Controller Plugin

Post by hamw »

Actually I can control the device with the Serial application, with <01PR01 then <01PR00 turning Zone 1 on and off. Here's the response:

Code: Select all

MCU+PAS&<01PR00
So no issues with the unit or the serial cable.

Could you please look at the plugin errors? Thanks so much!
Post Reply

Return to “RogueProeliator's Plugins and Apps”