![]() |
Experience Technology Services Resources Products News Blog | About Contact |
| Resources | ||
Syndicate your System with RSSRSS is the must have feature for 2006. Lets look at how the hype can help feature embedded systems. What is RSS?RSS (Really Simple Syndication) is a web content syndication format. It is intended to allow agent software to retrieve a set of headlines and story summaries for quick review or integration into another display. RSS is an XML dialect that conforms to the XML 1.0 specification. An RSS file is a data source providing structured information according to a common standard. The presentation of the information in the file is left to the client software. RSS has been around for years, but is currently exploding in popularity. In addition to its merits as a standard, the growth of RSS is tied to a series of recent changes in the web ecosystem.
RSS is starting to pop up everywhere - on the operating system sidebar, on the Outlook home page, on the browser toolbar. It is the pervasive acceptance and integration of RSS that makes it of interest to embedded developers. Embedded systems can use RSS to distribute information to desktops, servers and other systems by generating a simple and well-defined text file. ApplicationsRSS is useful for generating a summary of device status or history for display in the context of another application.
By implementing these features in RSS, a device can provide information in a format that is integrated into the user's preferred display program. WeaknessesSince we are repurposing an established standard for our own needs, we are inherently limited by the definition and nature of RSS. RSS is a pull technology. There is no notification mechanism akin to an SNMP trap. The reader has to come and get the information frequently enough to avoid missing information. A limited notification service is provided by using clouds. The format of an RSS item is fixed. Essentially, it provides a timestamped string title, a larger text description and a link to more information on the web. System RequirementsThe RSS 2.0 specification is protocol (FTP/HTTP/etc.) independent, but application of RSS generally requires a web server on the device. The web server must support the specification of MIME types to identify the RSS content as "application/xml". In addition, a mechanism for dynamically generating the XML file is needed. Normally, RSS is generated with a server scripting language such as Perl or PHP. In embedded cases, it normally falls back to C or C++ through conventional CGI. Anatomy of an RSS FileThe RSS feed is an XML file that consists of a channel and items that are associated with the channel. XMLThe RSS file must be properly identified as XML and provide the RSS element around all of the document contents. ChannelThe RSS feed must contain one and only one properly formatted channel. A channel has three required elements.
There are a number of optional elements that may be defined for the channel. Including these elements will create a richer user experience if there is an application for your feed.
Aggregators generally support only a subset of the optional elements. ItemThe channel feed consists of a series of item tags. Each element of an item is optional. The only requirement is that a title or a description is provided. In general, each item should have at least a title, description and link. Logs should use the pubDate as a timestamp.
A Sample RSS FileConclusionAs with many web technologies, RSS provides unexpected features for embedded systems simply through universal adoption. While intended for summarizing articles and blog entries, we can apply RSS to provide a lightweight and easy to implement protocol for real-time data ranging from activity logs to device status. As RSS is being integrated into all levels of client software, embedded systems are enabled to deliver up to date information in the user's preferred interface. |
|
| Home | Experience | Technology | Services | Resources | Products | News | Blog | About | Contact | © 2005 MICROSOCKETS |