Go to advanced search

by BeauSlim
Wed May 29, 2019 10:14 pm
Forum: Advanced users
Topic: What is the preferred FS format for high-cap external drives?
Replies: 12
Views: 1312

Re: What is the preferred FS format for high-cap external drives?

Do EXT4 and share it over the network. Install samba (SMB/CIFS) and NFS and netatalk (AFS) for broad network compatibility. Install avahi (zeroconf/mDNS/Bonjour) and configure for all 3 file sharing protocols. Install iTunes on Windows to get Bonjour (you can uninstall iTunes after). My gear is a mi...
by BeauSlim
Wed May 29, 2019 9:47 pm
Forum: Advanced users
Topic: Raspberry pi 3 B Plus + RS485 + SCADA for Softstarter SSW07 weg
Replies: 1
Views: 176

Re: Raspberry pi 3 B Plus + RS485 + SCADA for Softstarter SSW07 weg

Get a USB to RS485 adapter that has Linux drivers available. FTDI chips are expensive but generally better supported. If you need 4-wire, make sure you get a 4-wire adapter. If you are implementing HMI via a touch screen on the PI itself, debug by getting the screen working with the Raspbian desktop...
by BeauSlim
Tue May 21, 2019 6:13 pm
Forum: General discussion
Topic: Raspberry Pi Zero W with 2 Channel Relay
Replies: 4
Views: 170

Re: Raspberry Pi Zero W with 2 Channel Relay

Yes, definitely be careful if you are switching AC power with those relay boards. There are fakes out there. Never leave them unattended. If you have homeowners insurance, check your policy to ensure that you will be covered if an uncertified device burns your house down. Even though they are consid...
by BeauSlim
Tue May 21, 2019 5:54 pm
Forum: General discussion
Topic: Raspberry Pi Bluetooth Woes
Replies: 6
Views: 319

Re: Raspberry Pi Bluetooth Woes

Unfortunately, I have found bluetooth on the Pis to be flakey. Especially for debugging, you might find it helpful to disable WiFi by adding "dtoverlay=pi3-disable-wifi" to your /boot/config.txt file. Be aware that there are potential security issues using serial console over bluetooth, since you ar...
by BeauSlim
Sat May 18, 2019 6:44 am
Forum: General discussion
Topic: Protect python code to prevent copy
Replies: 8
Views: 416

Re: Protect python code to prevent copy

The first question to ask in a situation like this is, "Why?" Is your code actually worth protecting? Compiling to binary and using obfuscators along with a net-linked license key scheme will stop non-technical users from casually copying your software, but any motivated geek will be able to decompi...
by BeauSlim
Sat May 18, 2019 2:34 am
Forum: Advanced users
Topic: Font smaller than Terminus
Replies: 3
Views: 336

Re: Font smaller than Terminus

Since you are talking about Termius I assume you are talking about the framebuffer console. Unfortunately, there aren't a lot of small fonts available in psf format, but I have found a couple good ones: Tamsyn is my favorite and comes as small as 5x9. miniwi is _very_ tiny if you want that. It is ex...
by BeauSlim
Fri Apr 26, 2019 9:34 pm
Forum: General discussion
Topic: PiVPN - Connects, But Very Slow Internet
Replies: 7
Views: 331

Re: PiVPN - Connects, But Very Slow Internet

I think it really depends on what you consider acceptable throughput. A Pi 3B+ has no hardware crypto acceleration, and will do something like 30-40Mbit. An old PC box with an Intel core chip that has AES-NI (mostly 2011 or later) has no problem doing 250+ Mbit over OpenVPN/IPSec and is a much bette...
by BeauSlim
Fri Apr 26, 2019 7:43 pm
Forum: Python
Topic: Replicating an existing keypad interface
Replies: 4
Views: 198

Re: Replicating an existing keypad interface

