SC-N8002 N-Command 2.0 serial scripts
Frequently Asked Questions
Table of Contents
Brand:
- AMX
Models:
- SC-N8002
Question:
What is the recommended way to do serial control from N8002 Script Builder?
Answer:
Use tcpclient in N8002 N-Command Script Builder for serial commands.
If you have the serial command saved on the encoder/decoder, then you can create a script:
tcpclient <ip address> <50001 or 50002> sendser:<name>
If you don't have serial commands saved on encoder/decoder, then you can create a script:
Using ASCII:
tcpclient <ip address> 50004 "hello world"
Note: Must include the quotes to do ASCII
or Using HEX:
tcpclient <ip address> 50004 68 65 6c 6c 6f 20 77 6f 72 6c 64
Additional Information:
Most commands (some commands are hidden) sent to ports 50001 and 50002 will show in encoder/decoder log.
Any commands sent to port 50004 do not show up in encoder/decoder log (Logs will not show anything over port 50004).
for example:
sending this command - tcpclient <ip address> <50001 or 50002> sendser:<name> would show in decoder log.
sending this command - tcpclient <ip address> 50004 "hello world" would not show in decoder log.
Please see N-Series Controller Direct Control API documentation for more information:
N-Series Controller Direct Control API
Table of Contents