Go to advanced search

by morguslethe
Fri Nov 08, 2019 1:21 pm
Forum: Troubleshooting
Topic: WiFi data encryption AES and WAP2
Replies: 21
Views: 100988

Re: WiFi data encryption AES and WAP2

If you router encryption is set to AES then set the encryption on the RPi to CCMP . ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="myssid" psk="mypasskey" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP auth_alg=OPEN } LONG STORY SHORT: this should not be necessary...
by morguslethe
Thu Oct 15, 2015 6:13 pm
Forum: Troubleshooting
Topic: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.xx.xx+
Replies: 1436
Views: 1374690

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Hello Mr Engman, I really appreciate you running this thing. My question is, how exactly are drivers for different kernels made? The latest version of OSMC (Open Source Media Center, which can run on Raspberry Pi) has the kernel version of 4.2. When can I expect the drivers for 4.2 coming out? I dou...
by morguslethe
Mon Jun 15, 2015 10:37 pm
Forum: Python
Topic: Very strange behavior (time.strftime() kills main thread ??)
Replies: 30
Views: 3062

Re: Very strange behavior (time.strftime() kills main thread

Good news, it is a slow problem. And obviously each of the pins is handled the same way independent of the other pins. I usually try to handle problems like these with state machines. For your problem, the inputs are [0] or [1] and possibly you need some time events. For the pure academic implement...
by morguslethe
Mon Jun 15, 2015 6:46 pm
Forum: Python
Topic: Very strange behavior (time.strftime() kills main thread ??)
Replies: 30
Views: 3062

Re: Very strange behavior (time.strftime() kills main thread

It might help to flesh out how I THOUGHT this could be done: Set events for 20 pins. Trigger alarm on rising edge for every pin. (ideally, all 20 alarms can be triggered at the same time) When in "alarm", print something, then wait for another rising edge using wait_for_edge. when wait for edge come...
by morguslethe
Mon Jun 15, 2015 6:16 pm
Forum: Python
Topic: Very strange behavior (time.strftime() kills main thread ??)
Replies: 30
Views: 3062

Re: Very strange behavior (time.strftime() kills main thread

I'd use my pigpio Python module. However I'm not sure what you mean by "the pin will experience a switching signal". I've already installed your module, and made a simple callback program. I'm still trying to work with my old one, as I'm SO CLOSE but the program behaves weird when I try to trigger ...
by morguslethe
Mon Jun 15, 2015 5:20 pm
Forum: Python
Topic: Very strange behavior (time.strftime() kills main thread ??)
Replies: 30
Views: 3062

Re: Very strange behavior (time.strftime() kills main thread

I already wrote a long post, but I decided not to post it. Because it looks like there's something fundamental I don't get, I'll just go ahead and ask: For my project I have to: -constantly monitor 20 gpio pins for a rising edge. this can happen at any time, and I have to catch it. -once a pin is tr...
by morguslethe
Mon Jun 15, 2015 8:20 am
Forum: Python
Topic: Very strange behavior (time.strftime() kills main thread ??)
Replies: 30
Views: 3062

Re: Very strange behavior (time.strftime() kills main thread

My theory is that the problem is caused by repeated add_event_detect and remove_event_detect, so you have to trigger on GPIO.BOTH instead of keep changing. This seems to work. ... Thank you, your code really does work as expected, and throws no sneaky errors. I will use your code and try to modify ...
by morguslethe
Sun Jun 14, 2015 9:44 am
Forum: Python
Topic: Very strange behavior (time.strftime() kills main thread ??)
Replies: 30
Views: 3062

Re: Very strange behavior (time.strftime() kills main thread

Do you need to keep mucking about with the callback? Perhaps you could keep its state and do something along the following lines. Of course, there are probably many ways to do what I want to do. I tried it my way, and I don't see a real reason why it shouldn't be working. Are threaded callbacks jus...
by morguslethe
Sun Jun 14, 2015 8:47 am
Forum: Python
Topic: Very strange behavior (time.strftime() kills main thread ??)
Replies: 30
Views: 3062

Re: Very strange behavior (time.strftime() kills main thread

The bug is triggered well after the strftime(), on return from the second callback function I believe. So my guess would be that strftime() just affects Python's memory layout somewhat and the real problem is changing between the two callbacks. I do not think you will see the problem if you set up ...
by morguslethe
Fri Jun 12, 2015 10:36 am
Forum: Python
Topic: Very strange behavior (time.strftime() kills main thread ??)
Replies: 30
Views: 3062

Re: Very strange behavior (time.strftime() kills main thread

Sorry, I made a mistake writing the post. The code I'm executing has the correct syntax: print("Exit from stage two at "+time.strftime("%H:%M:%S %d/%m/%Y")+". Main thread should still be printing dots!") I will update the original post. Additional info: I've tried putting try: except: blocks which c...
by morguslethe
Thu Jun 11, 2015 9:44 pm
Forum: Python
Topic: Very strange behavior (time.strftime() kills main thread ??)
Replies: 30
Views: 3062

Very strange behavior (time.strftime() kills main thread ??)

This is my first python program, and I am experiencing very strange behavior. Long story short, my main thread dies for no reason. The culprit seems to be time.strftime(). I think I need expert help with my code. Here is how my program is supposed to run: -pin 17 in BCM numbering is set to IN and pu...

Go to advanced search