I have a new PPMAC EtherLite that I can connect to with the IDE no issues. For my application, I need to connect programmatically from a Python application over either Telnet or SSH. I have Telnet working, but have hit a snag with SSH.
I can connect to the controller via either Telnet or SSH using PuTTY. I can log in, execute "ls" and other Linux commands, and I can finally start "gpascii" and talk to the controller.
I can also perform all of these operations programmatically from a Python application using the Python telnetlib module. No problems there.
When I try to connect from a Python application using the most common SSH library, paramiko, I am able to log in, execute "ls" and other Linux commands, but it hangs when I try to execute "gpascii". The command is sent but there is no reply, and it hangs when I try to read the output buffer. If I garble the "gpascii" string to say "gPascii", I get an error response such as:
['bash: gPascii: command not found\n']
I am about ready to give up on SSH, but that could pose problems for us if the PPMAC is later put on the external network. Any suggestions? Trying another development tool, C#/.NET or Java may be an option.