Home AMX User Forum NetLinx Studio

What is the Terminal inside of NS supposed to do?

I was hoping I could connect a serial device to my master, open the terminal in NS, and then interact with the serial device like it was connected to the serial port on my computer.

Whenever I open the terminal window, it is white, but I can't type anything.

Comments

  • Thomas HayesThomas Hayes Posts: 1,164
    Is the window white once you open it? If so you need to type 'echo on' to see any feedback.
  • DHawthorneDHawthorne Posts: 4,584
    It's really more for Axcent than for NetLinx; and that "echo on command" is only Axcent as well. For NetLinx devices, you do better to open a Telnet connection.

    Once connected to an Axcent, it will reflect any "send_string 0" commands from your code, and allow you to pulse channels, do send_commands, etc.
  • jweatherjweather Posts: 320
    travis wrote: »
    I was hoping I could connect a serial device to my master, open the terminal in NS, and then interact with the serial device like it was connected to the serial port on my computer.

    You can do that, but it isn't quite as convenient. Turn on device notifications for strings to/from the appropriate port on your controller (5001:1:1 for instance), then use Control A Device to send strings to the device, and watch the responses in the Notifications pane. Don't forget to use a command to set the serial settings first if they aren't already set up.
  • Chip MoodyChip Moody Posts: 727
    Whichever method you use to open a terminal window to your master, (Telnet for IP, NS Terminal for RS232) you can use the PASS command to make the device connected to the master believe it's only talking to you...

    - Chip
  • travistravis Posts: 180
    Wait, how do I telnet into a device that's connected to my master through serial?
  • DHawthorneDHawthorne Posts: 4,584
    travis wrote: »
    Wait, how do I telnet into a device that's connected to my master through serial?

    1) Telnet to the master
    2) Type 'msg on'
    3) type 'pass <device number>

    From then on, whatever you type will go to the serial port in <device number>, and you will see the feedback from it directly. The master will not, however, process it anymore, you have taken over the serial port from the master. When you are done, type in '++ <esc> <esc>' to exit pass mode.
  • Spire_JeffSpire_Jeff Posts: 1,917
    DHawthorne wrote: »
    It's really more for Axcent than for NetLinx; and that "echo on command" is only Axcent as well. For NetLinx devices, you do better to open a Telnet connection.

    I agree that Telnet is better (and more convenient for my lazy butt), but I have used the "echo on" command with NetLinx processors without problems.

    Jeff
  • travistravis Posts: 180
    Well that's handy.

    Now trying to figure out the right PuTTY settings. Some things are looking a little wonky.
    ~# ls -l
    
    drwx------    2 root     root            0 Jan 30  2008 \1B[1;34mbin\1B[0m
    drwx------    2 root     root            0 Jan 30  2008 \1B[1;34mboot\1B[0m
    
  • Thomas HayesThomas Hayes Posts: 1,164
    I just tried the echo on with a NI-700 here at home and it works.
  • travistravis Posts: 180
    I just tried the echo on with a NI-700 here at home and it works.

    I have a NI-700 too. I can't even type echo on.
  • HedbergHedberg Posts: 671
    I was experimenting with Putty just the other day and it seemed to connect to port 22 on the NI700 without any problem. There is a tech note about connecting to SSH servers with Putty and the server included on the NI700 seems to function just as described in the TN.
  • travistravis Posts: 180
    Hedberg wrote: »
    I was experimenting with Putty just the other day and it seemed to connect to port 22 on the NI700 without any problem. There is a tech note about connecting to SSH servers with Putty and the server included on the NI700 seems to function just as described in the TN.

    I think it's because I'm connecting to a weird linux box, through serial, through the master, through ethernet, through putty
Sign In or Register to comment.