Interesting project. Keyboards often have de-bounce hardware and software. Maybe your simulated signals are being filtered by that.
by BeauSlim
Fri Apr 26, 2019 7:37 pm
Forum: Python
Topic: python to binary file from ubuntu
Replies: 9
Views: 443

Re: python to binary file from ubuntu

I think I read that cython can be used in a cross-compile environment. But why do you want to compile python to a binary? One of the benefits of using python is that it isn't compiled to an architecture-specific file.
by BeauSlim
Thu Apr 25, 2019 11:52 pm
Forum: Python
Topic: Python3 Code on Pi3 won't run on Zero
Replies: 3
Views: 299

Re: Python3 Code on Pi3 won't run on Zero

I don't think it's a "can't run that on the Zero" situation. I've seen lots of face recognition video analysis projects that use the Zero. It's most certainly a lot slower than the Pi3, but the Zero's 512MB is in the same ballpark as the Pi3's 1024MB. If you are running in a graphical desktop mode, ...
by BeauSlim
Thu Apr 25, 2019 6:28 pm
Forum: General discussion
Topic: Portable Raspberry pi help
Replies: 14
Views: 449

Re: Portable Raspberry pi help

I am working on something similar. Stuff to consider: If you do actually need the performance of the 3B+, then the the 3A+ is less bulky. Both the 3B+ and the 3A+ run hot and will probably need active cooling if you seal them in a case. As W. H. Heydt said, if you don't need the power of the 3A+/3B+...
by BeauSlim
Sat Mar 16, 2019 12:23 am
Forum: Troubleshooting
Topic: lirc on Raspberry Pi Zero W with gpio-ir
Replies: 2
Views: 886

Re: lirc on Raspberry Pi Zero W with gpio-ir

I have only played with the receiver part, but gpio-ir seems to work quite well with the new 4.19 kernel. See https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=224931 for issues using 4.19. I use a scrounged camcorder IR remote to the Zero, which then runs scripts to wake and/or run things ove...
by BeauSlim
Fri Mar 15, 2019 11:43 pm
Forum: Advanced users
Topic: Is it reliable to backup Raspi from remote?
Replies: 23
Views: 1228

Re: Is it reliable to backup Raspi from remote?

The usual solution to the problem of having your storage in an indeterminate state is to keep temporary files in RAM and to synchronize them to storage on a schedule. This also helps keep flash storage bootable after unexpected power losses, etc. There are many guides out there for doing this with L...
by BeauSlim
Sun Jan 13, 2019 12:00 am
Forum: Advanced users
Topic: Raspberry PI cold boot attack protected / Zero out RAM after boot?
Replies: 71
Views: 3955

Re: Raspberry PI cold boot attack protected / Zero out RAM after boot?

I think the bottom line is that if you are worried about any physical attack, the raspberry pi is the wrong platform in general. It has none of the features from ARM's Trust Zone and other tech that would help with this. See https://www.arm.com/products/silicon-ip-security. I assume that the Raspber...
by BeauSlim
Mon Dec 31, 2018 7:08 am
Forum: Troubleshooting
Topic: hotspot when no known network is available
Replies: 11
Views: 476

Re: hotspot when no known network is available

Hmm, cool concept. Naw, this isn't a "beginner" issue. Have you set your "Wi-Fi Country" under Localisation in raspi-config? If I remember right, on the 3B this is not required to be a WiFi client but it _is_ required to be an AP. If that's not it, you'll need to look in /var/log/syslog or whatever ...
by BeauSlim
Mon Dec 31, 2018 6:45 am
Forum: Troubleshooting
Topic: Can't even get started
Replies: 10
Views: 479

Re: Can't even get started

