• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » DaVinci™ Video Processors » DM814x and AM387x Processors Forum » NEC remote with CIR driver and LIRC on DM814x??
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

NEC remote with CIR driver and LIRC on DM814x??

NEC remote with CIR driver and LIRC on DM814x??

This question is not answered
dc90210
Posted by dc90210
on Dec 19 2012 18:28 PM
Prodigy140 points

I followed the configuration and installation instructions described in the CIR driver user guide found here:

http://processors.wiki.ti.com/index.php/DM81xx_AM38xx_CIR_Driver_User_Guide

On my hardware, the IR is connected to UART4, so I made the following adjustments:

#define LIRC_UART_BASE TI814X_UART5_BASE /* The BASE #define's start at 1 so this is really UART4 */
#define LIRC_IRQ_UART TI814X_IRQ_UART4 /* The IRQ #define's start at 0 so this is really UART4 */

I have a lirc device and mode2 can see activity, although the pulse/space timing does not match what I see on a logic analyzer:

# mode2 -d /dev/lirc0 some.conf

space 99727
pulse 8960
space 99727
pulse 8960
space 99727
pulse 8960
space 399727
pulse 8960
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
pulse 2240
pulse 2240
space 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240

If I look at a repeat code, I can see the:

space 399727
pulse 8960
pulse 2240

I'd expect something like:

pulse 9000

space 2240

pulse 560

irrecord can not recognize the pattern as NEC and maps all the keys to the same pulse of 8960.  I'm wondering if anyone has gotten this to work and if there is possibly some adjustment needed moving to UART4 that might cause the timing to be wrong.

CIR LIRC
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Pavel Botev
    Posted by Pavel Botev
    on Dec 20 2012 09:39 AM
    Genius16080 points

    Hello,

    Are you on EZSDK? If yes, what version?

    Regards,

    Pavel

    Please Note:  If this answer solves your question please mark post as "Answered" - Thanks Pavel!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pavel Botev
    Posted by Pavel Botev
    on Dec 20 2012 09:42 AM
    Genius16080 points

    Can you try with the following patches, applied on top of the DM814x EZSDK 5.05.01.04:

    http://arago-project.org/git/projects/?p=linux-omap3.git;a=commit;h=1d57e679171e4d585272d5968b48775da5463956 (TI81xx:Lirc support for TI81xx)
    http://arago-project.org/git/projects/?p=linux-omap3.git;a=commit;h=7e20208c2ee88851d1d4bcf78333dd9cb8637a07 (TI8148 : Patch to disable IR_REMOTE_OFF for TI8148)
    http://arago-project.org/git/projects/?p=linux-omap3.git;a=commit;h=d1c5471c22a91d0f8679ea33b529f176dcfce61c (Lirc_serial : Fix mem leaks and ptr err usage.)

    BR

    Pavel

    Please Note:  If this answer solves your question please mark post as "Answered" - Thanks Pavel!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • dc90210
    Posted by dc90210
    on Dec 20 2012 09:50 AM
    Prodigy140 points

    Hi Pavel,

    We are on the EZSDK 5.05.01.04.  We have already received the patches you mentioned from Tiemen and are using them.  The only modifications are for the UART change.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • dc90210
    Posted by dc90210
    on Dec 20 2012 10:24 AM
    Prodigy140 points

    Hi Pavel,

    I can see the output of the UART_RX register matches pretty closely the signal on the input pin of the Centaurus.


    I can't see that the data passed up to LIRC through frbwrite matches.  Perhaps the state machine for NEC is incorrect.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • dc90210
    Posted by dc90210
    on Dec 27 2012 09:39 AM
    Prodigy140 points

    Hi Pavel,

    I made progress in debugging the serial driver.  Basically, there are four times the number of samples from the UART as the code expects so the comparisons with num_bits is incorrect which leads to wrong pulse widths and transitions to LIRC.  Since I only require NEC protocol I simplified the state machine and it is working well with lircd now.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • lu yuenjune
    Posted by lu yuenjune
    on Jun 06 2013 22:36 PM
    Intellectual420 points

    Hi Sir :

    I work on TI8148 platform and use DVRRDK_03.00.00.00 to develop our system.

    I connect IR to UART1(consle is UART0) and read "DM81xx AM38xx CIR Driver User Guide" to enable LIRC.

    However, when I run the lircd script at the boot time, the follow messages show.

    Starting lirc daemon: lircdlircd: could not create socket
    lircd: Function not implemented

    I have no idea what's wrong.

    Could you give me some suggestion?

    Best regards,

    Marcus

    dm8148 CIR Driver
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use