Is there anyway to read data from an attachment through the USB port on an Android device? In particular, an EKG. Most the work can be done by the hardware of the device to simplify the output to a single number, a voltage reading. If its not possible, what about modifying an accessory that can already communicate with an android device? Thinking of devices that attach to android phones, what about sending the data as an audio signal to be read as the microphone from a headset and then analyzing the audio signal to convert it to a number that can be used to display a value.
Any ideas on how to make this work?
Related
Connecting Keyboard Like Devices via USB or Bluetooth To Mogul
I have searched through the posts here and in other forums and have not found a precise or complete answer to these questions. Any help would be appreciated. I'm not an expert. I did read one post about using the Mogul as a control device ( keyboard ) however a very useful application is to use the Mogul as a data collection device in the field, especially when end users may have devices all ready connecting to laptops/desktops via the USB and seen as ASCII output ( like a 101 keyboard ).
Does the Mogul have USB host capability through the connector? There seems to be conflicting opinions. If it does what is needed to turn on the capability?
This is the scenario I am trying create without having to rebuild or build new devices. A cost effective solution is the goal.
Assume the data collection devices I want to connect to the Mogul have a standard USB connector and wiring the same as a USB 101 type keyboard ( though the devices are not keyboards ) and the signals coming out of the connector are the same. The data stream is ASCII character stream. The USB devices are self powered so they do not need to draw the 5 volts from the Mogul.
The goal is to connect such a device to the Mogul directly via the USB connector so that it looks like a keyboard OR connect the device to an external Bluetooth transmitter that looks like a Bluetooth keyboard.
Off the self product would be preferable to having to black box the project.
It would seem simple considering there are USB Bluetooth transmitters at fairly low cost, but I have not been able to find one for this specific application. Hacking and existing Bluetooth keyboard might work but it would be a bulky solution, a considerable downside as well as expense for each of the devices.
I'm not a corporate Mogul, just a single employee end user who has specific data collection needs.
Thanks in advance
It was suggested in the Titan forum on another subject that this type of discussion would be more appropriate and fruitful in the developer area.
I have just enough knowledge and experience to be dangerous with a soldering iron and electronic parts.
Connecting Keyboard Like Devices via USB or Bluetooth To Mogul
I have searched through the posts here and in other forums and have not found a precise or complete answer to these questions. Any help would be appreciated. I'm not an expert. I did read one post about using the Mogul as a control device ( keyboard ) however a very useful application is to use the Mogul as a data collection device in the field, especially when end users may have devices all ready connecting to laptops/desktops via the USB and seen as ASCII output ( like a 101 keyboard ).
Does the Mogul have USB host capability through the connector? There seems to be conflicting opinions. If it does what is needed to turn on the capability?
This is the scenario I am trying create without having to rebuild or build new devices. A cost effective solution is the goal.
Assume the data collection devices I want to connect to the Mogul have a standard USB connector and wiring the same as a USB 101 type keyboard ( though the devices are not keyboards ) and the signals coming out of the connector are the same. The data stream is ASCII character stream. The USB devices are self powered so they do not need to draw the 5 volts from the Mogul.
The goal is to connect such a device to the Mogul directly via the USB connector so that it looks like a keyboard OR connect the device to an external Bluetooth transmitter that looks like a Bluetooth keyboard.
Off the self product would be preferable to having to black box the project.
It would seem simple considering there are USB Bluetooth transmitters at fairly low cost, but I have not been able to find one for this specific application. Hacking and existing Bluetooth keyboard might work but it would be a bulky solution, a considerable downside as well as expense for each of the devices.
I'm not a corporate Mogul, just a single employee company / end user who has specific data collection needs.
Thanks in advance
I wanted to know how to connect via USB to my cars audio system.
I used this tutorial: http://www.mobiletechworld.com/2010/11/18/use-your-windows-phone-7-device-as-a-portable-usb-drive/
I can now store and retrieve picture files from the phone but I still cannot play music files on my cars audio system. It seems as if the phone turns off this feature when my cars head unit tries to communicate with it via USB.
I also cannot connect via bluetooth.
I have read that some folks have been successful in implementing this feat. I really dont want to use the headphone jack because I cannot control the phones audio via my head unit. I guess I am looking to set it up legacy style like my previous phones eg iphone, nexus one, milestone etc.
Any advice would be greatly appreciated.
The portable USB 'trick' doesn't make the device a USB Mass Storage device. It's a client-side registry modification that only makes the device viewable in windows explorer (legacy mode). It's still running its communications over the proprietary MTPz zune-sync protocol. This is why after running the registry modification, you can't just plug your WP7 into another computer and have it pop up, and also why it requires the Zune software to be installed, and to sync up first for it to work.
This is also why it won't/can't work with your USB capable audio system. It has absolutely no ability to do Zune protocol sync (as far as I'm aware, Kenwood made a head unit that could, but I don't know if it works with WP7. I'd doubt it), and despite the misreporting of various sites, your WP7 is not magically now a mass storage device.
Bluetooth may or may not work. I don't know about A2DP support on either your car's head unit, or WP7, and it may be specific to the device/manufacturer as to whether this is present (I have no idea). If bluetooth doesn't work, you're pretty much **** out of luck.
Headphone jack is your best (only) option. I can't recall if the supplied headphone cable has inline media controls. If so, you could probably macguyver that into a line-in cable for your stereo and use the media controls on that. Ghetto, but workable.
wow, that really sucks.. I am liking this phone less and less...
Hi,
I am new to android hardware (have some experience with programming for Dalvik & NDK). I have an idea to use my old Android phone as a robot OS. However for that I'd need to connect more sensors to my device. I know this could be done over BT, but I am more thinking of wiring them to the OS. Is there anyone here that has any experience with that / know any link talking about that?
I am mostly thinking about connecting an array of microphones to the Android motherboard ...
Thanks in advance for your help...
Shahab.
shahab.fm said:
Hi,
I am new to android hardware (have some experience with programming for Dalvik & NDK). I have an idea to use my old Android phone as a robot OS. However for that I'd need to connect more sensors to my device. I know this could be done over BT, but I am more thinking of wiring them to the OS. Is there anyone here that has any experience with that / know any link talking about that?
I am mostly thinking about connecting an array of microphones to the Android motherboard ...
Thanks in advance for your help...
Shahab.
Click to expand...
Click to collapse
find a port that will accept it, and mod the OS to accept it and you should be fine
shahab.fm said:
I am mostly thinking about connecting an array of microphones to the Android motherboard ...
Click to expand...
Click to collapse
Depending on what you do with the audio from those microphones you're going to need support hardware (op-amps, etc.). I think you'd be better off using an intermediary device to interpret the audio and the send it to the Android device as serial data through the USB port. This can be done with an IOIO board, Arduino, etc.
I will try with IOIO to see how it goes
Hi,
I guess I would be trying IOIO in first attempt and see if I can find anything similar to IOIO but working with Bluetooth instead ...
Thanks for your help.
Bluetooth is definitely the simplest option to get going with.
If your phone and OS support USB host mode, then the other option is to use USB. I'm not sure what sound card support is like in Android, but if all else fails you could make your own USB device with an Arduino or similar to do the signal processing. Of course, then you might not need the phone...
If you have mad electronic and soldering skills you might also be able to hack into an I2C bus line. You'd then need to add some driver (maybe kernel support) for the device(s). But this would probably only work for sensors other than microphones (they're probably too high bandwidth for this method and probably don't use I2C anyhow).
I've dreamed of adding a flash LED to my phone in this way but been put off by the difficulty of the electronics and programming of it all and the fact I'd need to make an ugly case mod
This is way dirtier then just using Bluetooth or USB but I'd love to see someone try it
Looking at possibly purchasing an android head unit for my 2015 Chevy Cruze and would like to use my portable USB DAC to get a digital signal to my DSP.
Does anyone know if audio over USB is possible on any of these units?
Hi,
I can try to connect my old SteelSeries USB DAC that worked on other Android devices.
Tested, and DAC Controls work (Voli+/-, MUTE, MIC ON) which means that USB DAC is detected correctly, but unfortunately there is no settings for selecting it as output, but again I'm on Stock non root HA Firmware.
NOTE: I tested same DAC on Alcatel Idol 3 and as soon as I connected USB it switched output to DAC immediately so it works without a hinch.
Here is the device I tested on Amazon https://www.amazon.com/dp/B000WJ9K4G/ and some pics of device.
Is this supposed to be slapstick/humor?
You will need to elaborate your statement, so that I understand what you meant by it.
marchnz said:
Is this supposed to be slapstick/humor?
Click to expand...
Click to collapse
If you are referring to my question, it was legitimate. After doing more research I have found the audio is all being controlled by the MCU and not by the Android operating system.
I was hoping it would work similar to my current signal chain which is Samsung Galaxy S8+ > OTG Adapter > Muse Portable DAC > MiniDSP.
Then, answer: Maybe I found it as interesting thing to test especially as I was missing a lot of Low Level Audio Access on Android.
I tend to agree on your findings in Alcatel Developer settings I can clearly set Audio Source for USB (see attachment) and it is Automatically selected when I insert DAC.in OTG like as you pointed for your S8+
Investigating it further and connecting to various Devices I've found one very very strange that Support is directly connected to Kernel "sound support soundcore module" and ALSA, to clam that I've done something interesting and connected the card to my QNAP NAS USB port to see what happen and on my surprise I got Audio OUT on my NAS Music App showed additional option for Audio Source "Internal Sound Card" and it worked flawlessly. So question is what we are missing in PX5 Kernel to make that working.