How can I send/receive data to/from my samsung s3 to a (medical) device via an arduino board (wifi + usb)? - usb

I am new to using arduino board. I will like to connect my samsung s3 to a medical device via a an ardunio board.
The first idea is to send/recieve data to/from the phone to the medica device via usb on an arduino board and the medical device recieve/send data from/to my phone via usb on the arduino board.
The second idea is send/recieve data to/from the phone to the medica device via WIFI on an arduino board via usb and the medical device recieve/send data from/to my phone via usb on the ardunio board.
Thanks for your proposed solutions.

All problems, including this one are best approached in increments. In this particular case, I assume you already have an arduino with a WiFi shield and a Samsung s3.
You don't mention the medical device or how it is programmed. But first, concentrate on how to get the Samsung to talk to your PC via wireless. In doing this you will learn a lot about how to write code for the Samsung and how to write code for a PC/Wireless connection. There are probably already sample applications that do this.
Next, identify how the arduino board will connected to the medical device and make the same connection from the arduino to your PC. Get this connection to work. I know there are many examples of how to do this.
Next, get the Samsung to talk just to the arduino board which maybe turns on an LED. Since you already learned how to code the Samsung to do wireless in the first step, then this step might be easy.
Next, connect the arduino to the PC and have the Arduino pass data back and forth between the PC and the Samsung.
After you have this "stack" of: Samsung <==> Arduino <==> PC working then consider what it would take to replace the PC with a medical device so that you have:
Samsung <==> Arduino <==> Medical Device
You can design your own series of incremental steps based on your more specific knowledge of the devices that you have. But the idea is the same, each step is something easy to do and easy to debug. But taking all the steps results in a complex system!
No one is able to do what you want on the first try (unless they have already developed the same or similar system). But everyone is capable of learning new material, if they are persistent.
Please keep me informed as you work on this, it is an interesting project!!

Related

Camera Remote API beta SDK: How to synchronize multiple DSC QX 100 cameras

