Go to advanced search

by thagrol
Wed Jun 03, 2020 5:57 pm
Forum: Advanced users
Topic: Off grid file transfer
Replies: 7
Views: 449

Re: Off grid file transfer

Or you could use USB OTG ethernet gadget to access the Raspberry via USB Networking. Only on a 4B and only via the USB C port which means you need to find another way to provide power. The zero, 1A, 3A and so on as well, and the OP did mention using a zero. Regards Aydan If you look at all my posts...
by thagrol
Wed Jun 03, 2020 12:41 pm
Forum: Advanced users
Topic: Composite output for monitor?
Replies: 5
Views: 326

Re: Composite output for monitor?

Lantian wrote:
Tue Jun 02, 2020 5:02 pm
I've got a 3.5mm 3 pole composite to VGA can the raspberry pi 4 use the port to display on my old pc monitor?
That sounds like a very non-standard connector. It won't work.
by thagrol
Wed Jun 03, 2020 12:35 pm
Forum: Advanced users
Topic: Off grid file transfer
Replies: 7
Views: 449

Re: Off grid file transfer

Or you could use USB OTG ethernet gadget to access the Raspberry via USB Networking. Only on a 4B and only via the USB C port which means you need to find another way to provide power. Other Pi than can act as USB devices only have one USB port that do do either host or device but not both at the s...
by thagrol
Wed Jun 03, 2020 12:14 pm
Forum: General discussion
Topic: Pi Zero GPIO Reverser
Replies: 14
Views: 769

Re: Pi Zero GPIO Reverser

I see the original image has been replaced. and new designs added. (The top left is the original one). Looks like another solution looking for a problem. Edit: It seems something similar exists that could be used for this purpose: https://www.ebay.co.uk/itm/3-Pack-Butterfly-Allows-the-use-of-two-HAT...
by thagrol
Wed Jun 03, 2020 12:03 am
Forum: Networking and servers
Topic: Raspberry Pi 1 as NAS?
Replies: 15
Views: 761

Re: Raspberry Pi 1 as NAS?

65MBytes per second is impossible with 100Mbit Ethernet. It's probably impossible over USB 2 even with a Gigabit adapter. Isn't the limit 480Mbits? I guess it's the usual confusion between B ytes and b its. I can't think of any video streaming that would need 65MBps or even 65Mbps for that matter. ...
by thagrol
Tue Jun 02, 2020 11:55 pm
Forum: Raspberry Pi OS
Topic: Is /tmp strictly in RAM or does it physically write to the disk (SD card)?
Replies: 7
Views: 499

Re: Is /tmp strictly in RAM or does it physically write to the disk (SD card)?

Can't say without seeing your fstab whether your /tmp is in RAM or not.

If it is, it may get written to disc once the kernel starts swapping pages.
by thagrol
Tue Jun 02, 2020 9:24 pm
Forum: Troubleshooting
Topic: Can't set up Pi Zero in headless mode!
Replies: 15
Views: 589

Re: Can't set up Pi Zero in headless mode!

Oh, regarding bonjour. Once installed and following a reboot it should "just work".
by thagrol
Tue Jun 02, 2020 9:23 pm
Forum: Troubleshooting
Topic: Can't set up Pi Zero in headless mode!
Replies: 15
Views: 589

Re: Can't set up Pi Zero in headless mode!

Potentially a bad cable. Try the following: Reboot your laptop. Using the same micro USB cable connect a different device to your laptop. Is that device detected? If you have one try a different cable with the zero Try the minimal config: Disconnect the zero Remove the SD card Reconnect the zero to ...
by thagrol
Tue Jun 02, 2020 8:14 pm
Forum: Troubleshooting
Topic: Can't set up Pi Zero in headless mode!
Replies: 15
Views: 589

Re: Can't set up Pi Zero in headless mode!

Just scanning your post - if it's a PiZero (NOT W), how are you expecting to connect it to your network? Am I missing something obvious here, or are you?? :) You need to add either: - a USB-to-wired Ethernet dongle, and an Ethernet patch cable to your router, or - a USB-wifi dongle (in which case t...
by thagrol
Tue Jun 02, 2020 8:08 pm
Forum: Networking and servers
Topic: Raspberry Pi 1 as NAS?
Replies: 15
Views: 761

Re: Raspberry Pi 1 as NAS?

I wonder, is there a power button available as an accessory? If it's just a buck or two, might be worthwhile investing. Connect a momentary push to make button between GPIO 3 and ground. Enable the gpio-shutdown overlay in config.txt. You have a shutdown and startup button. Alternatively, if I use ...
by thagrol
Tue Jun 02, 2020 7:27 pm
Forum: Troubleshooting
Topic: Problem getting script to start on boot with systemctl service
Replies: 18
Views: 517

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

Would'nt that just allow the script to fail more gracefully? Would adding try/except allow me to find what is causing the failure in the sendmail portion of my script? It seems like something during boot is causing a conflict. How do I find that? Sorry was short of time when I wrote my last reply h...
by thagrol
Tue Jun 02, 2020 5:12 pm
Forum: Troubleshooting
Topic: Problem getting script to start on boot with systemctl service
Replies: 18
Views: 517

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

dmesg is a command to dump a bunch of log message ferom the kernel buffers. It looks like the quick fix is to wrap your calls to sender.sendmail() in a suitable exception handler. For example: try: sender.sendmail(...) except Exception: pass I'm suggesting "except Exception" so you don't accidentall...
by thagrol
Tue Jun 02, 2020 2:19 pm
Forum: Networking and servers
Topic: Raspberry Pi 1 as NAS?
Replies: 15
Views: 761

Re: Raspberry Pi 1 as NAS?

For the power-off functionality, I suppose I could simply tuck the whole thing in a corner and use my phone on the same network to send the shutdown command. If the Pi automatically starts as soon as power is applied, how does it work in reality when I've sent a shutdown command remotely; when does...
by thagrol
Tue Jun 02, 2020 2:13 pm
Forum: Networking and servers
Topic: Raspberry Pi 1 as NAS?
Replies: 15
Views: 761

Re: Raspberry Pi 1 as NAS?

I live in Europe, where with postage those things cost twice as much. So 100$ vs. 15$ is a big difference! :) Pricing is quoted in US$ but depending on where in europe you are there's probably a local dealer. Or buy from a UK one, we're still in the transition period so the post Brexit taxes etc ha...
by thagrol
Tue Jun 02, 2020 1:16 pm
Forum: Networking and servers
Topic: Raspberry Pi 1 as NAS?
Replies: 15
Views: 761

Re: Raspberry Pi 1 as NAS?

No Pi is going to power more than one 2.5" HDD. The maximum current available to USB devices is 1.2A, one HDD can draw that much when spinning up. A "Y" cable won't help as the Pi doesn't do per port current limiting. The best PSU to use is the official one. One with a higher current rating will be ...
by thagrol
Mon Jun 01, 2020 7:15 pm
Forum: General discussion
Topic: off the grid, internet options
Replies: 17
Views: 790

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: 17
Views: 790

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: 17
Views: 790

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: 17
Views: 790

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: 238

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: 3321

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: 69
Views: 35321

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: 706

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: 706

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: 45
Views: 2204

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.

Go to advanced search