Go to advanced search

by gjs
Sat Sep 18, 2021 2:12 pm
Forum: Compute Module
Topic: Getting RTC and Power Button Working on CM4
Replies: 0
Views: 268

Getting RTC and Power Button Working on CM4

I am using a CM4 in an Oratek TOFU board. I want to get a power button and a DS3231 RTC working. I have the power button connected to GPIO3 and GND and have added dtoverlay=gpio-shutdown to config.txt. This works fine. I understand the power button functionality only works on GPIO3 from here: https:...
by gjs
Tue Sep 14, 2021 3:34 pm
Forum: Compute Module
Topic: CM4 cardboard shipping box
Replies: 2
Views: 233

Re: CM4 cardboard shipping box

Many thanks, dp11. That clears that up.
by gjs
Tue Sep 14, 2021 11:59 am
Forum: Compute Module
Topic: CM4 cardboard shipping box
Replies: 2
Views: 233

CM4 cardboard shipping box

I purchased 4 off CM4s from an eBay seller as I was unable to get any from the usual suppliers. I want to use these in production so want to check, as much as possible, that they are not "suspect" in some way. I have one CM4 bought from RS to compare them to. The only difference I have fou...
by gjs
Sat Jun 19, 2021 6:25 pm
Forum: General discussion
Topic: GPIO Interrupt Speed RPi4
Replies: 0
Views: 180

GPIO Interrupt Speed RPi4

Is there any way I can calculate the minimum pulse width (button press duration) that will trigger a shutdown when using: dtoverlay=gpio-shutdown,gpio_pin=4 in /boot/config.txt ? I am using a UPS to power the RPi4 and when the input power fails the UPS simulates a power button press to safely shutdo...
by gjs
Sat Jun 19, 2021 5:40 pm
Forum: General discussion
Topic: Power Button for Raspberry Pi 4
Replies: 3
Views: 423

Re: Power Button for Raspberry Pi 4

Thank you both. I have found a way to start-up by interrupting the power supply so need only the shutdown function which I have assigned to GPIO4.
by gjs
Fri Jun 11, 2021 11:47 am
Forum: General discussion
Topic: Power Button for Raspberry Pi 4
Replies: 3
Views: 423

Power Button for Raspberry Pi 4

Can anyone please advise the coorrect method of adding a start-up/shut-down button to a raspberry pi 4? I have tried adding dtoverlay=gpio-shutdown,gpio_pin=4 to /boot/config.txt (GPIO3 is in use for i2c connection to an RTC). Shorting GPIO4 to ground shuts down the Pi fine but does not restart it. ...
by gjs
Fri Mar 12, 2021 1:05 pm
Forum: General discussion
Topic: Turn LED On When Script Terminates
Replies: 5
Views: 426

Re: Turn LED On When Script Terminates

How about wrapping the Python program in a bash script and checking the exit value returned from the Python command? This sounds like a good approach which I had not thought of. By the way, while reminding myself of the details of the sysfs interface, I came across python bindings for libgpiod: htt...
by gjs
Thu Mar 11, 2021 10:37 am
Forum: General discussion
Topic: Turn LED On When Script Terminates
Replies: 5
Views: 426

Re: Turn LED On When Script Terminates

So, I think you should set the pin high using some other method. The Pi has wonderful integration with the Linux sysfs filesystem. I think this will be a workable solution. I had it in mind that I would have to stop using GPIOZero in the main script, which would be a shame as I am using the gpiozer...
by gjs
Wed Mar 10, 2021 6:57 pm
Forum: General discussion
Topic: Turn LED On When Script Terminates
Replies: 5
Views: 426

Turn LED On When Script Terminates

I have used GPIOZero in my Python script to flash some LEDs and all is working fine. The script runs continuously as a service on Pi4B with Raspberry Pi OS. I want to have a warning LED come on if the script terminates, such as might be caused by an exception. The cleanup routine in GPIOZero turns a...
by gjs
Tue Jan 19, 2021 3:31 pm
Forum: Device Tree
Topic: UART Configuration Confusion
Replies: 7
Views: 1242

Re: UART Configuration Confusion

Ah! OK. Thank you both.

I am going to go with a regular console on ttyS0 and ttyAMA1 which works fine. At some point in the future I will swap the RS485 tranceiver hardware over to UART5 and put earlycon on ttyAMA0.
by gjs
Sun Jan 17, 2021 6:31 pm
Forum: Device Tree
Topic: UART Configuration Confusion
Replies: 7
Views: 1242

Re: UART Configuration Confusion

Hi Phil, I tried both of these but no boot in both cases: earlycon=pl011,0xfe201a00 earlycon=pl011,mmio32,0xfe201a00 This lead me to think that perhaps the address was wrong, so I tried: earlycon=pl011,mmio32,0xfe201000 which is the address for UART0 taken from https://www.raspberrypi.org/documentat...
by gjs
Sat Jan 16, 2021 8:28 pm
Forum: Device Tree
Topic: UART Configuration Confusion
Replies: 7
Views: 1242

Re: UART Configuration Confusion

