Go to advanced search

by lmarmisa
Tue Jul 17, 2018 4:45 pm
Forum: Beginners
Topic: Serial connection troubleshooting
Replies: 10
Views: 601

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: CAn no longer ping by hostname

by lmarmisa
Sun Jul 08, 2018 12:21 pm
Forum: Beginners
Topic: Stretch: clean-up after package upgrade or remove
Replies: 5
Views: 6641

Re: Stretch: clean-up after package upgrade or remove

I use both commands. This is my script /home/pi/bin/myupdate : #!/bin/bash echo echo "-> sudo apt-get update" sudo apt-get update echo echo "-> sudo apt-get -y upgrade" sudo apt-get -y upgrade echo echo "-> sudo apt-get -y dist-upgrade" sudo apt-get -y dist-upgrade echo echo "-> sudo apt-get -y auto...
by lmarmisa
Sun Jul 08, 2018 12:12 pm
Forum: Beginners
Topic: New to pi... wanting to use to send audio to wireless speakers
Replies: 1
Views: 146

Re: New to pi... wanting to use to send audio to wireless speakers

Consider using icecast and ices on your RPi #1. These packages are available in the raspbian repositories.

http://icecast.org/

Use vlc, mplayer or other audio player on other RPis.
by lmarmisa
Sun Jul 08, 2018 11:03 am
Forum: Python
Topic: how to store result in to csv file
Replies: 5
Views: 504

Re: how to store result in to csv file

Although the csv format is quite simple, there is a specific module for reading and writing csv files: https://docs.python.org/3/library/csv.html import RPi.GPIO as GPIO import dht11 import time import datetime import csv # initialize GPIO GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.cleanup(...
by lmarmisa
Sat Jul 07, 2018 7:19 pm
Forum: Troubleshooting
Topic: Git clone and apt not working.
Replies: 15
Views: 1294

Re: Git clone and apt not working.

ping -c25 google.com wget http://downloads.raspberrypi.org/raspbian_lite_latest -O /dev/null wget https://downloads.raspberrypi.org/raspbian_lite_latest -O /dev/null Hi, it still timeouts. Hmmm. Including ping?. I believe that the problem could be related to your router in such a way that it is fil...
by lmarmisa
Fri Jul 06, 2018 12:18 pm
Forum: Beginners
Topic: spinning up usb hard disk on boot
Replies: 3
Views: 668

Re: spinning up usb hard disk on boot

I will suppose your disk is formatted with a ntfs file-system. Try this procedure: 1) Install the package ntfs-3g sudo apt-get install ntfs-3g 2) Create a mountpoint: sudo -p /media/wd4tb 2) Edit the file /etc/rc.local sudo nano /etc/rc.local 3) Add these commands to the file: #!/bin/sh -e # # rc.lo...
by lmarmisa
Wed Jul 04, 2018 9:27 pm
Forum: Français
Topic: Débutant perdu
Replies: 3
Views: 427

Re: Débutant perdu

Connaissez-vous le modèle de Somfy? Ce modèle peut-il être contrôlé par télécommande?.

Si oui, utilisez un émetteur radio 433 MHz comme celui-ci:

https://www.aliexpress.com/item/1set-RF ... 03475.html
by lmarmisa
Wed Jul 04, 2018 7:24 pm
Forum: Español
Topic: INSTALACION ISO RASPBIAN
Replies: 1
Views: 408

Re: INSTALACION ISO RASPBIAN

Por si acaso, una aclaración: el sha-256 que se muestra en la página de descargas corresponde al fichero que se descarga desde el servidor de raspberrypi.org, es decir, el que tiene como extensión ".zip". Si se descomprime el fichero zip, se obtiene un fichero "img" mucho más grande que es el que se...
by lmarmisa
Wed Jul 04, 2018 10:03 am
Forum: Español
Topic: WEBCAM
Replies: 1
Views: 311

Re: WEBCAM

Lo mejor en estos casos es leer la documentación técnica de la webcam para entender los detalles de cómo funciona.

Desde el punto de vista de la RPi puedes ver qué dispositivos USB se detectan en un momento dado tecleando este comando:

Code: Select all

lsusb
by lmarmisa
Wed Jul 04, 2018 9:48 am
Forum: General discussion
Topic: Vehicle detection for my nephew
Replies: 24
Views: 1660

Re: Vehicle detection for my nephew

Welcome to the forum. The title of your post refers to vehicle detection and the body to a four way traffic light prototype. So, I am not sure if I understand your project. If you wish to develop a four way traffic light prototype, you will need to control 12 independent outputs. Therefore you have ...

Go to advanced search