Don't panic yet! The red light coming on but nothing else happening suggests that the Pi is probably fine but that it can't read anything on the uSD card. uSD to SD card adapters work fine. You should see 5V between GPIO pins 4 and 6 (see https://pinout.xyz). Just to confirm, you are writing the Ras...
by BeauSlim
Mon Dec 31, 2018 5:36 am
Forum: Advanced users
Topic: RPIzW Stretch 24/7 running
Replies: 4
Views: 531

Re: RPIzW Stretch 24/7 running

Assuming that you are actually running "lite" not the desktop version, there really isn't much to turn off. Maybe avahi if that's running.

Add "dtoverlay=pi3-disable-bt" to your /boot/config.txt to make sure bluetooth is disabled. Yes "pi3" on the zero.
by BeauSlim
Mon Dec 31, 2018 4:08 am
Forum: Other programming languages
Topic: Swift programming on Raspberry Pi B 3+ with XCode
Replies: 1
Views: 2505

Re: Swift programming on Raspberry Pi B 3+ with XCode

I was just today wondering how that whole Swift thing was coming along, did a little looking around, and I see that they just released Swift 4.1.3 for the Pi Zero. Then here you are helping with Xcode. Cool stuff! While I _completely_ understand the desire to use a proper full-blown IDE for developm...
by BeauSlim
Sun Dec 16, 2018 8:21 am
Forum: Troubleshooting
Topic: Booting from USB
Replies: 10
Views: 2962

Re: Booting from USB

I ran into this today. Using a 16GB Kingston Datatraveler 4G boots my 3B just fine, but a "reboot" doesn't come back, requiring a power cycle. Adding rootdelay=15 to the end of the cmdline.txt didn't seem to help. BUT, adding program_usb_boot_timeout=1 to /boot/config.txt and a shutdown + power cycl...
by BeauSlim
Thu Dec 13, 2018 3:21 am
Forum: Beginners
Topic: Raspberry for the Industry
Replies: 17
Views: 875

Re: Raspberry for the Industry

Proper industrial PLCs are EXPENSIVE and it is often tempting to look at $30 hobbyist boards and wonder if they'd work. They probably _could_ work but the actual cost of using one would end up being more than that of using a proper PLC. Equipment used in various scenarios generally needs to be certi...
by BeauSlim
Thu Dec 13, 2018 1:30 am
Forum: Beginners
Topic: Can I use Raspberry Pi to make router get a new IP?
Replies: 21
Views: 1017

Re: Can I use Raspberry Pi to make router get a new IP?

Talk to your ISP. DHCP policies very widely. A DHCP server can be set to give a customer prem device a new IP on reset, on request, every X hours, after it's been offline for X hours, or never (i.e. static IP). You'll need to talk to your ISP to be sure. If the ISP aren't cooperative in resolving th...
by BeauSlim
Thu Dec 13, 2018 12:57 am
Forum: Advanced users
Topic: Wake from halt when gadget booted?
Replies: 5
Views: 377

Re: Wake from halt when gadget booted?

The "normal" way to do this is via shorting the "run" pins. I haven't tried it in combination with sd-less booting.
by BeauSlim
Tue Dec 04, 2018 11:24 pm
Forum: Advanced users
Topic: USB Gadget mode on new 3 A+?
Replies: 8
Views: 2007

Re: USB Gadget mode on new 3 A+?

Thanks to all for the info and clarification of the caveats. Since I'll be running from SD and not looking to have it boot from the USB, it sounds like it will work for my application.
by BeauSlim
Mon Dec 03, 2018 8:45 pm
Forum: Advanced users
Topic: USB Gadget mode on new 3 A+?
Replies: 8
Views: 2007

USB Gadget mode on new 3 A+?

Since the new A+ only has one USB port, I'm wondering if it supports gadget mode like the Zero/W does. For example, so you can connect to a PC for Ethernet over USB.
by BeauSlim
Fri Oct 26, 2018 10:06 am
Forum: Advanced users
Topic: How to send file by the serial com line ?
Replies: 5
Views: 1390

Re: How to send file by the serial com line ?

Back when dial-up modems were a thing, z-modem protocol was the best method. I don't know if it'll work over TTL Serial, but "apt install lrzsz" will get you started. Or try kermit (ckermit or gkermit) , which was slower but more interoperable.

Go to advanced search