Your comments
This has been a great help for me in implementing sliders for volume control. I am a little stumped with this when the product requires a checksum to also be sent. What would be the best way to insert the volume (i.e. 00 - 99) but then also calculate a checksum of part of the string to add at the end?
Thanks for this! The switches are currently in Layer 2 mode, however I did find a solution. I was able to segregate the Control Network and the DANTE Network (both virtual interfaces) from the single physical interface of the microphone by using MAC Based VLAN Groups. This way VLAN 1 is visible to iRidium Server and it can control the microphone, but DANTE is still segregated off to VLAN 4 for audio routing. This has worked extremely well.
Hi Aleksandr - I confirm I installed telnetd and tcpd on the Ubuntu machine and have been using Telnet to connect to it deliberately (as I believe SSH isn't supported by iRidium yet). I also tried sending a packet to the Ubuntu computer on port 23 via TCP and it sends back the telnet handshake request. I believe this is where I am stuck - the handshake request (escape #) is coming back to iRidium but not showing login etc as the handshake is not completed.
Some other thoughts to try (and happy to take your advice) would be to:
1) Have iRidium call a script (the interface will run in Windows) which instead can be executed on the windows machine in the background to trigger the 6x Ubuntu computers to shutdown
2) Install iRidium Server on the 6x Ubuntu machines and have them locally execute commands. I have tried this, but have not been having luck installing iRIdium on Ubuntu 64 bit.
The command I am trying to issue is "sudo shutdown -P now" followed by admin password. My ultimate goal would be to use iRidium server to send through commands to Zoom to have them joined a specified call (i.e. instead of http:// I would use zoom:// to trigger the app to load and connect to the correct meeting ID and meeting password).
This is all part of a system I am building to have a master zoom computer (Windows, Host) whereby 6x slave devices (Ubuntu on NUC) can connect as participants to the main call with various video inputs for remotely directed education.
I too am having a similar issue. I have used the examples above however my telnet server will respond with 'box' and #. I am running telnetd on Ubuntu and I'm trying to use telnet to remotely control parameters on the computer from my iRidium control panel.
When using a terminal program, this is what I get:
Ubuntu 20.04 LTS
NUC-test login: iainbrew
Password:
Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-42-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
191 updates can be installed immediately.
0 of these updates are security updates.
To see these additional updates run: apt list --upgradable
Your Hardware Enablement Stack (HWE) is supported until April 2025.
Last login: Mon Aug 31 12:27:35 AEST 2020 from 192-168-1-111.tpgi.com.au on pts/1
iainbrew@NUC-test:~$
I modified the code above to be:
IR.AddListener(IR.EVENT_RECEIVE_TEXT, IR.GetDevice('AV_Driver'), function(text) { IR.Log("text = "+text); if (text.indexOf('NUC-test login:') != -1) { IR.Log("NUC-test login:") IR.GetDevice('AV_Driver').Send(['iainbrew',13,10]); } else if (text.indexOf('Password:') != -1) { IR.Log("Password:") IR.GetDevice('AV_Driver').Send(['super_secret_password',13,10]); } })
However all I get back in log is 'box' and #
I once solved this with another device which only required password, by sending the password in every command i.e.
'password',0x0D,'command_string',0x0D
But this doesn't work for Ubuntu login (with username and password)
Thanks for the info. I am going to brush up on my Cisco networking and see if I can 'separate' via MAC address the two interfaces of the microphone so control can be on VLAN 1 for the iRidium server, and audio on VLAN 4 for DANTE.
This worked beautifully - all my temperature values are updating across my panel projects when referencing the server token now - YAY!
Thanks for the response! It's after midnight in Sydney now so will try this when I get into work tomorrow.
The requests to the Hue Bridge are being conducted from the server. As it polls the bridge, I want it to put the returned value into a Server Tag/Variable which I can then display as text on a connected panel project. Would something like the following be more suitable?
//Get "temperature" number from motion sensor
// SENSOR 2 TEMPERATURE
var getTemperature = sensor2.state["temperature"];
var tempreadout2 = getTemperature.toString();
tempreadout2 = tempreadout2.slice(0,2) + "." + tempreadout2.charAt(2) + " ºC";
IR.SetVariable("ServerName.Tags.Lab1_Temperature", JSON.Stringify(tempreadout2));
Hi Vladimir
What is happening is that every 200ms I am requesting data from a Philips Hue Bridge 2.0. One of the items I am requesting is the temperature from a sensor. I want to be able to write that value into a Server Virtual Feedback which multiple Panel projects can then refer to for the sensor temperature.
Customer support service by UserEcho
Thank you for this - I looked into it and ended up making an Excel sheet which made the code for me. I have attached my project for your reference and JS below. It's a bit ugly, but I will test on Friday when i have a Samsung Display to control volume again.Level Test File
I am using a slider and writing the value (0-99) into a project token. I then read this token and call it 'samsungvolume.' Depending on the value (0-99) it will then send the correctly formatted command with checksum to the display to make the volume change when the slider is released.