Go to advanced search

by s-petersen
Thu Oct 03, 2019 3:44 pm
Forum: Python
Topic: (solved)Why is this running at 100% cpu?
Replies: 3
Views: 249

Re: Why is this running at 100% cpu?

That was it, Thanks! Thonny "recommended" that I change several indents, but that was not one of them. I see now what I did, and why it didn't work.
by s-petersen
Thu Oct 03, 2019 3:18 pm
Forum: Python
Topic: (solved)Why is this running at 100% cpu?
Replies: 3
Views: 249

(solved)Why is this running at 100% cpu?

I seem to be having a problem with the last sleep line not working, it is such a simple thing, but I can't see it . #!/usr/bin/python import RPi.GPIO as GPIO import time import os GPIO.setmode(GPIO.BCM) GPIO.setup(2, GPIO.IN) while True: if GPIO.input(2)==0: os.system("sudo pkill -f mplayer") print ...
by s-petersen
Thu Oct 03, 2019 2:44 pm
Forum: Python
Topic: Using a button to pkill mplayer (skip song) edge detection
Replies: 10
Views: 398

Re: Using a button to pkill mplayer (skip song) edge detection

I gave up on this direction, I used: #!/usr/bin/python import RPi.GPIO as GPIO import time import os GPIO.setmode(GPIO.BCM) GPIO.setup(2, GPIO.IN) while True: if GPIO.input(2)==0: os.system("sudo pkill -f mplayer") print ("song skipped") time.sleep(.5) else: time.sleep(.1) But it is using 100% cpu e...
by s-petersen
Thu Oct 03, 2019 2:01 am
Forum: Python
Topic: Using a button to pkill mplayer (skip song) edge detection
Replies: 10
Views: 398

Re: Using a button to pkill mplayer (skip song) edge detection

I tried this, but it doesn't ever see the button press, no errors running it. #!/usr/bin/python # edge detection for one button import RPi.GPIO as GPIO from time import sleep, time import os GPIO.setmode(GPIO.BCM) GPIO.setup(2, GPIO.IN) BUTTON_PRESS=(.5) while True: if GPIO.wait_for_edge(2,GPIO.FALL...
by s-petersen
Tue Oct 01, 2019 11:33 pm
Forum: Python
Topic: Using a button to pkill mplayer (skip song) edge detection
Replies: 10
Views: 398

Re: Using a button to pkill mplayer (skip song) edge detection

My phantom button pushes are happening more frequently after I installed the parts in the consolette Here is the program #!/usr/bin/python # edge detection for one button import RPi.GPIO as GPIO from time import sleep import os GPIO.setmode(GPIO.BCM) GPIO.setup(2, GPIO.IN) while True: if GPIO.wait_f...
by s-petersen
Sun Sep 29, 2019 12:14 am
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: (solved)Login to Pi Zero over wireless without network

The tough lessons are the ones best remembered, a comma here an underscore there AARGH! Thanks for your help as well.
by s-petersen
Fri Sep 27, 2019 5:54 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

Mark this one solved! PUTTY works fine also.
Thanks everyone for your patience , and help!
by s-petersen
Fri Sep 27, 2019 5:37 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

I found it I made a mistake in dhcpcd.conf static_ip_address=10.10.10.1/24 should be static ip_address=10.10.10.1/24 I can ping it from win7 now When I ran sudo systemctl status dnsmasq.service I got dnsmasq-dhcp[4596]: no address range available for DHCP request via wlan0 which led me to a post, wh...
by s-petersen
Fri Sep 27, 2019 4:50 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

I'll see if I can get another card and start over.
I really appreciate all of the time you spent trying to help me!
by s-petersen
Fri Sep 27, 2019 4:30 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

Sorry!, I thought that was what you meant. I removed all of the disconnected entries to shorten this post. Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\scott>ifconfig /all 'ifconfig' is not recognized as an internal or external command,...
by s-petersen
Fri Sep 27, 2019 4:11 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

