Is there any possibility to connect with Raspberry PI 2 through the mobile network - raspberry-pi2

I am currently working on internet of things technology, in one of my scenarios I want to connect raspberry pi2 through the mobile network.
Please tell me is there any possibility to connect with raspberry pi2 through the mobile network.
Regards,
Pradeep

You can connect your Pi2 to a mobile network using either a USB 3G Dongle or a 3G Shield.
You will have to play around with the setup though to see how it works for you.
If you want to access your Pi2 from elsewhere while connected to a mobile network you will also need to setup dynamic ip resolution for your Pi if you do not have a fixed ip assigned by your mobile operator.
If, however you want to connect from a mobile device to your Pi2 which is located on a LAN, you will need to configure port forwarding on your router for the Pi2 to receive communication from the outside world. Once again, if your router does not have a fixed ip supplied by your ISP, you will need to setup a dynamic ip resolution (DDNS).
Hope this helps.

Related

The network is terribly slow between Hololens2 and PC using MR-WebRTC on the WAN

I want to set up a video chat between Hololens and PC using MR-WebRTC. I have a coTurn server configured to accept Stun/Turns. Everything is fine when I test on the LAN, but terrible on the WAN. The video captured by Hololens cards terribly in the PC when I test on the WAN. Transmitting a 331KB picture using MR-WebRTC on the WAN needs about 13s. I wonder how to figure out that if I have a successful NAT traversal and if NAT traversal is failed, MR-WebRTC would transmit data using a relay server or any other ways.
Hololens LocalVideo Webcam Source:
Capture format:manual
Width:1280
Height:720
Framerate:30
Environment:
Windows10
Hololens2
MixedReality-WebRTC2.0.2
Unity 2019.4.26fc1
Architecture:ARM

Raspberry Pi wifi LAN Server how to?

I want to run a Node web server on my Pi, and connect to it via the Pi's wifi. The idea is that I can access the server when I am in the middle of nowhere and just plug the Pi to a 5V output and login the server through my phone. I just want to setup the pi as a LAN network.
Through past research and tests I managed to turn my Pi into an access point but I lost the ability to SSH to it.
At the moment I have a Node server running a webpage and I am able to connect to it as the Pi is connected to a wifi router.
I am wondering if I just need to turn my Pi into an AP or if I need to do some port forwarding too.
My current setup is a RaspberryPi4 with Raspbian and running Node.
Edited -
Added "I just want to setup the pi as a LAN network."
In the raspberrypi.org documentation has all the information, in the AC I recommend using a wifi adapter, but you can use the pi interface.
https://www.raspberrypi.org/documentation/configuration/wireless/access-point-routed.md
you do not need to configure dhcp, as the site may be located on localhost 127.0.0.1
and recommend to access by phone
https://www.raspberrypi.org/documentation/remote-access/ssh/
if you have any problems in the configuration process put it here

Stream Raspberry Pi Camera to Internet

I've surfed the internet for quite a while now for my project but all I could find is projects where people stream the raspberry pi camera to local host. I would like to stream it to the internet and be able to view it from anywhere in the world. Any suggestion?
Use this tutorial to set up the camera: https://hackernoon.com/spy-your-pet-with-a-raspberry-pi-camera-server-e71bb74f79ea
Set stream_localhost off in /etc/motion/motion.conf
Forward the port 8081 on your router.
Get your IP: https://www.whatismyip.com/
Access the webcontrol through :8081
Attention: You need a static IP or dyndns!

Use IP camera with OPEN CV without internet connection (direct connection to pc)

I am sorry, this might not be the correct platform to ask this kind of question but I couldn't think of any other place .
I for one of my project I need to capture some video footage from an outdoor camera using open cv. Actually, its a part of a bigger project where another signal triggers the camera. Since the camera will be located outside, I am looking for weather proof night vision enabled USB cameras that I can easily control via OPENCV. However I cannot find any descent USB camera and most of the websites show IP cameras. My problem is that the installation will be at a site where there is no internet so I cannot use internet. Can anybody please suggest if and how these IP cameras can be connected to the PC and be controlled via OPEN CV or else suggest some websites where I can get descent outdoor USB IR cameras.
I have also tried the NOIR Raspi camera but the quality is not very good and I think the range will also not be very good. Moreover running OPEN CV on RpI is very slow even for simple video recording.
Please refer to that thread for how to use IP cameras with open CV. I didn't try it personally, but a simple google search got me that. http://answers.opencv.org/question/133/how-do-i-access-an-ip-camera/
To access an IP camera is very simple, you just need this line:
cv2.VideoCapture("rstp://ipaddress:port/blahbla")
Now, if you dont have internet the IP camera as the PI should be on the same network, you can have a wireless router with no internet.
If you dont have a wireless router you can create a hotspot on your PI so you can connect the Camera directly to the PI, alot of IP cameras support hotspot so you can connect your pi to them.

Wifi communication between Raspberry Pi 2 and BeagleBone Black

I have a raspi 2 with a WiFi dongle and is setup to act as an access point/router. I also have 2 BeagleBone Blacks that also have WiFi dongles and they are connected to the raspi's network as well as a 9 axis sensor (accelerometer, gyro, etc). But I am unsure on how to send data from one board to another. And it has to be wirelessly.
If your RPi2 is configured as an access point, it must be running dhcpd on it. You will have to configure BBB to connect to RPi's wifi network and make use of some server client program (Could be in any language) to exchange the data. It should not be very difficult if you know what you're doing. I suggest you to break things in part and conquer, like
If you're able to ping Rpi from BBB and vice versa to check your both wifi configuration.
Once done, how about taking TCP server client code from web and test it to exchange simple strings.
and so on...
Hope it helps.