Menu

IRremote is not working

2023-06-12
2023-06-13
  • Kenichi Aihara

    Kenichi Aihara - 2023-06-12

    I have been using myFP2esp32 for about 8 months with no problems. Recently I have been experiencing loss of wifi signal and decided to install irremote function.

    I have uncommented the following.

    define ENABLE_INFRAREDREMOTE 3

    However, I get an error on start.

    Serial started
    ControllerData start
    Set vars and load cached vars
    Controller mode 1
    Load accesspoint
    IP of controller 192.168.4.1
    Start system up time
    Load driver board 44
    setup: coilpower OFF
    Start I2C
    Start display
    Start IRRemote
    irremote_start() error
    management server enabled
    Starting management server
    Start TCPIP Server
    Start Web Server
    Start task timer
    Setup done, controller is ready

    In the sample code, the IRremote works fine with the same wiring.
    I could not find a place on the Web Server to enable the function like display.

    Please tell me how to enable IRremote.

    Ken

     
  • Kenichi Aihara

    Kenichi Aihara - 2023-06-12

    I read the code.
    If I change line 867 in the myfp2esp32F.ino file from V_STOPPED to V_RUNNING, will it work?

    I'm outside right now, so I'll give it a try when I get back.

    Thank you.

     
    • brownrb

      brownrb - 2023-06-12

      Hi

      If I change line 867 in the myfp2esp32F.ino file from VSTOPPED to VRUNNING, will it work?

      No.
      This is inside loadvars() which is called by setup() line 938

      then much later, in setup() line 1143 the IRRemote is started

        if ( irremote_init() == true )
      

      so changing to VRUNNING will have no effect. The iiremote_init() is what starts the IRRemote.

      THERE IS AN ERROR IN LINE 604 of myfp2esp32F.ino

      #if defined(ENABLE_NFRAREDREMOTE)
      

      it should read

      #if defined(ENABLE_INFRAREDREMOTE)
      

      the I is missing in front of NFR......

      regards
      Robert

       
  • Kenichi Aihara

    Kenichi Aihara - 2023-06-13

    Hi Robert,
    Thank you for sharing the error in the code. I now know why it is not working clearly on the code.

    I went on a business trip before I could check that it works. But it will definitely work.

    Best regards,
    Ken

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.