Program app to control AHM by TCP/IP protocol

Forums Forums Other A&H products Program app to control AHM by TCP/IP protocol

This topic contains 10 replies, has 5 voices, and was last updated by Profile photo of djatomix1 djatomix1 2 months, 1 week ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #118185
    Profile photo of djatomix1
    djatomix1
    Participant

    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 sender

    I 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.
    #118188
    Profile photo of knowledgeworld
    knowledgeworld
    Participant

    Certainly! 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/

    #118190
    Profile photo of djatomix1
    djatomix1
    Participant

    thank 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.
    #118194
    Profile photo of Martijn
    Martijn
    Participant

    Why not use Custom Control?

    #118198
    Profile photo of Brian
    Brian
    Participant

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

    #118205
    Profile photo of djatomix1
    djatomix1
    Participant

    I’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?

    #118235
    Profile photo of djatomix1
    djatomix1
    Participant

    I have an idea after reading the manual between the lines,
    can I really send order by command prompt? or need I using midi translator?

    https://support.allen-heath.com/hc/en-gb/articles/4411155610641-General-Qu-SQ-Sending-CC-MIDI-messages-from-an-app-over-TCP-IP-to-control-QU-SQ

    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…

    #118242
    Profile photo of Nicola A&H
    Nicola A&H
    Keymaster

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

    #118252
    Profile photo of djatomix1
    djatomix1
    Participant

    I 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.
    #118413
    Profile photo of djatomix1
    djatomix1
    Participant

    I’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.port

    let 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));
    }

    #119524
    Profile photo of djatomix1
    djatomix1
    Participant

    I 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…

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.