I am making a prototype for my final paper (Electronic technician) and the purpose is: A real-time car tracker using GPS and arduino UNO to this, and an android app (made in android studio with Kotlin) to connect the arduino and receive some data to help the user in case of accidents, robbery and theft. The main problem is, how can I connect the arduino GPS and the android app in long distances? With internet? For this, we thought about using the GSM800L module to this function, but we don't have any Idea to implement this two ideas together, we know Kotlin has some functions to GSM, however, we don't know how to use it in the code. If someone has the answer to this questions, I would really aprecciate it.
You need a mediation device.
Arduino GSM in the car
Android app
Server of some sort, with a database and connectivity to the internet
Arduino sends data over HTTP or even better using MQTT.
Android app read data from server or even better get notifications and update the screen.
Related
I would like to connect to my Xiaomi bluetooth thermometer, read it's data periodically and send it to some API endpoint over the network.
First solution that came to my mind was native mobile app development (Android OS) which would the job but requires quite some work and I am also unsure if it's possible to connect to this particular device. Another idea was to look for general purpose app designed for connecting to bluetooth device and reading it's data yet I did not find one on Google Play store.
Is there any way to share thermometer readings over the internet without spending money on arduino for instance or any other additional components? Maybe Xamarin is a way to go to speed up mobile app development for this purpose?
Hi new to the form always use it but never needed to ask anything, i just need advice on the following. thanks in advance!
Is it possible to connect a Bluetooth beacon to a visual studio c# application and use a android phone to send a message to the beacon where the application updates a database? many devices will be sending messages to the same beacon (my project idea). I know the android and messaging part will work but not sure if i can connect the beacon to the VS desktop c# app.
And this is the beacon i have been looking at, need something with a good range. (contacted manufacture about connecting it as they just show an app to configure. no reply lol)
https://accent-systems.com/product/ibks-105/
Open to suggestions.
Sorry, what you are describing won't work. Bluetooth beacons are essentially transmit-only devices. You can't send messages to them. All beacons do is transmit a unique identifier.
It's unclear what your project is trying to accomplish here, but you can use web services as an intermediary for mobile devices to communicate with a C# Desktop app. You can trigger this communication to happen when the mobile devices detect the bluetooth beacons.
I am using Android studio 2 and java, and i am writing an app that i need to be connected with a piece of hardware through wifi (parrot ar drone 2) and also "trigger" some events (takeoff land etc) through 3g network. I have made a simple app using parrot sdk that do some simple things to my drone successfully . I am facing now the challenge that these simple things i want to be driven through my server (i am thinking of websockets).
So my problem is :
If my device is connected through wifi to the drone, how could i also connect to the internet in order to get "triggered" to run some commands?
I was thinking that would be great if o could connect my android device to the drone and with some way be connected to internet.
After some research i have found that may be this functionality be available to android 6 BUT i have not found any example yet.
Generally i trying to find a solution (software or hardware).
I appreciate a lot any kind of help or suggestion about my problem.
Thx in advance
I don't think it is possible to connect to 2 W-Lan hotspots simultaneously with just one chip. Where did you find that information?
You can set up your Android device as a WiFi hotspot and have your drone connect to the internet via that.
At the same time your app can connect to the drone, assuming your drone has some sort of local server like connection your app connects to.
You can check this in practice quickly by setting up a Wifi hotspot, connecting your drone and then using a ping utility on the phone to make sure you can ping the drone successfully.
If you want to connect from a remote server to the drone then you are dependent on your network allowing inbound connections, which is often not the case. A common workaround is to use some form of mobile push notifications to send a message to your app asking it to contact a server on the internet, which will then tell it what action you want to perform on the drone. In others words:
send message to server on the internet somewhere to tell drone to take off
your server triggers a push notification to the app on the phone
the app contacts the server and asks 'what is the message for me'
the server responds to the app with the 'tell drone to take off' message
the app messages the drone to tell it to take off
I am working on a very small project, where I have to send a signal via usb to some kind of micro-controller board.
I am completely new to this, although have enough android experience, so just need answers to few questions for now:
1.) Is it correct that I will need some kind of Arduino kit to get even started ?
2.) Isn't there any way by which I can test this using day to day devices or simulator, rather than purchasing the kit itself ?
Please forgive if the question looks silly.
Thanks
Sure! you can communicate with your Android or any other languages like (C#, Java, Php, Python...) with Arduino or other micro controller by USB.
Arduino is very easy to start and you can send signal and perform
the required task.
As you code Android, check this you get clear idea.
Yah! Arduino emulator where you can check or
test. check here
Get to know about Arduino Here
Start with this program (Hello World of Arduino)
Hope it helps
You cannot send a signal out of the Android USB port. You will need to communicate with another device via bluetooth or WiFi, and have that device communicate via USB to the microcontroller.
If you want to avoid purchasing anything, you could write a small web service that runs on a computer hooked to your microcontroller. When your android app runs, it would communicate to that web server, which would in turn communicate with the microcontroller.
Then, when you are ready to purchase an intermediary device, if you design your code well, you'd be able to repurpose the code to communicate via that device instead of the web service.
I have a small project I am working on and one of the technical problems I am running into is finding a easy way to get one app on one android device to push data to another app on another android device via lan.
I do not want to have to resort to the push API or other similar solutions in case there is no Internet connection.
I was wondering if anyone had any suggestions for this.
Thanks.
You could definitely use Java Sockets. Open a ServerSocket on one device and connect to it using a socket on the other device. You can then send and receive whatever data you want.