EVC entry: The best Hardware Solution for remote debugging

Source: Internet
Author: User
EVC entry: The best Hardware Solution for remote debugging

In EVC tools-> config platform manager, for a device point properties, this dialog box can select the hardware path used when EVC debugs the program. In fact, there are few of these options, however, since I was not enterprising, I have been fully aware of it since I started to understand it, and I have been able to understand it for nearly half a year.

Method 1: kitl + cesh Server

This setting was used by the entire group during the earliest application development last year:
Transport: kitl transport for Windows CE
Startup: cesh server for Windows CE.
In the MS documentation, I emphasized "to connect to a target device with the cesh startup server, you must enable kitl on the target device" (http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/wcepb40/html/pbconceshstartupserver. ASP) from the three hardware methods of kitl implementation in Pb, the cost of using the first method in EVC to debug the program is one of the three.
(1) If Ethernet kitl is used, the network card will be sacrificed during EVC debugging. In this way, the program that needs to access network resources cannot be debugged. after Ethernet kitl came together, it gave the ether driver to disabel. It is said that ether kitl and the Ethernet driver were used at the same time. Unfortunately, I have never seen it before. I look forward to modifying it.
(2) When rndis kitl is used, the USB port is sacrificed in the EVC mode, and the USB flash drive cannot be connected to the keyboard or mouse. In this case, other developers will fight with me.
(3) When serial kitl is used, the debugging speed is sacrificed. When the program is tuned, a cup of tea is made and a newspaper is provided ~


Method 2: ActiveSync + ActiveSync

I took over the player project and pushed it. The advantage is that the operating system can be burned in flash, so that application developers can ignore the operating system, in addition, you do not need to open Pb when calling the program in EVC. (If Pb and EVC are enabled at the same time, the M memory PC will be very slow ). in addition, once the target board is crashed during debugging, simply restart the system to save the time for reconnecting by petabytes. the most important thing is that Ethernet resources can be freed up to debug the HTTP, RTSP, and other modules in the player that need to use the network.

But the problem is that the USB port is also lost and cannot be connected to the keyboard or mouse. At that time, I also specially wrote an application to simulate remote control operations on the PC end, the code used to send remote control actions to the target board via serial is so cumbersome.


Method 3: TCP/IP + manual server debut

The method of lighting sound effects is almost perfect. In fact, it is very simple, but it is too long to satisfy the previous two methods and has not been further explored.

The specific settings are selected in device properties.
Transport: TCP/IP transport for Windows CE
Startup: manual Server
As shown in

Click test. This dialog box is displayed on the EVC side.

If these three files are not specifically added to the bib file, the image usually does not contain them. these three files can be found in the subdirectory corresponding to the CPU type under wince500/Others/platman/target. copy a USB flash drive to the/Windows/directory of the target board.

Then start on the target board and run cmd. In the command line window, enter the command line in the dialog box. At this time, the command line window on the target board is in the waiting status, instead of the next prompt, press OK on the PC-side EVC, and the connection will be successful. in the same way during debugging, You can first tap the command line on the target board. When you are in the waiting status, click Go On the EVC side.

Then we should pay attention to this command: cemgrc. EXE/S/T: tcpipc. dll/Q/D: 10.100.148.124: 2777. You can specify the IP address of this command. If it is 192.168.0.111 and the port is 5000, create a BAT file, put this sentence in and copy it to the Windows directory of the wince target board. You only need to run this bat file for later connection.

In practice, the EVC debugging is a CS structure. The target board is a client, the PC is a server, and the connection is initiated by the client. the debug shell used by cesh, The actiesync component that ActiveSync adds to the image, and the cemgrc are all doing the same thing. If it is too far away, we will return to the device Properties window. For the transport point configure, the following window will appear:

The window configuration instructions in http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/wcedebug5/html/wce50contcpiptransport. asp

I only want to write about the settings that affect the cemgrc parameters in the window. The cemgrc parameters are not mentioned on msdn and can only be inferred.
(1) The first is the Host IP address. In the drop-down list of use fixed address, you have several NICs (including virtual NICS) and several IP addresses configured for the current NIC are optional, after selecting the IP address, the IP address is displayed in the/d parameter. If this inference is wrong, I will find a piece of tofu and hit it to death.
(2) next is the port. If fixed port is not checked, a port will be randomly selected for each connection. Then, the difference between each port is shown in the "2777" section of the/d parameter. in this way, it will be a little troublesome to knock on the command line on the target board. If fixed port is checked and a port number is specified, in this case, in the cemgrc parameter, apart from the fixed port number after/D, an additional/s is added, which is estimated to be the meaning of static port. in actual operations, I saved this/s and connected it with no impact.

Debugging in EVC using this method is truly a joy for me to control information and share network access. Ethernet and USB Host coexist.

//************************************** **************************************** **************************************
Source Address: http://blog.csdn.net/suncilang/archive/2007/05/03/1595724.aspx#583791

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.