Many thanks for your swift reply, PhilE. I added the overlays and this seems to work fine. I can transmit/receive data on UART0 on header pins 8 and 10 via /dev/ttyAMA0 (also via symlink /dev/serial0). /dev/ttyAMA1 has appeared and I am assuming this will be UART5 on pins 32 &33 (not tested yet)...
by gjs
Sat Jan 16, 2021 12:59 pm
Forum: Device Tree
Topic: UART Configuration Confusion
Replies: 7
Views: 1242

UART Configuration Confusion

Hi All, I've read the documentation and many threads regarding setting up the UARTs on the RPi4 but I'm having real difficulty understanding what is going on. My aim is to have a PL011 UART on pins 8 and 10 of the header, the mini-UART connected to the bluetooth module with a console on it, and UART...
by gjs
Sun Dec 06, 2020 11:37 pm
Forum: Compute Module
Topic: Compute Module 4 and IO Board Availability
Replies: 3
Views: 377

Re: Compute Module 4 and IO Board Availability

Thanks for the pointers, cleverca22. It seems like it will be around March before there is consistent stock availability at the suppliers.
by gjs
Sun Dec 06, 2020 9:48 pm
Forum: Compute Module
Topic: Compute Module 4 and IO Board Availability
Replies: 3
Views: 377

Compute Module 4 and IO Board Availability

I was looking to buy a few units of the compute module 4 and IO board for testing to see if it is suitable for incorporation in a product. But there seems to be no availability of either until January at the earliest. Does anyone know if this is just a hiccup in supply or are we likely to see stock ...
by gjs
Mon May 19, 2014 11:02 pm
Forum: General discussion
Topic: Replicate a remote RPi
Replies: 6
Views: 2003

Re: Replicate a remote RPi

That worked perfectly! With the exception that a dynamic dns client I had on the machine hosed my dns when it started up on the new RPi on the local network, but that is a different story.

Thanks.
by gjs
Sun May 18, 2014 6:30 pm
Forum: General discussion
Topic: Replicate a remote RPi
Replies: 6
Views: 2003

Re: Replicate a remote RPi

Great, thanks, I will give it a try. Once I have got the image, how can I write it to an SD card on a Windows machine (I only have windows machines with SD card slots)? Will the file be compatible with win32diskimager utility?
by gjs
Sun May 18, 2014 2:55 pm
Forum: General discussion
Topic: Replicate a remote RPi
Replies: 6
Views: 2003

Re: Replicate a remote RPi

Thanks for the reply. The SD card on the remote machine is 4GB in size with 54% free. It also has a 4 GB USB flash drive installed with 3.5GB free. Distro is Rasbian. Internet conections are minimum 10Mbps up/down, both ends. IPs are public, there is a NAT router at each end but have full contro ove...
by gjs
Sun May 18, 2014 11:29 am
Forum: General discussion
Topic: Replicate a remote RPi
Replies: 6
Views: 2003

Replicate a remote RPi

Is there any way to capture the complete image of a remote Raspberry Pi? Connection to it is via the Internet with full admin rights. I want to create a new local RPi but using the image from the remote machine without having to physically go and get the sd card from it.

Thanks.
by gjs
Sat Apr 05, 2014 8:54 pm
Forum: Off topic discussion
Topic: Further Education Advice
Replies: 1
Views: 869

Further Education Advice

'Not sure if this is the right place to ask this but what's the worst that can happen? I have worked in telecoms all my career (30 yrs). In that time I have done a lot of IT work, both for my employers and as small side businesses. This has all been self taught. I am thinking of trying for an IT job...
by gjs
Sat Nov 16, 2013 9:24 am
Forum: Off topic discussion
Topic: Windows Serial Console
Replies: 2
Views: 1407

Windows Serial Console

On the RPi, the serial port is, by default, a console to which a terminal can be connected. Is there no equivalent to this in Windows? How can I get to a command prompt on a headless windows box if the network adapter is not working?

Thanks for any help.
by gjs
Sun Oct 20, 2013 10:51 am
Forum: Camera board
Topic: Video from RPi in web browser
Replies: 0
Views: 763

Video from RPi in web browser

I'm sure this has been asked already but I can't find it. Can anyone point to some instructions on how to stream video from the RPi and camera board so that it can be viewed in a web browser, ideally on multiple platforms (Windows, MAC, mobile etc.)? I am trying to effectively make an IP camera that...
by gjs
Sun Oct 13, 2013 2:44 pm
Forum: Automation, sensing and robotics
Topic: PJSIP Binaries for Speech Dialler
Replies: 1
Views: 1160

PJSIP Binaries for Speech Dialler

I would like to try using PJSIP to make a VoIP based speech dialler using a Pi. PJSIP is only available as source code from the project web site so it has to be compilled for the Pi. Has anyone done this and/or know where I could find binaries? I've no clue how to compile it myself. Or can someone s...
by gjs
Tue Sep 03, 2013 4:05 pm
Forum: Python
Topic: Detect if running on RPi
Replies: 13
Views: 13209

Re: Detect if running on RPi

Great, thanks.
by gjs
Tue Sep 03, 2013 12:57 pm
Forum: Python
Topic: Detect if running on RPi
Replies: 13
Views: 13209

Re: Detect if running on RPi

Do all Linux distributions have /proc/cpuinfo ?

Go to advanced search