Go to advanced search

by wanstreet
Sat Jun 15, 2019 10:33 am
Forum: Python
Topic: hci0 fails to initialise while scanning for bluetooth-LE in 3b+
Replies: 2
Views: 222

Re: hci0 fails to initialise while scanning for bluetooth-LE in 3b+

I am not sure if I understood correctly what I've read previously but I think some of those libraries takeover the hci interface so the safest is to stop system bluetooth service via something like '/etc/init/d/bluetooth stop' before using it. On the other hand if your library is written on top of ...
by wanstreet
Fri Jun 14, 2019 7:32 am
Forum: Python
Topic: hci0 fails to initialise while scanning for bluetooth-LE in 3b+
Replies: 2
Views: 222

hci0 fails to initialise while scanning for bluetooth-LE in 3b+

Hello , I am currently working on scanning of bluetooth - LE devices and printing them I am using bluepy library from github and it works fine. The thing is sometimes I am getting these errors regarding the initialisation of hci0 before trying to scan again. to make sure the device keeps running , i...
by wanstreet
Thu Jul 12, 2018 2:03 pm
Forum: Python
Topic: MQTT Python paho library for IoT
Replies: 39
Views: 12619

Re: MQTT Python paho library for IoT

What I was thinking is that , if I can have 2 ports , 1 for listening and 1 for replying, then I can reduce the overload on the 1883 and increase the message communication a little bit more. Are you sure communication needs speeding up? Have you actually done some testing? Not with bulk data, sorry...
by wanstreet
Thu Jul 12, 2018 7:58 am
Forum: Python
Topic: MQTT Python paho library for IoT
Replies: 39
Views: 12619

Re: MQTT Python paho library for IoT

I was looking around on how to increase the speed of mqtt communication and thought of maybe a single port communication be the issue. I don't think trying to aggregate ports is going to help (much) At the end of the day, MQTT is normally sent as TCP/IP packets with some overhead bytes to handle me...
by wanstreet
Wed Jul 11, 2018 8:12 am
Forum: Python
Topic: MQTT Python paho library for IoT
Replies: 39
Views: 12619

Re: MQTT Python paho library for IoT

OK. So we can update the config file for that. Create a new file /etc/mosquitto/conf.d/ws.conf port 1883 protocol mqtt listener 8883 protocol mqtt listener 9001 protocol websockets then grab a copy of https://github.com/jpmens/simple-mqtt-websocket-example/archive/master.zip and unzip it to /var/ww...
by wanstreet
Thu Jul 05, 2018 5:54 am
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

@wanstreet Thanks for the additional steps in the/etc/rc.local file. I made these changes and it resolved the client issues, I was able to connect to my Wireless AP, but the RPi AP wasn't broadcasting. I had a look at ifconfig and found uap0 had no IP Address. I issued the command; ip addr add 192....
by wanstreet
Thu Jul 05, 2018 5:52 am
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

SurferTim wrote:
Wed Jul 04, 2018 5:16 pm
wanstreet wrote: 2 different setups mean?
like separate setups for separate boards?
Yes. What works for a Zero W does not work with the RPi3 and vice versa.
aah, good to know,
thanks
by wanstreet
Thu Jul 05, 2018 5:51 am
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

@wanstreet Thanks for the additional steps in the/etc/rc.local file. I made these changes and it resolved the client issues, I was able to connect to my Wireless AP, but the RPi AP wasn't broadcasting. I had a look at ifconfig and found uap0 had no IP Address. I issued the command; ip addr add 192....
by wanstreet
Wed Jul 04, 2018 1:41 pm
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

I warned about the speed and reliability challenges in previous posts. I have gotten this to work recently on a RPi3B+ and a Zero W. They require two different setups though. Not sure why. Try this nohook addition. In /etc/dhcpcd.conf interface uap0 static ip_address=192.168.4.1/24 nohook wpa_suppl...
by wanstreet
Wed Jul 04, 2018 1:37 pm
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

@wanstreet, here is the output of the requested files; /etc/dhcpcd.conf <default file> interface uap0 static ip_address=192.168.4.1/24 ]/etc/dnsmasq.conf <default file> interface=lo,uap0 dhcp-range=192.168.4.20,192.168.4.100,255.255.255.0,12h FYI - I've just built a fresh SD Card and followed @Surf...
by wanstreet
Tue Jul 03, 2018 10:21 am
Forum: Networking and servers
Topic: Can nodejs modify raspberry pi files
Replies: 5
Views: 573

