Go to advanced search

by lmarmisa
Fri Jul 20, 2018 12:08 pm
Forum: General discussion
Topic: Is it suitable? For a Computer Science course?
Replies: 44
Views: 5790

Re: Is it suitable?

Unix/Linux is the best platform. For sure.

I am 59 years old. I got my telecommunication engineer degree in 1981. My first contact with Unix was in 1985. I love RPi and I continue to learn new things every day with my RPis.
by lmarmisa
Fri Jul 20, 2018 11:27 am
Forum: Español
Topic: Habilitar y Deshabilitar conexión a internet
Replies: 2
Views: 512

Re: Habilitar y Deshabilitar conexión a internet

Hay routers que permiten definir planes horarios para filtrar la salida a Internet de los ordenadores o dispositivos conectados a la LAN. Si quieres controlar la salida a Internet desde dentro de la RPi, creo que lo más fácil es borrar o añadir la ruta por defecto. Para ver las rutas, puedes usar es...
by lmarmisa
Fri Jul 20, 2018 8:30 am
Forum: Español
Topic: Error en pendrive "no space left on device"
Replies: 6
Views: 1175

Re: Error en pendrive "no space left on device"

El máximo número de ficheros por directorio en una partición fat32 está limitado a 65535 ficheros. No parece que estés cerca de ese número. Dices que el número total de ficheros son unos 11000, pero probablemente estarán guardados en múltiples directorios. No parece tampoco que estés intentando copi...
by lmarmisa
Thu Jul 19, 2018 1:28 pm
Forum: Italiano
Topic: Matrice Keypad 1x4
Replies: 1
Views: 455

Re: Matrice Keypad 1x4

Se hai bisogno di aiuto, dovresti indicare il modello di keypad che hai acquistato.

Probabilmente dovresti collegare i 4 pin dei tasti a 4 ingressi GPIO, definendo questi pins come inputs open-collector.

Dovresti anche sviluppare uno script python per rilevare le sequenze di tasti della tastiera.
by lmarmisa
Thu Jul 19, 2018 1:14 pm
Forum: Français
Topic: Problème d'activation du Wifi sur Raspi 3 B+
Replies: 2
Views: 1397

Re: Problème d'activation du Wifi sur Raspi 3 B+

Ces deux commandes pourraient fournir des informations sur votre problème. Tapez-les après la validation du Wifi code:

Code: Select all

iwconfig wlan0
ifconfig wlan0
by lmarmisa
Thu Jul 19, 2018 12:59 pm
Forum: Español
Topic: Programar en pyhton desde SSH
Replies: 4
Views: 1772

Re: Programar en pyhton desde SSH

Si quieres programar en python en tu RPi mediante una conexión ssh, usa putty en tu PC: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html Si deseas acceder remotamente a tu RPi con interfaz gráfica, podrías usar RealVNC Viewer: https://www.realvnc.com/en/connect/download/viewer/ El este...
by lmarmisa
Thu Jul 19, 2018 8:54 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 21
Views: 9788

Re: I can not start motion as daemon

Why did you type the command?: sudo systemctl enable motiom This command is not necessary. You should enable the daemon simply by changing this line of the file /etc/default/motion : # set to 'yes' to enable the motion daemon start_motion_daemon=yes The command systemctl status motion will show the ...
by lmarmisa
Tue Jul 17, 2018 4:45 pm
Forum: Beginners
Topic: Serial connection troubleshooting
Replies: 10
Views: 869

Re: Serial connection troubleshooting

A few comments: 1) I wrote my post while your edited yours. So, I did not know that your solved your problem. 2) Sorry. I misunderstood which element was not booting. 3) A 2 wires cable will be functional, of course. But I recommend a more practical cable with 3 wires (2/3, 3/2 & 5/5). So both sides...
by lmarmisa
Tue Jul 17, 2018 2:07 pm
Forum: Beginners
Topic: Serial connection troubleshooting
Replies: 10
Views: 869

Re: Serial connection troubleshooting

So as soon as I connect the null modem cable the device shuts down and won't boot unless I unplug the cable. It doesn't matter if the raspberry or the serial to usb are connected on the other side. According to your comments the RS232 to USB adapter could be damaged or the cable is defective. Unplu...
by lmarmisa
Fri Jul 13, 2018 9:31 pm
Forum: Beginners
Topic: Serial connection troubleshooting
Replies: 10
Views: 869

Re: Serial connection troubleshooting

Sorry, I did not change the baudrate :o

Code: Select all

#!/usr/bin/env python

import serial

ser = serial.Serial('/dev/ttyUSB0',9600)
  
while 1:
  lectura=ser.readline().rstrip()
  print lectura
by lmarmisa
Fri Jul 13, 2018 1:06 pm
Forum: Beginners
Topic: Serial connection troubleshooting
Replies: 10
Views: 869

Re: Serial connection troubleshooting

Pay attention to your RS232 cable. You will need probably a null-modem cable. If you do not cross wires 2 and 3, you will be not able to receive any char. https://en.wikipedia.org/wiki/Null_modem#/media/File:D9_Null_Modem_Wiring.png https://en.wikipedia.org/wiki/Null_modem This python 2 script shoul...
by lmarmisa
Fri Jul 13, 2018 12:16 pm
Forum: Beginners
Topic: Serial connection troubleshooting
Replies: 10
Views: 869

