Jump to content
dinom

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()
 

Share this post


Link to post
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)

 

Share this post


Link to post
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()
 

Share this post


Link to post
Share on other sites

OK great, this will be easy to fix.  I'll create a new driver with the changes to get it working and I'll attach it to this post when I get done.  Look for it in the next day or two.  Thanks @dinom and @Cartnj

Share this post


Link to post
Share on other sites

Wow Awesome! I will keep an eye out for it

Thanks. By the way. My driver is the Sony HT-NT3

I know the other poster is using a different driver...

Share this post


Link to post
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. 

 

Share this post


Link to post
Share on other sites

Cartnj just curious if you were able to run those tests with HE?  Or are you using Pro?

Share this post


Link to post
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. 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

no. i just loaded yours it shows july 2019.. 

Can you download the HT-nt3 just let me know if it shows 2019 or 2015 please

Share this post


Link to post
Share on other sites

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...