jakblak Posted July 31, 2019 Share Posted July 31, 2019 (edited) Wrong snippet Edited July 31, 2019 by jakblak Bad snippet Quote Link to comment Share on other sites More sharing options...
JSTRONG Posted July 31, 2019 Share Posted July 31, 2019 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() Quote Link to comment Share on other sites More sharing options...
jakblak Posted July 31, 2019 Share Posted July 31, 2019 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) Quote Link to comment Share on other sites More sharing options...
jakblak Posted July 31, 2019 Share Posted July 31, 2019 Sorry, had a bad variable name in that one before last Quote Link to comment Share on other sites More sharing options...
JSTRONG Posted July 31, 2019 Share Posted July 31, 2019 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() Quote Link to comment Share on other sites More sharing options...
jakblak Posted July 31, 2019 Share Posted July 31, 2019 @Cartnj Did that result in the UI showing 80 and the sound bar showing 40? Quote Link to comment Share on other sites More sharing options...
JSTRONG Posted July 31, 2019 Share Posted July 31, 2019 yes Quote Link to comment Share on other sites More sharing options...
jakblak Posted July 31, 2019 Share Posted July 31, 2019 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 Quote Link to comment Share on other sites More sharing options...
JSTRONG Posted July 31, 2019 Share Posted July 31, 2019 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... msgreenf 1 Quote Link to comment Share on other sites More sharing options...
dinom Posted July 31, 2019 Author Share Posted July 31, 2019 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. Quote Link to comment Share on other sites More sharing options...
dinom Posted July 31, 2019 Author Share Posted July 31, 2019 Right, I’m using Sony HT-ST9. Quote Link to comment Share on other sites More sharing options...
jakblak Posted July 31, 2019 Share Posted July 31, 2019 Thanks guys, I'll update both of them Quote Link to comment Share on other sites More sharing options...
dinom Posted July 31, 2019 Author Share Posted July 31, 2019 Cartnj just curious if you were able to run those tests with HE? Or are you using Pro? Quote Link to comment Share on other sites More sharing options...
JSTRONG Posted July 31, 2019 Share Posted July 31, 2019 I have pro here. I would think if you have can execute it should work. Have you tried ? Quote Link to comment Share on other sites More sharing options...
dinom Posted July 31, 2019 Author Share Posted July 31, 2019 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. Quote Link to comment Share on other sites More sharing options...
JSTRONG Posted July 31, 2019 Share Posted July 31, 2019 Yes you have to set debug to print or log. I’m not at my laptop anymore. Quote Link to comment Share on other sites More sharing options...
jakblak Posted July 31, 2019 Share Posted July 31, 2019 @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 dinom and msgreenf 2 Quote Link to comment Share on other sites More sharing options...
dinom Posted July 31, 2019 Author Share Posted July 31, 2019 Just had my dealer load this in for me. Works perfectly now! Thanks again, you really came through!!!! jakblak, msgreenf and neil12011 3 Quote Link to comment Share on other sites More sharing options...
neil12011 Posted July 31, 2019 Share Posted July 31, 2019 Shout out to BlakJak for helping out with this in the above mentioned case. Thank you! jakblak, dinom and msgreenf 3 Quote Link to comment Share on other sites More sharing options...
JSTRONG Posted July 31, 2019 Share Posted July 31, 2019 No way !! I’m in bed but tomorrow I’ll be uploading this. Thanks very much. This saved me big time. msgreenf and jakblak 2 Quote Link to comment Share on other sites More sharing options...
JSTRONG Posted July 31, 2019 Share Posted July 31, 2019 Hi Jakblak. the driver update did not fix the volume issue. Quote Link to comment Share on other sites More sharing options...
dinom Posted July 31, 2019 Author Share Posted July 31, 2019 Weird, it did for me on my unit. Sorry to hear that. Quote Link to comment Share on other sites More sharing options...
JSTRONG Posted July 31, 2019 Share Posted July 31, 2019 How did it fix it? Volume slider on tp maxed at 50? Quote Link to comment Share on other sites More sharing options...
JSTRONG Posted July 31, 2019 Share Posted July 31, 2019 Hey Dinom, does your driver modification date show 2015? Quote Link to comment Share on other sites More sharing options...
JSTRONG Posted July 31, 2019 Share Posted July 31, 2019 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.