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.

How to set DM365IPNC IP address ?



Hello,

I'm using DM365 IPNC. I want to play RTSP streaming demo on VLC player.

Today, I configured static IP for DM365IPNC by u-boot environment variables.

But DM365IPNC IP address did not change !  (keep default IP 192.168.1.168).

Why ?  I cannot understand.

How to change ?



Following are the setting content :

● I moved the switch on the hardware to position 4  (I configured the device for static ip.)


● Run filesystem from NAND :

tftpboot 0x80700000 uImage_ipnc_DM365;nand erase 0x500000 0x200000;nand write 0x80700000 0x500000 0x200000

tftpboot 0x82000000 cramfsImage_ipnc_dm365_1.5.0;nand erase 0x700000 0xD00000;nand write 0x82000000 0x700000 0xD00000


● u-boot environment variables :

bootdelay=4

baudrate=115200

ethaddr=00:0C:0C:A0:02:75

bootfile=uImage_ipnc_dm365

nfshost=10.33.17.21

rootpath=/home/d128745/APPRO/IPNetCam/ipnc/target/filesys

ipaddr=10.33.17.177

serverip=10.33.17.21

bootcmd=nand read 0x82000000 0x700000 0xD00000;nboot 0x80700000 0 0x500000;bootm

bootargs=mem=56M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,14M ip=10.33.17.177:10.33.17.21:10.33.17.254:255.255.255.0:::off

eth=00:0C:0C:A0:02:75


● Boot ... success  & login root


● Network environment

# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:0C:A0:02:75

             inet addr:192.168.1.168  Bcast:192.168.1.255  Mask:255.255.255.0

             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

             RX packets:367 errors:0 dropped:0 overruns:0 frame:0

             TX packets:24 errors:0 dropped:0 overruns:0 carrier:0

             collisions:0 txqueuelen:1000

             RX bytes:64009 (62.5 KiB)  TX bytes:9569 (9.3 KiB)

             Interrupt:52 Base address:0x7000


● Execute the demo

Play this stream using the URL:

                    rtsp://192.168.1.168:8556/h264

● I cannot play RTSP streaming demo on VLC player

protocol : RTSC

URL : rtsp://192.168.1.168:8556/h264

port : 1234



