Go to advanced search

by thagrol
Mon Jun 01, 2020 7:15 pm
Forum: General discussion
Topic: off the grid, internet options
Replies: 16
Views: 328

Re: off the grid, internet options

What? The original coax ethernet was brilliant. String some coax around the office and you have your machines networked. No hubs or switches required. No wall warts required to power them. No tangle of cables for those wall warts. It was simple and great. Until someone trips over a cable or you're ...
by thagrol
Mon Jun 01, 2020 6:44 pm
Forum: General discussion
Topic: off the grid, internet options
Replies: 16
Views: 328

Re: off the grid, internet options

Stick an Ethernet switch part way out there and it would be possible to go beyond 100 meters. Or, if you can get the equipment, set up using the original COAX Ethernet "cable", which has a maximum length of one kilometer. You can always roll your own: http://tech.mattmillman.com/projects/usbaui/ ;)...
by thagrol
Mon Jun 01, 2020 4:08 pm
Forum: General discussion
Topic: off the grid, internet options
Replies: 16
Views: 328

Re: off the grid, internet options

One more option:

If the weather station is outside your WiFi range but within 100m (and you own the land/have the necessary permissions) you could go with ethernet. If you add PoE that's the power sorted too.
by thagrol
Mon Jun 01, 2020 4:05 pm
Forum: General discussion
Topic: off the grid, internet options
Replies: 16
Views: 328

Re: off the grid, internet options

I want to build a weather station but I don’t want to keep it at my house therefore it won’t be on a WiFi network. What are my options? That depends on how "off grid" it's going to be. And how far from your house. Options include: Celluar data One of the unregulated radio bands but that'll be a dir...
by thagrol
Mon Jun 01, 2020 3:46 pm
Forum: Advanced users
Topic: What pins do touch monitors use?
Replies: 2
Views: 93

Re: What pins do touch monitors use?

So my question is, how can I find out what PINS the monitor (linked in #1) uses? I want to see if it's possible for me to still use pins 6, 8, and 10. Have a look at the github page for the drivers? The URL is in the last image on the product page. Edit: Extrapolating from the images on the product...
by thagrol
Mon Jun 01, 2020 11:57 am
Forum: General discussion
Topic: Raspberry Pi as keylogger
Replies: 18
Views: 2631

Re: Raspberry Pi as keylogger

I'm trying to achieve something similar. The idea is to capture and analyse data sent from a Joystick / Steering to a PS4. I cannot simply capture the the traffic on the console, since it's locked down. As as suggested here I've setup a RPi4 like so: Steering Wheel --> Raspberry Pi --> PS4 But I'm ...
by thagrol
Sun May 31, 2020 11:24 pm
Forum: Graphics, sound and multimedia
Topic: Pi Zero + Camera Board = USB webcam gadget?
Replies: 47
Views: 24072

Re: Pi Zero + Camera Board = USB webcam gadget?

Just saw this recent (April, 2020) article from: tomshardware https://www.tomshardware.com/how-to/use-raspberry-pi-as-pc-webcam Looks promising, though I have not tried it. While it might be functional it isn't the same thing. That article has the Pi streaming it's camera over ethernet (or ethernet...
by thagrol
Sun May 31, 2020 11:09 pm
Forum: Graphics, sound and multimedia
Topic: Looking for a 26-pin stereo AMP HAT
Replies: 12
Views: 312

Re: Looking for a 26-pin stereo AMP HAT

On further though, you'd probably be better off stumping up the $5 for a Pi zero then getting one of the more modern, cheaper amp HATs. System performance will be about the same (possibly a bit better) and you'll save yourself a lot of hassle in the long run.
by thagrol
Sun May 31, 2020 10:54 pm
Forum: Graphics, sound and multimedia
Topic: Looking for a 26-pin stereo AMP HAT
Replies: 12
Views: 312

Re: Looking for a 26-pin stereo AMP HAT

the pimoroni pirate thing is a better deal I think https://shop.pimoroni.com/products/pirate-audio-headphone-amp This will run picoreplayer Perhaps but: I wouldn't expect that to drive speakers. It lacks a number of features present on the Wolfson card (microphone, all inputs, digital audio out, et...
by thagrol
Sun May 31, 2020 7:09 pm
Forum: C/C++
Topic: Can anybody help me troubleshoot an "if" statement?
Replies: 24
Views: 513

Re: Can anybody help me troubleshoot an "if" statement?

jahboater wrote:
Sun May 31, 2020 6:40 pm
Its a good idea.
Thanks :)

