Setting up Workbench and Media renderer by Cling

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting up Workbench and Media renderer by Cling

som shekhar
Hi,
I am very fresh and have just started to took a look into Cling which looks promising.

Currently I started with trying to set it on the Windows XP but Cling Renderer is not registering with workbench. Also the Beetle router I configured as Gateway isn't appearing in the workbench.

I am sure I might be missing some steps.

Also is it possible to set the Windows XP box as a UPNP supported Media Server which can be registered with Cling WorkBench?

Any help is appreciated.

My whole intention is to setup a UPNP prototype w/o need to buy any new H/W and using WiFi Router , XP and possibly a mobile phone.

Som Shekhar
Thanks, Som Shekhar
Reply | Threaded
Open this post in threaded view
|

Re: Setting up Workbench and Media renderer by Cling

Christian Bauer
Administrator
Do you see any discovered devices at all in the Workbench?

If not, what are the log messages when you start the Workbench in the log panel at the bottom? Does it detect your network interface correctly with the right IP address?

If your network interface is discovered, click on the yellow Options button and enable logging for Discovery and maybe even all UDP messages. Then click on "Refresh" on the device list panel and look at the log messages. You should see search responses from your devices.
Reply | Threaded
Open this post in threaded view
|

Re: Setting up Workbench and Media renderer by Cling

som shekhar
hi Christian,

No network interface is appearing though i was able to configure the router as gateway.

Following is the log from WorkBench:

INFO - 19:39:36:812 - main : teleal.cling.UpnpServiceImpl.<init> : >>> Starting UPnP service...
INFO - 19:39:36:812 - main : teleal.cling.UpnpServiceImpl.<init> : Using configuration: org.teleal.cling.DefaultUpnpServiceConfiguration
INFO - 19:39:36:812 - main : cling.transport.RouterImpl.<init> : Creating Router: org.teleal.cling.transport.RouterImpl
INFO - 19:39:37:437 - main : transport.impl.StreamServerImpl.init : Created server (for receiving TCP streams) on: /192.168.1.4:4582
INFO - 19:39:37:437 - main : transport.impl.MulticastReceiverImpl.init : Creating wildcard socket (for receiving multicast datagrams) on port: 1900
INFO - 19:39:37:437 - main : transport.impl.MulticastReceiverImpl.init : Joining multicast group: /239.255.255.250:1900 on network interface: Intel(R) Wireless WiFi Link 4965AG - Teefer2 Miniport
INFO - 19:39:37:437 - main : transport.impl.DatagramIOImpl.init : Creating bound socket (for datagram input/output) on: /192.168.1.4
INFO - 19:39:37:453 - main : teleal.cling.UpnpServiceImpl.<init> : <<< UPnP service started successfully


INFO - 19:41:38:875 - AWT-EventQueue-0 : Bridge : No InternetGatewayDevice for automatic NAT port mapping discovered.
INFO - 19:41:38:875 - AWT-EventQueue-0 : Bridge : Ensure this host is reachable from the WAN via TCP and the shown port!
INFO - 19:41:50:500 - AWT-EventQueue-0 : cling.bridge.BridgeUpnpServiceConfiguration.<init> : Bridge configured with local URL: http://192.168.1.1:4591/?auth=cd292u0twjiti05nhwlql93k
INFO - 19:41:50:593 - AWT-EventQueue-0 : util.log.Slf4jLog.info : jetty-
INFO - 19:41:50:890 - AWT-EventQueue-0 : util.log.Slf4jLog.info : Started SocketConnector@192.168.1.4:4591
INFO - 19:41:50:890 - AWT-EventQueue-0 : Bridge : Started bridge with local base URL: http://192.168.1.1:4591

Following is the log from Renderer:
INFO - 19:39:58:890 - main : teleal.cling.UpnpServiceImpl.<init> : >>> Starting UPnP service...
INFO - 19:39:58:890 - main : teleal.cling.UpnpServiceImpl.<init> : Using configuration: org.teleal.cling.DefaultUpnpServiceConfiguration
INFO - 19:39:58:906 - main : cling.transport.RouterImpl.<init> : Creating Router: org.teleal.cling.transport.RouterImpl
INFO - 19:39:59:156 - main : transport.impl.StreamServerImpl.init : Created server (for receiving TCP streams) on: /192.168.1.4:4586
INFO - 19:39:59:156 - main : transport.impl.MulticastReceiverImpl.init : Creating wildcard socket (for receiving multicast datagrams) on port: 1900
INFO - 19:39:59:171 - main : transport.impl.MulticastReceiverImpl.init : Joining multicast group: /239.255.255.250:1900 on network interface: Intel(R) Wireless WiFi Link 4965AG - Teefer2 Miniport
INFO - 19:39:59:171 - main : transport.impl.DatagramIOImpl.init : Creating bound socket (for datagram input/output) on: /192.168.1.4
INFO - 19:39:59:171 - main : teleal.cling.UpnpServiceImpl.<init> : <<< UPnP service started successfully
INFO - 19:39:59:187 - Thread-6 : null : Initializing GStreamer backend and registering MediaRenderer device...
INFO - 19:39:59:187 - Thread-6 : null : Enabling fullscreen handler (press ESC to exit) with resolution: 1280x800
INFO - 19:40:02:281 - Thread-6 : null : Initialization complete!

I kept the logs at info level intentionally and in case you feel you can help better with deeper logs I will post it too.

Som Shekhar
Thanks, Som Shekhar
Reply | Threaded
Open this post in threaded view
|

Re: Setting up Workbench and Media renderer by Cling

som shekhar
Also just to confirm to you the workbench is not showing any network interface which in my case is the WiFi Router from Beetle  450 TC1.
Som Shekhar
Thanks, Som Shekhar
Reply | Threaded
Open this post in threaded view
|

Re: Setting up Workbench and Media renderer by Cling

Christian Bauer
Administrator
In reply to this post by som shekhar
ss2000 wrote
No network interface is appearing though i was able to configure the router as gateway.
This is the network interface:

INFO - 19:39:37:437 - main : transport.impl.MulticastReceiverImpl.init : Joining multicast group: /239.255.255.250:1900 on network interface: Intel(R) Wireless WiFi Link 4965AG - Teefer2 Miniport
INFO - 19:39:37:437 - main : transport.impl.DatagramIOImpl.init : Creating bound socket (for datagram input/output) on: /192.168.1.4

So the Workbench is running fine and it is bound and listening on your LAN.

INFO - 19:41:38:875 - AWT-EventQueue-0 : Bridge : No InternetGatewayDevice for automatic NAT port mapping discovered.

Here you clicked the "Configure Bridge" button and no IGD was discovered - which is not a surprise because you said you don't see it in the list. The bridge is not relevant for what you want, forget about it.

Then you started the MediaRenderer application on the same machine:

INFO - 19:39:59:156 - main : transport.impl.StreamServerImpl.init : Created server (for receiving TCP streams) on: /192.168.1.4:4586
INFO - 19:39:59:156 - main : transport.impl.MulticastReceiverImpl.init : Creating wildcard socket (for receiving multicast datagrams) on port: 1900
INFO - 19:39:59:171 - main : transport.impl.MulticastReceiverImpl.init : Joining multicast group: /239.255.255.250:1900 on network interface: Intel(R) Wireless WiFi Link 4965AG - Teefer2 Miniport
INFO - 19:39:59:171 - main : transport.impl.DatagramIOImpl.init : Creating bound socket (for datagram input/output) on: /192.168.1.4

It's bound and ready for discovery. There is nothing else I can tell you from these logs except that everything looks fine.

Your problem is that nothing is discovered. This could mean you have a multicast problem. What operating system and version is this? As I've said before, you need to enable logging for UDP messages and discovery and read the log. If there are no UDP messages when you search (click "Refresh") in any log, then your multicasting doesn't work.

Reply | Threaded
Open this post in threaded view
|

Re: Setting up Workbench and Media renderer by Cling

som shekhar
Christian,


I am using Windows XP and JRE 1.6.2_20.

I enabled the all the logs on the two applications.
On Workbench there aren't any updates appearing after doing this but on Media Renderer i get following:
FINE - 23:34:47:937 - Thread-7 : cling.model.DefaultServiceManager.lock : Acquired lock
FINE - 23:34:47:937 - Thread-7 : cling.model.DefaultServiceManager.unlock : Releasing lock
FINE - 23:34:47:937 - Thread-7 : cling.model.DefaultServiceManager.lock : Acquired lock
FINE - 23:34:47:937 - Thread-7 : cling.model.DefaultServiceManager.unlock : Releasing lock

As suggested by you this can be due to UDP broadcast issue. I am checking if this is disabled through any configuration on my box.  Mean while suggest if there is anything visible through the logs.

Also as note :
The logs setting goes away once i restart the apps thus always starting with default logs setting.
Thanks, Som Shekhar
Reply | Threaded
Open this post in threaded view
|

Re: Setting up Workbench and Media renderer by Cling

