Serial command
Denis
Junior Member
Hi
I tried a small test with netlink studio, and I tink as it's correct but when I send command trought the TX led on port one dosen't lit why?
If the command are no good, the TX pilot should lit ?
I tried a small test with netlink studio, and I tink as it's correct but when I send command trought the TX led on port one dosen't lit why?
PROGRAM_NAME='SNH2009'
(***********************************************************)
(* DEVICE NUMBER DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_DEVICE
dv_MATRIX = 5001:1:0
dv_TP = 10001:1:0
(***********************************************************)
(* THE EVENTS GO BELOW *)
(***********************************************************)
DEFINE_EVENT
DATA_EVENT[dv_MATRIX]
{
ONLINE:
{
SEND_COMMAND dv_MATRIX, "'SET BAUD 9600,N,8,1 485 DISABLE'"
}
}
BUTTON_EVENT [dv_TP,1]
{
PUSH:
{
SEND_COMMAND dv_MATRIX, "'INPUT- INTERNAL TUNER,1'"
}
}
BUTTON_EVENT [dv_TP,2]
{
PUSH:
{
SEND_COMMAND dv_MATRIX, "'INPUT-INTERNAL TUNER,0'"
}
}
If the command are no good, the TX pilot should lit ?
Comments
-
Hi
I tried a small test with netlink studio, and I tink as it's correct but when I send command trought the TX led on port one dosen't lit why? ... If the command are no good, the TX pilot should lit ?
use send_string instead of send_command...
// try this
SEND_STRING dv_MATRIX, "'INPUT- INTERNAL TUNER,1'" -
You need to change your button_events to send_string not send_command.
send_command speaks to the AMX device - therefore your online_event is fine. -
Thanks, now the pilot lit..
But I'm sure as I tried before my post .... sorry, I'm confuse with the doc in module, they spoke about "send_command" and since Matrix is a product of AMX I tried send command too and I dont know why my first (send_string) test has don't work -
SEND_COMMAND is for sending instructions to the device itself; setup parameters, special functions, etc. SEND_STRING tells the device to pass that string through its port.
-
Thank for your help
Only one thing, after many hr of labour, I was confused ( lack experience). The real problem was my "Matser" controler!
It's run any program who use ip protocol to communicate with interface, (ie: Modero intercom) but when I asked for external command such as serial, relay or IR out the master never send thoses commands. I use a new master and now all work nice!
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