Jump to content
C4 Forums | Control4

OS3 Volume Slider Issue - Sony Sound Bar


Recommended Posts


1 minute ago, jakblak said:

Ok, last one @Cartnj.  Can you try this one please?

 


gSystemVolumeDisplay = "STEP"
local output = 0
local volumeLevel_Step = 80
local minDeviceLevel = 0
local maxDeviceLevel = 50
local volumeLevel_dB = ConvertVolumeToDevice(volumeLevel_Step, minDeviceLevel, maxDeviceLevel)
tVolumeSetCommandMap_Step[output].value = volumeLevel_Step
command = tVolumeSetCommandMap_Step[output]
QueueCommand(command)

 

I dont mind testing this at all. If you can fix it..it will save me a day of running wires and buying an AVR.

here is the output

ProcessVolumeLevel(level in=80, level out=40)
QueueCommand(), sCommand =
--- Queue ---
  first = 2805
  last = 2804
  number in queue = 0
  maximum size = 100
 next value =
SendCommand(), sCommand =
SendToNetwork(6000, {"feature":"main.volumestep","id":2808,"type":"set","value":80})
Starting Timer: SendCommand
Send Timer expired
Send Timer expired - Pop Command:, Send Next Command
ReceivedFromNetwork(), idBinding = 6000, nPort = 33336, sData = {
   "id" : 2808,
   "type" : "result",
   "value" : "ERR"
}
GetMessage()
HandleMessage({
   "id" : 2808,
   "type" : "result",
   "value" : "ERR"
})
GetMessage()
 

Link to comment
Share on other sites

Ok @Cartnj, last one.

gSystemVolumeDisplay = "STEP"
local output = 0
local volumeLevel_Step = 80
local minDeviceLevel = 0
local maxDeviceLevel = 50
local volumeLevel_Conv = ConvertVolumeToDevice(volumeLevel_Step, minDeviceLevel, maxDeviceLevel)
tVolumeSetCommandMap_Step[output].value = volumeLevel_Conv
command = tVolumeSetCommandMap_Step[output]
QueueCommand(command)

 

Link to comment
Share on other sites

ProcessVolumeLevel(level in=80, level out=40)
QueueCommand(), sCommand =
--- Queue ---
  first = 2838
  last = 2837
  number in queue = 0
  maximum size = 100
 next value =
SendCommand(), sCommand =
SendToNetwork(6000, {"feature":"main.volumestep","id":2841,"type":"set","value":40})
Starting Timer: SendCommand
Send Timer expired
Send Timer expired - Pop Command:, Send Next Command
ReceivedFromNetwork(), idBinding = 6000, nPort = 33336, sData = {
   "id" : 2841,
   "type" : "result",
   "value" : "ACK"
}
GetMessage()
HandleMessage({
   "id" : 2841,
   "type" : "result",
   "value" : "ACK"
})
GetMessage()
GetMessage()
HandleMessage({
   "feature" : "main.volumestep",
   "type" : "notify",
   "value" : "40"
})
DEV_MSG.mainvolumestep(), value = 40
ReceivedFromNetwork(), idBinding = 6000, nPort = 33336, sData = {
   "feature" : "main.volumestep",
   "type" : "notify",
   "value" : "40"
}
ProcessVolumeLevel(level in=40, level out=80)
handle_volume_message(output=0, c4_level=80, sony_value=40)
SendToProxy(5001, VOLUME_LEVEL_CHANGED)
OUTPUT:  4000
LEVEL:  80
ReceivedFromNetwork(), idBinding = 6000, nPort = 33336, sData = {
   "feature" : "main.mute",
   "type" : "notify",
   "value" : "off"
}
GetMessage()
GetMessage()
HandleMessage({
   "feature" : "main.mute",
   "type" : "notify",
   "value" : "off"
})
DEV_MSG.mainmute(), value = off
SendToProxy(5001, MUTE_CHANGED)
OUTPUT:  4000
MUTE:  False
GetMessage()
 

Link to comment
Share on other sites

Awesome work jakblak!  I’m actually working with my dealer tonight on an unrelated upgrade to my system. I’ll let him know about this so he can update my driver when you have it ready. 

 

Link to comment
Share on other sites

I did try early on with the first set of commands that were suggested, but when I pressed execute nothing happened and no response (good or bad) showed up in the output window. Maybe HE is crippled this way. 

Link to comment
Share on other sites

@dinom and @Cartnj the updated drivers are attached.  For whatever reason the documentation has been lost when I converted them from C4I to C4Z files (Sorry, I haven't written drivers for a few years).  I'll pass the updated Lua code along to the driver team and hopefully they can put out an official fix.

receiver_HT-ST9_Network_DriverWorks__Sony.c4zreceiver_HT-NT3_Network_DriverWorks__Sony.c4z

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.