I'm sorry, I'm afraid you must be having a hard time understaing my poor English.

  • Open the URL in IE with 192.168.1.168 and then go to network and port page.

    You ca change the assigned IP from this window.

    Howver, this window becomes read only when switched to DHCP.

     

    Regards,

     

    Raghu

     

  • Hi Raghu, thanks for your replay.


    Why isn't static IP changed from the environment variable ?

    I have the following hypotheses.

    ● IP address is changed to the default 192.168.1.168 by some process.   (for example, Boot process. Script process.)

    ● DM365IPNC can use only default IP 192.168.1.168.

    What do you think ?

  • hi

    i am also trying the same thing.

    but related to ip address it will set to default IP address only.

    so i added same domain ip address on my TCPIP properties.

    Mynetwork palce -> properties ->Local areea connection Properties -> internet protocol (TCP/IP) ->prperties->advanced -> add

    some free available ip addres for your system with 192.168.1.x ( ex 192.168.1.170 ) -> ok

    now in your internet browser if you will type the static ip http://192.168.1.168 you will get the login window, then it should ask for the

    video device control security window. for me  it didn't ask and still i am not able to play the video neither in VLC not in internet explorer.

     

    --sujit

     

     

     

  • Hello,

     

    the 192.168.1.168 IP address is hard coded in the IPNC application, (ipnc_app/include/system_default.h).

    If you change the IP address using Appro's web interface, the IPNC application will store it  in sysenv.cfg (by default in /mnt/nand/sysenv.cfg).

    So, if your IP address does not survive restart :), the problem is probably in storage, your /mnt/nand is read only for example.

     

    Best regards.

  • Hi sujit

    thanks for your replay.

     

    Did you change only the IP (192.168.1.170) setting of server PC ?

    I was not found the meaning by the set of IP from the environment variable.

     

    Could you show me the environment variable ?

  •  

    Hi nequam, thanks for your replay.


    I saw system_default.h

     #define SYS_FILE    "/mnt/nand/sysenv.cfg"

     #define IP_DEFAULT    IPV4 (192,168,  1,168)


    > If you change the IP address using Appro's web interface, the IPNC application will store it  in sysenv.cfg

    A few question.

    ● What is sysenv.cfg ?

    ● Is IP address of IPNC changed by sysenv.cfg ?

    ● IPNC application will store IP address in sysenv.cfg. Where is this application. Is it web application ?

    ● Does the environment variable have the meaning ?

    ● Does sysenv.cfg exist in EVM ? ( I was able to change IP from the environment variable in DM365EVM)

  • Hello,

     

    1. sysenv.cfg is a binary file, where the IPNC application stores its settings (it is just struct SysInfo saved to a file as is). 

    2. You can change the IP address in code (system_default.h) or via the IPNC web interface. Your custom IP address is stored in sysenv.cfg.

    3. sysenv.cfg does not exist in EVM, it is created/used by Appro IPNC application only.

     

    Best regards.

  • Hi nequam.

     

    I understand !

    But I cannot change the IP address in code (system_default.h).

     

    system_default.h :

    #define IP_DEFAULT                    IPV4( 10, 33, 17,177)

    #define NETMASK_DEFAULT                IPV4(255,255,255,  0)

    #define GATEWAY_DEAFULT                IPV4( 10, 33, 17,254)

    #define DNS_DEFAULT                    IPV4( 10, 33, 17,  1)

     

    ifconfig :

    inet addr:192.168.1.168  Bcast:192.168.1.255  Mask:255.255.255.0

  • Hi:

        You can modify ip address in "system_default.h", and rebuild them:

       $ make clean && make exe && make install

       And login your IPNC,  copy file to your system (/opt/ipnc) and delete system config like this:

      $flash_eraseall   /dev/mtd4

      $reboot

     

  • Hi gomo, thanks for your replay.


    I can modify ip address in "system_default.h" ! 

    Thank you !!!


    > copy file to your system (/opt/ipnc) and delete system config like this:

    I can do it. However, I do not understand.

    ● What is the "copy file" that you say ? filesystem ? flash_eraseall ?

    ● $cat /proc/mtd

    dev:    size   erasesize  name

    mtd0: 00080000 00004000 "bootloader"

    mtd1: 00180000 00004000 "params"

    mtd2: 00200000 00004000 "kernel"

    mtd3: 01800000 00004000 "filesystem1"

    mtd4: 00400000 00004000 "filesystem2"  

    Which is the filesystem including system config ? filesystem1 ? filesystem2 ?

    Why did it notice that it was mtd4 ?

  • Hello,

     

    gomo suggested you to delete the sysenv.cfg  file by erasing mtd4 nand partition which is mounted as jffs2 file system at  /mnt/nand. You can also just remove the file without erasing the whole partition ("rm -f /mnt/nand/sysenv.cfg").

    mtd3: 01800000 00004000 "filesystem1" is a nand partition which contains the root file system (cramfs) (copied to the ram by u-boot)

    mtd4: 00400000 00004000 "filesystem2" is a nand partition which contains the additional disk file system (jffs2)

     

    As you can see in the system_default.h:

    #define SYS_FILE    "/mnt/nand/sysenv.cfg"

    run "mount" command and you will see the mount points

    ...

    /dev/mtdblock4 on /mnt/nand type jffs2 (rw,sync)

    Best regards.


     

  • I understood. Thank you nequam.

  • Hi all.

    similiar this issues. how can I set the MAC address?

    U-boot cmd argue and kernel mac doesn't matchs. I want to set the MAC addr.

    I also post this issue.

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/p/97734/341422.aspx#341422

    please check it out.

    thank you