Go to advanced search

by supertp
Sat Jun 22, 2019 2:14 pm
Forum: Troubleshooting
Topic: Cannot connect to second WiFi network
Replies: 22
Views: 939

Re: Cannot connect to second WiFi network

Thank you all for your support and comments. I'll have a look into it and if I manage to reproduce the problem I'll let you know. I don't think it was problem of the AP as I could connect to it via another device, other than the RPI. Perhaps indeed the RPI may didn't like jameson being preferred by ...
by supertp
Sat Jun 22, 2019 1:01 pm
Forum: Troubleshooting
Topic: Cannot connect to second WiFi network
Replies: 22
Views: 939

Re: Cannot connect to second WiFi network

Hello. Issue resolved. I think that RPI has a bug or something... I renamed the AP from jameson2 to metaxa, changed the wpa conf file accordingly, and immediately after running a reconfigure using wpa_cli, the RPI became connected to metaxa. I also activated jameson and the connectivity is now possi...
by supertp
Sat Jun 22, 2019 11:28 am
Forum: Troubleshooting
Topic: Cannot connect to second WiFi network
Replies: 22
Views: 939

Re: Cannot connect to second WiFi network

It is very difficult to find the problem, I have noticed a few things: 1) The priority in wpa_supplicant has been set to give higher priority (2) to "jameson" as to "jameson2" (1). The higher the value the higher the priority. 2) The last conf file shows "priority=1" and "id_str="mobileAP" on the s...
by supertp
Sat Jun 22, 2019 9:47 am
Forum: Troubleshooting
Topic: Cannot connect to second WiFi network
Replies: 22
Views: 939

Re: Cannot connect to second WiFi network

What is the result when you enter the following command in wpa_cli ? list_networks please note that I am a bit busy over the next two hours, I may not be able to answer . network id / ssid / bssid / flags 0 jameson any [CURRENT] 1 jameson2 any I reenabled jameson cause I need the WiFi connectivity
by supertp
Sat Jun 22, 2019 9:02 am
Forum: Troubleshooting
Topic: Cannot connect to second WiFi network
Replies: 22
Views: 939

Re: Cannot connect to second WiFi network

