Go to advanced search

by picandies
Thu Mar 07, 2019 4:04 am
Forum: General discussion
Topic: rainbow screen troble
Replies: 6
Views: 347

rainbow screen troble

I have a nice custom image at bootup, but want the rainbow screen to go away...using latest stretch & rpi3. I found these steps & repeated them EXACTLY & re-tried them 3 times...but during each boot the rainbow square (4 colors) keeps showing up...are these invalid edits? The display is a LCD plugge...
by picandies
Sun Mar 03, 2019 2:31 am
Forum: General discussion
Topic: setting rules for access
Replies: 0
Views: 127

setting rules for access

What are the proper device "rules" to set for restricting access to usb flash sticks? I need to restrict access so that my python code will grant (or block) only verified users (users who have enrolled) access & allow their flash memory sticks to gain file access. Other users who plug in a stick sho...
by picandies
Fri Feb 22, 2019 10:24 am
Forum: Python
Topic: Controlling storage via python
Replies: 8
Views: 771

Re: Controlling storage via python

If the USB are ruled so as not to activate any auto run programs and you have no access to a command line without a password / user account then it matters not who opens the case and plugs a USB stick in. This has NOTHING to do with opening a case. The USB jack is right on the side of the unit. You...
by picandies
Thu Feb 21, 2019 11:16 pm
Forum: Python
Topic: Controlling storage via python
Replies: 8
Views: 771

Re: Controlling storage via python

I think you mean that there is no *ex*ternal access...in which case, what is the actual problem

Why do you keep trying to change the question? ... As noted, the tech will be using the memory stick , once the password is accepted. How do you enable/disable the access in python 3.5?
by picandies
Thu Feb 21, 2019 5:48 pm
Forum: Python
Topic: Controlling storage via python
Replies: 8
Views: 771

Re: Controlling storage via python

Thanks for the note about these rules.....however the python program need to turn the access on/off...would this change all flash sticks access (desired), from within python?
by picandies
Thu Feb 21, 2019 5:17 pm
Forum: Python
Topic: Controlling storage via python
Replies: 8
Views: 771

Re: Controlling storage via python

Let's stick to the question, please. This part of a machine, so it's not going anywhere. There is no internal access. It is not a high-security setup. However, the causal user should not be able to use a stick, unless the system give authorization to that person.
by picandies
Thu Feb 21, 2019 3:06 pm
Forum: Python
Topic: Controlling storage via python
Replies: 8
Views: 771

Controlling storage via python

I need to block use of usb memory sticks (flash sticks), so as to prevent Trojans, data theft, etc by unauthorized users. In my python program I have a password entry for only authorized users to turn on access to memory sticks so that they can use them for legit purposes. How do I actually turn on/...
by picandies
Mon Jan 21, 2019 1:25 am
Forum: General discussion
Topic: can't upgrade Geany?
Replies: 3
Views: 484

Re: can't upgrade Geany?

