hardware based data transfer - G1 Android Development

Hi!
I want to use my G1 to do some special measurements. For this purpose I've created a microcontroller board (Atmel ATmega8) that does that. Now I want to transfer the data the board collected to the Android phone.
Because of the high powerconsumption the G1 has while Bluetooth is on this isn't a real alternative for me - the measurements will last about 2 - 3 hours.
I'm not experienced concerning hardware access within Linux and Android but thought there might be a possibility to gain a kind of low level access to the USB port. I do neither need high bandwith nor real USB functionality - so might it be possible to create an own kind of bus using that interface? Do you have any other idea?
Thank you in advance!

If you use micro linux system, the ones that are like a usb port, a network jack and a vga connecter, you could script some adb commands and have it run every few seconds to upload the data, not an ideal solution. As far as I know the g1 doesn't support host mode. But if you have a micro linux computer in the middle, it could work.
Something like this
http://www.pcpro.co.uk/blogs/2008/08/27/a-real-space-oddity-arrives-at-pc-pro/
I'm sure there are other ways to do it, maybe check there how to make a serial port thread a few pages back in the dev section.

Related

External USB HDD

Hi, i have been reading about this, and i am getting conflicting information, and no real answer.
I have a 2.5" USB hard drive, and was wondering is there any way to plug this into the Magician, and then for the magician to see it as storage. I dont want to use it all the time, just when in the car, and plugged into the Car Stereo.
if its just a case of a lead convertion, then i think it would be simple, but if not.... hmmm.
So if anyone can help i'd be grateful
Thanks
Dahquim
This has been answered several times before, and should be possible to find by SEARCHING..
How ever, because I'm in a good mood, I shall answer..
Yes, it is THEORETICALLY possible.
To acheive this, you must gain USB host on your Magician.
This can be done in two ways: Backpack + CF card with host support or a SDIO card with host support.
This can be bought from several suppliers.
Then, it's the driver issue.
A USB disk should be usable on the WM200x OS, but I do not know the size limit.
It might be about 2GB or it could be lots more.
So in real life; NO you can't use a USB HDD with your Magician.
This MIGHT be possible with the new Universal, but we haven't got confirmation that it has USB host support yet.
---- Edit ----
You might be able to do it if you can get a device that has host support.
Kinda like those gadgets that connects digital cameras to HDDs..
It just occurred to me..
How ever, It might be hard to use the magician to controle the data flow..
You'll probably need two connections to the device.
One for telling the device what to send, and one to receive..
Maybe, but unlikely...
chack out this things:
http://www.semiconductors.philips.com/acrobat_download/applicationnotes/AN10034_2.pdf
..this is a pseudo-host controller for PDA but i don't know were can find such a thing...
http://www.semiconductors.philips.com/markets/connectivity/wired/usb/products/otg/overview/#what
http://www.heisei.com.tw/products/2_5-inch_otg_hdd_enclosure/
http://www.cooldrives.com/usbotgshcou2.html
The PXA27x processor inside the magician does support USB-on-the-go...
If you look at the USB connector in the magician, you will see that it is actually a MiniAB connector...
So, from the pure hardware point of view, the magician should actually be able to operate in host mode and, for example, control an external hard drive/pendrive, or even a keyboard...
The point is, that most likely, there's no usb-on-the-go driver provided with the operating system...
IMHO, I think it be a waste. These devices we have are not meant to host power hungry device like a 2.5' HDD. It be a waste to what our devices would be known as "mobile." I think better stick to SD technology but that is also another issue. As the cards get larger and larger, the more processing time and power is required to fetch data and back.
there could be a way ....
After reading this thread, I think there is a possible way of actually having certain types of storages connect to the xdaii. I've seen some bluetooth 40gb hardadrives that connect to the pc. They connect using two methods. The first method connects the harddrive as a wireless storage device and the other method connects the hard drive as a bluetooth network storage. Now as for the second method, it's actually supported in broadcom's and widcomm's pda drivers. So in theory, your device should detect the harddrive as a local computer on your bluetooth network. But now, the main question is, can the bluetooth data transfer speed be sufficient to allow mp3 playback without lagging and frame drops ?? Well that's one questions I'd sure like to know the answer for. Anyways, just liked to share this info with u, it could be useful to u or for others on this forum. Good luck.
can we use this thing for i-mate jam with sdio wi-fi card:
http://www.expansys.com/product.asp?code=119929&partner=register
http://www.hardavenue.com/reviews/asuswlhdd2.shtml

Mini USB hard drives and cell phones

I'm just wondering, is it possible to use a mini USB hard drive such as this one: http://accessories.us.dell.com/sna/...1&cs=19&c=us&l=en&dgc=SS&cid=25682&lid=585550
to extend a phone's memory?
My guess is that it wouldn't work since the hard drive is bus powered. It would probably take some sort of special formatting. But has anyone ever tried this?
Your phone doesn't have USB hosting capabilities. It has to way to run another USB device. I don't think that is ever going to be planned into the development road map of PPCs and Win Mobile.
Also I just don't see why you would want to tether your phone to an external hard drive especially with 8gb+ mini/micro SDs coming to market and the ability to download your desired files from the internet or a VPN on the fly.
What you may see is Wifi and Bluetooth storage devices being wirelessly connected to your phone. It might even be possible now -- can anyone link up with a Zune to their phone via wifi?
some have like flame and Athena
think the main problem is that usb host mean one
have to substain a 500mA output current at 5volt which mean 2.5watt
that would suck a normal phone dry pretty fast
SeanFromSoCal said:
Your phone doesn't have USB hosting capabilities. It has to way to run another USB device. I don't think that is ever going to be planned into the development road map of PPCs and Win Mobile.
Also I just don't see why you would want to tether your phone to an external hard drive especially with 8gb+ mini/micro SDs coming to market and the ability to download your desired files from the internet or a VPN on the fly.
What you may see is Wifi and Bluetooth storage devices being wirelessly connected to your phone. It might even be possible now -- can anyone link up with a Zune to their phone via wifi?
Click to expand...
Click to collapse
I guess that's a good point about an external hard drive not being needed. You could always run orb or a similar client which basically does the same as hooking up the hard drive. Well, thanks for clarifying anyway.

Send raw information to external port

Just wondering if it is possible to send raw information(1 0/on off, whatever) to say the audio port or the USB port. I would assume USB would be easier to code for, but the audio port would be preferred if possible. The obvious application of this would be for custom external peripherals which would be fun to mess with. If anyones got any info or a link to some docs that would help immensely.
Thanks.
Using Audio to communicate is entirely possible. It has been done for decades over telephone lines. http://en.wikipedia.org/wiki/Modulation
USB on the other hand is a bit problematic, there's no host support on most android devices (there exist hacks for some) so there's no real way of connecting a USB peripheral to the phone.
Your best shot would be bluetooth I believe. I'm not entirely sure but you should be able to set up a serial connection over bluetooth.
Fulkerson said:
Using Audio to communicate is entirely possible. It has been done for decades over telephone lines. http://en.wikipedia.org/wiki/Modulation
USB on the other hand is a bit problematic, there's no host support on most android devices (there exist hacks for some) so there's no real way of connecting a USB peripheral to the phone.
Your best shot would be bluetooth I believe. I'm not entirely sure but you should be able to set up a serial connection over bluetooth.
Click to expand...
Click to collapse
If Audio is possible then I think that would be the best bet. I just found this bag of IR LEDs laying around from when i was messing with wiimote hacks, so i thought hacking up a little light coming from some port on the device, i could make a remote app for it.
Found some good information for anyone else wanting to make use of the audio port.
http://perceptumvolo.blogspot.com/2010/01/demodulator-updated.html
Using audio is definitely very cool, but for real world use it is too intrusive. You can't listen to music at the same time and all notifications will screw things up. Bluetooth just works and was invented for this purpose.

[Q] Wired Remote/Control Panel?

I've got a question I have not been able to find a definitive answer to.
Everyday other day on a blog I read I am seeing someone has created a robot controlled via an application running on a iPhone/Android, using either Bluetooth or Wifi.
But my question is, can an android device function as a wired remote via the usb port?
Is there any IO class for the USB port that can be used to turn on various things and read back various sensor information given the propper platform?
Am I seeking USB Host mode or is that something else?
My goal is to have an android device running an application monitoring various sensors and controlling various other hardware devices with a nice touch screen interface if possible. Since the phone would be located with the control hardware using Bluetooth for this seems silly if I am able to use USB and a cable from the Android Device to the Control Hardware, essentially making the android device the brains.
thanks in advance guys!
Nobody has any feedback on this?

Comparing of Android Q/10 "Desktop Modes"

Hey there!
As many of you may have heard or even tried, there is a functional "Desktop Mode" built into Android 10 (as long as the phone vendor didn't deactivate this). This mode will, when manually activated in the developers options, act like an Desktop OS when connecting your phone to an external screen. (or without activating anything in case of e.g. Samsung DeX)
I'd like to use this Thread to gather some information about the implementations of "Desktop Mode" into the phones of different vendors, and hope you can support me with testing it out on your phones.
Things of interest are (IMHO, to be continued):
is the desktop mode working (and usable)
does the dpi setup change in the moment of connecting an external screen (or does everything look just awful big)?
(yes, I know there are apps/tools to change that)
which maximum resolution is possible?
how many screens are possible? (usually just one, ...but who knows)
do you just need an USB-C to HDMI/DP cable or a (special) docking station for connecting a screen? (if using a cable, Miracast/wireless is another option of course)
does the handset get a special 'role'/feature in desktop mode? (like Samsung devices becoming a trackpad)
are there any usage improvements implementated, e.g. like file drag'n'drop or dragging windows to the display sides to maximize them on half the screen (like in windows)
what's the connection speed of the USB-C port? (USB 2.0, USB 3.2 G1 (5 Gbps), USB 3.2 G2 (10 Gbps) or even faster!?)
is it possible to use USB mouse/keyboard or just Bluetooth, and how's the speed? (eg. does BT lag a lot?)
At the moment it seems like Samsung has the best implementation of this feature with their "DeX Mode", but i'd like to know about those things from other vendors also.
My dream is to be able to ditch my notebook/tablet/8in tab/subnotebook collection an use just one device in future. (everything else needed for 'bigger' or x86 tasks can be done on cloud instances already)
But for that purpose there needs to be more than just 'basic' OS UI without any useful features
Hope we can start a good collection here and answer also your questions regarding this topic(s).
Thank you, regards
Schwarzer Riese

Categories

Resources