XML Based Customizable Screen. Rev 1.1



Similar documents
Grandstream XML Application Guide Three XML Applications

Grandstream Networks, Inc.

Grandstream Networks, Inc. GXP2130/2140/2160 Auto-configuration Plug and Play

Academic Calendar for Faculty

Technical Bulletin 18292

Grandstream Networks, Inc. GXV3175 IP Multimedia Phone GUI Customization Guide

Introduction to XML. Data Integration. Structure in Data Representation. Yanlei Diao UMass Amherst Nov 15, 2007

<?xml version="1.0" encoding="utf-8"?> <xsd:schema xmlns:niso="

MATCHDAY September 2014

EHR-IIS Interoperability Enhancement Project. Transport Layer Protocol Recommendation Formal Specification. Version 1.

How To Write A Contract Versioning In Wsdl 2.2.2

Device Feature Key Synchronization

CHAPTER 9: DATAPORT AND XMLPORT CHANGES

XML Schema Definition Language (XSDL)

04 XML Schemas. Software Technology 2. MSc in Communication Sciences Program in Technologies for Human Communication Davide Eynard

Analytics Configuration Reference

Application Notes: MaxCS Connector For Salesforce.com

Table of Contents... iii. Summary of Changes... v. Introduction Getting Started... 3

How To Write A Technical Interoperability Standard For Spain

Grandstream Networks, Inc.

Customer Support Tool. User s Manual XE-A207 XE-A23S. Before reading this file, please read Instruction Manual of XE-A207 and XE-A23S.

Allegato XML flusso richieste di produzione

Grandstream Networks, Inc.

Zebra Real Time Clock Guide

Grandstream Networks, Inc.

Grandstream Networks, Inc. GXP-1450 GXP-2100 GXP-2110 GXP-2120

Portal Connector Fields and Widgets Technical Documentation

Grandstream Networks, Inc.

Grandstream Networks, Inc. UCM6510 Basic Configuration Guide

International University of Monaco 27/04/ :55 - Page 1. Monday 30/04 Tuesday 01/05 Wednesday 02/05 Thursday 03/05 Friday 04/05 Saturday 05/05

International University of Monaco 21/05/ :01 - Page 1. Monday 30/04 Tuesday 01/05 Wednesday 02/05 Thursday 03/05 Friday 04/05 Saturday 05/05

Grandstream Networks, Inc.

Maintaining the Central Management System Database

S PT-E550W ELECTRONIC E C LABELING L SYSTEM

How To Test Your Web Site On Wapt On A Pc Or Mac Or Mac (Or Mac) On A Mac Or Ipad Or Ipa (Or Ipa) On Pc Or Ipam (Or Pc Or Pc) On An Ip

Virtual Fax API User Guide

Information Server Documentation SIMATIC. Information Server V8.0 Update 1 Information Server Documentation. Introduction 1. Web application basics 2

1. Summary Recording triggered by SIP INFO Configurations on the phone How the SIP INFO works... 2

Ubiquity getting started

Security Analytics Engine 1.0. Help Desk User Guide

Access to Kozminski University library databases from home

POINT OF SALES SYSTEM (POSS) USER MANUAL

DiskPulse DISK CHANGE MONITOR

Customizing the Display Background on Polycom VVX Business Media Phones

Elfring Fonts, Inc. PCL MICR Fonts

Qlik REST Connector Installation and User Guide

Configuring the JEvents Component

FINAL SCHEDULE YEAR 1 AUGUST WEEK 1

Your Training Administration tools are hosted in MI HR Self-Service and can be accessed:

File Integrity Monitor Windows Edition Version 4.0

Distributor Control Center Private Label/Channel Administrators

Trading Calendar - East Capital UCITS Funds

Drawing a histogram using Excel

Software User's Guide

Engagement Analytics Configuration Reference Guide

No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation.

Dashboard Skin Tutorial. For ETS2 HTML5 Mobile Dashboard v3.0.2

Quick Start Guide: NotifyLink for Symbian Series 60, 3 rd Edition

480i BROADSOFT SIP IP PHONE RELEASE # 1.0 ADMINISTRATOR GUIDE

KU Information Technology provides wireless access for both the KU campus community and for guest users at many points across campus.

Color Screen Phones: SIP-T48G and SIP-T46G with firmware version 73

Cloud Portal for imagerunner ADVANCE

Avaya IP Office SIP Trunk Configuration Guide

The A2A Data Model and its application in WieWasWie. Michel

Connecting to WebSphere ESB and WebSphere Process Server

Metadata Import Plugin User manual

