Page 1 of 1

How to identify the Popcorn Hour A110

Posted: Tue Mar 24, 2009 9:44 pm
by xaviour
Twonkymedia 4.4.11 (as shipped in the latest version of the QNAP TS 109 II firmware) is currently not capable of selecting the correct device type for the Popcorn Hour A110 (thereafter PCH-A110). Instead of choosing "Syabas Based Firmware", it selects "Generic DLNA 1.0" which disables streaming of m4a files and ogg files.

Because changing the device type manually on the web interface has not been working for a few minor versions of Twonkymedia, I had to patch the "clients.dat" file on my server to work around the problem. The change is crude but effective, overwrite the description of "Generic DLNA 1.0" with the description of "Syabas Based Firmware" but keep the ID. This is not a very end user friendly process.

In the hope that it will help fixing the problem in a future revision of TwonkyMedia Server, I captured the UPnP packets coming from the PCH-A110 with Wireshark. There are 2 slightly different packets:

Code: Select all

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
ETHERNET: 00.06.dc.42.9e.63
CACHE-CONTROL: max-age=1800
LOCATION: http://192.168.1.67:2020/myiBoxUPnP/description.xml
NT: urn:schemas-upnp-org:device:SyabasSTB:1
NTS: ssdp:alive
SERVER: UCosII, UPnP/1.0, Syabas myiBox UPnP-stack, v1.0
USN: uuid:myiBoxUPnP::urn:schemas-upnp-org:device:SyabasSTB:1

Code: Select all

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
ETHERNET: 00.06.dc.42.9e.63
CACHE-CONTROL: max-age=1800
LOCATION: http://192.168.1.67:2020/myiBoxUPnP/description.xml
NT: urn:schemas-upnp-org:device:SyabasSTB:1
NTS: ssdp:alive
SERVER: UCosII, UPnP/1.0, Syabas myiBox UPnP-stack, v1.0
USN: uuid:myiBoxUPnP
It should be noted that Wireshark identifies the MAC address of the PCH-A110 as belonging to Syabas:

Code: Select all

Ethernet II, Src: SyabasTe_42:9e:63 (00:06:dc:42:9e:63), Dst: IPv4mcast_7f:ff:fa (01:00:5e:7f:ff:fa)
Understanding that Packet Video might not have a device to test against, I am volunteering to spent some time testing a potential bug fix.

Re: How to identify the Popcorn Hour A110

Posted: Thu Apr 23, 2009 10:08 am
by L4ngley
Hi, good to hear im not the only one unable to save the settoings, and great you fond a workaround selecting the proper device.

EDIT: I have a TS-809Pro
I am totaly new to both Qnap, linux and twonky.

My problem is that as long as Twonky automaticly reselects "Generic DLNA 1.0" for me i can not even play mp3's . I change it to syabas and sometimes it stays for a few minuts. Twonky puts it back after a while. And when that happens i am not even able to play MP3s. PCH reports "no content".

So i guess i wil try to copy the settings for "Syabas Based Firmware" to "Generic DLNA 1.0" .

Problem: have no idea where to find this clients.dat file.
Have looked for shares, but only found "/.@twonkymedia.db"
This share dos not have any "clients.dat" file.

Do i have to do this from the consoe using lots of linux comands.. then I am in deep water :)

Re: How to identify the Popcorn Hour A110

Posted: Thu Apr 23, 2009 8:36 pm
by xaviour
L4ngley wrote:Problem: have no idea where to find this clients.dat file.
On my TS-109 II (which has only one hard drive) the file is located in the following directory:

Code: Select all

/mnt/HDA_ROOT/twonkymedia/resources
Because the TS-809 Pro has more than 1 hard drive and use a different firmware than my device, the file might be located somewhere else. You should be able to find the file by running the following command on your NAS:

Code: Select all

find /mnt -name clients.db
Please make a copy of the configuration file before trying to change it. Also you might want to let Qnap know about the issue.

Re: How to identify the Popcorn Hour A110

