IP control of Electrovoice N8000 audio processor
sskannan
Junior Member
Could anyone please suggest me with some ideas on controlling the Electrovoice N8000 netmax audio processor over IP?
I have attached the codes below that iam trying to get it controlled over RS232 and IP. The Control over RS 232 is working but there is no strings going out to IP port.I am new to this IP control method.
DEFINE_DEVICE
dvPASystem = 5001:1:0 (*NI 900 Serial Port*)
dvIPClient = 0:3:0 (*NI 900 IP Port*)
dvTP = 11001:1:0
(***********************************************************)
(* CONSTANT DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_CONSTANT
nIPPort = 23
(***********************************************************)
(***********************************************************)
(* STARTUP CODE GOES BELOW *)
(***********************************************************)
DEFINE_START
SEND_COMMAND dvPASystem ,"'SET BAUD 19200,N,8,1,485 DISABLE'"
WAIT 50
IP_CLIENT_OPEN(3,'192.168.1.100',23,1)
(************************************************************)
(* THE EVENTS GO BELOW *)
(***********************************************************)
DEFINE_EVENT
//SERIAL Test//
BUTTON_EVENT[dvTP,1]
{
PUSH:
{
SEND_STRING dvPASystem, "'//PARAM/DSP/FUNCTIONS/LOAD_PRESET 1 ',$0D"
}
}
BUTTON_EVENT[dvTP,2]
{
PUSH:
{
SEND_STRING dvPASystem, "'//PARAM/DSP/FUNCTIONS/LOAD_PRESET 2 ',$0D"
}
}
// IP Test//
DATA_EVENT[dvIPClient]
{
ONERROR:
{
SEND_STRING 0,"'error: client=',ITOA(Data.Number)"
}
ONLINE:
{
SEND_STRING 0,"'online: client'"
}
OFFLINE:
{
SEND_STRING 0,"'offline: client'"
}
STRING:
{
SEND_STRING 0,"'string: client=',Data.Text"
}
}
BUTTON_EVENT[dvTP,3]
{
PUSH:
{
SEND_STRING dvIPClient,"'//PARAM/DSP/FUNCTIONS/LOAD_PRESET 3 ',13,10"
}
}
(***********************************************************)
(* THE ACTUAL PROGRAM GOES BELOW *)
(***********************************************************)
DEFINE_PROGRAM
(***********************************************************)
(* END OF PROGRAM *)
(* DO NOT PUT ANY CODE BELOW THIS COMMENT *)
(***********************************************************)
I have attached the codes below that iam trying to get it controlled over RS232 and IP. The Control over RS 232 is working but there is no strings going out to IP port.I am new to this IP control method.
DEFINE_DEVICE
dvPASystem = 5001:1:0 (*NI 900 Serial Port*)
dvIPClient = 0:3:0 (*NI 900 IP Port*)
dvTP = 11001:1:0
(***********************************************************)
(* CONSTANT DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_CONSTANT
nIPPort = 23
(***********************************************************)
(***********************************************************)
(* STARTUP CODE GOES BELOW *)
(***********************************************************)
DEFINE_START
SEND_COMMAND dvPASystem ,"'SET BAUD 19200,N,8,1,485 DISABLE'"
WAIT 50
IP_CLIENT_OPEN(3,'192.168.1.100',23,1)
(************************************************************)
(* THE EVENTS GO BELOW *)
(***********************************************************)
DEFINE_EVENT
//SERIAL Test//
BUTTON_EVENT[dvTP,1]
{
PUSH:
{
SEND_STRING dvPASystem, "'//PARAM/DSP/FUNCTIONS/LOAD_PRESET 1 ',$0D"
}
}
BUTTON_EVENT[dvTP,2]
{
PUSH:
{
SEND_STRING dvPASystem, "'//PARAM/DSP/FUNCTIONS/LOAD_PRESET 2 ',$0D"
}
}
// IP Test//
DATA_EVENT[dvIPClient]
{
ONERROR:
{
SEND_STRING 0,"'error: client=',ITOA(Data.Number)"
}
ONLINE:
{
SEND_STRING 0,"'online: client'"
}
OFFLINE:
{
SEND_STRING 0,"'offline: client'"
}
STRING:
{
SEND_STRING 0,"'string: client=',Data.Text"
}
}
BUTTON_EVENT[dvTP,3]
{
PUSH:
{
SEND_STRING dvIPClient,"'//PARAM/DSP/FUNCTIONS/LOAD_PRESET 3 ',13,10"
}
}
(***********************************************************)
(* THE ACTUAL PROGRAM GOES BELOW *)
(***********************************************************)
DEFINE_PROGRAM
(***********************************************************)
(* END OF PROGRAM *)
(* DO NOT PUT ANY CODE BELOW THIS COMMENT *)
(***********************************************************)
Comments
-
I've never actually worked with the processor you mention so there are gaping holes in my advice to you.
But, here's some things I see.WAIT 50 IP_CLIENT_OPEN(3,'192.168.1.100',23,1)
I would not put this in the startup code myself. There's no garranty that the master will have a good IP connection going at 50 ticks after bootup. If this is so, the connection will not open. IP_CLEINT_OPEN acts like a function and will send back a result.
for example:define_variable volatile slong result define_Start result=IP_CLIENT_OPEN(3,'192.168.1.100',23,1) // result will contain a number representing the result of your request. // see the help file for what the values mean.
Other things:
1. You're connection to the unit via port 23. Is this a telnet session? If so, you might try using your computer and hyperterminal to do the same thing and see if you get results. For example, does the thing have a login/password requiremnt? Does it respond with an acknowledement when commands are sent? Does it provide unsolicted feedback? All these things should work with hyperterminal. If so, you know the unit is responding properly.
2. Does the unit maintain a connection once you're logged in or does it terminate the connection after some period of time. For some devices, there are timeouts.
So, basically I'd write a couple things for this comm file.
a. Code to deal with and maintain the IP connection to the device. This should keep track of the presence of the device at the other end and maintain the proper connection. It shold let the program know when things are okay and when things are not okay.
b. a way to send/recieve commands to/from the device.
Hope this helps.
e -
IP control of Electrovoice N8000 Netmax audio processor
Hi Eric,
Thanks for your reply,
Yes, I am connecting with Port 23 (mentioned in the RS232 protocol manual). The default IP address of the device is 192.168.1.100. I communicated with it through hyperterminal.It does asks for userID (Netmax) and Password ( Netmax).When any command sent it reports back. It doesnt timesout.It maintains the connection. -
Hi Eric,
Thanks for your reply,
Yes, I am connecting with Port 23 (mentioned in the RS232 protocol manual). The default IP address of the device is 192.168.1.100. I communicated with it through hyperterminal.It does asks for userID (Netmax) and Password ( Netmax).When any command sent it reports back. It doesnt timesout.It maintains the connection.
Well, then you'll need to take the user and password into consideration in your program. Once you're connected it should work as advertised. Just mimic what you'd do in hyperterminal from the AMX side.
Leave a Comment
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums