Archief voor de rubriek ‘Multitouch’

Enable Wake-on-LAN on Surface

A customer required for this new fancy project that the Microsoft Surface tables could be switched on and off automatically. The most obvious solution was to suggest Wake-on-LAN (WOL) for switching on the unit.

However, I wanted to make sure that this was supported, but couldn’t find anything on the Internet. So I tried it myself and want to share my experiences with you in this step by step guide.

It’s a little odd that there is no specific Microsoft solution, while the company has high interest for saving power (see Windows 7 efforts). The Surface unit consumes +/- 250W and even when switched off it still consumes +/-15W. Using your own alternatives to save on energy should be applauded.

What do you have to do?

  1. Alter BIOS-settings
  2. Update network settings in Vista
  3. Use program to send WOL-packets

1. Alter BIOS-settings

The BIOS of the Surface unit is protected by a standard password. You can retrieve this password from Microsoft Surface Support. Call:

  • 0800 76259 for Belgium
  • (1)866-425-8880 for US

Make sure you have the serial number of the Surface unit at had.

Connect a keyboard and mouse to Surface and start the unit. As soon as you’ve switched it on, hit the DEL key a few times every second so you enter the BIOS.

You will be prompted to enter the password.

Enter the password that was provided to you by Microsoft Surface Support. Take care: your keyboard is configured as qwerty!

Choose “Power” using left and right arrows and APM configuration using up and down arrows. Hit enter.

Enable the settings “Power On By PCI Devices” and “Power On By PCIE Devices”.  Close the BIOS (saving the settings) and let the Surface Unit startup normally.

2. Alter network settings in Vista

Log on with your administrator credentials. Go to Control Panel, start up Device Manager, expand Network adapters and request the properties page for the network card (Intel (R) Pro/1000 PL Network Controller in my case).

Go to the Power Management Tab and select “Allow this device to wake the computer”. Choose OK to quit the screen.

Make sure you have a static IP address, by changing the settings of the local area connection.

Update the settings to match your network configuration.

Now it is time to write down the MAC address of your network card. You can find this, by running ipconfig /all from the command prompt.

Next to Physical Address, you will find something like XX-XX-XX-XX-XX-XX.

Make sure you have written down the MAC address and the fixed IP address of the Surface Machine. Switch to user mode and shut down the unit by pressing the soft power key.

3. Use program to send WOL-packets

It’s time to test! You can now send Wake-On-Lan packets to the Surface unit to start the machine. If you want to integrate this in your .Net programming, there are some examples to be found on the net (I didn’t test this example).

You can also use a little client program to send Wake-On-Lan packets. I used WOL – Magic Packet Sender and it worked just fine.

Fill in the IP address as host name and MAC address and hit “Send”. You will hear the fan of the Surface Unit start to spin and your precious Surface will boot.

Grando met MultiTouch op Batibouw 2010

Grando Keukens pakt uit op Batibouw 2010 met een heel interactieve stand: maar liefst 6 interactieve schermen werden geplaatst waar je de Grando-catalogus kan doorzoeken, je keuzes naast elkaar plaatsen en samen op zoek kan gaan naar je favoriete keuken. Wil je thuis nog eens alles rustig bekijken, dan kan je ook het digitale Inspiratieboek bestellen door je gegevens achter te laten op één van de multi-touch schermen.

Stilte voor de storm: laat het grote publiek nu maar komen

Ocular zorgde voor de high-tech hardware (de multitouch schermen).
Jimability schreef de multi-touch software die op deze schermen draait, op basis van Windows 7 en Microsoft .Net.

Ga het zelf eens uitproberen op Batibouw (nog tot 7 maart) in Hall 11 van de Brussels Expo.

Manipulation, MatrixTransformation en Canvas.Top, Canvas.Left

Een van de meest voor de hand liggende multitouch-toepassingen is het manipuleren van beelden: scale, rotate and translate. Met de Manipulation events van WPF4 (op Windows 7) is dit eenvoudig. Het komt erop neer de matrix van de transformatie aan te passen.

In een eenvoudig voorbeeld, bleek dit te werken. Maar in een echt project-voorbeeld kreeg ik het verkleinen/vergroten en roteren niet goed. Het leek alsof deze gebeurden tegenover een center-punt dat ver buiten het gemanipuleerd object lagen. Na lang zoeken en een paar suggesties van Anson Tsao kwam ik eruit.

Screenshot: Touch Manipulation Issue Het exact positioneren van een image door middel van Canvas.Top en Canvas.Left conflicteert met het gebruik van RenderTransformations.  Je kan beter je positionering in de MatrixTransformation zetten:

<Image Source=”/TouchTransformIssue;component/images/Koala.jpg” Width=”200″ x:Name=”imageKoala” IsManipulationEnabled=”True”>
<Image.RenderTransform>
<MatrixTransform Matrix=”1,0,0,1,200,100″/>
</Image.RenderTransform>
</Image>

In bijgaande code kan je het effect zien door Canvas.Top/Canvas.Left te gebruiken.

(download code)

WPF4 Beta 2 (Preview)TouchDown bug

Werkend met de Touch Events van WPF4 Beta 2, kwam ik op een vervelend bugje. Blijkbaar worden de TouchDown en PreviewTouchDown events pas afgevuurd net vóór TouchUp en PreviewTouchUp. Dit is niet alleen zo bij je eigen EventHandlers, maar ook het default gedrag van bv. Buttons.

En toch, toch had ik het al zien werken.

Via Szymon Kobalczyk’s Blog kwam ik op de IsManipulationEnabled property.  Normaal gezien gebruik ik deze alleen in combinatie met de Manipulation events (Delta, Starting, …).

Het komt er hier op neer: als je IsManipulationEnabled op true zet, dan komen de TouchDown en PreviewTouchDown events wél goed door.

Maar ik vond nog meer. Het volstaat om de property aan en vervolgens weer af te zetten opdat de events zouden doorkomen.

Je kan het zelf uitproberen. Bij (Preview)TouchDown van de Border controls, wordt de rand dikker getekend.

Download Source code

IIyama Multitouch scherm getest

IIyama heeft zijn eerste multi touch scherm uit: de ProLite T2250MTS. Als je prijzen van andere multitouch oplossingen bekijkt, is dit een koopje: voor 300 euro heb je een 22 inch scherm met een resolutie van 1900×1080 (High Definition).

Daar moest een filmpje van gemaakt. Geen uitpakfilmpje, maar wel een ”doe eens wat”-filmpje. Eerste ondervinding: het is niet gemakkelijk om te multitouchen met één hand en daarnaast een fotocamera vast te houden in de andere hand. Vergeef mij het schudderige beeld.

YouTube voorvertoningsafbeelding

Het is moeilijk om een onderscheid te maken tussen de kwaliteit van het scherm en de ontvankelijkheid van de geteste applicatie of het onderliggende besturingssysteem (Windows 7). Slechts weinig applicaties hebben een meerwaarde met multi-touch.  Google Chrome reageert alsof je met de muis klikt. In Internet Explorer daarentegen kan je met flicks navigeren in je browsergeschiedenis (back button vs. forward button). Het vergt wat oefening om de flicks uit te voeren (zie filmpje).

Mijn development-interesse gaat natuurlijk uit naar de multitouch ondersteuning in WPF 4.0 (Bèta 2) waarmee ik mij de komende weken zal bezighouden.

Een minpuntje, dat misschien zeer persoonlijk is: het scherm aanraken voelt aan alsof je over glas wrijft. Ik kan me voorstellen dat je huid begint te irriteren als je lange tijd multitoucht. Daarbij vergeleken heeft Microsoft Surface een aangenamer touch-gevoel, maar wel een minder aangenaam prijskaartje.

Om te besluiten: heb je Windows 7 en ben je op zoek naar een betaalbaar scherm: aarzel niet om de IIyama ProLite T2250MTS te kopen.  Voor een paar euro’s meer dan een gewoon scherm heb je een multi-touch scherm.