Re: Can nodejs modify raspberry pi files

Ok, understood.
thanks a lot guys
by wanstreet
Wed Jun 27, 2018 12:42 pm
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

do 1 thing, the reason for not getting the wlan0 ip address has something to do with the dhcpcd not starting up.
if its starting then its unable to recognise the wlan0 interface.
so, once ur raspi board comes online, please post the details of dhcpcd.conf and also run

Code: Select all

 sudo systemctl status dhcpcd 
by wanstreet
Wed Jun 27, 2018 12:26 pm
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

ok, lets be a little superstitious.
modify the file dnsmasq.conf
and change
interface=uap0
to
interface=lo,uap0

the rest seems fine.
I do need to see the dhcpcd.conf file
by wanstreet
Wed Jun 27, 2018 10:50 am
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

no no, that file will be untouched.
ok, no problem
by wanstreet
Wed Jun 27, 2018 10:13 am
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

also after following @SurferTim's steps, did u restart, the hostapd, dnsmasq and dhcpcd services
by wanstreet
Wed Jun 27, 2018 10:11 am
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

did u make any changes in the /etc/network/interfaces file? if so then also post it here.
or else remove the changes u made in that file.
by wanstreet
Wed Jun 27, 2018 10:08 am
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

it seems wlan0 is unable to get ip address from dhcpcd, the internal dhcp client
can you post the config details of dhcpcd.conf and dnsmasq.conf
by wanstreet
Tue Jun 26, 2018 2:33 pm
Forum: Networking and servers
Topic: Can nodejs modify raspberry pi files
Replies: 5
Views: 573

Re: Can nodejs modify raspberry pi files

if these changes can be done using nodejs, then thanks for the info. :D
by wanstreet
Tue Jun 26, 2018 2:32 pm
Forum: Networking and servers
Topic: Can nodejs modify raspberry pi files
Replies: 5
Views: 573

Re: Can nodejs modify raspberry pi files

so it can be done on nodejs.
not just hostapd.conf
but i think if i further proceed with the webserver task, then there might be a point where i have to change the wpa_supplicant file too.
by wanstreet
Tue Jun 26, 2018 12:39 pm
Forum: Networking and servers
Topic: Can nodejs modify raspberry pi files
Replies: 5
Views: 573

Can nodejs modify raspberry pi files

I am thinking of running an Access Point webserver using nodejs, the admin who will connect to the AP can login and change the AP ssid and password To do this I need to make the changes in the hostapd.conf file, which is a system file. So can I do this entire thing in nodejs? Sorry if the question s...
by wanstreet
Mon Jun 25, 2018 8:28 am
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

sora03 wrote:
Sat Jun 23, 2018 12:57 pm
so, does this work for 3B and 3B+, I'd like to know before buying one
yes it works, still needs sme testing as to how many devices can connect to it, which i dont know.
the connection is not stable.
by wanstreet
Fri Jun 22, 2018 12:21 pm
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

SurferTim wrote:
Fri Jun 22, 2018 11:07 am
the devices connected to the AP can access the internet but its kinda slow.
You were warned.
yup..
You're the man.. :geek: :geek:
by wanstreet
Fri Jun 22, 2018 6:18 am
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

it didnt work. I rebooted and then "no network interfaces" problem. so i removed the network/interfaces lines. then I made some small changes. in the dhcpcd.conf file. heres the img as to what i did https://imgur.com/a/RIcgwkw now after reboot, wlan0 is getting a proper ip address but uap0 is not g...
by wanstreet
Thu Jun 21, 2018 2:49 pm
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

well my work time is up.
post any suggestions i will follow them up tomorrow..
all hell the think tank!!!!!!!!!!!!!
by wanstreet
Thu Jun 21, 2018 2:47 pm
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 130217

Re: Pi 3 as wiireless client and wireless AP?

it didnt work. I rebooted and then "no network interfaces" problem. so i removed the network/interfaces lines. then I made some small changes. in the dhcpcd.conf file. heres the img as to what i did https://imgur.com/a/RIcgwkw now after reboot, wlan0 is getting a proper ip address but uap0 is not ge...

Go to advanced search