Posted: Fri Apr 24, 2009 12:23 pm
by L4ngley
Thanx to you I found the file. :P

Thought there was a spelling error in your last post and played around with "clients.data" witch is directly under
/mnt/HDA_ROOT/twonkymedia

But i found the db file under
"/mnt/HDA_ROOT/twonkymedia/resources"

Have antoher question, about what parts to replace...

Here is the part with the Original Generic DLNA 1.0 :

Code: Select all

ID:009
NA:Generic DLNA 1.0
HH:DLNADOC/1.00
HP:chunked
XM:DLNA10
DB:AUTO
Here is the part with the Syabas Firmware based:

Code: Select all

ID:037
NA:Syabas Firmware based
HH:Syabas
MT:aif,aiff audio/aiff
MT:avi,divx video/avi
MT:flac audio/flac
MT:lpcm,pcm audio/lpcm
MT:mp4 video/MP4V-ES
MT:m4a,mp4.a,3gp.a,m4b audio/mp4
MT:mp1,mp2 audio/mpeg
MT:ogg audio/x-ogg 
MT:ts video/mpeg
MT:wav audio/wav
PX:1920
PY:1080
XM:ADDTITLETOURL
XM:DLNANO
XM:IGNORESORT
DB:AUTO


would it be corect to overwrite the enitere Generic DLNA 1.0 with this:

Code: Select all

ID:009
NA:Generic DLNA 1.0
HH:DLNADOC/1.00
MT:aif,aiff audio/aiff
MT:avi,divx video/avi
MT:flac audio/flac
MT:lpcm,pcm audio/lpcm
MT:mp4 video/MP4V-ES
MT:m4a,mp4.a,3gp.a,m4b audio/mp4
MT:mp1,mp2 audio/mpeg
MT:ogg audio/x-ogg 
MT:ts video/mpeg
MT:wav audio/wav
PX:1920
PY:1080
XM:ADDTITLETOURL
XM:DLNANO
XM:IGNORESORT
DB:AUTO
Have I copyed to much or to litle to Generic?

Re: How to identify the Popcorn Hour A110

Posted: Tue Jun 23, 2009 10:34 pm
by wantstuff
I've had success with getting Twonky 4.4.4 and 4.4.11 to recognise the A-110 by adding the following lines to the clients file. On my Windows Home Server (HP EX475) the clients file is C:\TwonkyMedia\resources\clients.db.

Code: Select all

ID:39
NA:Popcorn Hour A-110/B-110
HH:SMP8634, UPnP/1.0, DLNADOC/1.00 INTEL_NMPR/2.1
MT:aif,aiff audio/aiff
MT:avi,divx video/avi
MT:flac audio/flac
MT:lpcm,pcm audio/lpcm
MT:mp4 video/MP4V-ES
MT:m4a,mp4.a,3gp.a,m4b audio/mp4
MT:mp1,mp2 audio/mpeg
MT:ogg audio/x-ogg 
MT:ts video/mpeg
MT:wav audio/wav
PX:1920
PY:1080
XM:ADDTITLETOURL
XM:DLNA10
XM:IGNORESORT
DB:AUTO
Now some notes about these settings (the field descriptions can be found at the bottom of the clients file)...
  • Check that ID number 39 doesn't already exist in your clients file. I picked 39 because it wasn't already in use, and I kept it below 92 because of the comment "LAST USED ID 92" at the bottom of the file.
  • The NA field is free text, I just chose "Popcorn Hour A-110/B-110" because it seemed logical. I've assumed it'll also work with the B-110 as this is the bare-bones version of the A-110.
  • The HH field is required exactly as above, this is what the A-110 identifies itself as to Twonky.
  • With the exception of the field XM:DLNA10, the remainder is copied from the "Syabas Firmware based" client. I changed XM:DLNANO to XM:DLNA10 because the A-110 supports DLNA v1.0.
With this entry in your clients file you no longer need to edit the "Generic DLNA 1.0" entry that Twonky falls back on when it doesn't recognise the DMR.

Regards