Saturday, July 12, 2008

So your running either Exchange 2003 SP2, or Exchange 2007 and you want to synchronise your iPod Touch or iPhone (standard/3G) , for mail, contacts and calendar?

If the answer is YES, then read on.     In the past you had to put up with IMAP or POP access to Exchange which did the job, but was fairly limited.

So with the advent of Firmware 2.0 for iPhone/Touch you can have full support for synchronising using the full push ActiveSync Airsync mechanism.

 

Right lets get started.     The first thing you need unless you have an iPhone 3G is to upgrade the firmware to version 2.0.    This can be done using iTunes and there is a small cost to-do this for the iPod Touch.   

Of course you need to have an Exchange server already setup to synchronise with mobile devices.   So its a good bet to make sure Windows Mobile devices can currently synchronise before you end up getting very frustrated.

So what do you do on the device?    I’ll walk you through what I did on an iPod Touch, but its the same process for the iPhone.

I used the new screenshot functionality of Firmware 2.0 to take these screenshots,    you press the top button and home button together and it saves the screen to the Photo’s application.

OK,   so the first step is to go in Settings from the home screen as follows -

image

Select Mail Contacts, Calendars.

image

Lets next tap Add Account

image

Tap Microsoft Exchange

Ok, so far so good, now it gets interesting.

image

Now,  unless you have email auto-discovery switched on, on Exchange (and I haven’t found anyone outside Microsoft that does),   in the email address type something that isn’t an email address,  e.g in my example I’ve type dummy (you can change it later).    This is an important step,  as if you really type in an email address the iPhone/Touch sits for ever trying to verify the address and you are never prompted to enter the address of your server.

The username is your windows domain followed by \.   The \ is difficult to get on the iPhone/Touch keyboard.     Press [.?123] key  , then [#+=] key ,  and you’ll see it.

Ok,  make sure your username and password are correct.   The password is case sensitive but the username isn’t (but remember the \ ).

 

image

Ok, now its time to type in your email address the Internet address of the server your synchronise with.    Note you don’t need to prefix it by http:// or https://   for help with what this address is look at ActiveSync on an Windows Mobile device that synchronises already in your organisation,  or ask a friendly IT admin (yes they do exist :-) )

Almost done…

photo (6)

What do you want on your device, Mail, Contacts and Calendar?    I’ve found that most things work OK.     The biggest omission is that iPhone/Touch is that you can’t access the Global Address List (GAL),  like you can in Windows Mobile.

 

image

That’s about it,  your all ready to receive email.

Go check your email….

I always found that you can now change the email signature (within settings) so that it doesn’t reveal to your corporate IT that you sent and email from your Iphone/Touch, which I think some may find a good feature.

 

Saturday, July 12, 2008 12:16:13 PM UTC  #    Comments [3]  | 
Friday, July 11, 2008

Today I had to spend a couple of hours resolving some bugs.     My life has got a whole lot easier once I realised that you can debug not only a Windows Mobile app (and we all know how to do that),  but the web-services it calls too.

If you start debugging your web-service using the inbuilt debug web-server in Visual Studio,  then up will come Internet explorer showing an address like

http://localhost:62446/yourwebservice.asmx

If you make a note of the ip-address of your machine (say mine is 192.168.0.3)   then in your mobile application,   change the url of your web-service to be

http://192.168.0.3:62446/yourwebservice.asmx

Then run the mobile application in debug mode too.  If all goes to plan, you can debug both the mobile application and the back-end complete with break-points and all the normal bells and whistles.   Sorted…

Friday, July 11, 2008 9:18:49 PM UTC  #    Comments [0]  | 
Friday, July 11, 2008 9:12:05 PM UTC  #    Comments [0]  | 

I’m pleased to announce,  that my blog has been short-listed for the Computer Weekly Blog awards.

ComputerWeekly.com IT Blog Awards 08

Please if I could trouble you to vote, I’d appreciate it -

I’m in the Wireless and mobile blogs category (up against Jason Langridge no less)

http://www.computerweekly.com/blogawards.htm

Friday, July 11, 2008 8:54:06 PM UTC  #    Comments [0]  | 
Tuesday, July 08, 2008

So, I’ve updated the location sending program to not only transmit, your current location (with a map),   the distance from a point of interest (work, home etc) but also attach a photo.   Particularly useful to let your boss/customer/wife know your stuck in traffic.

Download here – www.binaryrefinery.com/main/content/binary/gpsphone.cab

Tuesday, July 08, 2008 8:23:45 PM UTC  #    Comments [0]  | 
Saturday, July 05, 2008

So, today was the day.  275  Balloons launched (all bio-degradable).    They went sailing out to the East.

The map is live showing all our balloon finds using Microsoft Virtual Earth.  www.racingballoon.com

 

CIMG1178

Thanks To Chris, Carl, Trudy, Hannah and my Mum & Dad for helping me out today.

 

Let the race begin…

Saturday, July 05, 2008 7:38:06 PM UTC  #    Comments [0]  | 
Wednesday, July 02, 2008

This was interesting,  I was sitting on my sofa tonight just playing around with Google Maps on iPod Touch.    I clicked the locate me button (which had never worked before) and it zoomed right in to my exact location.

Slightly freaked out I pieced together what had happened and why ‘locate me’ was suddenly working with smart bombing precision.   Looking around I couldn’t see anyone pointing a laser targeting device at my house, so I cam up with the following.

If you remember about a month ago I posted about add geo-encoding information to your website here.

We’ll it all makes sense,   Google had indexed my blog found the geo-encode information in the meta tags of my blog/website.

The final bit of the jigsaw,  because my public IP address is the address of my router and traffic I generate from my home network (i,e from the iPod) appears to come from my base public ip.   This public IP is also the address of my blog.

So…   Google could easily relate my IP to my location.      I hope I’ve got the trail correct, but its well worth doing what I did and putting those meta tags on any web-page you host.    

I would give you a screenshot but still no simple way to-do so off an iPod/iPhone.  Come on SOTI guys :-)

Wednesday, July 02, 2008 7:12:54 PM UTC  #    Comments [0]  | 
Monday, June 30, 2008

Today we needed a low cost way of sending bulk SMS messages.   With the advent of low and even free message deals,  I thought what about just hooking up an old Windows Mobile device to send messages on our behalf.

Hooking a phone up to a PC with a USB cable and a bit of socket programming to listen to request to send messages.   So on the device we have this listener.

 

image

We send messages on a TCP port in the form PHONENUMBERS|MESSAGE

Phone picks up the message and sends the SMS using this bit of code.

 

                           OutlookSession currentSession = new OutlookSession();
                            SmsMessage smsmess = new SmsMessage();
                            smsmess.Body = message;
                            foreach (string num in numbers)
                                smsmess.To.Add(new Recipient(num));
                            currentSession.SmsAccount.Send(smsmess);
                            currentSession.Dispose();

 

The whole process is invoked by a command line application on the PC, which takes the following command line -

SMSIT <ip address of phone> <phonenumbers> <message>

This application just opens a TCP socket connection to the phone and squirts down the PHONENUMBER|MESSAGE

Job done,  I can now send SMS from lots of different desktop and server applications

Monday, June 30, 2008 4:18:40 PM UTC  #    Comments [0]  | 
Tuesday, June 24, 2008

Today I needed to quickly do some screen mock ups for a customer.   Rather than lay out yet another mobile form with labels down the left (right aligned and prettied up) and text labels on the left (left aligned and prettied up),  I thought I would create myself some templates.

I’ve now got a set of all the most common ones I need -

 

image

Its really easy to-do and saves you a pile of time.

Here’s an example of my base form -

image

All you need todo in Visual Studio from the File menu is select Export Template, then follow the wizard through.

You can then tidy up the resultant templates by looking in

%userprofile%\Documents\Visual Studio 2008\My Exported Templates

A nice little tip, I found is that when you create a new instance of your template if you put the string

$safeitemname$

In the template file, it will substitute your class name in where you need it, great for setting window titles etc.

Finally zip up the contents of your template and copy to

%userprofile%\Documents\Visual Studio 2008\Templates\ItemTemplates\Visual C#

You can of course do the same for VB.net etc.

 

My only final tip, is to make sure you get your object (form etc.) right before you export it,  its a pain to edit templates.   Not impossible just a flaff.

Tuesday, June 24, 2008 2:07:38 PM UTC  #    Comments [0]  | 
Saturday, June 21, 2008

I know I’ve been banging on about this a fair bit.    But we are at T Minus 14 days till I attempt the worlds first Virtual Earth Powered Balloon Race, well actually its Helium powered but you get the idea.

If you want to be part of this,  go buy a ticket at www.racingballoon.com

Saturday, June 21, 2008 11:38:19 AM UTC  #    Comments [0]  | 

Theme design by Jelle Druyts

Pick a theme: