Go to advanced search

by rudiratlos
Wed Jun 03, 2020 8:13 pm
Forum: Networking and servers
Topic: wlan not starting form transferred SD card (rpi3B+ to rpi4)
Replies: 1
Views: 129

Re: wlan not starting form transferred SD card (rpi3B+ to rpi4)

after login via eth0 (cable), I've got this message: Wi-Fi is currently blocked by rfkill. Use raspi-config to set the country before use. root@pump:/home/pi# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00...
by rudiratlos
Wed Jun 03, 2020 12:58 pm
Forum: Networking and servers
Topic: wlan not starting form transferred SD card (rpi3B+ to rpi4)
Replies: 1
Views: 129

wlan not starting form transferred SD card (rpi3B+ to rpi4)

Hi,
I've flashed an SD card for my new rpi4 from my old rpi3B+
rpi4 can boot from the SD card, but didn't start the wlan connection.
My rpi3B+ can boot and connect to wlan with that sd card.
What's wrong here? Everything else is working
Thanks
by rudiratlos
Fri May 29, 2020 10:54 am
Forum: Networking and servers
Topic: hostapd with Wi-Fi backend
Replies: 3
Views: 241

Re: hostapd with Wi-Fi backend

you could use this hotspot script:

https://github.com/rudiratlos/hotspot

you could add an additional wlan usb adapter (wlan1) für backend connection.
onboard wlan0 is offering hotspot functionality.

recently tested with an rpi 3b+
by rudiratlos
Tue Feb 11, 2020 8:01 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: different I2C transfer times
Replies: 2
Views: 208

Re: different I2C transfer times

Linux pump 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux I'm using my own program, using IOCTL(hdl, I2C_RDWR,...) before and right after the IOCTL, I'm taking the times to calc the i2c bus xfer time. In the following test I'm uing an IOxpander (MCP23018). reading 254 bytes in ...
by rudiratlos
Mon Feb 10, 2020 4:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: different I2C transfer times
Replies: 2
Views: 208

different I2C transfer times

Hi, on a rpi4 I have 4x I2C sensors (2byte value) connected on I2Cbus 1 (400kHz). I'm wondering about the huge variance of pure read times. In a loop, I'm reading 2 bytes from each sensor in sequential order. No other program will access these sensors. The fastest access time is 88us the longest 315...
by rudiratlos
Sat Feb 01, 2020 4:27 pm
Forum: Automation, sensing and robotics
Topic: Accessing DS3231 Temperature
Replies: 12
Views: 15985

Re: Accessing DS3231 Temperature

on my rpi4:

Code: Select all

uname -a
Linux pump 4.19.93-v7l+ #1290 SMP Fri Jan 10 16:45:11 GMT 2020 armv7l GNU/Linux
works with hwmon1 not hwmon0:

Code: Select all

echo $(cat /sys/bus/i2c/devices/1-0068/hwmon/hwmon1/temp1_input|awk '{print $0/1000 " °C"}')
24.25 °C
by rudiratlos
Tue Dec 10, 2019 4:40 pm
Forum: Raspberry Pi OS
Topic: Problem with usbmount in Buster
Replies: 5
Views: 911

Re: Problem with usbmount in Buster

my usbmount is working: pi@raspberry:~$ uname -a Linux pump 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux pi@raspberry:~$ df Filesystem Size Used Avail Use% Mounted on /dev/root 29G 3.0G 26G 11% / devtmpfs 841M 0 841M 0% /dev tmpfs 970M 0 970M 0% /dev/shm tmpfs 970M 17M 954M 2...
by rudiratlos
Tue Dec 10, 2019 4:32 pm
Forum: Raspberry Pi OS
Topic: Problem with usbmount in Buster
Replies: 5
Views: 911

Re: Problem with usbmount in Buster

here is an excerpt of the content from my /etc/usbmount/usbmount.conf (access rights: -rw-r--r-- 1 root root): ENABLED=1 MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3 /media/usb4 /media/usb5 /media/usb6 /media/usb7" FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus" MOUNTOPTIONS="sync,noexec,n...
by rudiratlos
Sat Dec 07, 2019 10:48 am
Forum: Device Tree
Topic: prevent throttling on undervoltage
Replies: 6
Views: 1030

Re: prevent throttling on undervoltage

just added a 3300uF capacitor between pin2 and 6 of the 40pin header. that prevents the voltage drop.
Thanks for pointing that out.
by rudiratlos
Mon Dec 02, 2019 12:20 am
Forum: Raspberry Pi OS
Topic: Problem with usbmount in Buster
Replies: 5
Views: 911

Re: Problem with usbmount in Buster

here is the page of programmer: https://github.com/rbrito/usbmount code is not part of the distribution. you can build your own bugfixing .deb package and install it: cd /tmp git clone https://github.com/rbrito/usbmount.git cd usbmount dpkg-buildpackage -us -uc -b cd .. apt install ./usbmount_0.0.24...
by rudiratlos
Wed Nov 27, 2019 5:03 pm
Forum: General discussion
Topic: RTC DS3231 setup on stretch
Replies: 17
Views: 14581

Re: RTC DS3231 setup on stretch

