Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

New answers tagged

0

I see this kind of error often, when I use Python code that is written for Python 3 with an Python 2 interpreter / Runtime (or vice versa). They change the way String literals are interpreted when printing/serializing (asscii, UTF-8). Please compare your python installation with that of the original author. Is is the same? I'm pretty sure that's the problem.


1

As pointed out earlier the problem is not with the power supply. 1 A is enough to run a RPi. Here are some ways to revive a RPi Try the pin method sometimes the SD-card reader on the pi gets deformed over time, so applying some pressure on the SD-card with a pin or folded paper could work, also cleaning it with a brush works sometimes. refer to this for ...


-1

You can install Python3.7 with sudo apt-get install python3.7. It's more easier to install it.


2

You could try a port translation in your router’s settings. Say port 22222 from any public IP mapped to port 22 on the Pi’s local IP. Pick any valid port number above 1024. 22222 is just too obvious as an example. You will have to add the chosen port to the ssh command: ssh -p 22222 .... (I didn’t check that syntax. Look it up.)


1

Some ISPs apply port limitations on private internet connections. This is to prevent novice users from possibly harmful network settings. You will have to ask your ISP about such limitations. If that is the case you will not get around getting an commercial internet contract where no such limitation exists. For instance in germany Vodafone does not even ...


0

"Connecting directly" in this context is ambiguous. Applications running directly on the Pi, using the I2C bus, would generally use some kind of library interface, such as the various Pi specific (eg. pigpio) or linux specific (I would guess python has something like that) things or the kernel API. Point being, there is no singular "connect to the bus" ...


-2

My commendations to all. This will get me to a path I'm looking for. AC - tables along with the b-n+ tables. Thank you. When I started wireless networks they were 802.11 1mb protocols. Using an Omni & Uni-directional antenna's I did a lot of 802.11b+ networking. The AC stuff was way too expensive at the time. Compatibility was sparse.


0

Question Where is the leafpad editor? Answer Leafpad is gone with the wind. Instead, you can try mousepad, which is better. But if you miss Leadpad, you can install it in buster (not sure for other raspbian versions) / to continue, ... References / to continue, ... Appendices Appendix A - Xfce [and mousepad] - Wikipedia Xfce ... is a free ...


0

This is an Apple problem, to use Ethernet you have to purchase an adapter. Indeed the new MacBooks need a fistful of dongles to do anything except connect to WiFi, although this is also the case with many modern notebooks. If you connect the WiFi on both MacBook and Pi to your router you will have ssh access. You can use Ethernet on the Pi to connect your ...


0

You have to configure your ssh porting first, Then install something on your mac that let you use ssh. Connect your raspberry p and mac in same router and connect them wit the IP of pi.


1

You do not need to worry about a crossover ethernet cable. That's a requirement from the last century. Nowadays nearly all ethernet ports have crossover auto detect built-in. You only need one port supporting this and the wired port of the Raspberry Pi do it. So just purchase a proper wired ethernet dongle for the MacBook Pro and use any ethernet cable.


-1

Question How to use RpiZ USB to serial adapter/cable to connect to SIM800A, and starting talking AT? Answer (1) Introduction and Functional Block Diagram First thing first, let us look at the functional block diagram, and make sure we know which "function" we are messing around. It is吖good idea to start with the simplest thing first, in our case, ...


2

6 feet should be doable for I2C with decent cable, serial over USB (you can use a hub on RPI end for more ports) should also work. However, I recommend looking into network-enabled (MQTT and alike) communication; you could replace your arduino with things like ESP8266: it may take little learning to get going but they are cheap and the benefits of getting ...


0

I got it to work! In the end, it was simpler than I thought. Basically, through a series of cables and adapters, you can simply convert the HDMI output to an RF signal then send it directly into the TV's antenna jack. Then you adjust the frequency and you have a display! The quality isn't the best and the color is only black and white but it does look ...


0

First, if by "transportable" you mean you can put it in a car and take it somewhere, great, but if you mean portable like a phone, you are unlikely to get everything you want with it. I would like to know how to manage the pinout of the Raspberry, since multiple sensors with their respective jumper cables are needed. Are there enough pinouts or can I add ...


0

Ok, I solved the problem. I added the statement allow-hotplug eth0 to the file /etc/network/interfaces. I still don't know why this happened. Maybe it was my configuration mistake or something I installed misconfigured something but now, everything works as expected.


0

