Go to advanced search

by PiGraham
Fri Apr 03, 2020 9:23 am
Forum: Python
Topic: starting and stopping thread in other class
Replies: 12
Views: 513

Re: starting and stopping thread in other class

You could look at synchronisation object, pipes, signals, message queues. For GUI interaction you often use message queues. Maybe this chapter will help https://www.oreilly.com/library/view/python-cookbook/0596001673/ch09s07.html This recipe shows the easiest way of handling access to sockets, seria...
by PiGraham
Fri Mar 27, 2020 3:11 pm
Forum: Off topic discussion
Topic: Raspberry Pi GPU Concept (" Model D ")
Replies: 182
Views: 17296

Re: Raspberry Pi GPU Concept (" Model D ")

As yet I've not seen any reason to have one, so for me, without that information, it would be worthless. What do you expect to be able to do with the processing card? Serious question, not trying to disparage the idea, just need to know what the benefits are over a Pi running linux and attached via...
by PiGraham
Wed Mar 25, 2020 7:03 pm
Forum: Advanced users
Topic: Destroy pi sd card... On purpose if removed
Replies: 53
Views: 2799

Re: Destroy pi sd card... On purpose if removed

the idea is less about something thats configured on every single pi and more about the creator of a certain product, re-selling pi's that are specially modified to only run their software even if you can clone the software on the SD card, the specially modified pi is the limiting factor, and acts ...
by PiGraham
Wed Mar 25, 2020 5:08 pm
Forum: Advanced users
Topic: Wirelessly receive and compile teensy/arduino code
Replies: 4
Views: 202

Re: Wirelessly receive and compile teensy/arduino code

Agreed, use the commandline tool for Arduino, not the IDE. Then you can send the source file, build it and upload it to the Teensy. all from a shell script or ox.popen calls from Python . https://github.com/arduino/arduino-cli To compile the sketch you run the compile command passing the proper FQBN...
by PiGraham
Wed Mar 25, 2020 3:15 pm
Forum: Advanced users
Topic: 2 pi's communicating serially through an optical fiber link
Replies: 24
Views: 1124

Re: 2 pi's communicating serially through an optical fiber link

1. You cannot send a signal between two points using only one conductor between them. In some cases it is possible to use the earth as one of two conductors. For example, early telegraph systems http://web.mst.edu/~kosbar/ee3430/ff/telegraph/ground/index.html 2. With only two conductors, any method...
by PiGraham
Wed Mar 25, 2020 2:34 pm
Forum: Advanced users
Topic: 2 pi's communicating serially through an optical fiber link
Replies: 24
Views: 1124

Re: 2 pi's communicating serially through an optical fiber link

1. You cannot send a signal between two points using only one conductor between them. In some cases it is possible to use the earth as one of two conductors. For example, early telegraph systems http://web.mst.edu/~kosbar/ee3430/ff/telegraph/ground/index.html 2. With only two conductors, any method...
by PiGraham
Wed Mar 25, 2020 12:44 pm
Forum: Advanced users
Topic: Destroy pi sd card... On purpose if removed
Replies: 53
Views: 2799

Re: Destroy pi sd card... On purpose if removed

watched the video... the microSD doesnt seem mutilated so it looked possible, but as @PiGraham mentioned... it will take a LOT of work.... (" a LOT of meticulous hard work" ) could be a better term for it. so my suggestion is " eventual physical destruction* of the microSD card upon removal " shoul...
by PiGraham
Wed Mar 25, 2020 9:54 am
Forum: Advanced users
Topic: Destroy pi sd card... On purpose if removed
Replies: 53
Views: 2799

Re: Destroy pi sd card... On purpose if removed

makes me wonder.... :o has there been reported successes in retrieving/extracting data from a physically mutilated microSD card? :shock: No doubt a lot can be done with physically damaged cards if the FLASH chip is intact. https://www.youtube.com/watch?v=jjB6wliyE_Y Integrated circuits can be de-ca...
by PiGraham
Wed Mar 25, 2020 8:55 am
Forum: Advanced users
Topic: Destroy pi sd card... On purpose if removed
Replies: 53
Views: 2799