Safeguard Ecommerce Integration / API

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

BACKUP UTILITY FOR TIMEFORCE

Secure XML API Integration Guide. (with FraudGuard add in)

File types There are certain image file types that can be used in a web page. They are:

Aastra480i SIP Phone Distributor's Guide

Sipstream Hosted PBX Supervisor Guide. Sipstream Hosted PBX Supervisor Guide

DNNCentric Custom Form Creator. User Manual

Virtual Exhibit 5.0 requires that you have PastPerfect version 5.0 or higher with the MultiMedia and Virtual Exhibit Upgrades.

NS DISCOVER 4.0 ADMINISTRATOR S GUIDE. July, Version 4.0

Eventia Log Parsing Editor 1.0 Administration Guide

Creating a Public Knowledge Base with Salesforce Knowledge

Integration SDK (HTTP API)

Load testing with. WAPT Cloud. Quick Start Guide

Polycom VVX 300, 310, 400 and 410 Business Media Phone

GXP line SIP Enterprise Phone Quick Installation Guide

Legal Notes. Regarding Trademarks KYOCERA MITA Corporation

Universal Simple Control, USC-1

How to set up a database in Microsoft Access

INSTALL NOTES Elements Environments Windows 95 Users

Using the Remote Desktop Portal

Business Warehouse Reporting Manual

Audit Management Reference

hand-e-pix Windows Mobile Client

Omnitapps Cloud Request Version 1.0 Manual

Transcription:

XML Based Customizable Screen Rev 1.1 August 10, 2006 1. Introduction Starting from release version 1.0.2.X, GXP-2000 supports the idle screen customization. The designs of the displayed information and layout depend highly upon personal preferences and requirements and have since been requested by various customers for an API to be able to customize the screen. This document specifies the Grandstream XML Customizable Screen API design that will be used on GXP-2000. 2. How It Works and Configuration A new set of configuration options will be introduced as following: Enable Idle-Screen XML Download (P340): NO/YES-HTTP/YES-TFTP (default NO). Possible values 0 (NO)/1 (HTTP)/2 (TFTP), other values ignored. Idle-Screen XML Path (P341): This is a string of up to 128 characters that should contain a path to the XML file. It MUST be in the host/path format. For example: directory.grandstream.com/engineering The feature will be activated when Enable Idle-Screen XML Download is set to YES (HTTP or TFTP) AND a valid Idle-Screen XML Path is set. This feature does not automatically download the XML file in the path even when activated. The following 2 options are added to the Preference LCD GUI submenu: Download SCR XML Erase Custom SCR User will have to choose to Download SCR XML to start the download process. Once the XML is successfully downloaded it will be parsed and be effective right away. The file should also be saved for future use and should be loaded automatically after reboot.

3. XML Syntax XSD file <?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/xmlschema"> <xsd:element name="screen"> <xsd:element name="idlescreen" minoccurs="1" maxoccurs="1"> <xsd:element name="showstatusline" type="xsd:boolean" minoccurs="1" maxoccurs="1" default="true"/> <xsd:element name="displaybitmap" minoccurs="0" maxoccurs="unbounded" nillable="true"> <!-- We only accept Windows Monochrome Bitmap, max 130x64 pixels encoded by base64 --> <xsd:element name="bitmap" type="xsd:base64binary" minoccurs="1" maxoccurs="1"/> <xsd:element name="x" type="xsd:integer" minoccurs="1" maxoccurs="1" default="0"/> <xsd:element name="y" type="xsd:integer" minoccurs="1" maxoccurs="1" default="0"/> <xsd:attribute name="a1reg" type="xsd:boolean"/> <xsd:element name="displaystring" minoccurs="0" maxoccurs="unbounded" nillable="true"> <xsd:element name="displaystr" type="xsd:string" minoccurs="1" maxoccurs="1"/> <xsd:element name="x" type="xsd:integer" minoccurs="1" maxoccurs="1" default="0"/> <xsd:element name="y" type="xsd:integer" minoccurs="1" maxoccurs="1" default="0"/> <xsd:attribute name="a1reg" type="xsd:boolean"/> <xsd:attribute name="font"> <xsd:simpletype> <xsd:enumeration value="f8"/> <xsd:enumeration value="f10"/> <xsd:enumeration value="f13h"/> <xsd:enumeration value="f13b"/> <xsd:enumeration value="f16"/> <xsd:enumeration value="f16b"/> <!-- f18c is a 18 point Comic font --> <xsd:enumeration value="f18c"/> </xsd:attribute> <xsd:attribute name="halign"> <xsd:simpletype> <xsd:enumeration value="left"/> <xsd:enumeration value="center"/> <xsd:enumeration value="right"/> </xsd:attribute> <xsd:attribute name="valign"> <xsd:simpletype> <xsd:enumeration value="top"/> <xsd:enumeration value="center"/> <xsd:enumeration value="bottom"/> </xsd:attribute>

