I need to sent my sensor data's to android device and i need to control actuators from my Android
Raspberry pi 3 have embedded wifi module, so you can easily connect it with android via bluetooth, wifi direct or wifi hotspot. If you have a older version of raspberry you have to connect it by lan cable and to write a service on raspberry which will receive the data from android client. Also you can use side services to sync the data between your phone and IOT device, for example you can use google drive or mail.
Related
Say I have a laptop (Windows 10) and an Android phone. The laptop does not have an internet connection and the Android does not have an internet connection.
I have an Xamarin app that uses a C# Web API that is deployed to the laptop (for testing). How can I connect the mobile to the laptop without any form of internet connection? I believe I have two options:
1) USB cable
2) Bluetooth
I believe I have to install a wireless hotspot on the laptop and then a reverse tethering on the Android.
Have I understood this correctly? Do I have to do this regardless of whether I use a USB cable or a Bluetooth connection.
Tethering is the name given to a mobile that acts as a hotspot. It make use of a network interface (Wifi, Bluetooth, USB port acting as Ethernet...) to share internet connection through the selected interface.
As you'll note I'm not incluiding mobile data in the list. Mobile data is used to connect to Internet. So your mobile is capable of connecting to internet via mobile data and share it via any other interface, i.e. Wifi, Bluetooth and USB (Ethernet)
At least in my mobile im able to just enable Tethering configuring it from Settings -> Wifi connections -> Share internet. Here I can switch on/off the desired interface: USB, bluetooth or Wifi. I can enable just one, both or even all of those
As far as I know a Xamarin app is an android app that embeddes a website and, optionaly but highly common, uses a server as an endpoint (your laptop in this case), also known as API.
So as you ask you don't want to have internet connectivity, all the connections must be made in a local network. To do so you could just enable tethering and turn off mobile data on your mobile. Then on your laptop, connect to your new network over wifi, enable ethernet or connect via bluetooth, depending on your choose.
Of course, you'll have to handle firewall on your laptop to ensure connections are made successfuly. But you should be able at last to ping each other.
I am building an SDK for a client to connect 2 android devices for exchanging data (strings, commands...) via various channels, such as Bluetooth, USB cable, WiFi.
One of the devices is a standard android phone, with a SIM card and data, thus able to access the internet. The other has no SIM card.
Currently using WiFi I am opening a HotSpot on the phone device, and so the non-SIM device can access the internet via the HotSpot.
Now my client wants me to connect via WiFi-Direct, too.
So my question is - once I connect the two devices via WiFi-Direct, will I be able to access the internet on the non-SIM device, using the SIM/data on the "normal" phone?
Thx
Well, Wi-Fi direct can create hotspot independent of the legacy Wi-Fi hotspot BUT this hotspot doesn't share internet and any request to external ip will be dropped.
But for android you can use NetShare app to do that, you can download it from
here.
it works as follows:
• in the client side NetShare use the vpn service to catch all internet traffic of the device and send them to NetShare in the server device and wait for the response.
• in the server side NetShare run a server with specific port to receive the internet packets sent from the client side in
previous step, it send these packets to the internet, after receiving the reponse from the internet it will send these responses to the NetShare in the client side which in turn provide it to the back to the client device.
for more details see the official website
There is a computer without any peripherals (keyboard, monitor, etc.) with Wi-Fi/Bluetooth interfaces (e.g. Raspberry Pi). I would like to find an open source solution to setup Wi-Fi connection on this computer remotely using some mobile application (as a part of this solution) through bluetooth connection.
Use case: someone wants to connect Raspberry Pi to home Wi-Fi network, he runs an application on his smartphone, connects to Raspberry Pi using Bluetooth and send Wi-Fi credentials to Raspberry Pi. Raspberry Pi receives Wi-Fi credentials and automatically connects to home Wi-Fi network.
Is there such solution ready to use? Maybe is there implemented bluetooth profile to do it? Please share any information. Thanks.
I want my Android and iOS (Swift to be specific) apps to connect to the Raspberry Pi in the network. Of course I can set a fix IP for the Pi and hardcode the IP to the apps, but I would like to know how to do it more dynamically.
What do I need to do on both sides to allow the apps to discover the Pi?
If you are connected over Wifi(Access Point) then you can discover devices using SSDP protocol.which does multicast at 1900 port and whoever has joined to particular group will receive and can respond back with information.It can be implemented both side App as well as Pi.
The requirement is to use android phone APP to write the data on the Raspberry PI device.
Connection between PI and android will be done using the USB cable.
Data can be written in the form of a file on the filesystem of PI or can be transmitted as a String to some process running on the PI. Later is preferable.
Has somebody done that or has pointers for me?
Thanks in advance
if you want to send any string from Android to PI over USB first read about the AOA(Android open accessory) Protocol. This protocol is used communication over USB.
for this type of implementation you have to use this permission into your manifest
More information about this go here
you can use the the MQTT protocol for send any string from Android smart phone to PI by using IP and Port no.