To get usable information you have to remove every network (SSID) except jameson2 from wpa_supplicant.conf. Then run wpa_cli in interactive mode, do not enter any command, wait for messages to be displayed. wpa_cli -i wlan0 If nothing happens after about 3 minutes then enter the command (in wpa_cli...
by supertp
Sat Jun 22, 2019 8:07 am
Forum: Troubleshooting
Topic: Cannot connect to second WiFi network
Replies: 22
Views: 939

Re: Cannot connect to second WiFi network

- You are using root, why, is there a special reason ? - why did you not use "-i wlan0" with interactive wpa_cli, in your screenshot you are using the wrong interface (p2p-dev-wlan0). Root was just for testing where this could affect the connectivity. I forgot -i wlan0, sorry. See below: -i wlan0 w...
by supertp
Sat Jun 22, 2019 8:04 am
Forum: Troubleshooting
Topic: Cannot connect to second WiFi network
Replies: 22
Views: 939

Re: Cannot connect to second WiFi network

You have the country code in wpa_supplicant.conf twice. Not sure if that would mess anything up, but it's only needed once. Try removing the second entry near the bottom of the file. You also have, scan_ssid=1, which is only needed if you hide your SSID, and it's really pointless to do that. Hiding...
by supertp
Fri Jun 21, 2019 10:06 pm
Forum: Troubleshooting
Topic: Cannot connect to second WiFi network
Replies: 22
Views: 939

Re: Cannot connect to second WiFi network

In that case we need to see wpa_supplicant.conf addendum: we want see everything: os release, kernel version, etc. So, here is my conf file : ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=GR network={ ssid="jameson" scan_ssid=1 psk="876543210!" priority=2 id_str="d...
by supertp
Fri Jun 21, 2019 5:01 pm
Forum: Troubleshooting
Topic: Cannot connect to second WiFi network
Replies: 22
Views: 939

Re: Cannot connect to second WiFi network

What happens if you remove every SSID except Jameson2 ? What messages do you see ? Can you post these messages ? As I mentioned above, if I just have jameson2 configured in the conf file, it just won't connect. No messages in wpa_cli attempting to connect to jameson2. It just doesn't seem to like i...
by supertp
Fri Jun 21, 2019 2:54 pm
Forum: Troubleshooting
Topic: Cannot connect to second WiFi network
Replies: 22
Views: 939

Re: Cannot connect to second WiFi network

what do you see when you start wpa_cli in interactive mode ? wpa_cli -i wlan0 and wait a few minutes to see if there are any interesting events reported. That it does not even try to connect to Jameson2 although it connects to Jameson. I added all the required commands (add, enable, reconfigure). N...
by supertp
Fri Jun 21, 2019 12:09 pm
Forum: Troubleshooting
Topic: Cannot connect to second WiFi network
Replies: 22
Views: 939

Cannot connect to second WiFi network

I've setup my Rpi (Model 3B) to connect be able to connect to two different SSIDs. The 1st SSID (jameson) is provided by a DSL Router. The 2nd SSID (jameson2) is provided by a Samsung Mobile Phone (relatively old) working as a WiFi AP using a Cellular Data Connection. So the problem is that although...
by supertp
Fri Jun 14, 2019 11:31 am
Forum: Advanced users
Topic: RPI connectivity to internet via different interfaces and SSIDs
Replies: 5
Views: 274

Re: RPI connectivity to internet via different interfaces and SSIDs

I'm unclear about the concern. By default on Raspbian and I imagine other systems if both interfaces are connected to the same network, eth has priority over wifi. This is done via route metric. If the ethernet cable gets disconnected I don't recall exactly what Raspbian does, I assume it brings th...
by supertp
Fri Jun 14, 2019 9:52 am
Forum: Advanced users
Topic: RPI connectivity to internet via different interfaces and SSIDs
Replies: 5
Views: 274

Re: RPI connectivity to internet via different interfaces and SSIDs

The fact google.com or any other site is not responding only matters to the application, you'll need to switch configs yourself from your python program. I am not good (at all) at python but I know what the program has to do: get a hold of wpa_supplicant and steer it to connect to the alternate AP....
by supertp
Fri Jun 14, 2019 7:09 am
Forum: Advanced users
Topic: RPI connectivity to internet via different interfaces and SSIDs
Replies: 5
Views: 274

RPI connectivity to internet via different interfaces and SSIDs

I have developed an alarm system using an Rpi. For its connectivity to the internet it can be connected via the ethernet or via the WiFi NICs. The ethernet connectivity is provided via a DSL router. The WiFi can be provided via the same router1 (SSID1) but another SSID (SSID2) via another router2 is...
by supertp
Tue Dec 18, 2018 10:06 am
Forum: Automation, sensing and robotics
Topic: Connect 2 PIRs on a single input GPIO
Replies: 4
Views: 1092

Re: Connect 2 PIRs on a single input GPIO

Thanks a lot for your help! By making some tests (but without the Raspberry), i.e. using the PIRs and diodes as shown in the image above and also using pulldown resistors, by using a resistor of 10k, the voltage at the resistor (i.e. to reach the GPIO input) is around 2.45Volts, which being above 1....
by supertp
Mon Dec 17, 2018 6:59 pm
Forum: Automation, sensing and robotics
Topic: Connect 2 PIRs on a single input GPIO
Replies: 4
Views: 1092

Re: Connect 2 PIRs on a single input GPIO

That should work, but I'm not going to guarantee it without knowing more about the PIRs. For example, you say they give 3v3 when triggered, but I'd rather not take your word for it without seeing a data-sheet! Assuming everything else is ok, I personally would go for my own pull-down resistor rathe...
by supertp
Mon Dec 17, 2018 6:02 pm
Forum: Automation, sensing and robotics
Topic: Connect 2 PIRs on a single input GPIO
Replies: 4
Views: 1092

Connect 2 PIRs on a single input GPIO

Hello. I want to connect 2 PIR modules (the ones with the 5V Vcc that provide a 3V3 output when triggered). The GPIO should become High if any (OR) of the PIRs becomes triggered. Is there a way to do that without using e.g. an OR gate? I've come up with the attached 2xPIRs_diodes.png idea but I'm no...
by supertp
Wed Dec 12, 2018 12:10 pm
Forum: Automation, sensing and robotics
Topic: Use of Relay modules with Rpi
Replies: 4
Views: 287

Re: Use of Relay modules with Rpi

If you are going to use the gpio to drive the relay control circuit directly then using high trigger is the way to go, if you were to use low trigger then you would be using 5v to drive the control circuit and your gpio as a ground, for the 5v. I never advise people to do this as it could result in...
by supertp
Wed Dec 12, 2018 7:54 am
Forum: Automation, sensing and robotics
Topic: Use of Relay modules with Rpi
Replies: 4
Views: 287

Re: Use of Relay modules with Rpi

If you are going to try using a gpio high to switch the relays then you still need the Vcc to be 5v as this is the voltage the relay coil operates at. ( Assuming you have the 5v model and not the 12v model.) The 5v supply needs connecting to DC+ and DC- , the pi ground needs connecting to com and t...
by supertp
Tue Dec 11, 2018 8:25 pm
Forum: Automation, sensing and robotics
Topic: Use of Relay modules with Rpi
Replies: 4
Views: 287

Use of Relay modules with Rpi

Hello. I've just purchased this module : https://www.aliexpress.com/item/3-3V-5V-12V-24V-4-Channel-Relay-Module-High-and-low-Level-Trigger-Dual-Optocoupler/32880648815.html?spm=a2g0s.9042311.0.0.7e534c4d2werfa I would like to ask if it is safe (for the Rpi) and whether it is expected to work if : - ...
by supertp
Tue Jul 31, 2018 11:49 am
Forum: Advanced users
Topic: Using GPIO.add_event_detect in a threading class
Replies: 3
Views: 530

Re: Using GPIO.add_event_detect in a threading class

1. Does the script work and achieve what you want? 2. stop worrying. use top or similar to see the resources used. Thanks for your answer, but it does not satisfy me. :) The reason is that I am thinking of expanding the use of the specific pi to do other staff too. So it is of importance if I can s...
by supertp
Tue Jul 31, 2018 7:46 am
Forum: Advanced users
Topic: Using GPIO.add_event_detect in a threading class
Replies: 3
Views: 530

Using GPIO.add_event_detect in a threading class

Hello all. I' m relatively new into python and pi. I have built a home alarm system and I am using Pi3 to monitor the sensors (as well as to trigger the sirene using relays etc). I have a general question regarding the use of GPIO.add_event_detect and threading. Currently, for each Zone/sensor/input...
by supertp
Tue Apr 10, 2018 4:10 pm
Forum: General discussion
Topic: threads and GPIO monitoring
Replies: 0
Views: 380

threads and GPIO monitoring

Hello. I own a Pi 3 Model B. I use 5 gpios as inputs and I want to concurrently monitor those gpios. If I use 5 x GPIO.add_event_detect, one for each of these gpios, are all these event_detects going to run : a) under one common thread or b) are there 5 different threads going to be used/created? Al...

Go to advanced search