I made a flex tool that connects to the Velbus over a socket connection.
http://sites.stogo.net/stogo/screenshot3small.jpg
Although the tool is far from ready here is some info about it and a link to the Flex source code.
[edit]
You can download the **latest **code and demo at code.google.com/p/flexvelbussocket/
Latest download: r16: run an exe when a button is pressed
[/edit]
The tool is made with Adobe Flex Builder 3.
In order to run it you have to start up the Velbuslink software, connect to your Velbus, and select “Velbus > server mode” from the menu.
This will make it possible to connect to the velbus using a socket connection at ip 127.0.0.1 (localhost), port 3788. Of course if you share your pc you can also connect to it from anyware on your LAN/WAN network of even from the internet. It’s Flash, so some modern PDA’s that have Flash 9 on board can run it
The flex tool itself (which is an swf file) can be run from a html site or directly from your hard drive. The html to start it up can be found at bin-debug\TelnetSocket.html.
In the xml file at bin-debug\data.xml you can enter all your commands that you want to show up in the grid (eg “Living Aan”, “Living Uit”).
Clicking the row will send the corresponding velbus data. For now you have to fill in the raw data string including checksum in the xml file. The easiest way to have some test data is to put the logging on in the Velbuslink (“View >Window > Traffic log”) and send some traffic over your velbus by clicking some buttons of your TVMB4PD or TVMB8PB. The hex data in the Raw colum has to be copied in the xml.
eg:
http://sites.stogo.net/stogo/xmlSnap.jpg
The middle part of the tool displays the traffic on the network. nothing fancy here …
Don’t mind the lower part of the tool “(stubru: Geen muziek(info) - )” as it has no purpose yet.
This shows the currently playing song at the radio station “Studio Brussel”. I am busy right now making this song info available at the display of my TVMB4PD.
Next feature would be to connect with Windows Media Player, receive status info and send play/pause/volume commands. Hower I can not find a socket connection to the media player Is there anybody that can help me out here?
As you can see the code is still very basic: I need to write a Packet class (like the C# version from Velleman) in order to have some higher abstractions. Hope I find some time soon …
[Edit] Packet class is finished now.[/edit]
[Edit]*If you get a security warning or don’t see any data, add the swf to the ‘trusted sites’. This can be done online here: macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html *[/Edit]
As always: Any help / hints / comments are welcome
thanks,
Gert