</xsd:schema> 4. Example Idle Screen File <?xml version="1.0"?> <!-- This file creates identical result to GXP-2000 default behavior --> <Screen> <IdleScreen> <ShowStatusLine>true</ShowStatusLine> <DisplayString font="f8"> <DisplayStr>$W, $M $d</displaystr> <X>0</X> <Y>0</Y> <DisplayString font="f13h" halign="center" a1reg="false"> <DisplayStr>$N</DisplayStr> <Y>12</Y> <DisplayString font="f13b" halign="center" a1reg="true"> <DisplayStr>$N</DisplayStr> <Y>12</Y> <DisplayString font="f13h" halign="center" a1reg="false"> <DisplayStr>$X</DisplayStr> <Y>26</Y> <DisplayString font="f13b" halign="center" a1reg="true"> <DisplayStr>$X</DisplayStr> <Y>26</Y> <DisplayString halign="center" valign="bottom"> <DisplayStr>$I</DisplayStr> <Y>48</Y> </IdleScreen> </Screen> 5. XML Explanation Root Element Screen The XML document has root element called Screen; it contains exactly 1 sub-element called IdleScreen. <xsd:element name="screen"> <xsd:element name="idlescreen" type="idlescreentype" minoccurs="1" maxoccurs="1"/> Element IdleScreenType This element defines three components that are makes up the idle screen. These components are defined as elements.

<xsd:complextype name="idlescreentype"> <xsd:element name="showstatusline" type="xsd:boolean" minoccurs="1" maxoccurs="1" default="true"/> <xsd:element name="displaybitmap" type="displaybitmaptype" minoccurs="0" nillable="true"/> <xsd:element name="displaystring" type="displaystringtype" minoccurs="0" nillable="true"/> XML Based Customizable Screen Note: By the above grammar, ShowStatusLine must appear exactly once and any number of DisplayBitmap and DisplayString instances. Display Rules When both DisplayBitmap and DisplayString elements are present, all bitmaps will be rendered before the strings are displayed. When multiple instances of the same type (bitmap/string) are present, they are displayed in the order they appear in the XML and later objects (bitmap/string) may overwrite/corrupt previous objects. Element ShowStatusLine This Boolean element decides if we will display the status bar on the top of the screen. The Status Line includes the registration status icon, volume icon, time/date on the right-top corner, and the horizontal separator line. This element must appear exactly once in IdleScreenType and has a default value of true. When set to false, the origin (x-0, y-0) refers to the absolute top-left corner; when set to true, the origin refers to the reference-origin below status line (x-0,y-16). This means when ShowStatusLine is set to true, all y-offsets are shift down for 16 pixels so the status line will not be corrupted or over-written. Element DisplayBitmap This element carries the information on how a bitmap is to be rendered on screen. It has three mandatory elements and one optional attribute: Element Bitmap This element contains the bitmap encoded by base64 <xsd:element name="bitmap" type="xsd:base64binary" minoccurs="1" maxoccurs="1"/> Note: We only accept Windows Bitmap (file header begins with 0x424D) that is monochrome (1-bit depth) and not exceeding 130x65 pixels (that s our LCD resolution). Anything not bound to the above restriction is dropped and ignored. You may use Windows Paint to change an existing BMP file to 1-bit depth.

Elements X and Y This element contains X and Y offsets from the origin that we will use to render the bitmap. <xsd:element name="x" type="xsd:integer" minoccurs="1" maxoccurs="1" default="0"/> <xsd:element name="y" type="xsd:integer" minoccurs="1" maxoccurs="1" default="0"/> Attribute a1reg This OPTIONAL attribute specifies the conditions when the bitmap will be displayed. <xsd:attribute name="a1reg" type="xsd:boolean"/> When this attribute is present and the value is true then the bitmap will be displayed ONLY when SIP Account 1 is in REGISTERED state. When this attribute is present and the value is false then the bitmap will be displayed only when SIP Account 1 is NOT in REGISTERED state. Note: When this attribute is absent then this bitmap is displayed regardless to the SIP Account 1 registration states. Element DisplayString This element carries the information on how a string is to be rendered on screen. It has three mandatory elements and four optional attributes: Element DisplayStr This element contains the string to be displayed <xsd:element name="displaystr" type="xsd:string" minoccurs="1" maxoccurs="1"/> The string can contain dynamic contents. As present, we support the following 18 system variables that will be substituted with dynamic contents at run-time. 1. $W: This variable is replaced with the current day of week and has the following possible values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday 2. $N: This variable is replaced with the configured Account 1 Display Name. 3. $X: This variable is replaced with the configured Account 1 SIP User ID. 4. $V: This variable is replaced with the configured Account 1 SIP Server. 5. $I: This variable is replaced with the system IP address. 6. $D: This variable is replaced with the current day of month with leading zero, possible values: 01, 02,, 31 7. $d: This variable is replaced with the current day of month without leading zero, possible values: 1, 2,, 31 8. $M: This variable is replaced with the current month in English, possible values: January, February,, December 9. $o: This variable is replaced with the current month in number with leading zero, possible values: 01, 02,, 12