Change your sources from Stretch to Buster run: what do you refer to? Do you need to download these files? By the by is their a reason you need a newer version of geany ? Seems like if the version is 3 years old, there would be a fair number of fixes & improvements now (of course that might be unfo...
by picandies
Sun Jan 20, 2019 12:45 am
Forum: General discussion
Topic: can't upgrade Geany?
Replies: 3
Views: 484

can't upgrade Geany?

According to geany.org, the latest version is 1.34... I noticed my rpi with stretch is running 1.29, which is from way back in 2016!!! What is the geany upgrade command? I tried the following, but was told 1.29 is the newest version ...A LIE...1.29 is about 3 years old. [email protected]:~ $ sudo apt-g...
by picandies
Sat Jan 19, 2019 9:28 pm
Forum: General discussion
Topic: Tkinter destroy ...not always working
Replies: 0
Views: 120

Tkinter destroy ...not always working

Tkinter destroy ...not always working I have a form with a button that makes a popup a (smaller form with a few buttons): In the main window code makePopUpOne(p1) this calls: def makePopUpOne(p1): w.frmMotorCtrl = Frame(w.MainFrame) w.frmMotorCtrl.configure(relief=GROOVE)...various graphics commands...
by picandies
Thu Jan 03, 2019 7:13 pm
Forum: General discussion
Topic: make one-shot
Replies: 12
Views: 695

Re: make one-shot

I check it at various points in a large code, not just wait at one point. That might not be practical if the code is large..it might not be read often enough..then the timing would be off. Also, would the pin name definition be known everywhere in the program (such as in different classes). Seems l...
by picandies
Wed Jan 02, 2019 7:48 pm
Forum: General discussion
Topic: make one-shot
Replies: 12
Views: 695

Re: make one-shot

I just use time.time(). Set a start time and then keep checking against the current time eg. time.time() - start > 0.03. I am not sure of the accuracy. We cannot sit still in the code just checking the time, many other things need to be happening. At the time for stopping the pulse, we may be anywh...
by picandies
Wed Jan 02, 2019 4:32 pm
Forum: General discussion
Topic: make one-shot
Replies: 12
Views: 695

Re: make one-shot

Spawn a thread to generate the pulse via rpi.gpio. The thread can sleep during the pulse on time without holding up execution of the main program.

Do you have an example of doing it this way? I'm not sure I follow your statement, as I have never seen such a procedure.
by picandies
Wed Jan 02, 2019 2:10 am
Forum: General discussion
Topic: make one-shot
Replies: 12
Views: 695

Re: make one-shot

pigpio's gpio_trigger function looks like it does what you need. Thanks for the suggestion, however the limit is 100us [pulse_len:= 1-100] & I need a pulse about 30ms long, upon demand. Also everything else in my program uses rpi.gpio, so not sure if it is ok to mix such things together. Is there a...
by picandies
Tue Jan 01, 2019 10:01 pm
Forum: General discussion
Topic: make one-shot
Replies: 12
Views: 695

make one-shot

Hello: I'm doing some RPI3 Python math operations & when I get a certain result , need to make ONE 30ms (approx.) pulse on an IO pin (A one-shot) I'm using import RPi.GPIO as GPIO library for all my IO. I need the pulse to end without using a sleep command, since the program is very busy doing other...
by picandies
Wed Dec 12, 2018 12:14 am
Forum: Compute Module
Topic: strange i2c & VNC interaction
Replies: 3
Views: 751

Re: strange i2c & VNC interaction

I think this was a false alert...seems like activity on the rpi usb bus (wifi to PC) caused noise pickup on the i2c lines
by picandies
Tue Dec 11, 2018 11:46 pm
Forum: Compute Module
Topic: strange i2c & VNC interaction
Replies: 3
Views: 751

Re: strange i2c & VNC interaction

To clarify, using pins 28 & 29 (not sure whether the particular i2c matters), on the compute module
by picandies
Tue Dec 11, 2018 11:35 pm
Forum: Compute Module
Topic: strange i2c & VNC interaction
Replies: 3
Views: 751

strange i2c & VNC interaction

Using latest RPI3 Stretch, standard VNC & VNC Server on the windows PC Using the secondary I2C with smbus & to read some data on some chip, in a python3 script running in terminal window... bus.read_i2c_block_data ...seems to work ok , thousands of times over & over!!!!! Config the i2c as, follows.....
by picandies
Sat Dec 08, 2018 5:18 am
Forum: General discussion
Topic: need to force IO
Replies: 4
Views: 392

Re: need to force IO

danjperron--
Thank you so much...I'm going to give it a try...Need to get familiar with these 'pipes'
by picandies
Fri Dec 07, 2018 4:30 pm
Forum: General discussion
Topic: need to force IO
Replies: 4
Views: 392

Re: need to force IO

Do you have an example for suggestion "A" ...not sure about pipes Could program "B" simply "reset" all of the io settings (thereby stopping the pwm from "A")? How do you explain more about suggestion D (Two python applications could also use the processing library. It support shared memory from two ...
by picandies
Fri Dec 07, 2018 6:36 am
Forum: General discussion
Topic: need to force IO
Replies: 4
Views: 392

need to force IO

Using the rpi & RPi.GPIO in python. In program "A" I use GPIO.PWM to set up a PWM output pin, works great, the signal comes out fine A somewhat different & completely independent program "B" uses the same pin the same way (but different PWM settings). However, if program "A" is still running, the si...
by picandies
Sat Nov 24, 2018 2:12 am
Forum: General discussion
Topic: forum lookup gives junk
Replies: 3
Views: 482

forum lookup gives junk

Whenever I search the forum, the dates are all missing. I get 150 results & nothing has a date..then I pick one & it shows it was posted 6-7 years ago---NOT GOOD...How do I see the recent ones like last 1-3 years?? Picking the choice "last month" gives zero results, instead of 150. Why are no dates ...
by picandies
Mon Nov 19, 2018 5:52 pm
Forum: General discussion
Topic: Where's the pigpio tutorial?
Replies: 6
Views: 2344

Re: Where's the pigpio tutorial?

Yes everything is in Python. Not sure I follow you, is GPIOzero the same as pigpio, except in python? If they are not the same, what does one have to do with the other? Why use gpiozero instead of pigpio? what are the advantages/disadvantages? Is there a timing penalty?
by picandies
Mon Nov 19, 2018 8:39 am
Forum: General discussion
Topic: Where's the pigpio tutorial?
Replies: 6
Views: 2344

Where's the pigpio tutorial?

For the pigpio library, is there a solid tutorial (article, or step-by-step format) for getting things generally set up & working? I opened some of the code snips, but that's not so much an explanation & very few comments are within. The pigrpio site itself seems to have a vast array of commands & t...
by picandies
Sun Nov 18, 2018 4:12 pm
Forum: Python
Topic: Accessing IO in new class
Replies: 18
Views: 1635

Re: Accessing IO in new class

In the main code, I have a function that sets up the GPIO pins, states, and callbacks. This code, to setup GPIO, runs before any threading, class instantiations or, multiprocess are started. Exactly what I am looking for--how is it set up? How do the other classes access the set-up I/O? Please show...

Go to advanced search