so how you can send the command from the android app to the arduino to click the picture
and receive it in the android app??
interface a camera module to the arduino gsm/gps tracker
Quote from: saurabh64 on Aug 26, 2013, 07:57 pminterface a camera module to the arduino gsm/gps tracker That interface strikes me as problematic.It isn't quite clear what you want to achieve (for example, are these still pictures, or videos?) but if you want to have something that works like a digital camera and have the pictures uploaded to somewhere that is accessible to your Android device, you might find that a conventional digital camera with a wireless SD card can do what you need. Alternatively, I remember reading about a GSM modem with an integral camera which could be commanded (by an Arduino) to capture an image and send it over a GSM network. If you could arrange for the captured image to be uploaded to some internet-based file sharing system, the Android device could presumably access it from there. The key thing about both options is that the Arduino never has to deal with the actual image data.
I'll give my 2 cents from basic network programming perspective.Assuming that you are using some ethernet shield with a TCP/IP stack...you are communicating at very high speed. This is not the same as your Serial communication speed. So if you have TCP/IP stack then any kind of inter-computer communication is theoretically possible. You are only limited to what libraries you can find.Using the TCP/IP stack library you can open up a "socket" on a port to listen to on the arduino. Anybody software program (including an Android App) who knows the Adruino IP address could open up the connection to that socket eg. 192.168.1.75:5 (for IP address of 75 and port 5 for example) to send/receive any kind of bytes. You can create your own proprietary protocol to communicate over this socket and interprete the bytes the way you want to. eg. First byte "P" means that you want to take a Picture etc.If you want to go more standardized approach then you can use the ftp server stack (will depende on the library available with your ethernet shield) will be better. Even better would be to run a mini web server (HTTP) that responds to your commands based on the URL eg. http://192.168.1.1:5/SendPic.htmlMy quick websearch revealed this link http://subethasoftware.com/2013/04/09/arduino-ethernet-and-multiple-socket-server-connections/for doing something like this. But once you know exactly your usage scenario then you can figure out how extensible of a protocol you want to use and search for examples of those.BTW, you are assuming that your other side of the problem is how to communicate with your camera from Adruino to click its shutter and how to access the storage of that camera (sd card?).
If you are using this GSM/GPRS shield:http://arduino.cc/en/Guide/ArduinoGSMShieldThen communication between the Arduino and GPRS is with SoftwareSerial, which has a maximum Arduino -> Shield baud rate of 115.2Kbps (you may need to lower that to 57.6Kbps for reliability, particularly for Shield -> Arduino). To transfer a 3 megapixel JPEG of about 500KB at 115.2Kbps, it would take 35 seconds (and of course at 57.6Kbps, over a minute). It may take a bit longer when you factor in reading the data off the SD card. Is that kind of delay acceptable for your application?
Quote from: tylernt on Aug 28, 2013, 05:18 pmIs that kind of delay acceptable for your application?Yes
Is that kind of delay acceptable for your application?
Basically this is my final year projectREAL-TIME VEHICLE TRACKING WITH ACCIDENT DETECTION
Quote from: saurabh64 on Aug 29, 2013, 05:39 amBasically this is my final year projectREAL-TIME VEHICLE TRACKING WITH ACCIDENT DETECTIONWell, why didn't you just say so from the beginning?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16