Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length



Pages: [1]
  Print  
Author Topic: QuickMark codes working fine with embedded master display ;)  (Read 2543 times)
snupi
Full Member
***
Posts: 195


View Profile
« on: August 30, 2008, 02:01:08 PM »

i tried to display some QuickMark codes on the embedded master green display (128x64) and scan it with a pda

the QuickMark codes can be generated with the QR-Code Generator from http://qrcode.kaywa.com/

i resized the generated image to 64x64 (black/white)

with the (free) software from http://www.quickmark.com.tw/, the encoded information of the quickmark image can be simple read out with a pda or mobile (scanning the image displayed on the lcd of the embedded master)

there is also a Open Source QRCode Library for encoding/decoding qr codes in c# - i will try this library within micro framework

have fun  Wink
« Last Edit: August 31, 2008, 03:11:02 AM by snupi » Logged
elzekool
Jr. Member
**
Posts: 76


View Profile WWW
« Reply #1 on: September 09, 2008, 05:28:04 AM »

Very cool  Smiley

When developing for a mobile phone using .NET compact framework i also tried using quickmark codes.
It's amazing how well devices can read such codes.

I used a PHP class for generating the codes. I want to take a look at the library you mentioned.. if it doesn't use to much multi dimention arrays it should be doable to use it..

Logged

Visit my blog about the .NET Micro Framework at
http://www.microframework.nl
Or look at the .NET Micro Framework Wiki at:
http://wiki.microframework.nl/
SupportAdmin
Administrator
Hero Member
*****
Posts: 5394



View Profile WWW
« Reply #2 on: September 09, 2008, 09:33:23 AM »

If there is a need for 2D arrays then you can create a class for it, like was done on Pavel's Tetris game
http://bansky.net/blog/2008/01/tetris-game-in-dot-net-micro-framework/
This will require a lot of code changes though

I would love to see it working on Embedded Master
Logged
elzekool
Jr. Member
**
Posts: 76


View Profile WWW
« Reply #3 on: September 09, 2008, 09:45:19 AM »

I don't know how far snupi is with implementing the C# class..

I'll look into it this evening (evening in holland that is Tongue)

if the c# class isn't easy to change than i can try my luck with the php class i used earlier...

I'll let you know!
Logged

Visit my blog about the .NET Micro Framework at
http://www.microframework.nl
Or look at the .NET Micro Framework Wiki at:
http://wiki.microframework.nl/
elzekool
Jr. Member
**
Posts: 76


View Profile WWW
« Reply #4 on: September 09, 2008, 03:12:29 PM »

I started working on a quickmark class..

I searched the internet for classes that generate QR / Quickmark codes. I found two. The one mentioned before and the PHP class I used earlier.
As the C# source is clearly dirived from the PHP class and the C# class is far from usable with C# (Using files/Multi dimension arrays) I starting converting the PHP class.

I think it take some time.. I expect the first results end of this week..

Fingers crossed Tongue

Update: I added the PHP file..
« Last Edit: September 09, 2008, 03:18:29 PM by elzekool » Logged

Visit my blog about the .NET Micro Framework at
http://www.microframework.nl
Or look at the .NET Micro Framework Wiki at:
http://wiki.microframework.nl/
SupportAdmin
Administrator
Hero Member
*****
Posts: 5394



View Profile WWW
« Reply #5 on: September 09, 2008, 03:13:49 PM »

Very exiting.........
Logged
snupi
Full Member
***
Posts: 195


View Profile
« Reply #6 on: September 10, 2008, 12:25:40 AM »

i dont started yet with the quickMark class, since i am pinched for time Wink

my first sample with qr-codes (SEE DOWNLOAD) - displays only a qr.code image (hello world) made outside the program. it was made to check the display/pda camera capabilities

i saw through the c# class mentioned before and i think, its usable/adaptable for .net mf

@SupportAdmin: there is also a nice .net Tetris game sample in the book 'beginning .net game programming' - i adapted this for an atmel atmega with a mobile display (screenShot) / i will also adapt it for .net mf with ghi master devBoard (tft)
« Last Edit: September 10, 2008, 02:29:44 AM by snupi » Logged
elzekool
Jr. Member
**
Posts: 76


View Profile WWW
« Reply #7 on: September 11, 2008, 01:16:58 AM »

Yes,

That's the issue with the C# class for me.. This class is portable but when it comes to time.. i'm a web developer so reading php files goes somewhat faster for me..

But i'm making progress..

@snupi I see you're programming in AVR also.. Did you ever combine an avr controller and the GHI board? I recently ordered a camera module from sparkfun http://www.sparkfun.com/commerce/product_info.php?products_id=7904 I want to interface this camera with an AVR and interface the AVR trough SPI with the Embedded Master.. But first let's finish the Quickmark class..

Logged

Visit my blog about the .NET Micro Framework at
http://www.microframework.nl
Or look at the .NET Micro Framework Wiki at:
http://wiki.microframework.nl/
snupi
Full Member
***
Posts: 195


