DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2012-06-06 07:35:49

rac8006
Member
Registered: 2010-10-15
Posts: 13

upnp av server

Does anybody know what process or program is run when you request a refresh in upnp av server from the web page?

RAC

Offline

 

#2 2013-10-28 19:57:58

NFN_NLN
Member
Registered: 2010-11-21
Posts: 5

Re: upnp av server

I was about to ask the same question but I thought I would do a quick search.
I have a DNS-323 and it appears the UPNP doesn't get updated.  I could write scrip to manually update it but I would also like to know if there is a command line option.

Offline

 

#3 2013-10-28 21:25:18

rsd76
Member
Registered: 2010-04-18
Posts: 47

Re: upnp av server

Hi,

The page you request pressing the Refresh button is: http://<ip>/goform/PreScan"
The web server for the admin pages is /web/webs.
In the "strings /web/webs" output I found references to "prescan".
There's a link in /usr/sbin called prescan (links to /sys/crfs/sbin/prescan).
If I run this command  I get the following output:

Code:

Codepage[0] not found, set to default fromcode
sharefolder /mnt/HD_a2/path/to/media/
count file-->
SQLite db file create
creat table-->
Scan Music -->
get_media_info():Get Video info failure!!!
  filename [/mnt/HD_a2/path/to/media/Movie1.avi]
progress 22
get_media_info():Get Video info failure!!!
  filename [/mnt/HD_a2/path/to/media/Movie2.avi]
Parse playlist-->
progress 45
Sort DBtable-->
Assign path_objid_tbl media-->
progress 99
Cover old-DB table-->
Finish-->
total_scan_cnt[2]
progress 100
Version: inotify upnp v1.04.20090406
kernel version: 2.6.12.6-arm1
UpnpavFolder = [/mnt/HD_a2/path/to/media]
this_file = [0: /mnt/HD_a2/path/to/media]
OK: Inotify Watches Established.

So this has something to do with it.
There are Inotify watches metions, these should detect changes (add/remove files).
Beside the upnp server "/sys/custom/upnp/upnp" process, there are also 3 inotify_upnp processes on my dns-323.
After starting the upnp server.

But back to your question: this prescan could be the program you are searching for.

I myself use minidlna http://dns323.kood.org/forum/viewtopic.php?id=7275

HTH,

rsd76Hi,

The page you request pressing the Refresh button is: http(s)hmm/

Last edited by rsd76 (2013-10-28 21:28:40)


Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin & Hobbes)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB