Basic introduction:
Me and a team of two other fellows are trying to develop a cool android application for a school assignment. We are focusing on Android v2.2+, and all have either a Droid Incredible or the Evo 4G.
The guts:
We'll be dealing with a few bits of hardware on the android side: the bluetooth radio, the camera, and the microphone.
The glory:
Our objective is that we're trying to use a phone's bluetooth connection and a computer's bluetooth connection to create a pairing of the two devices, and then have Windows recognize the phone as being an input microphone and video camera.
The question:
So far we have an android application that turns on the phone's bluetooth and initiates a camera preview. However, at this point we're kinda at a fork in the road... I have never dealt with anything like bluetooth before, and I've never programmed for android before.
I'm asking for some pointers and / or a focus point here. Unfortunately for our program already being so basic, we already aren't exactly sure of where to go from here. I typically find the android documentation to be way over elaborate with techspeak and under par with examples.
You can view all of our current code on our google code page: http://code.google.com/p/red-dragon/ (the name of our team is a bit of an inside joke )
Thanks a bunch guys!
Related
hi guys, i couldnt help noticing that when i previously used nokia 6600 (symbian s60) they had few 3rd party that is able to make use of their audio mechanism during callls. for example, one software can make selected background noise for opposite callers so they think that u are at a train station for example when infact u r silently at home. another software is an on board answering machine, which after the phone rang for a few times it answer the fonecall with your automated recorded voice and recorded a msg left by the caller on the fone. this is convenient for us so we dont need to call back our voicemail and reduce cost as well as some telco charge to use their voicemail service. im surprised these kind of software have not came out for our windows mobile device when its already available for symbian. im sure it shouldnt be that hard to make it. any coder expert wanna give it a go??
cutefox, what kind of searches have you made for this software on this board? Did you have much luck?
V
i already tried commercial such as handango and pocket gear.. even freeware sites also no luck.. jus dun understand why no 1 made one yet.. shouldnt b too hard to make one.. it will be a big market to sell such a software for our ppc phone device now that more devices is coming out..
Cutefox: have you tried searching this board? Let me save you the effort, but it'll be a good idea next time. It's not generally considered possible, at least on WM2003 devices because of both hardware and software limitations. It's not that no one has thought of it before: someone seems to think of it approximately every two days... but there are many many threads on this issue.
V
Look at what I said here...
http://forum.xda-developers.com/viewtopic.php?t=9761
That sums up why we can't do it using the api's available to us now. The funny thing is the way bluetooth sends the audio stream to a headset. Obviously the data is getting there somehow but I suspect it is not (directly) via windows. Dose anyone know if the radio hardware for bluetooth is connected to the radio hardware for the phone? My guess is that if you could write a program that windows "sees" as a headset then you could get the audio that way. But thats a problem in itself.
I would love this kind of program myself. How is it that such usefull devices with so many capeabilities can be kept secret from us. We can't use the camera, we can't get the cell id on towers, we can't programatically controll the partnerships in blutooth, we cant get the audio stream of our own phone, the events on some ppc's that control brightness are secret..... the list goes on. This kind of #@!!$$ is going to hurt the future of these devices which I otherwise love.
OdeeanRDeathshead: I had read your previous posts, and as ever, very interesting and informative reading. I had the same idea regarding a "dummy" bluetooth device a while back, but mamaich put me in my place!
http://forum.xda-developers.com/viewtopic.php?p=179839#179839
V
thanks vijay555, thats what I have suspected about the hardware. What I want to do is a bit different. The bluetooth can communicate to many devices at once. If your program could appear to be a headset to the os, then the phone bluetooth hardware could transmit the audio to the headset at the same time your program uses bluetooth to receive it. Kind of like a loop out of the box to bridge the lack of functionality. This shifts the problem to how dose a hardware bluetooth headset communicate. Emulate this and we are on a winner. I don't think I have the willingness to pull my devices appart. I also do not have the money for some of the hardware (eg good digital oscilliscope) that I would need to measure whats going on. I did read that microsoft are about to expose some new api to allow control over the pairing process (but not the audio stream). I hope that we get some soon.
Is there going to be any new (for 2005) free development tools like the evc versions used today?
OdeeanRDeathshead: re eVC, I don't think so. The "express editions" are free, but they specifically omit the functionality to develop "mobile solutions".
Re the loop back. That's a good idea. I think mamaich is our best bet on schematics, I think that would be very helpful. As you "rave", it's mindboggling that Microsoft still haven't revealed or implemented a way to interact with the audio channels. It must have been one of the first things one could imagine doing once you develop a PDA with a phone stuck on the back of it.
Any idea if the bluetooth stacks could support transmitting and receiving simultaneously in this manner? I know some of the boys are working on alternative bluetooth support for the stereo headset profiles, so they might be able to shed some light on the issues involved. I guess the processor overhead could be hefty, but for the benefit it would be beneficial.
V
I'm a Desktop .Net developer with NO bluetooth experience and only a bit of low-level networking experience so I'm speaking from limited knowledge, but not complete ignorance.
I use my phone as an A2DP source and AVRCP client for quite a few devices (Jabra JX20 Pura, Jabra BT3030, Windows Vista, various BT speaker systems) and Alpine BT300) around my house, garage, car, and on the go. They all work wonderfully (some have better range than others, some better sound), but using any of them presents a couple common issues.
Some devices (like my car), constantly seek out the last paired device until they connect, while most of the other require a connection to be initiated from the phone. The phone doesn't care which is around or has the best signal, just which one successfully connects first.
I'd like an app that could have profiles setup which would let me control certain variables OR at a more basic function (see below):
Bluetooth Profile
Device Priority
Minimum Strength (to be used when more than one device has the same priority)
That would be my ultimate goal, but in the meantime I'd be happy with something as simple as a command line app that could be bound to a key or shortcut which would try to connect to a predefined list of BT MACs for a given profile and stop when the first one connects successfully. Variations on this might allow a connection attempt to a specific device instead of a list. This way I could have StartMenu or Today shortcuts.
The point here is largely to have to avoid nagivigating all the menus needed to initiate an A2DP connection, but I'm sure there are MANY other uses people would find.
If someone could point me in the right direction (I'm researching already of course) to the namespace(s) and or class(es) in .Net 2 or newer which would allow me to enumerate and/or initiate connections, this may be something I could bring to the community (assuming it doesn't already exist, and I have asked MANY times).
I've created a poll also to see what kind of interest is out there for this software and how much support I might receive.
I've been knocking an app up to suit my own personal A2DP needs... and a lot of yours by the look of things ;-) Things it does:
Kinetic scrolling finger friendly list of A2DP devices known to your phone (tap to select then tap again to attempt connection).
Toolbar buttons indicating active A2DP connection status (tap to disconnect active connection).
Bluetooth devices applet shortcut.
Switch bluetooth on (a good few of my devices need the phone to be discoverable so the app forces the phone to be discoverable at all times *blush*).
Switch bluetooth off.
Shortcut to program launcher list (automatically displays this list when you initiate a connection to a selected device... and there's items to display in the list of course).
Command line access (via secondary exe) allowing you to attempt connection (to a named , the last connected or first found device) and disconnect an active A2DP connection. I've only really tested the named device connection but the other 2 modes *should* work
QVGA / VGA and orientation aware.
I've been wanting to work towards getting it up on XDA... but time constraints (and a baby on the way ) have gotten in the way and it's unlikely I'll have the time to do it for a good while. I'd be happy to pass on the code to someone willing to take it further if that's any use. It's written (very quickly!) in VB.net BTW.
It uses a few bits and bobs from other people though:
A2DPToggle's "a2dp.exe" to handle initiating a connection.
Icons from lord only knows where I found them.
The kinetic list code found on here (http://forum.xda-developers.com/showthread.php?t=333124&highlight=klist). IIRC, I used the gingercat updated version and tweaked it to my own needs. There's many a kludge I've put in to the code to get things working quick-smart (D-Pad navigation mainly).
InTheHand 32feet.NET libraries (http://inthehand.com/content/32feet.aspx). These work with MS Bluetooth stack only.
So permission from the respective folks above would be needed before releasing it into the wild I guess.
Here's a screeny
Hey great tool! When I click a device will it auto connect or only open the BT Explorer and will it work with Broadcom BT Stack? Thanks
Oops, meant to say it's been developed for the MS bluetooth stack only. Sorry about that.
When you attempt to connect to a device it first checks the device is reachable and only then attempts to initiate an A2DP connection.
Northernmost said:
I've been knocking an app up to suit my own personal A2DP needs... and a lot of yours by the look of things ;-) Things it does:
Click to expand...
Click to collapse
Absolutely. I can get around in VB.Net and C# just fine. If you don't want to publish the code publicly, PM me your email address and I'll invite you to my Sharepoint site (easiest way I know to share files and manage communique), otherwise attach here.
It sounds like you've already covered 99% of what I was looking for, but I'd be more than happy to do what I can to more the idea forward, even taking suggestions from others in this thread.
About the BT stack, I'm running a Vogue with a ROM cooked in PPCKitchen, how do I determine which stack I'm running and can that be changed?
rainabba said:
About the BT stack, I'm running a Vogue with a ROM cooked in PPCKitchen, how do I determine which stack I'm running and can that be changed?
Click to expand...
Click to collapse
I've no idea what stack Vogues come with but the MS stack device list looks like the attachment below. If yours looks the same it's the MS one. I guess the Vogue forum should have any info on swapping stacks if it's possible.
Sounds like I found the correct people to answer my question about BT. Is there a way / how can I: enable my Mogul 6800 phone to transmit the sound that would normally go through the speaker to my BT headset in order to listen to streaming audio from the net using Kinoma Play which goes out and picks up all sorts of "radio programs" , i.e. not using a direct URL. I am also not able to listen to audio files from the Audio Recorder through anything except the speaker, even not through a head phone. Do I need to download a program or set up my phone differently. I currently have Titan WM6.1 Build 20755 GPS kitchen from PPC Geeks. Thanks so much for your help.
jminor4326 said:
Sounds like I found the correct people to answer my question about BT. Is there a way / how can I: enable my Mogul 6800 phone to transmit the sound that would normally go through the speaker to my BT headset in order to listen to streaming audio from the net using Kinoma Play which goes out and picks up all sorts of "radio programs" , i.e. not using a direct URL. I am also not able to listen to audio files from the Audio Recorder through anything except the speaker, even not through a head phone. Do I need to download a program or set up my phone differently. I currently have Titan WM6.1 Build 20755 GPS kitchen from PPC Geeks. Thanks so much for your help.
Click to expand...
Click to collapse
You need an A2DP capable device (high quality), connected, THEN start your audio program OR use a program called Audio Gateway with a basic Bluetooth headset (low quality audio).
thank you very much.
Northernmost, how about that source code? If you want to pass it along less privately than a post here, PM me and I'll provide a solution (source control, WSS, etc.)
Sent you a PM the other day. Let's go the private way for now.
Guys,
I'm a complete hacking newbie but I was just googling a few bits and pieces and thought "Hey, I'll ask the XDA crew!"
Basically put my phone is paired with my car qand can do all the usual bluetoothy sorta things, however it cannot read out SMS's as it seems my device doesn't support the required protocol/profile (MAP - Message Access Profile).
I got to thinking how hard it would be to port from a working phone? Is it purely software based?
any smart beings out there with any info?
diggin' the love I'm getting on this subject - surely it annoys others?
Hello Guys
I am working on a small onboardcomputer for my motorcycle. It shall display some information about the engine and motorcycle in general.
First I planned on developping custom hardware with custom written firmware. The hardware base would have been an ATmega32 with a normal BLE SoC (Blue Nano, for whoever it knows)
However, today a friend brought the idea up if I wouldn't want to realize it on top of android wear, as an app for it.
Of course, this would have several advantages:
1) Other android wear apps would be available too, for example routing, or the remote control over music etc.
2) My "Board Computer" would simply be an app, what is easier to maintain than custom built firmware (think about flashing etc).
3) Solid Base
However, I coulnd't find any informations about running android wear on other hardware than you buy it with.
For example I looked if I can find a tutorial about how to run android wear on a Odroid C1 (which can run the normal Android) but coulnd't find any answers.
Why is that?
Regards
Kittenrainbow
It doesn't seem like wear is much more efficient than android. Also, as much as you can do without your phone, there is still a need to pair it with your phone....
What kind of bike do you have? Does it have any sort of OBD equivalent?
Hey
Sorry, it took me a long time to reply.
Well, there doesn't seem to be a way to install Android wear on custom hardware anyway, so the plan is dead (I don't want it to be a hack, there should be a official, reliable way to obtain the software).
Yes, the bike has an ODB-like BUS (it isn't "real" ODB, but some sort of it. I can read some parameters out of it, but normal ODB Libraries aren't compatible with it).
So, what I'd like to to with my boardcomputer is the following (less important things in brackets).
The computer should be paired with the phone over bluetooth, so the smartphone can stay in the pocket
Control the music player of the smartphone
Show a map with the actual position
(Show navigation data, so with routing and everything)
The idea to use android wear was because it supports some of this without big hacks.
And I don't want to reinvent the wheel
Regards
Kittenrianbow
Why not just use another phone? Maybe even a custom mount for your current phone.
I am pretty sure you can control an android device with another android device. You can defiantly pull internet from one android to another via wifi hotspot. You could have all your music on it as well. You can find a cheap waterproof phone and custom mount it with a little fiberglass. This mount would even be removable. Anyway PM me if you want to talk about this further. I can help find all the apps you need.
Hey Guys,
I just bought a brand new Kenworth W900, and it has android auto (or something mimicing it) built in... A panapacific dea600... the major problem is it super kludge... amongst being terribly locked down, i cannot connect to an ad hoc wifi thru my windows 10 laptop (that is tethered to my S6 with easy tether)... my tablet can connect to the ad hoc no problems, and my stereo can see the network but cannot connect to it for some reason (i REALLY need to update the trucks GPS maps, and have you tried to use a truck stops wifi? (like dial up))... id really just like access to the OS or another launcher so i can add some apps that i need (no not facebook or stuff like that) and perhaps root and rom it....
its running android 4.2.2... and i can get you the entirely too long software version
Its sad really because this could be cutting edge stuff, but someone higher up had to come up with ways to neuter this damn thing... and look i get that there are things i shouldnt have access to while driving, but it DOES have android web browser built in so its not like they dont want us using it...
i dont expect the world as this unit has only been shipping with trucks for a few months... and many of you may not have come across it... but perhaps it shares hardware with another system and panapacific just stole it (it HAS happened many times)
thanks guys and look forward to replies before i finish going insane
Nobody?
DEA600 - SmartDisplay for Automotive Infotainment
Hey,
I just came across your note while search for this product - I was the software architect/tech lead for the supplier company providing the Android port and the Freescale SOM component of the display screen on this product line - although moved on shirtly after the system went to mass production. - it is awesome to see someone here discuss it!
You are very correct on a lot of you assumptions and assessments. it was a very ambitious project that really tried to leverage as much of what Android was capable of at the time it was planned, but tuned to work as a smart display for commercial vehicles.
The display is only a part of a system of components. The display runs a port of Android 4.2.2 - but highly tailored to its environment - pairs with the Delphi radio unit (as a peer, not as an accessory) and is toghtly coupled to the unit in production. as a security measure.
unfortunately for what you are looking for, though much of the upgrade and app installation capabilities have been locked down to prevent side loading or execution of "unauthorized" apps that don't have special keys fro. the OEM or manufacturer. even if installed, the system manager will kill any apps that are launched without keys.
you may be able to get a developer key from the OEM but I don't know how they chose to mange that in the final system.
thanks for the posting, though - it was a small run comparatively for android systems but it was a pretty damn cool system with what we did get working....
I would be happy to discuss more if you want. - with what I can....
- Chris
DEA600
hi there
i have same head unit in my 389 pride and class peterbilt, for the map part, that you can update by connecting it to your phones internet, either wifi hot spot if not then just connect it with bluetooth and use bluetooth tethering of phone and PAN of your DEA600, but main problem in the system is that you cant put a single thing without pulling breaks, and u cant download a single file by any means, it just displays error that unfortunately process.android. stopped or browser has stopped or settings has stopped. if any one figured out how to download anythimg in this little thing. please update
hello there. I have T-680 with DEA600. I had exactly the same problem and ended up taking my truck to a dealer. it turned out to be defected radio. After it was replaced, it would connect to a hotspot no problem ( im using htc 10).
I have the same unit in my W 900. It is a huge disappointment in many ways. First of all just like any factory radio I have ever seen in a commercial truck the sound quality is horrible. Second I don't like the fact that it locks so many functions when I am driving. I have a passenger that rides with me most of the time that is perfectly capable of safely operating those functions while I drive. This makes the GPS almost useless for the way I like to use a GPS. Good thing I still have my Garman. But really my biggest disappointment is the fact that I cannot get the gauges to work properly. It states that I can choose from over 30 gauges to be displayed however I have been unable to find any way to change from the six default gauges that are there. I have read the manual but it does not explain how to open the menu that lets you choose which gauges are there. I don't know if my unit is defective like one of a red one of yours was or if it just hasn't come out in an update yet. Also if I am reading this right it looks like my display and gauges function are tied to the stereo which means if I replace the head unit I'm going to lose that function. Am I reading that correctly?
Hey guys so a friend of mine has the DEA601 in his new truck and drives him nuts that the passenger cannot control things when its going faster than 5km hour (his old Peterbuilt worked fine).
I'm a software eng and would like to find out how to disable the Distracted Driver feature (like you can do in settings on many other Android Auto ROM's like Honda). What are my options here? a) Make a whole new ROM (but how to do that?) b) try to hexedit the existing ROM and find where the 5 km value is and modify it c) add an add-on app somehow to override this limit or d) other???
Any ideas would be greatly appreciated.
Ckrobin said:
I have the same unit in my W 900. It is a huge disappointment in many ways. First of all just like any factory radio I have ever seen in a commercial truck the sound quality is horrible. Second I don't like the fact that it locks so many functions when I am driving. I have a passenger that rides with me most of the time that is perfectly capable of safely operating those functions while I drive. This makes the GPS almost useless for the way I like to use a GPS. Good thing I still have my Garman. But really my biggest disappointment is the fact that I cannot get the gauges to work properly. It states that I can choose from over 30 gauges to be displayed however I have been unable to find any way to change from the six default gauges that are there. I have read the manual but it does not explain how to open the menu that lets you choose which gauges are there. I don't know if my unit is defective like one of a red one of yours was or if it just hasn't come out in an update yet. Also if I am reading this right it looks like my display and gauges function are tied to the stereo which means if I replace the head unit I'm going to lose that function. Am I reading that correctly?
Click to expand...
Click to collapse
I found out in order for the guages to work I need an $800 module my truck didn't come with. Now my biggest problem is the technology seems to have stagnated. The software on my phone and tablet are no longer very comparable with Android 4.2. I try my iPhone and my Android tablet and neither will play Pandora consistently. I am forced to use Bluetooth which looses sound quality on an already low quality stereo. I really wish Kenworth had spent their R &D on making their trucks compatible with idatalink like most aftermarket stereos use.
At this point I am torn between installing a hideaway marine stereo with a remote display and leaving this POS Pans Pacrapic as a display with nono sound. Or installing a line converter and amp and dealing with this clunky software. I wish someone would make a rom to upgrade this thing.
Looks like the Mfg won this round
Looks like the Mfg won this round
I'm driving one of these trucks also and I keep checking this post but I guess we havent incentivized anyone who cud help yet!
The electrical switch must be located behind the air brakes control knob. I'm sure if you pull the stereo out you will find the wires that control the disabling feature. The unit tries to "update" when connected to wifi. Maybe someone can use wireshark and grab the update packet and modify it with root installed. I'm ok with trying anything short of taking the unit apart and Jtag the firmware directly. Would love to see one taken apart.
sunny530 said:
The electrical switch must be located behind the air brakes control knob. I'm sure if you pull the stereo out you will find the wires that control the disabling feature. The unit tries to "update" when connected to wifi. Maybe someone can use wireshark and grab the update packet and modify it with root installed. I'm ok with trying anything short of taking the unit apart and Jtag the firmware directly. Would love to see one taken apart.
Click to expand...
Click to collapse
This is a 2+ year old thread being g responded to.
What is your point? 2years later and still no solution to the problem. I ran across this thread of people discussing the same problems I'm having with the radio unit. If you got something usefull to add to this discussion then please feel free otherwise you don't need to acknowledge when what was posted that helps me null with my problem.
Anyone here figure anything out?
still nothing
Hello! So I have little tech experience but I am willing to work with someone here to sort this out. Got a 17 w900 that I put a aftermarket double din in and retained smart nav for the gauges. What I did find was the screen (not the radio) gets a input from the wire harness off the ecm to give data to the screen. So I’ll attach a picture of the plug and maybe we can use this plus find it’s female counterpart then get the other end to plug into a maestro box? My Sony doesn’t have maestro. I do have a pioneer that does but can’t justify the cost being the Guinea pig. I’ve already been one of the first to get the tilt column to drop LOW and managed to fit a true 7” double din where the stupid nav was.