Remote monitoring system for CAPD - java

I know there are devices out there that monitors i.e. glucose of a CAPD patient. My question is do you know if I can read/access those data? I'm planning to create an Android app that read those data but I am hitting a wall as I dont know other devices.

You can read data off many medical devices, BUT the interfaces differ and the communication protocols also differ, AND not all devices support outside data collection. You will have to go device by device and write a device driver for each.
Kind of like you PC printer. Can they communicate with PC? Of course they can - but some connect over USB, some over PS2, some over LAN, some over Wifi, AND almost all of them require a device driver to 'talk'.

Related

Speed of forwarding ADB ports to send data from Android device to PC

I am looking for a very fast method of sending commands from my Android device to my computer.
There are 3 methods in question, Bluetooth, ADB w/ USB, and USB. A server socket connection is too slow for what I need.
All 3 seem to give me a headache when trying to implement them.
I know a straight USB connection would be faster than anything else, but I'm finding it especially difficult to implement.
Many users suggested using adb to communicate over USB.
The main method in question is using the ADB server/client implementation, where I would forward the ADB ports and use a socket connection to host a server on my Android device (Somehow the USB is involved).
More information is available here:
http://www.anothem.net/archives/2010/02/15/communicating-over-the-usb-cable/
Would this method be any faster than using a standard server/client socket connection (since there is a USB involved in this method).
I'm a little hazy about how this all works, since I don't think it's a very common request. If anyone could explain this method a bit more I would greatly appreciate it.
Thanks!
I made an application which I started with Bluetooth, after some testing I decided to go with normal TCP sockets with the WIFI interface. The application consists of one PC which handles up to 20 tablets for a commercial command entry in restaurants, discos, etc. Every time a tablet connects the server send about 100 small JPG pictures which represent the different items in the menu. It's done very fast, less than a couple of minutes, and in normal data entry I've seen no problems so far.
I don't know how fast you need it to be but WIFI sockets are as least as fast as USB (2.0) and Bluetooth. Also with sockets the tablet and the PC can be hundreds of meters away from each other, depends on your WIFI configuration which can be expanded easily. Other thing to consider is when the device goes to sleep, when it wakes up it may take some seconds before getting the WIFI up and running and, in some few strange cases you need to restart the socket connection.
Whichever you decide to use, all of this should be handled by a well define protocol of course.

Dart game Android app and Java server to keep sore

My question isn't necessarily on how to do this - rather I'd really like to know where to start. I've made a program in Java that keeps track of a dart game. I have a core DartGame class and classes for the different games that inherit it. From there it keeps track of players, who's turn it is, the current score, etc. It works great now what I want to do is make it into an Android app. I have a server program on my computer that would link the running apps. I don't want a global server that can be accessed anywhere because I don't want to spend the money on a VPN server, so the server program would just run on my PC. An example of a similar type of server would be like the one used for AndroMouse which allows you to control the cursor on a PC with an Android device.
What is the best way to make the connection from the device to the PC? I'm not sure if it uses a MAC address or the WIFI from my router, or even Bluetooth is an option. I'm not really familiar with Android but I assume there would be some sort of Server/ServerSocket connection, but that requires an IP address and I'm not sure which one to use. Is it as simple as using the local IP from my router? Like I said I'll learn how to do it on my own, I'd just like to know what I need to learn before I spend a bunch of money on Android books. Thanks in advance.
If your pc and your device are in the same LAN, just create socket to communicate through wifi connection. Otherwise, you should choose bluetooth I think. I think the
If they are not in the same LAN, then it is a little bit difficult. MAC address is meaningless unless in LAN.
AndroMouse also uses bluetooth connection.

Control a desktop application using an android phone

I want to build an application where an android phone would control a desktop application.
I only need to send coordinates from the phone to the desktop when user's finger is on the phone screen.
But I am kinda confused on the networking side if i should use bluetooth, usb, or wifi (intranet).
I did some research on bluetooth, doing bluetooth socket programming on an android phone shouldn't be a problem, but on the desktop side there are only a few free SDK/library. any suggestion on what to use?
If I were to use USB/cable, What API on the android side I need to use?
I am actually more familiar with general socket programming (wifi), but I think it's going to be slow (correct me if Im wrong) so this would be my last option.
PS: I am using Java for the desktop application too
any suggestions on what method to use? or even maybe I should use .net on the desktop side?
Thanks
You might find the open source RemoteDroid app to be useful in creating your app. It may even do everything that you want.
The source code is here. You may need an svn client like TortoiseSVN in order to download it.
Wifi is probably the most supportable.
Bluetooth requires hardware and drivers on the PC side
USB would ordinarily seem like the most sensible if the wire isn't a problem, but the catch is that it requires that the user enable "USB debugging" on the phone, and have either the android SDK or equivalent functionality to the adb forward command installed, plus a compatible USB driver for the phone. If all that were the case, you'd just forward a port from the PC to the phone and have a pc program connect to that port on the loopback interface which will be forwarded to a service running on the phone.
It's possible you could do something piggybacked on the USB tethering capability of more recent releases to get you a network-over-usb that you could use to connect programs on the PC and phone, but you'd need modified PC drivers so that you don't actually push the PC's internet traffic through the phone (unless you mean to tether as well).

Scan WiFi MAC addresses of mobile phones from java application

My application (not mobile application) needs to scan WiFi MAC addresses of mobile phones that are in my range.
For now I can only test it with my laptop. So I would like to connect my wireless card in laptop with my java application so application could scan for addresses. In near future, I will connect my application with different WiFi detector.
My WiFi card is Intel(R) PRO/Wireless 3945ABG Network Connection
Stackoverflow and google only shows results for android mobile development.
What API can you recommend?
This is tricky and maybe impossible, depending on precisely what you want - feel free to view this as a list of warnings or starting points, depending on how brave you feel :)
to obtain MAC addresses you need to capture raw packets, which isn't possible using pure Java; you'll need to use something like jNetPcap which wraps the (native) libpcap packet sniffing library
to determine whether a MAC address is likely to belong to a mobile phone, you'll need the list of Organizationally Unique Identifiers which links the first three bytes of a MAC address with the device manufacturer; mind that the OUI list might not be sufficient, since Apple (for instance) makes phones and other devices
to see all wireless traffic you'll need a driver that supports putting the wifi interface into monitor mode - these don't exist for all platforms/devices
the devices may not be sending any data...

how to connect to a peer computer on same network using blackberry

i want to develop an application for my Blackberry smart phone that scans the WIFI network on which i am currently connected and show me a list of connected hosts (PCs), i also want to browse the files shared on those machine (obviously only those whom i am allowed to see) & transfer them to my device from the remote machine or to remote machine from my device.
How it can be done, any guidelines?
Thanks for your time ;)
Since the Blackberry API does not have support for file sharing you are basically talking about writing a SMB or NFS client (depending on the flavour of the shared storage you want to access). Unless you've already done this kind of programming, you are probably better off to seek out an existing solution; the Blackberry API isn't the arena I would recommend learning advanced network programming in.

Categories

Resources