Coder Social home page Coder Social logo

Comments (16)

tekker avatar tekker commented on August 20, 2024 4

As igrr suggested, changing the ISR method signatures has resolved all of the issues with receiving repetitive IR signals causing WDT resets for me.

Changes applied:

(IRemoteESP8266.cpp, line 478)

*static void ICACHE_FLASH_ATTR gpio_intr(void arg) {

to:

*static void ICACHE_RAM_ATTR gpio_intr(void arg) {

and (IRemoteESP8266.cpp, line 470):

*static void ICACHE_FLASH_ATTR read_timeout(void arg) {

to

*static void ICACHE_RAM_ATTR read_timeout(void arg) {

from irremoteesp8266.

igrr avatar igrr commented on August 20, 2024 2

FYI, a lot of these Exception (0) issues reported here have to do with the fact that GPIO ISR handler is placed into flash. ISR handler should instead be marked with IRAM_ATTR for placement into RAM. Otherwise if the interrupt happens while flash cache is disabled, ISR code will not be accessible, causing exception 0.

from irremoteesp8266.

AndrewMohawk avatar AndrewMohawk commented on August 20, 2024 1

@tekker / @igrr : Thank you. I've spent ages trying to figure out the problem and these fixes solved it for me. If you guys are ever in Cape Town, South Africa I will gladly buy you a beverage of your choosing!

from irremoteesp8266.

darshkpatel avatar darshkpatel commented on August 20, 2024

Don't encode the values in hex and print, mine worked pretty well without
encoding the output in hex

On Thu, 7 Apr 2016 12:55 am Rajasekar, [email protected] wrote:

i like to say thank you for this library creator and supporting members,
its decoding perfectly but ESP8266 Restarting, If receive continuous IR
Signal ,
Iam using gpio13 to connect ir receiver(TSOP1738)

iam using samsung TV remote
[image: pic1]
https://cloud.githubusercontent.com/assets/4434178/14329905/649c8490-fc5b-11e5-8cfa-6f65d5871bd8.png
[image: pic2]
https://cloud.githubusercontent.com/assets/4434178/14329912/6e2716b0-fc5b-11e5-9d52-611e770ba37e.png


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#22

from irremoteesp8266.

rajasekarsarangapani avatar rajasekarsarangapani commented on August 20, 2024

kindly explain why don't encode in to hex value,
how to use switch case without convert hex,have any other way to use switch case

from irremoteesp8266.

darshkpatel avatar darshkpatel commented on August 20, 2024

You can directly use the values, by assigning results.value to a variable , i have given a example snipped below
`
code = results.value;
switch(code){
//case 1
case 3778927144:
//do something

}
`

from irremoteesp8266.

rajasekarsarangapani avatar rajasekarsarangapani commented on August 20, 2024

Thanks for your code, I tested but still restarting, can you please share your hardware schematic diagram

from irremoteesp8266.

darshkpatel avatar darshkpatel commented on August 20, 2024

I am replying form my mobile device so i cannot upload a schematic ,
I am using a ESP-12E and have attached my tsop1738 to Gpio 5 , and have
provided it with a independent power supply , and is not sharing it with
the esp , as it creates issues sometimes.

On Fri, 8 Apr 2016 at 00:56 Rajasekar [email protected] wrote:

Thanks for your code, I tested but still restarting, can you please share
your hardware schematic diagram


You are receiving this because you commented.

Reply to this email directly or view it on GitHub
#22 (comment)

from irremoteesp8266.

rajasekarsarangapani avatar rajasekarsarangapani commented on August 20, 2024

Thanks,I will check my connection, if you send schematic diagram, this is my diagram
20160408_092629
Tsop I connected like this
20160408_093200

from irremoteesp8266.

rajasekarsarangapani avatar rajasekarsarangapani commented on August 20, 2024

It's restart again and again if receive few ir codes

from irremoteesp8266.

sivanandareddy avatar sivanandareddy commented on August 20, 2024

TSOP1738 is working very fine with 3.3V directly connect Vin to 3.3V, GND to GND, and output to some GPIO pin. I'm able to decode the my Videcon DTH remote. The problem with me is, I'm not able to send the messages using IRsend.sendNEC(). If you have tried it please reply.

from irremoteesp8266.

markszabo avatar markszabo commented on August 20, 2024

@sivanandareddy Try connecting a normal led to the output pin while sending. It should blink for a short time. If it does, then try decoding it with an other arduino/esp8266. Usually the receiver will pick up the signal from a normal led, though you need to put them close to each other. Then try with the IR led. Also (if possible) try sending the IR codes from an arduino.

from irremoteesp8266.

sivanandareddy avatar sivanandareddy commented on August 20, 2024

I'm sure it is blinking something. I'll try with another arduino board and decode it. Another strange thing that I have found is that, carrier freqency of IR transmission is only 34.5kHz instead of 38kHz. I'm using NodeMCU with ESP12-E

from irremoteesp8266.

sivanandareddy avatar sivanandareddy commented on August 20, 2024

@rajasekarsarangapani See section Timing and delays in the esp8266/arduino reference link https://github.com/esp8266/Arduino/blob/master/doc/reference.md. They say not to use delay as it blocks the some wifi routines which will reset the chip, if wifi is enabled.

from irremoteesp8266.

rajasekarsarangapani avatar rajasekarsarangapani commented on August 20, 2024

Thanks for the info, I will try

from irremoteesp8266.

lwalpurgis avatar lwalpurgis commented on August 20, 2024

Is any Solution for this problem available? My ESP restarts with the demo rcv example if delay() is used ....

from irremoteesp8266.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.