Go to advanced search

by SlowBro
Sun Jun 07, 2020 8:26 am
Forum: Beginners
Topic: [Guide] Python BLE GATT server for the Raspberry Pi
Replies: 7
Views: 4211

Re: [Guide] Python BLE GATT server for the Raspberry Pi

FYI I added unregister() methods which exposed some small bugs where you initialized some class variables but never used them, only used similar ones locally in methods. (Are they bugs?) I am not good with doing Git pull requests or I'd post an update there. (I am only an intermediate-level coder.) ...
by SlowBro
Fri May 15, 2020 2:10 am
Forum: Beginners
Topic: [Guide] Python BLE GATT server for the Raspberry Pi
Replies: 7
Views: 4211

Re: [Guide] Python BLE GATT server for the Raspberry Pi

Ah thank you. I should have just stared at the code for a while longer because now it's a lot clearer. I just installed it and used the LightBlue app to look at my CPU's temp, changed the units from F (hex 46) to C (hex 43) :D Only needed to alter the opening shebang from /usr/bin/python3 to /usr/bi...
by SlowBro
Fri May 15, 2020 1:28 am
Forum: Beginners
Topic: [Guide] Python BLE GATT server for the Raspberry Pi
Replies: 7
Views: 4211

Re: [Guide] Python BLE GATT server for the Raspberry Pi

Yes, a second example is good. First question: In both examples, in the advertisement class, you call Advertisement.__init__(self, index, "peripheral"). What's the index for? Second question. In the second example, value.append(dbus.Byte(c)). I see this idiom several times. What's going on with this?
by SlowBro
Thu May 14, 2020 10:46 pm
Forum: Beginners
Topic: [Guide] Python BLE GATT server for the Raspberry Pi
Replies: 7
Views: 4211

Re: [Guide] Python BLE GATT server for the Raspberry Pi

I love this project in theory but when trying to understand it my head started spinning. Mainly, how to adapt your code for my needs, why you placed certain functions where you did, things like that.

Would you by chance be willing to sprinkle a lot of comments throughout? At least in cputemp.py.
by SlowBro
Tue Nov 19, 2019 9:39 pm
Forum: Raspberry Pi OS
Topic: Readonly Root with OverlyFS
Replies: 45
Views: 22408

Re: Readonly Root with OverlyFS

marklister wrote:
Tue Jun 18, 2019 7:27 pm
@psuter Thank you for sharing this. Works a treat for me, with some minor "improvements" :)

https://gist.github.com/marklister/c606 ... ebf2f26f8f
What did you change?
by SlowBro
Thu Jul 25, 2019 12:47 am
Forum: Advanced users
Topic: Does LIRC support hardware PWM?
Replies: 3
Views: 456

Re: Does LIRC support hardware PWM?

Thank you!! :D
by SlowBro
Wed Jul 24, 2019 4:50 pm
Forum: Advanced users
Topic: Does LIRC support hardware PWM?
Replies: 3
Views: 456

Re: Does LIRC support hardware PWM?

Image
by SlowBro
Thu Jul 18, 2019 3:32 am
Forum: General discussion
Topic: In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna
Replies: 21
Views: 2538

Re: In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna

The ad says yes but I can’t test it right now. I’m using Pi Zero W which has the built in as the AP and the above adapter as the STA.
by SlowBro
Fri Jun 28, 2019 3:30 pm
Forum: Advanced users
Topic: Does LIRC support hardware PWM?
Replies: 3
Views: 456

Does LIRC support hardware PWM?

I have a Pi Zero W and I'm trying to keep CPU usage down. If I connect an infrared LED to one of the hardware PWM pins, say pin 12 (GPIO18/PWM0), and use LIRC will it light it up at 38 kHz using hardware PWM or does it drive it with software?
by SlowBro
Tue May 28, 2019 2:39 am
Forum: General discussion
Topic: In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna
Replies: 21
Views: 2538

Re: In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna

Since November 2017, labelling a device as FCC compliant has been optional https://www.federalregister.gov/documents/2017/11/02/2017-23217/authorization-of-radiofrequency-equipment Could you would point out which section says that? I saw that very small devices do not need to be labelled, and inste...
by SlowBro
Mon May 27, 2019 3:56 am
Forum: General discussion
Topic: In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna
Replies: 21
Views: 2538

Re: [SOLVED] In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna

I contacted the company about labeling with the ID and they said, they would do it if I would purchase a minimum amount, an amount much higher than I can afford right now. I couldn't get it through to the company representative that their company can get into a lot of trouble . My hunch is she thoug...
by SlowBro
Fri May 24, 2019 8:46 pm
Forum: General discussion
Topic: In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna
Replies: 21
Views: 2538

Re: [SOLVED] In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna

Is it though? As it does not have a certifying label on it, it could be anything being sold as the original. A company forging their own product? The company name matched what was seen on FCC.gov. Far more likely they are ignorant of the labeling requirements than maliciousness. As they say, do not...
by SlowBro
Fri May 24, 2019 5:03 pm
Forum: General discussion
Topic: In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna
Replies: 21
Views: 2538

Re: [SOLVED] In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna

But the unit is indeed certified and has an ID? So how would I be misrepresenting anything?
by SlowBro
Fri May 24, 2019 3:30 pm
Forum: General discussion
Topic: In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna
Replies: 21
Views: 2538

Re: [SOLVED] In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna

So they went to all the expense and trouble of certifying and missed the two cent process of labeling it. Noice. I need to review your link but I thought it is acceptable to include the ID in documentation? It is certified though. I checked the FCC.gov site and the pictures and company name therein ...
by SlowBro
Fri May 24, 2019 2:47 pm
Forum: General discussion
Topic: In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna
Replies: 21
Views: 2538

Re: [SOLVED] In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna

I'm still testing (call me SlowBro for a reason) but I've pretty well settled on this, which I bought in October based on a discussion I had with a supplier on Alibaba. It ticks almost all of the boxes: FCC-certified, reliable, good range, Pi-compatible. It's been going strong since November on my P...
by SlowBro
Tue Jan 22, 2019 7:19 pm
Forum: Raspberry Pi OS
Topic: Readonly Root with OverlyFS
Replies: 45
Views: 22408

Re: Readonly Root with OverlyFS

I too had the kernel panic, even though I downloaded it and installed it unmodified from your server directly to my Pi. Fixed with this:

Code: Select all

apt-get install dos2unix
dos2unix /sbin/overlayRoot.sh
I prefer your script to standard initfs methods as those do not easily work after a kernel upgrade.
by SlowBro
Wed Nov 21, 2018 10:39 am
Forum: General discussion
Topic: Raspbian with Read-only Root
Replies: 195
Views: 102810

Re: Raspbian with Read-only Root

Good stuff. Another way to handle this may be to have a bootup script check if certain modules are loaded. If not, reboot to read/write mode, rebuild the initrd, reboot again to read only. Yet another way may be to wrap apt update commands in a script (that checks if the file system is read only) an...
by SlowBro
Wed Nov 21, 2018 12:07 am
Forum: General discussion
Topic: Raspbian with Read-only Root
Replies: 195
Views: 102810

Re: Raspbian with Read-only Root

When using the method described in this thread, updating the kernel requires creating a new initial RAM filesystem. I've definitely made the mistake of forgetting to do this (or not having space on the /boot partition to do this) and ended up with a non-booting system. So I'm guessing you always up...
by SlowBro
Tue Nov 20, 2018 6:56 pm
Forum: General discussion
Topic: Raspbian with Read-only Root
Replies: 195
Views: 102810

Re: Raspbian with Read-only Root

ejolson wrote:
Tue Nov 20, 2018 5:57 pm
As a precaution, I would recommend keeping an identically configured system on your bench to verify each update before it is deployed to the remote system.
That and only roll it out to 10% of users at a time. Have you not encountered any issue updating the kernel ejolson -- or anyone?
by SlowBro
Tue Nov 20, 2018 1:56 pm
Forum: General discussion
Topic: Raspbian with Read-only Root
Replies: 195
Views: 102810

Re: Raspbian with Read-only Root

I have my doubts that ejolson's workarounds will work for me as I will be doing 100% of updates remotely. When I do apt-get dist-upgrade and there is a new kernel I cannot yet create the initrd until the system reboots to the new kernel, whereupon the new kernel will lack critical modules and cannot...
by SlowBro
Tue Nov 20, 2018 4:29 am
Forum: General discussion
Topic: Raspbian with Read-only Root
Replies: 195
Views: 102810

Re: Raspbian with Read-only Root

Thank you for the suggested workarounds!
ejolson wrote:
Tue Nov 20, 2018 2:05 am
When Raspbian updates the kernel it should check whether an initial RAM filesystem is being used and make a new one. As you have pointed out, this doesn't happen.
Does it happen for you or am I the only one?
by SlowBro
Mon Nov 19, 2018 6:12 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Chronodot with rtc-ds1307 Read Error
Replies: 4
Views: 3525

Re: Chronodot with rtc-ds1307 Read Error

I'm responding to this old thread because this is the first hit on Google for this error. I had the same issue so I want to leave what I found for posterity's sake. The solution for me was to reinstall the OS. Something got corrupted. I reinstalled on a separate SD card and now hwclock -s shows no e...
by SlowBro
Mon Nov 19, 2018 12:35 am
Forum: General discussion
Topic: Raspbian with Read-only Root
Replies: 195
Views: 102810

Re: Raspbian with Read-only Root

I finally got around to trying this (hello, username is SlowBro, that should tell you something) :D and an apt-get dist-upgrade with a new kernel caused the system after rebooting to be unable to load any modules. The reason is simple: No initrd for the new kernel. At the moment I am running this to...
by SlowBro
Tue Oct 23, 2018 6:58 pm
Forum: General discussion
Topic: Raspbian with Read-only Root
Replies: 195
Views: 102810

Re: Raspbian with Read-only Root

It seems there are also packages called fsprotect and bilibop-locks (can be installed with sudo apt install ... see the ease of use ?) but I didn't test them yet. Both of these require AUFS support in the kernel which I believe is not currently present. Ironically it would require more work to get ...
by SlowBro
Sun Oct 14, 2018 10:56 am
Forum: General discussion
Topic: In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna
Replies: 21
Views: 2538

Re: In search of reliable FCC-certified USB Wi-Fi adapter with removable antenna

Update: I hit alibaba and searched for FCC Wi-Fi Pi and started talking to sellers, found a few possible choices whose prices are quite attractive. No idea yet of reliability. Now Chinese manufacturers are notoriously dishonest about their own products so in order to weed out the liars I asked every...

Go to advanced search