In the past I've used techniques like this but not in C and I've no idea if C would support it:

Code: Select all

switch true
	case a == b
		do stuff
	case a == c
		do some other stuff
	etc
I forget which language, probably VBA or BBC Basic V.
by thagrol
Sun May 31, 2020 6:51 pm
Forum: Graphics, sound and multimedia
Topic: Looking for a 26-pin stereo AMP HAT
Replies: 12
Views: 312

Re: Looking for a 26-pin stereo AMP HAT

The spec says "Onboard power amplifier (Class D) for external loudspeakers, with connection to an external power source" Fair enoug. I withdraw my comment abotu it only having line out. And it says "Only for Raspberry Pi A or Raspberry Pi B, " There were several revisions of the 1B. Some have the P...
by thagrol
Sun May 31, 2020 6:35 pm
Forum: C/C++
Topic: Can anybody help me troubleshoot an "if" statement?
Replies: 24
Views: 513

Re: Can anybody help me troubleshoot an "if" statement?

It's been a long time since I've done any programming in C but this is exactly the time of thing the switch/case statement is used for. You can only switch on integer types. So you could switch on the first character of the string, but nothing involving strcmp. I would change it to:- if( !strncmp( ...
by thagrol
Sun May 31, 2020 6:27 pm
Forum: General discussion
Topic: A Problem: unknown filesystem type 'exfat'
Replies: 2
Views: 100

Re: A Problem: unknown filesystem type 'exfat'

Try this: sudo apt update apt search exfat pick a package from the list returned and sudo apt install -y package name replacing "package name" with the actual package name. Re-try your mount. May not work, depends on what OS you're using and which release of it. If you need more details, try a forum...
by thagrol
Sun May 31, 2020 6:22 pm
Forum: Graphics, sound and multimedia
Topic: Looking for a 26-pin stereo AMP HAT
Replies: 12
Views: 312

Re: Looking for a 26-pin stereo AMP HAT

This is the only one l could find googling... https://www.amazon.co.uk/dp/B01GBJQMGO?tag=stucuk-21&tag=stucuk-21&linkCode=osi&th=1&psc=1&ascsubtag=5ed3c51ceba0c919e85bbb12 https://www.reichelt.com/gb/en/raspberry-pi-shield-audio-card-26-pin-gpio-wm8804-wm7220-rasp-wolf-audio-p142942.html?PROVID=278...
by thagrol
Sun May 31, 2020 6:13 pm
Forum: C/C++
Topic: Can anybody help me troubleshoot an "if" statement?
Replies: 24
Views: 513

Re: Can anybody help me troubleshoot an "if" statement?

It's been a long time since I've done any programming in C but this is exactly the time of thing the switch/case statement is used for.
by thagrol
Sun May 31, 2020 6:02 pm
Forum: General discussion
Topic: Could a 2.5A power bank power a pi4 + high quality camera module?
Replies: 6
Views: 199

Re: Could a 2.5A power bank power a pi4 + high quality camera module?

Frankly, for "mobile" (that is, battery powered) uses of Pis, I avoid the newer, more power hungry models and generally stick with older Pis, like the Pi2B, that don't require as much. I try to stick to using a zero. forgot to post this link earlier. It might help: https://www.raspberrypi.org/docum...
by thagrol
Sun May 31, 2020 1:43 pm
Forum: Troubleshooting
Topic: Using Camera Module for Jetson Nano on Pi4
Replies: 2
Views: 64

Re: Using Camera Module for Jetson Nano on Pi4

Not an expert on the hardware but... Having the same physical connector doesn't mean the wiring, voltages, and signalling are the same. That isn't one of the supported camera chipsets. I's not just the camera module you could damage. You risk damaging your Pi too. If you can find the wiring diagrams...
by thagrol
Sun May 31, 2020 1:35 pm
Forum: General discussion
Topic: Could a 2.5A power bank power a pi4 + high quality camera module?
Replies: 6
Views: 199

Re: Could a 2.5A power bank power a pi4 + high quality camera module?

Further to what LTolledo says, power banks have several power ratings: The amount of energy they store. This is the one they usually advertise. The current required when charging them. The per port current output. The one you need to check is the last one. A powerbanks that stores 2.5Ah (Amp hours) ...
by thagrol
Sat May 30, 2020 6:33 pm
Forum: Networking and servers
Topic: Problem with Samba permissions
Replies: 15
Views: 340

Re: Problem with Samba permissions

I wasn't going to reply, in fact I didn't even see your post but @rpdom's mention of "threats" had me curious. Okay, probably you will remain how you are, but just let me explaining without any kind of rage: 1) I THANKED for the received help, and my comment was just a suggestion. If three people ar...
by thagrol
Sat May 30, 2020 3:49 pm
Forum: Advanced users
Topic: network interfaces boot
Replies: 3
Views: 126

Re: network interfaces boot

/etc/network/interfaces looks like this auto eth0 iface eth0 inet static address 10.31.13.44 subnetmask 255.255.255.0 Any pointers on this would be highly appreciated. Thanks! Buster raspbain/Raspberry Pi OS doesn't use /etc/network/interfaces. It uses /etc/dchcpcd.conf. Either put yoru static conf...
by thagrol
Sat May 30, 2020 12:24 pm
Forum: Troubleshooting
Topic: USB 3.0 thumb drive slow transfer speeds on Raspberry Pi 4
Replies: 5
Views: 157

Re: USB 3.0 thumb drive slow transfer speeds on Raspberry Pi 4

I know this talks primarily about USB to SATA adapters but it might be worth a try: viewtopic.php?f=28&t=245931#p1501426
by thagrol
Sat May 30, 2020 11:57 am
Forum: Networking and servers
Topic: Problem with Samba permissions
Replies: 15
Views: 340

Re: Problem with Samba permissions

P.S. (maybe next time it is better if you give a complete solution, not just an indication. Not all people here could have the experience to understand) There's always google. And a forum search. I guess you didn't bother before asking as that problem has come up and been answered many times before...
by thagrol
Sat May 30, 2020 12:05 am
Forum: Troubleshooting
Topic: Problem getting script to start on boot with systemctl service
Replies: 13
Views: 196

Re: Problem getting script to start on boot with systemctl service

OK. It looks like systemd is trying to start the script but for an unknown reason it fails. Systemd then stops trying after 5 attempts. Was there anything in dmesg's output or syslog? Is /home/pi on an external HDD that might be slow to start up? Or mounted from a NAS or other network server? Are pe...
by thagrol
Fri May 29, 2020 9:34 pm
Forum: Troubleshooting
Topic: Problem getting script to start on boot with systemctl service
Replies: 13
Views: 196

Re: Problem getting script to start on boot with systemctl service

OK. That suggests it is running but exiting immediately without generating any output or errors. Can you try the following: Run sudo systemctl daemon-reload and try again. systemctl status GenRunState Check dmesg and /var/log/syslog for anything relevant. Running your script manually as follows: sud...
by thagrol
Fri May 29, 2020 9:04 pm
Forum: General discussion
Topic: cifs_mount error on kernel 5.4
Replies: 6
Views: 208

Re: cifs_mount error on kernel 5.4

Tinue wrote:
Fri May 29, 2020 7:30 pm
Edit: Enabling "Wait for Network at Boot" in raspi-config resolves the issue.
So not specific to a v5.4 kernel then.

You might want to add "_netdev" to your mount options though I'm kinda surprised systemd didn't automount the shares on first use.

Go to advanced search