Go to advanced search

by SteveSpencer
Thu Oct 29, 2020 2:51 pm
Forum: General discussion
Topic: Question about Modules and Hats
Replies: 1
Views: 56

Re: Question about Modules and Hats

Hi When you say "this" do you mean the NFC module? If so, then yes you can, if you have male to female jumper cables, it's fairly straightforward, although a bit fiddly if, like me, your manual dexterity isn't everything it should be. On the other hand, if you mean the camera, then no. You could get...
by SteveSpencer
Fri Oct 23, 2020 9:20 am
Forum: Graphics, sound and multimedia
Topic: hdmi_cvt corrupt my SD card so no boot
Replies: 4
Views: 236

Re: hdmi_cvt corrupt my SD card so no boot

Alternatively if using a Pi4 or other Pi with the KMS driver enabled, add "disable_firmware_kms_setup=1" to config.txt and then the kernel parsing of the EDID has a greater chance of producing a mode that actually works. Interesting. I noticed that when using the KMS driver, tvservice has no idea w...
by SteveSpencer
Fri Oct 16, 2020 4:11 pm
Forum: C/C++
Topic: g++/gcc flags for different models of Pi
Replies: 5
Views: 313

Re: g++/gcc flags for different models of Pi

Indeed, that is just what I was after.

Thanks!
by SteveSpencer
Fri Oct 16, 2020 12:55 pm
Forum: C/C++
Topic: g++/gcc flags for different models of Pi
Replies: 5
Views: 313

g++/gcc flags for different models of Pi

Each model (well, mostly) of Pi uses a different SOC. Is there a list somewhere which says what -march -mtune and -mfpu values are most appropriate for each one? Seems counter-intuitive, but I would like to have model-specific binaries for some of the things running on some of my machines. Since I h...
by SteveSpencer
Thu Oct 15, 2020 10:08 pm
Forum: C/C++
Topic: Official touchscreen not "entirely" supported by SDL2.
Replies: 0
Views: 130

Official touchscreen not "entirely" supported by SDL2.

I have built SDL2 (for kmsdrm support where there is no X), it has libudev evdev and tslib enabled. I discovered that it has the same issue I have run into before with the FT5406. I am getting spurious multiple touches. Fortunately, because finger ID is present, I can handle the "first" finger dowm,...
by SteveSpencer
Sun Oct 11, 2020 2:05 pm
Forum: C/C++
Topic: No mosquitto.h file even if mosquitto-dev is installed
Replies: 3
Views: 176

Re: No mosquitto.h file even if mosquitto-dev is installed

Great!

Many thanks Dougie.
One concern is whether that means the executable I create depends on a specific library version (too long developing on Windows), although since it is for internal stuff only, I could apply the same changes to the apt configuration files anyway.

Cheers
by SteveSpencer
Sun Oct 11, 2020 1:28 pm
Forum: C/C++
Topic: No mosquitto.h file even if mosquitto-dev is installed
Replies: 3
Views: 176

No mosquitto.h file even if mosquitto-dev is installed

