9ajpi
Posts: 3
Joined: Mon Apr 05, 2021 9:31 pm

Connect to the RPi via MQTT without a WiFi network

Mon Apr 05, 2021 9:39 pm

Hey, this is my first post on this forum!

I am currently making a system which utilises the rpi camera module, machine learning and computer vision techniques to detect driver fatigue. I have developed an iOS app which displays the fatigue level, with information received through the MQTT protocol, and it is working fine in my home, with the pi and phone both being connected to my WiFi network. I would like to be able to use this system outside of my home network, in my car.

I have done some research, but I am not entirely sure if I am correct. I am assuming that I need to transform the raspberry pi into a wireless access point, and for this I'd need something like this (WiFi dongle):
https://www.amazon.co.uk/ROTEK-1200Mbps ... 979&sr=8-4

Then once connecting this to the pi, via usb, following this guide:
https://thepi.io/how-to-use-your-raspbe ... ess-point/

Is there any additional things I might need, or a more appropriate guide? I just dont want to buy the adapter if its not necessary :D

Thanks for reading my post :)

9ajpi
Posts: 3
Joined: Mon Apr 05, 2021 9:31 pm

Re: Connect to the RPi via MQTT without a WiFi network

Mon Apr 05, 2021 9:43 pm

I made a mistake in the title! I meant to say without a wifi network that is connected to the internet.

MiscBits
Posts: 249
Joined: Wed Jan 27, 2021 12:48 pm

Re: Connect to the RPi via MQTT without a WiFi network

Mon Apr 05, 2021 10:08 pm

You can create a WiFi AP on a Pi using the on-board WiFi chips with no issue (though I would have thought Bluetooth was more 'normal' for these type of application).

I would use these notes as a starting point to get hostapd and dnsmasq running but ignore the routing to the Ethernet port (though that may be handy for testing depending on your local setup).

The Pi can also host the broker with no strain - I did a pilot on a Zero W using the USB OTG capability as the output and did not have any real issues.

I'm a little concerned by the app idea though - drivers have enough distraction without looking to see if they are drowsy... :-) Good luck though.
Is a computer language with goto's totally Wirth-less?

9ajpi
Posts: 3
Joined: Mon Apr 05, 2021 9:31 pm

Re: Connect to the RPi via MQTT without a WiFi network

Mon Apr 05, 2021 10:38 pm

Hi, thank you for your response :)

I will definitely check out those notes now, they are exactly what I am after!

Thanks again

(p.s. the primary aim is to wake up the driver if they fall asleep with an alarm :D, the visualisation of state is just a bonus! )

Return to “Networking and servers”