infrared

ConsumerIrManage.hasIrEmitter() always returns false (API 19)

僤鯓⒐⒋嵵緔 提交于 2019-11-28 17:41:03
I call ConsumerIrManager.hasIrEmitter() on my LG G2, but it always returns false . According to the documentation on Infrared transmitters : When running on a device that includes an infrared (IR) transmitter, you can now transmit IR signals using the ConsumerIrManager APIs. To get an instance of ConsumerIrManager , call getSystemService() with CONSUMER_IR_SERVICE as the argument. You can then query the device's supported IR frequencies with getCarrierFrequencies() and transmit signals by passing your desired frequency and signal pattern with transmit() . You should always first check whether

HTC ONE M8 IR Blaster after Lollipop Update not working

谁都会走 提交于 2019-11-28 05:07:12
问题 I need to use the infrared transmitter on an HTC One device. Before the lolipop update I could do this no problem, but now my code does not work. ConsumerIrManager mCIR = (ConsumerIrManager)getSystemService(Context.CONSUMER_IR_SERVICE); mCIR.transmit(freq, pat); where freq and pattern are the required values to power on my TV (from the manufacturer) I do not get any errors running this code, the only problem is that the infrared transmitter does not light up on HTC one devices. ( looking at

IR emitter and Android 5.0

两盒软妹~` 提交于 2019-11-27 04:33:56
I am facing a problem with the IR emitter on my Galaxy S5 running under Android 5.0. Before I updated it to 5.0, my app was perfectly working on my phone but now, the device I am suppose to manage has no reaction. When I click on my app to send an IR code, the led blinks to indicate that the IR manager is activated and I can receive a signal with a IR photodiode connected to my scope. Unfortunately, the shape of the signal I get is very different from what it should be. I can add that the same code running on my tablet under Android 4.4.2 still works perfectly. To help in answering my question

IR emitter and Android 5.0

旧巷老猫 提交于 2019-11-26 11:15:07
问题 I am facing a problem with the IR emitter on my Galaxy S5 running under Android 5.0. Before I updated it to 5.0, my app was perfectly working on my phone but now, the device I am suppose to manage has no reaction. When I click on my app to send an IR code, the led blinks to indicate that the IR manager is activated and I can receive a signal with a IR photodiode connected to my scope. Unfortunately, the shape of the signal I get is very different from what it should be. I can add that the