Can we control multiple DSC-QX100 cameras using the Camera Remote API SDK from an iPad OS7?
The objective is to cause multiple cameras to "snap" picture at the exact same time. Perhaps each camera has an address (serial number)...can the software communicate with all cameras at the same time using multiple addresses? Need is limited to still photos and so-called fast, rapid photography. Video not necessary.
If so, how?
Unfortunately you can only control one QX100 lens at a time. This is because the lens connects over WiFi and you are limited to only a single WiFi connection at once on an iPad. It may be possible using a desktop PC with multiple wireless cards installed but that would be the only way.
As the Sony rep said, there's no way to do this with "officially supported" techniques.
The reason for this is that the camera acts as a WiFi Access Point (AP) - so while multiple devices can connect to it, most mobile devices can only connect to it and not anything else (since iOS and Android don't support connection to multiple APs simultaneously). This is also why you can't use other network interfaces when connected to the camera. (I don't know about iOS, but Android always prioritizes WiFi over cell network data, for example.)
Android devices have a feature called "WiFi Direct" that provides more flexibility in terms of peer-to-peer interconnection, but iOS does not support WFD. The QX100 DOES respond to WFD invites, and you can accept a pairing request with (if I remember correctly) a long-press of the shutter button. However, the official app only supports normal WiFi AP connections.
I have not yet attempted to see if using Sony's remote API in combination with the (unsupported but apparently present) WiFi Direct capability works.
More info on Wifi Direct and Android can be found at http://developer.android.com/guide/topics/connectivity/wifip2p.html
Marlin SONY, I disagree, wifi is Ethernet and by definition can handle multiple devices on the same network. If you run a phone or iPad as a hotspot and connect multiple devices, it works.
Multicam Switcher Basic is an example of a free app that supports cutting together multiple camera angles live. Unfortunately the app is still being developed so features like third party camera support isn't included, but it does show what is possible and awaits development.
I think this should be possible. Apps like CollabraCamâ„¢ (Multicam Social Video Production) or RecoLive MultiCam prove that is possible to use mulitple cams simultaneous.
I need someone too to develop an App to be able to use "two" sony dsc-qx for 3D shoots. Please, if You know how or who can do this contact me email#3-d.re

Why can a SD card be read/write by both the phone and a computer

Some phones carry a SD card and can read/write files on it. If the phone is connected to a computer and placed in mass storage mode, the computer can also read/write files on the SD card as if it's a USB drive. So my question is, how can the computer access a peripheral that belongs to another device (the phone)?
To my understanding, there should be a physical switch in the phone that routes the data buses of the SD card to either the bus of the phone or the micro-USB port? Then there's also a driver that controls this switch? If so, where's such driver (in Android OS or iOS for examples)? If not, what's the mechanism to share this SD card?
Note that I'm not talking about MTP, but the mass storage class. I know that the phone and computer may not be able to access the SD card simultaneously - probably one at a time, depending on the status of USB connection. I'm interested in the mechanism to control/switch the access/connection to the SD card from two hosts.
Comments: The similar mechanism may be found in a mp3 player: when it's plugged into the computer, we can add/remove musics. The mp3 player cannot play musics until it's unplugged from the computer - at least mine is like this. Android OS should do the same but I can't find the related source codes.
To my understanding, there should be a physical switch
No, the switch is in the software.
what's the mechanism to share this SD card?
A piece of the software does the umount of the sdcard and connects
it as a USB Mass storage device to the PC - like a card reader would do.
The Linux kernel itself contains a driver that works as a USB mass storage device, but I don't know whether Android actually uses this.

How can I use Bluetooth 4.0 LE to detect/measure proximity to a PC (Windows 8.1)?

I have a crazy dream that one day I'll be able to way into my rec room and my lighting system will turn on based on my proximity to the seating area. I've played with home automation (SmartThings most recently, the proximity sensor is unreliable and has no way to measure room area proximity), motion sensors, etc... but none of them actually do what I want, and that is detect if I'm in a room for real, not if I'm waving my arms in front of a sensor.
One idea I had was to measure the SNR between WIFI devices. I was thinking of playing around with some wifi survey tools and see what I can measure in my home. The problem I think will be sensitivity and range. Wifi's range is typically intended to try and cover a home, so if I go that route, I'm worried it'll be a waste as I'll only be able to measure when I arrive home, not if I'm in a specific room.
The other approach I'd like to try is Bluetooth 4.0 LE. The Bluetooth GATT specification includes a Proximity Profile, but the problem with profiles is it's something that a Bluetooth enabled device would share with another device it's peered to. e.g. You have a proximity sensor in your pocket and it shares proximity info with a PC or another device.
In my case I'm hoping to try using my iPhone as the marker, and my HTPC as the measuring system. The HTPC can continuously measure the RSSI or SNR of any paired Bluetooth devices without having to actually exchange profile data with the device.
I could do something like write a Windows app/service that registers or watches for a paired Bluetooth device to connect. (such as when I get home and my iPhone auto-pairs with my PC, just like when you get in your car and it pair with your stereo) From there it would measure the SNR as a source of distance information. If the SNR is high enough (least noise, strongest signal) it could automate doing something. I was thinking sending a HTTPS call to my Smartthings hub to turn on my lighting system.
When the SNR drops too low (lower signal strength), it would again send a call to turn off the lighting system.
This method could work with any device that bluetooth pairs. The concept would work with pretty much any platform, not just Windows. Like in a Raspberry Pi with Bluetooth.
Does anyone know if this is possible or am I crazy? I was going to grab the Visual Studio C# 2013 Express IDE when I get home and see what the Windows 8.1 APIs let me get access to.
Also, Bluetooth 4.0 LE should be nicer to use. I was hoping that a heavy, full Bluetooth connection wouldn't be needed as I simply want to detect the device within a small range. (25' of free air)
Thanks.

GPS modem that can send data to our server

We are planning for vehicle tracking system. We would like to relay on GPS Tracking System and view position report via Google Maps.
For hardware requirement we are thinking of GPS modem that can transmit data to our system.
Which GPD Modem is suitable for my project?
Use a smartphone. Haha.
On a more serious note, since it's for vehicular application only, there are a lot of companies that manufacture GPS modules (u-blox is one of them). Just google and you'll find thousands of companies manufacturing them. But before you choose a GPS module, make sure you check the regulations of your target country. If the module works on the Iridium satellite network, countries like India & China won't allow it as Iridium frequency is close to their military frequencies. In Europe you'll be better off with the Inmarsat network. So, do your homework & you should be good.
Also, if you're developing your own map interface, you might wanna ask the manufacturer if they have any existing mapping interface you can hook into or disable. You mag be charged for either.
All the best!
Are mobile networks (like GSM/GPRS/UMTS) available where you are?
if so check-out the tracking products from this site or this site (Google keywords: GPS GPRS)
If not, you should consider a custom solution, maybe someone like this company can help...
I have worked on a project that involved sending data over GSM/CDMA network. It used a simple GSM/CDMA modem connected to an embedded linux device and was a stationary piece of hardware. Attach a GPS device and it may very well be a tracking system. The problem is when the network drops or the device moves out of the network coverage area. I am not sure if there any GSM/CDMA modem available with GPS added to them as we didn't have this facility in our hardware and it was very much desirable. We needed to use a separate GPS device, mostly iPhone, separately to determine the lat long of our device.
You can use any GSM/GPRS modem equipped with GPS device. The modem will forward the GPS data to your central server through GPRS and at the server side you just need to process rcvd data and display it on google maps.

USB based video capture card with API

I am looking for a usb based video capture card (to be used with cctv analog cameras) which comes with an api. An api of sorts would help as I am planning to do some analytics on the video stream.
Any ideas on such a device?
What platform? Pretty much any capture card would work with DirectShow on Windows. On Linux, the usual API is V4L - the hardware compatibility list isn't as extensive on Linux, but most things do work with it.
The only capture boards I know of internal to a PC are PCI capture cards. A USB capture card would limit the data you could capture. For instance if you try to stream video to a USB drive you'll get error messages because USB is too slow. You're better off purchasing an encoder to do what you want. Retail for an analog encoder is as low as 300 dollars and it allows you to connect 4 analog cameras.