Forums › Forums › Other A&H products › Program app to control AHM by TCP/IP protocol
- This topic has 10 replies, 5 voices, and was last updated 10 months ago by djatomix1.
-
AuthorPosts
-
2024/01/08 at 11:15 am #118185djatomix1Participant
Hello
I have one AHM32, I want to fix it at my client company,
I want to program html page (with node.js server by telnet sending commands) with some buttons.
each button have to send packet to control my AHM.I tried on my windows different apps to sending packet. anything work 🙁
can you help me please?
I tried chataigne in TCP client mode
I tried CSC (like qlab)
I tried Putty (by telnet)
I tried TCP Client
I tried packet senderI don’t understand about Authentication how to send login and password.
Can you explain me how about control it on my window computer?
Attachments:
You must be logged in to view attached files.2024/01/08 at 12:08 pm #118188AnonymousInactiveCertainly! You appear to be having trouble controlling your AHM32 device via Telnet on your Windows computer. Set up a Node.js server on your computer to handle Telnet connections and respond to commands sent from an HTML page with buttons. Check that the HTML page executes the necessary Telnet commands to control the AHM32. Verify the IP address, port, and login credentials in your commands using tools such as Putty or Packet Sender.
Check server logs, confirm network connectivity, and seek help from relevant online communities to troubleshoot. Prioritise security measures as well, and consider encrypted communication for sensitive data. You can successfully control the AHM32 by meticulously configuring your server, understanding Telnet commands, and addressing authentication.
May it help you, Regards: https://qurantutorsonline.com/
2024/01/08 at 1:01 pm #118190djatomix1Participantthank you for your answer
I opened putty, load IP and port address, select Telnet mode. The prompt telnet opened, then logs of AHM change (errors in red) what can I do now?
when i wrote, nothing appears.
how can i put my credentials? (Admin 0000)
Do I need to translate login and passeword in hex?Attachments:
You must be logged in to view attached files.2024/01/08 at 3:00 pm #118194MartijnParticipantWhy not use Custom Control?
2024/01/08 at 3:45 pm #118198BrianParticipantWhy not use Custom Control?
I agree. Allen and Heath has created the Custom Control software for situations like this. It won’t be imbedded in a webpage, but you can easily design a screen with whatever buttons and graphical elements (you company logo for example) on it that users access to control the system.
2024/01/08 at 4:07 pm #118205djatomix1ParticipantI’m reading about custom control software, but I have a lot of different products to control : video matrix, LCD, videoprocessor…
It’s why I prefer control another software.
No idea how to login with putty?
2024/01/09 at 4:59 am #118235djatomix1ParticipantI have an idea after reading the manual between the lines,
can I really send order by command prompt? or need I using midi translator?It works if I use a midi driver translator (real midi to TCP/IP) between chataigne to AHM
The midi driver from A&H connects the AHM as an midi interface
But I really think it’s possible to use another way…
2024/01/09 at 8:42 am #118242Nicola A&HKeymasterThe authentication is only required for the TLS/SSL connection. With the TCP connection on port 51325, no authentication is required. I would suggest using this port first, to test and verify control messages, before moving on to a secure connection if needed.
All of the apps you listed should be able to communicate with your AHM without the MIDI Control driver in between.
Make sure you’re referencing the latest TCP protocol from https://www.allen-heath.com/hardware/ahm/ahm-32/resources/ and give us some examples of hex strings you’re trying to send.2024/01/09 at 12:39 pm #118252djatomix1ParticipantI don’t understand, I tried another time now, and it works !
I send hex data F0, 00, 00, 1A, 50, 12, 01, 00, 90, 00, 3F, 90, 00, 00 and mute input 01 is OFF.
I’m happy to have one result and I can carry on
thank you
Attachments:
You must be logged in to view attached files.2024/01/14 at 6:03 pm #118413djatomix1ParticipantI’m happy because I acheived to control the AHM by arduino or NodeJS.
Nodejs
socket.on(‘executecmd_telnet’, function (msg){
const command=msg.command
const address_ip=msg.ip
const adress_port=msg.portlet client = net.connect(adress_port,address_ip,()=>{
//client.setEncoding(‘utf8’);
client.setEncoding(‘hex’);io.emit(“receiptretour”,{“msg”:”Connecté !”,”ip”:””})
client.on(‘data’,(data)=>{
console.log(data);
io.emit(“receiptretour”,{“msg”:data,”ip”:address_ip})
});
setTimeout(() => {
console.log(“\xF0\x00\x00\x1A\x50\x12\x01\x00\x90\x00\x7F\x90\x00\x00”)
client.write(“\xF0\x00\x00\x1A\x50\x12\x01\x00\x90\x00\x7F\x90\x00\x00″);
// client.write(command+”\r\n”);
}, 100);});
client.on(‘error’, (err)=>io.emit(“receiptretour”,”écran non connecté !”));
})arduino
char command[] = “\xF0\x00\x00\x1A\x50\x12\x01\x00\x90\x00\x7F\x90\x00\x00″;
IPAddress lcd1(192, 168, 1, 91);
loop{
if (clientlcd1.connect(lcd1, 51325)) {
connexionlcd1=”connecté !”;
} else {
connexionlcd1=”NON connecté !”;
}
Serial.println(connexionlcd1);clientlcd1.write((uint8_t *)command, sizeof(command));
clientlcd1.write((uint8_t *)command, sizeof(command));
}2024/02/17 at 8:29 am #119524djatomix1ParticipantI can’t achieve to receive information about level, or mute.
I tried to get level of in1 with
\xF0\x00\x00\x1A\x50\x12\x01\x00\x00\x01\x0B\x17\x00\xF7
but there is not return.I watched about midi, it means there is a midi return, but not in TCP connection.
and when I change the volume, the midi message return don’t change.The return connection works because, when I use the AHM application, all actions return message by tcp connection.
I don’t understand, it’s the last point which I can’t use…
-
AuthorPosts
- You must be logged in to reply to this topic.