Using buster (up to date as far as apt-get is concerned) on a Pi4 (although that shouldn't be relevant). I was writing some C code to publish stuff to a local broker, (mosquitto_pub and Python3 using paho-mqtt work fine) and could not find the mosquitto.h header file. Did the usual "find / -name mos...
by SteveSpencer
Sat Oct 03, 2020 8:44 am
Forum: Python
Topic: Python3, pygame2 using SDL2 issues with official touchscreen.
Replies: 1
Views: 117

Re: Python3, pygame2 using SDL2 issues with official touchscreen.

It seems that specifying SDL_MOUSEDRIVER as FT4506 does the trick for SDL2. I no longer get spurious presses causing my buttons to flash. The code reacts to fingerdown by having the button change it's background color, and to fingerup by resetting it, which is one of the things that led me to discov...
by SteveSpencer
Thu Oct 01, 2020 12:39 pm
Forum: Python
Topic: Python3, pygame2 using SDL2 issues with official touchscreen.
Replies: 1
Views: 117

Python3, pygame2 using SDL2 issues with official touchscreen.

I'm hoping for a little advice, or rational analysis of what I am doing wrong. I have produced a GUI using pygame, which using mouse events, works fine, but touch is proving more problematic. What seems to be happening is that I am getting 'fake' touch events (fingerdown, fingerup etc) from the scre...
by SteveSpencer
Thu Jun 25, 2020 12:05 pm
Forum: Troubleshooting
Topic: Setting MAC address on enc28j60 board attached via SPI0.0 [SOLVED[
Replies: 2
Views: 169

Re: Setting MAC address on enc28j60 board attached via SPI0.0

Thanks. As you surmised it wasn't working with interface, nor did it when I used Interface :( However, I did a bit more reading around, and discovered that as I only have one of them, I can use Driver=enc28j60 I cheated a little bit, by digging what would be the MAC address if the lan chip was prese...
by SteveSpencer
Thu Jun 25, 2020 10:01 am
Forum: Troubleshooting
Topic: Setting MAC address on enc28j60 board attached via SPI0.0 [SOLVED[
Replies: 2
Views: 169

Setting MAC address on enc28j60 board attached via SPI0.0 [SOLVED[

I have successfully configured (not exactly rocket science) a cheap enc28j60 module onto a Pi Zero W. Running Raspi OS from 27-05, with all available updates. In various places, I see that there are different ways to set the mac address. One of them involved generating a link file in /etc/systemd/ne...
by SteveSpencer
Sun Jun 21, 2020 4:20 pm
Forum: Troubleshooting
Topic: [Stretch/Buster] Using LIRC with kernel 4.19.X and gpio-ir
Replies: 68
Views: 46319

Re: [Stretch/Buster] Using LIRC with kernel 4.19.X and gpio-ir

Yes, that's what I have ended up doing. Not a problem (aside from remembering NOT to run apt except to install lirc.

It gives one of my Zero W units something to do for a while :)
by SteveSpencer
Fri Jun 19, 2020 5:56 pm
Forum: Troubleshooting
Topic: [Stretch/Buster] Using LIRC with kernel 4.19.X and gpio-ir
Replies: 68
Views: 46319

Re: [Stretch/Buster] Using LIRC with kernel 4.19.X and gpio-ir

Thanks for that. It's certainly an idea. I was hoping to be able to do it all on the Pi, but you can't haveeverything, I suppose. An alternative would be to dig out an old SD card with a pre 4.19 kernel on it :)
by SteveSpencer
Fri Jun 19, 2020 1:28 pm
Forum: Troubleshooting
Topic: [Stretch/Buster] Using LIRC with kernel 4.19.X and gpio-ir
Replies: 68
Views: 46319

Re: [Stretch/Buster] Using LIRC with kernel 4.19.X and gpio-ir

Hmm, you must be a consultant. You answered a different question to the one I asked, and told me something I already knew :D I know there is IR recognition support in the kernel, but I have two issues. Firstly, I am trying to determine what a specific remote is sending, so that I can replace it with...
by SteveSpencer
Tue Jun 16, 2020 12:03 pm
Forum: Troubleshooting
Topic: [Stretch/Buster] Using LIRC with kernel 4.19.X and gpio-ir
Replies: 68
Views: 46319

Re: [Stretch/Buster] Using LIRC with kernel 4.19.X and gpio-ir

OK. I have RPi 4 (4GB) currently up to date with kernel 4.19.118, and have run through the instructions for buster. When I try and build, this happens: dpkg-buildpackage -us -uc -ui -b dpkg-buildpackage: info: source package lirc dpkg-buildpackage: info: source version 0.10.1-5.2 dpkg-buildpackage: ...
by SteveSpencer
Tue Feb 19, 2019 4:47 pm
Forum: General discussion
Topic: raspi 3b+ jukebox for everyone
Replies: 5
Views: 1610

Re: raspi 3b+ jukebox for everyone

Familiar, yes, but a right pain, since you have to scan columns and rows. I'd be inclined to use an arduino (or generic ATMega-whatever) to do the scanning, and have it send data out to the Pi on the serial port. Obviously, that's further complicated by using a level convertor if you run the arduino...
by SteveSpencer
Wed Feb 13, 2019 9:52 am
Forum: General discussion
Topic: Usage of Pi touch display and power button
Replies: 3
Views: 894

Re: Usage of Pi touch display and power button

I just read the first article the OP referred to. It uses GPIO3 specifically because grounding that will wake the Pi from a "halted" state. However, I would suggest using TWO buttons, a GREEN button between GPIO3 and Gnd, and then pick an otherwise unused exposed GPIO for the shutdown function, on a...
by SteveSpencer
Fri Feb 01, 2019 3:52 pm
Forum: Beginners
Topic: Different GPIO Pins?
Replies: 16
Views: 1937

Re: Different GPIO Pins?

1-Wire, that is one of the most complex and strange variations on I2C, and very hard to get working, not for beginners who want to keep their sanity. :mrgreen: Its easy, some GPIO pins can, but don't have to, be used with special hardware in the chip, to be used for specific hardware functions. exa...
by SteveSpencer
Tue Jan 29, 2019 9:32 am
Forum: Troubleshooting
Topic: Octoprint on college wifi
Replies: 1
Views: 507

Re: Octoprint on college wifi

Which MAC address have you registered, the Wifi one or the LAN one?
by SteveSpencer
Fri Jan 25, 2019 9:14 am
Forum: Beginners
Topic: can a python file be made to run in a way that is not humanly readable?
Replies: 15
Views: 1567

Re: can a python file be made to run in a way that is not humanly readable?

Pigpiod does multiple PWM, doesn't it? And you use it as is, through a server interface, so as I understand it, you aren't obliged to supply the source (IANAL applies) for your client, just as using TCP/IP doesn't oblige you to provide the source for the network layer. Of course, if you're using oth...
by SteveSpencer
Thu Jan 24, 2019 10:16 am
Forum: Beginners
Topic: Relay boards
Replies: 31
Views: 4977

Re: Relay boards

You would expect that to be the case, but many relay boards available work on reversed logic from that point of view. In reality you are pulling something low, and that activates the relay. This allows the use of pull-up resistors so that the overall system comes up with everything switched off, whi...
by SteveSpencer
Mon Jan 21, 2019 4:58 pm
Forum: General discussion
Topic: STICKY: Making your own custom burn-n-boot Raspbian image
Replies: 61
Views: 41476

Re: Making your own custom burn-n-boot Raspbian image

That sounds very useful to me! Is there a way that I can even use apt to install packages that is not in the original image myself? I assume I need to mount the image to an real Raspberry Pi to do that.... if it is even possible. Yes, it is, within disk space limits. Remember that your root fs has ...
by SteveSpencer
Fri Jun 22, 2018 8:55 am
Forum: Troubleshooting
Topic: DHCP issue with dhcpcd and Windows Server 2008R2
Replies: 0
Views: 342

DHCP issue with dhcpcd and Windows Server 2008R2

I'm pretty sure this is not a dhcpcd problem, but thought I would ask in here before banging my head against the wall again. I have a Pi2, which has a hostname of "devbox". I use this at home, and occasionally at work (since it has my media player on it). When at work, the dhcp server in use is the ...
by SteveSpencer
Sat Jun 02, 2018 11:32 am
Forum: Raspberry Pi OS
Topic: Raspbian Lite questions
Replies: 22
Views: 3610

Re: Raspbian Lite questions

[insert web search engine of choice here] is your friend.

https://github.com/Drewsif/PiShrink
by SteveSpencer
Wed May 30, 2018 9:22 am
Forum: Troubleshooting
Topic: Connecting to a 7inch HDMI LCD
Replies: 9
Views: 5913

Re: Connecting to a 7inch HDMI LCD

Agree with previous post. Many of the small HDMI displays don't properly implement the feature where the device returns a valid EDID block, which is how the display explains what resolutions etc are supported or preferred. Mostly, once that is sorted, the touchscreen is either SPI (so the Pi physica...

Go to advanced search