This is the second text book example from Mr. Samuel Phung's Book.In this section we will develop a Visual Basic based application for testing the serial port on the eBox. The runtime image required for this example remains the same as developed in the previous section, so we can now move on to the application development part.
Now by default a blank form is created and we need to add various buttons and boxes to this form, these can be found on right hand side of the VS2005 IDE screen.
We can easily choose different buttons from this toolbar and simply drag n drop them onto the blank form.
The various components that are added to our application are as follows
cbSerialPort Combo box to select the active serial port----- COM1, COM2, etc.
btnOpenPort Opens the selected serial port.
btnClosePort Closes the selected serial port.
btnExit Terminates the program.
btnSendMsg Triggers the active serial port to send the message in the txtMsg textbox.
btnClearRecivedMsg Clears the message listed in the txtReceivedMsg textbox.
btnClearSentMsg Clears the message listed in the txtSentMsg textbox.
txtReceivedMsg Textbox to display message received by the active serial port, with multiline enabled.
txtSentMsg Textbox to display message sent by the active serial port.
txtMsg Text to enter message to be sent out by the active serial port.
Source Code for the SerialPortApp Application.
First, we need to import some references. Add the following import statements to Form1, in the beginning. In order to view the code window right click on VBSerialPort.vb on the left and click view code.
Now add the following import statements at the beginning,
page 1 page 2 page 3 page 4
Build and deploy process for this application remains the same as the Hello World application.
This is a good way to test the serial ports on the eBox, also before you deploy this application make sure that you have selected the serial port components in the OS image that will be running on the eBox.
These components can found in the device driver section in the Catalog Items of the platform builder.
Thanks all for reading.
Re: Hello World
My concern is how I connect RDP from Win-XP/7(Client) to WIN EC7(HOST), also i can able to connect R...
Re: Windows CE 6.0 Installation
2nd step and 4th step are different software?? or same software? if it's different software then where...
Hello, I am new to Windows CE and I would like to get started from scratch. I have a brand new hard...
Re: About Me
thank u for posting this usefull contents.... as i m fresher to installation task ,so can u provide detailed...
Re: Windows CE 6.0 Webcam Interface
Hi! thanks a lot for this information. And in general for your post about WinCE, they have been very...
Hi, In step 23 you add a subproject of the webcam project of codeplex, can you explain how to create...
http://www.embeddedpc.net/ce6book/ Also its not Visual Stusio 2005 - But Visual Studio 2005 Very...
Re: Windows CE 6.0 OS design wizard
Could you elaborate on the issue a little more in detail, as a first guess I would say you probably have...
HI Satyajit I had small issue with platform builder ,when I am trying to open new project I am getting...