Re: Destroy pi sd card... On purpose if removed

Here's another crypto add-on option https://rpi-drm.com/ It looks like it wouldn't be so hard to crack it though. It seems to rely on periodic calls to a DRM static library and your own code handling violations: Your application needs to start the library and handle “genuine” and “not genuine” cases...
by PiGraham
Wed Mar 25, 2020 8:47 am
Forum: Advanced users
Topic: Destroy pi sd card... On purpose if removed
Replies: 53
Views: 2799

Re: Destroy pi sd card... On purpose if removed

by default, all of the secureboot stuff is disabled on the rpi 1-3, some users have enabled it, but that effectively bricked the pi, due to lack of understanding for signing the rpi4 required signed SPI firmware to boot, but it doesnt validate the start4.elf stage, so you loose all security for bot...
by PiGraham
Tue Mar 24, 2020 8:58 pm
Forum: Advanced users
Topic: Destroy pi sd card... On purpose if removed
Replies: 53
Views: 2799

Re: Destroy pi sd card... On purpose if removed

it would be far simpler to just patch the program to not check the serial# and if your using encryption with the serial# as the key, just read the serial# with a different distro, and decrypt it the ideas i gave, stop them from even knowing the serial#, so they cant do either of the above So, we ag...
by PiGraham
Tue Mar 24, 2020 7:28 pm
Forum: Advanced users
Topic: Destroy pi sd card... On purpose if removed
Replies: 53
Views: 2799

Re: Destroy pi sd card... On purpose if removed

Could the contents of the OTP be used as a moderate protection key? There is a unique serial number, optionally a MAC address, customer data. Nope. Serial numbers and MAC addresses are not unique. Prior to the 4B all Pi have randomly generated serial numbers. There are enough Pi in the wild that se...
by PiGraham
Tue Mar 24, 2020 5:31 pm
Forum: Advanced users
Topic: Turn RPi Camera module into USB webcam for use in Windows
Replies: 13
Views: 1349

Re: Turn RPi Camera module into USB webcam for use in Windows

I need help creating a USB webcam to be used in Windows. Try this topic: After searching a lot I finally have this working now to get it working I used the following script for the configfs setup https://gist.github.com/kbingham/c39c4cc7c20882a104c08df5206e2f9f and this version of the uvc-gadget to...
by PiGraham
Tue Mar 24, 2020 4:29 pm
Forum: C/C++
Topic: How to measure time with nanosecond accuracy?
Replies: 19
Views: 1236

Re: How to measure time with nanosecond accuracy?

This talk may be relevant although it doesn't answer the OP question.

Richard Lansdowne - LoRa Geolocation

https://www.youtube.com/watch?v=WEqLESKW6N8
by PiGraham
Tue Mar 24, 2020 8:35 am
Forum: Advanced users
Topic: Destroy pi sd card... On purpose if removed
Replies: 53
Views: 2799

Re: Destroy pi sd card... On purpose if removed

Could the contents of the OTP be used as a moderate protection key?

There is a unique serial number, optionally a MAC address, customer data.

https://www.raspberrypi.org/documentati ... /README.md
by PiGraham
Tue Mar 24, 2020 8:30 am
Forum: Off topic discussion
Topic: Raspberry Pi GPU Concept (" Model D ")
Replies: 182
Views: 17296

Re: Raspberry Pi GPU Concept (" Model D ")

TheMindVirus wrote:
Tue Mar 24, 2020 8:04 am

The idea behind using an FPGA is to allow a flexible choice of configuration for the accelerator card (and its hosted modules).
OK, so you propose a PCie FPGA card.
They exist but many are pricy.

That seems a bit different than how you started the topic.
by PiGraham
Tue Mar 24, 2020 8:00 am
Forum: Advanced users
Topic: Destroy pi sd card... On purpose if removed
Replies: 53
Views: 2799

Re: Destroy pi sd card... On purpose if removed

cleverca22 wrote:
Tue Mar 24, 2020 2:37 am

