[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML FormattedTextScreen
Author Message
TekMason Offline
Junior Member
**

Posts: 5
Joined: Dec 2013
Reputation: 0
Post: #1
XML FormattedTextScreen
I am working on a Weather application to use on T38's (38.70.0.132 Firmware) but I am struggling with the FormattedTextScreen object.
This code will only display 2 lines of text:

<YealinkIPPhoneFormattedTextScreen>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>
<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon. Wind southwest 30 km/h. High plus 4.</Line>
</YealinkIPPhoneFormattedTextScreen>

I even tried the sample code on page 17 of the XML Browser Developer's Guide and just like the screen shot there "Header Line3" is not display on the phone.

Any assistance would be appreciated.

Thx,
TekMason
(This post was last modified: 01-13-2014 03:25 PM by TekMason.)
01-13-2014 03:03 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,683
Joined: Dec 2012
Reputation: 25
Post: #2
RE: XML FormattedTextScreen
Hi TekMason,

I think you forget to add <scroll> in your file.
Please test below syntax.
-------------------------------------------------
<YealinkIPPhoneFormattedTextScreen
doneAction="http://10.1.0.105/menu.php"
Beep="yes"
Timeout="60"
LockIn="no">

<Scroll>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>
<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon.</Line>
<Line Size="small">Wind southwest 30 km/h. High plus 4.</Line>
</Scroll>

</YealinkIPPhoneFormattedTextScreen>
-------------------------------------------------
I re-edit this post with right syntax.
(This post was last modified: 01-17-2014 04:44 PM by Yealink Support.)
01-15-2014 04:18 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
TekMason Offline
Junior Member
**

Posts: 5
Joined: Dec 2013
Reputation: 0
Post: #3
RE: XML FormattedTextScreen
Thanks Yealink Support.
The code you posted didn't quite work but it was close enough to send me down the right path.
This is the working code:
-------------------------------------------------
<YealinkIPPhoneFormattedTextScreen
doneAction="http://10.1.0.105/menu.php"
Beep="yes"
Timeout="60"
LockIn="no">

<Scroll>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>
<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon.</Line>
<Line Size="small">Wind southwest 30 km/h. High plus 4.</Line>
</Scroll>

</YealinkIPPhoneFormattedTextScreen>
-------------------------------------------------
There were 2 things in the code you posted that the T38G did not like and caused it to throw a File format errror! message.
1. <?xml version="1.0" encoding="ISO-8859-1"?>
2. The closing scroll tag was lower case, </scroll>. It must be </Scroll>. The T38G is very particular about the XML it receives and case matters.

It is bizarre that the Yealink will only display 2 lines unless they are enclosed within scroll tags. This presents another issue that I will bring up in a new topic.

TekMason
(This post was last modified: 01-17-2014 03:31 AM by TekMason.)
01-17-2014 03:05 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,683
Joined: Dec 2012
Reputation: 25
Post: #4
RE: XML FormattedTextScreen
Hi TekMason,

Thanks to your opinion. I have edited my previous post.
01-17-2014 04:47 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
CWR Offline
Moderator
*****

Posts: 717
Joined: May 2013
Reputation: 7
Post: #5
RE: XML FormattedTextScreen
Can you share a script that you used to create the XML files With the current conditions?
03-04-2014 01:14 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,683
Joined: Dec 2012
Reputation: 25
Post: #6
RE: XML FormattedTextScreen
Hi craigreilly,

You can refer to post #3.
03-04-2014 06:07 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
CWR Offline
Moderator
*****

Posts: 717
Joined: May 2013
Reputation: 7
Post: #7
RE: XML FormattedTextScreen
thanks Support - but this is static content. I am trying to figure out how to serve dynamic content...
03-04-2014 10:54 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication