Jump to content
43oh

IRremote library does not work!


Recommended Posts

hello!

I have installed energia, and I have sucseeded to run some basic codes like blinking a led with it. But, when I try to use any example scetches that use Irlibrary like IRrecvDemo), I get the folloving errors:

 

 

C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::mark(int)':
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:186:3: error: 'TA1CTL' was not declared in this scope
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::space(int)':
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:194:3: error: 'TA1CTL' was not declared in this scope
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::enableIROut(int)':
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:214:3: error: 'TA1CTL' was not declared in this scope
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:214:3: error: 'TA1CCTL0' was not declared in this scope
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:227:3: error: 'TA1CCTL0' was not declared in this scope
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:227:3: error: 'TA1CCR0' was not declared in this scope
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:244:3: error: 'TA1CTL' was not declared in this scope
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:244:3: error: 'TA1CCTL0' was not declared in this scope
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:244:3: error: 'TA1CCR0' was not declared in this scope
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:244:3: error: 'TA1R' was not declared in this scope
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:247:3: error: 'TA1CCTL0' was not declared in this scope
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp: At global scope:
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:276:26: error: 'TIMER1_A0_VECTOR' was not declared in this scope
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp: In static member function 'static void IRrecv::RecvIsr()':
C:\Users\Santeri\Downloads\energia-0101E0009-windows\energia-0101E0009\hardware\msp430\libraries\IRremote\IRremote.cpp:277:6: error: interrupt vector offset must be an even non-negative integer constant
 
 
 
 
Do you have any Ideas what should I do?
Link to post
Share on other sites

Seems to work fine with msp430g2553 .. and fails with msp430g2231 and msp430g2452. Are you using a g2231 or g2452? If so this code isn't going to work. The IR demo code uses both serial and the TIMER1. The g2231/g2452 chips don't have a second timer. So it won't work.

This code should probably have a
#ifndef __MSP430_HAS_T1A3__
#error "this only works with the msp430g2553"
#endif

-rick

 

[Edited: .. wasn't a problem with UART and TIMER0 conflict, but more that IR code uses the second timer (TIMER1) and g2231 and g2452 chips only have one timer]

Link to post
Share on other sites
  • 2 years later...
hello everyone

 

when l download IRrelay.ino example to my MSP430F5529 LP and push my NEC remote control button, l receive this massage on my serial monitor.

 

Could not decode message

Raw (60): 11796 8900 -4200 550 -1500 550 -550 500 -500 550 -550 500 -1550 500 -550 500 -550 500 -500 550 -500 550 -500 550 -500 550 -500 550 -500 550 -500 500 -500 550 -550 500 -550 500 -1550 550 -500 550 -500 550 -450 600 -500 550 -500 550 -500 550 -500 500 -1600 500 -500 550 -500 500 

 

what do you think about why MSP430F5529 LP does not know NEC protocol? 

Link to post
Share on other sites
  • 3 weeks later...

any luck with the IRsend demo.. doesn't work for me.

to which pin should i connect the output?

the receive demo works fine. 

 

i'm using the msp430g2553.

thanks.

The last time I tried IRsend with an msp430 I found that the timing was off by more than 10% and sometimes the led would remain on.

See here:

http://forum.43oh.com/topic/5396-irremote-library-sometimes-leaves-led-on/

I don't know if either problem has been fixed in the meantime

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...