IRMP-org / IRMP

Infrared Multi Protocol Decoder
GNU General Public License v3.0
267 stars 43 forks source link

Bang and Olufsen send frequency seems to be wrong, and send is not working #44

Closed chrwh closed 3 years ago

chrwh commented 3 years ago

Bug Report

Board

IDE

IR-Protocol

Example to reproduce the issue

Pin(s) used for IR-receive, if not default

IR Receive pin 19 (Using TSOP7000) IR Send pin 16 (IR led 940nm I know that the IR LED is working, since I use some other code now for sending to the B&O, but would like to port to IRMP)

Version

Current behavior

IRMP_ReceiveAndSend.zip

The receive is working without any issues, but I can't get the send to work. If I look at the output with my Logic analyser the frequency is wrong it's about 117KHz

Expected behavior

This is just a send test, If button A is clicked, send something If button A is clicked, send something else

Error output

No errors are outputed

Additional context

ArminJo commented 3 years ago

Maybe the call getApbFrequency() in the line https://github.com/ukw100/IRMP/blob/36a4c4106fa0ae9054a6770c8ef7f542ac1091b5/src/IRTimer.cpp.h#L238 returns the "wrong" value. try (getApbFrequency() / (80 *4)) and please report your experience.

chrwh commented 3 years ago

Hi, That did not seems to help, the output freq is still about 117.6kHz at the max, but also alot of 21.51kHz stuff. I might add, that if I try the same with Samsung protocol, the output freq is approx. 38KHz Best regards, Christian

chrwh commented 3 years ago

Also the receiver stops working, when implementing the suggested above.

chrwh commented 3 years ago

Any news regarding this?

ArminJo commented 3 years ago

I am sorry but generating 455 kHz output is not supported by IRMP. I now documentetd it more clearly.