I know what you are saying... Raspian is a pain to get simple things working, USB at boot was also a pain. also there are so many different"guides" out there having you do things you don't understand, not to mention every tine there is an "upgrade", something no longer works... (end of rant....) Reb...
by s-petersen
Fri Sep 27, 2019 3:42 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

That was my mistake(bad memory) I thought it was there, but it is removed now.
Yes I always reboot between changes to make sure I have clean reboot.
Is there a better tool that I can run?
by s-petersen
Fri Sep 27, 2019 3:21 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

I fixed those files, but still no luck. ifconfig on the pi dosen't say anything about 10.10.10.1 or anything in that range the first 2 lines are wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 169.254.120.150 netnask 255.255.0.0 broadcast 169.254.255.255 I need to find a guide on wha...
by s-petersen
Fri Sep 27, 2019 1:49 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

Strange... the loopback wasn't working earlier when the password wasn't being asked for. I will try your suggestions and get back. Thank You!
by s-petersen
Thu Sep 26, 2019 11:43 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

Successful ping from win7 machine(I didn't change anything) but I am not able to putty into it.This IP was from win7 network properties I also tried 10.10.10.1 (NG) IPV4 auto 169.254.42.226 subnet 255.255.0.0 ipv4 Dns server is blank ipv4 Dhcp server is blank C:\Users\scott>ping 169.254.42.226 Pingi...
by s-petersen
Thu Sep 26, 2019 10:49 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Login to Pi Zero over wireless without network

Here are my current files sorry for the long post, if there is anything else that would help, let me know. hostapd.conf interface=wlan0 driver=nl80211 ssid=jukebox hw_mode=g channel=6 wmm_enabled=0 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase=Jukebox! wpa_key_mgmt=WPA-PSK w...
by s-petersen
Thu Sep 26, 2019 9:58 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

10.10.10.1 is in the files.
I'll collect them and post .
by s-petersen
Thu Sep 26, 2019 7:38 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

That is the example I have been following. The ip address conflict problem suggested has been fixed, and I have now been able to connect properly with a password, but I tried pinging 192.168.1.1 which shows up under properties in the win7 connection properties ipv4 gateway and server which receive n...
by s-petersen
Thu Sep 26, 2019 7:03 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

The only problem is that I don't have a spare blank card, and I don't want to mess up what has taken me days to get working.
by s-petersen
Thu Sep 26, 2019 6:39 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

Yes I have, Let me fix the files, and post the missing one
by s-petersen
Thu Sep 26, 2019 6:14 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

Do my files

Code: Select all

/etc/dhcpcd.conf
/etc/hostapd/hostapd.conf
/etc/default/hostapd
/etc/dnsmasq.conf
look correct?
/etc/default/hostapd

Code: Select all

DAEMON_CONF="/etc/hostapd/hostapd.conf"
is the only active line
by s-petersen
Thu Sep 26, 2019 4:11 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

So what files do I need to change, or delete to have only the access point working?
(that was a typo posting, the file name is correct)
by s-petersen
Thu Sep 26, 2019 4:00 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

I am trying to just create a connection over wifi without a router to login to the pi,(with putty on Win7) with a name of jukebox broadcast and a password of "Jukebox!" I was following several guides to get this done, so likely there was likely some mixing. I have made many modifications to the syst...
by s-petersen
Thu Sep 26, 2019 3:17 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

Ok, long post, I hope someone sees my mistake now something changed From Windows IPV4 auto 169.254.42.226 subnet 255.255.0.0 ipv4 Dns server is blank ipv4 Dhcp server is blank interfaces # interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd...
by s-petersen
Thu Sep 26, 2019 1:45 pm
Forum: Beginners
Topic: (solved)Login to Pi Zero over wireless without network
Replies: 43
Views: 979

Re: Login to Pi Zero over wireless without network

I tried putty on 192.168.1.1, and it immediately disconnected, my settings should give me an address of 10.10.10.2 The pi should ask for a password before the windows machine connects.
I will get a copy of the configuration files and post tonight, maybe someone can see my mistake.SSH is enabled.

Go to advanced search