How to use IR blaster in code - One (M7) Q&A, Help & Troubleshooting

I want to write my own android app utilizing the HTC One's IR blaster. Does anyone know where I can find some documentation on how to use it and maybe some examples? If somebody is really keen to help even more I want to write an app which will make the HTC One function as a 'TV-B-Gone'. It pretty much just goes through all of the TV Off codes. The lists of codes are not hard to find on the internet so it should take 10 minutes if you know what you are doing.

Related

Games for HTC Diamond

Hi,
Anybody know where to find games for HTC Diamond which use the G-sensor?
/Jesper
Unless someone makes some games specifically for the diamond, I don’t see that happening, which is a shame.
If only there was a standard for this in windows mobile it would be much easier to write a game that supported a generic API. I guess that’s another thing we might have to look forward to in WM7.

[Q] FM + TV on AOSP?

Hi everybody,
I like the FM and TV apps. They replace two rather clunky devices. I also like ROMs like PAC, AOKP and CM. None of which have the former.
Is there a (preferably free) way to get TV and FM on AOSP roms? Or is there something like closed source drivers preventing this?
I tried Spirit FM, it didn't work.
Thanks,
sauprankul
I don't think the FM radio app works on aosp. I do know that tunein radio works. Its an FM radio but runs through the network connection. Its not exactly what you were looking for but it may help.
p3tr0s said:
I don't think the FM radio app works on aosp. I do know that tunein radio works. Its an FM radio but runs through the network connection. Its not exactly what you were looking for but it may help.
Click to expand...
Click to collapse
I know that the app doesn't work, but I was hoping for a mod or app that would replace it.
Tunein isn't as clear and Sprint doesn't have very good coverage around here (yet, they say).
Oh well.
Might work for FM radio http://forum.xda-developers.com/showthread.php?p=13379669
Sent from my HTCONE using Tapatalk 4 Beta
for the tv i think peel should work
Outside of Asia and a prototype or 2, there are no "over the air" TV chips in Android devices, AFAICT.
A few people have reported my FM app works OK on HTC One. And at least one said it didn't work. AFAIK, my app Spirit is the only non stock app that will work (for "real" over the air FM), and I've heard no indication that will change anytime soon.
The Sprint HTC One has a stock FM app, right ?
I will likely buy and officially support the HTC One within a few months.
mikereidis said:
Outside of Asia and a prototype or 2, there are no "over the air" TV chips in Android devices, AFAICT.
A few people have reported my FM app works OK on HTC One. And at least one said it didn't work. AFAIK, my app Spirit is the only non stock app that will work (for "real" over the air FM), and I've heard no indication that will change anytime soon.
The Sprint HTC One has a stock FM app, right ?
I will likely buy and officially support the HTC One within a few months.
Click to expand...
Click to collapse
I don't think the OP was referring to an "over-the-air" TV app, but rather the TV app on stock HTC ONEs that basically turn your phone into a remote.
tkoreaper said:
I don't think the OP was referring to an "over-the-air" TV app, but rather the TV app on stock HTC ONEs that basically turn your phone into a remote.
Click to expand...
Click to collapse
OP can clarify but when he says "...way to get TV..." it certainly sounds like he's asking for an OTA TV type app.
For TV etc. remote control, there ARE several apps on Play, and I think at least one of them works with the HTC One specific IR blaster hardware.
Oops, my bad.
I meant the app named TV, which allows me to use the IR blaster. I looked it up on the play store, only got apps that used network, links?
And I thought I had posted this a while back, but I get no audio from Spirit FM. (I'll try it again?) EDIT: Yeah, no audio... Am I supposed to let it scan networks or wait for it to tune or something?
mikereidis said:
OP can clarify but when he says "...way to get TV..." it certainly sounds like he's asking for an OTA TV type app.
For TV etc. remote control, there ARE several apps on Play, and I think at least one of them works with the HTC One specific IR blaster hardware.
Click to expand...
Click to collapse
I don't think the hardware is the problem, but rather the lack of IR support in AOSP.
sauprankul said:
Oops, my bad.
I meant the app named TV, which allows me to use the IR blaster. I looked it up on the play store, only got apps that used network, links?
Click to expand...
Click to collapse
Here's one of the IR apps on Play (more if you follow "Users who viewed this also viewed") : https://play.google.com/store/apps/details?id=com.microcontrollerbg.irdroid
App description says "Uses and needs external Irdroid module" and indicates it's a port of LIRC.
IR ports and their drivers are relatively simple, compared to audio, graphics, FM, etc.
So I'll bet that somebody will find/build an HTC One AOSP IR solution in the next 3-6 months. I've briefly considered it myself, but there are enough apps out there already IMO for when drivers become available.
BTW, I got the app link from this good thread about things missing from the coming Nexus Experience version: http://www.androidpolice.com/2013/0...tc-camera-features-and-no-beats-audio-switch/
My impression right now is that HTC One sales are doing better than many of us expected. The Nexus Experience thing has convinced me that I'll be getting one soon. And Samsung GS4 sales seem lower than expected. I think HTC One is "stealing" some GS4 sales.
My point is that I think HTC One XDA/custom ROM and apps development will do well, and solutions for IR and some other Sense related features will be found.
sauprankul said:
And I thought I had posted this a while back, but I get no audio from Spirit FM. (I'll try it again?) EDIT: Yeah, no audio... Am I supposed to let it scan networks or wait for it to tune or something?
Click to expand...
Click to collapse
AOSP based ROM ?
I've had a few HTC One success reports, but I think on stock ROM where the "HTC" Audio-> Method setting talks to the HTC proprietary audio stuff.
Send me a debug log with Menu-> Test-> Email-> Logs . After 20 seconds or so press Send.
There may be some simple ALSA controls to set to enable FM audio. But often I have to get a phone in my hands and spend some time on it before learning the FM audio enable secrets.
If this phone were using the Qualcomm WCN3660 FM/combo chips, like the Qualcomm reference designs used in One X LTE, One S and similar devices, then the "HTC OneS/X LTE ALSA" Audio-> Method would work, as well as "Digital OneXL/S".
AFAIR, this phone DOES use the reference WDC9310 audio chip, but the Qualcomm FM chip has special audio connections that I'm pretty sure the Broadcom BCM4335 FM/combo chip does not.
My guess is that HTC added some special FM audio controls to the WDC9310 driver. EDIT: OK someone sent me a debug log from a rooted One, I'll look to find new FM controls.
mikereidis said:
Here's one of the IR apps on Play (more if you follow "Users who viewed this also viewed") : https://play.google.com/store/apps/details?id=com.microcontrollerbg.irdroid
App description says "Uses and needs external Irdroid module" and indicates it's a port of LIRC.
IR ports and their drivers are relatively simple, compared to audio, graphics, FM, etc.
So I'll bet that somebody will find/build an HTC One AOSP IR solution in the next 3-6 months. I've briefly considered it myself, but there are enough apps out there already IMO for when drivers become available.
BTW, I got the app link from this good thread about things missing from the coming Nexus Experience version: http://www.androidpolice.com/2013/0...tc-camera-features-and-no-beats-audio-switch/
My impression right now is that HTC One sales are doing better than many of us expected. The Nexus Experience thing has convinced me that I'll be getting one soon. And Samsung GS4 sales seem lower than expected. I think HTC One is "stealing" some GS4 sales.
My point is that I think HTC One XDA/custom ROM and apps development will do well, and solutions for IR and some other Sense related features will be found.
Click to expand...
Click to collapse
I'm sure the ONE isn't doing much to hinder sales of the S4. If you take into consideration that the S3 and S4 release dates are roughly a year apart not many people are available to upgrade let alone fork out the full price for the phone. People tend to pick brands and stick with them.
Also, according to Wikipedia, "Upon its release (S4), it became the fastest selling smartphone in Samsung's history, with 10 million devices sold as of May 22, 2013, according to Samsung." AND "the One sold around 5 million units through its first two months of worldwide availability.[" So I don't know where this stigma comes that HTC is dominating Samsung right now. I'm assuming it's just pure fanboy-ism.
tkoreaper said:
So I don't know where this stigma comes that HTC is dominating Samsung right now. I'm assuming it's just pure fanboy-ism.
Click to expand...
Click to collapse
There isn't any, AFAIK. Samsung is still top dog. Just with a LITTLE less domination than was expected, and HTC doing a bit better than many expected for them. HTC has lost a LOT of market share in 2 years, now I think they've climbed back (just a bit !) from the precipice.
My very non-scientific survey of the front page of XDA forums seems to show about twice as much activity for all S4 variants, versus all One variants. One activity should have an edge because it came out first though...
Against the S4's expected dominance, I think a 2:1 activity ratio means the One is clearly among the most popular new devices, despite enthusiast complaints about non-removable battery and no SDCard.
For FM:
- AFAICT, the people who reported success with Spirit on HTC One were running stock ROMs.
On stock derived ROMs, deny SU to Spirit or better yet, set Debug-> FM API to "OEM Proprietary" and restart Spirit. If the stock FM app can work, then Spirit should be able to work this way.
Debug-> Audio Focus should be enabled, but this is done automatically on recent Spirit releases.
- I've taken a quick look at the ALSA audio driver differences. Digital FM audio is I think possible, using some HTC One specific ALSA controls intended for Bluetooth. I will need a phone and time to figure this out. I'm not sure there is even an analog FM route available; it may be digital only.
If there's a service manual and/or schematic, I'd be interested to see.
- Even without audio, I'm not sure Spirit can control the FM/combo chip on AOSP ROMs or using low level stuff. The code that works an many old and new Broadcom chips directly via "UART" does not work on this BCM4335.
Maybe it could work if Bluetooth were turned on and/or Spirit has Debug-> HCI Access set to "BT Socket".
EDIT: Actually someone just emailed me running CM10.1 and the FM chip control works through UART.
Overall, I just have to get this phone to make it work well. Usually I get new phones on Ebay from Hong Kong or US vendors. But in this case I think I'd be better to buy one locally for $650 plus taxes. I'd buy an HTC dev phone, but they only sell to US and I think the same will be true, at least initially, for the coming Google Nexus Experience phone. And... I've been reading the One has S-Off and even carrier SIM unlock now (?)...
I got a One on the weekend and have added "early" support for Spirit FM on HTC One.
HTC One first AOSP/Google support: http://forum.xda-developers.com/show...7#post42922397
Now where is the guy or gal who will do the IR... and Camera...

[Q] Palm Wireless (Infrared) Keyboard

Hi,
I stumbled upon my old Palm Wireless Keyboard and I would like to know if you guys know of a way to hook it up to my HTC One since it also has an IR port.
Any help on how to achieve this would be great!
Thanks!!
lapaki said:
Hi,
I stumbled upon my old Palm Wireless Keyboard and I would like to know if you guys know of a way to hook it up to my HTC One since it also has an IR port.
Any help on how to achieve this would be great!
Thanks!!
Click to expand...
Click to collapse
From my understanding, no. The IR Blaster would require an app that integrates with HTC's IR API. If someone was feeling up to it, HTC is offering up the API upon request (http://blog.htc.com/2013/02/calling-all-ir-apps/ - though that's pretty old, so maybe the API is available without requesting it). So if someone could write something to interact with the keyboard, then maybe

iris scanner infrared light as remote control

I have been looking around the internet, and cant find any discussion about this,
Has anybody looked into/ or thought about the possibility of using the infrared light on the note 7 as a remote control?
Essentially from what I have gathered, the iris scanner has a seperate IR blaster to help detect your iris', so it stands to reason that if we could gain access to the control for the IR we could use it as a remote control.
I would love to see what the geniuses here can come up with, because I know it is to many a novelty, but there are a good number of us that really put that function to use.
If there is anyone more knowledgable about this then please make this happen!
Also if I am missing something, then please show me why this either is, or isnt possible.
The thought crossed my mind too. I'm pretty tech savvy but have no idea if this would be feasible or not.
Sent from my SM-N930T using Tapatalk
I also thought about it since I got it, the only problem is the emitter is facing wrong direction and it would be little awkward to use. However I only use it as a back up to full remote, if it's displaced(which is actually quiet often, since I have kids), so maybe it wouldn't be so bad. I almost jumped from joy, when my N7 worked as remote for my FIOS dvr, actually thought it was using iris scanner, but no, it's using wifi network instead so I still need ir remote for TV.
Did anyone tried one of those?
http://www.ebay.com/itm/like/272097...D1085615428832&ul_noapp=true&var=570907215193
Sent from my SM-N910T using XDA-Developers mobile app
This "might" be possible once we have ROMs, maybe a developer could shed some light on this.
darekz said:
Did anyone tried one of those?
http://www.ebay.com/itm/like/272097...D1085615428832&ul_noapp=true&var=570907215193
Sent from my SM-N910T using XDA-Developers mobile app
Click to expand...
Click to collapse
I saw that on amazon, most of the reviews say it doesnt work, and the Q and A section says it has problems with android, mostly because of lack of supporting app.
Has anyone tried an of these that actually do work?
is there any improvement in this issue?

Android with iphone 6s chipset

I was wondering if anyone was sure if I would be able to take android, put it on an iPhone 6s's hard drive instead of iOS or anything else and run it. Would the iPhone's chipset or anything else ruin that? I was wondering if I could confirm it without buying everything required for a test because I think it would be a fun experiment and a nice thing to show off. Although people might just think it's a clone. If it is possible I might need help... I know this is at least from my experience mostly a software site but I don't know where I else to find someone who might be able to help. If it isn't possible by default is there anywhere I can turn to learn how to modify it to make it more likely? I haven't checked YouTube...

Categories

Resources