View Profile
« Reply #8 on: September 11, 2008, 04:43:50 AM »

you could check this blog http://bansky.net/blog/2008/03/jpeg-camera-and-micro-framework/ about camera
Logged
elzekool
Jr. Member
**
Posts: 76


View Profile WWW
« Reply #9 on: September 11, 2008, 06:58:23 AM »

Yeah I saw that item,

That camera module does the same trick i want to do with the camera module from sparkfun and a AVR. To buy the ready made module is easier.. with an avr is more fun.. why choose the easy way when you can do it the difficult way:P

Logged

Visit my blog about the .NET Micro Framework at
http://www.microframework.nl
Or look at the .NET Micro Framework Wiki at:
http://wiki.microframework.nl/
snupi
Full Member
***
Posts: 195


View Profile
« Reply #10 on: September 11, 2008, 11:56:42 AM »

there is a more cheaper camera with the same controller :

DC-3840

there is also a project with an avr interfacing the cam  Wink

i also played with a mobile cam and an atmega 128 - it worked fine ...
« Last Edit: September 11, 2008, 11:59:17 AM by snupi » Logged
elzekool
Jr. Member
**
Posts: 76


View Profile WWW
« Reply #11 on: September 11, 2008, 04:06:20 PM »

Hi some news, I finished porting the QuickMark class from C# .NET to the Micro Framework,

I wanted to use the PHP class, but the work overwhelmd me.. So I ported the C# version.. Sometimes I can't make up my mind I guess..

The class needs a LOT of optimalisation, if possible, becouse it takes a second or 5 to generate a code Smiley

I uploaded the project to the projects page becouse the sourcecode is to large to attach to a post..

So it should appear over there..
Logged

Visit my blog about the .NET Micro Framework at
http://www.microframework.nl
Or look at the .NET Micro Framework Wiki at:
http://wiki.microframework.nl/
SupportAdmin
Administrator
Hero Member
*****
Posts: 5394



View Profile WWW
« Reply #12 on: September 11, 2008, 05:08:27 PM »

Great work! Project is up there for anyone...

Yes it took 5 seconds to work for me too and this is on the emulator that is running on my laptop which should never take that long!!!

Have you tried it with the hardware instead of emulator to see how long it would take?
Logged
elzekool
Jr. Member
**
Posts: 76


View Profile WWW
« Reply #13 on: September 11, 2008, 05:40:09 PM »

Yes,

It took about half the time on the Embedded Master, about 2-3 seconds  Embarrassed .

But I think there is much room for improvement. First task is to look which part of the process takes the most
amount of time and start working from there..

So it's a work in progress.. 

My idea for a application is a RSS feed reader that displays the link in QR format so people can take there mobile point it at the screen and watch the article.. Only drawback, then it's my third project using a network connection.. Maybe time for a new idea Tongue
Logged

Visit my blog about the .NET Micro Framework at
http://www.microframework.nl
Or look at the .NET Micro Framework Wiki at:
http://wiki.microframework.nl/
elzekool
Jr. Member
**
Posts: 76


View Profile WWW
« Reply #14 on: September 12, 2008, 05:53:40 AM »

Hi,

I tried to optimalize the Qr encode class. First I debugged the time it takes to complete all functions.

selectMask takes the most time (about 4/5 of the total time required) so I started to optimalize that.
I got from 13000 to 9000 clock ticks. When I enabled Optimize code in the project settings it dropped to 6000.

Still a long time so I looked what selectMask actualy does. I found this page:
http://www.swetake.com/qr/qr5_en.html

It analysizes the matrix and determines the best masking method. I think it should be okay to select the default masking method.
I tested it.. My phone reads the code just as easy as it did before. And the code is generated in a normal time now.

I added a property to the encoder class that enables of disables the selectMask method.

I uploaded te new code to the projects page..
Logged

Visit my blog about the .NET Micro Framework at
http://www.microframework.nl
Or look at the .NET Micro Framework Wiki at:
http://wiki.microframework.nl/
elzekool
Jr. Member
**
Posts: 76


View Profile WWW
« Reply #15 on: September 12, 2008, 11:21:04 AM »

A little update on Qr codes,

When you want to send a phone numer you can use the following text:
tel: +0118409284234


For weblinks or email adresses you can use standard uri's:

 http://www.ghielectronics.com/
 mailto:info@ghielectronics.com


And contact information:

 BEGIN:VCARD
 N:Gump;Forrest
 FN:Forrest Gump
 ORG:Gump Shrimp Co.
 TITLE:Shrimp Man
 TEL:(111) 555-1212
 EMAIL:forrestgump@walladalla.com
 END:VCARD

« Last Edit: September 12, 2008, 11:23:19 AM by elzekool » Logged

Visit my blog about the .NET Micro Framework at
http://www.microframework.nl
Or look at the .NET Micro Framework Wiki at:
http://wiki.microframework.nl/
Pages: [1]
  Print  
 
Jump to: