raspberry pi captive portal - raspberry-pi

I am experimenting on a 1st gen Pi with some friends. We are building a simple website for a competition and were wondering if we could use the Pi as a captive portal in order to display our site immediately after a user connects.
http://sirlagz.net/2013/08/23/how-to-captive-portal-on-the-raspberry-pi/
I found this guide but it requires a wifi dongle for the RaspberryPi to act as an access point. My question is can I connect a router to the Pi and use that combo for our captive portal?
P.S. The site will be deployed on a local computer

You can.
You'll have to configure which interface to use as a Hotspot, in your hotspot config.
HotSpot config depends on the tool you use to provide HotSpot... I use hostapd on my Linux Mint machine.
(I find personnally the wifi dongle simplier/quicker to use).
Note : important to distinguish HotSpot notion from Captive notion.
Generally, one made a captive wifi hotspot.
But you can do non-captive Wifi, or captive Ethernet...
I personnally did the same (local website on server providing wifi captive hotspot. Wifi hostpot on linux (mint, based on ubuntu) and I made it captive with redirections). But I use the wifi card embedded. I have a rasp and I find wifidongle quite cool.

Related

Can I use ESP8266 with edgeSDK?

I've started testing edgeSDK in a prototype IOT environment.
The idea is to connect devices with sensors and other nodes (Raspberry Pi, ESP8266, macOS, etc.) and exchange data or messages between them on the edge, trying to avoid communicating through the cloud.
(I will be also "mirroring" this exchanges in an AWS central cloud environment, to establish some comparisons/evaluations).
At this point, I have edgeSDK running on macOS and the Raspberry Pi and would like to add ESP8266 into the mix.
My Question is:
Can I get ESP8266 to work with edgeSDK? I don't see it listed as a supported platform.
If yes, which OS? (I was thinking about Mongoose, keeping the JavaScript coding and follow the standard).
Any other comments/suggestions or similar references would be very welcome!
ESP8266 is a microcontroller, which edgeSDK does not support. However, you can run a RESTFul API client on ESP8266 to call a API served by a microservice hosted by edgeSDK on a Raspberry Pi for example.

How to emulate BACnet communication protocol on raspberry pi stacks

I am currently working on my senior design project. I have made the stack of raspberry pi's. I am just wondering on how to create a BACnet stack where each raspberry pi device is a unique device, with a unique device ID. Additionally, we plan to use a cisco switch to connect with other raspberry pi stacks. I understand that there is a bacpypes module, which is amazing but it is mainly for dealing with a bacnet device. In my scenario, I need to create a stack of raspberry pi's emulating the BACnet communication protocol.
It would be really helpful
Quickest way:
Compile Steve Karg's BACnet stack by following this: "How to build a FOSS BACnet Server based on Steve Karg’s SourceForge project" on the BITS blog.
Run the BACnet SErver sample executable on each of your Pis:
cd /demo/server
./bacserv
May I suggest trying BAC0, a python implementation of BACnet.
BAC0 is a high level wrapper around bacpypes. And when launched, becomes a BACnet device on any network.
https://github.com/ChristianTremblay/BAC0
https://bac0.readthedocs.io/en/latest/

My Internet interferes with external device

I am interfacing with some external hardware (can't disclose much details on hardware) and I am using Ethernet cable to talk to external hardware boards. I have windows 7 on my machine. In between the external hardware and my PC, I have a small ethernet hub that communicates with multiple circuit boards of my external hardware.
Also, in order to get internet connection on my PC, I am using a USB2Ethernet adapter which provides me the internet connectivity.
The problem I am having is that whenever PC is connected to internet, certain test that I run on the external hardware do not work. If I dicsonnect the internet cable, then my external hardware works fine and I can do my testing.
I have disabled the USB2Ethernet through device manager and (I get no internet) and tried to run the test and my hardware doesnt work.
Has anyone encounter a problem like this and if so, what would be an ideal solution? Any help would be greately appreciated.
Please feel free to contact for any other information related to the problem if I haven't explained it well.

Unable to detect wifi p2p group owner by legacy devices

I am trying to create a wifi direct p2p Group owner using wpa_supplicant and wpa_cli. Once the group is create with p2p_group_add, how can we connect legacy wifi devices to the GO? I see the GO in Android mobile search, however I am not able to detect/find GO in legacy laptop with just wifi support. May I know if any configurations need to be done for supporting legacy devices like security type etc. Please suggest.
An autonomous GO should be detected by any legacy wifi device - no special configuration is necessary. The GO should be beaconing and responding to any probe requests, both of which allow a legacy wifi system to detect it (it will just ignore the special P2P IE).
I just tried the same scenario and both my Android phone and my Windows 7 laptop could see the GO running on my Linux laptop.
As your Android phone can see the GO then it is obviously responding to probe requests, so the fact your Windows machine cannot see it is likely to be an issue with the specific netcard used (either in your wpa_supplicant machine, or your Windows machine).
Some further debugging may be necessary to find the root cause, for example using wireshark, and if possible either upgrading the wifi netcard driver on your Windows machine, or swapping it out with a different vendor.

How to sniff iphone network data

I have recently been having problems with my app and I need to view the data being sent to and from my iPhone. I have read about Paros and downloaded it, but I don't know what information I need to put into paros and my iPhone to make it work. I am running a normal windows 7 installation with no current proxy server and my ISP is telus with the fiber optics package. So what do I need to install and where do I find all of the information needed to read the data being sent over the network by my iPhone using paros?
I do this a lot. I do it with a MacBook, but I'm sure you can use a similar technique to do it from windows:
Connect your PC to a hard-wired ethernet to the outside world.
Set your PC up for internet sharing. (This is the big thing that will work differently between the Mac and PC). Set up to share your Hard-wired Connection with people from your WiFi Connection. Your computer will then become a wireless access point.
Connect your iPhone to use your PC as it's WiFi network
Download and run Wireshark (Open Source - Publicly available) on your PC. Wireshark will sniff and log the network traffic.
You can then obviously set up whatever rules your would like to limit your network trace to only your iPhone.
Like I said - I do this all the time with a MacBook and it's easy and powerful!