Re: Serial connection troubleshooting

Before developing a script, I recommend using a terminal emulator like picocom : sudo apt-get install picocom picocom -b 9600 /dev/ttyUSB0 The exit sequence is Ctr-a Ctrl-x Once you will be able to see chars and lines with picocom, you can go back to your script if such script is really needed.
by lmarmisa
Fri Jul 13, 2018 11:26 am
Forum: Español
Topic: copiar de carpeta a usb raspian
Replies: 2
Views: 1187

Re: copiar de carpeta a usb raspian

Entiendo que cuando insertas el pendrive o arrancas con él, éste se monta automáticamente en una carpeta bajo el directorio /media/pi . Lo primero que te recomendaría es que añadieras una etiqueta al pendrive al formatearlo. Suponte que esa etiqueta es USB01 . Con esa etiqueta el pendrive se automon...
by lmarmisa
Thu Jul 12, 2018 8:31 pm
Forum: Troubleshooting
Topic: CAn no longer ping by hostname
Replies: 19
Views: 3217

Re: CAn no longer ping by hostname

Many routers provide the capability to assign a static IP based on the MAC address of the dhcp client. I recommend this option whenever it is available. In relation with bonjour, I believe that the problem lies in your PC. I suppose that this command works correctly on your RPi: ping -c4 rpihostname...
by lmarmisa
Thu Jul 12, 2018 12:20 pm
Forum: Español
Topic: raspi 3 b+ iniciar con programa python
Replies: 2
Views: 1153

Re: raspi 3 b+ iniciar con programa python

¿Utilizas el entorno gráfico en tu RPi?. ¿Tu programa dispone de interfaz gráfica que interacciona con el usuario? O, aun no teniendo interfaz gráfica, ¿precisas que el script python se muestre en la pantalla del entorno gráfico?. ¿O simplemente pretendes que se arranque el programa en background de...
by lmarmisa
Wed Jul 11, 2018 10:10 pm
Forum: Troubleshooting
Topic: Git clone and apt not working.
Replies: 15
Views: 2101

Re: Git clone and apt not working.

You assigned the IP 192.168.0.111. This address belongs very probably to the dhcp pool managed by your router. So, according to that IP address, the router could consider your RPi as a intruder and therefore it could drop its TCP/UDP traffic to the Internet. Try defining a static IP not belonging to...
by lmarmisa
Tue Jul 10, 2018 12:40 pm
Forum: Python
Topic: Integrate pywws in python script
Replies: 1
Views: 466

Re: Integrate pywws in python script

I do not knot pywws, but that program supports a module for mqtt: The pywws.service.mqtt module can be used to send weather data to an MQTT broker. http://pywws.readthedocs.io/en/latest/essentials/dependencies.html#mqtt http://pywws.readthedocs.io/en/latest/api/pywws.service.mqtt.html#module-pywws.s...
by lmarmisa
Tue Jul 10, 2018 10:58 am
Forum: Troubleshooting
Topic: How to duplicate USB sound to 2 loopback devices using alsa?
Replies: 3
Views: 1023

Re: How to duplicate USB sound to 2 loopback devices using alsa?

I do not know the trx tool but I can read that it supports multicast: It can be used for point-to-point audio links or multicast, eg. private transmitter links for a radio station or other live audio distribution. tx -h 239.0.0.1 # send audio over multicast rx -h 239.0.0.1 # recieve audio from the a...
by lmarmisa
Mon Jul 09, 2018 6:45 pm
Forum: Troubleshooting
Topic: Git clone and apt not working.
Replies: 15
Views: 2101

Re: Git clone and apt not working.

The behaviour of your Pi seems good. The protocol http works fine inside your LAN but it fails when you try to access to the internet. The default route looks good. The gateway (your router, 192.168.0.1) is apparently dropping your http connections to the Internet. I believe that the problem is due ...
by lmarmisa
Mon Jul 09, 2018 6:25 pm
Forum: Troubleshooting
Topic: CAn no longer ping by hostname
Replies: 19
Views: 3217

Re: CAn no longer ping by hostname

If you wish to use the service bonjour (hostname.local) on windows 10, you should install one of these two Apple applications:

1) iTunes

2) Bonjour Print Services for Windows

Are you sure that the service bonjour is currently active on your computer?.
by lmarmisa
Mon Jul 09, 2018 11:43 am
Forum: Advanced users
Topic: Remote control python
Replies: 1
Views: 753

Re: Remote control python

Consider using sockets: https://www.tutorialspoint.com/python/python_networking.htm https://pymotw.com/2/socket/tcp.html If the interaction is unidirectional or not too complex, mqtt could be a simple solution too: http://www.steves-internet-guide.com/into-mqtt-python-client/ https://www.infoq.com/a...
by lmarmisa
Sun Jul 08, 2018 4:51 pm
Forum: Troubleshooting
Topic: CAn no longer ping by hostname
Replies: 19
Views: 3217

Re: CAn no longer ping by hostname

Go to advanced search