how to build a win ce5 serial port program

IDrenth
Posts: 29
Joined: Sun Dec 21, 2008 3:23 pm

how to build a win ce5 serial port program

Post by IDrenth » Sat Sep 26, 2009 5:21 pm

Hello every one,

do sombody know how to build a serial port program in s3c2440 board ??

I want to sent ansistring out and read with the rs232 connector.

I hoop sombody can help me with it.

regards from identh

nicolas
Posts: 162
Joined: Sun Jun 07, 2009 4:32 pm

Re: how to build a win ce5 serial port program

Post by nicolas » Sun Sep 27, 2009 12:42 pm

What programming language are you using ?

In vb.net you simpyl make use of the SerialPort control.
In vb6 (with ce extension) again you make use of the Serial Port control.
In c# you instantiate the serial port control.

IDrenth
Posts: 29
Joined: Sun Dec 21, 2008 3:23 pm

Re: how to build a win ce5 serial port program

Post by IDrenth » Sun Sep 27, 2009 2:33 pm

Hello Nicolas,

I want to build it in visual studio 2005.

Visual basic or in C#.

I am trying to get the comport working.

Put with any result.

I want to send and recieve on the rs232 conector.

Do you have maybe a program that I can compile ?

thank you for youre response.

nicolas
Posts: 162
Joined: Sun Jun 07, 2009 4:32 pm

Re: how to build a win ce5 serial port program

Post by nicolas » Sun Sep 27, 2009 2:42 pm

With VB.Net, starts a new VB.Net project for Windows CE 5.0 (Visual Basic -> Smart Device - > Windows CE 5.0)
Then drag and drop the control to the form.
Set the port to '1' for COM1, and adjust the other settings accordinly; like baud rate.

Then write the code as youd normally write any serial port code.

Have you written any serial port code before ?

EDIT:
If you wish to communicate with the windows 'dnw' program set the baud rate to 115200.

If there is a real demand for a sample app, I may whip one up. Let me know if you cant get your code working.

IDrenth
Posts: 29
Joined: Sun Dec 21, 2008 3:23 pm

Re: how to build a win ce5 serial port program

Post by IDrenth » Sun Sep 27, 2009 10:53 pm

I have build one a time ago, it also works on a vista version.

But if I want to use it on the arm board the comport is in use always.

Maybe thats te problem.

If you can get me a sample is also nice.

nicolas
Posts: 162
Joined: Sun Jun 07, 2009 4:32 pm

Re: how to build a win ce5 serial port program

Post by nicolas » Mon Sep 28, 2009 7:54 am

Which Wince image are you using? the latest one ?

I found on some images, specially the latest ones, if KITL is enabled on uart0 then you cannot open it for use (unlike the older images where you could co-share the port) This may be why you are getting an error.
If you see debug output on DNW (or other serial program) when booting up the board, you have KITL enabled.

Try setting the com port to 2 or 3, and see if it opens.
If it opens then its probably my suspicion from above.

IDrenth
Posts: 29
Joined: Sun Dec 21, 2008 3:23 pm

Re: how to build a win ce5 serial port program

Post by IDrenth » Mon Sep 28, 2009 9:04 am

I have the old version not the pocket version.

How can I change it ??

nicolas
Posts: 162
Joined: Sun Jun 07, 2009 4:32 pm

Re: how to build a win ce5 serial port program

Post by nicolas » Mon Sep 28, 2009 1:00 pm

What do you mean by pocket version ?

IDrenth
Posts: 29
Joined: Sun Dec 21, 2008 3:23 pm

Re: how to build a win ce5 serial port program

Post by IDrenth » Mon Sep 28, 2009 2:43 pm

I have te old model I think.

http://i216.photobucket.com/albums/cc21 ... 4001/2.jpg

Look the same like this one.

with the QQ2440V3 board.

the old ce version is programmed.

I don't know what the new version is on the ftp version for this one.

IDrenth
Posts: 29
Joined: Sun Dec 21, 2008 3:23 pm

Re: how to build a win ce5 serial port program

Post by IDrenth » Thu Oct 01, 2009 12:30 pm

Did you got the picture ??

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests