I've setup Raspberry Pi O/S on Oracle Virtual Box.
I want to know whether if its possible to stream an audio file using this emulated Raspberry Pi through a URL or current machine IP to an outside custom application. If so, please let me know how.
Related
I installed a PPP (Point to Point Protocol) in my Raspberry pi in order to connect with another Linux based card using serial port (with USB-RS422 cable). The PPP is well installed and configured, so from the raspberry pi I can ping the Linux card, my goal is to access the Linux card through the raspberry pi, I active the port forwarding in my raspberry pi also I added a route in my PC (Windows based).
For information, my PC is under my company network, the raspberry is under an IoT device network managed also by my company. Please have a look at the below diagram to well understood the situation.
enter image description here
My Question is : Do you have any idea to how can I access the based Linux
Card through the raspberry pi? Should I use nftables for that? if yes how? any other suggestions?
To clarify more, I changed the design, which means I connect my raspberry pi to my pc using ethernet cable and tried to ping the based card through the raspberry pi, it works well, means that I could ping the based card from my pc. Please have a look at the below picture:
enter image description here
I imagine the following setup:
A Raspberry Pi creates a local wifi network with a fixed ssid and pw
When connected to the network with any device and going to a set ip address, it opens a website served from the Raspberrys Node server. (Static would also be ok)
The served Website should be able to control Pin outs of the Raspberry, to control other circuits (GPIO).
What would be the right tech stack to do that and what hardware do I need?
Thanks!
This setup would work to drive the outputs of the Pi. You would need the Raspberry Pi, a Micro SD card (Assuming it is a modern Pi), A USB power plug and some way to connect the outputs. A few jumpers and a breadboard would do the trick but there are also breakout modules available,
You can then write your own software for the Pi or use something pre-made like, http://webiopi.trouch.com/
My senior project partner and I are trying to send data from a Raspberry Pi 4B to an Android Smartphone that is using Android Studio to make an app. The goal is to send multiple data readings from different sensors that are read in the python script in Raspberry Pi to an Android Smartphone. We have been having immense trouble with this and have looked off of many different posts to have nothing work. We have little to no experience with python and android studio. Any help would be appreciated.
Allow me to provide one possible solution. Since you are already using python in the raspberry pi to collect data from sensors, you could extend the script to relay that data to a HTTP REST api endpoint within the pi, using some HTTP microservice libraries like flask, bottle, etc. After this you need to open the communication between the raspberry pi and your phone which are connected via a USB cable. The simplest way of doing so would be to forward the port of your microservice using adb, like so
adb forward tcp:8080 tcp:8080
The above command needs to be run on the raspberry pi (after you setup up adb in it). The above command forwards the raspberry pi port 8080 to the android phones port 8080. Now the only thing you need to do is setup your app to periodically send HTTP requests to the local port 8080 and retrieve the information from raspberry pi. I do not have much experience with Android development so you have to research further on the viability of the app communicating with the forwarded port (permissions and security procedures to be bypassed), but this would be one of the simplest ways to setup communication involving an android device.
hey im trying to use a raspberry pi with opencv to prosses some images but while i am capturing the images from the webcam using the same values using windows on my pc and Ubuntu mate on the pi they look very different
linux capture
windows capture
does anyone know why there any difference
It looks like your usb webcam probably has a compatibility problem with the pi (or its drivers in Ubuntu mate).
Try googling the camera model and linux compatibility to see if there are any known tricks to do.
Googling "raspberry pi usb camera compatibility" gives you various lists of known compatible cameras.
In terms of performance (e.g. frame rate) a usb webcam is always worse than the raspberry pi camera attached to the camera serial interface.
To get that working in opencv, you can use this library:
RaspiCam: C++ API for using Raspberry camera with/without OpenCv
www.uco.es/investiga/grupos/ava/node/40
I am developing project on Raspberry Pi and I need to add feature of measuring heart rate. I want to use Smart Watch to do that but I do not know which smart watch provide environment which allows me to implement wireless communication between watch and Raspberry (Raspbian OS) easily. Thank you in advance for each answer.
I don't think any smart-watch allows direct connection between Raspberry Pi and smart-watch. It is not recommended on android developer site to open lower level sockets as well. You can send smart-watch's sensor data to Phone and then send it to Raspberry Pi.