Use the new WinCE6.0 feature CellCore to quickly develop a GSM driver

Source: Internet
Author: User

This article is original and reprinted with the source: hi.baidu.com/roooy, :)

Ce 6.0 has many new features integrated into visual studio2005, including the latest MFC, ATL, STL, wtl, compiler, and language consistency. Currently, the kernel not only supports more than 32 processors, but also supports Virtual Memory larger than 32 MB for each process. In addition to tools and kernel changes, there are also some interesting new technologies, such as Windows Network projector and cellcore. Now let's talk about cellcore, one of the most useful new features of ce6.0, which enables embedded systems to provide upper-layer applications with services such as telephone, short messages, and Internet connections through the cellular network. Ce6.0 includes a simple RIL driver specially designed for the enfora device. For example, you can connect an electronic photo frame running the ce6.0 system to an enfora GSM/GPRS gsm1218 electronic photo frame through a serial port, so that this photo frame can update our photos in real time through the network.

You only need two steps to add the cellcore/RIL driver to support our embedded operating system. First, find "cellcore" in the cat6.0 of ce6.0 ",:

 

You can select only the options you need (such as SMS Support) or all functions (all modules). In this way, you will only be added to your API layer (MDD module) however, the RIL driver layer (PDD module) of the enfora routine cannot be added. To add an enfora routine, we can add the environment variable "imgenfora = 1.

In addition, do not forget to add the enfora DLL loading switch in the bib file:
C:/wince600/platform/deviceemulator/files/platform. bib
If imgenfora
Rilgsm. dll $ (_ flatreleasedir)/rilenfora. dll NK Shk
Endif imgenfora

Setting imgenfora environment variables can only work on the cepc platform and simulator platform, because the enfora driver is located in the folder of the cepc platform and simulator platform. If you want enfora to work on your own platform, copy the enfora file in the deviceemulator folder to your own platform folder. For example, if our platform is X5, I need to copy/wince600/platform/X5/src/Drivers/rilpdd. Then you need to modify some other files to make the file run. First, modify the path file dirs in the driver folder drivers as follows to ensure that rilpdd can be compiled:
Dirs =/
# @ Cesysgen if cellcore_modules_ril
Rilpdd/
# @ Cesysgen endif cellcore_modules_ril
Next, paste the imgenfora block in the bib file and Reg on our X5 platform. Do not forget that these two files are under wince600/platform/cepc/files.

In this way, we can add the enfora RIL driver to our platform by setting the environment variable imgenfora = 1, so that upper-layer applications can control our GSM/GPRS devices.

Note that the enfora driver will assume that you connect to your GSM embedded device through the com2 port. in the simulator, we can use the physical comport of the desktop PC to map it.

In addition, the GSM driver and most complex win ce drivers are also divided into two layers: MDD and PDD. The CellCore runs on a driver called RIL, if you want to run stably on the actual GSM physical device, it is necessary to re-develop the PDD layer for the actual hardware, this requires familiarity with the status and mechanism of the GSM communication protocol and AT command. Fortunately, compared to the complex processing such as SMS, the development of only the PDD layer does greatly reduce our workload.

CellCore allows devices installed with CE6.0 to send SMS messages to each other or connect to the Internet through a cellular network, and can remotely call XML Web Services or communicate with applications on the Enterprise Server (this also includes some terminal devices that run the same CellCore ), you can imagine that when the vending machines installed with CE6.0 are not in stock, they will automatically submit a replenishment inventory application to the warehouse server via wireless network. It can also be combined with the smart GPS positioner, using some graph Traversal Algorithms, to achieve freight cars only need to go to the vending machine that needs to supplement the goods, and in this process select the Shortest Path of the route, to reduce fuel and costs.

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.