if you put a custom signing key into the OTP, then only firmware you approve of (which you signed) can boot on the pi
Are you saying that standard Pi firmware does this already, or is this custom firmware that will only boot a custom kernel?
by PiGraham
Tue Mar 24, 2020 7:42 am
Forum: Off topic discussion
Topic: Raspberry Pi GPU Concept (" Model D ")
Replies: 182
Views: 17296

Re: Raspberry Pi GPU Concept (" Model D ")

I can't make out the chip number. What makes you think it might be ARM based? Broadcom produce a lot of different chips. That one is literally just a chipset as far as I can see, "BCM5821A 1KTB TS0219 P11 62674 S". The one I wanted to make was essentially this, but with a networked ARM core and an ...
by PiGraham
Mon Mar 23, 2020 8:59 pm
Forum: Advanced users
Topic: Destroy pi sd card... On purpose if removed
Replies: 53
Views: 2799

Re: Destroy pi sd card... On purpose if removed

for the 1st point, you would need to convince whoever is fabbing the RPI board, to not program the signing key in the OTP memory, so you have the ability to put your own key onto it (and double-check if its blank or not first, before bothering them) If this was available what stops someone else get...
by PiGraham
Mon Mar 23, 2020 2:02 pm
Forum: Advanced users
Topic: Destroy pi sd card... On purpose if removed
Replies: 53
Views: 2799

Re: Destroy pi sd card... On purpose if removed

Fixing the SD card in with epoxy seems a reasonable strategy. You could pair the SD card with a unique secure module. It doesn't stop someone stealing the SD card but you could make it so your code doesn't run without the secure module. That stops basic copying. Anyone could get a TPM module but it ...
by PiGraham
Sat Mar 21, 2020 9:30 am
Forum: General programming discussion
Topic: Best language for GUI design for Raspberry?
Replies: 27
Views: 2415

Re: Best language for GUI design for Raspberry?

Is Visual Studio an option? Visual Studio is an IDE not a language. You can run mono on Raspbian and write code in VS using c# (or any .Net language) that you can then run on RPi under mono. You can also develop with Python in VS so all those Python options could be done that way. You can't run VS ...
by PiGraham
Fri Mar 20, 2020 7:50 am
Forum: General discussion
Topic: Safe ejecting of random USB-Drive
Replies: 6
Views: 289

Re: Safe ejecting of random USB-Drive

magicBanan3 wrote:
Fri Mar 20, 2020 6:28 am

What do you mean with "<user>"?
It means the name of the user account. The default for Rasbian is "pi"

So in the example:

Code: Select all

umount /media/pi/*
<user> = pi
by PiGraham
Thu Mar 19, 2020 2:26 pm
Forum: Automation, sensing and robotics
Topic: Visual mapping of room
Replies: 12
Views: 836

Re: Visual mapping of room

You can use a projector to shine structured light patterns: https://www.opensourceimaging.org/project/structured-light-3d-scanner/ Alternatives to Kinect: Structure sensor https://structure.io Intel Realsense https://www.intelrealsense.com You can also map walls and some obstacles with a narrow beam...
by PiGraham
Thu Mar 19, 2020 1:54 pm
Forum: Advanced users
Topic: Remotely Control a Pi with another Pi
Replies: 12
Views: 488

Re: Remotely Control a Pi with another Pi

Really? I though the the active phrase in the OP was "remote desktop". I guess I misunderstood. I think the OP is saying that until now VNC has been used: … and have always used a remote desktop application to remotely manage the server. ... The RPi 4 doesn't have enough spare performance to run a ...
by PiGraham
Thu Mar 19, 2020 1:46 pm
Forum: Advanced users
Topic: Remotely Control a Pi with another Pi
Replies: 12
Views: 488

Re: Remotely Control a Pi with another Pi

The RPi 4 doesn't have enough spare performance to run a remote desktop application natively, but I know that a USB device can pretend to be a mouse/keyboard, and there is probably some way to directly pipe the graphical output to the external device. Therefore what I want to do is configure the RP...

Go to advanced search