Monday, May 25, 2009

Week 11 -12 Development

Over the past week I've been working on a simple Kiosk implementation to show a proof of concept for our iPhone app. Basically the program would have fake buttons that make it look like a normal Kiosk and an additional button for iPhone upload. I'm thinking that when the users upload their photos to the server they are given a unique ID (which can be maybe a hash of their iPhone serial number or something) and when they click on the iPhone upload option they are asked to enter this unique id. The file where their photos are stored would also be named using this ID so when they enter it the program knows which file to look in and only looks in that file and no that of other people. Once they enter this ID they are presented with a screen that has thumbnails of all the photos that they have uploaded. The user can than click on a photo to see the full size image and to print it. Then once they have finished printing their photos and they exit the iPhone upload area their file gets deleted along with their photos.

This is taking some time to do as I'm not a wiz in C# but hopefully I will have it done by the end of the week. I just need to juggle it with my Thesis presentation due on Thursday.

Sunday, May 17, 2009

Development Update

The past week I've been working on (when I can) the server side components. I have managed to get a PHP script that will accept HTML POST requests containing an image and upload these images to a directory on the web server box. It checks that the items being upload are only images and that they each have a maximum file size of 8MB. I previously made a small C# application to publish a generic http service (with the help of some libraries). This application will need to be configured with the IP and port number that this PHP script is accessible via. The next step with the PHP script is sending back a meaningful message about the status of their upload attempt. In the case of success a messages saying "Success" will be presented to the user along with some info about the total size of the files uploaded, their location on the kiosk and a unique ID for that particular transaction. This unique ID could potentially be used as a password as well. From what Nick has said this response to the iPhone should simply be some echo commands in the script that print out this information. If this works as planned than the server side is well on its way to being complete for the basic implementation we are planning on for the final demo.

I am foreseeing that I will be called on for helping with the bonjour service discovery parts on the iPhone. Apparently there are some libraries available to work with bonjour so hopefully we can use them. If all else fails we can just make the IP and Port static so the app always expects the server to be at one particular address.

Monday, May 11, 2009

Progress update Week 10

After researching Bonjour a bit I set about getting my own Bonjour service published. Becuase our server side software would likly be running on the same machines as the kiosk software is run it would need to be implimented in Windows. I found some example zero config applications with a nice .Net Library that I used to make a simple winodws application that lets you publish a bonjour like service that advertises that you have a local bomjour service at IP XXX.XXX.XXX.XXX listening on port XXXX. Now I will neet to look at testing weather I con access this published service on a larger network and from there look at setting up a web server to accept HTTP POST requests on the published port and save the content uploaded to a given file.