claes / rotel-web-client

A web client to control Rotel RA-12 (and similar) amplifiers
Apache License 2.0
9 stars 2 forks source link

Slight problem with the volume slider #1

Open zisand opened 7 years ago

zisand commented 7 years ago

Hi Claes, thanks for providing this project. It works fine with my RA-12 aside from a slight problem with the volume slider.

Using the slider for the volume changes the volume at the amplifier correctly, but the slider flips back to the left.The shown volume level in the UI is the tenner value of the selected value, e.g. sliding the volume to 56, results in 5, 23 -> 2, but the volume at the amp is OK.

It's just a UI problem.

Unfortunately I've no idea about javascript, so I'm unable to fix it.

Kind regards from Germany

Andreas

P.S. I've developed a solution for web remote controling the RA-12 in python. It works more or less (less mostly :-). Your client is much nicer!

claes commented 7 years ago

What is the version of your Rotel amplifier's firmware? Mine is 2.1.0. What kind of computer and OS is running the service connected with the serial cable? Did you notice the notes in the end: "On slower computers, such as the Raspberry Pi first versions, communication sometimes slows down. Suspected cause is gc pauses. You can try to tweak the gc options of serial-port-json-server (see its documentation). Newer versions of Raspberry Pi supposedly does not suffer from this, according to serial-port-json-server documentation."

I did not use this in a while but testing now and it works quite alright. I remember it acted up once in a while though. Not sure if was the same problem.

zisand commented 7 years ago

Hi Claes,

thanks for the fast answer.

Pls. find below the requested information

I’ve checked it using different browsers (Chrome, Firefox, Safari) on macOS 10.12.6

Cheers

Andreas

Am 5. September 2017 um 22:58:54, Claes Holmerson (notifications@github.com) schrieb:

What is the version of your Rotel amplifier's firmware? Mine is 2.1.0. What kind of computer and OS is running the service connected with the serial cable? Did you notice the notes in the end: "On slower computers, such as the Raspberry Pi first versions, communication sometimes slows down. Suspected cause is gc pauses. You can try to tweak the gc options of serial-port-json-server (see its documentation). Newer versions of Raspberry Pi supposedly does not suffer from this, according to serial-port-json-server documentation."

I did not use this in a while but testing now and it works quite alright. I remember it acted up once in a while though. Not sure if was the same problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

zisand commented 7 years ago

Hi Claes,

some additional information. If the amp is switched of, the described behavior doesn’t appear.

I just checked the printscreen you provided via GitHub and saw, the the simulated LCD display is not displayed on my case.

Safari iOS:

Chrome macOS:

Cheers

Andreas

Am 5. September 2017 um 22:58:54, Claes Holmerson (notifications@github.com) schrieb:

What is the version of your Rotel amplifier's firmware? Mine is 2.1.0. What kind of computer and OS is running the service connected with the serial cable? Did you notice the notes in the end: "On slower computers, such as the Raspberry Pi first versions, communication sometimes slows down. Suspected cause is gc pauses. You can try to tweak the gc options of serial-port-json-server (see its documentation). Newer versions of Raspberry Pi supposedly does not suffer from this, according to serial-port-json-server documentation."

I did not use this in a while but testing now and it works quite alright. I remember it acted up once in a while though. Not sure if was the same problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

claes commented 7 years ago

Does not sound like you have proper communication going on. Can you control power on, power off, balance etc? Which version of serial-port-json-server are you using? I am using 1.86 on an old first gen Raspberry Pi. Did you configure the right device file that your serial cable is connectted to If you open the debug console in your browser, ("F12"), what is logged in the Javascript console when you switch settings etc in the GUI.

Example for me:

server: {"P":"/dev/ttyUSB0","D":"power_on!"}
rotelClient.js:260 data:[object Object]
rotelClient.js:266 responses[0]: power_on
rotelClient.js:278 not remainingDisplayCharCount
rotelClient.js:282 response: power_on
rotelClient.js:290 typeAndValue: power_on
rotelClient.js:297 type: 'power_on', value: 'undefined'
rotelClient.js:266 responses[1]: 
rotelClient.js:278 not remainingDisplayCharCount
rotelClient.js:282 response: 
rotelClient.js:290 typeAndValue: 
rotelClient.js:297 type: '', value: 'undefined'
rotelClient.js:252 server: {"P":"/dev/ttyUSB0","D":"display=040,     ROTEL RA-12    "}
rotelClient.js:260 data:[object Object]
rotelClient.js:266 responses[0]: display=040,     ROTEL RA-12    
rotelClient.js:278 not remainingDisplayCharCount
rotelClient.js:282 response: display=040,     ROTEL RA-12    
rotelClient.js:297 type: 'display', value: '040,     ROTEL RA-12    '
rotelClient.js:304 displayCharCount: 40valueX:  040,     ROTEL RA-12    '
rotelClient.js:252 server: {"P":"/dev/ttyUSB0","D":"                    "}
rotelClient.js:260 data:[object Object]
rotelClient.js:266 responses[0]:                     
rotelClient.js:268 remainingDisplayCharCount: 20
rotelClient.js:34 volume: null, power: standby, mute: null, inputSource: null, tone: off, bass: null, treble: null, balance: null, freq: null, play_status: null, display1: '     ROTEL RA-12    ', display2: '                    '
rotelClient.js:282 response:                     
rotelClient.js:290 typeAndValue:                     
rotelClient.js:297 type: '                    ', value: 'undefined'
rotelClient.js:252 server: {"P":"/dev/ttyUSB0","D":"display=040,  OPT1       VOL 24 "}
rotelClient.js:260 data:[object Object]