10. $n: This variable is replaced with the current month in number without leading zero, possible values: 1, 2,, 12 11. $Y: This variable is replaced with the current year in 4-digit number, for example: 2006, 2007 12. $y: This variable is replaced with the current year in 2-digit number, for example: 06, 07 13. $P: This variable is replaced with the current AM/PM status in upper case, possible values: AM, PM 14. $p: This variable is replaced with the current AM/PM status in lower case, possible values: am, pm 15. $H: This variable is replaced with the current hour of day in 24-hour representation with leading zero, possible values: 00, 02,, 23 16. $h: This variable is replaced with the current hour of day in 12-hour representation with leading zero, possible values: 01, 02,, 12 17. $m: This variable is replaced with the current minute of hour with leading zero, possible values: 01, 02,, 59 18. $s: This variable is replaced with the current second of minute with leading zero, possible values: 01, 02,, 59 Note: If you want to display the $ sign, you will use $$ escape sequence. Elements X and Y This element contains X and Y offsets from the origin that we will use to render the string. <xsd:element name="x" type="xsd:integer" minoccurs="1" maxoccurs="1" default="0"/> <xsd:element name="y" type="xsd:integer" minoccurs="1" maxoccurs="1" default="0"/> Attribute a1reg This OPTIONAL attribute specifies the conditions when the string will be displayed. <xsd:attribute name="a1reg" type="xsd:boolean"/> When this attribute is present and the value is true then the string will be displayed ONLY when SIP Account 1 is in REGISTERED state. When this attribute is present and the value is false then the string will be displayed only when SIP Account 1 is NOT in REGISTERED state. Note: When this attribute is absent then this bitmap is displayed regardless to the SIP Account 1 registration states. Attribute font This OPTIONAL attribute specifies the font we will use to render the string. <xsd:attribute name="font" type="fonttype"/> <xsd:simpletype name="fonttype"> <xsd:enumeration value="f8"/>

<xsd:enumeration value="f10"/> <xsd:enumeration value="f13h"/> <xsd:enumeration value="f13b"/> <xsd:enumeration value="f16"/> <xsd:enumeration value="f16b"/> <!-- f18c is a 18 point Comic font --> <xsd:enumeration value="f18c"/> In this version we will support 1 system font and 7 additional fonts in various sizes as enumerated above. Any fonts not recognize will default to the system font. When this attribute is absent then we will also default to system font. Attribute halign This OPTIONAL attribute specifies the horizontal alignment method used to display the string. <xsd:attribute name="halign" type="horizontalalignmenttype"/> <xsd:simpletype name="horizontalalignmenttype"> <xsd:enumeration value="left"/> <xsd:enumeration value="center"/> <xsd:enumeration value="right"/> We will default to Left when this attribute is absent. Note: When using the Center alignment you will need to calculate the midpoint for the x-coordinate (4.5.2) for the width to be considered centered. For instance, element X must be set to 65 (130/2) to display a string that is aligned to the center of the LCD. Similarly, you will need to specify the right most point to render if you are using the Right halign method. Attribute valign This OPTIONAL attribute specifies the vertical alignment method used to display the string. <xsd:attribute name="valign" type="verticalalignmenttype"/> <xsd:simpletype name="verticalalignmenttype"> <xsd:enumeration value="top"/> <xsd:enumeration value="center"/> <xsd:enumeration value="bottom"/> We will default to Top when this attribute is absent. Note: When using the Center alignment you will need to calculate the midpoint for the y-coordinate (4.5.3) for the width to be considered centered. For instance, element Y must be set to 32 to display a string that is aligned to the center of the LCD. Similarly,

you will need to specify the right most point to render if you are using the Bottom valign method (set to 64).