24

Is there any ways to receive IR signals in android?

While searching, I found ways to transmit data from Android devices.

Found this one very useful: https://github.com/rngtng/IrDude

So, is it also possible to receive IR signals generated by other IR transmitting devices like Remotes? If yes, i want to print those signals (hex values) in my app UI. Can anybody give some light on the issue, please... :)

I'm using Galaxy S4 for development.

Midhu
  • 1,647
  • 2
  • 18
  • 29
  • 1
    try out this tutorial: https://github.com/rngtng/IrDude/blob/master/src/com/rngtng/irdude/MainActivity.java – nano_nano Jul 08 '13 at 11:42
  • 1
    thanks.. :), but this is the same project I refereed in my question.. It only have the sending/transmitting part, but I need the receiving part. – Midhu Jul 08 '13 at 11:51
  • Yes, there are also apps available to capture IR remote codes as well. –  May 29 '14 at 21:41
  • 1
    Hey...this Question is 11 Months old now. Do you have a implementation yet to Receive IR Cods on Samsung, Sony or other Devices. Right now I have only found the HTC Library for Receiving IR Codes. –  Jun 10 '14 at 13:47
  • Sorry, but I failed to find such implementations at that time, and for now, I'm not following the issue. – Midhu Jun 12 '14 at 04:16
  • @user3689294 Could you name one that works on a Samsing Galax S4, please? – Tamás Bolvári Jun 13 '16 at 20:36

3 Answers3

3

My idea is>> Cameras detect IR LED flashing. Capture the the signal through android camera. if you know the encoding signal of IR transmitter you can decode it. its very interesting question you raised. I wish to work on it if i got time.:)

1

Is there any ways to receive IR signals in android?

Few Android devices have any IR support, let alone some sort of IR receiver. If you build your own device, you are welcome to do what you want.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • 1
    haha.. :) So in short, I can't do it so easly.. uhh.? Anyway, I'm too late to comment, but yet, thanks for the cool answer.. ;) – Midhu Apr 03 '14 at 07:19
  • 2
    My Galaxy S4 has an IR transmitter. Didn't know that until today. Let the fun begin! try this; it actually works! http://www.appbrain.com/app/samsung-ir-universal-remote/remote.control.samsung – X-Ray May 10 '14 at 23:41
  • For HTC the OpenSense SDK exists with IR Support. HTC One has an IR Sensor too. – CodingYourLife Aug 22 '14 at 02:49
  • 1
    Lots of devices have ir blasters nowadays, galaxy s4+, many others. not sure about recievers. https://en.m.wikipedia.org/wiki/List_of_devices_with_IR_blaster – chiliNUT Mar 17 '16 at 03:10
-4

EVERY smartphone has an IR transmitter AND and IR receiver.

It is used to detect when your phone is on your ear to disable the touch-screen, so your ear doesn't tap "back" while you are talking.

This IR element is programmable. The IpBike guy uses this in his app; see here: http://www.iforpowell.com/cms/index.php?page=run-time

Some devices (eg: Samsung S6 Edge) have a second IR element as well, pointing a different way, specifically for controlling TVs etc.

cnd
  • 1,689
  • 16
  • 14
  • _"EVERY smartphone has an IR transmitter AND and IR receiver."_ **FALSE**. I don't even understand why you stated it, why would this be true? Infrared support obviously has hardware and software requirements. NOT every smartphones have it. For example, I have a [Motorola Moto X Play](http://gadgets.ndtv.com/motorola-moto-x-play-2820) smartphone which unfortunately does NOT support this feature. But there are many other devices out there on the market which don't. – Sk8erPeter Jun 06 '16 at 20:26
  • 6
    The distance between ear and phone is not detected by IR, it's detected by a proximity sensor –  Jul 07 '16 at 20:51
  • 1
    I have Samsung Galaxy S6 and it only has an IR sender.. (just like a normal TV remote control) but it can't read IR signals.. tried it yesterday with various apps. – MilMike Nov 18 '16 at 16:43
  • 1
    I have a Samsung Galaxy S7 Edge and it does NOT have an IR transmitter (I wish it did). – Remy Lebeau Feb 24 '17 at 19:04
  • 2
    In fact, IR sensors ARE commonly used in smartphones as the proximity sensor according to wirelessdesignmag and android.stackexchange (search internet for additional confirmation) This doesn't mean other sensors are not used for that same purpose in some smartphones. – ExMilitum Oct 21 '16 at 21:41