This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DLPC350: unable to open LCR4500(DLCP350) in AM5728 platform with linux system

Part Number: DLPC350
Other Parts Discussed in Thread: AM5728, DLP4500,

Tool/software: Linux

Hi Ti Experts

I'm working on this DLP4500 evm + AM5728 system based on dlp-sdk-2.0 

I successfully added one new gige camera from IDS and able to preview image with new built dlp-sdk on AM5728 evm.

However, when I try to connect DLP4500 evm with AM5728 evm, this dlp-sdk (or DLP_LIGHTCRAFTER binary, to be more accurate) can't open this DLP4500 device.

Here're the debug log:

When I plug in the DLP4500 evm, I can see following information from the AM5728 where correct VID/PID are reconginzed.

[92575.900126] usb 1-1.2: new full-speed USB device number 12 using xhci-hcd
[92576.056163] hid-generic 0003:0451:6401.000B: device has no listeners, quittig
[92576.070413] input: Texas Instruments Inc. DLPC350 as /devices/platform/440007
[92576.151084] hid-generic 0003:0451:6401.000C: input: USB HID v1.11 Keyboard [1

When I run the DLP_LIGHTCRAFTER binary, I got LCR4500_CONNECTION_FAILED error.

I digged a little bit and found that although right VID(0451) and PID are provided in function DLPC350_USB_Open, system still can not open and connect DLP4500 evm.

int DLPC350_USB_Open()
{
    // Open the device using the VID, PID,
    // and optionally the Serial number.
    DeviceHandle = hid_open(MY_VID, MY_PID, NULL); 

    if(DeviceHandle == NULL)
    {
        USBConnected = 0;
        return -1;
    }

    USBConnected = 1;

    return 0;
}

Please help, thanks!

  • User,

    Does the LightCrafter 4500 system only fail to connect when the AM5728 is connected? Or does it not matter?

    Best Regards,
    Philippe Dollo
  • LightCrafter 4500 system only fail to connect when the AM5728 is connected. It works fine with lightcrafter 4500 GUI from TI and DLPSDK on windows 7.

    Linux system on AM5728 can recognize the lightcrafter 4500(see my original post), but the dlp sdk I rebuilt on AM5728 can’t open this USB device . Btw this dlp sdk works fine with gige camera from IDS

  • User,

    It sounds like the LCR4500 SDK you have rebuilt to add support for the camera now no longer works with the LCR4500.

    Try recompiling an untouched SDK source without modifications. You should try to confirm whether your compilation process is introducing an error somewhere.

    I hope this helps.

    Best Regards,
    Philippe Dollo
  • Good input!

    I installed dlp-sdk_2.0-r11.0_armv7ahf-neon.ipk in AM5728 file system, this DLP_LIGHTCRAFTER in that pre-complied package can successfully connect to DLP4500 EVM.

    I run DLP_LIGTHCRAFTER built by myself, this binary can't connect to DLP4500 EVM.

    This implies my AM5728 system enviornment is OK but the dlp_sdk project I built has some problem.

    Here's how I handle hidapis related libary (referred by dlpc350_usb.cpp) in CMakeLists.txt

    list(APPEND INCLUDE_DIRS 3rd_party/hidapi-master )

    find_file(HIDAPI_SRC hid.c 3rd_party/hidapi-master/linux)

    list(APPEND HIDAPI_LIBS udev /home/abb/ti-processor-sdk-linux-am57xx-evm-04.02.00.09/targetNFS/lib)

    add_library(hidapi ${HIDAPI_SRC})
    target_link_libraries(hidapi ${HIDAPI_LIBS})
    list(APPEND LIBS hidapi)
    list(APPEND SRCS 3rd_party/hidapi-master/linux/hid.c)


    The whole dlp-sdk project is build successfully and able to connect camera via Ethernet in AM5728, but failed for USB based project.

    Could you please suggest how to proceed?

  • Any input for this thread?

    It seems that my binary with cross-complied hidapi can't find the USB devices, that is, fail to enumerate the devices.

  • Hi User4686533,

    Have you created the .rules file under etc\udev\rules.d\ directory,

    please copy attached file into the target file system.

    /cfs-file/__key/communityserver-discussions-components-files/94/8015.dlpc350_2D00_hid.rules

    Let know if it works. below is the snapshot of the file.

    Regards,
    Sanjeev

  • Hi Sanjeev

    Thanks for the input.

    The link in your post is not available any more. Could you please send it my email zhuan.yu@cn.abb.com directly?

    One input is that the executable file DLP_LIGHTCRAFTER provided in dlp-sdk_2.0-r11.0_armv7ahf-neon.ipk package can connect to DLP4500 EVM.

    However, the executable file  DLP_LIGHTCRAFTER built by myself can't connect to DLP4500 EVM. 

    I suspect that adding this rule file may not be able to solve the issue. Anyway, I'll try once after I got the file.

  • Hi,
    Since you were able to connect with TI released binary, I think the rules file not needed. From the above .rules file, you can just manually create a file and can have just one line, copy line #19. Rest of the things are comments.
    Are you executing your application admin mode or user mode, may be permission issues for the application execution. Otherwise I suspect your application compilation and linking, you can better compile HID library with your application.
    Regards,
    Sanjeev
  • Please let us know if you need further assistance or have a question. If not, I will tentatively close this thread.
    regards,
    Vivek