Raspberry Paramiko Help!
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9.9k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
Good morning, I have an issue. I am developing a degree project with raspberry pi 2 and I have to, continuously, collect data every 1µs from a sensor that uses SPI communication and finally to collect those data from a remot client through the SSH protocol in Python with Paramiko module. The SPI communication is already working, but the Python script, in Pycharm, in spite of it seems that it works, is not showing any data y returns a value of 1 when I stop the program. Here is the script:
import paramiko
ssh_servidor = '192.168.0.11'
ssh_usuario = 'pi'
ssh_clave = 'pi'
ssh_puerto = 22
ssh_cliente = paramiko.SSHClient()
ssh_cliente.set_missing_host_key_policy(paramiko.AutoAddPolicy)
ssh_cliente.connect(hostname=ssh_servidor,port=ssh_puerto,username=ssh_usuario,password=ssh_clave)
comando = 'echo %s | sudo ./prueba250118v2' % ssh_clave
entrada, salida, error = ssh_cliente.exec_command(comando)
print salida.read()
print error.read()
ssh_cliente.close()
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the posted Python script, focusing on SSHClient.connect and exec_command, and reproduce it against the Raspberry Pi while checking the captured stdout and stderr. Done means the remote command's sensor output is observable through the script and its termination result is understood.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, raspberry-pi
- Domain
- embedded-iot, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100