according to this discussion https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=855203 I've setup my ds3231 as follows: add this single entry to /boot/config.sys dtoverlay=i2c-rtc,ds3231 create the file /etc/systemd/system/hwclock-start.service [Unit] Description=hwclock-start to read rtc and write t...
by rudiratlos
Tue Nov 26, 2019 2:08 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: how to detect HW RTC on addr 0x68
Replies: 5
Views: 420

Re: how to detect HW RTC on addr 0x68

currently I'm using:

i2cdetect -y 1 | grep "60: " | awk '{print $10}'

but looking for a more elegant way
by rudiratlos
Tue Nov 26, 2019 1:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: how to detect HW RTC on addr 0x68
Replies: 5
Views: 420

Re: how to detect HW RTC on addr 0x68

bash script only, no application
by rudiratlos
Tue Nov 26, 2019 12:33 pm
Forum: Device Tree
Topic: prevent throttling on undervoltage
Replies: 6
Views: 1030

Re: prevent throttling on undervoltage

The powersupply has 50W!! also a capacitor is connected to the motor as "charge pump".
The undervoltage throttleing is to quick. A hystereresis (e.g. delayed undervoltage alert) is required
by rudiratlos
Tue Nov 26, 2019 12:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: how to detect HW RTC on addr 0x68
Replies: 5
Views: 420

how to detect HW RTC on addr 0x68

How can I detect in a script if a RTC (like DS3231..) is connected on i2c addr. 0x68.
I want to replace "i2c-detect -y 1" and carving out "UU" or "68".
by rudiratlos
Tue Nov 26, 2019 12:15 pm
Forum: Device Tree
Topic: prevent throttling on undervoltage
Replies: 6
Views: 1030

prevent throttling on undervoltage

my pi4 switches motors on and off. The pi is backpowered to a 50W powersupply. If a motor is switched on, I get this warnings (under-voltage has occurred, throttling has occurred). Due to the throttling the PID algorithm and in the specific application log I can see that the processor runs slower, w...
by rudiratlos
Wed Nov 20, 2019 12:40 pm
Forum: Device Tree
Topic: GPIO 1sec High at Boot and Poweroff How to?
Replies: 7
Views: 1226

Re: GPIO 1sec High at Boot and Poweroff How to?

Thanks that helps for the beep at startup. How is the chronology? You wrote that config.txt gpio command will be loaded very early. When is the eeprom (HAT) loaded and executed? Is there a documentation how the GPIO pins will be initialized, facing the chronology. Let's assume that I set in config.t...
by rudiratlos
Mon Nov 18, 2019 2:13 pm
Forum: Device Tree
Topic: GPIO 1sec High at Boot and Poweroff How to?
Replies: 7
Views: 1226

Re: GPIO 1sec High at Boot and Poweroff How to?

tried on my rpi4. works with following entries in /boot/config.txt dtoverlay=gpio-poweroff,gpiopin=4,active_low=0 gpio=4=op,dl rpi4 running, then OS command tested reboot: beeper beeps 1-2sec at startup only rpi4 running, then OS command tested shutdown -h now : beeper beeps always until power was r...
by rudiratlos
Sun Nov 17, 2019 5:21 pm
Forum: Device Tree
Topic: GPIO 1sec High at Boot and Poweroff How to?
Replies: 7
Views: 1226

GPIO 1sec High at Boot and Poweroff How to?

Hi, I have a Beeper connected to GPIO4 (default PullUp) via a transistor. Driving the GPIO 1sec High, the Beeper is active. Everything works out of an application. Due to the fact that GPIO4 has PullUp, the Beeper beeps until EEprom from HAT sets GPIO4 to Output LOW. This takes about 5secs. On Shutd...
by rudiratlos
Sat Nov 16, 2019 3:53 pm
Forum: Networking and servers
Topic: Route Wifi hotspot through remote-access vpn
Replies: 4
Views: 754

Re: Route Wifi hotspot through remote-access vpn

with this hotspot script you can offer hotspot (AP) function and open an openVPN tunnel :
https://github.com/rudiratlos/hotspot
by rudiratlos
Sun Nov 10, 2019 3:44 pm
Forum: Raspberry Pi OS
Topic: watchdog not working correctly after upgrade to #1270
Replies: 0
Views: 152

watchdog not working correctly after upgrade to #1270

after upgradeing to #1270 the watchdog can not be paused/stopped anymore. retriggering works. my application is using (retriggring) the watchdog. before the app will stop by intention, the app will stop the wdog before exiting. no reboot will happen. since years this worked properly. with #1270 afte...
by rudiratlos
Tue Nov 05, 2019 5:38 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: generic SPI overlay
Replies: 3
Views: 868

Re: generic SPI overlay

Is there no possability for a generic overlay, just for pass some initial bytes like:

dtoverlay=spi_generic,adr=0x01,seq=0x123456789abc...
by rudiratlos
Tue Oct 29, 2019 4:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: generic SPI overlay
Replies: 3
Views: 868

Re: generic SPI overlay

yes, it's an external spi chip.
by rudiratlos
Tue Oct 29, 2019 9:41 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: generic SPI overlay
Replies: 3
Views: 868

generic SPI overlay

I have a SPI based pwm LED chip. at powerup/boot the pwm chip put 50% dutycycle on the channel. I want to have an overlay which can issue a init sequence (several registers of the chip had to be configured/wiped-out) to reset the chip at a very early timepoint during the poweron sequence.
any ideas?

Go to advanced search