bitfocus / companion-module-requests

Repository for tracking module requests
96 stars 10 forks source link

LAcoustics Amplifier remote #959

Open jejehamers opened 1 year ago

jejehamers commented 1 year ago

Hi everyone,

I found this topic about a possible way to send commands to LAcoustics amplifiers.

276

This thread is closed and doesnt seem to be looked after.

Here are somme commands given by LA to send snmp request to their amps :

Destination port UDP : 161 (SNMP)

Datagram : POWER SET Power Mode = ONLINE 30 2E 02 01 00 04 06 70 75 62 6C 69 63 A3 21 02 04 00 00 00 00 02 01 00 02 01 00 30 13 30 11 06 0C 2B 06 01 04 01 82 AD 06 01 04 01 00 02 01 01

SET Power Mode = STANDBY 30 2E 02 01 00 04 06 70 75 62 6C 69 63 A3 21 02 04 00 00 00 00 02 01 00 02 01 00 30 13 30 11 06 0C 2B 06 01 04 01 82 AD 06 01 04 01 00 02 01 02

GET Power Mode 30 2D 02 01 00 04 06 70 75 62 6C 69 63 A0 20 02 04 00 00 00 00 02 01 00 02 01 00 30 12 30 10 06 0C 2B 06 01 04 01 82 AD 06 01 04 01 00 05 00

Response if Power Mode == ONLINE 30 2E 02 01 00 04 06 70 75 62 6C 69 63 A2 21 02 04 00 00 00 00 02 01 00 02 01 00 30 13 30 11 06 0C 2B 06 01 04 01 82 AD 06 01 04 01 00 02 01 01 Response if Power Mode == STANDBY 30 2E 02 01 00 04 06 70 75 62 6C 69 63 A2 21 02 04 00 00 00 00 02 01 00 02 01 00 30 13 30 11 06 0C 2B 06 01 04 01 82 AD 06 01 04 01 00 02 01 02 MUTE SET output X = MUTED 30 30 02 01 00 04 06 70 75 62 6C 69 63 A3 23 02 04 00 00 00 00 02 01 00 02 01 00 30 15 30 13 06 0E 2B 06 01 04 01 82 AD 06 01 06 01 01 04 0X 02 01 01

SET output X = UNMUTED 30 30 02 01 00 04 06 70 75 62 6C 69 63 A3 23 02 04 00 00 00 00 02 01 00 02 01 00 30 15 30 13 06 0E 2B 06 01 04 01 82 AD 06 01 06 01 01 04 0X 02 01 02

Exemple:

SET output 2 = UNMUTED 30 30 02 01 00 04 06 70 75 62 6C 69 63 A3 23 02 04 00 00 00 00 02 01 00 02 01 00 30 15 30 13 06 0E 2B 06 01 04 01 82 AD 06 01 06 01 01 04 02 02 01 02

GET output X mute state 30 2F 02 01 00 04 06 70 75 62 6C 69 63 A0 22 02 04 00 00 00 00 02 01 00 02 01 00 30 14 30 12 06 0E 2B 06 01 04 01 82 AD 06 01 06 01 01 04 0X 05 00

Response if output == MUTED 30 30 02 01 00 04 06 70 75 62 6C 69 63 A2 23 02 04 00 00 00 00 02 01 00 02 01 00 30 15 30 13 06 0E 2B 06 01 04 01 82 AD 06 01 06 01 01 04 0X 02 01 01 Response if output == UNMUTED 30 30 02 01 00 04 06 70 75 62 6C 69 63 A2 23 02 04 00 00 00 00 02 01 00 02 01 00 30 15 30 13 06 0E 2B 06 01 04 01 82 AD 06 01 06 01 01 04 0X 02 01 02

I successfully tested the following commands using the companion generic Tcp module. Target ip : amplifier ip Target port : 161 (snmp port) Connect with TCP/UDP : UDP

Tested successfully these commands : Go standby : %30%2E%02%01%00%04%06%70%75%62%6C%69%63%A3%21%02%04%00%00%00%00%02%01%00%02%01%00%30%13%30%11%06%0C%2B%06%01%04%01%82%AD%06%01%04%01%00%02%01%02

Wakeup : %30%2E%02%01%00%04%06%70%75%62%6C%69%63%A3%21%02%04%00%00%00%00%02%01%00%02%01%00%30%13%30%11%06%0C%2B%06%01%04%01%82%AD%06%01%04%01%00%02%01%01

Mute one : %30%30%02%01%00%04%06%70%75%62%6C%69%63%A3%23%02%04%00%00%00%00%02%01%00%02%01%00%30%15%30%13%06%0E%2B%06%01%04%01%82%AD%06%01%06%01%01%04%01%02%01%01

Unmute one : %30%30%02%01%00%04%06%70%75%62%6C%69%63%A3%23%02%04%00%00%00%00%02%01%00%02%01%00%30%15%30%13%06%0E%2B%06%01%04%01%82%AD%06%01%06%01%01%04%01%02%01%02

All of these using command end character : None

I also checked the get commands (using the same method). With wireshark, i get the corrects answers from the amps. When a command is sent to the amplifier, it sends back a response with the status changed (confirms the command sent).

here are some screenshots from wireshark :

Mute commands to 2 amps (192.168.1.103 => mute 1&2, 192.168.1.101 => mute 2) and following response from amplifiers https://i.ibb.co/dD4Dnwt/Mute.jpg

Unmute commands to 2 amps (192.168.1.103 => mute 1&2, 192.168.1.101 => mute 2) and following response from amplifiers https://i.ibb.co/brL12j6/Unmute.jpg

Power status request to 1 amp (192.168.1.103) and following response https://i.ibb.co/7zW6PdH/Request.jpg https://i.ibb.co/K2p7HGt/Request-D.jpg https://i.ibb.co/WBpVbw6/Response-D.jpg

What I think the module should do :

Parameters :

Send commands :

Request status (for feedback in companion ?)

I've been experimenting with this several times, and it's working fine. It may find some use in fixed installs...

Would it be possible to get a module going with these infos ?

Thanks ;)

phillipivan commented 1 year ago

L'Acoustics will be depreciating the SNMP protocol in Q4 2023, and moving to a HTTP based API with firmware expected to be released around then. It may be better to wait until that API is published and support the new firmware going forward.

qwert-pc commented 7 months ago

@jejehamers Have you tried successfully using the get power mode command? After I send the command to the amplifier? The power amplifier does not have any network feedback information, and I used wireshark to check the network data. The command shows that it is udp protocol, not snmp. I also tried other get type commands with the same result. However, stand by/wake up, mute/unmute and others are normally used and have corresponding network feedback. Are there any errors or updates to these get type commands?