
CHAPTER 4
Wiser
The Wiser is a rebadged SparkLAN WRTR-501 802.11b/g/draft-n WiFi Router with custom firmware. It runs an
embedded Linux system, with an expanded web interface for hosting Flash/XMLSocket based control of CBus.
According to the source code release from Clipsal, this runs Linux 2.6.17.14. The kernel configuration indicates that
the board is a fv13xx ARM system. Also used by:
• Airlink101 AR680W
• PCi MZK-W04N
XMLSocket is also used by the iPhone version of the control software.
At the moment this is a rather unorganised set of notes while I’m still figuring out the protocol and investigating the
inner workings of the system.
Note: In XML outputs in this document, new-line characters and basic formatting whitespace has been added to
improve readability. The original data does not contain this, unless otherwise indicated.
Note: This project provides it’s own replacement for Wiser’s web interface, called sage.
4.1 Downloading SWFs
First step is you are directed to the page /clipsal/resources/wiserui.html. This in turn loads the SWF
/clipsal/resources/wiserui.swf.
As this is SWF, there is a cross-domain access policy in place to allow the SWF to connect back to the server on other
ports:
<cross-domain-policy>
<allow-access-from domain="
*
" secure="false" to-ports="8888,8889"/>
</cross-domain-policy>
This configuration appears to be one that allows anything to make requests to the Wiser. So you could write your own
implementation of the Wiser control UI and have it connect back, or if you use a well-known address for the Wiser,
any Flash applet on the internet could!
The resources and API classes are stored in /clipsal/resources/resources.swf. This contains things like
the cbus_controller class which is used to establish Flash XMLSocket connections.
13
Comentários a estes Manuais