Go to advanced search

by lmarmisa
Wed Jul 25, 2018 9:30 am
Forum: Networking and servers
Topic: NTP between two Pi Zero
Replies: 8
Views: 916

Re: NTP between two Pi Zero

Hmmm. I think it's not a good idea to restart the service ( sudo service ntp restart ) and immediately look at its statistics ( ntpq -pn ). When you restart the service, the statistics are restarted too. :o Therefore, wait a few minutes and then type the two commands ntpq -pn . This link will help y...
by lmarmisa
Tue Jul 24, 2018 6:37 pm
Forum: Networking and servers
Topic: NTP between two Pi Zero
Replies: 8
Views: 916

Re: NTP between two Pi Zero

I have tried to add another Raspberry as a client and when I do: sudo ntpdate-debian I do not know the command ntpdate-debian . Are you using a raspbian distro?. I believe that you need to install the package ntp on both RPis: sudo apt-get install ntp Then you have to configure the file /etc/ntp.co...
by lmarmisa
Tue Jul 24, 2018 1:40 pm
Forum: Networking and servers
Topic: NTP between two Pi Zero
Replies: 8
Views: 916

Re: NTP between two Pi Zero

These commands will be useful:

Code: Select all

ntpq -pn
timedatectl status
First step: check that the server is working properly.

Second step: verify the subnet between both RPis (use the command ping on both sides).

Third step: verify that the client is able to synchronize date/time with the server.
by lmarmisa
Tue Jul 24, 2018 9:39 am
Forum: Español
Topic: Consejos para soldar PI 3B
Replies: 7
Views: 1342

Re: Consejos para soldar PI 3B

Hay una solución de compromiso que podría funcionar sin necesidad de soldadura. Me refiero a usar los pines de 5V y GND del conector de GPIO: https://www.raspberrypi.org/documentation/usage/gpio/ https://www.raspberrypi.org/documentation/hardware/raspberrypi/schematics/README.md Para el caso de la R...
by lmarmisa
Tue Jul 24, 2018 5:07 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 21
Views: 7298

Re: I can not start motion as daemon

We are looking in a wrong file ( /var/log/syslog ). ... # Use a file to save logs messages, if not defined stderr and syslog is used. (default: not defined) logfile /var/log/motion/motion.log ... According to your configuration the log file is /var/log/motion/motion.log . Take a look at this file in...
by lmarmisa
Mon Jul 23, 2018 3:06 pm
Forum: Español
Topic: Error en pendrive "no space left on device"
Replies: 6
Views: 893

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

Si sólo vas a conectar el pendrive a la RPi, te recomiendo usar una partición nativa Linux ext4 . Para formatear usa la herramienta gparted : sudo apt-get install gparted Arranca gparted mediante Inicio -> Preferencias -> gparted. Selecciona arriba a la derecha el dispositivo del pendrive (probablem...
by lmarmisa
Mon Jul 23, 2018 12:45 pm
Forum: Beginners
Topic: Babel routing protocol on Raspberry Pi
Replies: 1
Views: 417

Re: Babel routing protocol on Raspberry Pi

I have no knowledge about Babel, but maybe your program is working correctly. Try launching your program in background: sudo babeld wlan0 & Take a look at these links: https://www.raspberrypi.org/forums/viewtopic.php?t=179901 http://www.ericerfanian.com/mobile-mesh-networks-with-the-raspberry-pi-par...
by lmarmisa
Mon Jul 23, 2018 7:54 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 21
Views: 7298

Re: I can not start motion as daemon

Your system started at 06:34:01 ( Jul 23 06:34:11 raspberrypi kernel: [ 9.924340] Bluetooth: RFCOMM TTY layer initialized ) but the first event shown on syslog shows the time 06:34:11 ( Jul 23 06:34:11 raspberrypi bluetoothd[676]: sap-server: Operation not permitted (1) ). No luck. One hundred lines...
by lmarmisa
Sun Jul 22, 2018 8:05 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 21
Views: 7298

Re: I can not start motion as daemon

If in the console I type :~ $ motion the two errors happen If I type :~ $ sudo motion the program starts normally. This behavior is good. The user pi has no privileges for running motion but root is able to run that program. If the syntax of start_motion_daemon=yes is correct, simply reboot your sy...
by lmarmisa
Sat Jul 21, 2018 5:39 pm
Forum: Español
Topic: Cable de alimentación para Raspberry 3B+
Replies: 7
Views: 2900

Re: Cable de alimentación para Raspberry 3B+

Entiendo que el cargador oficial si lo integra, no? Haciendo inecesaro el condensador. Lo pregunto, porque aunque preferia evitarme usar el cargador oficial, si se evita este problema quiza merezca la pena. Personalmente no tengo experiencia con el alimentador oficial, aunque las referencias que te...
by lmarmisa
Sat Jul 21, 2018 8:27 am
Forum: Español
Topic: Cable de alimentación para Raspberry 3B+
Replies: 7
Views: 2900

Re: Cable de alimentación para Raspberry 3B+

La RPi 3B+ es muy puñetera con la alimentación y da muchos problemas incluso con alimentadores que dan un nivel de tensión adecuado y corriente suficiente. ¿Por qué pasa esto?. El problema se debe a que la RPi no dispone de un condensador de gran capacidad que amortigüe los picos instantáneos de con...
by lmarmisa
Sat Jul 21, 2018 7:52 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 21
Views: 7298

Re: I can not start motion as daemon

I have checked here that the file /etc/default/motion should not include any blank space character. If motion detects a syntax error (blank space), the daemon is not started.

This is the correct syntax, not yours:

Code: Select all

# set to 'yes' to enable the motion daemon
start_motion_daemon=yes
by lmarmisa
Fri Jul 20, 2018 12:08 pm
Forum: General discussion
Topic: Is it suitable? For a Computer Science course?
Replies: 44
Views: 4904

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: 392

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: 893

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: 430

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: 1236

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: 1575

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: 7298

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: 761

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: 761

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: 761

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: 761

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...

Go to advanced search