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 make streaming by VLC through Wifi in DM385 IPNC

Other Parts Discussed in Thread: DM385, WL1271

Hi,

I have a DM385 IPNC with Wifi module (TMDSIPCAM385MN34041).

Refer to 3.7 in IPNC_RDK_InstallGuide.pdf, I can setup Wifi in DM385 successfully.

Now I want to do streaming by VLC through Wifi.

The IP address of ethernet0 was 192.168.1.168, and wlan0 was 192.168.1.102.

They were in same sub-network, therefore, I had to change ethernet0 to another address.

I tried to let VLC use URL: rtsp://192.168.1.102:8557/PSIA/Streaming/channels/2?videoCodecType=H.264, but it did not work.

Because the streaming server (wis-streamer ) was bound to 192.168.1.168 when system was up, I changed wlan0’s IP address to 192.168.1.168, then I tried to  let VLC use URL: rtsp://192.168.1.168:8557/PSIA/Streaming/channels/2?videoCodecType=H.264, but it did not work either.

Then I tried to restart wis-streamer, but, it was bound to ethernet0 by default and I do not know how to change the parameter to select the input device.

Could someone please help to tell me how to make streaming by VLC through Wifi in DM385?

 

Thanks and Best Regards,

Ivy

  • Hello,

    Can you try this command "ifconfig -a" and check what ipaddress is getting assigned?

    Also, you can change by using this command "ifconfig wlan0 192.168.1.101"


    In additon, please join the local modem using command

    iw wlan0 scan | grep SSID

    iw wlan0 connect <SSID>


    After successful execution of this, please connect the PC or laptop to same rauter and put your PC/Laptop to sattuc IP mode and assign other ipaddress like 192.168.1.10


    Now you should be able to stream from VLS< but need to ensure PC/Laptop, IPNC and Ruter are in same subnetmask and same network


    Regards,


    Raghu


    Our setting:

    Set GatewayIP at router, IPNC and PC/Laptop : 192.168.1.1

    subnet mask of all of them: 255.255.255.0

    IP address of IPNC: 192.168.1.101

    IP address of PC/Laptop: 192.168.1.10

  • Hi Raghu,

    Thank you very much for your reply.

    I have successfully setup the Wifi module.

    I can ping from my PC to DM385 IPNC and ping back too.

    Everything is fine with the Wifi Module.

    But the problem is the streaming server wis-streamer was bound to port eth0, and I can not bind it to wlan0.

    I want to bind it to port wlan0 and streaming to my PC with VLC.

     

    Thanks and Best Regards,

    Ivy

  • Ivy,

    You need to enter the ip address of the wlan0 in the VLC player, this will ping the wlan0 ipaddr for video data.

    wis-streamer inturn will bind the wlan0 based on the ipaddr requested to be streamed.

    We are able to do streaming via wired as well as wifi at same time using our local setup 

    Howver, there is one point to note, for alarm setting feature of IPNC where it will trigger and save the data to SDCARD when Wired network is removed (stopping/halting streaming) . So please have always wired network connected so that this alarm is not triggered. 

    You can remove this dependency based on your requirement and needs of the product

    Regards,

    Raghu

  • Hi Raghu,

    Thank you very much for the reply.

    It still does not work.

    Please see my procedure below.

    1)  When system is on, wis-streamer was bound to 192.168.1.168

    rtsp://192.168.1.168:8557/PSIA/Streaming/channels/2?videoCodecType=H.264

    2) # ifconfig wlan0 up

    # iw wlan0 connect ivylan

    # ifconfig wlan0 192.168.1.101

    # ifconfig eth0 10.0.0.2

    # ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:0C:0C:02:39:B0
              inet addr:10.0.0.2  Bcast:10.255.255.255  Mask:255.0.0.0
              UP BROADCAST ALLMULTI MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:40

    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:43 errors:0 dropped:0 overruns:0 frame:0
              TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:14007 (13.6 KiB)  TX bytes:14007 (13.6 KiB)

    wlan0     Link encap:Ethernet  HWaddr 00:0C:0C:A0:06:4C
              inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:48 errors:0 dropped:0 overruns:0 frame:0
              TX packets:163 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000

    # route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
    10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth0

    I can ping to my PC 192.168.1.100 at this time.

    But after I tried to use VLC to get the URL rtsp://192.168.1.101:8557/PSIA/Streaming/channels/2?videoCodecType=H.264, I can not ping successfully from DM385 to my PC anymore.

    Thanks and Best Regards,
    Ivy

  • Hello,

    Can you please put the camera to static IP mode but turning the switch on IPNC to '4' on the IPNC panel?

    Once this is done ,  please connect the wired cable to PC and IPcamera and open the webGUI in internet explorer 

    In network page, please open the network page and assign the new IP address

    Now, open the webpage with new addresses to check if this is fine

    Regards,

    Raghu

  • Hello,

    Also, please esnure that wired setup is active all the time with active IP addr when you are testing wifi streaming

    Else this will go to SDCARD saving mode only as it detects that primary network is broken

    Regards,

    Raghu

  • Hi Raghu,

    Sorry for the late reply.

    I have changed my ethernet static IP address and SDcard was always in.

    But I still can not access webpage and make streaming by VLC throughh wifi, it alway has error below. 

    wl1271_sdio mmc0:0001:2: sdio write failed (-84)

     

    Thanks and Best Regards,

    Ivy

  • Hello Ivy,

    I suspect that the WiFI card in it mihgt have some issues, can you check in the box if the card is making proper contact (need to open the box for this)

    Else, you might need to send it to APpro for repair and check for hardware issue with the wifi card

    Regards,

    Raghu

  • Hi Raghu,

    Thank you very much for your reply.

    I will try to open it.

     

    Thanks and Best Regards,

    Ivy

  • Hi Raghu,

    I have opened the box and reconnected the card.

    But that problem is still there.

     

    Thanks and Best Regards,

    Ivy