#22 Serial Hardware Carrier option

Both or unknown
open
nobody
5
2014-07-06
2014-01-30
Virgus
No

Hello,
I need to send WinLirc serial output via RF.

I'm trying to use the "hardware carrier" option but whenever enabled what I get out from the tx of the serial is just a regular hi-low 3ms sequence instead of the regular waveform just without the carrier.

You can have a look at the snapshots in the attachments

I tried older versions to see if anything changed and up to WinLirc 0.6.5 it's always the same behaviour.
Might it be a bug?

I'd like to learn more about WinLirc, in which part of the code should I look for the hardware carrier configuration?

Cheers,
V.

PS It would be great to be able to activate/desactivate hardware carrier from the command line
like in Pronto RAW file format where a bit indicates the carrier modulation ON/OFF.

2 Attachments

Discussion

1 2 > >> (Page 1 of 2)
  • Virgus
    Virgus
    2014-01-31

    I found the sending functions in the remote.cpp file.
    Being a newbie in C programming it's not that easy but one thing I'd like is this one:
    instead of assuming freq 0 = 38Khz, freq 0 should be "hardware carrier" unmodulated transmission.
    This would make much more sense in my opinion...

     
  • Ian
    Ian
    2014-01-31

    The source for for the latest winlirc, is almost exactly the same as 0.6.5. Just all the code has been wrapped in a plugin. I'll try and get Leg0 to look at this. Honestly without looking I am not even sure what the hardware carrier option does :) Most of that code was written 15 years ago !

     
  • Ian
    Ian
    2014-01-31

    What should the signal look like for h/w carrier ? Just a solid line ?

     
  • Ahti Legonkov
    Ahti Legonkov
    2014-01-31

    Ian, the HW carrier should look a lot like the SW carrier image, except all the tiny pulses that look like solid rectangles, would be grouped together into bigger ones and instead of solid rectangles you'd see the outline of these rectangles.

     
  • Ahti Legonkov
    Ahti Legonkov
    2014-01-31

    After a quick look, I think the problem is in trunk/DLL/Serial/Transmit.cpp. function send_pulse_hard. Will verify in the evening.

     
  • Virgus
    Virgus
    2014-01-31

    That's great,
    thanks both of you for the prompt replies!

     
  • Ian
    Ian
    2014-01-31

    I had a quick google, and apparently h/w carrier is what the demodulated output from a TSOP would look like ? Is that correct ? So instead of cycling at 38khz, it would be just on/off ?

     
    • Ahti Legonkov
      Ahti Legonkov
      2014-01-31

      correct.

       
  • Virgus
    Virgus
    2014-01-31

    I just took a snapshot a few days ago of a modulated/unmodulated waveform...

     
    Attachments
  • Ahti Legonkov
    Ahti Legonkov
    2014-02-02

    Does the problem persist when you use DTR instead of TX?

     
1 2 > >> (Page 1 of 2)