Most probably the file was edited with an editor (under Windows maybe?) that is configured to use 'MS-Windows/DOS' line endings (CRLF) instead of 'Unix' line endings (LF). Either configure the editor to use 'Unix' line endings or use the dos2unix or unix2dos utility to convert between the two. To work properly the line endings should be 'Unix' line endings (...


0

I faced a similar problem about 10 days ago. And I had to reinstall the OS. Anything you change or delete related with boot can affect the OS badly. My suggestion is you should re install the OS


2

You are right when saying it's not possible to add an interface for a WiFi client connection to a bridge. But there are some possibilities to workaround this. The most general solution is proxy arp. It is not a real bridge but it behaves like a bridge. The connected clients seem to get part of the local network and can use all its resources including a DHCP ...


0

Warning: This overrides your wifi connection somehow I configured Bluetooth over SSH following the instructions from Instructables Bluetooth to Putty and then bits from the headless pi over bluetooth tutorial If your image is already running on your Pi, you only need to follow the Editing the image section of the tutorial. And the important part of ...


-1

1) Take a multimeter and measure 5 volts on the fuse. Both fuse contacts should show the same value 2) Find the MxL7704 chip board and measure the output volts good video explanation for this: https://www.youtube.com/watch?v=Hunm5S94BaE Also, to avoid damage to the Raspberry Pi, use an additional separate power supply. If you accidentally shorted 3.3 ...


1

In addition to pi-vk-driver, there is also a wip mesa branch: https://github.com/abergmeier/mesa-vulkan-broadcom/commits/libvulkan_broadcom


0

Question And without boards, is it possible to solder two gpio wires into one? Answer Yes, I often do it, not soldering, but the following: (1) Strip two jumper wires, one longer than the other. (2) Twist two ends together, (3) Crimp to a duPont pin and insert it into female connector. But I almost never do it for joining two GPIO wire ...


0

I would say the easiest solution for this setup is to use a bridge because there is already a DHCP server running so we don't have to worry about it. You tagged systemd-networkd so I will use it. First switch over to it with: # disable classic networking rpi ~$ sudo -Es rpi ~# systemctl mask networking.service dhcpcd.service rpi ~# mv /etc/network/...


3

Your host code is host = `192.168.0.1` while the client code is host = '192.168.0.10' As you say connecting with telnet works, the address of the host must be 192.168.0.1, so the client should connect to 192.168.0.1 and not to 192.168.0.10.


0

ui.setupUI() calls self.uat() that never ends. This does not allow your program to proceed to MainWindow.show() and this is why nothing shows.


1

cameras: yes if USB webcams, no if CSI cameras (official rpi camera module) - you can only use 1 on a Pi, or 2 on a compute module LEDS: yes, easily (one per GPIO) LCD display: it depends on the protocol. Some displays are SPI, some I2C. With these protocols you can share some of the pins, but others you need unique pins, so you would need to work this out ...


1

I have just tested it with a fresh flashed Raspbian Buster Lite on a Raspberry Pi 4B but cannot confirm your problem. I checked with ip addr and it works out of the box. Every time when I attach the ethernet cord the wired interface gets an ip address from the DHCP server. So you should check your network setup. Compare it with the default setup with dhcpcd ...


0

The way I see this, you have two options: Require your customer to (initially) hook up the Pi to a HDMI monitor and a USB keyboard. On startup, the Pi will run a script that will gather the necessary information to connect the Pi to their WiFi. Afterwards, they can move the Pi (minus the monitor and keyboard, of course) to the final install location. This ...


0

I solved this fixing two things: Changes the permissions at /etc/dbus-1/system.d/bluetooth.conf I crudely changed the default permission to allow. A more elgant solution is probably possible. <policy context="default"> <allow send_destination="org.bluez"/> </policy> 2. A timing bug fixed by running this: pactl unload-module module-...


2

Looks like you need to send a '?A [cc]' command then read the response. Try the following: import time import serial ser = serial.Serial( port = '/dev/ttyACM0', baudrate = 9600, parity = serial.PARITY_NONE, stopbits = serial.STOPBITS_ONE, bytesize = serial.EIGHTBITS, timeout = 1 ) motorChannel = 1 command = '?A '+str(motorChannel)...


0

If you can count those "flickers" they might give you a hint as to what is going wrong. There is a sticky on the raspberry pi forums that deals with Pis that won't boot. The link is https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=58151. Note that there is a special section for RPi 4s. There's also a MagPi #60 troubleshooting guide that may ...


1

It could be anything, from the CNC machine not accepting connections, to more than one DHCP server on the network and a defective Pi. Some debugging help for connectivity. First, you must be sure that the WiFi is connected. Use ifconfig for that. The output will give you something like: wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ...


0

I see this is an old question, but you should be powering that sensor with 3.3V. It does have a power regulator so that it's compatibly with 5V Arduinos, but that doesn't mean that you should be powering 5V on your 3.3V-logic Pi. I don't know if that's the problem or not, but I don't see how it can help. You may also need additional pull-ups on the i2c ...


1

A bridge does not work with ip addresses. It only uses mac addresses. That is the reason why you do not see an ip address on member interfaces of a bridge like wlan0 and eth0 if you show it with ip addr. It doesn`t help if you give these interfaces ip addresses. They will loose them as soon as you add them to the bridge. So you cannot use eth0 for ...


1

power issue? 3b+ draws more than 3B


Top 50 recent answers are included