som shekhar
After doing Refresh on workbecnh following logs appear:
INFO - 23:49:54:390 - main : teleal.cling.UpnpServiceImpl.<init> : >>> Starting UPnP service...
INFO - 23:49:54:390 - main : teleal.cling.UpnpServiceImpl.<init> : Using configuration: org.teleal.cling.DefaultUpnpServiceConfiguration
INFO - 23:49:54:406 - main : cling.transport.RouterImpl.<init> : Creating Router: org.teleal.cling.transport.RouterImpl
INFO - 23:49:54:656 - main : transport.impl.StreamServerImpl.init : Created server (for receiving TCP streams) on: /10.0.0.2:3879
INFO - 23:49:54:656 - main : transport.impl.MulticastReceiverImpl.init : Creating wildcard socket (for receiving multicast datagrams) on port: 1900
INFO - 23:49:54:656 - main : transport.impl.MulticastReceiverImpl.init : Joining multicast group: /239.255.255.250:1900 on network interface: Intel(R) Wireless WiFi Link 4965AG - Teefer2 Miniport
INFO - 23:49:54:656 - main : transport.impl.DatagramIOImpl.init : Creating bound socket (for datagram input/output) on: /10.0.0.2
INFO - 23:49:54:656 - main : teleal.cling.UpnpServiceImpl.<init> : <<< UPnP service started successfully
FINE - 23:50:49:390 - AWT-EventQueue-0 : cling.controlpoint.ControlPointImpl.search : Sending asynchronous search for: ssdp:all
FINE - 23:50:49:390 - Cling Thread 19 (Active: 4) : protocol.async.SendingSearch.execute : Executing search for target: ssdp:all with MX seconds: 1
FINE - 23:50:49:390 - Cling Thread 19 (Active: 4) : transport.impl.DatagramIOImpl.send : Sending message from address: /10.0.0.2:0
FINER - 23:50:49:390 - Cling Thread 19 (Active: 4) : transport.impl.DatagramProcessorImpl.write : Writing message data for: (OutgoingSearchRequest) M-SEARCH
FINER - 23:50:49:390 - Cling Thread 19 (Active: 4) : transport.impl.DatagramProcessorImpl.write : ---------------------------------------------------------------------------------
FINER - 23:50:49:390 - Cling Thread 19 (Active: 4) : transport.impl.DatagramProcessorImpl.write : M-SEARCH * HTTP/1.1
Man: "ssdp:discover"
Mx: 1
Host: 239.255.255.250:1900
St: ssdp:all

FINER - 23:50:49:390 - Cling Thread 19 (Active: 4) : transport.impl.DatagramProcessorImpl.write : ---------------------------------------------------------------------------------
FINE - 23:50:49:406 - Cling Thread 19 (Active: 4) : transport.impl.DatagramProcessorImpl.write : Writing new datagram packet with 94 bytes for: (OutgoingSearchRequest) M-SEARCH
FINE - 23:50:49:406 - Cling Thread 19 (Active: 4) : transport.impl.DatagramIOImpl.send : Sending UDP datagram packet to: /239.255.255.250:1900
FINE - 23:50:49:406 - Cling Thread 19 (Active: 4) : transport.impl.DatagramIOImpl.send : Sending message from address: /10.0.0.2:0
FINER - 23:50:49:406 - Cling Thread 19 (Active: 4) : protocol.async.SendingSearch.execute : Sleeping 100 milliseconds
FINE - 23:50:49:500 - Cling Thread 19 (Active: 4) : transport.impl.DatagramIOImpl.send : Sending message from address: /10.0.0.2:0
FINER - 23:50:49:500 - Cling Thread 19 (Active: 4) : transport.impl.DatagramProcessorImpl.write : Writing message data for: (OutgoingSearchRequest) M-SEARCH
FINER - 23:50:49:500 - Cling Thread 19 (Active: 4) : transport.impl.DatagramProcessorImpl.write : ---------------------------------------------------------------------------------
FINER - 23:50:49:500 - Cling Thread 19 (Active: 4) : transport.impl.DatagramProcessorImpl.write : M-SEARCH * HTTP/1.1
Man: "ssdp:discover"
Mx: 1
Host: 239.255.255.250:1900
St: ssdp:all

FINER - 23:50:49:500 - Cling Thread 19 (Active: 4) : transport.impl.DatagramProcessorImpl.write : ---------------------------------------------------------------------------------
FINE - 23:50:49:500 - Cling Thread 19 (Active: 4) : transport.impl.DatagramProcessorImpl.write : Writing new datagram packet with 94 bytes for: (OutgoingSearchRequest) M-SEARCH
FINE - 23:50:49:500 - Cling Thread 19 (Active: 4) : transport.impl.DatagramIOImpl.send : Sending UDP datagram packet to: /239.255.255.250:1900
FINE - 23:50:49:500 - Cling Thread 19 (Active: 4) : transport.impl.DatagramIOImpl.send : Sending message from address: /10.0.0.2:0
FINER - 23:50:49:500 - Cling Thread 19 (Active: 4) : protocol.async.SendingSearch.execute : Sleeping 100 milliseconds

Please suggest.
Thanks, Som Shekhar
Reply | Threaded
Open this post in threaded view
|

Re: Setting up Workbench and Media renderer by Cling

Christian Bauer
Administrator
UDP datagrams are going OUT but nothing comes IN. That probably indicates that there is a problem with your network on your machine or LAN (e.g. your Windows is broken or your gateway/router doesn't support multicast). I also notice that your network IP keeps changing, earlier it was 192.168.0.x now it is 10.x.x.x. I'm assuming that is you doing some tests. Sorry, but I can't help you with this problem, it's outside of Cling.
Reply | Threaded
Open this post in threaded view
|

Re: Setting up Workbench and Media renderer by Cling

som shekhar
Thanks Christian for guiding.

Yes the two networks have been different but have been behaving similarly. But yes I agree that there is some problem with the UDP broadcast in the system. I will check this up.

Som Shekhar
Thanks, Som Shekhar
Reply | Threaded
Open this post in threaded view
|

Re: Setting up Workbench and Media renderer by Cling

Brad
I had similar problem and corrected it by enabling in the firewall settings the ports:
UDP 1900
TCP/IP 2869.  

I am running Ubuntu linux 12.04