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.

DLPLIGHTCRAFTER: Change Default IP Address

Part Number: DLPLIGHTCRAFTER

Dear TI support,
I have USB-TCP/IP connectivity issues with my DLP Lightcrafter module, similar to others:
First it was an issue of RNDIS driver under Windows10, which has been solved thanks to new driver.
Then, most probably because the LAN in our lab is in 192.168.1.x subnet, I first had to disable/unplug my LAN, then only LCr could use 192.168.1.100 (or any other even IP in that subnet).
Only after LCr was up and running I could reactivate my PC ethernet. 
Finally, I changed LCr's IP address to 10.10.10.2 and long story short, it did the job, and I don't need to disable my ethernet link anymore.
Now I am customizing the LCr software to my needs, and it happens from time to time that  the board stops responding, so I have to reprogram the default firmware of DM365 into NAND via SD card image.
After doing that, the LCr reverts back to default 192.168.1.100 address.
My question is, how to change the default IP address to another one that works better for me?
Can you help me find where is it stored and do we have access to that part of the code?
It would be great if I could change that and rebuild the DM365 image, so that after loading from SD, the LCr would get that 10.10.10.2 address by default.
Thanks in advance!
Karl
  • Hi Karl,

    Thanks for your question. If you give me a little time to dig into this, that would be appreciated.

    -Paul
  • Hi Paul,

    Thanks for your quick reply - any help is appreciated!

    By the way I did a mistake and haven't put a proper title to my thread. I'd like to change it to something like "How to change the default IP address of DLP Lightcrafter" to make it more useful for the community. But I don't find a way of doing that - maybe it would be possible on your side.

    All the best,
    Karl
  • Hi Karl,

    I would like to clarify your issue. You are able to set the default IP address on the Lightcrafter, using the GUI. It is just when you go to reflash the firmware and software from the SD card that the IP address you selected in the GUI gets over written and goes back to the out of box IP address. Is that correct?

    If the above is correct, then it is a little bit more challenging to set the default IP in the image files used on the SD card. I'm still looking into if this is possible to do from what we provide publicly online, but I wanted to confirm that I correctly understand your issue.

    Thanks,
    Paul
  • Hi Paul,

    yes, your understanding is quite correct.

    Thanks for looking for a solution!
    Karl
  • Karl,

    We had that question several times in the past, so we actually created a custom GUI call for it in our Lightcrafter product, so my memory is a bit sketch on this as it has been a few years.

    You will need to access the UART port using the serial port on the System board.

    On the linux file system,  you should find a program called setip. I believe it is under /data/bin

    Go to that directory ( cd /data/bin), then execute the program ./setip aa bb cc dd 

    where your new ip address is aa:bb:cc:dd

    Then reboot for the new IP address to take effect. If you have fixed your system IP address on your PC RNDIS driver, you will have update that accordingly.

    Please have an SDCARD version of the image file in case this doesn't work right away and you need to reflash your system.

    Also, you may have to kill the a process called cmdh in order for files to be updated properly. (ps -uax | grep cmdh to find the process id). kill -9 <ID> to kill it.

    I'm doing this from memory, so I may not have correctly stated everything correctly. I hope this points you in the right direction, Paul can add in more perhaps. Good luck. 

  • Adam, Paul,

    thanks for the instructions!

    I have installed the Ubuntu 10.04 for DVSDK, but I forgot my SD card, so I will try it tomorrow and will let you know the results.

    Have a nice day,
    Karl
  • Hi Adam,

    unfortunately, I couldn't find the setip file. And the DVSDK I installed (version DVSDK 4_02_00_06) doesn't have data folder in it.
    But I found another thread, probably that's the one having a similar issue where changes in the code needed to be done:

    e2e.ti.com/.../312205

    In that thread, Sanjeev suggests:

    <<...
    cmdh and setip are userspace applications talking with the PC side software. We sometime back released the DVSDK reference software on the web www.ti.com/dlplcr_dm365_dvsdk install and follow the readme instructions to build and run DVSDK.

    Once you install this package you will find the cmdh app is build using TI LCR_API library .so file. There is header file with it LCR_API.h. So you can use these for your own application development.

    FYI, With LCr DVSDK the LCR_API.h is located in this path – <linux_drive> /ti-dvsdk_dm365-evm_4_02_00_06/example-applications/lcr/src/LCR_API.h in the same directory there will be a liblcr.so which is the library.
    ...>>

    I downloaded and installed DVSDK reference software in the above link. This version, when installed, creates a "DLP LightCrafter DM365 DVSDK v4.0" folder and not "ti-dvsdk_dm365-evm_4_02_00_06".
    But indeed it has the setip program and the LCR_API library in "example-applications":

    To clarify, the original DVSDK version that I installed was this one:

    http://www.ti.com/dlplcr_dm365_dvsdk_v5 (Active)

    And the one Sanjeev suggested is this one:

    http://www.ti.com/dlplcr_dm365_dvsdk (Not recommended)

    You can see it on this screenshot from http://www.ti.com/tool/dlplightcrafter 


    So now I am a little confused here. The original DVSDK I installed, it doesn't seem to have the setip program. And the folder structure/content of these 2 are very different.

    So should I use that older version? Or maybe move the required files to the respective folders of ti-dvsdk_dm365-evm_4_02_00_06 and try to rebuild again? 

    Going back to your suggestion with using the setip, how do you think I can proceed?

    Thanks!

    Karl

  • Paul, Adam,

    do you have an update to this question regarding how to proceed with DVSDK and setip?

    Thanks
    Karl
  • Karl,


    I don't have a specific idea and don't recall that much about the DVDSK. I'll have to let Paul at TI take this.

  • Hi Paul,

    do you have any suggestions that could help solve this issue?
    I have the setip file, I could try changing the IP address from there.
    But because it's not in currect build of DVSDK, I am not sure if this will work, or it may corrupt the DM365 firmware.

    Any help will be appreciated!

    Karl

  • Karl,

    Use the DVSDK v5 and copy the setip.c and required files into the respective folders and rebuild. Looks like these were left out of the v5 DVSDK.

    I believe the IP address is defined in the changes/rootfs/my/etc/network/interfaces file. But the best way to change it is using setip through UART.

  • Hi Pedro,

    Thanks for your suggestion. I have copied the whole "Changes" folder from older build to current one called ti-dvsdk_dm365-

    evm_4_02_00_06. This Changes folder includes among other things, the setip executable in bin folder.

    Then I have rebuild the DVSDK according to manual:

    In folder of DVSDK (home/"username"/dvsdk_dm365-evm_4_02_00_06 I ran:

    make clean

    make all

    make components

    After that I connect vial telnet to DM365 to run setip, but when I enter "setip 10.10.10.2" , I get "Segmentation Error".

    I thought it may be that the format should be different, so i tried others like "setip 10 10 10 2" etc, but I think but it looks like the format of address should use dots.

    Do you know what this segmentation error means?

    And also, if after the issue with setip is solved, how can I build my custom *.dat image with the changes such as new default address to load it from SD card instead of the one provided by TI (lcr_dm365_v5_sd.dat)?

    Thanks

    Karl

  • Hi Pedro,

    I did a few more trials but every time I get stuck with the Segmentation Fault issue.

    I'd like to check with you if there is an update to this problem.

    Thanks!

    Karl
  • Paul, Pedro,

    This is to let you know that I still didn't get a reply to my questions from 1st June.

    Thanks!

    Karl
  • Hi Karl,

    Please accept our apologies. Your question has required some digging on our part and we're still working on getting you an answer. Thanks for pinging us with a reminder, we'll do our best to have something soon.

    - Paul
  • Hi Paul,

    thanks for trying to find a solution. I hope you'll have it soon.

    Karl
  • Hi Paul,

    is there some progress with changing the default IP address? This really is a bit of a headache for me, since after each reflash of DM365, I loose connection and I have to disable my network on PC, restate the connection with Lightcrafter, change it's address to 10.10.10.2 and only then I can work normally.

    Thanks,
    Karl
  • Karl,

    Unfortunately we're having trouble building the environment required to get the DVDSK up and running to see how to make this change. The Lightcrafter came out in 2012 and it's been quite some time since we've updated the DM365 software.

    -Paul