Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tifroz
Streaming Star

<user-device-name/> entry from device-info

The External Control Guide provides a simple way to get the info from a Roku device (See https://sdkdocs.roku.com/display/sdkdoc/External+Control+Guide#ExternalControlGuide-query/device-inf...). The <user-device-name/> always seems to be empty however, even after changing the device's display name (See https://support.roku.com/hc/en-us/articles/208756178-How-to-Change-the-display-name-of-your-Roku-pla...) and doing System > System update.

Am I missing something? Or is the field <user-device-name/> a placeholder meant to be used with future firmware versions only?



// A quick test
curl 'http://10.0.1.120:8060/query/device-info'

<?xml version="1.0" encoding="UTF-8" ?>
<device-info>
<udn>29a40005-4c05-10a5-809-0805812c05b5</udn>
<serial-number>YY005C37089</serial-number>
<device-id>4U761537089</device-id>
<advertising-id>0bed381-9203-5ea0-8412-9a081df1f680</advertising-id>
<vendor-name>Roku</vendor-name>
<model-name>Roku 4</model-name>
<model-number>4400X</model-number>
<model-region>US</model-region>
<wifi-mac>08:05:81:2c:05</wifi-mac>
<ethernet-mac>08:05:81:2c:05</ethernet-mac>
<network-type>wifi</network-type>
<user-device-name/>
<software-version>7.2.0</software-version>
<software-build>4100</software-build>
<secure-device>true</secure-device>
<language>en</language>
<country>US</country>
<locale>en_US</locale>
<time-zone>US/Pacific</time-zone>
<time-zone-offset>-420</time-zone-offset>
<power-mode>PowerOn</power-mode>
<supports-suspend>true</supports-suspend>
<developer-enabled>true</developer-enabled>
<keyed-developer-id>70495b587cd74e7057c718537d563610e80bf0e</keyed-developer-id>
<search-enabled>true</search-enabled>
<voice-search-enabled>true</voice-search-enabled>
<notifications-enabled>true</notifications-enabled>
<notifications-first-use>true</notifications-first-use>
<headphones-connected>false</headphones-connected>
</device-info>
0 Kudos
3 REPLIES 3
belltown
Roku Guru

Re: <user-device-name/> entry from device-info

Mine has the <user-device-name>. It's the same as the <friendlyName> if you go to: http://10.0.1.120:8060/

I too had changed my device's name using the web portal, so I don't know what triggers user-device-name
0 Kudos
EnTerr
Roku Guru

Re: <user-device-name/> entry from device-info

@tifroz -
did you restart the player (or at least forced check for update) after re-naming it in the web portal?
i wouldn't expect rename to work via quantum entanglement 😛
0 Kudos
tifroz
Streaming Star

Re: <user-device-name/> entry from device-info

It's working now after leaving the device untouched overnight. I had forced a system update immediately after setting the device name - but I imagine there may be a lag in picking up these changes?

Thanks for the help!
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.