Jump to content

olivluca

Members
  • Content Count

    51
  • Joined

  • Last visited

  • Days Won

    1
  1. olivluca

    "Mark this forum as read" doesn't work any more

    Well, maybe it depends on the user and not on the browser (with javascript disabled it's a simple link, it would work the same with lynx or mosaic 1.0).
  2. olivluca

    "Mark this forum as read" doesn't work any more

    @@zeke, mark community read works, but it marks as read every section (oops), the one that doesn't work is the mark this forum as read in each subforum. @@bluehash, tried that and still have the problem. I also tried logging out and logging in again using the email instead of the username. It didn't work either (I didn't expect it to since I started seeing the problem before the merge). Doesn't the error code [#20312.1] help pinpoint the problem? Edit: I also tried with chrome (I normally use firefox) but I have the same problem (I tried with javascript disabled since javascript hides the problem, it apparently works but it really doesn't).
  3. olivluca

    "Mark this forum as read" doesn't work any more

    Problem still present
  4. With javascript disabled it gives me a "Sorry, you don't have permission for that!" message, while with javascript enabled it appears to work (the topics show as read) but it really doesn't (reloading the forum they show as unread). It worked 2 days ago. Edit: the above error message has this error code attached: [#20312.1]
  5. olivluca

    Voltage regulator 12vdc to 3.3vdc

    I have one of those in my car powering an arduino pro mini. It's been working fine for more than a year.
  6. olivluca

    IRremote library does not work!

    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
  7. olivluca

    IRremote library sometimes leaves led on

    The patch to the library is definitely needed to avoid keeping the led on at the end of every MARK, the delays are in post #3 (560/1690 microseconds). I don't think the 9000/4500 ones matters too much, but maybe they do.
  8. olivluca

    IRremote library sometimes leaves led on

    I just tried the code on an arduino pro mini and it works without modification, so either the port to energia is wrong or the delayMicroseconds function is way off. As I don't have a scope I cannot say exactly, but I suspect the latter. Worthy of a bug report?
  9. olivluca

    Sending Samsung TV RAW IR-codes

    @@StefanWxx, I see that you had to reduce the mark/space timing by 10-15% wrt the timings in the arduino posts. This is consistent to what I had to do to get the NEC protocol working. I also have a (probably not 100% correct) solution for the led remaining on. See http://forum.43oh.com/topic/5396-irremote-library-sometimes-leaves-led-on/ for details. Edit: BTW, from the look of it, I'd say that samsung too is using the NEC protocol, so probably there is no need to add a separate sendSamsung function.
  10. olivluca

    IRremote library sometimes leaves led on

    That would be well within the 10% tolerance of a receiver, so either the DCO is off by more than 10% or the delayMicroseconds function isn't accurate enough.
  11. olivluca

    IRremote library sometimes leaves led on

    BINGO, I reduced the delays by 10% and now I can control my tv. It means that the timings are off by 10%. Why? Bad calibration data in my msp? The commented out values are the correct ones (according to the NEC specifications). Note that 10% was just a guess, since I don't have a scope to check the real timing. Edit: in case it's relevant, I'm still using energia 0101E0011, I'll try later with the latest version. Edit2: tried with 0101E0012, it's the same. #define NEC_HDR_MARK 8100 //9000 #define NEC_HDR_SPACE 4050 //4500 #define NEC_BIT_MARK 504 //560 #define NEC_ONE_SPACE 1521 //1690 #define NEC_ZERO_SPACE 504 //560
  12. olivluca

    IRremote library sometimes leaves led on

    I modified the library with the attached patch, now the led doesn't stay on anymore but I cannot control my TV set (lirc, which probably is more tolerant with the timing, recognizes the codes). Edit: I'm not permitted to attach this kind of file, inlined here --- IRremoteInt.h.orig 2014-04-21 10:29:43.489878975 +0200 +++ IRremoteInt.h 2014-04-21 11:33:19.417113888 +0200 @@ -142,15 +142,16 @@ // P2SEL |= BIT3; // P2.3 option select #define TIMER_PIN_SELECT() ({ \ P2DIR |= BIT3; \ - P2SEL |= BIT3; \ + P2SEL &= ~BIT3; \ + P2OUT &= ~BIT3; \ }) // defines for Timer_A (16 bits) // NOTE: Using A1 instead of A0 because A0 is used by Serial #if defined(IR_USE_TIMERA) #define TIMER_RESET -#define TIMER_ENABLE_PWM (TA1CTL = TASSEL_2 + MC_1) // SMCLK, Up mode -#define TIMER_DISABLE_PWM (TA1CTL = TASSEL_2 + MC_0) // SMCLK, Stop mode +#define TIMER_ENABLE_PWM ({TA1CTL = TASSEL_2 + MC_1; P2SEL |= BIT3;}) // SMCLK, Up mode +#define TIMER_DISABLE_PWM ({TA1CTL = TASSEL_2 + MC_0; P2SEL &= ~BIT3; P2OUT &= ~BIT3;}) // SMCLK, Stop mode #define TIMER_ENABLE_INTR ({ /*TA1CTL |= TAIE;*/ TA1CCTL0 |= CCIE;}) // SH 071112 #define TIMER_DISABLE_INTR ({TA1CTL &= ~TAIE; TA1CCTL0 &= ~CCIE;}) #define TIMER_INTR_NAME TIMER1_A0_VECTOR --- IRremote.cpp.orig 2014-04-21 11:36:07.333117889 +0200 +++ IRremote.cpp 2014-04-21 11:29:03.862107798 +0200 @@ -215,8 +215,8 @@ TIMER_PIN_SELECT(); // P2.3 output and P2.3 option select (when TIMER_PWM_PIN is P2_3) - pinMode(TIMER_PWM_PIN, OUTPUT); - digitalWrite(TIMER_PWM_PIN, LOW); // When not sending PWM, we want it low + //pinMode(TIMER_PWM_PIN, OUTPUT); + //digitalWrite(TIMER_PWM_PIN, LOW); // When not sending PWM, we want it low // TODO: update the comments below
  13. As reported in this topic (sending samsung tv raw ir codes) sometimes the led stays on after transmitting. I see that the library defines these macros: #define TIMER_ENABLE_PWM (TA1CTL = TASSEL_2 + MC_1) // SMCLK, Up mode #define TIMER_DISABLE_PWM (TA1CTL = TASSEL_2 + MC_0) // SMCLK, Stop mode #define TIMER_ENABLE_INTR ({ /*TA1CTL |= TAIE;*/ TA1CCTL0 |= CCIE;}) // SH 071112 #define TIMER_DISABLE_INTR ({TA1CTL &= ~TAIE; TA1CCTL0 &= ~CCIE;}) #define TIMER_INTR_NAME TIMER1_A0_VECTOR #define TIMER_CONFIG_KHZ(val) ({ \ TA1CCTL0 |= OUTMOD_4; \ TA1CCR0 = FOSC/val/2; \ }) and to send a space it uses TIMER_DISABLE_PWM. Now, I don't know exactly how the timers in a msp430 work, but OUTMOD_4 is Toggle and MC_0 stops the timer. Is it possible that if it is stopped when the led is on it will stay on?
  14. olivluca

    Sending Samsung TV RAW IR-codes

    Did you solder the crystal to the launchpad? I wonder if my problem is the clock (since I'm still not succeeding in controlling my TV, and now I'm pretty sure the codes I'm using are right). Edit: my tv is an LG, it uses NEC codes (so I'm using sendNEC) and I think the timing is slightly off: while the tv doesn't react, a lirc receiver recognizes the codes (though with some difficulty). I don't know if what's off is the mark/space timing or the 38KHz carrier.
  15. olivluca

    Sending Samsung TV RAW IR-codes

    I cannot help with your problem (I never managed to get the IRremote library working for sending, probably I just used the wrong codes), but I too see what you mention in the comments ("sometimes IR LED stays on??").
×