Create a shared folder in wince6.0

Source: Internet
Author: User

* ****************************** Loongembedded ******* **********
Author: loongembedded (Kandi)
Time: 2011.07.8

Category: wince System Development
* ****************************** Loongembedded ******* **********

 

Before proceeding to the following functions, make sure that the wince system supports the network driver and the driver works properly. However, we can set a fixed IP address for the IP address of the wince device, you can also use DHCP (if there is a DHCP server in your network), you can use platform. set the following content in Reg:

[HKEY_LOCAL_MACHINE \ comm \ dm9ce1 \ parms \ Tcpip]

"Enabledhcp" = DWORD: 0

"Usezerobroadcast" = DWORD: 0

"DefaultGateway" = "172.18.1.1"

"IPaddress" = "172.18.1.250"

"Subnetmask" = "255.255.255.0"

"DNS" = "172.18.1.1"

; "Wins" = "172.18.1.1"

"Mac12" = DWORD: 1234

"Mac34" = DWORD: 5678

"Mac56" = DWORD: ABCD

Note that the same network segment must be used by the PC and wince devices.

 

1. PC Access to the wince system through network

The PC accesses components required by the wince system through FTP or telnet.

Figure 1

After the above components are added, recompile the system. After updating the new NK, run the ping command on the command line of the PC to check whether the system can be pinged. For details, see:

Figure 2

We can see that the network communication between the PC and the wince device is normal, and then we can access the wince device through FTP and telnet, however, it is difficult to enter the user name and password for each login using telnet and FTP. Add the following registry configuration information to platform. you can log on anonymously in Reg:

[HKEY_LOCAL_MACHINE \ comm \ telnetd]
"Useauthentication" = DWORD: 0

[HKEY_LOCAL_MACHINE \ comm \ ftpd]
"Allowanonymous" = DWORD: 1
"Allowanonymousupload" = DWORD: 1
"Allowanonymousvroots" = DWORD: 1
"Defaultdir" = "\\"
"Isenabled" = DWORD: 1
"Useauthentication" = DWORD: 0

(1) access the wince device through FTP

Open explorer on the PC, enter ftp: // 172.18.1.250 in the address bar, and press Enter. See

Figure 3

(2) Telnet access to the wince Device

Run the Telnet 172.1.18.250 command on the command line of the PC to access the wince device. The following interface is displayed:

Figure 4

The dir command lists the directory information under "My device" under the wince device as shown above, which is the same as Figure 3. In addition, you can access the nandflash folder through CD nandflash. Of course, we can also do more actions.

 

 

 

2 PC Access to the shared directory specified by the wince Device

The above figure shows how the PC accesses the entire wince device. If the PC wants to access the shared file specified in the wince device, how can this problem be achieved?

(1) Add the required service components, such:

Figure 5

(2) Add the following registry information.

[HKEY_LOCAL_MACHINE \ ident]

"Name" = "wince"

"DESC" = "Windows CE Test Device (ICOP )"

"Origname" = "WindowsCE"

// Here, WinCE is the name of the wince device.

[HKEY_LOCAL_MACHINE \ Services \ smbserver]

"Adapterlist" = "*"

"DLL" = "smbserver. dll"

"Keep" = DWORD: 1

"Order" = DWORD: 9

[HKEY_LOCAL_MACHINE \ Services \ smbserver \ shares]

"Useauthentication" = DWORD: 0

[HKEY_LOCAL_MACHINE \ Services \ smbserver \ shares \ HDD]

"Path" = "\ nandflash"

"Type" = DWORD: 0

"Userlist" = "@*;"

// The nandflash here is the nandflash drive letter, which must be determined based on the specific drive letter name.

 

(3) because we want to share hard disk (nandflash here), we also need to add the following components so that wince can recognize it.

Figure 6

Figure 7

(4) After adding the above components, compile and update the new NK

Because our wince device name is "wince", and we share the "nandflash" folder, the folder name displayed on the PC is "HDD ", run the ping command on the command line of the PC to check whether the Ping is successful. For details, see:

Figure 8

We can know that ping is successful, and note that we use the command: Ping WinCE

Next, open explorer on the PC, enter \ wince in the address bar, and press Enter. See

Figure 9

After double-clicking HDD, we can see:

Figure 10

Is the content in nandflash from the wince device.

 

 

3. wince accesses the shared folder of the PC through the network

(1) create a new shared folder in the PC.

Figure 11

(2) After the wince device is started, open the command line window on the PC end, and then log on to the wince system via Telnet (here you can use Telnet wince or telnet 172.18.1.250), and then enter the Dir command, you can see the file directory in the wince device, as shown in Figure 4. You can see a folder named "network" (if it is a Chinese version of the system, it is called "network "). Here, we can use the net use command to map the shared folder on the PC to the "network" folder, for example:

Net use kandishare \ Kandi \ share

Here, Kandi refers to the name of the PC. Share is the shared folder on the Kandi PC, while kandishare maps the shared folder on the PC to a folder under the network directory of the wince device, that is to say, what we see when we open kandishare is the share content.

Figure 12

The shared file on the PC is successfully mapped to the network folder of the wince device. For details, see:

Figure 13

Open this folder

Figure 14

This is the content in the shared folder on the PC.

 

Netease blog link: http://cky0612.blog.163.com/blog/static/2747891620116100594634/

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.