Go to advanced search

by PeterO
Mon Dec 30, 2019 1:14 pm
Forum: C/C++
Topic: C++ Wifi and Webserver libs for the Pi similar to those available for Arduino?
Replies: 34
Views: 1176

Re: C++ Wifi and Webserver libs for the Pi similar to those available for Arduino?

as stated, also the ESPs are not "bare-metal", but driven by an RTOS (freeRTOS, specifically). Of course there may be different libs for the Pi to WiFi and Webserver/clients, but I do not want to rewrite all and everything (thanks @PeterO, anyway!), FreeRTOS has a network socket API so translating ...
by PeterO
Mon Dec 30, 2019 1:03 pm
Forum: C/C++
Topic: C++ Wifi and Webserver libs for the Pi similar to those available for Arduino?
Replies: 34
Views: 1176

Re: C++ Wifi and Webserver libs for the Pi similar to those available for Arduino?

as stated, also the ESPs are not "bare-metal", but driven by an RTOS (freeRTOS, specifically). Of course there may be different libs for the Pi to WiFi and Webserver/clients, but I do not want to rewrite all and everything (thanks @PeterO, anyway!), FreeRTOS has a network socket API so translating ...
by PeterO
Mon Dec 30, 2019 12:54 pm
Forum: C/C++
Topic: C++ Wifi and Webserver libs for the Pi similar to those available for Arduino?
Replies: 34
Views: 1176

Re: C++ Wifi and Webserver libs for the Pi similar to those available for Arduino?

A RPI isn't similar to an Arduino at all, so for such libs to exist a raspberry PI should be downgraded and be used as a microcontroller, throwing away its Linux software base, and use it "bare metal". It all depends on what the OP is using the web server for on the Arduino... Often the web server ...
by PeterO
Mon Dec 30, 2019 12:38 pm
Forum: C/C++
Topic: C++ Wifi and Webserver libs for the Pi similar to those available for Arduino?
Replies: 34
Views: 1176

Re: C++ Wifi and Webserver libs for the Pi similar to those available for Arduino?

This might be of interest https://gist.github.com/laobubu/d6d0e9beb934b60b2e552c2d03e1409e "Pico HTTP Server in C This is a very simple HTTP server for Unix, using fork(). It's very easy to use" It's not a library but a complete application, but the code is small and will show you how to implement s...
by PeterO
Mon Dec 30, 2019 10:33 am
Forum: General discussion
Topic: Start GUI through command line on remote display
Replies: 3
Views: 198

Re: Start GUI through command line on remote display

I booted into my pi, and I would like to start the GUI on a remote display, such as windows X server. However when I run export DISPLAY=192.168.1.29:0 and then run sudo startx it gets stuck here X.Org X Server 1.20.4 X Protocol Version 11, Revision 0 Build Operating System: Linux 4.15.0-48-generic ...
by PeterO
Fri Dec 27, 2019 3:38 pm
Forum: Troubleshooting
Topic: Buster OS Bugs
Replies: 81
Views: 2923

Re: Buster OS Bugs

What USB bug? I would assume they are talking about the power supply bug - If you read the thread and didn't just assume you would see that the claim is that the bug has existed since 2015, thus predating the Pi4. You doesent fix the USB bug that exist since 2015 and is not present on other platfor...
by PeterO
Thu Dec 26, 2019 6:47 pm
Forum: C/C++
Topic: GTK and pigpio.h level change callback
Replies: 6
Views: 254

Re: GTK and pigpio.h level change callback

joan wrote:
Thu Dec 26, 2019 6:09 pm
piscope is a C GTK application which uses pigpio and the GPIO.

Code at http://abyz.me.uk/rpi/pigpio/piscope.html or https://github.com/joan2937/piscope
So where in the 3300 lines of C code (not counting the demon code) is the solution to the OP's problem ? :roll:
PeterO
by PeterO
Thu Dec 26, 2019 4:17 pm
Forum: C/C++
Topic: GTK and pigpio.h level change callback
Replies: 6
Views: 254

Re: GTK and pigpio.h level change callback

The only advice I can offer is this :
GTK+, however, is not thread safe. You should only use GTK+ and GDK from the thread gtk_init() and gtk_main() were called on. This is usually referred to as the “main thread”.
taken from https://developer.gnome.org/gdk3/stable ... reads.html
PeterO
by PeterO
Thu Dec 26, 2019 2:14 pm
Forum: C/C++
Topic: GTK and pigpio.h level change callback
Replies: 6
Views: 254

Re: GTK and pigpio.h level change callback

My first guess wild be that the gpio callback is running in a different thread to the GTK event loop. If I was doing this, I would make the gpio callback do as little work as possible, may be just setting a flag. Then create an event source for the gtk event loop that checks the state of the flag an...
by PeterO
Thu Dec 26, 2019 9:53 am
Forum: Off topic discussion
Topic: Your best Raspberry Pi memories
Replies: 7
Views: 661

Re: Your best Raspberry Pi memories

rpdom wrote:
Thu Dec 26, 2019 9:38 am
Meeting PeterO at a HAM Radio gig where he was talking about work with his Pi.
OH ! :lol:

PeterO
by PeterO
Wed Dec 25, 2019 5:00 pm
Forum: Troubleshooting
Topic: RPi 4 4GB CPU spikes and 'freezes' for a up to 5 seconds.
Replies: 12
Views: 484

Re: RPi 4 4GB CPU spikes and 'freezes' for a up to 5 seconds.

Seems the issue with 32Gb cards was resolved before the end of the thread...

https://www.raspberrypi.org/forums/view ... 5#p1528154
brohan wrote: Got a replacement pi today. It boots off all 32gb and the 64gb cards that the other didn't. It was a pi issue
PeterO
by PeterO
Wed Dec 25, 2019 1:57 pm
Forum: Beginners
Topic: Can RP read punched paper tape from 1969 somehow?
Replies: 21
Views: 711

Re: Can RP read punched paper tape from 1969 somehow?

I highly doubt its on a restricted list or conspiracy material. If anyone can help or want to take on this project let me know. Perhaps explaining why you want the tape decoded, and what usefulness that will have, might encourage people to help out. It seems to me, from what little I decoded, that ...
by PeterO
Wed Dec 25, 2019 11:17 am
Forum: Advanced users
Topic: Analogue audio redux
Replies: 88
Views: 29315

Re: Analogue audio redux

Hi, so I'm very close to starting to use my Pi 4 as desktop, but the static in the headphone jack is a nono. Are you sure your headphone jack is wired correctly ? The composite video is also on that socket and there is more than one way that the four rings are wired up. See https://www.raspberrypi-...
by PeterO
Wed Dec 25, 2019 7:56 am
Forum: General discussion
Topic: send float through ethernet
Replies: 6
Views: 239

Re: send float through ethernet

hussein91 wrote:
Tue Dec 24, 2019 4:29 pm
I don't understand what you mean by newlines
There's a Wikipedia page (*) for "newline" with more information than you'll ever need to know :lol: https://en.wikipedia.org/wiki/Newline
PeterO
(*) Who knew ? :lol:
by PeterO
Tue Dec 24, 2019 6:10 pm
Forum: Beginners
Topic: Connecting 5V pullup to Pi GPIO
Replies: 39
Views: 1622

Re: Connecting 5V pullup to Pi GPIO

The 100M resistor is fictitious, I guess it represents the gate leak current of a CMOS input. Putting a cap behind it is even more fictitious, as the 100M virtual resistor isn't a component. Exactly: Am I the only one giggling at these resistor model representations of bias current? Highly unlikely...
by PeterO
Tue Dec 24, 2019 3:21 pm
Forum: Beginners
Topic: Can RP read punched paper tape from 1969 somehow?
Replies: 21
Views: 711

Re: Can RP read punched paper tape from 1969 somehow?

Looking at the provided pictures I don't believe the tape contains human readable text. It looks more like a programme tape of some sort. My experience is with 5 hole tapes, but human readable tapes (such as programme source code) have a higher density of holes. mayhem69, do you have any idea what t...
by PeterO
Tue Dec 24, 2019 10:58 am
Forum: Beginners
Topic: Can RP read punched paper tape from 1969 somehow?
Replies: 21
Views: 711

Re: Can RP read punched paper tape from 1969 somehow?

You could try contacting owners of vintage computers like PDP-11s who are most likely to have working tape readers attached to their old machines.
You may find contacts my googling for "Vintage Computer Festival".
I have a reader, but I'm rather a long way away from you !
PeterO
by PeterO
Mon Dec 23, 2019 9:40 pm
Forum: General discussion
Topic: Get Fadein Pro Linux on a Pi 4?
Replies: 3
Views: 185

Re: Get Fadein Pro Linux on a Pi 4?

Rather than guessing I followed the link you posted leads to this ... (My empahis) "Linux Compiled binaries for Linux. Download and open either the .deb (Debian, Ubuntu, etc.) or .rpm (Red Hat, Fedora, SUSE, etc.) package. There are separate packages for 32-bit (i386) and 64-bit (amd64) systems. The...
by PeterO
Mon Dec 23, 2019 4:27 pm
Forum: General discussion
Topic: Do I have the latest revision official POE hat? (re: L-C filter and no mezzanine)
Replies: 5
Views: 250

Re: Do I have the latest revision official POE hat? (re: L-C filter and no mezzanine)

Thanks very much for the reply. I saw that page The Pi Hut but it doesn't show both sides of the POE hat. I've also searched for "PI POE 2.0" and can't find any official articles about it. Look at the "Notices" section towards the bottom of this page... https://www.raspberrypi.org/products/poe-hat/...
by PeterO
Mon Dec 23, 2019 10:34 am
Forum: General discussion
Topic: New Pi 4B v1.2?
Replies: 204
Views: 20398

Re: New Pi 4B v1.2?

I guess those who have been holding off on buying a Pi 4B because of the USB-C power blunder desribed here now have a reason to buy one for Christmas. Considering that they have been selling as fast as they can be made, I would estimate that the number of people who " have been holding off on buyin...
by PeterO
Mon Dec 23, 2019 10:04 am
Forum: Raspbian
Topic: Raspbian gets bigger and bigger...
Replies: 29
Views: 1314

Re: Raspbian gets bigger and bigger...

Yeah, that should take less than a month. It seems to boil down to little people vs BIG PEOPLE. One enjoys minimizing hardware and software while the other chooses most powerful (usually wasteful and expensive) solution. Poor analogy. How is having a few Gb of data on sd card wasteful or expensive ...
by PeterO
Sun Dec 22, 2019 7:48 pm
Forum: General discussion
Topic: Regarding GUI Design Framework
Replies: 10
Views: 314

Re: Regarding GUI Design Framework

Heater wrote:
Sun Dec 22, 2019 7:36 pm
What licensing issue with Qt?
The issue that the OP has found because they know their requirements and have read the licence terms !!!

PeterO
by PeterO
Sun Dec 22, 2019 3:57 pm
Forum: Raspbian
Topic: Raspbian gets bigger and bigger...
Replies: 29
Views: 1314

Re: Raspbian gets bigger and bigger...

rin67630 wrote:
Sun Dec 22, 2019 9:58 am
Raspbian gets bigger and bigger...
We have also got many folders in /usr/share containing stuff from the original Debian desktop that almost nobody will ever use.
Are they really still required?
Rather than moaning about it, why don't you just delete them and find out ?
PeterO
by PeterO
Fri Dec 20, 2019 10:34 am
Forum: Python
Topic: assign datetime string to a file name
Replies: 16
Views: 377

Re: assign datetime string to a file name

I would put this advice under the heading "Design for Debugging". Some design alternatives may not be optimal but make debugging much easier. For example when I developed a simple remote procedure call (RPC) protocol I used text based messages on the network. This made debugging easier as a simple d...

Go to advanced search